|
|
(self.webpackChunk=self.webpackChunk||[]).push([[9814],{40001:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return Ot}});var zt=Kt(92413),gt=Kt(59301),Xt={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"},Qt=Xt,kt=Kt(7657),Bt=function(Ct,Lt){return gt.createElement(kt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Qt}))},xt=gt.forwardRef(Bt),Ot=xt},26227:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return Ot}});var zt=Kt(92413),gt=Kt(59301),Xt={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"},Qt=Xt,kt=Kt(7657),Bt=function(Ct,Lt){return gt.createElement(kt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Qt}))},xt=gt.forwardRef(Bt),Ot=xt},49198:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return Ot}});var zt=Kt(92413),gt=Kt(59301),Xt={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"},Qt=Xt,kt=Kt(7657),Bt=function(Ct,Lt){return gt.createElement(kt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Qt}))},xt=gt.forwardRef(Bt),Ot=xt},41464:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return Ot}});var zt=Kt(92413),gt=Kt(59301),Xt={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"},Qt=Xt,kt=Kt(7657),Bt=function(Ct,Lt){return gt.createElement(kt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Qt}))},xt=gt.forwardRef(Bt),Ot=xt},87169:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return Ot}});var zt=Kt(92413),gt=Kt(59301),Xt={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"},Qt=Xt,kt=Kt(7657),Bt=function(Ct,Lt){return gt.createElement(kt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Qt}))},xt=gt.forwardRef(Bt),Ot=xt},73331:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return Ot}});var zt=Kt(92413),gt=Kt(59301),Xt={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"},Qt=Xt,kt=Kt(7657),Bt=function(Ct,Lt){return gt.createElement(kt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Qt}))},xt=gt.forwardRef(Bt),Ot=xt},15277:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return Ot}});var zt=Kt(92413),gt=Kt(59301),Xt={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"},Qt=Xt,kt=Kt(7657),Bt=function(Ct,Lt){return gt.createElement(kt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Qt}))},xt=gt.forwardRef(Bt),Ot=xt},52671:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return Ot}});var zt=Kt(92413),gt=Kt(59301),Xt={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"},Qt=Xt,kt=Kt(7657),Bt=function(Ct,Lt){return gt.createElement(kt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Qt}))},xt=gt.forwardRef(Bt),Ot=xt},8657:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return Ot}});var zt=Kt(92413),gt=Kt(59301),Xt={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"},Qt=Xt,kt=Kt(7657),Bt=function(Ct,Lt){return gt.createElement(kt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Qt}))},xt=gt.forwardRef(Bt),Ot=xt},10906:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return Ot}});var zt=Kt(92413),gt=Kt(59301),Xt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z"}}]},name:"form",theme:"outlined"},Qt=Xt,kt=Kt(7657),Bt=function(Ct,Lt){return gt.createElement(kt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Qt}))},xt=gt.forwardRef(Bt),Ot=xt},56082:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return Ot}});var zt=Kt(92413),gt=Kt(59301),Xt={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"},Qt=Xt,kt=Kt(7657),Bt=function(Ct,Lt){return gt.createElement(kt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Qt}))},xt=gt.forwardRef(Bt),Ot=xt},61481:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return Ot}});var zt=Kt(92413),gt=Kt(59301),Xt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"},Qt=Xt,kt=Kt(7657),Bt=function(Ct,Lt){return gt.createElement(kt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Qt}))},xt=gt.forwardRef(Bt),Ot=xt},33853:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return Ot}});var zt=Kt(92413),gt=Kt(59301),Xt={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"},Qt=Xt,kt=Kt(7657),Bt=function(Ct,Lt){return gt.createElement(kt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Qt}))},xt=gt.forwardRef(Bt),Ot=xt},15075:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return Ot}});var zt=Kt(92413),gt=Kt(59301),Xt={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"},Qt=Xt,kt=Kt(7657),Bt=function(Ct,Lt){return gt.createElement(kt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Qt}))},xt=gt.forwardRef(Bt),Ot=xt},43531:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return Ot}});var zt=Kt(92413),gt=Kt(59301),Xt={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"},Qt=Xt,kt=Kt(7657),Bt=function(Ct,Lt){return gt.createElement(kt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Qt}))},xt=gt.forwardRef(Bt),Ot=xt},61485:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return Ot}});var zt=Kt(92413),gt=Kt(59301),Xt={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"},Qt=Xt,kt=Kt(7657),Bt=function(Ct,Lt){return gt.createElement(kt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Qt}))},xt=gt.forwardRef(Bt),Ot=xt},38819:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return Ot}});var zt=Kt(92413),gt=Kt(59301),Xt={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"},Qt=Xt,kt=Kt(7657),Bt=function(Ct,Lt){return gt.createElement(kt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Qt}))},xt=gt.forwardRef(Bt),Ot=xt},47472:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return Ot}});var zt=Kt(92413),gt=Kt(59301),Xt={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"},Qt=Xt,kt=Kt(7657),Bt=function(Ct,Lt){return gt.createElement(kt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Qt}))},xt=gt.forwardRef(Bt),Ot=xt},32050:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return Ot}});var zt=Kt(92413),gt=Kt(59301),Xt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 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:"upload",theme:"outlined"},Qt=Xt,kt=Kt(7657),Bt=function(Ct,Lt){return gt.createElement(kt.Z,(0,zt.Z)({},Ct,{ref:Lt,icon:Qt}))},xt=gt.forwardRef(Bt),Ot=xt},78780:function(){"use strict"},19136:function(){"use strict"},11570:function(Tn,Cn){"use strict";Cn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},29277:function(){"use strict";function Tn(mt,et,tt,st){tt===void 0&&(tt=0),st===void 0&&(st=1/0),this._name=mt,this._defaultValue=et,this._minimum=tt,this._maximum=st}Object.defineProperty(Tn.prototype,"name",{get:function(){return this._name},set:function(mt){if(typeof mt!="string"||mt==="")throw new Error("Shape name must be a valid string.");this._name=mt}}),Object.defineProperty(Tn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(mt){if(typeof mt!="number"||isNaN(mt))throw new Error("The default value must be a real number, not: "+mt);this._defaultValue=mt}}),Object.defineProperty(Tn.prototype,"minimum",{get:function(){return this._minimum},set:function(mt){if(typeof mt!="number"||isNaN(mt))throw new Error("Minimum must be a real number, not: "+mt);this._minimum=mt}}),Object.defineProperty(Tn.prototype,"maximum",{get:function(){return this._maximum},set:function(mt){if(typeof mt!="number"||isNaN(mt))throw new Error("Maximum must be a real number, not: "+mt);this._maximum=mt}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(mt,et){var tt=go.Shape._FigureParameters[mt];return tt?tt[et]:null},go.Shape.setFigureParameter=function(mt,et,tt){if(!(tt instanceof Tn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+tt);if(tt.defaultValue<tt.minimum||tt.defaultValue>tt.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+tt.defaultValue);var st=go.Shape._FigureParameters[mt];st||(st=[],go.Shape._FigureParameters[mt]=st),st[et]=tt};var Cn=[];function Kt(mt,et){var tt=Cn.pop();return tt===void 0?new go.Point(mt,et):(tt.x=mt,tt.y=et,tt)}function zt(){var mt=Cn.pop();return mt===void 0?new go.Point:mt}function gt(mt){Cn.push(mt)}function Xt(mt,et,tt,st,rt,ut,ct,ft,pt){pt||(pt=new go.Point);var Pt=mt-tt,Dt=rt-ct,Zt=NaN,Ft=NaN;if(Pt===0)if(Dt===0)mt===tt&&(Zt=mt,Ft=et);else{var qt=(ut-ft)/Dt,te=ut-qt*rt;Zt=mt,Ft=qt*Zt+te}else if(Dt===0){var Gt=(et-st)/Pt,ce=et-Gt*mt;Zt=rt,Ft=Gt*Zt+ce}else{var Gt=(et-st)/Pt,qt=(ut-ft)/Dt,ce=et-Gt*mt,te=ut-qt*rt;Zt=(te-ce)/(Gt-qt),Ft=Gt*Zt+ce}return pt.x=Zt,pt.y=Ft,pt}function Qt(mt,et,tt,st,rt,ut,ct,ft,pt,Pt,Dt,Zt,Ft,qt){var te=1-pt,Gt=pt,ce=mt*te+tt*Gt,ae=et*te+st*Gt,xe=tt*te+rt*Gt,ye=st*te+ut*Gt,Te=rt*te+ct*Gt,me=ut*te+ft*Gt,He=ce*te+xe*Gt,fe=ae*te+ye*Gt,$t=xe*te+Te*Gt,ie=ye*te+me*Gt,ue=He*te+$t*Gt,ge=fe*te+ie*Gt;Pt.x=ce,Pt.y=ae,Dt.x=He,Dt.y=fe,Zt.x=ue,Zt.y=ge,Ft.x=$t,Ft.y=ie,qt.x=Te,qt.y=me}var kt=new go.Spot(.156,.156),Bt=new go.Spot(.844,.844),xt=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Tn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(mt,et,tt){var st=mt?mt.parameter1:NaN;(isNaN(st)||st<0)&&(st=5),st=Math.min(st,et/3),st=Math.min(st,tt/3);var rt=st*xt,ut=new go.Geometry().add(new go.PathFigure(st,0,!0).add(new go.PathSegment(go.PathSegment.Line,et-st,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,st,et-rt,0,et,rt)).add(new go.PathSegment(go.PathSegment.Line,et,tt-st)).add(new go.PathSegment(go.PathSegment.Bezier,et-st,tt,et,tt-rt,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,st,tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,tt-st,rt,tt,0,tt-rt)).add(new go.PathSegment(go.PathSegment.Line,0,st)).add(new go.PathSegment(go.PathSegment.Bezier,st,0,0,rt,rt,0).close()));return rt>1&&(ut.spot1=new go.Spot(0,0,rt,rt),ut.spot2=new go.Spot(1,1,-rt,-rt)),ut}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(et,tt).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(et,tt).add(new go.PathSegment(go.PathSegment.Line,0,tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(mt,et,tt){var st=new go.Geometry(go.Geometry.Line);return st.startX=0,st.startY=tt/2,st.endX=et,st.endY=tt/2,st}),go.Shape.defineFigureGenerator("LineV",function(mt,et,tt){var st=new go.Geometry(go.Geometry.Line);return st.startX=et/2,st.startY=0,st.endX=et/2,st.endY=tt,st}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt/2,!1).add(new go.PathSegment(go.PathSegment.Line,et,tt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,tt)))}),go.Shape.defineFigureGenerator("XLine",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)))}),go.Shape.defineFigureGenerator("LineRight",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(.25*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,tt)))}),go.Shape.defineFigureGenerator("LineDown",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,.25*tt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.75*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)))}),go.Shape.defineFigureGenerator("LineLeft",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(.75*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,tt)))}),go.Shape.defineFigureGenerator("LineUp",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,.75*tt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,.25*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(mt,et,tt){var st=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(st*et,(1-st)*tt,!1).add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,st*tt)).add(new go.PathSegment(go.PathSegment.Move,st*et,st*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,(1-st)*tt)).add(new go.PathSegment(go.PathSegment.Move,0,tt/2)).add(new go.PathSegment(go.PathSegment.Line,et,tt/2)).add(new go.PathSegment(go.PathSegment.Move,et/2,0)).add(new go.PathSegment(go.PathSegment.Line,et/2,tt)))}),go.Shape.defineFigureGenerator("CircleLine",function(mt,et,tt){var st=et/2,rt=new go.Geometry().add(new go.PathFigure(et,et/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,st,st,st,st).close()));return rt.spot1=kt,rt.spot2=Bt,rt.defaultStretch=go.GraphObject.Uniform,rt}),go.Shape.defineFigureGenerator("Line1",function(mt,et,tt){var st=new go.Geometry(go.Geometry.Line);return st.startX=0,st.startY=0,st.endX=et,st.endY=tt,st}),go.Shape.defineFigureGenerator("Line2",function(mt,et,tt){var st=new go.Geometry(go.Geometry.Line);return st.startX=et,st.startY=0,st.endX=0,st.endY=tt,st}),go.Shape.defineFigureGenerator("Curve1",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,tt,xt*et,0,et,(1-xt)*tt)))}),go.Shape.defineFigureGenerator("Curve2",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,et,tt,0,xt*tt,(1-xt)*et,tt)))}),go.Shape.defineFigureGenerator("Curve3",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,et,xt*tt,xt*et,tt)))}),go.Shape.defineFigureGenerator("Curve4",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,(1-xt)*et,0,0,(1-xt)*tt)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(et,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Tn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)?st=.1:st<-1?st=-1:st>1&&(st=1);var rt=Math.abs(st)*et;if(st===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return st>0?ut.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())),rt<et/2&&ut.setSpots(rt/et,0,(et-rt)/et,1),ut}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Tn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)?st=10:st<-et?st=-et:st>et&&(st=et);var rt=Math.abs(st);if(st===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return st>0?ut.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())),rt<et/2&&ut.setSpots(rt/et,0,(et-rt)/et,1),ut}}),go.Shape.setFigureParameter("Trapezoid1",0,new Tn("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)?st=.2:st<.5?st=-.5:st>.5&&(st=.5);var rt=Math.abs(st)*et;if(st===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return st>0?ut.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())),rt<et/2&&ut.setSpots(rt/et,0,(et-rt)/et,1),ut}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Tn("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)?st=20:st<-et?st=-et/2:st>et&&(st=et/2);var rt=Math.abs(st);if(st===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return st>0?ut.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())):ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())),rt<et/2&&ut.setSpots(rt/et,0,(et-rt)/et,1),ut}}),go.Shape.setFigureParameter("ManualOperation",0,new Tn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)?st=10:st<-et?st=-et/2:st>et&&(st=et/2);var rt=Math.abs(st);if(st===0){var ut=new go.Geometry(go.Geometry.Rectangle);return ut.startX=0,ut.startY=0,ut.endX=et,ut.endY=tt,ut}else{var ut=new go.Geometry;return st>0?ut.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,tt).close())):ut.add(new go.PathFigure(rt,0).add(new go.PathSegment(go.PathSegment.Line,et-rt,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close())),rt<et/2&&ut.setSpots(rt/et,0,(et-rt)/et,1),ut}});var Ot=[];function Rt(){var mt=Ot.pop();return mt===void 0?[]:mt}function Ct(mt){mt.length=0,Ot.push(mt)}function Lt(mt){for(var et=Rt(),tt=.5,st=.5,rt=Math.PI*1.5,ut=0,ct=0;ct<mt;ct++)ut=2*Math.PI/mt*ct+rt,et[ct]=new go.Point(st+tt*Math.cos(ut),st+tt*Math.sin(ut));return et.push(et[0]),et}function At(mt){var et=It(mt),tt=Rt();tt[0]=et[0];for(var st=1,rt=1;st<et.length;st+=2,rt+=3)tt[rt]=et[st],tt[rt+1]=et[st],tt[rt+2]=et[st+1];return Ct(et),tt}function It(mt){for(var et=Lt(mt),tt=Rt(),st=Math.floor(et.length/2),rt=et.length-1,ut=mt%2===0?2:1,ct=0;ct<rt;ct++){var ft=et[ct],pt=et[ct+1],Pt=et[(st+ct-1)%rt],Dt=et[(st+ct+ut)%rt];tt[ct*2]=ft,tt[ct*2+1]=Xt(ft.x,ft.y,Pt.x,Pt.y,pt.x,pt.y,Dt.x,Dt.y,new go.Point)}return tt[tt.length]=tt[0],Ct(et),tt}go.Shape.defineFigureGenerator("Pentagon",function(mt,et,tt){var st=Lt(5),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<5;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,st[ct].x*et,st[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,st[0].x*et,st[0].y*tt).close()),Ct(st),rt.spot1=new go.Spot(.2,.22),rt.spot2=new go.Spot(.8,.9),rt}),go.Shape.defineFigureGenerator("Hexagon",function(mt,et,tt){var st=Lt(6),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<6;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,st[ct].x*et,st[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,st[0].x*et,st[0].y*tt).close()),Ct(st),rt.spot1=new go.Spot(.07,.25),rt.spot2=new go.Spot(.93,.75),rt}),go.Shape.defineFigureGenerator("Heptagon",function(mt,et,tt){var st=Lt(7),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<7;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,st[ct].x*et,st[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,st[0].x*et,st[0].y*tt).close()),Ct(st),rt.spot1=new go.Spot(.2,.15),rt.spot2=new go.Spot(.8,.85),rt}),go.Shape.defineFigureGenerator("Octagon",function(mt,et,tt){var st=Lt(8),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<8;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,st[ct].x*et,st[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,st[0].x*et,st[0].y*tt).close()),Ct(st),rt.spot1=new go.Spot(.15,.15),rt.spot2=new go.Spot(.85,.85),rt}),go.Shape.defineFigureGenerator("Nonagon",function(mt,et,tt){var st=Lt(9),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<9;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,st[ct].x*et,st[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,st[0].x*et,st[0].y*tt).close()),Ct(st),rt.spot1=new go.Spot(.17,.13),rt.spot2=new go.Spot(.82,.82),rt}),go.Shape.defineFigureGenerator("Decagon",function(mt,et,tt){var st=Lt(10),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<10;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,st[ct].x*et,st[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,st[0].x*et,st[0].y*tt).close()),Ct(st),rt.spot1=new go.Spot(.16,.16),rt.spot2=new go.Spot(.84,.84),rt}),go.Shape.defineFigureGenerator("Dodecagon",function(mt,et,tt){var st=Lt(12),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<12;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,st[ct].x*et,st[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,st[0].x*et,st[0].y*tt).close()),Ct(st),rt.spot1=new go.Spot(.16,.16),rt.spot2=new go.Spot(.84,.84),rt}),go.Shape.defineFigureGenerator("FivePointedStar",function(mt,et,tt){var st=It(5),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<10;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,st[ct].x*et,st[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,st[0].x*et,st[0].y*tt).close()),Ct(st),rt.spot1=new go.Spot(.266,.333),rt.spot2=new go.Spot(.733,.733),rt}),go.Shape.defineFigureGenerator("SixPointedStar",function(mt,et,tt){var st=It(6),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<12;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,st[ct].x*et,st[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,st[0].x*et,st[0].y*tt).close()),Ct(st),rt.spot1=new go.Spot(.17,.25),rt.spot2=new go.Spot(.83,.75),rt}),go.Shape.defineFigureGenerator("SevenPointedStar",function(mt,et,tt){var st=It(7),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<14;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,st[ct].x*et,st[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,st[0].x*et,st[0].y*tt).close()),Ct(st),rt.spot1=new go.Spot(.222,.277),rt.spot2=new go.Spot(.777,.666),rt}),go.Shape.defineFigureGenerator("EightPointedStar",function(mt,et,tt){var st=It(8),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<16;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,st[ct].x*et,st[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,st[0].x*et,st[0].y*tt).close()),Ct(st),rt.spot1=new go.Spot(.25,.25),rt.spot2=new go.Spot(.75,.75),rt}),go.Shape.defineFigureGenerator("NinePointedStar",function(mt,et,tt){var st=It(9),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<18;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,st[ct].x*et,st[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,st[0].x*et,st[0].y*tt).close()),Ct(st),rt.spot1=new go.Spot(.222,.277),rt.spot2=new go.Spot(.777,.666),rt}),go.Shape.defineFigureGenerator("TenPointedStar",function(mt,et,tt){var st=It(10),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<20;ct++)ut.add(new go.PathSegment(go.PathSegment.Line,st[ct].x*et,st[ct].y*tt));return ut.add(new go.PathSegment(go.PathSegment.Line,st[0].x*et,st[0].y*tt).close()),Ct(st),rt.spot1=new go.Spot(.281,.261),rt.spot2=new go.Spot(.723,.748),rt}),go.Shape.defineFigureGenerator("FivePointedBurst",function(mt,et,tt){var st=At(5),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<st.length;ct+=3)ut.add(new go.PathSegment(go.PathSegment.Bezier,st[ct+2].x*et,st[ct+2].y*tt,st[ct].x*et,st[ct].y*tt,st[ct+1].x*et,st[ct+1].y*tt));return ut.segments.last().close(),Ct(st),rt.spot1=new go.Spot(.222,.277),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("SixPointedBurst",function(mt,et,tt){var st=At(6),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<st.length;ct+=3)ut.add(new go.PathSegment(go.PathSegment.Bezier,st[ct+2].x*et,st[ct+2].y*tt,st[ct].x*et,st[ct].y*tt,st[ct+1].x*et,st[ct+1].y*tt));return ut.segments.last().close(),Ct(st),rt.spot1=new go.Spot(.17,.222),rt.spot2=new go.Spot(.833,.777),rt}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(mt,et,tt){var st=At(7),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<st.length;ct+=3)ut.add(new go.PathSegment(go.PathSegment.Bezier,st[ct+2].x*et,st[ct+2].y*tt,st[ct].x*et,st[ct].y*tt,st[ct+1].x*et,st[ct+1].y*tt));return ut.segments.last().close(),Ct(st),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("EightPointedBurst",function(mt,et,tt){var st=At(8),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<st.length;ct+=3)ut.add(new go.PathSegment(go.PathSegment.Bezier,st[ct+2].x*et,st[ct+2].y*tt,st[ct].x*et,st[ct].y*tt,st[ct+1].x*et,st[ct+1].y*tt));return ut.segments.last().close(),Ct(st),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("NinePointedBurst",function(mt,et,tt){var st=At(9),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<st.length;ct+=3)ut.add(new go.PathSegment(go.PathSegment.Bezier,st[ct+2].x*et,st[ct+2].y*tt,st[ct].x*et,st[ct].y*tt,st[ct+1].x*et,st[ct+1].y*tt));return ut.segments.last().close(),Ct(st),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("TenPointedBurst",function(mt,et,tt){var st=At(10),rt=new go.Geometry,ut=new go.PathFigure(st[0].x*et,st[0].y*tt,!0);rt.add(ut);for(var ct=1;ct<st.length;ct+=3)ut.add(new go.PathSegment(go.PathSegment.Bezier,st[ct+2].x*et,st[ct+2].y*tt,st[ct].x*et,st[ct].y*tt,st[ct+1].x*et,st[ct+1].y*tt));return ut.segments.last().close(),Ct(st),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.setFigureParameter("FramedRectangle",0,new Tn("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Tn("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(mt,et,tt){var st=mt?mt.parameter1:NaN,rt=mt?mt.parameter2:NaN;isNaN(st)&&(st=8),isNaN(rt)&&(rt=8);var ut=new go.Geometry,ct=new go.PathFigure(0,0,!0);return ut.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st<et/2&&rt<tt/2&&(ct.add(new go.PathSegment(go.PathSegment.Move,st,rt)),ct.add(new go.PathSegment(go.PathSegment.Line,st,tt-rt)),ct.add(new go.PathSegment(go.PathSegment.Line,et-st,tt-rt)),ct.add(new go.PathSegment(go.PathSegment.Line,et-st,rt).close())),ut.setSpots(0,0,1,1,st,rt,-st,-rt),ut}),go.Shape.setFigureParameter("Ring",0,new Tn("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(mt,et,tt){var st=mt?mt.parameter1:NaN;(isNaN(st)||st<0)&&(st=8);var rt=et/2,ut=new go.Geometry,ct=new go.PathFigure(et,et/2,!0);ut.add(ct),ct.add(new go.PathSegment(go.PathSegment.Arc,0,360,rt,rt,rt,rt).close());var ft=Math.max(rt-st,0);return ft>0&&(ct.add(new go.PathSegment(go.PathSegment.Move,et/2+ft,et/2)),ct.add(new go.PathSegment(go.PathSegment.Arc,0,-360,rt,rt,ft,ft).close())),ut.spot1=kt,ut.spot2=Bt,ut.defaultStretch=go.GraphObject.Uniform,ut}),go.Shape.defineFigureGenerator("Cloud",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(.08034461*et,.1944299*tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*et,.05349299*tt,-.09239631*et,.07836421*tt,.1406031*et,-.0542823*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*et,.074219*tt,.2450511*et,-.00697547*tt,.3776197*et,-.01112067*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*et,.07004196*tt,.4539471*et,0,.6066018*et,-.02526587*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*et,.08370865*tt,.6914277*et,-.01904177*tt,.8921095*et,-.01220843*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*et,.3194596*tt,1.036446*et,.04105738*tt,1.020377*et,.3022052*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*et,.562044*tt,1.04448*et,.360238*tt,.992256*et,.5219009*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*et,.8217117*tt,1.032337*et,.5771781*tt,1.018411*et,.8120651*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*et,.9156953*tt,1.028411*et,.9571472*tt,.8556702*et,1.052487*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*et,.9310455*tt,.7431877*et,1.009325*tt,.5624123*et,1.021761*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*et,.9344623*tt,.4820677*et,1.031761*tt,.3030112*et,1.002796*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.870098*tt,.2329994*et,1.01518*tt,.03213784*et,1.01518*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*et,.6545475*tt,-.02812061*et,.9032597*tt,-.01205169*et,.6835638*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*et,.4265613*tt,-.01812061*et,.6089503*tt,-.00606892*et,.4555777*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*et,.1944299*tt,-.01606892*et,.3892545*tt,-.01205169*et,.1944299*tt))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(mt,et,tt){var st=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(st*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,st*tt)).add(new go.PathSegment(go.PathSegment.Line,et,(1-st)*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,tt)).add(new go.PathSegment(go.PathSegment.Line,st*et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,(1-st)*tt)).add(new go.PathSegment(go.PathSegment.Line,0,st*tt).close())).setSpots(st/2,st/2,1-st/2,1-st/2)}),go.Shape.setFigureParameter("Pie",0,new Tn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Tn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(mt,et,tt){var st=mt?mt.parameter1:NaN,rt=mt?mt.parameter2:NaN;isNaN(st)&&(st=0),isNaN(rt)&&(rt=315);var ut=st%360;ut<0&&(ut+=360);var ct=rt%360,ft=Math.min(et,tt)/2;return new go.Geometry().add(new go.PathFigure(ft,ft).add(new go.PathSegment(go.PathSegment.Arc,ut,ct,ft,ft,ft,ft).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(mt,et,tt){var st=xt/Math.SQRT2*.5,rt=Math.SQRT2/2,ut=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(et,tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,rt*et,ut*tt,et,(1-st)*tt,(rt+st)*et,(ut+st)*tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Tn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(mt,et,tt){var st=mt?mt.parameter1:NaN;(isNaN(st)||st<0)&&(st=30);var rt=Math.min(st,et)/2,ut=et/2,ct=tt/2;return new go.Geometry().add(new go.PathFigure(ut-rt,0,!0).add(new go.PathSegment(go.PathSegment.Line,ut+rt,0)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,ct-rt)).add(new go.PathSegment(go.PathSegment.Line,et,ct-rt)).add(new go.PathSegment(go.PathSegment.Line,et,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,0,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,0,ct-rt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,ct-rt).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Tn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(mt,et,tt){var st=mt?mt.parameter1:NaN;(isNaN(st)||st<0)&&(st=10);var rt=Math.min(st,et)/2,ut=et/2,ct=tt/2;return new go.Geometry().add(new go.PathFigure(ut-rt,0,!0).add(new go.PathSegment(go.PathSegment.Line,ut+rt,0)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,ct-rt)).add(new go.PathSegment(go.PathSegment.Line,et,ct-rt)).add(new go.PathSegment(go.PathSegment.Line,et,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,ut+rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,tt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,0,ct+rt)).add(new go.PathSegment(go.PathSegment.Line,0,ct-rt)).add(new go.PathSegment(go.PathSegment.Line,ut-rt,ct-rt).close()))}),go.Shape.setFigureParameter("ThickX",0,new Tn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(mt,et,tt){var st=mt?mt.parameter1:NaN;if((isNaN(st)||st<0)&&(st=30),et===0||tt===0){var rt=new go.Geometry(go.Geometry.Rectangle);return rt.startX=0,rt.startY=0,rt.endX=et,rt.endY=tt,rt}else{var ut=et/2,ct=tt/2,ft=Math.atan2(tt,et),pt=st-Math.min(Math.cos(ft)*st/2,ut),Pt=st-Math.min(Math.sin(ft)*st/2,ct),rt=new go.Geometry,Dt=new go.PathFigure(pt,0,!0);return rt.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,ut,.2*tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,et-pt,0)),Dt.add(new go.PathSegment(go.PathSegment.Line,et,Pt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.8*et,ct)),Dt.add(new go.PathSegment(go.PathSegment.Line,et,tt-Pt)),Dt.add(new go.PathSegment(go.PathSegment.Line,et-pt,tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,ut,.8*tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,pt,tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,tt-Pt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ct)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,Pt).close()),rt}}),go.Shape.setFigureParameter("ThinX",0,new Tn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(mt,et,tt){var st=mt?mt.parameter1:NaN;(isNaN(st)||st<0)&&(st=10);var rt=new go.Geometry,ut=new go.PathFigure(.1*et,0,!0);return rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt).close()),rt}),go.Shape.setFigureParameter("SquareIBeam",0,new Tn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=.2);var rt=new go.Geometry,ut=new go.PathFigure(0,0,!0);return rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,st*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5+st/2)*et,st*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5+st/2)*et,(1-st)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,(1-st)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,(1-st)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5-st/2)*et,(1-st)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(.5-st/2)*et,st*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,st*tt).close()),rt}),go.Shape.setFigureParameter("RoundedIBeam",0,new Tn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=.5);var rt=new go.Geometry,ut=new go.PathFigure(0,0,!0);return rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,et,tt,Math.abs(1-st)*et,.25*tt,Math.abs(1-st)*et,.75*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,0,st*et,.75*tt,st*et,.25*tt).close()),rt}),go.Shape.defineFigureGenerator("HalfEllipse",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,xt*et,0,et,(.5-xt/2)*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,et,(.5+xt/2)*tt,xt*et,tt).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,tt,et,0,et,tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*et,.75*tt,.5*et,.25*tt).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,tt,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*tt,.1*et,.8*tt,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,0,0,.45*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,et,.3*tt,.55*et,0,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,.5*tt,.9*et,.8*tt).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*et,.01*tt)).add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,.6*et,.2*tt,et,.25*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.7*tt,et,.8*tt,.6*et,.8*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.75*et,tt,.5*et,.75*tt,.55*et,.95*tt)).add(new go.PathSegment(go.PathSegment.Line,.25*et,tt)).add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.7*tt,.45*et,.95*tt,.5*et,.75*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,.4*et,.8*tt,0,.8*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.49*et,.01*tt,0,.25*tt,.4*et,.2*tt).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.4*et,.6*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.15*et,tt,.5*et,.75*tt,.45*et,.95*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.6*tt,.55*et,.95*tt,.5*et,.75*tt));var ut=.2,ct=.3,ft=0,pt=ut*xt;return rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5+ut+ft)*tt,(.5-ut+ct)*et,(.5+pt+ft)*tt,(.5-pt+ct)*et,(.5+ut+ft)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ut+ct)*et,(.5+ft)*tt,(.5+pt+ct)*et,(.5+ut+ft)*tt,(.5+ut+ct)*et,(.5+pt+ft)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5-ut+ft)*tt,(1-.5+ut+ct)*et,(.5-pt+ft)*tt,(.5+pt+ct)*et,(.5-ut+ft)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.65*et,.36771243*tt,(.5-pt+ct)*et,(.5-ut+ft)*tt,(.5-ut+ct+.05)*et,(.5-pt+ft-.02)*tt)),ut=.2,ct=0,ft=-.3,pt=ut*xt,rt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ut+ct)*et,(.5+ft)*tt,(.5+pt+ct)*et,(.5+ut+ft)*tt,(.5+ut+ct)*et,(.5+pt+ft)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5-ut+ft)*tt,(1-.5+ut+ct)*et,(.5-pt+ft)*tt,(.5+pt+ct)*et,(.5-ut+ft)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ut+ct)*et,(.5+ft)*tt,(.5-pt+ct)*et,(.5-ut+ft)*tt,(.5-ut+ct)*et,(.5-pt+ft)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-pt+ct)*et,(.5+ut+ft)*tt,(.5-ut+ct)*et,(.5+pt+ft)*tt,(.5-pt+ct)*et,(.5+ut+ft)*tt)),ut=.2,ct=-.3,ft=0,pt=ut*xt,rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5-ut+ft)*tt,(1-.5+ut+ct-.05)*et,(.5-pt+ft-.02)*tt,(.5+pt+ct)*et,(.5-ut+ft)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ut+ct)*et,(.5+ft)*tt,(.5-pt+ct)*et,(.5-ut+ft)*tt,(.5-ut+ct)*et,(.5-pt+ft)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5+ut+ft)*tt,(.5-ut+ct)*et,(.5+pt+ft)*tt,(.5-pt+ct)*et,(.5+ut+ft)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.6*tt,(.5+pt+ct)*et,(.5+ut+ft)*tt,(.5+ut+ct)*et,(.5+pt+ft)*tt).close()),st.setSpots(.06,.33,.93,.68),st}),go.Shape.defineFigureGenerator("YinYang",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*.5,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*.5,et*.5,et*.5,et*.5)),rt.add(new go.PathSegment(go.PathSegment.Arc,90,-180,et*.5,et*.75,et*.25,et*.25)),rt.add(new go.PathSegment(go.PathSegment.Arc,90,180,et*.5,et*.25,et*.25,et*.25));var ut=.1,ct=.5,ft=.25;return rt.add(new go.PathSegment(go.PathSegment.Move,(ct+ut)*et,ft*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,et*ct,tt*ft,ut*et,ut*et).close()),rt=new go.PathFigure(et*.5,0,!1),st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*.5,et*.5,et*.5,et*.5)),ft=.75,rt=new go.PathFigure((ct+ut)*et,ft*tt,!0),st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,0,360,et*ct,tt*ft,ut*et,ut*et).close()),st.defaultStretch=go.GraphObject.Uniform,st}),go.Shape.defineFigureGenerator("Peace",function(mt,et,tt){var st=.8535533905932737,rt=.5*et,ut=.5*tt;return new go.Geometry().add(new go.PathFigure(rt,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,rt,ut,rt,ut)).add(new go.PathSegment(go.PathSegment.Line,rt,tt)).add(new go.PathSegment(go.PathSegment.Move,rt,ut)).add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,st*tt)).add(new go.PathSegment(go.PathSegment.Move,rt,ut)).add(new go.PathSegment(go.PathSegment.Line,st*et,st*tt)))}),go.Shape.defineFigureGenerator("NotAllowed",function(mt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=.5,ct=.5,ft=.5,pt=new go.PathFigure(ct*et,(ft-ut)*tt);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,(ct-rt)*et,(ft-ut)*tt,(ct-ut)*et,(ft-rt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct-ut)*et,(ft+rt)*tt,(ct-rt)*et,(ft+ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,(ct+rt)*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ut)*tt,(ct+ut)*et,(ft-rt)*tt,(ct+rt)*et,(ft-ut)*tt)),ut=.4,rt=xt*.4;var Pt=zt(),Dt=zt(),Zt=zt(),Ft=zt();Qt(ct,ft-ut,ct+rt,ft-ut,ct+ut,ft-rt,ct+ut,ft,.42,Pt,Dt,Zt,Ft,Ft);var qt=zt(),te=zt(),Gt=zt();Qt(ct,ft-ut,ct+rt,ft-ut,ct+ut,ft-rt,ct+ut,ft,.58,Ft,Ft,Gt,qt,te);var ce=zt(),ae=zt(),xe=zt();Qt(ct,ft+ut,ct-rt,ft+ut,ct-ut,ft+rt,ct-ut,ft,.42,ce,ae,xe,Ft,Ft);var ye=zt(),Te=zt(),me=zt();return Qt(ct,ft+ut,ct-rt,ft+ut,ct-ut,ft+rt,ct-ut,ft,.58,Ft,Ft,me,ye,Te),pt.add(new go.PathSegment(go.PathSegment.Move,me.x*et,me.y*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,ye.x*et,ye.y*tt,Te.x*et,Te.y*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ut)*tt,(ct-ut)*et,(ft-rt)*tt,(ct-rt)*et,(ft-ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,Zt.x*et,Zt.y*tt,Pt.x*et,Pt.y*tt,Dt.x*et,Dt.y*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,me.x*et,me.y*tt).close()),pt.add(new go.PathSegment(go.PathSegment.Move,xe.x*et,xe.y*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,Gt.x*et,Gt.y*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,qt.x*et,qt.y*tt,te.x*et,te.y*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt,(ct+rt)*et,(ft+ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,xe.x*et,xe.y*tt,ce.x*et,ce.y*tt,ae.x*et,ae.y*tt).close()),gt(Pt),gt(Dt),gt(Zt),gt(Ft),gt(qt),gt(te),gt(Gt),gt(ce),gt(ae),gt(xe),gt(ye),gt(Te),gt(me),st.defaultStretch=go.GraphObject.Uniform,st}),go.Shape.defineFigureGenerator("Fragile",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*et,0)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.15*tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.25*tt)).add(new go.PathSegment(go.PathSegment.Line,.29*et,.33*tt)).add(new go.PathSegment(go.PathSegment.Line,.35*et,.25*tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.15*tt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.5*tt,et,.25*tt,.75*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.5*tt,0,.25*tt).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Tn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(mt,et,tt){var st=mt?mt.parameter1:NaN;(isNaN(st)||st<0)&&(st=30),st>et&&(st=et);var rt=(et-st)/2,ut=rt+st;return new go.Geometry().add(new go.PathFigure(ut,.5*tt).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt)).add(new go.PathSegment(go.PathSegment.Line,rt,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,et,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,.55*tt).add(new go.PathSegment(go.PathSegment.Line,.6*et,0)).add(new go.PathSegment(go.PathSegment.Line,.3*et,.45*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.45*tt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.55*tt).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(mt,et,tt){var st=new go.Geometry,rt=xt*.4,ut=.4,ct=.5,ft=.5,pt=zt(),Pt=zt(),Dt=zt(),Zt=zt(),Ft=new go.PathFigure((ct-ut)*et,ft*tt,!1);st.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ut)*tt,(ct-ut)*et,(ft-rt)*tt,(ct-rt)*et,(ft-ut)*tt)),Qt(ct,ft-ut,ct+rt,ft-ut,ct+ut,ft-rt,ct+ut,ft,.44,Dt,Zt,Pt,pt,pt),Ft.add(new go.PathSegment(go.PathSegment.Bezier,Pt.x*et,Pt.y*tt,Dt.x*et,Dt.y*tt,Zt.x*et,Zt.y*tt));var qt=Kt(Pt.x,Pt.y);Qt(ct,ft-ut,ct+rt,ft-ut,ct+ut,ft-rt,ct+ut,ft,.56,pt,pt,Pt,Dt,Zt);var te=Kt(Pt.x,Pt.y);Ft.add(new go.PathSegment(go.PathSegment.Line,(qt.x*.1+.95*.9)*et,qt.y*.1*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.85*et,qt.y*.1*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,.85*et,0)),Ft.add(new go.PathSegment(go.PathSegment.Line,et,0)),Ft.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,(te.x*.1+.9)*et,.15*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,(te.x*.1+.9)*et,(te.y*.1+.05*.9)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,te.x*et,te.y*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,Dt.x*et,Dt.y*tt,Zt.x*et,Zt.y*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt,(ct+rt)*et,(ft+ut)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,(ct-rt)*et,(ft+ut)*tt,(ct-ut)*et,(ft+rt)*tt)),ut=.35,rt=xt*.35;var Gt=new go.PathFigure(ct*et,(ft-ut)*tt,!1);st.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,(ct-rt)*et,(ft-ut)*tt,(ct-ut)*et,(ft-rt)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct-ut)*et,(ft+rt)*tt,(ct-rt)*et,(ft+ut)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,(ct+rt)*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ut)*tt,(ct+ut)*et,(ft-rt)*tt,(ct+rt)*et,(ft-ut)*tt));var ce=new go.PathFigure((ct-ut)*et,ft*tt,!1);return st.add(ce),gt(pt),gt(Pt),gt(Dt),gt(Zt),gt(qt),gt(te),st.spot1=new go.Spot(.202,.257),st.spot2=new go.Spot(.792,.739),st.defaultStretch=go.GraphObject.Uniform,st}),go.Shape.defineFigureGenerator("GenderFemale",function(mt,et,tt){var st=new go.Geometry,rt=.375,ut=0,ct=-.125,ft=rt*xt,pt=new go.PathFigure((.525+ut)*et,(.5+rt+ct)*tt,!1);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+rt+ut)*et,(.5+ct)*tt,(.5+ft+ut)*et,(.5+rt+ct)*tt,(.5+rt+ut)*et,(.5+ft+ct)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*et,(.5-rt+ct)*tt,(1-.5+rt+ut)*et,(.5-ft+ct)*tt,(.5+ft+ut)*et,(.5-rt+ct)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ut)*et,(.5+ct)*tt,(.5-ft+ut)*et,(.5-rt+ct)*tt,(.5-rt+ut)*et,(.5-ft+ct)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(.475+ut)*et,(.5+rt+ct)*tt,(.5-rt+ut)*et,(.5+ft+ct)*tt,(.5-ft+ut)*et,(.5+rt+ct)*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.475*et,.85*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.85*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.9*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.475*et,.9*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.475*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.525*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.9*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.9*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.85*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*tt).close()),rt=.325,ut=0,ct=-.125,ft=rt*xt;var pt=new go.PathFigure((1-.5+rt+ut)*et,(.5+ct)*tt,!1);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*et,(.5+rt+ct)*tt,(.5+rt+ut)*et,(.5+ft+ct)*tt,(.5+ft+ut)*et,(.5+rt+ct)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ut)*et,(.5+ct)*tt,(.5-ft+ut)*et,(.5+rt+ct)*tt,(.5-rt+ut)*et,(.5+ft+ct)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*et,(.5-rt+ct)*tt,(.5-rt+ut)*et,(.5-ft+ct)*tt,(.5-ft+ut)*et,(.5-rt+ct)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+rt+ut)*et,(.5+ct)*tt,(.5+ft+ut)*et,(.5-rt+ct)*tt,(1-.5+rt+ut)*et,(.5-ft+ct)*tt));var pt=new go.PathFigure((.525+ut)*et,(.5+rt+ct)*tt,!1);return st.add(pt),st.spot1=new go.Spot(.232,.136),st.spot2=new go.Spot(.682,.611),st.defaultStretch=go.GraphObject.Uniform,st}),go.Shape.defineFigureGenerator("LogicImplies",function(mt,et,tt){var st=mt?mt.parameter1:NaN;return isNaN(st)&&(st=.2),new go.Geometry().add(new go.PathFigure((1-st)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,tt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(mt,et,tt){var st=mt?mt.parameter1:NaN;return isNaN(st)&&(st=.2),new go.Geometry().add(new go.PathFigure((1-st)*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,(1-st)*et,tt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Move,st*et,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,st*et,tt))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)))}),go.Shape.defineFigureGenerator("LogicAnd",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,et,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(mt,et,tt){var st=new go.Geometry().add(new go.PathFigure(.5*et,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*et,.5*tt,.5*et,.5*tt)));return st.defaultStretch=go.GraphObject.Uniform,st}),go.Shape.defineFigureGenerator("LogicTruth",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.5*et,0)).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Move,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Move,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt)))}),go.Shape.defineFigureGenerator("LogicForAll",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*tt))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)).add(new go.PathSegment(go.PathSegment.Move,0,tt)).add(new go.PathSegment(go.PathSegment.Line,et,tt))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(mt,et,tt){var st=.5;return new go.Geometry().add(new go.PathFigure(0,tt,!1).add(new go.PathSegment(go.PathSegment.Line,0,st*tt)).add(new go.PathSegment(go.PathSegment.Arc,180,180,st*et,st*tt,st*et,st*tt)).add(new go.PathSegment(go.PathSegment.Line,et,tt))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(mt,et,tt){var st=.5;return new go.Geometry().add(new go.PathFigure(et,0,!1).add(new go.PathSegment(go.PathSegment.Line,et,st*tt)).add(new go.PathSegment(go.PathSegment.Arc,0,180,st*et,st*tt,st*et,st*tt)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Tn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Tn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=.3);var rt=mt?mt.parameter2:NaN;isNaN(rt)&&(rt=.3);var ut=(1-st)*et,ct=(.5-rt/2)*tt,ft=(.5+rt/2)*tt,pt=new go.Geometry,Pt=new go.PathFigure(0,ct,!0);pt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,ut,ct)),Pt.add(new go.PathSegment(go.PathSegment.Line,ut,0)),Pt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,ut,tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,ut,ft)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,ft).close()),pt.spot1=new go.Spot(0,ct/tt);var Dt=Xt(0,ft/tt,1,ft/tt,ut/et,1,1,.5,zt());return pt.spot2=new go.Spot(Dt.x,Dt.y),gt(Dt),pt}),go.Shape.setFigureParameter("Arrow2",0,new Tn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Tn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=30),st>et&&(st=et);var rt=mt?mt.parameter2:NaN;isNaN(rt)&&(rt=30),rt=Math.min(rt,tt/2);var ut=et-st,ct=(tt-rt)/2,ft=ct+rt,pt=new go.Geometry,Pt=new go.PathFigure(0,ct,!0);pt.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,ut,ct)),Pt.add(new go.PathSegment(go.PathSegment.Line,ut,0)),Pt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,ut,tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,ut,ft)),Pt.add(new go.PathSegment(go.PathSegment.Line,0,ft).close()),pt.spot1=new go.Spot(0,ct/tt);var Dt=Xt(0,ft/tt,1,ft/tt,ut/et,1,1,.5,zt());return pt.spot2=new go.Spot(Dt.x,Dt.y),gt(Dt),pt}),go.Shape.defineFigureGenerator("Chevron",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt).close()),st}),go.Shape.defineFigureGenerator("DoubleArrow",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.214*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,1*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.786*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,1*tt).close()),st}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Tn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=.3);var rt=(.5-st/2)*tt,ut=(.5+st/2)*tt,ct=new go.Geometry,ft=new go.PathFigure(et,.5*tt,!0);ct.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,.3*et,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,.3*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,.3*et,rt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close());var pt=Xt(0,.5,.3,0,0,rt/tt,.1,rt/tt,zt());return ct.spot1=new go.Spot(pt.x,pt.y),pt=Xt(.7,1,1,.5,0,ut/tt,1,ut/tt,pt),ct.spot2=new go.Spot(pt.x,pt.y),gt(pt),ct}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Tn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Tn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=40);var rt=mt?mt.parameter2:NaN;isNaN(rt)&&(rt=100);var ut=(tt-st)/2,ct=ut+st,ft=(tt-rt)/2,pt=ft+rt;(st>tt||rt>tt)&&(rt>st?(st=st*tt/rt,ut=(tt-st)/2,ct=ut+st,ft=0,pt=tt):(ut=0,ct=tt,ft=0,pt=tt));var Pt=new go.Geometry,Dt=new go.PathFigure(et,.5*tt,!0);Pt.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ct)),Dt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ct)),Dt.add(new go.PathSegment(go.PathSegment.Line,.3*et,pt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ft)),Dt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ut)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ft).close());var Zt=Xt(0,.5,.3,ft/tt,0,ut/tt,1,ut/tt,zt());return Pt.spot1=new go.Spot(Zt.x,Zt.y),Zt=Xt(.7,pt/tt,1,.5,0,ct/tt,1,ct/tt,Zt),Pt.spot2=new go.Spot(Zt.x,Zt.y),gt(Zt),Pt}),go.Shape.setFigureParameter("IBeamArrow",0,new Tn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=.3);var rt=(.5-st/2)*tt,ut=(.5+st/2)*tt,ct=new go.Geometry,ft=new go.PathFigure(et,.5*tt,!0);ct.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,0)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,rt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),ct.spot1=new go.Spot(0,rt/tt);var pt=Xt(.7,1,1,.5,0,ut/tt,1,ut/tt,zt());return ct.spot2=new go.Spot(pt.x,pt.y),gt(pt),ct}),go.Shape.setFigureParameter("IBeamArrow2",0,new Tn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Tn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=40);var rt=mt?mt.parameter2:NaN;isNaN(rt)&&(rt=100);var ut=(tt-st)/2,ct=ut+st,ft=(tt-rt)/2,pt=ft+rt;(st>tt||rt>tt)&&(rt>st?(st=st*tt/rt,ut=(tt-st)/2,ct=ut+st,ft=0,pt=tt):(ut=0,ct=tt,ft=0,pt=tt));var Pt=new go.Geometry,Dt=new go.PathFigure(et,.5*tt,!0);Pt.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,pt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ct)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ct)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*et,pt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,pt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,ft)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ft)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ut)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ft).close()),Pt.spot1=new go.Spot(0,ut/tt);var Zt=Xt(.7,pt/tt,1,.5,0,ct/tt,1,ct/tt,zt());return Pt.spot2=new go.Spot(Zt.x,Zt.y),gt(Zt),Pt}),go.Shape.setFigureParameter("Pointer",0,new Tn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=.1);var rt=new go.Geometry,ut=new go.PathFigure(et,.5*tt,!0);rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,st*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),rt.spot1=new go.Spot(st,.35);var ct=Xt(.2,.65,1,.65,0,1,1,.5,zt());return rt.spot2=new go.Spot(ct.x,ct.y),gt(ct),rt}),go.Shape.setFigureParameter("RoundedPointer",0,new Tn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=.3);var rt=new go.Geometry,ut=new go.PathFigure(et,.5*tt,!0);rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,0,0,st*et,.75*tt,st*et,.25*tt).close()),rt.spot1=new go.Spot(st,.35);var ct=Xt(0,.65,1,.65,0,1,1,.5,zt());return rt.spot2=new go.Spot(ct.x,ct.y),gt(ct),rt}),go.Shape.setFigureParameter("SplitEndArrow",0,new Tn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=.4);var rt=(.5-st/2)*tt,ut=(.5+st/2)*tt,ct=new go.Geometry,ft=new go.PathFigure(et,.5*tt,!0);ct.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,0,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,rt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),ct.spot1=new go.Spot(.2,.3);var pt=Xt(.7,1,1,.5,0,ut/tt,1,ut/tt,zt());return ct.spot2=new go.Spot(pt.x,pt.y),gt(pt),ct}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Tn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=50);var rt=(tt-st)/2,ut=rt+st;st>tt&&(rt=0,ut=tt);var ct=new go.Geometry,ft=new go.PathFigure(et,.5*tt,!0);ct.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,0,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,rt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),ft.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),ct.spot1=new go.Spot(.2,rt/tt);var pt=Xt(.7,1,1,.5,0,ut/tt,1,ut/tt,zt());return ct.spot2=new go.Spot(pt.x,pt.y),gt(pt),ct}),go.Shape.setFigureParameter("SquareArrow",0,new Tn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=.7);var rt=new go.Geometry,ut=new go.PathFigure(et,.5*tt,!0);return rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,st*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,0)),ut.add(new go.PathSegment(go.PathSegment.Line,st*et,0).close()),rt.spot1=go.Spot.TopLeft,rt.spot2=new go.Spot(st,1),rt}),go.Shape.defineFigureGenerator("Cone1",function(mt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=xt*.1,ct=new go.PathFigure(0,.9*tt,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ut)*tt,(.5+rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-rt)*et,tt,0,(.9+ut)*tt).close()),st.spot1=new go.Spot(.25,.5),st.spot2=new go.Spot(.75,.97),st}),go.Shape.defineFigureGenerator("Cone2",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.9*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*tt,(1-.85/.9)*et,tt,.85/.9*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.9*tt).close());var ut=new go.PathFigure(0,.9*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Bezier,et,.9*tt,(1-.85/.9)*et,.8*tt,.85/.9*et,.8*tt)),st.spot1=new go.Spot(.25,.5),st.spot2=new go.Spot(.75,.82),st}),go.Shape.defineFigureGenerator("Cube1",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.15*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt).close());var ut=new go.PathFigure(.5*et,tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.15*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.5*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),st.spot1=new go.Spot(0,.3),st.spot2=new go.Spot(.5,.85),st}),go.Shape.defineFigureGenerator("Cube2",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.3*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0).close());var ut=new go.PathFigure(0,.3*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.7*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Move,.7*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),st.spot1=new go.Spot(0,.3),st.spot2=new go.Spot(.7,1),st}),go.Shape.defineFigureGenerator("Cylinder1",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=5),st=Math.min(st,tt/3);var rt=new go.Geometry,ut=xt*.5,ct=new go.PathFigure(0,st,!0);rt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,xt*st,(.5-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,1*et,st,(.5+ut)*et,0,1*et,xt*st)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt-st)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,1*tt,1*et,tt-xt*st,(.5+ut)*et,1*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-st,(.5-ut)*et,1*tt,0,tt-xt*st)),ct.add(new go.PathSegment(go.PathSegment.Line,0,st));var ft=new go.PathFigure(et,st,!1);return rt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,2*st,1*et,2*st-xt*st,(.5+ut)*et,2*st)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,st,(.5-ut)*et,2*st,0,2*st-xt*st)),rt.spot1=new go.Spot(0,0,0,2*st),rt.spot2=new go.Spot(1,1),rt}),go.Shape.defineFigureGenerator("Cylinder2",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=5),st=Math.min(st,tt/3);var rt=new go.Geometry,ut=xt*.5,ct=new go.PathFigure(0,tt-st,!0);rt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,0,st)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,xt*st,(.5-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,st,(.5+ut)*et,0,et,xt*st)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt-st)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,tt-xt*st,(.5+ut)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-st,(.5-ut)*et,tt,0,tt-xt*st));var ft=new go.PathFigure(0,tt-st,!1);return rt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt-2*st,0,tt-st-xt*st,(.5-ut)*et,tt-2*st)),ft.add(new go.PathSegment(go.PathSegment.Bezier,et,tt-st,(.5+ut)*et,tt-2*st,et,tt-st-xt*st)),rt.spot1=new go.Spot(0,0),rt.spot2=new go.Spot(1,1,0,-2*st),rt}),go.Shape.defineFigureGenerator("Cylinder3",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=5),st=Math.min(st,et/3);var rt=new go.Geometry,ut=xt*.5,ct=new go.PathFigure(st,0,!0);rt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et-st,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,et-xt*st,0,et,(.5-ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et-st,tt,et,(.5+ut)*tt,et-xt*st,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,st,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,xt*st,tt,0,(.5+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,st,0,0,(.5-ut)*tt,xt*st,0));var ft=new go.PathFigure(st,0,!1);return rt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,2*st,.5*tt,st+xt*st,0,2*st,(.5-ut)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,st,tt,2*st,(.5+ut)*tt,st+xt*st,tt)),rt.spot1=new go.Spot(0,0,2*st,0),rt.spot2=new go.Spot(1,1),rt}),go.Shape.defineFigureGenerator("Cylinder4",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=5),st=Math.min(st,et/3);var rt=new go.Geometry,ut=xt*.5,ct=new go.PathFigure(et-st,0,!0);rt.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,et-xt*st,0,et,(.5-ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et-st,tt,et,(.5+ut)*tt,et-xt*st,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,st,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,xt*st,tt,0,(.5+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,st,0,0,(.5-ut)*tt,xt*st,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et-st,0));var ft=new go.PathFigure(et-st,0,!1);return rt.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,et-2*st,.5*tt,et-st-xt*st,0,et-2*st,(.5-ut)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,et-st,tt,et-2*st,(.5+ut)*tt,et-st-xt*st,tt)),rt.spot1=new go.Spot(0,0),rt.spot2=new go.Spot(1,1,-2*st,0),rt}),go.Shape.defineFigureGenerator("Prism1",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.25*et,.25*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(.25*et,.25*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),st.spot1=new go.Spot(.408,.172),st.spot2=new go.Spot(.833,.662),st}),go.Shape.defineFigureGenerator("Prism2",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.25*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(0,tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,0,.25*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.25*et,.5*tt)),st.spot1=new go.Spot(.25,.5),st.spot2=new go.Spot(.75,.75),st}),go.Shape.defineFigureGenerator("Pyramid1",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.75*tt).close());var ut=new go.PathFigure(.5*et,0,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),st.spot1=new go.Spot(.25,.367),st.spot2=new go.Spot(.75,.875),st}),go.Shape.defineFigureGenerator("Pyramid2",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt).close());var ut=new go.PathFigure(.5*et,0,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.85*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),st.spot1=new go.Spot(.25,.367),st.spot2=new go.Spot(.75,.875),st}),go.Shape.defineFigureGenerator("Actor",function(mt,et,tt){var st=new go.Geometry,rt=.2,ut=.1,ct=xt*rt,ft=xt*ut,pt=.5,Pt=.1,Dt=new go.PathFigure(pt*et,(Pt+ut)*tt,!0);st.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(pt-rt)*et,Pt*tt,(pt-ct)*et,(Pt+ut)*tt,(pt-rt)*et,(Pt+ft)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,(Pt-ut)*tt,(pt-rt)*et,(Pt-ft)*tt,(pt-ct)*et,(Pt-ut)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(pt+rt)*et,Pt*tt,(pt+ct)*et,(Pt-ut)*tt,(pt+rt)*et,(Pt-ft)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,(Pt+ut)*tt,(pt+rt)*et,(Pt+ft)*tt,(pt+ct)*et,(Pt+ut)*tt));var Zt=.05,Ft=xt*Zt;pt=.05,Pt=.25;var qt=new go.PathFigure(.5*et,.2*tt,!0);return st.add(qt),qt.add(new go.PathSegment(go.PathSegment.Line,.95*et,.2*tt)),pt=.95,Pt=.25,qt.add(new go.PathSegment(go.PathSegment.Bezier,(pt+Zt)*et,Pt*tt,(pt+Ft)*et,(Pt-Zt)*tt,(pt+Zt)*et,(Pt-Ft)*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.35*tt)),Zt=.025,Ft=xt*Zt,pt=.825,Pt=.35,qt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,(Pt-Zt)*tt,(pt+Zt)*et,(Pt-Ft)*tt,(pt+Ft)*et,(Pt-Zt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(pt-Zt)*et,Pt*tt,(pt-Ft)*et,(Pt-Zt)*tt,(pt-Zt)*et,(Pt-Ft)*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.55*et,tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*tt)),Zt=.05,Ft=xt*Zt,pt=.5,Pt=.7,qt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,(Pt-Zt)*tt,(pt+Zt)*et,(Pt-Ft)*tt,(pt+Ft)*et,(Pt-Zt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(pt-Zt)*et,Pt*tt,(pt-Ft)*et,(Pt-Zt)*tt,(pt-Zt)*et,(Pt-Ft)*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.45*et,tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.35*tt)),Zt=.025,Ft=xt*Zt,pt=.175,Pt=.35,qt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,(Pt-Zt)*tt,(pt+Zt)*et,(Pt-Ft)*tt,(pt+Ft)*et,(Pt-Zt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(pt-Zt)*et,Pt*tt,(pt-Ft)*et,(Pt-Zt)*tt,(pt-Zt)*et,(Pt-Ft)*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),Zt=.05,Ft=xt*Zt,pt=.05,Pt=.25,qt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,(Pt-Zt)*tt,(pt-Zt)*et,(Pt-Ft)*tt,(pt-Ft)*et,(Pt-Zt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*tt)),st.spot1=new go.Spot(.2,.2),st.spot2=new go.Spot(.8,.65),st}),go.Shape.setFigureParameter("Card",0,new Tn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(mt,et,tt){var st=mt?mt.parameter1:NaN;isNaN(st)&&(st=.2);var rt=new go.Geometry,ut=new go.PathFigure(et,0,!0);return rt.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,st*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,st*et,0).close()),rt.spot1=new go.Spot(0,st),rt.spot2=go.Spot.BottomRight,rt}),go.Shape.defineFigureGenerator("Collate",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,.5*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt));var ut=new go.PathFigure(.5*et,.5*tt,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),st.spot1=new go.Spot(.25,0),st.spot2=new go.Spot(.75,.25),st}),go.Shape.defineFigureGenerator("CreateRequest",function(mt,et,tt){var st=new go.Geometry,rt=mt?mt.parameter1:NaN;isNaN(rt)&&(rt=.1);var ut=new go.PathFigure(0,0,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure(0,rt*tt,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,rt*tt)),ct.add(new go.PathSegment(go.PathSegment.Move,0,(1-rt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,(1-rt)*tt)),st}),go.Shape.defineFigureGenerator("Database",function(mt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=xt*.1,ct=new go.PathFigure(et,.1*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ut)*tt,(.5+rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-rt)*et,tt,0,(.9+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-ut)*tt,(.5-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,(.5+rt)*et,0,et,(.1-ut)*tt));var ft=new go.PathFigure(et,.1*tt,!1);return st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,et,(.1+ut)*tt,(.5+rt)*et,.2*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*tt,(.5-rt)*et,.2*tt,0,(.1+ut)*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,et,.2*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,et,(.2+ut)*tt,(.5+rt)*et,.3*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*tt,(.5-rt)*et,.3*tt,0,(.2+ut)*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,et,.3*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.4*tt,et,(.3+ut)*tt,(.5+rt)*et,.4*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*tt,(.5-rt)*et,.4*tt,0,(.3+ut)*tt)),st.spot1=new go.Spot(0,.4),st.spot2=new go.Spot(1,.9),st}),go.Shape.defineFigureGenerator("DataStorage",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,tt,et,0,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.9*tt,.25*et,.1*tt).close()),st.spot1=new go.Spot(.226,0),st.spot2=new go.Spot(.81,1),st}),go.Shape.defineFigureGenerator("DiskStorage",function(mt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=xt*.1,ct=new go.PathFigure(et,.1*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.9+ut)*tt,(.5+rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,(.5-rt)*et,tt,0,(.9+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,(.1-ut)*tt,(.5-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,(.5+rt)*et,0,et,(.1-ut)*tt));var ft=new go.PathFigure(et,.1*tt,!1);return st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,et,(.1+ut)*tt,(.5+rt)*et,.2*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*tt,(.5-rt)*et,.2*tt,0,(.1+ut)*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,et,.2*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,et,(.2+ut)*tt,(.5+rt)*et,.3*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*tt,(.5-rt)*et,.3*tt,0,(.2+ut)*tt)),st.spot1=new go.Spot(0,.3),st.spot2=new go.Spot(1,.9),st}),go.Shape.defineFigureGenerator("Display",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.25*et,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,tt,et,0,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.25*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt).close()),st.spot1=new go.Spot(.25,0),st.spot2=new go.Spot(.75,1),st}),go.Shape.defineFigureGenerator("DividedEvent",function(mt,et,tt){var st=new go.Geometry,rt=mt?mt.parameter1:NaN;isNaN(rt)?rt=.2:rt<.15&&(rt=.15);var ut=xt*.2,ct=new go.PathFigure(0,.2*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,0,(.2-ut)*tt,(.2-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.2*tt,(.8+ut)*et,0,et,(.2-ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,tt,et,(.8+ut)*tt,(.8+ut)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*tt,(.2-ut)*et,tt,0,(.8+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt));var ft=new go.PathFigure(0,rt*tt,!1);return st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,rt*tt)),st}),go.Shape.defineFigureGenerator("DividedProcess",function(mt,et,tt){var st=new go.Geometry,rt=mt?mt.parameter1:NaN;(isNaN(rt)||rt<.1)&&(rt=.1);var ut=new go.PathFigure(0,0,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure(0,rt*tt,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,rt*tt)),st}),go.Shape.defineFigureGenerator("Document",function(mt,et,tt){var st=new go.Geometry;tt=tt/.8;var rt=new go.PathFigure(0,.7*tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.5*et,.4*tt,.5*et,tt).close()),st.spot1=go.Spot.TopLeft,st.spot2=new go.Spot(1,.6),st}),go.Shape.defineFigureGenerator("ExternalOrganization",function(mt,et,tt){var st=new go.Geometry,rt=mt?mt.parameter1:NaN;(isNaN(rt)||rt<.2)&&(rt=.2);var ut=new go.PathFigure(0,0,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure(rt*et,0,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,0,rt*tt)),ct.add(new go.PathSegment(go.PathSegment.Move,et,rt*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(1-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Move,0,(1-rt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Move,(1-rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,(1-rt)*tt)),st}),go.Shape.defineFigureGenerator("ExternalProcess",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt).close());var ut=new go.PathFigure(.1*et,.4*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.9*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.6*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.4*et,.9*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,.9*tt)),st.spot1=new go.Spot(.25,.25),st.spot2=new go.Spot(.75,.75),st}),go.Shape.defineFigureGenerator("File",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(.75*et,0,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),st.spot1=new go.Spot(0,.25),st.spot2=go.Spot.BottomRight,st}),go.Shape.defineFigureGenerator("Interrupt",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et,.5*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt));var ut=new go.PathFigure(et,.5*tt,!1);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt));var ct=new go.PathFigure(et,.5*tt,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,0)),st.spot1=new go.Spot(0,.25),st.spot2=new go.Spot(.5,.75),st}),go.Shape.defineFigureGenerator("InternalStorage",function(mt,et,tt){var st=new go.Geometry,rt=mt?mt.parameter1:NaN,ut=mt?mt.parameter2:NaN;isNaN(rt)&&(rt=.1),isNaN(ut)&&(ut=.1);var ct=new go.PathFigure(0,0,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ft=new go.PathFigure(rt*et,0,!1);return st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Move,0,ut*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,ut*tt)),st}),go.Shape.defineFigureGenerator("Junction",function(mt,et,tt){var st=new go.Geometry,rt=1/Math.SQRT2,ut=(1-1/Math.SQRT2)/2,ct=xt*.5,ft=.5,pt=new go.PathFigure(et,ft*tt,!0);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,tt,et,(ft+ct)*tt,(ft+ct)*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,ft*tt,(ft-ct)*et,tt,0,(ft+ct)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,0,0,(ft-ct)*tt,(ft-ct)*et,0)),pt.add(new go.PathSegment(go.PathSegment.Bezier,et,ft*tt,(ft+ct)*et,0,et,(ft-ct)*tt));var Pt=new go.PathFigure((ut+rt)*et,(ut+rt)*tt,!1);return st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,ut*et,ut*tt)),Pt.add(new go.PathSegment(go.PathSegment.Move,ut*et,(ut+rt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,(ut+rt)*et,ut*tt)),st}),go.Shape.defineFigureGenerator("LinedDocument",function(mt,et,tt){var st=new go.Geometry;tt=tt/.8;var rt=new go.PathFigure(0,.7*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.5*et,.4*tt,.5*et,tt).close());var ut=new go.PathFigure(.1*et,0,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,.75*tt)),st.spot1=new go.Spot(.1,0),st.spot2=new go.Spot(1,.6),st}),go.Shape.defineFigureGenerator("LoopLimit",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt).close()),st.spot1=new go.Spot(0,.25),st.spot2=go.Spot.BottomRight,st}),go.Shape.defineFigureGenerator("MagneticTape",function(mt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=.5,ct=new go.PathFigure(.5*et,tt,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,ut*tt,(ut-rt)*et,tt,0,(ut+rt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,0,0,(ut-rt)*tt,(ut-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,ut*tt,(ut+rt)*et,0,et,(ut-rt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,(ut+.1)*et,.9*tt,et,(ut+rt)*tt,(ut+rt)*et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),st.spot1=new go.Spot(.15,.15),st.spot2=new go.Spot(.85,.8),st}),go.Shape.defineFigureGenerator("ManualInput",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt).close()),st.spot1=new go.Spot(0,.25),st.spot2=go.Spot.BottomRight,st}),go.Shape.defineFigureGenerator("MessageFromUser",function(mt,et,tt){var st=new go.Geometry,rt=mt?mt.parameter1:NaN;isNaN(rt)&&(rt=.7);var ut=new go.PathFigure(0,0,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,rt*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st.spot1=go.Spot.TopLeft,st}),go.Shape.defineFigureGenerator("MicroformProcessing",function(mt,et,tt){var st=new go.Geometry,rt=mt?mt.parameter1:NaN;isNaN(rt)&&(rt=.25);var ut=new go.PathFigure(0,0,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,rt*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,(1-rt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st}),go.Shape.defineFigureGenerator("MicroformRecording",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st.spot1=new go.Spot(0,.25),st.spot2=new go.Spot(1,.75),st}),go.Shape.defineFigureGenerator("MultiDocument",function(mt,et,tt){var st=new go.Geometry;tt=tt/.8;var rt=new go.PathFigure(et,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.44*tt,.96*et,.47*tt,.93*et,.45*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.54*tt,.86*et,.57*tt,.83*et,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.4*et,.4*tt,.4*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0).close());var ut=new go.PathFigure(.1*et,.2*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.54*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.44*tt)),st.spot1=new go.Spot(0,.25),st.spot2=new go.Spot(.8,.77),st}),go.Shape.defineFigureGenerator("MultiProcess",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.1*et,.1*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*tt).close());var ut=new go.PathFigure(.2*et,.1*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.1*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.1*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.9*tt)),st.spot1=new go.Spot(0,.2),st.spot2=new go.Spot(.8,1),st}),go.Shape.defineFigureGenerator("OfflineStorage",function(mt,et,tt){var st=new go.Geometry,rt=mt?mt.parameter1:NaN;isNaN(rt)&&(rt=.1);var ut=1-rt,ct=new go.PathFigure(0,0,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt).close());var ft=new go.PathFigure(.5*rt*et,rt*tt,!1);return st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,(1-.5*rt)*et,rt*tt)),st}),go.Shape.defineFigureGenerator("OffPageConnector",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st.spot1=go.Spot.TopLeft,st.spot2=new go.Spot(.75,1),st}),go.Shape.defineFigureGenerator("Or",function(mt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=.5,ct=new go.PathFigure(et,ut*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,tt,et,(ut+rt)*tt,(ut+rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,ut*tt,(ut-rt)*et,tt,0,(ut+rt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,0,0,(ut-rt)*tt,(ut-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,ut*tt,(ut+rt)*et,0,et,(ut-rt)*tt));var ft=new go.PathFigure(et,.5*tt,!1);return st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,.5*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st}),go.Shape.defineFigureGenerator("PaperTape",function(mt,et,tt){var st=new go.Geometry;tt=tt/.8;var rt=new go.PathFigure(0,.7*tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.3*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.3*tt,.5*et,.6*tt,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*tt,.5*et,.4*tt,.5*et,tt).close()),st.spot1=new go.Spot(0,.49),st.spot2=new go.Spot(1,.75),st}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(mt,et,tt){var st=new go.Geometry,rt=mt?mt.parameter1:NaN,ut=mt?mt.parameter2:NaN;isNaN(rt)&&(rt=.1),isNaN(ut)&&(ut=.3);var ct=new go.PathFigure(0,0,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,(1-ut)*et,.5*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(mt,et,tt){var st=new go.Geometry,rt=mt?mt.parameter1:NaN,ut=mt?mt.parameter2:NaN;isNaN(rt)&&(rt=.1),isNaN(ut)&&(ut=.3);var ct=new go.PathFigure(0,0,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,(1-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(1-ut)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st}),go.Shape.defineFigureGenerator("Procedure",function(mt,et,tt){var st=new go.Geometry,rt=mt?mt.parameter1:NaN;isNaN(rt)&&(rt=.1);var ut=new go.PathFigure(0,0,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure((1-rt)*et,0,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,(1-rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Move,rt*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),st}),go.Shape.defineFigureGenerator("Process",function(mt,et,tt){var st=new go.Geometry,rt=mt?mt.parameter1:NaN;isNaN(rt)&&(rt=.1);var ut=new go.PathFigure(0,0,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ct=new go.PathFigure(rt*et,0,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),st.spot2=go.Spot.BottomRight,st}),go.Shape.defineFigureGenerator("Sort",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt).close());var ut=new go.PathFigure(0,.5*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),st.spot1=new go.Spot(.25,.25),st.spot2=new go.Spot(.75,.5),st}),go.Shape.defineFigureGenerator("Start",function(mt,et,tt){var st=new go.Geometry,rt=mt?mt.parameter1:NaN;isNaN(rt)&&(rt=.25);var ut=new go.PathFigure(rt*et,0,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*tt,.25*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*tt,.25*et,.5*tt));var ct=new go.PathFigure(rt*et,0,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Move,(1-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,(1-rt)*et,tt)),st.spot1=new go.Spot(rt,0),st.spot2=new go.Spot(1-rt,1),st}),go.Shape.defineFigureGenerator("Terminator",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.25*et,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*et,.5*tt,.25*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*et,.5*tt,.25*et,.5*tt)),st.spot1=new go.Spot(.23,0),st.spot2=new go.Spot(.77,1),st}),go.Shape.defineFigureGenerator("TransmittalTape",function(mt,et,tt){var st=new go.Geometry,rt=mt?mt.parameter1:NaN;isNaN(rt)&&(rt=.1);var ut=new go.PathFigure(0,0,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.75*et,(1-rt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,(1-rt)*tt).close()),st.spot1=go.Spot.TopLeft,st}),go.Shape.defineFigureGenerator("AndGate",function(mt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=new go.PathFigure(0,0,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ut.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(.5+rt)*et,0,et,(.5-rt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,(.5+rt)*tt,(.5+rt)*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st.spot1=go.Spot.TopLeft,st.spot2=new go.Spot(.55,1),st}),go.Shape.defineFigureGenerator("Buffer",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st.spot1=new go.Spot(0,.25),st.spot2=new go.Spot(.5,.75),st}),go.Shape.defineFigureGenerator("Clock",function(mt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=.5,ct=new go.PathFigure(et,ut*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,tt,et,(ut+rt)*tt,(ut+rt)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,ut*tt,(ut-rt)*et,tt,0,(ut+rt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,ut*et,0,0,(ut-rt)*tt,(ut-rt)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,ut*tt,(ut+rt)*et,0,et,(ut-rt)*tt));var ft=new go.PathFigure(et,ut*tt,!1);st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,ut*tt));var pt=new go.PathFigure(.8*et,.75*tt,!1);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.25*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.25*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.75*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.75*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.25*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.25*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.75*tt)),st}),go.Shape.defineFigureGenerator("Ground",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.3*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.4*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,tt)),st}),go.Shape.defineFigureGenerator("Inverter",function(mt,et,tt){var st=new go.Geometry,rt=xt*.1,ut=.1,ct=.9,ft=.5,pt=new go.PathFigure(.8*et,.5*tt,!0);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt));var Pt=new go.PathFigure((ct+ut)*et,ft*tt,!0);return st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt,(ct+rt)*et,(ft+ut)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,(ct-rt)*et,(ft+ut)*tt,(ct-ut)*et,(ft+rt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ut)*tt,(ct-ut)*et,(ft-rt)*tt,(ct-rt)*et,(ft-ut)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,(ct+rt)*et,(ft-ut)*tt,(ct+ut)*et,(ft-rt)*tt)),st.spot1=new go.Spot(0,.25),st.spot2=new go.Spot(.4,.75),st}),go.Shape.defineFigureGenerator("NandGate",function(mt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=xt*.4,ct=xt*.1,ft=.1,pt=.9,Pt=.5,Dt=new go.PathFigure(.8*et,.5*tt,!0);st.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,tt,.8*et,(.5+ut)*tt,(.4+rt)*et,tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,0)),Dt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(.4+rt)*et,0,.8*et,(.5-ut)*tt));var Zt=new go.PathFigure((pt+ft)*et,Pt*tt,!0);return st.add(Zt),Zt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,(Pt+ft)*tt,(pt+ft)*et,(Pt+ct)*tt,(pt+ct)*et,(Pt+ft)*tt)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(pt-ft)*et,Pt*tt,(pt-ct)*et,(Pt+ft)*tt,(pt-ft)*et,(Pt+ct)*tt)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,(Pt-ft)*tt,(pt-ft)*et,(Pt-ct)*tt,(pt-ct)*et,(Pt-ft)*tt)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(pt+ft)*et,Pt*tt,(pt+ct)*et,(Pt-ft)*tt,(pt+ft)*et,(Pt-ct)*tt)),st.spot1=new go.Spot(0,.05),st.spot2=new go.Spot(.55,.95),st}),go.Shape.defineFigureGenerator("NorGate",function(mt,et,tt){var st=new go.Geometry,rt=.5,ut=xt*rt,ct=0,ft=.5,pt=new go.PathFigure(.8*et,.5*tt,!0);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.7*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*tt,.25*et,.25*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(ct+ut)*et,(ft-rt)*tt,.7*et,(ft-ut)*tt)),rt=.1,ut=xt*.1,ct=.9,ft=.5;var Pt=new go.PathFigure((ct-rt)*et,ft*tt,!0);return st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-rt)*tt,(ct-rt)*et,(ft-ut)*tt,(ct-ut)*et,(ft-rt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,ft*tt,(ct+ut)*et,(ft-rt)*tt,(ct+rt)*et,(ft-ut)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+rt)*tt,(ct+rt)*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,ft*tt,(ct-ut)*et,(ft+rt)*tt,(ct-rt)*et,(ft+ut)*tt)),st.spot1=new go.Spot(.2,.25),st.spot2=new go.Spot(.6,.75),st}),go.Shape.defineFigureGenerator("OrGate",function(mt,et,tt){var st=new go.Geometry,rt=.5,ut=xt*rt,ct=0,ft=.5,pt=new go.PathFigure(0,0,!0);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(ct+ut+ut)*et,(ft-rt)*tt,.8*et,(ft-ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.8*et,(ft+ut)*tt,(ct+ut+ut)*et,(ft+rt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*tt,.25*et,.25*tt).close()),st.spot1=new go.Spot(.2,.25),st.spot2=new go.Spot(.75,.75),st}),go.Shape.defineFigureGenerator("XnorGate",function(mt,et,tt){var st=new go.Geometry,rt=.5,ut=xt*rt,ct=.2,ft=.5,pt=new go.PathFigure(.1*et,0,!1);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,tt,.35*et,.25*tt,.35*et,.75*tt));var Pt=new go.PathFigure(.8*et,.5*tt,!0);st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,tt,.7*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*tt,.45*et,.25*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(ct+ut)*et,(ft-rt)*tt,.7*et,(ft-ut)*tt)),rt=.1,ut=xt*.1,ct=.9,ft=.5;var Dt=new go.PathFigure((ct-rt)*et,ft*tt,!0);return st.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-rt)*tt,(ct-rt)*et,(ft-ut)*tt,(ct-ut)*et,(ft-rt)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,ft*tt,(ct+ut)*et,(ft-rt)*tt,(ct+rt)*et,(ft-ut)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+rt)*tt,(ct+rt)*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,ft*tt,(ct-ut)*et,(ft+rt)*tt,(ct-rt)*et,(ft+ut)*tt)),st.spot1=new go.Spot(.4,.25),st.spot2=new go.Spot(.65,.75),st}),go.Shape.defineFigureGenerator("XorGate",function(mt,et,tt){var st=new go.Geometry,rt=.5,ut=xt*rt,ct=.2,ft=.5,pt=new go.PathFigure(.1*et,0,!1);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,tt,.35*et,.25*tt,.35*et,.75*tt));var Pt=new go.PathFigure(.2*et,0,!0);return st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(ct+ut)*et,(ft-rt)*tt,.9*et,(ft-ut)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,tt,.9*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*tt,.45*et,.25*tt).close()),st.spot1=new go.Spot(.4,.25),st.spot2=new go.Spot(.8,.75),st}),go.Shape.defineFigureGenerator("Capacitor",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),st}),go.Shape.defineFigureGenerator("Resistor",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*tt)),st}),go.Shape.defineFigureGenerator("Inductor",function(mt,et,tt){var st=new go.Geometry,rt=xt*.1,ut=.1,ct=.1,ft=.5,pt=new go.PathFigure((ct-rt*.5)*et,tt,!1);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-rt)*et,tt,(ct-ut)*et,0)),ct=.3,pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,tt,(ct+ut)*et,0,(ct+rt)*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-rt)*et,tt,(ct-ut)*et,0)),ct=.5,pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,tt,(ct+ut)*et,0,(ct+rt)*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-rt)*et,tt,(ct-ut)*et,0)),ct=.7,pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,tt,(ct+ut)*et,0,(ct+rt)*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-rt)*et,tt,(ct-ut)*et,0)),ct=.9,pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt*.5)*et,tt,(ct+ut)*et,0,(ct+rt)*et,tt)),st}),go.Shape.defineFigureGenerator("ACvoltageSource",function(mt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=.5,ct=.5,ft=.5,pt=new go.PathFigure((ct-ut)*et,ft*tt,!1);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-ut)*tt,(ct-ut)*et,(ft-rt)*tt,(ct-rt)*et,(ft-ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,(ct+rt)*et,(ft-ut)*tt,(ct+ut)*et,(ft-rt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt,(ct+rt)*et,(ft+ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,(ct-rt)*et,(ft+ut)*tt,(ct-ut)*et,(ft+rt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,(ct-ut+.1)*et,ft*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut-.1)*et,ft*tt,ct*et,(ft-ut)*tt,ct*et,(ft+ut)*tt)),st}),go.Shape.defineFigureGenerator("DCvoltageSource",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.75*tt,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),st}),go.Shape.defineFigureGenerator("Diode",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),st.spot1=new go.Spot(0,.25),st.spot2=new go.Spot(.5,.75),st}),go.Shape.defineFigureGenerator("Wifi",function(mt,et,tt){var st=new go.Geometry,rt=et,ut=tt;et=et*.38,tt=tt*.6;var ct=xt*.8,ft=.8,pt=0,Pt=.5,Dt=(rt-et)/2,Zt=(ut-tt)/2,Ft=new go.PathFigure(pt*et+Dt,(Pt+ft)*tt+Zt,!0);st.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(pt-ft)*et+Dt,Pt*tt+Zt,(pt-ct)*et+Dt,(Pt+ft)*tt+Zt,(pt-ft)*et+Dt,(Pt+ct)*tt+Zt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,pt*et+Dt,(Pt-ft)*tt+Zt,(pt-ft)*et+Dt,(Pt-ct)*tt+Zt,(pt-ct)*et+Dt,(Pt-ft)*tt+Zt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(pt-ft+ct*.5)*et+Dt,Pt*tt+Zt,pt*et+Dt,(Pt-ft)*tt+Zt,(pt-ft+ct*.5)*et+Dt,(Pt-ct)*tt+Zt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,pt*et+Dt,(Pt+ft)*tt+Zt,(pt-ft+ct*.5)*et+Dt,(Pt+ct)*tt+Zt,pt*et+Dt,(Pt+ft)*tt+Zt).close()),ct=xt*.4,ft=.4,pt=.2,Pt=.5;var qt=new go.PathFigure(pt*et+Dt,(Pt+ft)*tt+Zt,!0);st.add(qt),qt.add(new go.PathSegment(go.PathSegment.Bezier,(pt-ft)*et+Dt,Pt*tt+Zt,(pt-ct)*et+Dt,(Pt+ft)*tt+Zt,(pt-ft)*et+Dt,(Pt+ct)*tt+Zt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et+Dt,(Pt-ft)*tt+Zt,(pt-ft)*et+Dt,(Pt-ct)*tt+Zt,(pt-ct)*et+Dt,(Pt-ft)*tt+Zt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(pt-ft+ct*.5)*et+Dt,Pt*tt+Zt,pt*et+Dt,(Pt-ft)*tt+Zt,(pt-ft+ct*.5)*et+Dt,(Pt-ct)*tt+Zt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et+Dt,(Pt+ft)*tt+Zt,(pt-ft+ct*.5)*et+Dt,(Pt+ct)*tt+Zt,pt*et+Dt,(Pt+ft)*tt+Zt).close()),ct=xt*.2,ft=.2,pt=.5,Pt=.5;var te=new go.PathFigure((pt-ft)*et+Dt,Pt*tt+Zt,!0);st.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,pt*et+Dt,(Pt-ft)*tt+Zt,(pt-ft)*et+Dt,(Pt-ct)*tt+Zt,(pt-ct)*et+Dt,(Pt-ft)*tt+Zt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(pt+ft)*et+Dt,Pt*tt+Zt,(pt+ct)*et+Dt,(Pt-ft)*tt+Zt,(pt+ft)*et+Dt,(Pt-ct)*tt+Zt)),te.add(new go.PathSegment(go.PathSegment.Bezier,pt*et+Dt,(Pt+ft)*tt+Zt,(pt+ft)*et+Dt,(Pt+ct)*tt+Zt,(pt+ct)*et+Dt,(Pt+ft)*tt+Zt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(pt-ft)*et+Dt,Pt*tt+Zt,(pt-ct)*et+Dt,(Pt+ft)*tt+Zt,(pt-ft)*et+Dt,(Pt+ct)*tt+Zt)),ct=xt*.4,ft=.4,pt=.8,Pt=.5;var Gt=new go.PathFigure(pt*et+Dt,(Pt-ft)*tt+Zt,!0);st.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(pt+ft)*et+Dt,Pt*tt+Zt,(pt+ct)*et+Dt,(Pt-ft)*tt+Zt,(pt+ft)*et+Dt,(Pt-ct)*tt+Zt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et+Dt,(Pt+ft)*tt+Zt,(pt+ft)*et+Dt,(Pt+ct)*tt+Zt,(pt+ct)*et+Dt,(Pt+ft)*tt+Zt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,(pt+ft-ct*.5)*et+Dt,Pt*tt+Zt,pt*et+Dt,(Pt+ft)*tt+Zt,(pt+ft-ct*.5)*et+Dt,(Pt+ct)*tt+Zt)),Gt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et+Dt,(Pt-ft)*tt+Zt,(pt+ft-ct*.5)*et+Dt,(Pt-ct)*tt+Zt,pt*et+Dt,(Pt-ft)*tt+Zt).close()),ct=xt*.8,ft=.8,pt=1,Pt=.5;var ce=new go.PathFigure(pt*et+Dt,(Pt-ft)*tt+Zt,!0);return st.add(ce),ce.add(new go.PathSegment(go.PathSegment.Bezier,(pt+ft)*et+Dt,Pt*tt+Zt,(pt+ct)*et+Dt,(Pt-ft)*tt+Zt,(pt+ft)*et+Dt,(Pt-ct)*tt+Zt)),ce.add(new go.PathSegment(go.PathSegment.Bezier,pt*et+Dt,(Pt+ft)*tt+Zt,(pt+ft)*et+Dt,(Pt+ct)*tt+Zt,(pt+ct)*et+Dt,(Pt+ft)*tt+Zt)),ce.add(new go.PathSegment(go.PathSegment.Bezier,(pt+ft-ct*.5)*et+Dt,Pt*tt+Zt,pt*et+Dt,(Pt+ft)*tt+Zt,(pt+ft-ct*.5)*et+Dt,(Pt+ct)*tt+Zt)),ce.add(new go.PathSegment(go.PathSegment.Bezier,pt*et+Dt,(Pt-ft)*tt+Zt,(pt+ft-ct*.5)*et+Dt,(Pt-ct)*tt+Zt,pt*et+Dt,(Pt-ft)*tt+Zt).close()),st}),go.Shape.defineFigureGenerator("Email",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ut=new go.PathFigure(0,0,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,0)),ut.add(new go.PathSegment(go.PathSegment.Move,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.45*et,.54*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.55*et,.54*tt)),st}),go.Shape.defineFigureGenerator("Ethernet",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.35*et,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.65*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.35*et,0).close());var ut=new go.PathFigure(.1*et,tt,!0,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.1*et,tt).close());var ct=new go.PathFigure(.6*et,tt,!0,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,.6*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.6*et,.6*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.6*et,tt).close());var ft=new go.PathFigure(0,.5*tt,!1);return st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,.75*et,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.75*et,.6*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.25*et,.6*tt)),st}),go.Shape.defineFigureGenerator("Power",function(mt,et,tt){var st=new go.Geometry,rt=xt*.4,ut=.4,ct=.5,ft=.5,pt=zt(),Pt=zt(),Dt=zt(),Zt=zt();Qt(ct,ft-ut,ct+rt,ft-ut,ct+ut,ft-rt,ct+ut,ft,.5,pt,pt,Pt,Dt,Zt);var Ft=Kt(Pt.x,Pt.y),qt=new go.PathFigure(Pt.x*et,Pt.y*tt,!0);st.add(qt),qt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,Dt.x*et,Dt.y*tt,Zt.x*et,Zt.y*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt,(ct+rt)*et,(ft+ut)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,(ct-rt)*et,(ft+ut)*tt,(ct-ut)*et,(ft+rt)*tt)),Qt(ct-ut,ft,ct-ut,ft-rt,ct-rt,ft-ut,ct,ft-ut,.5,Dt,Zt,Pt,pt,pt),qt.add(new go.PathSegment(go.PathSegment.Bezier,Pt.x*et,Pt.y*tt,Dt.x*et,Dt.y*tt,Zt.x*et,Zt.y*tt)),rt=xt*.3,ut=.3,Qt(ct-ut,ft,ct-ut,ft-rt,ct-rt,ft-ut,ct,ft-ut,.5,Dt,Zt,Pt,pt,pt),qt.add(new go.PathSegment(go.PathSegment.Line,Pt.x*et,Pt.y*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,ft*tt,Zt.x*et,Zt.y*tt,Dt.x*et,Dt.y*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+ut)*tt,(ct-ut)*et,(ft+rt)*tt,(ct-rt)*et,(ft+ut)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,ft*tt,(ct+rt)*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt)),Qt(ct,ft-ut,ct+rt,ft-ut,ct+ut,ft-rt,ct+ut,ft,.5,pt,pt,Pt,Dt,Zt),qt.add(new go.PathSegment(go.PathSegment.Bezier,Pt.x*et,Pt.y*tt,Zt.x*et,Zt.y*tt,Dt.x*et,Dt.y*tt).close());var qt=new go.PathFigure(.45*et,0,!0);return st.add(qt),qt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.5*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.55*et,.5*tt)),qt.add(new go.PathSegment(go.PathSegment.Line,.55*et,0).close()),gt(pt),gt(Pt),gt(Dt),gt(Zt),gt(Ft),st.spot1=new go.Spot(.25,.45),st.spot2=new go.Spot(.75,.8),st}),go.Shape.defineFigureGenerator("Fallout",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt/2,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,180,360,et/2,tt/2,et/2,tt/2));function ut(ct,ft,pt){ct.add(new go.PathSegment(go.PathSegment.Move,(.3+ft)*et,(.8+pt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(.5+ft)*et,(.5+pt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(.1+ft)*et,(.5+pt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(.3+ft)*et,(.8+pt)*tt).close())}return ut(rt,0,0),ut(rt,.4,0),ut(rt,.2,-.3),st}),go.Shape.defineFigureGenerator("IrritationHazard",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.2*et,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.3*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt).close()),st.spot1=new go.Spot(.3,.3),st.spot2=new go.Spot(.7,.7),st}),go.Shape.defineFigureGenerator("ElectricalHazard",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.37*et,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.11*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.77*et,.04*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.49*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.37*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.63*et,.86*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.77*et,.91*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.34*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.34*et,.78*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.44*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.56*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.68*tt).close()),st}),go.Shape.defineFigureGenerator("FireHazard",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.1*et,tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.29*et,0,-.25*et,.63*tt,.45*et,.44*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.51*et,.42*tt,.48*et,.17*tt,.54*et,.35*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.59*et,.18*tt,.59*et,.29*tt,.58*et,.28*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.75*et,.6*tt,.8*et,.34*tt,.88*et,.43*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.88*et,.31*tt,.87*et,.48*tt,.88*et,.43*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,tt,1.17*et,.76*tt,.82*et,.8*tt).close()),st.spot1=new go.Spot(.07,.445),st.spot2=new go.Spot(.884,.958),st}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(mt,et,tt){var st=new go.Geometry,rt=.5,ut=0,ct=0,ft=rt*xt,pt=.4*Math.SQRT2/2+.5,Pt=.5-.5*Math.SQRT2/2,Dt=1,Zt=.5,Ft=.5,qt=0,te=new go.PathFigure(pt*et,(1-Pt)*tt,!1);return st.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,Zt*tt,Dt*et,.7*tt,Dt*et,Zt*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+ut)*et,(qt+ut)*tt,(.5+rt+ut)*et,(.5-ft+ut)*tt,(.5+ft+ut)*et,(.5-rt+ut)*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ut)*et,(.5+ct)*tt,(.5-ft+ut)*et,(.5-rt+ct)*tt,(.5-rt+ut)*et,(.5-ft+ct)*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(.35+ut)*et,.9*tt,(.5-rt+ut)*et,(.5+ft+ct)*tt,(.5-ft+ut)*et,.9*tt)),te.add(new go.PathSegment(go.PathSegment.Move,(.25+ut)*et,.8*tt)),te.add(new go.PathSegment(go.PathSegment.Line,(.35+ut)*et,.9*tt)),te.add(new go.PathSegment(go.PathSegment.Line,(.2+ut)*et,.95*tt)),st}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),st}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),st}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);st.add(rt);var ut=new go.PathFigure(et,tt,!1);st.add(ut);var ct=new go.PathFigure(0,.5*tt,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*tt,.2*et,.35*tt,.3*et,.35*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,.7*et,.65*tt,.8*et,.65*tt)),st}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt).close()),st}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.2*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt).close());var rt=new go.PathFigure(0,.2*tt,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),st}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.7*et,tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,0,.6*et,.5*tt,0,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,tt,.4*et,.5*tt,et,.5*tt).close());var ut=new go.PathFigure(.45*et,.73*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.7*et,.73*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.38*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.63*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.31*et,.27*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.56*et,.27*tt)),st}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);st.add(rt);var ut=new go.PathFigure(.335*et,(1-.555)*tt,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,et,.68*tt,(1-.12)*et,.46*tt,(1-.02)*et,.54*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.68*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.335*et,(1-.555)*tt,.02*et,.54*tt,.12*et,.46*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.365*et,(1-.595)*tt));var ct=.5-.285,ft=.5,pt=ct,Pt=Math.PI/4,Dt=4*(1-Math.cos(Pt))/(3*Math.sin(Pt)),Zt=Dt*.5,Ft=ct,qt=ct,te=Dt*Ft,Gt=Dt*qt;ut.add(new go.PathSegment(go.PathSegment.Bezier,(ft-Ft)*et,pt*tt,(ft-(te+Ft)/2)*et,(pt+(qt+Gt)/2)*tt,(ft-Ft)*et,(pt+Gt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,ft*et,(pt-qt)*tt,(ft-Ft)*et,(pt-Gt)*tt,(ft-te)*et,(pt-qt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(ft+Ft)*et,pt*tt,(ft+te)*et,(pt-qt)*tt,(ft+Ft)*et,(pt-Gt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*et,(1-.595)*tt,(ft+Ft)*et,(pt+Gt)*tt,(ft+(te+Ft)/2)*et,(pt+(qt+Gt)/2)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*et,(1-.595)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.555)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*et,(1-.405)*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.335*et,(1-.405)*tt));var ce=new go.PathFigure(.2*et,tt,!1);st.add(ce),ce.add(new go.PathSegment(go.PathSegment.Line,.2*et,.8*tt));var ae=new go.PathFigure(.8*et,tt,!1);return st.add(ae),ae.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*tt)),st}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.1*et,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,tt).close());var ut=new go.PathFigure(.2*et,.2*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*tt)),st}),go.Shape.defineFigureGenerator("BpmnEventError",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.66*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.66*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.5*tt).close()),st}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);st.add(rt);var ut=new go.PathFigure(et,tt,!1);st.add(ut);var ct=new go.PathFigure(.1*et,tt,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt).close()),st}),go.Shape.defineFigureGenerator("Caution",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.05*et,tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.8*tt,0,tt,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.55*et,.1*tt,.5*et,0,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.95*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,tt,et,tt,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.05*et,tt));var ut=.05;return rt.add(new go.PathSegment(go.PathSegment.Move,(.5-ut)*et,.875*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*et,.875*tt,ut*et,ut*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.325*tt,.575*et,.725*tt,.625*et,.375*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.75*tt,.375*et,.375*tt,.425*et,.725*tt)),st}),go.Shape.defineFigureGenerator("Recycle",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.45*et,.95*tt,!1);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.95*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.185*et,.85*tt,.17*et,.95*tt,.15*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.235*et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.3*et,.625*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.275*et,.45*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.05*et,.45*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.05*et,.575*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.1875*et,.95*tt,0,.675*tt,0,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.45*et,.95*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.775*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.22*et,.775*tt));var ut=new go.PathFigure(.475*et,.2*tt,!1);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.4*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.225*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.275*et,.175*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.325*et,.05*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.05*tt,.35*et,0,.375*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.575*et,.375*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.525*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.75*et,.475*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.85*et,.315*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.32*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*et,.05*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,0,.65*et,.05*tt,.625*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.38*et,.0105*tt));var ct=new go.PathFigure(.675*et,.575*tt,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.875*et,.525*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.775*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,.85*et,.95*tt,et,.8*tt,et,.85*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.65*et,.95*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.65*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.85*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.65*et,.725*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.65*et,.775*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.7*et,.775*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,et,.775*tt)),ct.add(new go.PathSegment(go.PathSegment.Move,.675*et,.575*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.775*et,.775*tt)),st}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(mt,et,tt){var st=new go.Geometry,rt=.5,ut=xt*.5,ct=new go.PathFigure(et,rt*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Bezier,rt*et,tt,et,(rt+ut)*tt,(rt+ut)*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,rt*tt,(rt-ut)*et,tt,0,(rt+ut)*tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,rt*et,0,0,(rt-ut)*tt,(rt-ut)*et,0)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et,rt*tt,(rt+ut)*et,0,et,(rt-ut)*tt));var ft=new go.PathFigure(rt*et,0,!1);return st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,rt*et,.15*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,rt*et,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,rt*et,.85*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,0,rt*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.15*et,rt*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,et,rt*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.85*et,rt*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,rt*et,rt*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.58*et,.1*tt)),ft.add(new go.PathSegment(go.PathSegment.Move,rt*et,rt*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.78*et,.54*tt)),st}),go.Shape.defineFigureGenerator("Package",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.15*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,.15*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close());var ut=new go.PathFigure(0,.15*tt,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.65*et,.15*tt).close()),st.spot1=new go.Spot(0,.1),st.spot2=new go.Spot(1,1),st}),go.Shape.defineFigureGenerator("Class",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ut=new go.PathFigure(0,.2*tt,!1);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt).close());var ct=new go.PathFigure(0,.5*tt,!1);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt).close()),st}),go.Shape.defineFigureGenerator("Component",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et,tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt).close());var ut=new go.PathFigure(0,.2*tt,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.45*et,.2*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.2*tt).close());var ct=new go.PathFigure(0,.6*tt,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.45*et,.6*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.45*et,.8*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt).close()),st}),go.Shape.defineFigureGenerator("Boat Shipment",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.15*et,.6*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.6*tt));var ut=new go.PathFigure(.15*et,.6*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.85*et,.6*tt)),st}),go.Shape.defineFigureGenerator("Customer/Supplier",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et,tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.66*et,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.66*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.33*et,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.33*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt).close()),st}),go.Shape.defineFigureGenerator("Workcell",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.65*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.65*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.35*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.35*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),st}),go.Shape.defineFigureGenerator("Supermarket",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,et,.33*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.66*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.66*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,et,.66*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),st}),go.Shape.defineFigureGenerator("TruckShipment",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ut=new go.PathFigure(et,.8*tt,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.6*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt).close());var ct=.1,ft=xt*.1,pt=.2,Pt=.9,Dt=new go.PathFigure((pt-ct)*et,Pt*tt,!0);st.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,(Pt-ct)*tt,(pt-ct)*et,(Pt-ft)*tt,(pt-ft)*et,(Pt-ct)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(pt+ct)*et,Pt*tt,(pt+ft)*et,(Pt-ct)*tt,(pt+ct)*et,(Pt-ft)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,(Pt+ct)*tt,(pt+ct)*et,(Pt+ft)*tt,(pt+ft)*et,(Pt+ct)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(pt-ct)*et,Pt*tt,(pt-ft)*et,(Pt+ct)*tt,(pt-ct)*et,(Pt+ft)*tt).close()),ct=.1,ft=xt*.1,pt=.8,Pt=.9;var Zt=new go.PathFigure((pt-ct)*et,Pt*tt,!0);return st.add(Zt),Zt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,(Pt-ct)*tt,(pt-ct)*et,(Pt-ft)*tt,(pt-ft)*et,(Pt-ct)*tt)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(pt+ct)*et,Pt*tt,(pt+ft)*et,(Pt-ct)*tt,(pt+ct)*et,(Pt-ft)*tt)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,(Pt+ct)*tt,(pt+ct)*et,(Pt+ft)*tt,(pt+ft)*et,(Pt+ct)*tt)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(pt-ct)*et,Pt*tt,(pt-ft)*et,(Pt+ct)*tt,(pt-ct)*et,(Pt+ft)*tt).close()),st}),go.Shape.defineFigureGenerator("KanbanPost",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.2*et,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,0)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,tt)),st}),go.Shape.defineFigureGenerator("Forklift",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0));var ut=new go.PathFigure(0,.5*tt,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var ct=new go.PathFigure(.5*et,.8*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,.1*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.1*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.8*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,.8*tt));var ft=new go.PathFigure(.5*et,.7*tt,!1);st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt));var pt=.1,Pt=xt*.1,Dt=.1,Zt=.9,Ft=new go.PathFigure((Dt-pt)*et,Zt*tt,!0);st.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Zt-pt)*tt,(Dt-pt)*et,(Zt-Pt)*tt,(Dt-Pt)*et,(Zt-pt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+pt)*et,Zt*tt,(Dt+Pt)*et,(Zt-pt)*tt,(Dt+pt)*et,(Zt-Pt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Zt+pt)*tt,(Dt+pt)*et,(Zt+Pt)*tt,(Dt+Pt)*et,(Zt+pt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-pt)*et,Zt*tt,(Dt-Pt)*et,(Zt+pt)*tt,(Dt-pt)*et,(Zt+Pt)*tt)),pt=.1,Pt=xt*.1,Dt=.4,Zt=.9;var qt=new go.PathFigure((Dt-pt)*et,Zt*tt,!0);return st.add(qt),qt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Zt-pt)*tt,(Dt-pt)*et,(Zt-Pt)*tt,(Dt-Pt)*et,(Zt-pt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+pt)*et,Zt*tt,(Dt+Pt)*et,(Zt-pt)*tt,(Dt+pt)*et,(Zt-Pt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Zt+pt)*tt,(Dt+pt)*et,(Zt+Pt)*tt,(Dt+Pt)*et,(Zt+pt)*tt)),qt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-pt)*et,Zt*tt,(Dt-Pt)*et,(Zt+pt)*tt,(Dt-pt)*et,(Zt+Pt)*tt)),st}),go.Shape.defineFigureGenerator("RailShipment",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.1*et,.4*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.45*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.4*tt).close());var ut=new go.PathFigure(.45*et,.7*tt,!1);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.55*et,.7*tt));var ct=new go.PathFigure(.55*et,.4*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.9*et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.9*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.55*et,.4*tt).close());var Dt=.05,Zt=xt*.05,Ft=.175,qt=.95,ft=new go.PathFigure((Ft-Dt)*et,qt*tt,!0);st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(qt-Dt)*tt,(Ft-Dt)*et,(qt-Zt)*tt,(Ft-Zt)*et,(qt-Dt)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Dt)*et,qt*tt,(Ft+Zt)*et,(qt-Dt)*tt,(Ft+Dt)*et,(qt-Zt)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(qt+Dt)*tt,(Ft+Dt)*et,(qt+Zt)*tt,(Ft+Zt)*et,(qt+Dt)*tt)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Dt)*et,qt*tt,(Ft-Zt)*et,(qt+Dt)*tt,(Ft-Dt)*et,(qt+Zt)*tt));var Dt=.05,Zt=xt*.05,Ft=.375,qt=.95,pt=new go.PathFigure((Ft-Dt)*et,qt*tt,!0);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(qt-Dt)*tt,(Ft-Dt)*et,(qt-Zt)*tt,(Ft-Zt)*et,(qt-Dt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Dt)*et,qt*tt,(Ft+Zt)*et,(qt-Dt)*tt,(Ft+Dt)*et,(qt-Zt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(qt+Dt)*tt,(Ft+Dt)*et,(qt+Zt)*tt,(Ft+Zt)*et,(qt+Dt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Dt)*et,qt*tt,(Ft-Zt)*et,(qt+Dt)*tt,(Ft-Dt)*et,(qt+Zt)*tt));var Dt=.05,Zt=xt*.05,Ft=.625,qt=.95,Pt=new go.PathFigure((Ft-Dt)*et,qt*tt,!0);st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(qt-Dt)*tt,(Ft-Dt)*et,(qt-Zt)*tt,(Ft-Zt)*et,(qt-Dt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Dt)*et,qt*tt,(Ft+Zt)*et,(qt-Dt)*tt,(Ft+Dt)*et,(qt-Zt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(qt+Dt)*tt,(Ft+Dt)*et,(qt+Zt)*tt,(Ft+Zt)*et,(qt+Dt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Dt)*et,qt*tt,(Ft-Zt)*et,(qt+Dt)*tt,(Ft-Dt)*et,(qt+Zt)*tt));var Dt=.05,Zt=xt*.05,Ft=.825,qt=.95,te=new go.PathFigure((Ft-Dt)*et,qt*tt,!0);st.add(te),te.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(qt-Dt)*tt,(Ft-Dt)*et,(qt-Zt)*tt,(Ft-Zt)*et,(qt-Dt)*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Dt)*et,qt*tt,(Ft+Zt)*et,(qt-Dt)*tt,(Ft+Dt)*et,(qt-Zt)*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(qt+Dt)*tt,(Ft+Dt)*et,(qt+Zt)*tt,(Ft+Zt)*et,(qt+Dt)*tt)),te.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Dt)*et,qt*tt,(Ft-Zt)*et,(qt+Dt)*tt,(Ft-Dt)*et,(qt+Zt)*tt).close());var Gt=new go.PathFigure(0,tt,!1);return st.add(Gt),Gt.add(new go.PathSegment(go.PathSegment.Line,et,tt).close()),st}),go.Shape.defineFigureGenerator("Warehouse",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ut=new go.PathFigure(0,.2*tt,!1);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt).close());var ct=new go.PathFigure(.15*et,tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.15*et,.5*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.4*et,.5*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.4*et,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.15*et,tt).close());var ft=.05,pt=xt*.05,Pt=.35,Dt=.775,Zt=new go.PathFigure((Pt-ft)*et,Dt*tt,!0);return st.add(Zt),Zt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*et,(Dt-ft)*tt,(Pt-ft)*et,(Dt-pt)*tt,(Pt-pt)*et,(Dt-ft)*tt)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt+ft)*et,Dt*tt,(Pt+pt)*et,(Dt-ft)*tt,(Pt+ft)*et,(Dt-pt)*tt)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,Pt*et,(Dt+ft)*tt,(Pt+ft)*et,(Dt+pt)*tt,(Pt+pt)*et,(Dt+ft)*tt)),Zt.add(new go.PathSegment(go.PathSegment.Bezier,(Pt-ft)*et,Dt*tt,(Pt-pt)*et,(Dt+ft)*tt,(Pt-ft)*et,(Dt+pt)*tt).close()),st}),go.Shape.defineFigureGenerator("ControlCenter",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.1*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt).close()),st}),go.Shape.defineFigureGenerator("Bluetooth",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.75*tt,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.25*tt)),st}),go.Shape.defineFigureGenerator("Bookmark",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*tt)),st}),go.Shape.defineFigureGenerator("Bookmark",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,0,0)),rt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.2*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.4*tt)),st}),go.Shape.defineFigureGenerator("Globe",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,0,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,.75*et,0,et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,et,.75*tt,.75*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,.25*et,tt,0,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,0,.25*tt,.25*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt,.15*et,.25*tt,.15*et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.85*et,.75*tt,.85*et,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.15*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.15*tt,.35*et,.3*tt,.65*et,.3*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.1675*et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.8325*et,.85*tt,.35*et,.7*tt,.65*et,.7*tt)),st}),go.Shape.defineFigureGenerator("Wave",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.25*tt,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.25*tt,.1*et,0,.2*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.25*tt,.425*et,.5*tt,.575*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.25*tt,.8*et,0,.9*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,0,.25*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.75*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.75*tt,.1*et,.5*tt,.2*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.7*et,.75*tt,.425*et,tt,.575*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.75*tt,.8*et,.5*tt,.9*et,.5*tt)),st}),go.Shape.defineFigureGenerator("Operator",function(mt,et,tt){var st=new go.Geometry,rt=.3,ut=xt*.3,ct=.5,ft=.7,pt=new go.PathFigure((ct-rt)*et,ft*tt,!0);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-rt)*tt,(ct-rt)*et,(ft-ut)*tt,(ct-ut)*et,(ft-rt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,ft*tt,(ct+ut)*et,(ft-rt)*tt,(ct+rt)*et,(ft-ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+rt)*tt,(ct+rt)*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,ft*tt,(ct-ut)*et,(ft+rt)*tt,(ct-rt)*et,(ft+ut)*tt));var Pt=new go.PathFigure(0,.7*tt,!1);return st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,et,.7*tt,0,0,et,0)),st}),go.Shape.defineFigureGenerator("TripleFanBlades",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.5*et,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*tt,.65*et,.3*tt,.65*et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.35*et,.5*tt,.35*et,.3*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.3*et,.6*tt,.1*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*tt,.2*et,tt,.35*et,.95*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,tt,.7*et,.6*tt,.9*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.65*tt,.8*et,tt,.65*et,.95*tt)),st}),go.Shape.defineFigureGenerator("CentrifugalPump",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et,0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,0,.075*tt,0,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,tt,0,tt,.4*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.4*tt,.8*et,tt,.85*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,0)),st}),go.Shape.defineFigureGenerator("Battery",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.4*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.1*tt));var ut=new go.PathFigure(0,.6*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Move,0,.4*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,et,.4*tt)),st}),go.Shape.defineFigureGenerator("Delete",function(mt,et,tt){var st=new go.Geometry,rt=.5,ut=xt*.5,ct=.5,ft=.5,pt=new go.PathFigure((ct-rt)*et,ft*tt,!0);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-rt)*tt,(ct-rt)*et,(ft-ut)*tt,(ct-ut)*et,(ft-rt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,ft*tt,(ct+ut)*et,(ft-rt)*tt,(ct+rt)*et,(ft-ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+rt)*tt,(ct+rt)*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,ft*tt,(ct-ut)*et,(ft+rt)*tt,(ct-rt)*et,(ft+ut)*tt));var Pt=new go.PathFigure(.15*et,.5*tt,!1);return st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.5*tt)),st}),go.Shape.defineFigureGenerator("Flag",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.1*tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,0,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.1*tt,.15*et,0,.35*et,0)),rt.add(new go.PathSegment(go.PathSegment.Bezier,et,.1*tt,.65*et,.2*tt,.85*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.5*tt,.85*et,.6*tt,.65*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*tt,.35*et,.4*tt,.15*et,.4*tt).close()),st}),go.Shape.defineFigureGenerator("Help",function(mt,et,tt){var st=new go.Geometry,rt=.5,ut=xt*.5,ct=.5,ft=.5,pt=new go.PathFigure((ct-rt)*et,ft*tt,!1);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-rt)*tt,(ct-rt)*et,(ft-ut)*tt,(ct-ut)*et,(ft-rt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,ft*tt,(ct+ut)*et,(ft-rt)*tt,(ct+rt)*et,(ft-ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+rt)*tt,(ct+rt)*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,ft*tt,(ct-ut)*et,(ft+rt)*tt,(ct-rt)*et,(ft+ut)*tt).close()),rt=.05,ut=xt*.05,ct=.5,ft=.8;var Pt=new go.PathFigure((ct-rt)*et,ft*tt,!1);return st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft-rt)*tt,(ct-rt)*et,(ft-ut)*tt,(ct-ut)*et,(ft-rt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,ft*tt,(ct+ut)*et,(ft-rt)*tt,(ct+rt)*et,(ft-ut)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(ft+rt)*tt,(ct+rt)*et,(ft+ut)*tt,(ct+ut)*et,(ft+rt)*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,ft*tt,(ct-ut)*et,(ft+rt)*tt,(ct-rt)*et,(ft+ut)*tt).close()),Pt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*tt)),Pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,.75*et,.475*tt,.75*et,.225*tt)),Pt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.35*tt,.4*et,.2*tt,.3*et,.25*tt)),st}),go.Shape.defineFigureGenerator("Location",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(.5*et,tt,!0).add(new go.PathSegment(go.PathSegment.Line,.75*et,.5*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5*et,0,.975*et,.025*tt,.5*et,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*et,.5*tt,.5*et,0,.025*et,.025*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*tt)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*et,.3*tt,.1*et,.1*tt).close()))}),go.Shape.defineFigureGenerator("Lock",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var ut=new go.PathFigure(.2*et,.5*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*tt,.25*et,0,.75*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.3*tt)),st}),go.Shape.defineFigureGenerator("Unlocked",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt));var ut=new go.PathFigure(.2*et,.5*tt,!1);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Move,.2*et,.5*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.2*et,.3*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.3*tt,.25*et,0,.75*et,0)),ut.add(new go.PathSegment(go.PathSegment.Line,.8*et,.35*tt)),st}),go.Shape.defineFigureGenerator("Gear",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(.9375*et,.56246875*tt,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.4375*tt)).add(new go.PathSegment(go.PathSegment.Line,.80621875*et,.4375*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.763*et,.3316875*tt,.79840625*et,.39915625*tt,.7834375*et,.3635*tt)).add(new go.PathSegment(go.PathSegment.Line,.8566875*et,.23796875*tt)).add(new go.PathSegment(go.PathSegment.Line,.76825*et,.14959375*tt)).add(new go.PathSegment(go.PathSegment.Line,.67596875*et,.24184375*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*et,.19378125*tt,.64228125*et,.2188125*tt,.603875*et,.2021875*tt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.0625*tt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.0625*tt)).add(new go.PathSegment(go.PathSegment.Line,.4375*et,.19378125*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*et,.239375*tt,.39759375*et,.20190625*tt,.36053125*et,.2176875*tt)).add(new go.PathSegment(go.PathSegment.Line,.2379375*et,.14959375*tt)).add(new go.PathSegment(go.PathSegment.Line,.14953125*et,.2379375*tt)).add(new go.PathSegment(go.PathSegment.Line,.23934375*et,.3278125*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*et,.4375*tt,.21765625*et,.36059375*tt,.201875*et,.397625*tt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.4375*tt)).add(new go.PathSegment(go.PathSegment.Line,.0625*et,.5625*tt)).add(new go.PathSegment(go.PathSegment.Line,.1938125*et,.5625*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*et,.67596875*tt,.20221875*et,.603875*tt,.21884375*et,.64228125*tt)).add(new go.PathSegment(go.PathSegment.Line,.1495625*et,.76825*tt)).add(new go.PathSegment(go.PathSegment.Line,.238*et,.8566875*tt)).add(new go.PathSegment(go.PathSegment.Line,.3316875*et,.76296875*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*et,.80621875*tt,.36353125*et,.78340625*tt,.3991875*et,.79840625*tt)).add(new go.PathSegment(go.PathSegment.Line,.43753125*et,.9375*tt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.9375*tt)).add(new go.PathSegment(go.PathSegment.Line,.5625*et,.80621875*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*et,.760625*tt,.602375*et,.79809375*tt,.63946875*et,.78234375*tt)).add(new go.PathSegment(go.PathSegment.Line,.76828125*et,.8566875*tt)).add(new go.PathSegment(go.PathSegment.Line,.85671875*et,.76825*tt)).add(new go.PathSegment(go.PathSegment.Line,.76065625*et,.67221875*tt)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*et,.56246875*tt,.78234375*et,.63940625*tt,.798125*et,.602375*tt)).add(new go.PathSegment(go.PathSegment.Line,.9375*et,.56246875*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.5*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*et,.5*tt,.1*et,.1*tt).close()))}),go.Shape.defineFigureGenerator("Hand",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.5*tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,.3*tt,0,.375*tt,.05*et,.325*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.45*et,.075*tt,.3*et,.225*tt,.4*et,.175*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.525*et,.075*tt,.46*et,.05*tt,.525*et,.05*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.3*et,.4*tt,.525*et,.275*tt,.475*et,.325*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.55*tt,et,.4*tt,et,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.6*et,.7*tt,.675*et,.55*tt,.675*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.575*et,.85*tt,.65*et,.7*tt,.65*et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.535*et,tt,.61*et,.85*tt,.61*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*tt,.435*et,tt,0,tt).close()),st}),go.Shape.defineFigureGenerator("Map",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,.2*tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.25*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt).close()),rt.add(new go.PathSegment(go.PathSegment.Move,.25*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt)),rt.add(new go.PathSegment(go.PathSegment.Move,.75*et,0)),rt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.8*tt)),st}),go.Shape.defineFigureGenerator("Eject",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt*.7)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*.7).close());var ut=new go.PathFigure(0,tt*.6,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et,.6*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.5*et,0).close()),st}),go.Shape.defineFigureGenerator("Pencil",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*et,.1*tt)).add(new go.PathSegment(go.PathSegment.Line,et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,tt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.2*tt).close()))}),go.Shape.defineFigureGenerator("Building",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*1,tt*1,!1);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*.85)),rt.add(new go.PathSegment(go.PathSegment.Line,.046*et,tt*.85)),rt.add(new go.PathSegment(go.PathSegment.Line,.046*et,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*.3)),rt.add(new go.PathSegment(go.PathSegment.Line,.046*et,tt*.3)),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,tt*.3)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt*.3)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*et,tt*.85)),rt.add(new go.PathSegment(go.PathSegment.Line,et,tt*.85).close());var ut=new go.PathFigure(.126*et,.85*tt,!1);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,.126*et,.45*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.322*et,.45*tt)),ut.add(new go.PathSegment(go.PathSegment.Line,.322*et,.85*tt).close());var ct=new go.PathFigure(.402*et,.85*tt,!1);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,.402*et,.45*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.598*et,.45*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,.598*et,.85*tt).close());var ft=new go.PathFigure(.678*et,.85*tt,!1);st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,.678*et,.45*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.874*et,.45*tt)),ft.add(new go.PathSegment(go.PathSegment.Line,.874*et,.85*tt).close());var pt=new go.PathFigure(.5*et,.1*tt,!1);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*et,.3*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*et,.3*tt).close()),st}),go.Shape.defineFigureGenerator("Staircase",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt*1,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*.8)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.8)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.6)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.6)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.4)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*.4)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*.2)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.2)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.15)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.15)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.35)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.35)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.15,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.15,tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*.95).close()),st}),go.Shape.defineFigureGenerator("5Bars",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,tt*1,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.184,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.184,tt*(1-.184)).close());var ut=new go.PathFigure(et*.204,tt,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.204,tt*(1-.184))),ut.add(new go.PathSegment(go.PathSegment.Line,et*.388,tt*(1-.184*2))),ut.add(new go.PathSegment(go.PathSegment.Line,et*.388,tt*1).close());var ct=new go.PathFigure(et*.408,tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.408,tt*(1-.184*2))),ct.add(new go.PathSegment(go.PathSegment.Line,et*.592,tt*(1-.184*3))),ct.add(new go.PathSegment(go.PathSegment.Line,et*.592,tt*1).close());var ft=new go.PathFigure(et*.612,tt,!0);st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*.612,tt*(1-.184*3))),ft.add(new go.PathSegment(go.PathSegment.Line,et*.796,tt*(1-.184*4))),ft.add(new go.PathSegment(go.PathSegment.Line,et*.796,tt*1).close());var pt=new go.PathFigure(et*.816,tt,!0);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.816,tt*(1-.184*4))),pt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-.184*5))),pt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1).close()),st}),go.Shape.defineFigureGenerator("PC",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,0).close());var ut=new go.PathFigure(et*.055,.07*tt,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.07)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.1).close());var ct=new go.PathFigure(et*.055,.13*tt,!0);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.13)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.16)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.16).close());var ft=new go.PathFigure(et*.055,.18*tt,!0);st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.18)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.21)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.21).close());var pt=new go.PathFigure(et*1,0,!0);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.4,0)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.65)),pt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.65).close()),st}),go.Shape.defineFigureGenerator("Plane",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(.55*et,tt,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.7*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.1*et,.475*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.35*et,.525*tt,0,.4*tt,.225*et,.45*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.475*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.15*et,.35*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.325*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.325*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.85*et,.1*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.9*et,.2*tt,.975*et,0,et,.08*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.7*et,.45*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.95*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,.55*et,tt).close()),st}),go.Shape.defineFigureGenerator("Key",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*1,tt*.5,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.9,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.4*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.35*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,.35*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.15,.2*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.35*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,0,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.15,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,.8*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.65*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.6,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.65,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.7,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,.55*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,.6*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.85,.575*tt)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.9,.6*tt).close()),rt.add(new go.PathSegment(go.PathSegment.Move,.17*et,.425*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*et,.5*tt,.075*et,.075*tt).close()),st}),go.Shape.defineFigureGenerator("FilmTape",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(0,0,!1);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,270,180,et*0,et*.3,et*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,0,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.08,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.08,tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*1),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*2),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*3),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*4),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*5),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*6),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*7),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*8),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*9),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*10),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*11),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*12),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*13),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*14),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),tt*.95)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(.08+.056*15),tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1));var ut=new go.PathFigure(0,0,!1);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*0)),ut.add(new go.PathSegment(go.PathSegment.Arc,270,-180,et*1,et*.3,et*.055)),ut.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1));var ct=new go.PathFigure(et*.11,tt*.1,!1);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),tt*.1)),ct.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*0),tt*.8)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.11,tt*.8).close());var ft=new go.PathFigure(et*(.11+.24133333*1+.028*1),tt*.1,!1);st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),tt*.1)),ft.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),tt*.8)),ft.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*1),tt*.8).close());var pt=new go.PathFigure(et*(.11+.24133333*2+.028*2),tt*.1,!1);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),tt*.1)),pt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),tt*.8)),pt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*2),tt*.8).close()),st}),go.Shape.defineFigureGenerator("FloppyDisk",function(mt,et,tt){var st=new go.Geometry,rt=8,ut=rt*xt,ct=new go.PathFigure(rt,0,!1);st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.86,0)),ct.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.14)),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt-rt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et-rt,tt,et,tt-ut,et-ut,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,rt,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-rt,ut,tt,0,tt-ut)),ct.add(new go.PathSegment(go.PathSegment.Line,0,rt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,rt,0,0,ut,ut,0).close());var ft=new go.PathFigure(et*.83,0,!1);st.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et*.83,tt*.3)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*.3)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*0).close());var pt=new go.PathFigure(et*.83,tt*1,!1);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.83,tt*.5)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*.5)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*1).close());var Pt=new go.PathFigure(et*.78,tt*.05,!1);return st.add(Pt),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.05)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.25)),Pt.add(new go.PathSegment(go.PathSegment.Line,et*.78,tt*.25).close()),st}),go.Shape.defineFigureGenerator("SpeechBubble",function(mt,et,tt){var st=mt?mt.parameter1:NaN;(isNaN(st)||st<0)&&(st=15),st=Math.min(st,et/3),st=Math.min(st,tt/3);var rt=st*xt,ut=tt*.8,ct=new go.Geometry,ft=new go.PathFigure(st,0,!0);return ct.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,et-st,0)),ft.add(new go.PathSegment(go.PathSegment.Bezier,et,st,et-rt,0,et,rt)),ft.add(new go.PathSegment(go.PathSegment.Line,et,ut-st)),ft.add(new go.PathSegment(go.PathSegment.Bezier,et-st,ut,et,ut-rt,et-rt,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.7,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt)),ft.add(new go.PathSegment(go.PathSegment.Line,et*.55,ut)),ft.add(new go.PathSegment(go.PathSegment.Line,st,ut)),ft.add(new go.PathSegment(go.PathSegment.Bezier,0,ut-st,rt,ut,0,ut-rt)),ft.add(new go.PathSegment(go.PathSegment.Line,0,st)),ft.add(new go.PathSegment(go.PathSegment.Bezier,st,0,0,rt,rt,0).close()),rt>1?(ct.spot1=new go.Spot(0,0,rt,rt),ct.spot2=new go.Spot(1,.8,-rt,-rt)):(ct.spot1=go.Spot.TopLeft,ct.spot2=new go.Spot(1,.8)),ct}),go.Shape.defineFigureGenerator("Repeat",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*0,tt*.45,!0);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*.9)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.9)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.65,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.2,tt*.45).close());var ut=new go.PathFigure(et*1,tt*.55,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.55)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*.55)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*.1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.1)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*0)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*.55).close()),st}),go.Shape.defineFigureGenerator("Windows",function(mt,et,tt){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,et,0)).add(new go.PathSegment(go.PathSegment.Line,et,tt)).add(new go.PathSegment(go.PathSegment.Line,0,tt).close()).add(new go.PathSegment(go.PathSegment.Move,.4*et,.4*tt)).add(new go.PathSegment(go.PathSegment.Line,.4*et,.8*tt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.8*tt)).add(new go.PathSegment(go.PathSegment.Line,.9*et,.4*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.2*et,.1*tt)).add(new go.PathSegment(go.PathSegment.Line,.2*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Line,.7*et,.1*tt).close()).add(new go.PathSegment(go.PathSegment.Move,.1*et,.6*tt)).add(new go.PathSegment(go.PathSegment.Line,.1*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.9*tt)).add(new go.PathSegment(go.PathSegment.Line,.5*et,.6*tt).close()))}),go.Shape.defineFigureGenerator("Terminal",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*0,tt*.1,!1);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.9)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*.9).close());var ut=new go.PathFigure(et*.1,tt*.2,!0);st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.25)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.22,tt*.285)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.32)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.1,tt*.37)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.275,tt*.32)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.275,tt*.25).close());var ct=new go.PathFigure(et*.28,tt*.37,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.37)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.41)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.28,tt*.41).close()),st}),go.Shape.defineFigureGenerator("Beaker",function(mt,et,tt){var st=new go.Geometry,rt=15,ut=rt*xt,ct=new go.PathFigure(et*.62,tt*.475,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et,tt-rt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,et-rt,tt,et,tt-ut,et-ut,tt)),ct.add(new go.PathSegment(go.PathSegment.Line,rt,tt)),ct.add(new go.PathSegment(go.PathSegment.Bezier,0,tt-rt,ut,tt,0,tt-ut)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.38,tt*.475)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.38,tt*.03)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*0)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*0)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.62,tt*.03).close()),ut>1?(st.spot1=new go.Spot(0,0,ut,ut),st.spot2=new go.Spot(1,1,-ut,-ut)):(st.spot1=go.Spot.TopLeft,st.spot2=go.Spot.BottomRight),st}),go.Shape.defineFigureGenerator("Download",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*0,tt*1,!0);st.add(rt);var ut=.1/.3;rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.755,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.93,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.61,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.39,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*(1-ut)).close());var ct=new go.PathFigure(et*.4,tt*0,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.44)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.26,tt*.44)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.66)),ct.add(new go.PathSegment(go.PathSegment.Line,et*(1-.26),tt*.44)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.44)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*0).close()),st}),go.Shape.defineFigureGenerator("Bin",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*0,tt*1,!0);st.add(rt);var ut=.1/.3;return rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.755,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.93,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.61,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.39,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*(1-ut)).close()),st}),go.Shape.defineFigureGenerator("Upload",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*0,tt*1,!0);st.add(rt);var ut=.1/.3;rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.8,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.755,tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.93,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.64,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.61,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.39,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.36,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*.07,tt*(1-ut))),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.755),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*.055)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.66),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*(1-.8),tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*(1-ut)).close());var ct=new go.PathFigure(et*.5,tt*0,!0);return st.add(ct),ct.add(new go.PathSegment(go.PathSegment.Line,et*.26,tt*.25)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.25)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.63)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.63)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.6,tt*.25)),ct.add(new go.PathSegment(go.PathSegment.Line,et*.74,tt*.25).close()),st}),go.Shape.defineFigureGenerator("EmptyDrink",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*.15,tt*0,!1);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.85,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*1).close()),st}),go.Shape.defineFigureGenerator("Drink",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*.15,tt*0,!1);st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.85,tt*0)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.3,tt*1).close());var ut=new go.PathFigure(et*.235,tt*.28,!0);return st.add(ut),ut.add(new go.PathSegment(go.PathSegment.Line,et*.765,tt*.28)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.655,tt*.97)),ut.add(new go.PathSegment(go.PathSegment.Line,et*.345,tt*.97).close()),st}),go.Shape.defineFigureGenerator("4Arrows",function(mt,et,tt){var st=new go.Geometry,rt=new go.PathFigure(et*.5,tt*0,!0);return st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Line,et*.65,tt*.25)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.25)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.35)),rt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.5)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.65)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.75,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.55,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.65,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.5,tt*1)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.75)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.55)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.65)),rt.add(new go.PathSegment(go.PathSegment.Line,et*0,tt*.5)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.35)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.25,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.45)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.45,tt*.25)),rt.add(new go.PathSegment(go.PathSegment.Line,et*.35,tt*.25).close()),st}),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")},5559: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 Tn={},Cn="5.0",Kt={},zt=null,gt=!1,Xt=!1,Qt=null,kt=!1,Bt=null,xt=null,Ot=0;Ot<arguments.length;Ot++){var Rt=arguments[Ot];if(Rt!==null)switch(typeof Rt){case"number":Cn=Rt.toFixed(1);break;case"string":Rt.match(new RegExp("^[0-9]\\.[0-9]+$"))?Cn=Rt:Qt=Rt;break;case"object":typeof Rt.is3D!="undefined"?zt=Rt:Kt=Rt;break;case"boolean":gt=Rt,Xt=!0;break}}zt===null&&(zt={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Kt.material_id!==void 0&&!Xt&&(gt=!0)),Qt!==null&&Kt.id===void 0&&(Kt.id=Qt);var Ct="",Lt="",At=!1,It=null,mt=null,et=null,tt=!1,st=null,rt=null,ut=null,ct=null,ft=null;Kt.height!==void 0&&(Kt.height=Math.round(Kt.height)),Kt.width!==void 0&&(Kt.width=Math.round(Kt.width));var pt=function(he){return parseFloat(he)>4?parseFloat(he):5};Tn.setHTML5Codebase=function(he,De){xt=he,ie(he,De)},Tn.setJavaCodebase=Tn.setJavaCodebaseVersion=Tn.isCompiledInstalled=Tn.setPreCompiledScriptPath=Tn.setPreCompiledResourcePath=function(){},Tn.setHTML5CodebaseVersion=function(he,De){var Ne=parseFloat(he);if(Ne!==NaN&&Ne<5){console.log("The GeoGebra HTML5 codebase version "+Ne+" is deprecated. Using version latest instead.");return}Bt=he,$t(he,De)},Tn.getHTML5CodebaseVersion=function(){return mt},Tn.getParameters=function(){return Kt},Tn.setFontsCSSURL=function(he){ct=he},Tn.setGiacJSURL=function(he){},Tn.setJNLPFile=function(he){Ct=he},Tn.setJNLPBaseDir=function(he){},Tn.inject=function(){function he(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var De="auto",Ne=Kt.id,$e,Re=!1,tn=0;tn<arguments.length;tn++){var Me=arguments[tn];typeof Me=="string"?(Me=Me.toLowerCase(),Me.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?De=Me:Ne=arguments[tn]):typeof Me=="boolean"?Re=Me:Me instanceof HTMLElement&&($e=Me)}Oe();function Oe(){if(!kt){setTimeout(Oe,200);return}De=He(De);var Fe=$e||document.getElementById(Ne);if(!Fe){console.log("possibly bug on ajax loading? ");return}if(Tn.removeExistingApplet(Fe,!1),Kt.width===void 0&&Fe.clientWidth&&(Kt.width=Fe.clientWidth),Kt.height===void 0&&Fe.clientHeight&&(Kt.height=Fe.clientHeight),!(Kt.width&&Kt.height)&&De==="html5"&&(delete Kt.width,delete Kt.height),It=De,De==="screenshot")ae(Fe,Kt);else{var le=!1;Kt.hasOwnProperty("playButton")&&Kt.playButton||Kt.hasOwnProperty("clickToLoad")&&Kt.clickToLoad?le=!0:Kt.hasOwnProperty("playButtonAutoDecide")&&Kt.playButtonAutoDecide&&(le=(!Pt()||he())&&Dt()),le?(It="screenshot",ye(Fe,Kt,Re,De)):ce(Fe,Kt,Re)}}};function Pt(){try{return window.self!==window.top}catch(he){return!0}}function Dt(){return Kt.hasOwnProperty("screenshotGenerator")&&Kt.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Tn.getViews=function(){return zt},Tn.isJavaInstalled=function(){return!1};var Zt=function(he){var De=function(tn){var Me=JSON.parse(tn),Oe=function(Tt){return Tt.type=="G"||Tt.type=="E"},Fe=Me.elements?Me.elements.filter(Oe)[0]:Me;if(!Fe||!Fe.url){Ne();return}Kt.fileName=Fe.url,Ft(Fe.settings||{}),zt.is3D=!0;var le="https://www.geogebra.org/images/";Tn.setPreviewImage(st||Fe.previewUrl,le+"GeoGebra_loading.png",le+"applet_play.png"),he()},Ne=function(){Kt.onError&&Kt.onError(),ue("Error: Fetching material (id "+Kt.material_id+") failed.",Kt)},$e=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Re="/materials/"+Kt.material_id+"?scope=basic";qt("https://"+$e+"/api/proxy.php?path="+encodeURIComponent(Re),De,Ne)};function Ft(he){var De=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Ne){he[Ne]=!!he[Ne]}),De.forEach(function(Ne){Kt[Ne]===void 0&&he[Ne]!==void 0&&(Kt[Ne]=he[Ne])}),Kt.showToolBarHelp===void 0&&(Kt.showToolBarHelp=Kt.showToolBar)}function qt(he,De,Ne){var $e=new XMLHttpRequest;$e.open("GET",he),$e.onload=function(){De($e.responseText)},$e.onerror=Ne,$e.send()}Tn.isHTML5Installed=function(){return!0},Tn.getLoadedAppletType=function(){return It},Tn.setPreviewImage=function(he,De,Ne){st=he,rt=De,ut=Ne},Tn.removeExistingApplet=function(he,De){var Ne;typeof he=="string"&&(he=document.getElementById(he)),It=null;var $e=null;for(Ne=0;Ne<he.childNodes.length;Ne++){var Re=he.childNodes[Ne],tn=Re.className;tn==="applet_screenshot"?De?(Re.style.display="block",It="screenshot"):Re.style.display="none":tn!=="applet_scaler prerender"&&(he.removeChild(Re),$e=tn&&tn.indexOf("appletParameters")!=-1?Re.id:null,Ne--)}var Me=Kt.id!==void 0?Kt.id:$e,Oe=window[Me];Oe&&typeof Oe.getBase64=="function"&&(Oe.remove(),window[Me]=null)},Tn.refreshHitPoints=function(){if(pt(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var he=Tn.getAppletObject();return he&&typeof he.recalculateEnvironments=="function"?(he.recalculateEnvironments(),!0):!1},Tn.startAnimation=function(){var he=Tn.getAppletObject();return he&&typeof he.startAnimation=="function"?(he.startAnimation(),!0):!1},Tn.stopAnimation=function(){var he=Tn.getAppletObject();return he&&typeof he.stopAnimation=="function"?(he.stopAnimation(),!0):!1},Tn.getAppletObject=function(){var he=Kt.id!==void 0?Kt.id:"ggbApplet";return window[he]},Tn.resize=function(){};var te=function(he,De,Ne){var $e=document.createElement("param");$e.setAttribute("name",De),$e.setAttribute("value",Ne),he.appendChild($e)},Gt=function(he){return he&&he!=="false"},ce=function(he,De,Ne){pt(mt)<=4.2&&(Ne=!0);var $e=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==mt||ggbHTML5LoadedCodebaseIsWebSimple&&!tt)&&($e=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Re=document.createElement("div");Re.classList.add("appletParameters","notranslate");var tn=De.width,Me=De.height;if(De.disableAutoScale=De.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():De.disableAutoScale,De.width!==void 0)if(pt(mt)<=4.4)Gt(De.showToolBar)&&(De.height-=7),Gt(De.showAlgebraInput)&&(De.height-=37),De.width<605&&Gt(De.showToolBar)&&(De.width=605,tn=605);else{var Oe=100;(Gt(De.showToolBar)||Gt(De.showMenuBar))&&(De.hasOwnProperty("customToolBar")&&(De.customToolbar=De.customToolBar),Oe=Gt(De.showMenuBar)?245:155),tn<Oe&&(De.width=Oe,tn=Oe)}Re.style.border="none",Re.style.display="inline-block";for(var Fe in De)De.hasOwnProperty(Fe)&&Fe!=="appletOnLoad"&&Re.setAttribute("data-param-"+Fe,De[Fe]);ct&&Re.setAttribute("data-param-fontscssurl",ct),Tn.resize=function(){GGBAppletUtils.responsiveResize(he,De)},window.addEventListener("resize",function(oe){Tn.resize()});var le=typeof De.appletOnLoad=="function"?De.appletOnLoad:function(){};if(!Ne&&De.width!==void 0){De.hasOwnProperty("showSplash")||Re.setAttribute("data-param-showSplash","false");var Tt=he.querySelector(".applet_scaler.prerender"),bt=Tt!==null;if(bt)var _t=Tt.querySelector(".ggb_preview");else{var _t=me(tn,Me,De.borderColor,!1);Tt=document.createElement("div"),Tt.className="applet_scaler",Tt.style.position="relative",Tt.style.display="block",Tt.style.width=tn+"px",Tt.style.height=Me+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Tt,"66%"),pt(mt)>=5?(De.appletOnLoad=function(oe){var de=he.querySelector(".ggb_preview");de&&de.parentNode.removeChild(de),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Tt),window.GGBT_wsf_view&&$(window).trigger("resize"),le(oe)},bt||Tt.appendChild(_t)):Re.appendChild(_t),Tt.appendChild(Re),bt||he.appendChild(Tt),setTimeout(function(){Tn.resize()},1)}else{var Yt=document.createElement("div");Yt.className="applet_scaler",Yt.style.position="relative",Yt.style.display="block",Yt.appendChild(Re),he.appendChild(Yt),De.appletOnLoad=function(oe){Tn.resize(),le(oe)}}function Mt(oe,de){de&&typeof de.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(oe,de.appletOnLoad):renderGGBElement(oe),ue("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",de)}function Ut(oe,de){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:oe,params:de}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Ge){Mt(Ge.article,Ge.params)}),html5AppletsToProcess=null)},pt(mt)<5&&(oe.className+=" geogebraweb")):Mt(oe,de)}if($e){scriptLoadStarted=!0;for(var St=0;St<Re.childNodes.length;St++){var wt=Re.childNodes[St].tagName;wt==="TABLE"&&(Re.removeChild(Re.childNodes[St]),St--)}if(ggbHTML5LoadedScript!==null){var jt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');jt!=null&&jt.parentNode.removeChild(jt)}var Wt=document.createElement("script"),Vt=function(){Ut(Re,De)};Wt.src=Lt+et,ggbHTML5LoadedCodebaseIsWebSimple=tt,ggbHTML5LoadedCodebaseVersion=mt,ggbHTML5LoadedScript=Wt.src,ue("GeoGebra HTML5 codebase loaded: '"+Lt+"'.",De),!xt&&(!Bt||Bt=="5.0")?(tt?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Vt()):Lt.requirejs?__webpack_require__.e(777).then(function(){var oe=[__webpack_require__(70777)];Vt.apply(null,oe)}.bind(this)).catch(__webpack_require__.oe):(Wt.onload=Vt,he.appendChild(Wt))}else Ut(Re,De);De.height=Me,De.width=tn},ae=function(he,De,Ne){var $e=me(De.width,De.height,De.borderColor,Ne),Re=document.createElement("div");Re.style.position="relative",Re.style.display="block",Re.style.width=De.width+"px",Re.style.height=De.height+"px",Re.className="applet_screenshot applet_scaler"+(Ne?" applet_screenshot_play":""),Re.appendChild($e);var tn=GGBAppletUtils.getScale(De,he,Ne);Ne?(he.appendChild(Te()),window.GGBT_wsf_view||(he.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Re,"66%"),he.appendChild(Re),tn!==1&&!isNaN(tn)&&(GGBAppletUtils.scaleElement(Re,tn),Re.style.width=De.width+"px",Re.style.height=De.height+"px",Re.parentNode.style.width=De.width*tn+"px",Re.parentNode.style.height=De.height*tn+"px"),Tn.resize=function(){xe(he,$e,Re,Ne)},window.addEventListener("resize",function(Me){Tn.resize()}),Tn.resize()};function xe(he,De,Ne,$e){if(he.contains(De)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(he.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(he)}var Re=GGBAppletUtils.getScale(Kt,he,$e);Ne.parentNode!==null&&(!isNaN(Re)&&Re!==1?(GGBAppletUtils.scaleElement(Ne,Re),Ne.parentNode.style.width=Kt.width*Re+"px",Ne.parentNode.style.height=Kt.height*Re+"px"):(GGBAppletUtils.scaleElement(Ne,1),Ne.parentNode.style.width=Kt.width+"px",Ne.parentNode.style.height=Kt.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(he),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Tn.onExitFullscreen=function(he,De){De.appendChild(he)};var ye=function(he,De,Ne,$e){ae(he,De,!0);for(var Re=function(){var Oe=[];for(Me=0;Me<he.childNodes.length;Me++)Oe.push(he.childNodes[Me]);if(window.GGBT_wsf_view){var Fe=window.GGBT_wsf_view.renderFullScreen(he,De.id),le=document.getElementById("fullscreencontainer"),Tt=jQuery(he).find(".fullscreencontent");Tt.length>0?(Fe.remove(),Tt.attr("id","fullscreencontent").show(),jQuery(le).append(Tt),window.dispatchEvent(new Event("resize"))):ce(Fe,De,!1),window.GGBT_wsf_view.launchFullScreen(le)}else It=$e,ce(he,De,!1);if(!window.GGBT_wsf_view)for(Me=0;Me<Oe.length;Me++)he.removeChild(Oe[Me])},tn=he.getElementsByClassName("ggb_preview_play"),Me=0;Me<tn.length;Me++)tn[Me].addEventListener("click",Re,!1),tn[Me].addEventListener("ontouchstart",Re,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(he),Dt()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Te=function(){var he=document.createElement("div");if(he.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var De='.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");}',Ne=document.createElement("style");Ne.styleSheet?Ne.styleSheet.cssText=De:Ne.appendChild(document.createTextNode(De)),document.getElementsByTagName("head")[0].appendChild(Ne)}return he},me=function(he,De,Ne,$e){var Re=document.createElement("div");Re.className="ggb_preview",Re.style.position="absolute",Re.style.zIndex="90",Re.style.width=he-2+"px",Re.style.height=De-2+"px",Re.style.top="0px",Re.style.left="0px",Re.style.overflow="hidden",Re.style.backgroundColor="white";var tn="lightgrey";Ne!==void 0&&(Ne==="none"?tn="transparent":tn=Ne),Re.style.border="1px solid "+tn;var Me=document.createElement("img");if(Me.style.position="relative",Me.style.zIndex="1000",Me.style.top="-1px",Me.style.left="-1px",st!==null&&Me.setAttribute("src",st),Me.style.opacity=.7,rt!==null){var Oe,Fe,le;if(!$e){Oe=document.createElement("img"),Oe.style.position="absolute",Oe.style.zIndex="1001",Oe.style.opacity=1,Me.style.opacity=.3,Fe=360,Fe>he/4*3&&(Fe=he/4*3),le=Fe/5.8,Oe.setAttribute("src",rt),Oe.setAttribute("width",Fe),Oe.setAttribute("height",le);var Tt=(he-Fe)/2,bt=(De-le)/2;Oe.style.left=Tt+"px",Oe.style.top=bt+"px",Re.appendChild(Oe)}}return Re.appendChild(Me),Re},He=function(he){return he=he.toLowerCase(),he==="html5"||he==="screenshot"?he:"html5"},fe=["web","webSimple","web3d","tablet","tablet3d","phone"],$t=function(he,De){if(mt=he,De){ie(mt,!0);return}var Ne=!gt;if(Ne){var $e=pt(mt);!isNaN($e)&&$e<4.4&&(Ne=!1)}var Re,tn;window.location.protocol.substr(0,4)==="http"?Re=window.location.protocol:Re="http:";var Me=mt.indexOf("//");Me>0?tn=mt:Me===0?tn=Re+mt:tn="https://www.geogebra.org/apps/5.2.814.0/";for(var Oe in fe)if(mt.slice(fe[Oe].length*-1)===fe[Oe]||mt.slice((fe[Oe].length+1)*-1)===fe[Oe]+"/"){ie(tn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Ne&&!zt.is3D&&!zt.AV&&!zt.SV&&!zt.CV&&!zt.EV2&&!zt.CP&&!zt.PC&&!zt.DA&&!zt.FI&&!zt.PV&&!Gt(Kt.showToolBar)&&!Gt(Kt.showMenuBar)&&!Gt(Kt.showAlgebraInput)&&!Gt(Kt.enableRightClick)&&(!Kt.appName||Kt.appName=="classic")?tn+="webSimple/":tn+="web3d/",ie(tn,!1)},ie=function(he,De){if(he.requirejs){Lt=he;return}he.slice(-1)!=="/"&&(he+="/"),Lt=he,De===null&&(De=he.indexOf("http")===-1),At=De,et="web.nocache.js",tt=!1;var Ne=Lt.split("/");Ne.length>1&&(!De&&Ne[Ne.length-2]==="webSimple"?(et="webSimple.nocache.js",tt=!0):fe.indexOf(Ne[Ne.length-2])>=0&&(et=Ne[Ne.length-2]+".nocache.js")),Ne=he.split("/"),mt=Ne[Ne.length-3],mt.substr(0,4)==="test"?mt=mt.substr(4,1)+"."+mt.substr(5,1):(mt.substr(0,3)==="war"||mt.substr(0,4)==="beta")&&(mt="5.0");var $e=parseFloat(mt);$e!==NaN&&$e<5&&he.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+$e+" is deprecated. Using version latest instead."),$t("5.0",De))},ue=function(he,De){window.console&&window.console.log&&(!De||typeof De.showLogging=="undefined"||De.showLogging&&De.showLogging!=="false")&&console.log(he)};Kt.material_id!==void 0?Zt(ge):ge();function ge(){var he=Cn;Bt!==null?he=Bt:parseFloat(he)<5&&(he="5.0"),$t(he,!1),xt!==null&&ie(xt,At),kt=!0}return Tn},GGBAppletUtils=function(){"use strict";function Tn(){return window.GGBT_wsf_edit!==void 0}function Cn(kt,Bt){Bt!=1?(kt.style.transformOrigin="0% 0% 0px",kt.style.webkitTransformOrigin="0% 0% 0px",kt.style.transform="scale("+Bt+","+Bt+")",kt.style.webkitTransform="scale("+Bt+","+Bt+")",kt.style.maxWidth="initial",kt.querySelector(".ggb_preview")!==null&&(kt.querySelector(".ggb_preview").style.maxWidth="initial"),kt.querySelectorAll(".ggb_preview img")[0]!==void 0&&(kt.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),kt.querySelectorAll(".ggb_preview img")[1]!==void 0&&(kt.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(kt.style.transform="none",kt.style.webkitTransform="none")}function Kt(kt,Bt,xt,Ot,Rt,Ct){var Lt=null;if(Ct!=null&&Ct!="")for(var At=kt.parentNode;At!=null;)if((" "+At.className+" ").indexOf(" "+Ct+" ")>-1){Lt=At;break}else At=At.parentNode;var It=0,mt=0,et=0,tt=0,st=0,rt=0,ut=0;if(Lt)It=Lt.offsetWidth,mt=Math.max(Ot?Lt.offsetWidth:0,Lt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(It=Math.min(window.innerWidth,document.documentElement.clientWidth),mt=Math.min(window.innerHeight,document.documentElement.clientHeight),et=It):(It=window.innerWidth,mt=window.innerHeight,et=window.innerWidth),kt){var ct=kt.getBoundingClientRect();ct.left>0&&ct.left<=It&&(Rt===void 0||!Rt)&&(document.dir==="rtl"?(st=It-ct.width-ct.left,rt=et<=480?10:30):(rt=ct.left,st=et<=480?10:30),tt=rt+st)}if(kt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var ft=kt.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(tt=40,ut=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(tt=0,ut=40)}}return kt&&((xt===void 0||!xt)&&Bt>0&&Bt+tt<It?It=Bt:It-=tt,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(xt===void 0||!xt)&&(mt-=ut)),{width:It,height:mt}}function zt(kt,Bt,xt,Ot,Rt){if(kt.isScreenshoGenerator)return 1;var Ct=Ot!==void 0&&Ot,Lt=kt.noScaleMargin!=null&&kt.noScaleMargin,At=function(ft){return ft&&ft!=="false"},It=At(kt.autoHeight),mt=Kt(Bt,kt.width,xt,It,Ct&&window.GGBT_wsf_view||Lt,Rt),et=parseInt(mt.width),tt=kt.width,st=kt.height;if(tt===void 0){var rt=Bt.querySelector(".appletParameters");rt&&(tt=rt.offsetWidth,st=rt.offsetHeight)}var ut=et/tt,ct=Ct?1:mt.height/st;return xt!==void 0&&!xt&&(ut=Math.min(1,ut),ct=Math.min(1,ct)),Math.min(ut,ct)}function gt(kt,Bt,xt){var Ot=1,Rt,Ct=!1;if(kt.hasOwnProperty("allowUpscale")&&(Ct=kt.allowUpscale),kt.hasOwnProperty("scale")&&(Ot=parseFloat(kt.scale),(isNaN(Ot)||Ot===null||Ot===0)&&(Ot=1),Ot>1&&(Ct=!0)),Bt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ct=!0),!(kt.hasOwnProperty("disableAutoScale")&&kt.disableAutoScale))Rt=zt(kt,Bt,Ct,xt,kt.scaleContainerClass);else return Ot;return Ct&&(!kt.hasOwnProperty("scale")||Ot===1)?Rt:Math.min(Ot,Rt)}function Xt(kt){var Bt=Math.min(window.innerWidth,document.documentElement.clientWidth),xt=Math.min(window.innerHeight,document.documentElement.clientHeight),Ot=kt.getBoundingClientRect(),Rt=(Bt-Ot.width)/2,Ct=(xt-Ot.height)/2;Ct<0&&(Ct=0),kt.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Rt<40?kt.style.left="40px":kt.style.left=Rt+"px",kt.style.top=Ct+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ct<40?kt.style.top="40px":kt.style.top=Ct+"px",kt.style.left=Rt+"px")}function Qt(kt,Bt){var xt=kt.querySelector(".appletParameters");if(xt){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Bt.id!==xt.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(kt)}if(xt.parentElement&&/fullscreen/.test(xt.parentElement.className))return;var Ot=gt(Bt,kt);Tn()&&xt.setAttribute("data-param-scale",Ot);for(var Rt=null,Ct=0;Ct<kt.childNodes.length;Ct++)if(kt.childNodes[Ct].className!==void 0&&kt.childNodes[Ct].className.match(/^applet_scaler/)){Rt=kt.childNodes[Ct];break}if(Rt!==null&&Rt.querySelector(".noscale")!==null)return;var Lt=Bt.id!==void 0?Bt.id:"ggbApplet",At=window[Lt];(At==null||!At.recalculateEnvironments)&&Rt!==null&&!Rt.className.match(/fullscreen/)&&(Rt.parentNode.style.transform="",!isNaN(Ot)&&Ot!==1?(Rt.parentNode.style.width=Bt.width*Ot+"px",Rt.parentNode.style.height=Bt.height*Ot+"px",Cn(Rt,Ot)):(Cn(Rt,1),Rt.parentNode.style.width=Bt.width+"px",Rt.parentNode.style.height=Bt.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Xt(kt),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(xt).parents(".content-added-content"))}}return{responsiveResize:Qt,isFlexibleWorksheetEditor:Tn,positionCenter:Xt,getScale:gt,scaleElement:Cn}}();__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 Tn=n.location.search;return Tn.indexOf(J)!=-1||Tn.indexOf(K)!=-1}function q(Tn,Cn){}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(Tn){var Cn=s[L].bindings;s[L].bindings=function(){for(var Kt=Cn?Cn():{},zt=Tn[webModule.__softPermutationId],gt=O;gt<zt.length;gt++){var Xt=zt[gt];Kt[Xt[O]]=Xt[P]}return Kt}};var t;function u(){return v(),t}function v(){if(!t){var Tn=o.createElement(Q);if(Tn.id=L,Tn.style.cssText=R+S,Tn.tabIndex=-1,o.body.appendChild(Tn),t=Tn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var Cn=document.compatMode==U?V:W;t.write(Cn+X),t.close()}}}function w(Tn){function Cn(zt){function gt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Xt=gt();if(Xt){zt();return}function Qt(){if(!Xt){if(!gt())return;Xt=!0,zt(),o.removeEventListener&&o.removeEventListener(Z,Qt,!1),kt&&clearInterval(kt)}}o.addEventListener&&o.addEventListener(Z,Qt,!1);var kt=setInterval(function(){Qt()},$)}function Kt(zt){var gt=u(),Xt=gt.body,Qt=gt.createElement(_);Qt.language=ab,Qt.crossOrigin=W,Qt.src=zt,webModule.__errFn&&(Qt.onerror=function(){webModule.__errFn(L,new Error(bb+zt))}),Xt.appendChild(Qt)}Cn(function(){Kt(Tn)})}webModule.__startLoadingFragment=function(Tn){return C(Tn)},webModule.__installRunAsyncCode=function(Tn){var Cn=u(),Kt=Cn.body,zt=Cn.createElement(_);zt.language=ab,zt.text=Tn,Kt.appendChild(zt),Kt.removeChild(zt)};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(Tn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Tn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Tn){var Cn=c[Tn];return Cn==null?null:Cn},r=d,webModule.__errFn=e}function B(){function Tn(kt){var Bt=kt.lastIndexOf(rb);Bt==-1&&(Bt=kt.length);var xt=kt.indexOf(sb);xt==-1&&(xt=kt.length);var Ot=kt.lastIndexOf(tb,Math.min(xt,Bt));return Ot>=O?kt.substring(O,Ot+P):W}function Cn(kt){if(!kt.match(/^\w+:\/\//)){var Bt=o.createElement(ub);Bt.src=kt+vb,kt=Tn(Bt.src)}return kt}function Kt(){var kt=__gwt_getMetaProperty(wb);return kt!=null?kt:W}function zt(){for(var kt=o.getElementsByTagName(_),Bt=O;Bt<kt.length;++Bt)if(kt[Bt].src.indexOf(xb)!=-1)return Tn(kt[Bt].src);return W}function gt(){var kt=o.getElementsByTagName(yb);return kt.length>O?kt[kt.length-P].href:W}function Xt(){var kt=o.location;return kt.href==kt.protocol+zb+kt.host+kt.pathname+kt.search+kt.hash}var Qt=Kt();return Qt==W&&(Qt=zt()),Qt==W&&(Qt=gt()),Qt==W&&Xt()&&(Qt=Tn(o.location.href)),Qt=Cn(Qt),Qt}function C(Tn){return Tn.match(/^\//)||Tn.match(/^[a-zA-Z]+:\/\//)?Tn:webModule.__moduleBase+Tn}function D(){var Tn=[],Cn=O,Kt=[],zt=[];function gt(kt){var Bt=zt[kt](),xt=Kt[kt];if(Bt in xt)return Bt;var Ot=[];for(var Rt in xt)Ot[xt[Rt]]=Rt;throw r&&r(kt,Ot,Bt),null}if(__gwt_isKnownPropertyValue=function(kt,Bt){return Bt in Kt[kt]},webModule.__getPropMap=function(){var kt={};for(var Bt in Kt)Kt.hasOwnProperty(Bt)&&(kt[Bt]=gt(Bt));return kt},webModule.__computePropValue=gt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Xt;try{Xt=Cb;var Qt=Xt.indexOf(Db);Qt!=-1&&(Cn=parseInt(Xt.substring(Qt+P),$),Xt=Xt.substring(O,Qt))}catch(kt){}return webModule.__softPermutationId=Cn,C(Xt+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})()},51555:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{$Y:function(){return tn},A0:function(){return De},EP:function(){return kt},F_:function(){return Ot},Fk:function(){return Mt},G9:function(){return xt},GB:function(){return ie},GR:function(){return rt},GW:function(){return $e},Hh:function(){return Ut},Hp:function(){return It},Ir:function(){return gt},N$:function(){return ue},NZ:function(){return xe},Nv:function(){return Yt},OA:function(){return Tt},OJ:function(){return me},QF:function(){return de},RS:function(){return Pt},RY:function(){return Vt},Rj:function(){return ye},SX:function(){return Ft},Tp:function(){return Me},Ui:function(){return he},V1:function(){return fe},Vn:function(){return Zt},dL:function(){return _t},fo:function(){return te},gG:function(){return Gt},gK:function(){return st},hK:function(){return mt},i3:function(){return Ct},ib:function(){return et},lS:function(){return tt},m5:function(){return Bt},n4:function(){return zt},n_:function(){return Lt},oP:function(){return Oe},p2:function(){return Ne},pl:function(){return ae},rM:function(){return ft},sM:function(){return At},t2:function(){return Dt},tD:function(){return ut},u8:function(){return ct},um:function(){return oe},vm:function(){return bt},wQ:function(){return Rt},wj:function(){return He},wt:function(){return ce},yS:function(){return pt},yi:function(){return Xt},ym:function(){return Te},z2:function(){return Qt}});const zt="FETCH_TASK_START",gt="FETCH_TASK_FAILURE",Xt="FETCH_TASK_SUCCESS",Qt="UPDATE_TASK_DATA",kt="HIDE_EVALUATE_RESULT",Bt="SHOW_EVALUATE_RESULT",xt="UPDATE_TIMESTRAP",Ot="MOVE_X",Rt="MOVE_Y",Ct="TRIGGER_RIGHT_PANEL_MASK ",Lt="SET_ACTIVE_INDEX",At="GET_TASK_LIST",It="SHOW_TASK_LIST",mt="HIDE_TASK_LIST",et="SET_TASK_STAR",tt="TRIGGER_ENLARGE_UNITY3D ",st="TRIGGER_TAB_FIXED ",rt="GET_DISCUSSES",ut="SHOW_DISCUSSES_LOADING",ct="TOP_OR_DOWN_DISCUSS",ft="PLUS_DISCUSS",pt="SET_ACTION_TYPE",Pt="SHOW_REWARD_DIALOG",Dt="CANCEL_REWARD_DIALOG",Zt="SET_REWARD",Ft="ACTIVE_DISCUSS_INDEX",qt="CREATE_DISCUSS",te="DISABLE_DISCUSS",Gt="CHANGE_PAGE",ce="SHOW_ANSWER_LOADING",ae="FETCH_ANSWER_INFO",xe="HIGH_TIP_MODAL",ye="SHOW_TIP_MODAL",Te="SELECT_UNLOCK_ANSWER",me="SET_CHOOSE_ANSWERS",He="EVAL_CHOOSE_START",fe="EVAL_CHOOSE_END",$t="SHOW_REP_loading",ie="FETCH_REP_CONTENT",ue="EDIT_REP_CONTENT",ge="SET_REP_PATH",he="SHOW_EVALUATE_LOADING",De="HIDE_EVALUATE_LOADING",Ne="SET_EVALUATE_MESSAGE",$e="SET_SHOW_DIR",Re="SET_EDITOR_SETTING",tn="SET_EDITOR_THEME",Me="SET_EDITOR_FONTSIZE",Oe="SET_REPOS",Fe="SHOW_PATH_LIST",le="HIDE_PATH_LIST",Tt="HIDE_PICTURE_VIEW",bt="SHOW_PICTURE_VIEW",_t="SHOW_NOTICE",Yt="HIDE_NOTICE",Mt="SHOW_CASE_NOTICE",Ut="HIDE_CASE_NOTICE",St="SET_TAB_INDEX",wt="SET_SSH_TABS",jt="SET_SSH_CONFIGDATA",Wt="SET_SSH_CONFIGDATAARR",Vt="SET_VNC_LOADING ",oe="ON_TAB_TO_SPACE ",de="ON_AUTO_FORMAT "},49291:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Ax:function(){return Qt},Ds:function(){return kt},KI:function(){return xt},SI:function(){return Xt},f1:function(){return gt}});var zt=Kt(38446);function gt(Ot){let Rt=!0;if(Ot.length>0){for(let Ct=0;Ct<Ot.length;Ct++)if(Ot[Ct].compile_success==0||!Ot[Ct].compile_success){Rt=!1;break}}else Rt=!1;return Rt}function Xt(Ot,Rt=""){let Ct=[];for(let Lt=0;Lt<Ot.length;Lt++){let At=Ot[Lt],It=Rt?`${Rt}/${At.name}`:`${At.name}`;Ct.push({title:At.name,type:At.type,isLeaf:At.type!=="tree",key:It})}return Ct}function Qt(Ot,Rt,Ct){for(let Lt=0;Lt<Ot.length;Lt++){let At=Ot[Lt];if(At.key===Rt){At.children=Ct;break}At.children&&Qt(At.children,Rt,Ct)}return Ot}function kt(Ot,Rt,Ct){let Lt;return function(){let At=this,It=arguments,mt=function(){Lt=null,Ct||Ot.apply(At,It)},et=Ct&&!Lt;clearTimeout(Lt),Lt=setTimeout(mt,Rt),et&&Ot.apply(At,It)}}const Bt=!0,xt=zt.Z.API_SERVER},75872:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return mt}});var zt=Kt(3113),gt=Kt(59301),Xt=Object.defineProperty,Qt=Object.defineProperties,kt=Object.getOwnPropertyDescriptors,Bt=Object.getOwnPropertySymbols,xt=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,Rt=(et,tt,st)=>tt in et?Xt(et,tt,{enumerable:!0,configurable:!0,writable:!0,value:st}):et[tt]=st,Ct=(et,tt)=>{for(var st in tt||(tt={}))xt.call(tt,st)&&Rt(et,st,tt[st]);if(Bt)for(var st of Bt(tt))Ot.call(tt,st)&&Rt(et,st,tt[st]);return et},Lt=(et,tt)=>Qt(et,kt(tt)),At=(et,tt)=>{var st={};for(var rt in et)xt.call(et,rt)&&tt.indexOf(rt)<0&&(st[rt]=et[rt]);if(et!=null&&Bt)for(var rt of Bt(et))tt.indexOf(rt)<0&&Ot.call(et,rt)&&(st[rt]=et[rt]);return st},It=(et,tt,st)=>new Promise((rt,ut)=>{var ct=Pt=>{try{pt(st.next(Pt))}catch(Dt){ut(Dt)}},ft=Pt=>{try{pt(st.throw(Pt))}catch(Dt){ut(Dt)}},pt=Pt=>Pt.done?rt(Pt.value):Promise.resolve(Pt.value).then(ct,ft);pt((st=st.apply(et,tt)).next())});const mt=et=>{var tt=et,{children:st}=tt,rt=At(tt,["children"]);const[ut,ct]=(0,gt.useState)(!1);return gt.createElement(zt.ZP,Lt(Ct({},rt),{loading:ut,onClick:ft=>It(void 0,null,function*(){try{ct(!0),yield rt.onClick(ft),ct(!1)}catch(pt){console.error(pt),ct(!1)}})}),st)}},66701:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return Ct}});var zt=Kt(59301),gt=Kt(3113),Xt=Kt(8591),Qt=Kt(54580),kt=Kt(32050),Bt=Kt(19248),xt=Kt(38446),Ot={img:"img___BgL9D"},Ct=({value:Lt,onChange:At,getFileProgress:It})=>{const[mt,et]=(0,zt.useState)(!1),tt=zt.createElement(gt.ZP,{loading:mt,icon:zt.createElement(kt.Z,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),st=()=>zt.createElement("div",{className:Ot.img},zt.createElement("img",{src:xt.Z.API_SERVER+"/api/attachments/"+Lt,alt:"avatar",style:{width:288}}),zt.createElement("div",null,zt.createElement(Bt.Z,{onClick:()=>At(""),style:{fontSize:"16px",color:"red"}}))),rt=ut=>{var ct,ft,pt,Pt,Dt,Zt;if(It&&It(ut),ut.file.status==="uploading"){et(!0);return}if(ut.file.status==="done"){if(et(!1),ut.file.status==="done"&&((ft=(ct=ut.file)==null?void 0:ct.response)==null?void 0:ft.status)===-1){Xt.ZP.error((Pt=(pt=ut.file)==null?void 0:pt.response)==null?void 0:Pt.message);return}At((Zt=(Dt=ut==null?void 0:ut.file)==null?void 0:Dt.response)==null?void 0:Zt.id)}};return zt.createElement(zt.Fragment,null,Lt?st():zt.createElement("div",null,zt.createElement(Qt.default,{withCredentials:!0,name:"file",showUploadList:!1,action:`${xt.Z.API_SERVER}/api/attachments.json`,onChange:rt,accept:"image/*"},tt),zt.createElement("div",{className:"mt20 c-light-black"},"\u8BF4\u660E\uFF1A\u652F\u6301\u4E0A\u4F20jpg/png\u7B49\u683C\u5F0F\u6587\u4EF6\uFF0C\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC72M,\u5EFA\u8BAE\u4F7F\u7528288*158\u50CF\u7D20\uFF1B"),zt.createElement("div",{className:"c-light-black"},"\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002")))}},14573:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return Lt}});var zt=Kt(59301),gt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Xt=Kt(92310),Qt=Kt.n(Xt),kt=Kt(71418),Bt=Kt(2859),xt=Kt(7660),Ot=Kt(88230),Rt=(At,It,mt)=>new Promise((et,tt)=>{var st=ct=>{try{ut(mt.next(ct))}catch(ft){tt(ft)}},rt=ct=>{try{ut(mt.throw(ct))}catch(ft){tt(ft)}},ut=ct=>ct.done?et(ct.value):Promise.resolve(ct.value).then(st,rt);ut((mt=mt.apply(At,It)).next())}),Lt=({data:At,className:It,fullWidth:mt,style:et={},onClose:tt,onOk:st,showFullTools:rt,noAssociationId:ut})=>{const ct=(0,zt.useRef)(null),ft=(0,zt.useRef)(null),pt=(0,zt.useRef)(null),Pt=(0,zt.useRef)(null),[Dt,Zt]=(0,zt.useState)(!1),[Ft,qt]=(0,zt.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,zt.useEffect)(()=>{pt.current||(pt.current=document.createElement("style"),document.head.appendChild(pt.current)),At!=null&&At.visible?(document.body.setAttribute("data-custom","y-hidden"),pt.current.innerHTML=" html { overflow-y: hidden; }",At!=null&&At.src&&te()):(document.body.removeAttribute("data-custom"),pt.current&&(document.head.removeChild(pt.current),pt.current=null))},[At==null?void 0:At.visible]);const te=()=>Rt(void 0,null,function*(){Zt(!0),qt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const xe=yield(0,Ot.ZJ)(At==null?void 0:At.src);ct.current.src="",ct.current.src=xe,ct.current.onload=function(){ae()},Zt(!1),qt("")}),Gt=xe=>Rt(void 0,null,function*(){Zt(!0),qt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const ye=yield(0,xt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:At.title,file:xe.dataUrl}});ye!=null&&ye.id&&!ut?(yield(0,xt.ZP)(`/api/attachments/${At.id}/add_subitem.json`,{method:"post",body:{subitem_id:ye==null?void 0:ye.id,settings:JSON.stringify(xe.state)}})).status===0&&st():ye!=null&&ye.id&&st(ye),Zt(!1),qt("")}),ce=()=>{const xe=document.querySelector('a[href="https://markerjs.com/"]');xe&&xe.parentNode&&(xe.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(Te=>{const me=document.querySelector(Te.name);me&&me.setAttribute("title",Te.title)})},ae=()=>{ft.current=new Bt.hP(ct.current),ft.current.targetRoot=Pt.current,ft.current.addEventListener("render",Gt),ft.current.addEventListener("beforeclose",tt),rt&&(ft.current.availableMarkerTypes=ft.current.ALL_MARKER_TYPES,ft.current.uiStyleSettings.redoButtonVisible=!0,ft.current.uiStyleSettings.notesButtonVisible=!0,ft.current.uiStyleSettings.zoomButtonVisible=!0,ft.current.uiStyleSettings.zoomOutButtonVisible=!0,ft.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ft.current.uiStyleSettings,ft.current.show(),At!=null&&At.snapshotData&&ft.current.restoreState(At.snapshotData),setTimeout(()=>{window.scrollTo(0,0),ce()},300)};return zt.createElement(zt.Fragment,null,(At==null?void 0:At.visible)&&zt.createElement(kt.Z,{spinning:Dt,tip:Ft,style:{position:"absolute"}},zt.createElement("div",{ref:Pt,className:Qt()(gt.imageDimensions,It,mt?gt.fullWidth:""),style:et},zt.createElement("img",{className:gt.img,ref:ct}))))}},46531:function(Tn,Cn,Kt){"use strict";var zt=Kt(59301),gt=Kt(95237),Xt=Kt(43604),Qt=Kt(99313),kt=Kt(3113),Bt=Kt(99325),xt=Kt(11570),Ot=Kt(48136),Rt=Kt(59301);const Ct=(0,zt.forwardRef)(({callback:Lt,showSaveButton:At,value:It=""},mt)=>{const et=(0,zt.useRef)(),tt=[{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 "}]}]}],st=[{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}`}]}]}],rt=ft=>{et.current.setValue(et.current.getValue()+" "+ft.value+" ")},ut=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Rt.createElement(gt.Z,{className:xt.Z.lists,gutter:[10,10]},tt.map((ft,pt)=>Rt.createElement(Xt.Z,{flex:"110px",className:xt.Z.item},Rt.createElement("div",null,Rt.createElement(Bt.Z,{value:`$$${ft.value}$$`}),ft.name),Rt.createElement("div",{className:xt.Z.children},ft.children.map((Pt,Dt)=>Rt.createElement("div",{key:Dt},Rt.createElement("h1",null,Pt.name),Rt.createElement(gt.Z,{gutter:[10,10]},Pt.data.map((Zt,Ft)=>Rt.createElement(Xt.Z,{key:Ft,onClick:()=>rt(Zt),className:xt.Z.diamond},Rt.createElement(Bt.Z,{value:"`$$"+Zt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Rt.createElement(gt.Z,{className:xt.Z.lists,gutter:[10,10]},st.map((ft,pt)=>Rt.createElement(Xt.Z,{flex:"110px",className:xt.Z.item},Rt.createElement("div",null,Rt.createElement(Bt.Z,{value:"`$$"+ft.value+"$$`"}),ft.name),Rt.createElement("div",{className:xt.Z.children},ft.children.map((Pt,Dt)=>Rt.createElement("div",{key:Dt},Pt.name&&Rt.createElement("h1",null,Pt.name),Rt.createElement(gt.Z,{gutter:[10,10]},Pt.data.map((Zt,Ft)=>Rt.createElement(Xt.Z,{key:Ft,onClick:()=>rt(Zt),className:xt.Z.diamond},Rt.createElement(Bt.Z,{value:"`$$"+Zt.value+"$$`"}))))))))))}],ct=()=>{var ft=document.createElement("div");ft.innerHTML=et.current.getValue();var pt=ft.innerText;return Lt&&Lt(pt),pt};return(0,zt.useImperativeHandle)(mt,()=>({getData:ct})),Rt.createElement("div",{className:xt.Z.mathWrap},Rt.createElement(Qt.default,{defaultActiveKey:"1",items:ut}),Rt.createElement("math-field",{locale:"zh_cn",className:xt.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:et,style:{width:800,marginTop:30,fontSize:18}},It||""),At&&Rt.createElement("div",{className:xt.Z.button},Rt.createElement(kt.ZP,{size:"large",onClick:ct,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Cn.Z=Ct},17696:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{z:function(){return He},Z:function(){return fe}});var zt=Kt(59301),gt=Kt(54580),Xt=Kt(8591),Qt=Kt(43418),kt=Kt(3113),Bt=Kt(38446),xt=Kt(59674),Ot=Object.defineProperty,Rt=Object.getOwnPropertySymbols,Ct=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable,At=($t,ie,ue)=>ie in $t?Ot($t,ie,{enumerable:!0,configurable:!0,writable:!0,value:ue}):$t[ie]=ue,It=($t,ie)=>{for(var ue in ie||(ie={}))Ct.call(ie,ue)&&At($t,ue,ie[ue]);if(Rt)for(var ue of Rt(ie))Lt.call(ie,ue)&&At($t,ue,ie[ue]);return $t},mt=($t,ie,ue)=>new Promise((ge,he)=>{var De=Re=>{try{$e(ue.next(Re))}catch(tn){he(tn)}},Ne=Re=>{try{$e(ue.throw(Re))}catch(tn){he(tn)}},$e=Re=>Re.done?ge(Re.value):Promise.resolve(Re.value).then(De,Ne);$e((ue=ue.apply($t,ie)).next())});const et="\u3000\u3000";function tt($t){var ie=["Bytes","KB","MB","GB","TB"];if($t==0)return"0 Byte";var ue=parseInt(""+Math.floor(Math.log($t)/Math.log(1024)),10);return($t/Math.pow(1024,ue)).toFixed(1)+" "+ie[ue]}var st=({value:$t=[],action:ie,onChange:ue,className:ge,maxSize:he=150,title:De="\u6587\u4EF6\u4E0A\u4F20",accept:Ne=null})=>{const $e={multiple:!1,fileList:$t,accept:Ne,withCredentials:!0,beforeUpload:tn=>tn.size/1024/1024<he?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${he}MB),\u5EFA\u8BAE\u4E0A\u4F20\u5230\u767E\u5EA6\u4E91\u7B49\u5176\u5B83\u5171\u4EAB\u5DE5\u5177\u91CC\uFF0C\u7136\u540E\u518Dtxt\u6587\u6863\u91CC\u7ED9\u51FA\u94FE\u63A5\u4EE5\u53CA\u5171\u4EAB\u5BC6\u7801\u5E76\u4E0A\u4F20`),Promise.reject()),action:`${ENV.API_SERVER}/api/attachments.json`,onChange(tn){var Me,Oe,Fe,le;let Tt=[...tn.fileList];if(Tt=Tt.map(bt=>(bt.name.indexOf(et)===-1&&(bt.name=`${bt.name}${et}${tt(bt.size)}`),It({},bt))),tn.file.status==="done"&&((Oe=(Me=tn.file)==null?void 0:Me.response)==null?void 0:Oe.status)===-1){message.error((le=(Fe=tn.file)==null?void 0:Fe.response)==null?void 0:le.message),ue([]);return}ue(Tt)},onRemove:tn=>mt(void 0,null,function*(){const Me=tn.size/1024/1024;return tn.status==="uploading"?!0:Me<he&&(tn.response?tn.response.id:tn.uid)?yield removeAttachment(tn.response?tn.response.id:tn.id):!0})};function Re(tn){tn.preventDefault(),tn.stopPropagation()}return React.createElement("div",{className:`single-upload ${ge||""}`},React.createElement(Upload,It({},$e),React.createElement(Button,{type:"primary",title:$t.length>0?"\u6BCF\u6B21\u53EA\u80FD\u4E0A\u4F20\u4E00\u4E2A\u8D44\u6E90\uFF0C \u5220\u9664\u4E0B\u9762\u8D44\u6E90\u53EF\u91CD\u65B0\u4E0A\u4F20 ":"",disabled:$t.length>0,ghost:!0},De),React.createElement("span",{onClick:Re,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",he,"M)"," ")))},rt=Kt(61481),ut=Kt(89392),ct=Object.defineProperty,ft=Object.getOwnPropertySymbols,pt=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,Dt=($t,ie,ue)=>ie in $t?ct($t,ie,{enumerable:!0,configurable:!0,writable:!0,value:ue}):$t[ie]=ue,Zt=($t,ie)=>{for(var ue in ie||(ie={}))pt.call(ie,ue)&&Dt($t,ue,ie[ue]);if(ft)for(var ue of ft(ie))Pt.call(ie,ue)&&Dt($t,ue,ie[ue]);return $t};const Ft=$t=>React.createElement("svg",Zt({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},$t),React.createElement("title",null,"\u5F62\u72B6"),React.createElement("path",{d:"M10.354 3.5h-2.77v8.167H6.416V3.5H3.646L7 0l3.354 3.5ZM14 7h-1.167v5.833H1.167V7H0v7h14V7Z",fill:"#3061D0",fillRule:"nonzero"}));var qt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjM1NCAzLjVoLTIuNzd2OC4xNjdINi40MTZWMy41SDMuNjQ2TDcgMGwzLjM1NCAzLjVaTTE0IDdoLTEuMTY3djUuODMzSDEuMTY3VjdIMHY3aDE0VjdaIiBmaWxsPSIjMzA2MUQwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",te=Object.defineProperty,Gt=Object.getOwnPropertySymbols,ce=Object.prototype.hasOwnProperty,ae=Object.prototype.propertyIsEnumerable,xe=($t,ie,ue)=>ie in $t?te($t,ie,{enumerable:!0,configurable:!0,writable:!0,value:ue}):$t[ie]=ue,ye=($t,ie)=>{for(var ue in ie||(ie={}))ce.call(ie,ue)&&xe($t,ue,ie[ue]);if(Gt)for(var ue of Gt(ie))ae.call(ie,ue)&&xe($t,ue,ie[ue]);return $t},Te=($t,ie,ue)=>new Promise((ge,he)=>{var De=Re=>{try{$e(ue.next(Re))}catch(tn){he(tn)}},Ne=Re=>{try{$e(ue.throw(Re))}catch(tn){he(tn)}},$e=Re=>Re.done?ge(Re.value):Promise.resolve(Re.value).then(De,Ne);$e((ue=ue.apply($t,ie)).next())});const{Dragger:me}=gt.default;function He($t){let ie=[];return $t&&$t.length>0&&(ie=$t.map(ue=>({uid:ue.id,id:ue.id,name:ue.title+et+ue.filesize,url:ue.url,filesize:ue.filesize,status:"done",response:{id:ue.id}}))),ie}var fe=({value:$t,onChange:ie,action:ue,data:ge,className:he,maxSize:De=150,title:Ne="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:$e=!1,accept:Re="",additionalText:tn,isDragger:Me,number:Oe=1e3,aloneClear:Fe=!1,realTimeRemove:le=!0,uploadText:Tt,setFileProgress:bt,showFileProgress:_t})=>{const[Yt,Mt]=(0,zt.useState)(!1);let[Ut,St]=(0,zt.useState)($t||[]),[wt,jt]=(0,zt.useState)(1);(0,zt.useEffect)(()=>{$t&&(wt===1&&St([...$t]),jt(2),Oe===($t==null?void 0:$t.length)&&Mt(!0))},[$t]);const Wt=()=>{setTimeout(()=>{Ut.pop(),St([...Ut])},500)};_t&&bt(Ut.some(de=>de.status==="uploading"));const Vt={multiple:!0,disabled:Yt,accept:Re,withCredentials:!0,fileList:Ut,beforeUpload:(de,Ge)=>{const Ye=de.size/1024/1024;return Ut.concat(Ge).length>Oe?(Ut.pop(),St([...Ut]),Xt.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${Oe}\u4E2A\u6587\u4EF6`),Fe?Promise.reject():(Wt(),!1)):Ye<De?!0:(Xt.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${De}MB).`),Fe?Promise.reject():(Wt(),!1))},data:ge,action:ue||`${Bt.Z.API_SERVER}/api/attachments.json`,onChange(de){var Ge,Ye,Ue,an;if(de.file.status==="removed"?Ut=de.fileList:Ut=(0,ut.uniqBy)([...de.fileList,...Ut],"uid"),de.file.status==="done"&&((Ye=(Ge=de.file)==null?void 0:Ge.response)==null?void 0:Ye.status)===-1){Xt.ZP.error((an=(Ue=de.file)==null?void 0:Ue.response)==null?void 0:an.message);return}Ut.length>=Oe?Mt(!0):Mt(!1),St([...Ut]),Ut=Ut.map(vn=>{var ke,Ze;return(ke=vn==null?void 0:vn.response)!=null&&ke.id&&(vn.url=(Ze=vn==null?void 0:vn.response)==null?void 0:Ze.url),vn.name.indexOf(et)===-1&&(vn.name=`${vn.name}${et}${tt(vn.size)}`),ye({},vn)}),console.log("info:",de,Ut),ie(Ut)},onRemove:de=>Te(void 0,null,function*(){if(!le)return!0;const Ge=()=>Te(void 0,null,function*(){if(de.response?de.response.id:de.id){let Ue=yield(0,xt.JZ)(de.response?de.response.id:de.uid);return Promise.resolve(Ue)}else return!0});return $e?new Promise((Ye,Ue)=>{Qt.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:zt.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>Te(void 0,null,function*(){const an=yield Ge();Xt.ZP.success("\u5220\u9664\u6210\u529F"),Ye(!0)}),onCancel:()=>Ye(!1)})}):yield Ge()})};function oe(de){de.preventDefault(),de.stopPropagation()}return zt.createElement("div",{className:`multi-upload ${he||""}`},Me&&zt.createElement(me,ye({},Vt),zt.createElement("p",{className:"ant-upload-drag-icon"},zt.createElement(rt.Z,null)),zt.createElement("p",{className:"ant-upload-text"},"\u70B9\u51FB\u4E0A\u4F20\u56FE\u6807\uFF0C\u9009\u62E9\u8981\u4E0A\u4F20\u7684\u6587\u4EF6\u6216\u5C06\u6587\u4EF6\u62D6\u62FD\u5230\u6B64",zt.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",De,"MB)"," "),tn),!Me&&zt.createElement(gt.default,ye({},Vt),zt.createElement(kt.ZP,{disabled:Yt,className:"upload_button"},zt.createElement("img",{className:"aBtn_img",src:qt}),Ne),zt.createElement("span",{onClick:oe,className:"upload_text"},Tt||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${De}MB)`)))}},57816:function(Tn,Cn,Kt){"use strict";var zt=Kt(59301),gt=Kt(93314),Xt=Kt(3113),Qt=Object.defineProperty,kt=Object.defineProperties,Bt=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,Rt=Object.prototype.propertyIsEnumerable,Ct=(mt,et,tt)=>et in mt?Qt(mt,et,{enumerable:!0,configurable:!0,writable:!0,value:tt}):mt[et]=tt,Lt=(mt,et)=>{for(var tt in et||(et={}))Ot.call(et,tt)&&Ct(mt,tt,et[tt]);if(xt)for(var tt of xt(et))Rt.call(et,tt)&&Ct(mt,tt,et[tt]);return mt},At=(mt,et)=>kt(mt,Bt(et));const It=({img:mt,buttonProps:et={},styles:tt={},customText:st,ButtonText:rt,ButtonClick:ut,Buttonclass:ct,ButtonTwo:ft,imgStyles:pt,loading:Pt=!1})=>zt.createElement("section",{className:"tc animated fadeIn",style:Lt(Lt({},{color:"#999",margin:"100px auto",visibility:Pt?"hidden":"visible"}),tt)},zt.createElement("img",{src:mt||gt,style:At(Lt({},pt),{pointerEvents:"none",userSelect:"none"})}),zt.createElement("p",{className:"mt20 font14"},st||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),rt&&zt.createElement(Xt.ZP,Lt({className:ct,onClick:ut},et),rt),ft&&ft);Cn.Z=It},90853:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return ct}});var zt=Kt(59301),gt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Xt=Kt(3113),Qt=Kt(70557),kt=Kt(57800),Bt=Kt(6848),xt=Kt(88230),Ot=Kt(30897),Rt=Kt(57816),Ct=Kt(38446),Lt=Kt(89282),At=Kt(59301),It=Object.defineProperty,mt=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,st=(ft,pt,Pt)=>pt in ft?It(ft,pt,{enumerable:!0,configurable:!0,writable:!0,value:Pt}):ft[pt]=Pt,rt=(ft,pt)=>{for(var Pt in pt||(pt={}))et.call(pt,Pt)&&st(ft,Pt,pt[Pt]);if(mt)for(var Pt of mt(pt))tt.call(pt,Pt)&&st(ft,Pt,pt[Pt]);return ft},ut=(ft,pt,Pt)=>new Promise((Dt,Zt)=>{var Ft=Gt=>{try{te(Pt.next(Gt))}catch(ce){Zt(ce)}},qt=Gt=>{try{te(Pt.throw(Gt))}catch(ce){Zt(ce)}},te=Gt=>Gt.done?Dt(Gt.value):Promise.resolve(Gt.value).then(Ft,qt);te((Pt=Pt.apply(ft,pt)).next())}),ct=({editOffice:ft="view",data:pt,theme:Pt,type:Dt,filename:Zt,monacoEditor:Ft,className:qt,style:te,close:Gt,onClose:ce,hasMask:ae,disabledDownload:xe,onImgDimensions:ye,showNodata:Te,recordInfo:me})=>{const[He,fe]=(0,zt.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[$t,ie]=(0,zt.useState)(""),[ue,ge]=(0,zt.useState)(),he=window.ENV==="build"?"/react/build":"",De=location.host.startsWith("localhost")?Ct.Z.PROXY_SERVER:Ct.Z.API_SERVER,$e=10*(1024*1024),Re=(0,zt.useRef)();pt!=null&&pt.startsWith("/api")&&Dt!=="txt"&&(pt=Ct.Z.API_SERVER+pt);const tn=le=>le.substring(le.lastIndexOf("/")+1).split(".").pop();Zt&&Ft&&(Ft.filename=Zt),(0,zt.useEffect)(()=>{var le,Tt;const bt=(Tt=(le=document.cookie)==null?void 0:le.replace(/\s/g,""))==null?void 0:Tt.split(";");bt==null||bt.map(_t=>{let Yt=_t.split("=");Yt[0]==="_educoder_session"&&ie(Yt[1])})},[]),(0,zt.useEffect)(()=>{Dt==="office"&&(pt.indexOf("bigfilescdn.")>-1||pt.indexOf("bigfiles1")>-1?ge({url:pt,fileType:tn(pt),model:pt.indexOf("model=edit")?"edit":"view"}):Me())},[Dt,pt]);const Me=()=>ut(void 0,null,function*(){console.log("data:",pt);let le=pt;pt.startsWith("http")||(le=location.origin+le);let Tt=new URL(le).pathname.split("/").pop();const bt=yield(0,Ot.gJ)({attachment_id:Tt});bt.url=De+bt.url,ge(bt)}),Oe=()=>{if(pt.startsWith("http")||pt.startsWith("blob:")){Fe();return}(0,xt.Sv)(Zt||"educoder",pt,Zt)},Fe=()=>{me&&(0,Lt.fc)({id:me==null?void 0:me.id,watch_type:1,course_id:me==null?void 0:me.course_id}),(0,xt.Nd)(Zt||"educoder",decodeURIComponent(pt))};return At.createElement("div",{style:rt({},te||{}),className:`${ae&>.bgBlack} ${Dt?gt.wrp:"hide"}`},Gt&&At.createElement("div",{className:gt.close,ref:Re},!!ye&&At.createElement(Bt.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Re.current},At.createElement("span",{onClick:()=>{ce(),ye()}},At.createElement("i",{className:"icon-yulanpizhu"}))),!xe&&At.createElement(Bt.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Re.current},At.createElement("span",{onClick:Fe},At.createElement("i",{className:"icon-quxiaozhiding"}))),At.createElement(Bt.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Re.current},At.createElement("span",{className:"",onClick:ce},At.createElement("i",{className:"icon-guanbi1"})))),At.createElement("div",{className:`${gt[qt]} ${qt} ${gt.monaco} ${Dt==="txt"?"show":"hide"}`},Dt==="txt"&&At.createElement(At.Fragment,null,At.createElement(kt.ZP,rt({},Ft)))),Dt==="audio"&&At.createElement("audio",{src:`${(pt==null?void 0:pt.indexOf("http://"))>-1||(pt==null?void 0:pt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${pt}`,autoPlay:!0}),Dt==="video"&&At.createElement(At.Fragment,null,(pt==null?void 0:pt.indexOf("http"))>-1?At.createElement("video",{controls:!0,src:`${pt}`,autoPlay:!0}):At.createElement("video",{controls:!0,src:`data:video/mp4;base64,${pt}`,autoPlay:!0})),Dt==="office"&&ue&&At.createElement("iframe",{src:`${he}/office.html?key=${ue.key}&url=${btoa(ue.url)}&callbackUrl=${De+(ue.callbackUrl||"")}&fileType=${ue.fileType}&title=${ue.title||""}&model=${ft}&officeServer=${Ct.Z.ONLYOFFICE}&disabledDownload=${!!xe}`}),Dt==="html"&&At.createElement("iframe",{src:pt+"&disposition=inline"}),Dt==="pdf"&&At.createElement("iframe",{src:`${he}/js/pdfview/index.html?filename=${Zt||"educoder.pdf"}&url=${encodeURIComponent(pt)}&disabledDownload=${!!xe}`}),Dt==="image"&&At.createElement("img",{src:`${(pt==null?void 0:pt.indexOf("http://"))>-1||(pt==null?void 0:pt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${pt}`}),(Dt==="other"||Dt==="download")&&At.createElement(At.Fragment,null,Te?At.createElement(Rt.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:At.createElement(Xt.ZP,{icon:At.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Oe,disabled:xe},"\u4E0B\u8F7D")}):At.createElement(Xt.ZP,{type:"primary",size:"middle",onClick:Oe,disabled:xe},At.createElement(Qt.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},99325:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{z:function(){return Dt},Z:function(){return Zt}});var zt=Kt(59301),gt=Kt(2878),Xt=Kt(85187),Qt=Kt(64018),kt=Kt(40846),Bt=Kt(38446),xt=Kt(88230),Ot=Kt(15342),Rt=Kt(1012),Ct=Kt(90853),Lt=Kt(59301),It=({html:Ft})=>{const qt=(0,zt.useRef)(null),te=(0,zt.useRef)(null),Gt=`.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,zt.useEffect)(()=>{const ce=qt.current.attachShadow({mode:"open"});te.current=document.createElement("div"),te.current.className="markdown-body",te.current.innerHTML=Ft,ce.appendChild(te.current);const ae=document.createElement("style");return ae.textContent=Gt,ce.appendChild(ae),()=>{ce.innerHTML=""}},[]),(0,zt.useEffect)(()=>{te.current&&(te.current.innerHTML=Ft)},[Ft]),Lt.createElement("div",{ref:qt})},mt=Object.defineProperty,et=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,rt=(Ft,qt,te)=>qt in Ft?mt(Ft,qt,{enumerable:!0,configurable:!0,writable:!0,value:te}):Ft[qt]=te,ut=(Ft,qt)=>{for(var te in qt||(qt={}))tt.call(qt,te)&&rt(Ft,te,qt[te]);if(et)for(var te of et(qt))st.call(qt,te)&&rt(Ft,te,qt[te]);return Ft};const ct="@\u2581\u2581@",ft="@\u2581@",pt=/<pre[^>]*>/g;function Pt(Ft){let qt=document.createElement("div");return qt.innerHTML=Ft,qt.childNodes.length===0?"":qt.childNodes[0].nodeValue}const Dt=(Ft,qt)=>{Ft=Ft||"";const te=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Gt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ce=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ae=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return qt?Ft.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(te,(xe,ye,Te,me,He,fe,$t)=>{const ie=ye||me||fe,ue=Te||He||$t||"?";return Bt.Z.API_SERVER+"/api/attachments/"+ie+ue+"&t="+(0,xt.Jn)(ie,Date.now())+(xe.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Ft=Ft.replace(ae,(xe,ye,Te,me,He,fe,$t)=>{const ie=ye||me||fe,ue=Te||He||$t||"?";return Bt.Z.API_SERVER+"/attachments/download/"+ie+ue+"&t="+(0,xt.Jn)(ie,Date.now())+(xe.indexOf(")")>-1?")":"&")}).replace(te,(xe,ye,Te,me,He,fe,$t)=>{const ie=ye||me||fe,ue=Te||He||$t||"?";return Bt.Z.API_SERVER+"/api/attachments/"+ie+ue+"&t="+(0,xt.Jn)(ie,Date.now())+(xe.indexOf(")")>-1?")":"&")}).replace(Gt,(xe,ye,Te,me,He)=>{const fe=ye||me,$t=Te||He||"";return'"'+Bt.Z.API_SERVER+"/api/attachments/"+fe+$t+fe+$t+"&t="+(0,xt.Jn)(fe,Date.now())}).replace(ce,(xe,ye,Te,me,He)=>{const fe=ye||me,$t=Te||He||"";return"("+Bt.Z.API_SERVER+"/files/uploads/"+fe+$t+fe+$t+"&t="+(0,xt.Jn)(fe,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,`
|
|
|
`),Ft)};var Zt=({value:Ft="",className:qt,showTextOnly:te,showLines:Gt,style:ce={},stylesPrev:ae={},highlightKeywords:xe,showProgramFill:ye,isProgramFill:Te,disabledFill:me=!1,programFillValue:He,onFillChange:fe=ue=>{},onFillBlur:$t=()=>{},onFillFocus:ie=()=>{}})=>{let ue=String(Ft);const[ge,he]=(0,zt.useState)(""),[De,Ne]=(0,zt.useState)("office"),[$e,Re]=(0,zt.useState)([]),tn=(0,zt.useRef)("a"+(0,Rt.Z)()),Me={},Oe=(Wt,Vt,oe)=>{const de=document.createElement(Wt===ft?"input":"textarea");de.style.width="100%",de.style.height=Wt===ft?"40px":"151px",de.rows=5,de.spellcheck=!1,de.name="edu-program-fill",de.placeholder="\u8BF7\u8F93\u5165",de.dataset.id=Vt;const Ge=Object.keys(Me).length;return Me[Ge]=de,`<span class="edu-program-fill-wrap ${Wt===ft?"":"show"}" style="width:${Wt===ft?"400px":"100%"}" title=${oe||""}><span>${de.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Fe(Wt){return Wt=Wt.replace(/!\[.*?\]\(.*?\)/g,""),Wt=Wt.replace(/\[.*?\]\(.*?\)/g,""),Wt=Wt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Wt=Wt.replace(/<embed.*?>/g,""),Wt=Wt.replace(/<img.*?>/g,""),Wt=Wt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Wt=Wt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Wt=Wt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Wt=Wt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Wt}const le=Wt=>Wt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Vt,oe){let de=oe.replace(/(\n|\r)/g,"").split("}"),Ge=[];return de.map(Ye=>{Ye!=""&&Ge.push(`.${tn.current} ${Ye}`)}),`<style>${Ge.join("}")}</style>`}),Tt=(0,zt.useMemo)(()=>{try{const de=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Ge=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ye=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Ue=/\(\/attachments\/download\//g;ue=ue.replace(Ue,"("+Bt.Z.API_SERVER+"/attachments/download/").replace(de,"("+Bt.Z.API_SERVER+"/api/attachments/").replace(Ge,'"'+Bt.Z.API_SERVER+"/api/attachments/").replace(Ye,'"'+Bt.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(de){}if(ye){let de=-1;return ue=ue.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Ge,Ye,Ue){var an;return++de,Oe(Ge,de,(an=He==null?void 0:He[de])==null?void 0:an.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${le(ue||"")}</pre>`}let Wt=le(ue);Wt=(0,Xt.ZP)(Wt);const Vt=(0,Xt.ez)();ue.match(/\[TOC\]/)&&(Wt=Wt.replace("<p>[TOC]</p>",(0,Xt.Qv)()),(0,Xt.Iy)()),Wt=Wt.replace(/(__special_katext_id_\d+__)/g,(de,Ge)=>{const{type:Ye,expression:Ue}=Vt[Ge];return(0,Ot.renderToString)(Pt(Ue)||"",{displayMode:Ye==="block",throwOnError:!1,output:"html"})}),Wt=Wt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Xt.AL)();const oe=document.createElement("div");if(oe.innerHTML=Wt,te)return oe.innerText;if(xe){const de=xe.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Mt(oe,de),oe.innerHTML}return setTimeout(()=>wt(),500),oe.innerHTML},[ue,xe]);(0,zt.useEffect)(()=>{Ut.current&&Ut.current.querySelectorAll(["input","textarea"]).forEach(Vt=>{Vt.oninput=bt,Vt.onblur=_t,Vt.onfocus=Yt})},[$e]),(0,zt.useEffect)(()=>{var Wt,Vt,oe,de,Ge;if(He!=null&&He.length)try{const Ye=Ut.current.querySelectorAll(".edu-program-fill-score"),Ue=Ut.current.querySelectorAll('[name="edu-program-fill"]');for(const[an,vn]of Ue.entries())vn.value=((Wt=He==null?void 0:He[an])==null?void 0:Wt.value)||"",((Vt=He==null?void 0:He[an])==null?void 0:Vt.type)==="warning"?vn.className="program-fill-warning":((oe=He==null?void 0:He[an])==null?void 0:oe.type)==="success"?vn.className="program-fill-success":vn.className="";for(const[an,vn]of Ye.entries())vn.innerHTML=(de=He==null?void 0:He[an])!=null&&de.score?`${(Ge=He==null?void 0:He[an])==null?void 0:Ge.score}\u5206`:"";Re(He)}catch(Ye){console.log(Ye,"error")}},[He]);const bt=Wt=>{$e[Wt.target.dataset.id]=$e[Wt.target.dataset.id]||{},$e[Wt.target.dataset.id].value=Wt.target.value,Re([...$e]),fe($e,Wt.target.dataset.id)},_t=Wt=>{$e[Wt.target.dataset.id]=$e[Wt.target.dataset.id]||{},$e[Wt.target.dataset.id].value=Wt.target.value,Re([...$e]),$t($e,Wt.target.dataset.id)},Yt=Wt=>{$e[Wt.target.dataset.id]=$e[Wt.target.dataset.id]||{},$e[Wt.target.dataset.id].value=Wt.target.value,Re([...$e]),ie($e,Wt.target.dataset.id)};function Mt(Wt,Vt){return Wt.childNodes.forEach(oe=>{var de;if(oe.childNodes.length>0)Mt(oe,Vt);else if(oe.nodeName!=="IMG")if(oe.innerHTML)oe.innerHTML=(de=oe.innerHTML)==null?void 0:de.replace(new RegExp(Vt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const Ge=document.createElement("span");Ge.innerHTML=oe.textContent.replace(new RegExp(Vt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),oe.replaceWith(Ge)}})}const Ut=(0,zt.useRef)();Xt.jb.WebkitLineClamp=Gt,Gt&&(ce=ut(ut({},ce),Xt.jb));function St(Wt){let Vt=Wt.target;if(Vt.tagName.toUpperCase()==="A"){let oe=Vt.getAttribute("href");if(oe.indexOf("office")>-1)Wt.preventDefault(),he(oe),Ne("office");else if(oe.indexOf("application/pdf")>-1)Wt.preventDefault(),he(oe),Ne("pdf");else if(oe.indexOf("text/html")>-1)Wt.preventDefault(),he(oe),Ne("html");else if(oe.startsWith("#")){Wt.preventDefault();let de=document.getElementById(oe.replace("#",""));de&&de.scrollIntoView(!0)}}}const wt=()=>{var Wt;const Vt=(Wt=Ut.current)==null?void 0:Wt.querySelectorAll("video");Vt==null||Vt.forEach(oe=>{if(oe.oncontextmenu=()=>!1,oe.src.indexOf(".m3u8")>-1&&!oe.canPlayType("application/vnd.apple.mpegurl")){if(kt.ZP.isSupported()){var de=new kt.ZP;de.loadSource(oe.src),de.attachMedia(oe)}}})};(0,zt.useEffect)(()=>{if(Ut.current&&Tt&&Tt.match(pt)&&window.PR.prettyPrint(),Ut.current)return Ut.current.addEventListener("click",St),()=>{var Wt;(Wt=Ut.current)==null||Wt.removeEventListener("click",St),(0,Xt.AL)(),(0,Xt.Iy)()}},[Tt,Ut.current,St]),(0,zt.useEffect)(()=>{var Wt;const Vt=oe=>{oe.preventDefault(),oe.clipboardData.setData("text",window.getSelection().toString())};return(Wt=Ut.current)==null||Wt.addEventListener("copy",Vt),()=>{var oe;(oe=Ut.current)==null||oe.removeEventListener("copy",Vt)}},[Ut.current]);const jt=Wt=>/<style[\s\S]*?>/i.test(Wt||"");return zt.createElement(zt.Fragment,null,te&&zt.createElement("div",{ref:Ut},Tt),!te&&!jt(Tt)&&zt.createElement("div",{ref:Ut,style:ut({},ce),className:`${qt||""} ${me?"disabled-fill":""} markdown-body ${tn.current}`,dangerouslySetInnerHTML:{__html:Tt}}),!te&&jt(Tt)&&zt.createElement(It,{html:Tt}),zt.createElement(Ct.Z,{close:!0,data:ge,type:ge!=null&&ge.length?De:"",style:ut({},ae),onClose:()=>he("")}))}},85469:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return Hn}});var zt=Kt(59301),gt=Kt(50484),Xt=Kt(15277),Qt=Kt(92310),kt=Kt.n(Qt),Bt=Kt(92413),xt=Kt(33708),Ot=Kt(400),Rt=Kt(33606),Ct=Kt(39559),Lt=Kt(37061),At=Kt(55468),It=Kt(18929),mt=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],et=zt.createContext(null),tt=0;function st(Pe,We){var pn=zt.useState(function(){return tt+=1,String(tt)}),On=(0,Rt.Z)(pn,1),Ke=On[0],nn=zt.useContext(et),_e={data:We,canPreview:Pe};return zt.useEffect(function(){if(nn)return nn.register(Ke,_e)},[]),zt.useEffect(function(){nn&&nn.register(Ke,_e)},[Pe,We]),Ke}function rt(Pe){return new Promise(function(We){var pn=document.createElement("img");pn.onerror=function(){return We(!1)},pn.onload=function(){return We(!0)},pn.src=Pe})}function ut(Pe){var We=Pe.src,pn=Pe.isCustomPlaceholder,On=Pe.fallback,Ke=(0,zt.useState)(pn?"loading":"normal"),nn=(0,Rt.Z)(Ke,2),_e=nn[0],en=nn[1],un=(0,zt.useRef)(!1),sn=_e==="error";(0,zt.useEffect)(function(){rt(We).then(function(Mn){Mn||en("error")})},[We]),(0,zt.useEffect)(function(){pn&&!un.current?en("loading"):sn&&en("normal")},[We]);var xn=function(){en("normal")},gn=function(Qn){un.current=!1,_e==="loading"&&Qn!=null&&Qn.complete&&(Qn.naturalWidth||Qn.naturalHeight)&&(un.current=!0,xn())},Ln=sn&&On?{src:On}:{onLoad:xn,src:We};return[gn,Ln,_e]}var ct=Kt(86923),ft=Kt(8224),pt=Kt(10228),Pt=Kt(48736);function Dt(Pe,We,pn,On){var Ke=We+pn,nn=(pn-On)/2;if(pn>On){if(We>0)return(0,Ot.Z)({},Pe,nn);if(We<0&&Ke<On)return(0,Ot.Z)({},Pe,-nn)}else if(We<0||Ke>On)return(0,Ot.Z)({},Pe,We<0?nn:-nn);return{}}function Zt(Pe,We,pn,On){var Ke=(0,At.g1)(),nn=Ke.width,_e=Ke.height,en=null;return Pe<=nn&&We<=_e?en={x:0,y:0}:(Pe>nn||We>_e)&&(en=(0,xt.Z)((0,xt.Z)({},Dt("x",pn,Pe,nn)),Dt("y",On,We,_e))),en}var Ft=Kt(13697),qt=Kt(16089),te={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Gt(Pe,We,pn,On){var Ke=(0,zt.useRef)(null),nn=(0,zt.useRef)([]),_e=(0,zt.useState)(te),en=(0,Rt.Z)(_e,2),un=en[0],sn=en[1],xn=function(Qn){sn(te),On&&!(0,Ft.Z)(te,un)&&On({transform:te,action:Qn})},gn=function(Qn,ln){Ke.current===null&&(nn.current=[],Ke.current=(0,qt.Z)(function(){sn(function(ti){var vi=ti;return nn.current.forEach(function(oi){vi=(0,xt.Z)((0,xt.Z)({},vi),oi)}),Ke.current=null,On==null||On({transform:vi,action:ln}),vi})})),nn.current.push((0,xt.Z)((0,xt.Z)({},un),Qn))},Ln=function(Qn,ln,ti,vi){var oi=Pe.current,dn=oi.width,Rn=oi.height,Xn=oi.offsetWidth,hi=oi.offsetHeight,ei=oi.offsetLeft,fi=oi.offsetTop,Ai=Qn,gi=un.scale*Qn;gi>pn?(Ai=pn/un.scale,gi=pn):gi<We&&(Ai=We/un.scale,gi=We);var ii=ti!=null?ti:innerWidth/2,Li=vi!=null?vi:innerHeight/2,bn=Ai-1,er=bn*dn*.5,En=bn*Rn*.5,Oi=bn*(ii-un.x-ei),wr=bn*(Li-un.y-fi),_i=un.x-(Oi-er),kr=un.y-(wr-En);if(Qn<1&&gi===1){var gr=Xn*gi,wi=hi*gi,yi=(0,At.g1)(),Zi=yi.width,Xi=yi.height;gr<=Zi&&wi<=Xi&&(_i=0,kr=0)}gn({x:_i,y:kr,scale:gi},ln)};return{transform:un,resetTransform:xn,updateTransform:gn,dispatchZoomChange:Ln}}var ce=Kt(43403),ae=Kt(77900),xe=function(We){var pn=We.visible,On=We.maskTransitionName,Ke=We.getContainer,nn=We.prefixCls,_e=We.rootClassName,en=We.icons,un=We.countRender,sn=We.showSwitch,xn=We.showProgress,gn=We.current,Ln=We.transform,Mn=We.count,Qn=We.scale,ln=We.minScale,ti=We.maxScale,vi=We.closeIcon,oi=We.onSwitchLeft,dn=We.onSwitchRight,Rn=We.onClose,Xn=We.onZoomIn,hi=We.onZoomOut,ei=We.onRotateRight,fi=We.onRotateLeft,Ai=We.onFlipX,gi=We.onFlipY,ii=We.toolbarRender,Li=(0,zt.useContext)(et),bn=en.rotateLeft,er=en.rotateRight,En=en.zoomIn,Oi=en.zoomOut,wr=en.close,_i=en.left,kr=en.right,gr=en.flipX,wi=en.flipY,yi="".concat(nn,"-operations-operation");zt.useEffect(function(){var Se=function(yr){yr.keyCode===pt.Z.ESC&&Rn()};return pn&&window.addEventListener("keydown",Se),function(){window.removeEventListener("keydown",Se)}},[pn]);var Zi=[{icon:wi,onClick:gi,type:"flipY"},{icon:gr,onClick:Ai,type:"flipX"},{icon:bn,onClick:fi,type:"rotateLeft"},{icon:er,onClick:ei,type:"rotateRight"},{icon:Oi,onClick:hi,type:"zoomOut",disabled:Qn===ln},{icon:En,onClick:Xn,type:"zoomIn",disabled:Qn===ti}],Xi=Zi.map(function(Se){var ji,yr=Se.icon,Ki=Se.onClick,rr=Se.type,Tr=Se.disabled;return zt.createElement("div",{className:kt()(yi,(ji={},(0,Ot.Z)(ji,"".concat(nn,"-operations-operation-").concat(rr),!0),(0,Ot.Z)(ji,"".concat(nn,"-operations-operation-disabled"),!!Tr),ji)),onClick:Ki,key:rr},yr)}),qn=zt.createElement("div",{className:"".concat(nn,"-operations")},Xi);return zt.createElement(ae.default,{visible:pn,motionName:On},function(Se){var ji=Se.className,yr=Se.style;return zt.createElement(ce.Z,{open:!0,getContainer:Ke!=null?Ke:document.body},zt.createElement("div",{className:kt()("".concat(nn,"-operations-wrapper"),ji,_e),style:yr},vi===null?null:zt.createElement("button",{className:"".concat(nn,"-close"),onClick:Rn},vi||wr),sn&&zt.createElement(zt.Fragment,null,zt.createElement("div",{className:kt()("".concat(nn,"-switch-left"),(0,Ot.Z)({},"".concat(nn,"-switch-left-disabled"),gn===0)),onClick:oi},_i),zt.createElement("div",{className:kt()("".concat(nn,"-switch-right"),(0,Ot.Z)({},"".concat(nn,"-switch-right-disabled"),gn===Mn-1)),onClick:dn},kr)),zt.createElement("div",{className:"".concat(nn,"-footer")},xn&&zt.createElement("div",{className:"".concat(nn,"-progress")},un?un(gn+1,Mn):"".concat(gn+1," / ").concat(Mn)),ii?ii(qn,(0,xt.Z)({icons:{flipYIcon:Xi[0],flipXIcon:Xi[1],rotateLeftIcon:Xi[2],rotateRightIcon:Xi[3],zoomOutIcon:Xi[4],zoomInIcon:Xi[5]},actions:{onFlipY:gi,onFlipX:Ai,onRotateLeft:fi,onRotateRight:ei,onZoomOut:hi,onZoomIn:Xn},transform:Ln},Li?{current:gn,total:Mn}:{})):qn)))})},ye=xe,Te=1,me=1,He=["fallback","src","imgRef"],fe=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],$t=function(We){var pn=We.fallback,On=We.src,Ke=We.imgRef,nn=(0,Lt.Z)(We,He),_e=ut({src:On,fallback:pn}),en=(0,Rt.Z)(_e,2),un=en[0],sn=en[1];return zt.createElement("img",(0,Bt.Z)({ref:function(gn){Ke.current=gn,un(gn)}},nn,sn))},ie=function(We){var pn=We.prefixCls,On=We.src,Ke=We.alt,nn=We.fallback,_e=We.movable,en=_e===void 0?!0:_e,un=We.onClose,sn=We.visible,xn=We.icons,gn=xn===void 0?{}:xn,Ln=We.rootClassName,Mn=We.closeIcon,Qn=We.getContainer,ln=We.current,ti=ln===void 0?0:ln,vi=We.count,oi=vi===void 0?1:vi,dn=We.countRender,Rn=We.scaleStep,Xn=Rn===void 0?.5:Rn,hi=We.minScale,ei=hi===void 0?1:hi,fi=We.maxScale,Ai=fi===void 0?50:fi,gi=We.transitionName,ii=gi===void 0?"zoom":gi,Li=We.maskTransitionName,bn=Li===void 0?"fade":Li,er=We.imageRender,En=We.imgCommonProps,Oi=We.toolbarRender,wr=We.onTransform,_i=We.onChange,kr=(0,Lt.Z)(We,fe),gr=(0,zt.useRef)(),wi=(0,zt.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),yi=(0,zt.useState)(!1),Zi=(0,Rt.Z)(yi,2),Xi=Zi[0],qn=Zi[1],Se=(0,zt.useContext)(et),ji=Se&&oi>1,yr=Se&&oi>=1,Ki=Gt(gr,ei,Ai,wr),rr=Ki.transform,Tr=Ki.resetTransform,Ar=Ki.updateTransform,Bi=Ki.dispatchZoomChange,Di=(0,zt.useState)(!0),Mi=(0,Rt.Z)(Di,2),lr=Mi[0],ar=Mi[1],Pi=rr.rotate,mi=rr.scale,Wn=rr.x,Ti=rr.y,Sr=kt()((0,Ot.Z)({},"".concat(pn,"-moving"),Xi));(0,zt.useEffect)(function(){lr||ar(!0)},[lr]);var Br=function(){Tr("close")},Rr=function(){Bi(Te+Xn,"zoomIn")},Vr=function(){Bi(Te/(Te+Xn),"zoomOut")},io=function(){Ar({rotate:Pi+90},"rotateRight")},ro=function(){Ar({rotate:Pi-90},"rotateLeft")},To=function(){Ar({flipX:!rr.flipX},"flipX")},oo=function(){Ar({flipY:!rr.flipY},"flipY")},ko=function($i){$i==null||$i.preventDefault(),$i==null||$i.stopPropagation(),ti>0&&(ar(!1),Tr("prev"),_i==null||_i(ti-1,ti))},yn=function($i){$i==null||$i.preventDefault(),$i==null||$i.stopPropagation(),ti<oi-1&&(ar(!1),Tr("next"),_i==null||_i(ti+1,ti))},so=function(){if(sn&&Xi){qn(!1);var $i=wi.current,Uo=$i.transformX,zi=$i.transformY,dr=Wn!==Uo&&Ti!==zi;if(!dr)return;var pr=gr.current.offsetWidth*mi,li=gr.current.offsetHeight*mi,no=gr.current.getBoundingClientRect(),bo=no.left,os=no.top,Js=Pi%180!==0,wa=Zt(Js?li:pr,Js?pr:li,bo,os);wa&&Ar((0,xt.Z)({},wa),"dragRebound")}},Pl=function($i){!en||$i.button!==0||($i.preventDefault(),$i.stopPropagation(),wi.current={deltaX:$i.pageX-rr.x,deltaY:$i.pageY-rr.y,transformX:rr.x,transformY:rr.y},qn(!0))},vs=function($i){sn&&Xi&&Ar({x:$i.pageX-wi.current.deltaX,y:$i.pageY-wi.current.deltaY},"move")},Nr=function($i){if(!(!sn||$i.deltaY==0)){var Uo=Math.abs($i.deltaY/100),zi=Math.min(Uo,me),dr=Te+zi*Xn;$i.deltaY>0&&(dr=Te/dr),Bi(dr,"wheel",$i.clientX,$i.clientY)}},Pr=function($i){!sn||!ji||($i.keyCode===pt.Z.LEFT?ko():$i.keyCode===pt.Z.RIGHT&&yn())},uo=function($i){sn&&(mi!==1?Ar({x:0,y:0,scale:1},"doubleClick"):Bi(Te+Xn,"doubleClick",$i.clientX,$i.clientY))};(0,zt.useEffect)(function(){var Ji,$i,Uo,zi;if(en){Uo=(0,ft.Z)(window,"mouseup",so,!1),zi=(0,ft.Z)(window,"mousemove",vs,!1);try{window.top!==window.self&&(Ji=(0,ft.Z)(window.top,"mouseup",so,!1),$i=(0,ft.Z)(window.top,"mousemove",vs,!1))}catch(dr){(0,Pt.Kp)(!1,"[rc-image] ".concat(dr))}}return function(){var dr,pr,li,no;(dr=Uo)===null||dr===void 0||dr.remove(),(pr=zi)===null||pr===void 0||pr.remove(),(li=Ji)===null||li===void 0||li.remove(),(no=$i)===null||no===void 0||no.remove()}},[sn,Xi,Wn,Ti,Pi,en]),(0,zt.useEffect)(function(){var Ji=(0,ft.Z)(window,"keydown",Pr,!1);return function(){Ji.remove()}},[sn,ji,ti]);var Wr=zt.createElement($t,(0,Bt.Z)({},En,{width:We.width,height:We.height,imgRef:gr,className:"".concat(pn,"-img"),alt:Ke,style:{transform:"translate3d(".concat(rr.x,"px, ").concat(rr.y,"px, 0) scale3d(").concat(rr.flipX?"-":"").concat(mi,", ").concat(rr.flipY?"-":"").concat(mi,", 1) rotate(").concat(Pi,"deg)"),transitionDuration:!lr&&"0s"},fallback:nn,src:On,onWheel:Nr,onMouseDown:Pl,onDoubleClick:uo}));return zt.createElement(zt.Fragment,null,zt.createElement(ct.Z,(0,Bt.Z)({transitionName:ii,maskTransitionName:bn,closable:!1,keyboard:!0,prefixCls:pn,onClose:un,visible:sn,wrapClassName:Sr,rootClassName:Ln,getContainer:Qn},kr,{afterClose:Br}),zt.createElement("div",{className:"".concat(pn,"-img-wrapper")},er?er(Wr,(0,xt.Z)({transform:rr},Se?{current:ti}:{})):Wr)),zt.createElement(ye,{visible:sn,transform:rr,maskTransitionName:bn,closeIcon:Mn,getContainer:Qn,prefixCls:pn,rootClassName:Ln,icons:gn,countRender:dn,showSwitch:ji,showProgress:yr,current:ti,count:oi,scale:mi,minScale:ei,maxScale:Ai,toolbarRender:Oi,onSwitchLeft:ko,onSwitchRight:yn,onZoomIn:Rr,onZoomOut:Vr,onRotateRight:io,onRotateLeft:ro,onFlipX:To,onFlipY:oo,onClose:un}))},ue=ie,ge=Kt(26407);function he(Pe){var We=zt.useState({}),pn=(0,Rt.Z)(We,2),On=pn[0],Ke=pn[1],nn=zt.useCallback(function(en,un){return Ke(function(sn){return(0,xt.Z)((0,xt.Z)({},sn),{},(0,Ot.Z)({},en,un))}),function(){Ke(function(sn){var xn=(0,xt.Z)({},sn);return delete xn[en],xn})}},[]),_e=zt.useMemo(function(){return Pe?Pe.map(function(en){if(typeof en=="string")return{data:{src:en}};var un={};return Object.keys(en).forEach(function(sn){["src"].concat((0,ge.Z)(mt)).includes(sn)&&(un[sn]=en[sn])}),{data:un}}):Object.keys(On).reduce(function(en,un){var sn=On[un],xn=sn.canPreview,gn=sn.data;return xn&&en.push({data:gn,id:un}),en},[])},[Pe,On]);return[_e,nn]}var De=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Ne=["src"],$e=function(We){var pn,On=We.previewPrefixCls,Ke=On===void 0?"rc-image-preview":On,nn=We.children,_e=We.icons,en=_e===void 0?{}:_e,un=We.items,sn=We.preview,xn=We.fallback,gn=(0,Ct.Z)(sn)==="object"?sn:{},Ln=gn.visible,Mn=gn.onVisibleChange,Qn=gn.getContainer,ln=gn.current,ti=gn.movable,vi=gn.minScale,oi=gn.maxScale,dn=gn.countRender,Rn=gn.closeIcon,Xn=gn.onChange,hi=gn.onTransform,ei=gn.toolbarRender,fi=gn.imageRender,Ai=(0,Lt.Z)(gn,De),gi=he(un),ii=(0,Rt.Z)(gi,2),Li=ii[0],bn=ii[1],er=(0,It.Z)(0,{value:ln}),En=(0,Rt.Z)(er,2),Oi=En[0],wr=En[1],_i=(0,zt.useState)(!1),kr=(0,Rt.Z)(_i,2),gr=kr[0],wi=kr[1],yi=((pn=Li[Oi])===null||pn===void 0?void 0:pn.data)||{},Zi=yi.src,Xi=(0,Lt.Z)(yi,Ne),qn=(0,It.Z)(!!Ln,{value:Ln,onChange:function(Pi,mi){Mn==null||Mn(Pi,mi,Oi)}}),Se=(0,Rt.Z)(qn,2),ji=Se[0],yr=Se[1],Ki=(0,zt.useState)(null),rr=(0,Rt.Z)(Ki,2),Tr=rr[0],Ar=rr[1],Bi=zt.useCallback(function(ar,Pi,mi){var Wn=Li.findIndex(function(Ti){return Ti.id===ar});yr(!0),Ar({x:Pi,y:mi}),wr(Wn<0?0:Wn),wi(!0)},[Li]);zt.useEffect(function(){ji?gr||wr(0):wi(!1)},[ji]);var Di=function(Pi,mi){wr(Pi),Xn==null||Xn(Pi,mi)},Mi=function(){yr(!1),Ar(null)},lr=zt.useMemo(function(){return{register:bn,onPreview:Bi}},[bn,Bi]);return zt.createElement(et.Provider,{value:lr},nn,zt.createElement(ue,(0,Bt.Z)({"aria-hidden":!ji,movable:ti,visible:ji,prefixCls:Ke,closeIcon:Rn,onClose:Mi,mousePosition:Tr,imgCommonProps:Xi,src:Zi,fallback:xn,icons:en,minScale:vi,maxScale:oi,getContainer:Qn,current:Oi,count:Li.length,countRender:dn,onTransform:hi,toolbarRender:ei,imageRender:fi,onChange:Di},Ai)))},Re=$e,tn=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],Me=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Oe=function(We){var pn=We.src,On=We.alt,Ke=We.onPreviewClose,nn=We.prefixCls,_e=nn===void 0?"rc-image":nn,en=We.previewPrefixCls,un=en===void 0?"".concat(_e,"-preview"):en,sn=We.placeholder,xn=We.fallback,gn=We.width,Ln=We.height,Mn=We.style,Qn=We.preview,ln=Qn===void 0?!0:Qn,ti=We.className,vi=We.onClick,oi=We.onError,dn=We.wrapperClassName,Rn=We.wrapperStyle,Xn=We.rootClassName,hi=(0,Lt.Z)(We,tn),ei=sn&&sn!==!0,fi=(0,Ct.Z)(ln)==="object"?ln:{},Ai=fi.src,gi=fi.visible,ii=gi===void 0?void 0:gi,Li=fi.onVisibleChange,bn=Li===void 0?Ke:Li,er=fi.getContainer,En=er===void 0?void 0:er,Oi=fi.mask,wr=fi.maskClassName,_i=fi.movable,kr=fi.icons,gr=fi.scaleStep,wi=fi.minScale,yi=fi.maxScale,Zi=fi.imageRender,Xi=fi.toolbarRender,qn=(0,Lt.Z)(fi,Me),Se=Ai!=null?Ai:pn,ji=(0,It.Z)(!!ii,{value:ii,onChange:bn}),yr=(0,Rt.Z)(ji,2),Ki=yr[0],rr=yr[1],Tr=ut({src:pn,isCustomPlaceholder:ei,fallback:xn}),Ar=(0,Rt.Z)(Tr,3),Bi=Ar[0],Di=Ar[1],Mi=Ar[2],lr=(0,zt.useState)(null),ar=(0,Rt.Z)(lr,2),Pi=ar[0],mi=ar[1],Wn=(0,zt.useContext)(et),Ti=!!ln,Sr=function(){rr(!1),mi(null)},Br=kt()(_e,dn,Xn,(0,Ot.Z)({},"".concat(_e,"-error"),Mi==="error")),Rr=(0,zt.useMemo)(function(){var To={};return mt.forEach(function(oo){We[oo]!==void 0&&(To[oo]=We[oo])}),To},mt.map(function(To){return We[To]})),Vr=(0,zt.useMemo)(function(){return(0,xt.Z)((0,xt.Z)({},Rr),{},{src:Se})},[Se,Rr]),io=st(Ti,Vr),ro=function(oo){var ko=(0,At.os)(oo.target),yn=ko.left,so=ko.top;Wn?Wn.onPreview(io,yn,so):(mi({x:yn,y:so}),rr(!0)),vi==null||vi(oo)};return zt.createElement(zt.Fragment,null,zt.createElement("div",(0,Bt.Z)({},hi,{className:Br,onClick:Ti?ro:vi,style:(0,xt.Z)({width:gn,height:Ln},Rn)}),zt.createElement("img",(0,Bt.Z)({},Rr,{className:kt()("".concat(_e,"-img"),(0,Ot.Z)({},"".concat(_e,"-img-placeholder"),sn===!0),ti),style:(0,xt.Z)({height:Ln},Mn),ref:Bi},Di,{width:gn,height:Ln,onError:oi})),Mi==="loading"&&zt.createElement("div",{"aria-hidden":"true",className:"".concat(_e,"-placeholder")},sn),Oi&&Ti&&zt.createElement("div",{className:kt()("".concat(_e,"-mask"),wr),style:{display:(Mn==null?void 0:Mn.display)==="none"?"none":void 0}},Oi)),!Wn&&Ti&&zt.createElement(ue,(0,Bt.Z)({"aria-hidden":!Ki,visible:Ki,prefixCls:un,onClose:Sr,mousePosition:Pi,src:Se,alt:On,fallback:xn,getContainer:En,icons:kr,movable:_i,scaleStep:gr,minScale:wi,maxScale:yi,rootClassName:Xn,imageRender:Zi,imgCommonProps:Rr,toolbarRender:Xi},qn)))};Oe.PreviewGroup=Re,Oe.displayName="Image";var Fe=Oe,le=Fe,Tt=Kt(62892),bt=Kt(36355),_t=Kt(31724),Yt=Kt(99267),Mt=Kt(33853),Ut=Kt(38819),St={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"},wt=St,jt=Kt(7657),Wt=function(We,pn){return zt.createElement(jt.Z,(0,Bt.Z)({},We,{ref:pn,icon:wt}))},Vt=zt.forwardRef(Wt),oe=Vt,de={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"},Ge=de,Ye=function(We,pn){return zt.createElement(jt.Z,(0,Bt.Z)({},We,{ref:pn,icon:Ge}))},Ue=zt.forwardRef(Ye),an=Ue,vn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"},ke=vn,Ze=function(We,pn){return zt.createElement(jt.Z,(0,Bt.Z)({},We,{ref:pn,icon:ke}))},hn=zt.forwardRef(Ze),Pn=hn,In={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"},Bn=In,Zn=function(We,pn){return zt.createElement(jt.Z,(0,Bt.Z)({},We,{ref:pn,icon:Bn}))},Gn=zt.forwardRef(Zn),ci=Gn,pi={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"},xi=pi,Ci=function(We,pn){return zt.createElement(jt.Z,(0,Bt.Z)({},We,{ref:pn,icon:xi}))},Gi=zt.forwardRef(Ci),qi=Gi,bi=Kt(64993),Yi=Kt(73819),ui=Kt(17313),ne=Kt(29878),Wi=Kt(1950),Fi=Kt(83116),nr=Kt(37613);const sr=Pe=>({position:Pe||"absolute",inset:0}),xr=Pe=>{const{iconCls:We,motionDurationSlow:pn,paddingXXS:On,marginXXS:Ke,prefixCls:nn,colorTextLightSolid:_e}=Pe;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:_e,background:new bi.C("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${pn}`,[`.${nn}-mask-info`]:Object.assign(Object.assign({},ui.vS),{padding:`0 ${On}px`,[We]:{marginInlineEnd:Ke,svg:{verticalAlign:"baseline"}}})}},vr=Pe=>{const{previewCls:We,modalMaskBg:pn,paddingSM:On,marginXL:Ke,margin:nn,paddingLG:_e,previewOperationColorDisabled:en,previewOperationHoverColor:un,motionDurationSlow:sn,iconCls:xn,colorTextLightSolid:gn}=Pe,Ln=new bi.C(pn).setAlpha(.1),Mn=Ln.clone().setAlpha(.2);return{[`${We}-footer`]:{position:"fixed",bottom:Ke,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:Pe.previewOperationColor},[`${We}-progress`]:{marginBottom:nn},[`${We}-close`]:{position:"fixed",top:Ke,right:{_skip_check_:!0,value:Ke},display:"flex",color:gn,backgroundColor:Ln.toRgbString(),borderRadius:"50%",padding:On,outline:0,border:0,cursor:"pointer",transition:`all ${sn}`,"&:hover":{backgroundColor:Mn.toRgbString()},[`& > ${xn}`]:{fontSize:Pe.previewOperationSize}},[`${We}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${_e}px`,backgroundColor:Ln.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:On,padding:On,cursor:"pointer",transition:`all ${sn}`,userSelect:"none",[`&:not(${We}-operations-operation-disabled):hover > ${xn}`]:{color:un},"&-disabled":{color:en,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${xn}`]:{fontSize:Pe.previewOperationSize}}}}},Jn=Pe=>{const{modalMaskBg:We,iconCls:pn,previewOperationColorDisabled:On,previewCls:Ke,zIndexPopup:nn,motionDurationSlow:_e}=Pe,en=new bi.C(We).setAlpha(.1),un=en.clone().setAlpha(.2);return{[`${Ke}-switch-left, ${Ke}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:nn+1,display:"flex",alignItems:"center",justifyContent:"center",width:Pe.imagePreviewSwitchSize,height:Pe.imagePreviewSwitchSize,marginTop:-Pe.imagePreviewSwitchSize/2,color:Pe.previewOperationColor,background:en.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${_e}`,userSelect:"none","&:hover":{background:un.toRgbString()},"&-disabled":{"&, &:hover":{color:On,background:"transparent",cursor:"not-allowed",[`> ${pn}`]:{cursor:"not-allowed"}}},[`> ${pn}`]:{fontSize:Pe.previewOperationSize}},[`${Ke}-switch-left`]:{insetInlineStart:Pe.marginSM},[`${Ke}-switch-right`]:{insetInlineEnd:Pe.marginSM}}},_n=Pe=>{const{motionEaseOut:We,previewCls:pn,motionDurationSlow:On,componentCls:Ke}=Pe;return[{[`${Ke}-preview-root`]:{[pn]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${pn}-body`]:Object.assign(Object.assign({},sr()),{overflow:"hidden"}),[`${pn}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${On} ${We} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},sr()),{transition:`transform ${On} ${We} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${pn}-moving`]:{[`${pn}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${Ke}-preview-root`]:{[`${pn}-wrap`]:{zIndex:Pe.zIndexPopup}}},{[`${Ke}-preview-operations-wrapper`]:{position:"fixed",zIndex:Pe.zIndexPopup+1},"&":[vr(Pe),Jn(Pe)]}]},qe=Pe=>{const{componentCls:We}=Pe;return{[We]:{position:"relative",display:"inline-block",[`${We}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${We}-img-placeholder`]:{backgroundColor:Pe.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${We}-mask`]:Object.assign({},xr(Pe)),[`${We}-mask:hover`]:{opacity:1},[`${We}-placeholder`]:Object.assign({},sr())}}},Qe=Pe=>{const{previewCls:We}=Pe;return{[`${We}-root`]:(0,ne._y)(Pe,"zoom"),"&":(0,Wi.J$)(Pe,!0)}};var we=(0,Fi.Z)("Image",Pe=>{const We=`${Pe.componentCls}-preview`,pn=(0,nr.TS)(Pe,{previewCls:We,modalMaskBg:new bi.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:Pe.controlHeightLG});return[qe(pn),_n(pn),(0,Yi.QA)((0,nr.TS)(pn,{componentCls:We})),Qe(pn)]},Pe=>({zIndexPopup:Pe.zIndexPopupBase+80,previewOperationColor:new bi.C(Pe.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new bi.C(Pe.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new bi.C(Pe.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:Pe.fontSizeIcon*1.5})),fn=function(Pe,We){var pn={};for(var On in Pe)Object.prototype.hasOwnProperty.call(Pe,On)&&We.indexOf(On)<0&&(pn[On]=Pe[On]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,On=Object.getOwnPropertySymbols(Pe);Ke<On.length;Ke++)We.indexOf(On[Ke])<0&&Object.prototype.propertyIsEnumerable.call(Pe,On[Ke])&&(pn[On[Ke]]=Pe[On[Ke]]);return pn};const Sn={rotateLeft:zt.createElement(oe,null),rotateRight:zt.createElement(an,null),zoomIn:zt.createElement(ci,null),zoomOut:zt.createElement(qi,null),close:zt.createElement(Yt.Z,null),left:zt.createElement(Mt.Z,null),right:zt.createElement(Ut.Z,null),flipX:zt.createElement(Pn,null),flipY:zt.createElement(Pn,{rotate:90})};var Le=Pe=>{var{previewPrefixCls:We,preview:pn}=Pe,On=fn(Pe,["previewPrefixCls","preview"]);const{getPrefixCls:Ke}=zt.useContext(bt.E_),nn=Ke("image",We),_e=`${nn}-preview`,en=Ke(),[un,sn]=we(nn),xn=zt.useMemo(()=>{var gn;if(pn===!1)return pn;const Ln=typeof pn=="object"?pn:{},Mn=kt()(sn,(gn=Ln.rootClassName)!==null&&gn!==void 0?gn:"");return Object.assign(Object.assign({},Ln),{transitionName:(0,Tt.m)(en,"zoom",Ln.transitionName),maskTransitionName:(0,Tt.m)(en,"fade",Ln.maskTransitionName),rootClassName:Mn})},[pn]);return un(zt.createElement(le.PreviewGroup,Object.assign({preview:xn,previewPrefixCls:_e,icons:Sn},On)))},cn=function(Pe,We){var pn={};for(var On in Pe)Object.prototype.hasOwnProperty.call(Pe,On)&&We.indexOf(On)<0&&(pn[On]=Pe[On]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,On=Object.getOwnPropertySymbols(Pe);Ke<On.length;Ke++)We.indexOf(On[Ke])<0&&Object.prototype.propertyIsEnumerable.call(Pe,On[Ke])&&(pn[On[Ke]]=Pe[On[Ke]]);return pn};const wn=Pe=>{const{prefixCls:We,preview:pn,className:On,rootClassName:Ke,style:nn}=Pe,_e=cn(Pe,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:en,locale:un=_t.Z,getPopupContainer:sn,image:xn}=zt.useContext(bt.E_),gn=en("image",We),Ln=en(),Mn=un.Image||_t.Z.Image,[Qn,ln]=we(gn),ti=kt()(Ke,ln),vi=kt()(On,ln,xn==null?void 0:xn.className),oi=zt.useMemo(()=>{if(pn===!1)return pn;const Rn=typeof pn=="object"?pn:{},{getContainer:Xn}=Rn,hi=cn(Rn,["getContainer"]);return Object.assign(Object.assign({mask:zt.createElement("div",{className:`${gn}-mask-info`},zt.createElement(Xt.Z,null),Mn==null?void 0:Mn.preview),icons:Sn},hi),{getContainer:Xn||sn,transitionName:(0,Tt.m)(Ln,"zoom",Rn.transitionName),maskTransitionName:(0,Tt.m)(Ln,"fade",Rn.maskTransitionName)})},[pn,Mn]),dn=Object.assign(Object.assign({},xn==null?void 0:xn.style),nn);return Qn(zt.createElement(le,Object.assign({prefixCls:gn,preview:oi,rootClassName:ti,className:vi,style:dn},_e)))};wn.PreviewGroup=Le;var Nn=wn,Hn=()=>{const[Pe,We]=(0,zt.useState)(""),[pn,On]=(0,zt.useState)(0);let[Ke,nn]=(0,zt.useState)(),[_e,en]=(0,zt.useState)();const[un,sn]=(0,zt.useState)(!1),xn=(0,zt.useRef)("");(0,zt.useEffect)(()=>gt.Z.subscribe("preview-image",Xn=>{We(Xn),console.log(oi.current),document.body.style.overflow="hidden"}),[]),(0,zt.useEffect)(()=>(document.addEventListener("keydown",gn),()=>{document.removeEventListener("keydown",gn)}),[]),(0,zt.useEffect)(()=>{xn.current=Pe},[Pe]);function gn(Rn){Rn.keyCode==27&&xn.current&&Ln()}function Ln(){document.body.style.overflow="auto",nn(void 0),en(void 0),On(0),We("")}function Mn(){On(pn+90)}function Qn(){Ke=oi.current.width*1.1,_e=oi.current.height*1.1,en(_e),nn(Ke)}function ln(){Ke=oi.current.width/1.1,_e=oi.current.height/1.1,en(_e),nn(Ke)}const ti=(0,zt.useRef)(),vi=(0,zt.useRef)(),oi=(0,zt.useRef)(),dn=Rn=>{(Rn.nativeEvent.target===ti.current||Rn.nativeEvent.target===vi.current)&&Ln()};return zt.createElement(zt.Fragment,null,Pe?zt.createElement("div",null,zt.createElement("div",{className:"preview-wrp-group",ref:vi},zt.createElement(Nn,{className:"image-preview",src:Pe,style:{display:"none"},preview:{visible:!0,src:Pe,movable:!1,onVisibleChange:Rn=>{We("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},73278:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{h:function(){return ft}});var zt=Kt(59301),gt=Kt(57809),Xt=Kt(78241),Qt=Kt(3113),kt=Kt(89780),Bt=Kt.n(kt),xt=Kt(78780),Ot=Kt(19136),Rt=Object.defineProperty,Ct=Object.defineProperties,Lt=Object.getOwnPropertyDescriptors,At=Object.getOwnPropertySymbols,It=Object.prototype.hasOwnProperty,mt=Object.prototype.propertyIsEnumerable,et=(pt,Pt,Dt)=>Pt in pt?Rt(pt,Pt,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):pt[Pt]=Dt,tt=(pt,Pt)=>{for(var Dt in Pt||(Pt={}))It.call(Pt,Dt)&&et(pt,Dt,Pt[Dt]);if(At)for(var Dt of At(Pt))mt.call(Pt,Dt)&&et(pt,Dt,Pt[Dt]);return pt},st=(pt,Pt)=>Ct(pt,Lt(Pt));const rt=gt.default.Option,ut={labelCol:{span:4},wrapperCol:{span:20}},ct={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"]};Cn.Z=({callback:pt,onCancel:Pt})=>{const[Dt,Zt]=(0,zt.useState)("python");function Ft(te){Zt(ct[te][1])}function qt(te){pt(te)}return zt.createElement(Xt.default,st(tt({},ut),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:qt,style:{width:500}}),zt.createElement(Xt.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},zt.createElement(gt.default,{getPopupContainer:te=>te.parentNode,onChange:Ft},Object.keys(ct).map(te=>zt.createElement(rt,{key:te,value:te},ct[te][0])))),zt.createElement(Xt.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},zt.createElement(ft,{mode:Dt})),zt.createElement("div",{className:"flex-container flex-end"},zt.createElement(Qt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),zt.createElement(Qt.ZP,{type:"ghost",onClick:Pt},"\u53D6\u6D88")))};function ft({value:pt,onChange:Pt,mode:Dt,options:Zt={}}){const Ft=(0,zt.useRef)(),[qt,te]=(0,zt.useState)();return(0,zt.useEffect)(()=>{if(qt){let Gt=function(ce){const ae=ce.getValue();Pt&&Pt(ae)};return qt.on("change",Gt),()=>{qt.off("change",Gt)}}},[qt,Pt]),(0,zt.useEffect)(()=>{qt&&qt.setOption("mode",Dt)},[qt,Dt]),(0,zt.useEffect)(()=>{qt&&(pt!==qt.getValue()||pt==="")&&setTimeout(()=>{qt.setValue(pt||"")},300)},[qt,pt]),(0,zt.useEffect)(()=>{if(Ft.current&&!qt){const Gt=Bt().fromTextArea(Ft.current,tt({mode:Dt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Zt));te(Gt)}},[Ft.current,qt]),zt.createElement("div",{className:"my-codemirror-container"},zt.createElement("textarea",{ref:Ft}))}},64726:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return _n}});var zt=Kt(59301),gt=Kt(89780),Xt=Kt.n(gt),Qt=Kt(76374),kt=Kt(78780),Bt=Kt(6313),xt=Kt(25717),Ot=Kt(99498),Rt=Kt(25419),Ct=Kt(67549),Lt=Kt(99325),At=({value:qe="",className:Qe,showTextOnly:we,showLines:fn,style:Sn={}})=>{const ze=(0,zt.useMemo)(()=>"",[qe]);return zt.createElement(zt.Fragment,null,zt.createElement("div",{dangerouslySetInnerHTML:{__html:ze}}))},It=Kt(59301),mt=Object.defineProperty,et=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,st=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,ct=(qe,Qe,we)=>Qe in qe?mt(qe,Qe,{enumerable:!0,configurable:!0,writable:!0,value:we}):qe[Qe]=we,ft=(qe,Qe)=>{for(var we in Qe||(Qe={}))rt.call(Qe,we)&&ct(qe,we,Qe[we]);if(st)for(var we of st(Qe))ut.call(Qe,we)&&ct(qe,we,Qe[we]);return qe},pt=(qe,Qe)=>et(qe,tt(Qe));let Pt=[{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 Dt({onActionCallback:qe,title:Qe,icon:we,actionName:fn,className:Sn="",children:ze}){function Le(){qe(fn)}return It.createElement("a",{title:Qe,className:Sn,onClick:Le},It.createElement("i",{className:`${we}`}),ze)}var Zt=({watch:qe,showNullButton:Qe,showNullProgramButton:we,onActionCallback:fn,fullScreen:Sn,insertTemp:ze,hidetoolBar:Le,extraUse:cn})=>{const wn=[...Pt,{title:`${qe?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${qe?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return It.createElement("ul",{className:"markdown-toolbar-container"},!Le&&wn.map((Nn,Hn)=>It.createElement("li",{key:Hn},Nn.actionName?It.createElement(Dt,pt(ft({},Nn),{onActionCallback:fn})):It.createElement("span",{className:"v-line"}))),Qe?It.createElement("li",null,It.createElement(Dt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:fn},It.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,we?It.createElement(It.Fragment,null,It.createElement("li",null,It.createElement(Dt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:fn},It.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),It.createElement("li",null,It.createElement(Dt,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:fn},It.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,ze&&It.createElement("li",null,It.createElement(Dt,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${ze}`,onActionCallback:fn},It.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),cn&&It.createElement("li",null,cn),It.createElement("li",{className:"btn-full-screen"},It.createElement(Dt,{icon:`${Sn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Sn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:fn})))},Ft=Kt(19647),qt=Kt(78241),te=Kt(92832),Gt=Kt(3113),ce=Object.defineProperty,ae=Object.defineProperties,xe=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,He=(qe,Qe,we)=>Qe in qe?ce(qe,Qe,{enumerable:!0,configurable:!0,writable:!0,value:we}):qe[Qe]=we,fe=(qe,Qe)=>{for(var we in Qe||(Qe={}))Te.call(Qe,we)&&He(qe,we,Qe[we]);if(ye)for(var we of ye(Qe))me.call(Qe,we)&&He(qe,we,Qe[we]);return qe},$t=(qe,Qe)=>ae(qe,xe(Qe));const ie={labelCol:{span:4},wrapperCol:{span:20}};var ue=({callback:qe,onCancel:Qe})=>{function we(fn){qe(fn)}return zt.createElement(qt.default,$t(fe({},ie),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:we,style:{width:500}}),zt.createElement(qt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},zt.createElement(te.default,null)),zt.createElement(qt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},zt.createElement(te.default,null)),zt.createElement("div",{className:"flex-container flex-end"},zt.createElement(Gt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),zt.createElement(Gt.ZP,{type:"ghost",onClick:Qe},"\u53D6\u6D88")))},ge=Kt(73278),he=Kt(56030),De=Kt(43418),Ne=Kt(95237),$e=Kt(14573),Re=Kt(59301),tn=({callback:qe,onCancel:Qe})=>{const we=document.createElement("canvas"),fn=we.getContext("2d");we.width=1e3,we.height=800,fn.fillStyle="#ffffff",fn.fillRect(0,0,we.width,we.height);const Sn=we.toDataURL("image/png");return Re.createElement(De.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Re.createElement(Ne.Z,{style:{height:"100vh"}},Re.createElement($e.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Sn,visible:!0,title:String(Date.now())},onOk:ze=>{qe({src:ze.url})},onClose:Qe})))},Me=Kt(12378);function Oe(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Oe,go.CommandHandler),Oe.prototype.canAlignSelection=function(){var qe=this.diagram;return!(qe===null||qe.isReadOnly||qe.isModelReadOnly||qe.selection.count<2)},Oe.prototype.alignLeft=function(){var qe=this.diagram;qe.startTransaction("aligning left");var Qe=1/0;qe.selection.each(function(we){we instanceof go.Link||(Qe=Math.min(we.position.x,Qe))}),qe.selection.each(function(we){we instanceof go.Link||we.move(new go.Point(Qe,we.position.y))}),qe.commitTransaction("aligning left")},Oe.prototype.alignRight=function(){var qe=this.diagram;qe.startTransaction("aligning right");var Qe=-1/0;qe.selection.each(function(we){if(!(we instanceof go.Link)){var fn=we.actualBounds.x+we.actualBounds.width;Qe=Math.max(fn,Qe)}}),qe.selection.each(function(we){we instanceof go.Link||we.move(new go.Point(Qe-we.actualBounds.width,we.position.y))}),qe.commitTransaction("aligning right")},Oe.prototype.alignTop=function(){var qe=this.diagram;qe.startTransaction("alignTop");var Qe=1/0;qe.selection.each(function(we){we instanceof go.Link||(Qe=Math.min(we.position.y,Qe))}),qe.selection.each(function(we){we instanceof go.Link||we.move(new go.Point(we.position.x,Qe))}),qe.commitTransaction("alignTop")},Oe.prototype.alignBottom=function(){var qe=this.diagram;qe.startTransaction("aligning bottom");var Qe=-1/0;qe.selection.each(function(we){if(!(we instanceof go.Link)){var fn=we.actualBounds.y+we.actualBounds.height;Qe=Math.max(fn,Qe)}}),qe.selection.each(function(we){we instanceof go.Link||we.move(new go.Point(we.actualBounds.x,Qe-we.actualBounds.height))}),qe.commitTransaction("aligning bottom")},Oe.prototype.alignCenterX=function(){var qe=this.diagram,Qe=qe.selection.first();if(Qe){qe.startTransaction("aligning Center X");var we=Qe.actualBounds.x+Qe.actualBounds.width/2;qe.selection.each(function(fn){fn instanceof go.Link||fn.move(new go.Point(we-fn.actualBounds.width/2,fn.actualBounds.y))}),qe.commitTransaction("aligning Center X")}},Oe.prototype.alignCenterY=function(){var qe=this.diagram,Qe=qe.selection.first();if(Qe){qe.startTransaction("aligning Center Y");var we=Qe.actualBounds.y+Qe.actualBounds.height/2;qe.selection.each(function(fn){fn instanceof go.Link||fn.move(new go.Point(fn.actualBounds.x,we-fn.actualBounds.height/2))}),qe.commitTransaction("aligning Center Y")}},Oe.prototype.alignColumn=function(qe){var Qe=this.diagram;Qe.startTransaction("align Column"),qe===void 0&&(qe=0),qe=parseFloat(qe);var we=new Array;Qe.selection.each(function(cn){cn instanceof go.Link||we.push(cn)});for(var fn=0;fn<we.length-1;fn++){var Sn=we[fn],ze=Sn.actualBounds.y+Sn.actualBounds.height+qe,Le=we[fn+1];Le.move(new go.Point(Sn.actualBounds.x,ze))}Qe.commitTransaction("align Column")},Oe.prototype.alignRow=function(qe){qe===void 0&&(qe=0),qe=parseFloat(qe);var Qe=this.diagram;Qe.startTransaction("align Row");var we=new Array;Qe.selection.each(function(cn){cn instanceof go.Link||we.push(cn)});for(var fn=0;fn<we.length-1;fn++){var Sn=we[fn],ze=Sn.actualBounds.x+Sn.actualBounds.width+qe,Le=we[fn+1];Le.move(new go.Point(ze,Sn.actualBounds.y))}Qe.commitTransaction("align Row")},Oe.prototype.canRotate=function(qe){var Qe=this.diagram;return!(Qe===null||Qe.isReadOnly||Qe.isModelReadOnly||Qe.selection.count<1)},Oe.prototype.rotate=function(qe){qe===void 0&&(qe=90);var Qe=this.diagram;Qe.startTransaction("rotate "+qe.toString());var Qe=this.diagram;Qe.selection.each(function(we){we instanceof go.Link||we instanceof go.Group||(we.angle+=qe)}),Qe.commitTransaction("rotate "+qe.toString())},Oe.prototype.pullToFront=function(){var qe=this.diagram;qe.startTransaction("pullToFront");var Qe=new go.Map;qe.selection.each(function(we){Qe.set(we.layer,0)}),Qe.iteratorKeys.each(function(we){var fn=0;we.parts.each(function(Sn){if(!Sn.isSelected){var ze=Sn.zOrder;isNaN(ze)?Sn.zOrder=0:fn=Math.max(fn,ze)}}),Qe.set(we,fn)}),qe.selection.each(function(we){Oe._assignZOrder(we,Qe.get(we.layer)+1)}),qe.commitTransaction("pullToFront")},Oe.prototype.pushToBack=function(){var qe=this.diagram;qe.startTransaction("pushToBack");var Qe=new go.Map;qe.selection.each(function(we){Qe.set(we.layer,0)}),Qe.iteratorKeys.each(function(we){var fn=0;we.parts.each(function(Sn){if(!Sn.isSelected){var ze=Sn.zOrder;isNaN(ze)?Sn.zOrder=0:fn=Math.min(fn,ze)}}),Qe.set(we,fn)}),qe.selection.each(function(we){Oe._assignZOrder(we,Qe.get(we.layer)-1-Oe._findGroupDepth(we))}),qe.commitTransaction("pushToBack")},Oe._assignZOrder=function(qe,Qe,we){we===void 0&&(we=qe),qe.layer===we.layer&&(qe.zOrder=Qe),qe instanceof go.Group&&qe.memberParts.each(function(fn){Oe._assignZOrder(fn,Qe+1,we)})},Oe._findGroupDepth=function(qe){if(qe instanceof go.Group){var Qe=0;return qe.memberParts.each(function(we){Qe=Math.max(Qe,Oe._findGroupDepth(we))}),Qe+1}else return 0},Oe.prototype.doKeyDown=function(){var qe=this.diagram;if(qe!==null){var Qe=qe.lastInput;if(Qe.key==="Up"||Qe.key==="Down"||Qe.key==="Left"||Qe.key==="Right"){var we=this.arrowKeyBehavior;if(we==="none")return;if(we==="select"){this._arrowKeySelect();return}else if(we==="move"){this._arrowKeyMove();return}else if(we==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Oe.prototype._getAllParts=function(){var qe=new Array;return this.diagram.nodes.each(function(Qe){qe.push(Qe)}),this.diagram.parts.each(function(Qe){qe.push(Qe)}),qe},Oe.prototype._arrowKeyMove=function(){var qe=this.diagram,Qe=qe.lastInput,we=0,fn=0;if(Qe.control||Qe.meta)we=1,fn=1;else if(qe.grid!==null){var Sn=qe.grid.gridCellSize;fn=Sn.width,we=Sn.height}qe.startTransaction("arrowKeyMove"),qe.selection.each(function(ze){Qe.key==="Up"?ze.move(new go.Point(ze.actualBounds.x,ze.actualBounds.y-we)):Qe.key==="Down"?ze.move(new go.Point(ze.actualBounds.x,ze.actualBounds.y+we)):Qe.key==="Left"?ze.move(new go.Point(ze.actualBounds.x-fn,ze.actualBounds.y)):Qe.key==="Right"&&ze.move(new go.Point(ze.actualBounds.x+fn,ze.actualBounds.y))}),qe.commitTransaction("arrowKeyMove")},Oe.prototype._arrowKeySelect=function(){var qe=this.diagram,Qe=qe.lastInput,we=null;Qe.key==="Up"?we=this._findNearestPartTowards(270):Qe.key==="Down"?we=this._findNearestPartTowards(90):Qe.key==="Left"?we=this._findNearestPartTowards(180):Qe.key==="Right"&&(we=this._findNearestPartTowards(0)),we!==null&&(Qe.shift?we.isSelected=!0:Qe.control||Qe.meta?we.isSelected=!we.isSelected:qe.select(we))},Oe.prototype._findNearestPartTowards=function(qe){var Qe=this.diagram.selection.first();if(Qe===null)return null;for(var we=Qe.actualBounds.center,fn=this._getAllParts(),Sn=1/0,ze=Qe,Le=0;Le<fn.length;Le++){var cn=fn[Le];if(cn!==Qe&&cn.canSelect()){var wn=cn.actualBounds.center,Nn=we.directionPoint(wn),Hn=this._angleCloseness(Nn,qe);if(Hn<=45){var Pe=we.distanceSquaredPoint(wn);Pe*=1+Math.sin(Hn*Math.PI/180),Pe<Sn&&(Sn=Pe,ze=cn)}}}return ze},Oe.prototype._angleCloseness=function(qe,Qe){return Math.min(Math.abs(Qe-qe),Math.min(Math.abs(Qe+360-qe),Math.abs(Qe-360-qe)))},Oe.prototype._arrowKeyTree=function(){var qe=this.diagram,Qe=qe.selection.first();if(Qe instanceof go.Node){var we=qe.lastInput;if(we.key==="Right"){if(!Qe.isTreeLeaf)if(!Qe.isTreeExpanded)qe.commandHandler.canExpandTree(Qe)&&qe.commandHandler.expandTree(Qe);else{var fn=this._sortTreeChildrenByY(Qe).first();fn!==null&&qe.select(fn)}}else if(we.key==="Left")if(!Qe.isTreeLeaf&&Qe.isTreeExpanded)qe.commandHandler.canCollapseTree(Qe)&&qe.commandHandler.collapseTree(Qe);else{var Sn=Qe.findTreeParentNode();Sn!==null&&qe.select(Sn)}else if(we.key==="Up"){var Sn=Qe.findTreeParentNode();if(Sn!==null){var ze=this._sortTreeChildrenByY(Sn),Le=ze.indexOf(Qe);if(Le>0){for(var cn=ze.elt(Le-1);cn!==null&&cn.isTreeExpanded&&!cn.isTreeLeaf;){var wn=this._sortTreeChildrenByY(cn);cn=wn.last()}cn!==null&&qe.select(cn)}else qe.select(Sn)}}else if(we.key==="Down")if(Qe.isTreeExpanded&&!Qe.isTreeLeaf){var fn=this._sortTreeChildrenByY(Qe).first();fn!==null&&qe.select(fn)}else for(;Qe!==null;){var Sn=Qe.findTreeParentNode();if(Sn===null)break;var ze=this._sortTreeChildrenByY(Sn),Le=ze.indexOf(Qe);if(Le<ze.length-1){qe.select(ze.elt(Le+1));break}else Qe=Sn}var Nn=qe.selection.first();Nn!==null&&qe.scrollToRect(Nn.actualBounds)}},Oe.prototype._sortTreeChildrenByY=function(qe){var Qe=new go.List().addAll(qe.findTreeChildrenNodes());return Qe.sort(function(we,fn){var Sn=we.location,ze=fn.location;return Sn.y<ze.y?-1:Sn.y>ze.y?1:Sn.x<ze.x?-1:Sn.x>ze.x?1:0}),Qe},Oe.prototype.copyToClipboard=function(qe){go.CommandHandler.prototype.copyToClipboard.call(this,qe),this._lastPasteOffset.set(this.pasteOffset)},Oe.prototype.pasteFromClipboard=function(){var qe=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(qe,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),qe},Object.defineProperty(Oe.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(qe){if(qe!=="move"&&qe!=="select"&&qe!=="scroll"&&qe!=="tree"&&qe!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+qe);this._arrowKeyBehavior=qe}}),Object.defineProperty(Oe.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(qe){if(!(qe instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+qe);this._pasteOffset.set(qe)}});var Fe=Oe,le=Kt(29277),Tt=Kt(43604),bt=Kt(7660),_t={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Yt=Kt(73898),Mt=Kt(59301),Ut=(qe,Qe,we)=>new Promise((fn,Sn)=>{var ze=wn=>{try{cn(we.next(wn))}catch(Nn){Sn(Nn)}},Le=wn=>{try{cn(we.throw(wn))}catch(Nn){Sn(Nn)}},cn=wn=>wn.done?fn(wn.value):Promise.resolve(wn.value).then(ze,Le);cn((we=we.apply(qe,Qe)).next())});function St({onCancel:qe,callback:Qe}){let we=(0,zt.useRef)(),fn=(0,zt.useRef)(),Sn=(0,zt.useRef)(),ze=(0,zt.useRef)(!1);const Le=(0,zt.useRef)(!1),[cn,wn]=(0,zt.useState)(0);function Nn(){const Pe=Me.bx.make,We={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"};we.current=new Me.S0(fn.current,{padding:20,grid:Pe(Me.s_,"Grid",Pe(Me.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Pe(Me.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Rn=>{var Xn=Rn.diagram.commandHandler.addTopLevelParts(Rn.diagram.selection,!0);Xn||Rn.diagram.currentTool.doCancel()},commandHandler:Pe(Fe),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Rn=>{var Xn=Rn.subject;Xn.location=Xn.location.copy().snapToGridPoint(Rn.diagram.grid.gridOrigin,Rn.diagram.grid.gridCellSize),setTimeout(()=>{Rn.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Rn=>{var Xn=Rn.subject;setTimeout(()=>{Rn.diagram.commandHandler.editTextBlock()})},LinkRelinked:Rn=>{var Xn=Rn.parameter.part;Xn.invalidateConnectedLinks();var hi=Rn.subject;Rn.diagram.toolManager.linkingTool.isForwards?hi.toNode.invalidateConnectedLinks():hi.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),we.current.nodeTemplate=Pe(Me.NB,"Auto",{locationSpot:Me.z6.Center,locationObjectName:"SHAPE",desiredSize:new Me.$u(120,60),minSize:new Me.$u(40,40),resizable:!0,resizeCellSize:new Me.$u(10,10),rotatable:!0},new Me.KX("location","loc",Me.E9.parse).makeTwoWay(Me.E9.stringify),new Me.KX("desiredSize","size",Me.$u.parse).makeTwoWay(Me.$u.stringify),Pe(Me.bn,{name:"SHAPE",fill:We.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Me.z6.AllSides,toSpot:Me.z6.AllSides},new Me.KX("figure"),new Me.KX("fill"),new Me.KX("stroke","borderColor"),new Me.KX("strokeWidth","thickness"),new Me.KX("strokeDashArray","dash")),Pe(Me.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Pe(Me.al,{margin:1,textAlign:"center",overflow:Me.al.OverflowEllipsis,editable:!0},new Me.KX("text").makeTwoWay(),new Me.KX("stroke","color"))),we.current.nodeTemplate.toolTip=Pe("ToolTip",Pe(Me.s_,"Vertical",{maxSize:new Me.$u(200,NaN)},Pe(Me.al,{font:"bold 10pt sans-serif",textAlign:"center"},new Me.KX("text")),Pe(Me.al,{font:"10pt sans-serif",textAlign:"center"},new Me.KX("text","details"))));function pn(Rn,Xn){var hi=(ei,fi)=>{ei.handled=!0,ei.diagram.model.commit(Ai=>{var gi=fi.part.adornedPart,ii=new Me.E9().setRectSpot(gi.actualBounds,Rn);ii.subtract(gi.location),ii.scale(2,2),ii.x+=Math.sign(ii.x)*130,ii.y+=Math.sign(ii.y)*130,ii.add(gi.location),ii.snapToGridPoint(ei.diagram.grid.gridOrigin,ei.diagram.grid.gridCellSize);var Li=Ai.copyNodeData(gi.data);Ai.setGroupKeyForNodeData(Li,Ai.getGroupKeyForNodeData(gi.data)),Ai.addNodeData(Li);var bn={from:gi.key,to:Ai.getKeyForNodeData(Li)};Ai.addLinkData(bn);var er=ei.diagram.findNodeForData(Li);er.location=ii,ei.diagram.select(er),setTimeout(()=>{ei.diagram.commandHandler.editTextBlock()},20)})};return Pe(Me.bn,{figure:Xn,alignment:Rn,alignmentFocus:Rn.opposite(),width:Rn.equals(Me.z6.Top)||Rn.equals(Me.z6.Bottom)?25:18,height:Rn.equals(Me.z6.Top)||Rn.equals(Me.z6.Bottom)?18:25,fill:"orange",stroke:We.white,strokeWidth:4,mouseEnter:(ei,fi)=>fi.fill="dodgerblue",mouseLeave:(ei,fi)=>fi.fill="orange",isActionable:!0,click:hi,contextClick:hi})}function On(Rn){return Pe(Me.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:(Xn,hi)=>hi.fill="dodgerblue",mouseLeave:(Xn,hi)=>hi.fill="orange",click:(Xn,hi)=>{Xn.diagram.commandHandler.showContextMenu(hi.part.adornedPart)}},Rn||{})}we.current.nodeTemplate.selectionAdornmentTemplate=Pe(Me.uz,"Spot",Pe(Me.Vm,{padding:10}),pn(Me.z6.Top,"TriangleUp"),pn(Me.z6.Left,"TriangleLeft"),pn(Me.z6.Right,"TriangleRight"),pn(Me.z6.Bottom,"TriangleDown"),On({alignment:new Me.z6(.75,0)}));function Ke(Rn,Xn){return(hi,ei)=>{hi.handled=!0,hi.diagram.model.commit(fi=>{fi.set(ei.part.adornedPart.data,Rn,Xn)})}}function nn(Rn,Xn){return Xn||(Xn="color"),Pe(Me.bn,{width:16,height:16,stroke:"lightgray",fill:Rn,margin:1,background:"transparent",mouseEnter:(hi,ei)=>ei.stroke="dodgerblue",mouseLeave:(hi,ei)=>ei.stroke="lightgray",click:Ke(Xn,Rn),contextClick:Ke(Xn,Rn)})}function _e(){return[Pe("ContextMenuButton",Pe(Me.s_,"Horizontal",nn(We.white,"fill"),nn(We.beige,"fill"),nn(We.extralightblue,"fill"),nn(We.extralightred,"fill"))),Pe("ContextMenuButton",Pe(Me.s_,"Horizontal",nn(We.lightgray,"fill"),nn(We.lightgreen,"fill"),nn(We.lightblue,"fill"),nn(We.lightred,"fill")))]}function en(){return[Pe("ContextMenuButton",Pe(Me.s_,"Horizontal",nn(We.black),nn(We.green),nn(We.blue),nn(We.red))),Pe("ContextMenuButton",Pe(Me.s_,"Horizontal",nn(We.white),nn(We.magenta),nn(We.purple),nn(We.orange)))]}function un(Rn,Xn){return Xn||(Xn="thickness"),Pe(Me.bn,"LineH",{width:16,height:16,strokeWidth:Rn,margin:1,background:"transparent",mouseEnter:(hi,ei)=>ei.background="dodgerblue",mouseLeave:(hi,ei)=>ei.background="transparent",click:Ke(Xn,Rn),contextClick:Ke(Xn,Rn)})}function sn(Rn,Xn){return Xn||(Xn="dash"),Pe(Me.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Rn,margin:1,background:"transparent",mouseEnter:(hi,ei)=>ei.background="dodgerblue",mouseLeave:(hi,ei)=>ei.background="transparent",click:Ke(Xn,Rn),contextClick:Ke(Xn,Rn)})}function xn(){return[Pe("ContextMenuButton",Pe(Me.s_,"Horizontal",un(1),un(2),un(3),un(4))),Pe("ContextMenuButton",Pe(Me.s_,"Horizontal",sn(null),sn([2,4]),sn([4,4])))]}function gn(Rn,Xn){return Xn||(Xn="figure"),Pe(Me.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Rn,margin:1,background:"transparent",mouseEnter:(hi,ei)=>ei.fill="dodgerblue",mouseLeave:(hi,ei)=>ei.fill="lightgray",click:Ke(Xn,Rn),contextClick:Ke(Xn,Rn)})}we.current.nodeTemplate.contextMenu=Pe("ContextMenu",Pe("ContextMenuButton",Pe(Me.s_,"Horizontal",gn("Rectangle"),gn("RoundedRectangle"),gn("Ellipse"),gn("Diamond"))),Pe("ContextMenuButton",Pe(Me.s_,"Horizontal",gn("Parallelogram2"),gn("ManualOperation"),gn("Procedure"),gn("Cylinder1"))),Pe("ContextMenuButton",Pe(Me.s_,"Horizontal",gn("Terminator"),gn("CreateRequest"),gn("Document"),gn("TriangleDown"))),_e(),en(),xn()),we.current.groupTemplate=Pe(Me.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:Me.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Rn,Xn)=>{var hi=Xn.addMembers(Xn.diagram.selection,!0);hi||Xn.diagram.currentTool.doCancel()},avoidable:!1},new Me.KX("location","loc",Me.E9.parse).makeTwoWay(Me.E9.stringify),Pe(Me.s_,"Auto",{name:"BODY"},Pe(Me.bn,{parameter1:10,fill:We.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:Me.z6.AllSides,toSpot:Me.z6.AllSides},new Me.KX("fill"),new Me.KX("stroke","color"),new Me.KX("strokeWidth","thickness"),new Me.KX("strokeDashArray","dash")),Pe(Me.Vm,{background:"transparent",margin:20})),Pe(Me.al,{alignment:Me.z6.Top,alignmentFocus:Me.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new Me.KX("text"),new Me.KX("stroke","color"))),we.current.groupTemplate.selectionAdornmentTemplate=Pe(Me.uz,"Spot",Pe(Me.s_,"Auto",Pe(Me.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Pe(Me.Vm,{margin:1.5})),On({alignment:Me.z6.TopRight,alignmentFocus:Me.z6.BottomRight})),we.current.groupTemplate.contextMenu=Pe("ContextMenu",_e(),en(),xn()),we.current.linkTemplate=Pe(Me.rU,{layerName:"Foreground",routing:Me.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new Me.KX("fromSpot","fromSpot",Me.z6.parse),new Me.KX("toSpot","toSpot",Me.z6.parse),new Me.KX("fromShortLength","dir",Rn=>Rn>=1?10:0),new Me.KX("toShortLength","dir",Rn=>Rn>=1?10:0),new Me.KX("points").makeTwoWay(),Pe(Me.bn,{strokeWidth:2},new Me.KX("stroke","color"),new Me.KX("strokeWidth","thickness"),new Me.KX("strokeDashArray","dash")),Pe(Me.bn,{segmentIndex:0,segmentOffset:new Me.E9(15,0),segmentOrientation:Me.rU.OrientAlong,alignmentFocus:Me.z6.Right,figure:"circle",width:10,strokeWidth:0},new Me.KX("fill","color"),new Me.KX("visible","dir",Rn=>Rn===1)),Pe(Me.bn,{segmentIndex:-1,segmentOffset:new Me.E9(-10,6),segmentOrientation:Me.rU.OrientPlus90,alignmentFocus:Me.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Me.KX("fill","color"),new Me.KX("visible","dir",Rn=>Rn>=1),new Me.KX("width","thickness",Rn=>7+3*Rn),new Me.KX("height","thickness",Rn=>7+3*Rn),new Me.KX("segmentOffset","thickness",Rn=>new Me.E9(-15,4+1.5*Rn))),Pe(Me.bn,{segmentIndex:0,segmentOffset:new Me.E9(15,-6),segmentOrientation:Me.rU.OrientMinus90,alignmentFocus:Me.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new Me.KX("fill","color"),new Me.KX("visible","dir",Rn=>Rn===2),new Me.KX("width","thickness",Rn=>7+3*Rn),new Me.KX("height","thickness",Rn=>7+3*Rn),new Me.KX("segmentOffset","thickness",Rn=>new Me.E9(-15,4+1.5*Rn))),Pe(Me.al,{alignmentFocus:new Me.z6(0,1,-4,0),editable:!0},new Me.KX("text").makeTwoWay(),new Me.KX("stroke","color"))),we.current.linkTemplate.selectionAdornmentTemplate=Pe(Me.uz,Pe(Me.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:Ln(2)},new Me.KX("pathPattern","thickness",Ln)),On({alignmentFocus:new Me.z6(0,0,-6,-4)}));function Ln(Rn){return Pe(Me.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Rn+4).toString()+" H3"})}function Mn(Rn){var Xn="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Rn===0?Xn="M0 0 M16 16 M0 8 L16 8":Rn===2&&(Xn="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Pe(Me.bn,{geometryString:Xn,margin:2,background:"transparent",mouseEnter:(hi,ei)=>ei.background="dodgerblue",mouseLeave:(hi,ei)=>ei.background="transparent",click:Ke("dir",Rn),contextClick:Ke("dir",Rn)})}function Qn(Rn){var Xn=(hi,ei)=>{hi.handled=!0,hi.diagram.model.commit(fi=>{var Ai=ei.part.adornedPart;fi.set(Ai.data,Rn?"toSpot":"fromSpot",Me.z6.stringify(Me.z6.AllSides)),(Rn?Ai.toNode:Ai.fromNode).invalidateConnectedLinks()})};return Pe(Me.bn,{width:12,height:12,fill:"transparent",mouseEnter:(hi,ei)=>ei.background="dodgerblue",mouseLeave:(hi,ei)=>ei.background="transparent",click:Xn,contextClick:Xn})}function ln(Rn,Xn){var hi=0,ei=Me.z6.RightSide;Rn.equals(Me.z6.Top)?(hi=270,ei=Me.z6.TopSide):Rn.equals(Me.z6.Left)?(hi=180,ei=Me.z6.LeftSide):Rn.equals(Me.z6.Bottom)&&(hi=90,ei=Me.z6.BottomSide),Xn||(hi-=180);var fi=(Ai,gi)=>{Ai.handled=!0,Ai.diagram.model.commit(ii=>{var Li=gi.part.adornedPart;ii.set(Li.data,Xn?"toSpot":"fromSpot",Me.z6.stringify(ei)),(Xn?Li.toNode:Li.fromNode).invalidateConnectedLinks()})};return Pe(Me.bn,{alignment:Rn,alignmentFocus:Rn.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:hi,background:"transparent",mouseEnter:(Ai,gi)=>gi.background="dodgerblue",mouseLeave:(Ai,gi)=>gi.background="transparent",click:fi,contextClick:fi})}we.current.linkTemplate.contextMenu=Pe("ContextMenu",en(),xn(),Pe("ContextMenuButton",Pe(Me.s_,"Horizontal",Mn(0),Mn(1),Mn(2))),Pe("ContextMenuButton",Pe(Me.s_,"Horizontal",Pe(Me.s_,"Spot",Qn(!1),ln(Me.z6.Top,!1),ln(Me.z6.Left,!1),ln(Me.z6.Right,!1),ln(Me.z6.Bottom,!1)),Pe(Me.s_,"Spot",{margin:new Me.Zt(0,0,0,2)},Qn(!0),ln(Me.z6.Top,!0),ln(Me.z6.Left,!0),ln(Me.z6.Right,!0),ln(Me.z6.Bottom,!0)))));const ti=`{ "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 vi=["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 oi(Rn){return console.log("shapeName:",Rn),vi.indexOf(Rn)>=0}var dn=new Me.YI(Sn.current,{maxSelectionCount:1,linkTemplate:Pe(Me.rU,{locationSpot:Me.z6.Center,selectionAdornmentTemplate:Pe(Me.uz,"Link",{locationSpot:Me.z6.Center},Pe(Me.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Pe(Me.bn,{toArrow:"Standard",stroke:null}))},{routing:Me.rU.AvoidsNodes,curve:Me.rU.JumpOver,corner:5,toShortLength:4},new Me.KX("points"),Pe(Me.bn,{isPanelMain:!0,strokeWidth:2}),Pe(Me.bn,{toArrow:"Standard",stroke:null})),model:new Me.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...Me.bn.getFigureGenerators().toArray().map(Rn=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Rn.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return we.current.addDiagramListener("TextEdited",function(Rn){var Xn;const hi=Rn.subject.part;var ei=(Xn=document.activeElement)==null?void 0:Xn.value;typeof ei=="string"&&ei.trim()===""&&we.current.model.commit(function(fi){fi.set(hi.data,"text","\u672A\u547D\u540D"),we.current.commandHandler.stopCommand()},"increment")}),dn.nodeTemplate=Pe(Me.NB,"Auto",{locationSpot:Me.z6.Center},new Me.KX("location","location",Me.E9.parse).makeTwoWay(Me.E9.stringify),Pe(Me.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 Me.KX("stroke").makeTwoWay(),new Me.KX("fill").makeTwoWay(),new Me.KX("figure")),Pe(Me.al,{margin:new Me.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new Me.$u(16,16),maxSize:new Me.$u(10,NaN),textAlign:"center",editable:!0},new Me.KX("key").makeTwoWay())),setTimeout(()=>{we.current.grid=Pe(Me.s_,"Grid",Pe(Me.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Pe(Me.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),we.current.grid.visible=!0,we.current.grid.gridCellStroke="darkgray",we.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=we.current,we.current}const Hn=()=>Ut(this,null,function*(){var Pe,We=we.current.makeImage();const pn=yield(0,bt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:We.src,file_data:JSON.stringify({login:(Pe=(0,Yt.eY)())==null?void 0:Pe.login,data:JSON.parse(we.current.model.toJson())})}});Qe({src:pn.url})});return(0,zt.useEffect)(()=>(setTimeout(()=>{Nn()},500),wn(cn+1),()=>{we.current=null}),[]),Mt.createElement("div",{ref:Le,className:ze.current?`${_t.maxH60} body-overflow-initial`:"body-overflow-initial"},Mt.createElement(De.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!cn,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:Mt.createElement(Ne.Z,null,Mt.createElement(Tt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),Mt.createElement(Tt.Z,{onClick:()=>{var Pe,We,pn=we.current.selection.first();if(ze.current=!ze.current,document.activeElement&&pn){let On=(We=(Pe=document.activeElement)==null?void 0:Pe.value)==null?void 0:We.trim();typeof On=="string"&&we.current.model.commit(function(Ke){Ke.set(pn.data,"text",On||"\u672A\u547D\u540D"),we.current.commandHandler.stopCommand()},"increment")}wn(cn+1)}},Mt.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:qe},Mt.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:_t.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:_t.myPaletteDiv,ref:Sn})),Mt.createElement("div",{style:{flex:1,position:"relative"}},Mt.createElement("div",{ref:fn,style:{height:"80vh"}}))),Mt.createElement("div",{className:"tr"},Mt.createElement(Gt.ZP,{size:"large",onClick:Hn,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var wt=St,jt=Kt(5112),Wt=Kt(5871);const Vt=jt.ZP.Group,oe={margin:"0 8px"};var de=({callback:qe,onCancel:Qe})=>{function we(fn){qe(fn)}return zt.createElement(qt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:we},zt.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},zt.createElement("span",{style:oe},"\u5355\u5143\u683C\u6570\uFF1A"),zt.createElement("span",{style:oe},"\u884C\u6570"),zt.createElement(qt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},zt.createElement(Wt.Z,null)),zt.createElement("span",{style:oe},"\u5217\u6570"),zt.createElement(qt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},zt.createElement(Wt.Z,null))),zt.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},zt.createElement("span",{style:oe},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),zt.createElement(qt.default.Item,{name:"align"},zt.createElement(Vt,null,zt.createElement(jt.ZP,{value:"default"},zt.createElement("i",{className:"fa fa-align-justify"})),zt.createElement(jt.ZP,{value:"left"},zt.createElement("i",{className:"fa fa-align-left"})),zt.createElement(jt.ZP,{value:"center"},zt.createElement("i",{className:"fa fa-align-center"})),zt.createElement(jt.ZP,{value:"right"},zt.createElement("i",{className:"fa fa-align-right"}))))),zt.createElement("div",{className:"flex-container flex-end"},zt.createElement(Gt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),zt.createElement(Gt.ZP,{type:"ghost",onClick:Qe},"\u53D6\u6D88")))},Ge=Kt(78673),Ye=Kt(5559),Ue=Kt.n(Ye),vn=(0,zt.forwardRef)(({use3d:qe,width:Qe,height:we,callback:fn,showSaveButton:Sn},ze)=>{const Le=(0,zt.useRef)(),cn=(0,zt.useRef)(),[wn,Nn]=(0,zt.useState)(!1),Hn=(0,zt.useRef)({id:Le,appName:"graphing",width:Qe||1e3,height:we||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,zt.useEffect)(()=>{cn.current=new(Ue())(Hn.current,!0),window.onload=function(){cn.current.inject("applet_container")}},[]);const Pe=()=>{var We=window.ggbApplet.getPNGBase64(1,!0,72);return fn&&fn(We),We};return(0,zt.useEffect)(()=>{Hn.current.appName=wn?"3D":"graphing",cn.current.inject("applet_container")},[wn]),(0,zt.useEffect)(()=>{Nn(qe)},[qe]),(0,zt.useImperativeHandle)(ze,()=>({getImgData:Pe})),zt.createElement(zt.Fragment,null,zt.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Le}),zt.createElement(Ne.Z,{align:"middle"},zt.createElement(Tt.Z,{flex:1},zt.createElement(Ge.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:wn,onChange:We=>Nn(We)})),zt.createElement(Tt.Z,null,zt.createElement(Gt.ZP,{size:"large",onClick:Pe,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),ke=Kt(46531),Ze=Kt(8591);const hn="link",Pn="upload-image",In="add-flowchart",Bn="draw-image",Zn="add-flowchart",Gn="code-block",ci="add-table",pi="------------",xi={default:pi,left:`:${pi}`,center:`:${pi}:`,right:`${pi}:`};var Ci=Kt(50505);function Gi(){}let qi=0;const bi=1e4,Yi="\u2581",ui="@\u2581\u2581@",ne="@\u2581@",Wi=`
|
|
|
**\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`,Fi=["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 nr(qe){return/^\d+$/.test(qe)?`${qe}px`:qe}const xr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",vr={[xr+"-B"]:"bold",[xr+"-I"]:"italic"},Jn={[hn]:"\u6DFB\u52A0\u94FE\u63A5",[Gn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Pn]:"\u6DFB\u52A0\u56FE\u7247",[Bn]:"\u6DFB\u52A0\u753B\u56FE",[In]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[ci]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var _n=({defaultValue:qe="",onChange:Qe,width:we="100%",height:fn=400,miniToolbar:Sn=!1,isFocus:ze=!1,watch:Le,insertTemp:cn,mode:wn="markdown",id:Nn="markdown-editor-id",showResizeBar:Hn=!1,noStorage:Pe=!1,showNullButton:We=!1,showNullProgramButton:pn=!1,hidetoolBar:On=!1,fullScreen:Ke=!1,onBlur:nn,onCMBeforeChange:_e,onFullScreen:en,className:un="",disablePaste:sn=!1,disabled:xn=!1,disabledFill:gn=!1,placeholder:Ln="",values:Mn="",extraUse:Qn})=>{const[ln,ti]=(0,zt.useState)(null),[vi,oi]=(0,zt.useState)(qe),[dn,Rn]=(0,zt.useState)(Le),[Xn,hi]=(0,zt.useState)(Ke),[ei,fi]=(0,zt.useState)(""),[Ai,gi]=(0,zt.useState)(0),[ii,Li]=(0,zt.useState)(fn),[bn,er]=(0,zt.useState)(!1),[En,Oi]=(0,zt.useState)(0),[wr,_i]=(0,zt.useState)(0),kr=(0,zt.useRef)(),gr=(0,zt.useRef)(),wi=(0,zt.useRef)(),yi=(0,zt.useRef)();(0,zt.useEffect)(()=>{const Pi=window.scrollY||window.pageYOffset;oi(Mn),ln==null||ln.setValue(Mn),window.scrollTo(0,Pi)},[Mn]),(0,zt.useEffect)(()=>{en==null||en(Xn)},[Xn]),(0,zt.useEffect)(()=>{if(kr.current){let Pi=function(Wn,Ti){var Sr;if(sn){Ti.preventDefault();return}const Br=Ti.clipboardData;if(Br){const Rr=Br.types.toString(),Vr=Br.items;if(Rr==="Files"||Br.types.indexOf("Files")>-1){if(Ti.preventDefault(),wn=="stex")return;try{let io=Vr[1];((Sr=Vr[0])==null?void 0:Sr.kind)==="file"&&(io=Vr[0]);const ro=io.getAsFile(),To=ro.name.split(".").pop();(0,he.I)(ro,oo=>{var ko,yn,so;oo.id?((ko=ro==null?void 0:ro.type)==null?void 0:ko.indexOf("image"))>-1?mi.replaceSelection(`<img width="100%" src="/api/attachments/${oo.id}?type=${oo.content_type})" alt="" />`):((yn=ro==null?void 0:ro.type)==null?void 0:yn.indexOf("video"))>-1?mi.replaceSelection(`<video width="100%" controls src="/api/attachments/${oo.id}"></video>`):((so=ro==null?void 0:ro.type)==null?void 0:so.indexOf("pdf"))>-1?mi.replaceSelection(`<a href="/api/attachments/${oo.id}?type=${ro.type}&disposition=inline" target="_blank">${ro.name}</a>`):Fi.includes(To)?mi.replaceSelection(`<a href="/api/attachments/${oo.id}?type=office&disposition=inline" target="_blank">${ro.name}</a>`):mi.replaceSelection(`[${ro.name}](/api/attachments/${oo.id}?type=${oo.content_type})`):(oo==null?void 0:oo.status)===401&&(document.location.href="/user/login")})}catch(io){Ze.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const mi=Xt().fromTextArea(kr.current,{mode:wn,lineNumbers:!Sn,lineWrapping:!0,value:qe,autoCloseTags:!0,autoCloseBrackets:!0});return mi.on("keyup",function(Wn,Ti){Ti.keyCode===8&&(Wn.getValue()==""?mi.setOption("placeholder",Ln):mi.setOption("placeholder",null))}),mi.on("keydown",function(Wn,Ti){if(Ti.keyCode===8){var Sr=Xi(Wn);Sr&&Ti.preventDefault()}}),ze&&mi.focus(),mi.on("paste",Pi),xn&&mi.on("beforeChange",function(Wn,Ti){(Ti.origin==="paste"||Ti.origin==="+input")&&Ti.cancel()}),ti(mi),()=>{mi.off("paste",Pi)}}},[]);const Zi=(0,zt.useCallback)(()=>{if(gr.current)try{}catch(Pi){console.log(Pi,"---- to set md editor body height")}},[ii,gr,Xn]);(0,zt.useEffect)(()=>{function Pi(){let mi=new Qt.Z(Wn=>{for(let Ti of Wn)(Ti.target.offsetHeight>0||Ti.target.offsetWidth>0)&&(Zi(),ln.setSize("100%","100%"),ln.refresh())});return mi.observe(kr.current.parentElement),mi}if(ln){const mi=Pi();return()=>{var Wn,Ti;(Wn=kr.current)!=null&&Wn.parentElement&&mi.unobserve((Ti=kr.current)==null?void 0:Ti.parentElement)}}},[ln,Zi]),(0,zt.useEffect)(()=>{if(ln){let Pi=[];for(const[mi,Wn]of Object.entries(vr)){let Ti={[mi]:()=>{qn(Wn)}};Pi.push(Ti),ln.addKeyMap(Ti)}return()=>{for(let mi of Pi)ln.removeKeyMap(mi)}}},[ln]),(0,zt.useEffect)(()=>{Ke!==Xn&&hi(Ke)},[Ke]),(0,Ci.Z)(()=>{if(!Pe&&Ai>0){let Pi=new Date().getTime(),mi=window.sessionStorage.getItem(Nn);Pi>=Ai+bi&&(!mi||mi!==vi)&&(window.sessionStorage.setItem(Nn,vi),er(!0))}},bi),(0,zt.useEffect)(()=>{Rn(Le)},[ln,Le]),(0,zt.useEffect)(()=>{ln&&ze&&ln.focus()},[ln,ze]),(0,zt.useEffect)(()=>{if(dn&&ln){let Pi=function(Wn){let Ti=Wn.target;if(yi.current){let Sr=Ti.scrollTop/Ti.scrollHeight;yi.current.scrollTop=yi.current.scrollHeight*Sr}};const mi=ln.getScrollerElement();return mi.addEventListener("scroll",Pi),()=>{mi.removeEventListener("scroll",Pi)}}},[ln,dn]),(0,zt.useEffect)(()=>{if(ln&&_e){let Pi=function(mi,Wn){_e(mi,Wn)};return ln.on("beforeChange",Pi),()=>{ln.off("beforeChange",Pi)}}},[ln,_e]),(0,zt.useEffect)(()=>{if(ln&&nn){let Pi=function(){nn(ln.getValue())};return ln.on("blur",Pi),()=>{ln.off("blur",Pi)}}},[ln,nn]);function Xi(Pi,mi){var Wn=Pi.getDoc(),Ti=Wn.getCursor(),Sr=Wn.getLine(Ti.line),Br=Sr.charAt(Ti.ch-1),Rr=Sr.lastIndexOf("@\u2581@",Ti.ch),Vr=Sr.lastIndexOf("@\u2581\u2581@",Ti.ch),io=Rr>Vr?Rr:Vr,ro=Rr>Vr?3:4;if(ui.indexOf(Br)===-1)return null;if(console.log("change1:",mi,Pi,Sr,Ti,io,Rr,Vr,Br),io>=0&&Ti.ch-io<5){var To=io+ro;return Wn.replaceRange("",{line:Ti.line,ch:io},{line:Ti.line,ch:To}),{line:Ti.line,ch:To}}return null}(0,zt.useEffect)(()=>{if(ln){let Pi=function(mi,Wn){const Ti=mi.getValue();oi(Ti),gi(new Date().getTime()),mi.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Qe&&(pn?Qe(Ti,Bi(Ti)):Qe(Ti))};return ln.on("change",Pi),()=>{ln.off("change",Pi)}}},[ln,Qe]),(0,zt.useEffect)(()=>{if(ln)if(qe==null)ln.setValue(""),oi("");else{const Pi=window.scrollY||window.pageYOffset;qe!==ln.getValue()&&(ln.setValue(qe),oi(qe),ln.setCursor(xn?1:ln.lineCount(),0),window.scrollTo(0,Pi))}},[ln,qe]);const qn=(0,zt.useCallback)(Pi=>{const mi=ln.getCursor(),Wn=ln.getSelection();let Ti=Wn.split(`
|
|
|
`);switch(Pi){case"bold":return ln.replaceSelection("**"+Wn+"**"),Wn===""&&ln.setCursor(mi.line,mi.ch+2),ln.focus();case"italic":return ln.replaceSelection("*"+Wn+"*"),Wn===""&&ln.setCursor(mi.line,mi.ch+1),ln.focus();case"code":return ln.replaceSelection("`"+Wn+"`"),Wn===""&&ln.setCursor(mi.line,mi.ch+1),ln.focus();case"inline-latex":return fi("inline-latex"),ln.focus();case"latex":return ln.replaceSelection("```latex\n"+Wn+"\n```"),ln.setCursor(mi.line+1,Wn.length+1),ln.focus();case"line-break":return ln.replaceSelection(`<br/>
|
|
|
`),ln.focus();case"list-ul":return Wn===""?ln.replaceSelection("- "+Wn):ln.replaceSelection(Ti.map(Sr=>Sr===""?"":`- ${Sr}`).join(`
|
|
|
`)),ln.focus();case"list-ol":return Wn===""?ln.replaceSelection("1. "+Wn):ln.replaceSelection(Ti.map((Sr,Br)=>Sr===""?"":`${Br+1}. ${Sr}`).join(`
|
|
|
`)),ln.focus();case"add-null-ch":return Wn===""&&ln.setCursor(mi.line,mi.ch),ln.replaceSelection(Yi),ln.focus();case"add-signal":return Wn===""&&ln.setCursor(mi.line,mi.ch),ln.replaceSelection(ne),ln.focus();case"add-multiple":return Wn===""&&ln.setCursor(mi.line,mi.ch),ln.replaceSelection(ui),ln.focus();case"inster-template-1":return Wn===""&&ln.setCursor(mi.line,mi.ch),ln.replaceSelection(Wi),ln.focus();case"eraser":return ln.setValue(""),ln.focus();case"trigger-watch":return Rn(!dn),ln.focus();case"trigger-full-screen":return hi(!Xn),ln.focus();case hn:fi(hn);return;case Gn:fi(Gn);return;case Pn:fi(Pn);return;case Bn:fi(Bn);return;case"maths-latex":fi("maths-latex");return;case In:fi(In);return;case ci:fi(ci);return;default:throw new Error}},[ln,dn,Xn]),Se=(0,zt.useCallback)((Pi,mi)=>{var Wn,Ti,Sr,Br,Rr,Vr;switch(fi(""),ei){case hn:const{title:ko,link:yn}=Pi;return ln.replaceSelection(`[${ko}](${yn})`),ln.focus();case Gn:const{language:so,content:Pl}=Pi;return ln.replaceSelection(["```"+so,Pl,"```"].join(`
|
|
|
`)),ln.focus();case"maths-latex":for(var io=atob(Pi),ro=new Uint8Array(io.length),To=0;To<io.length;To++)ro[To]=io.charCodeAt(To);var oo=new Blob([ro],{type:"image/png"});(0,he.I)(oo,zi=>{zi.id?ln.replaceSelection(``):(zi==null?void 0:zi.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":ln.replaceSelection("`$$"+Pi+"$$`");break;case Pn:case Bn:case Zn:const{src:vs,alt:Nr}=Pi,Pr=mi,uo=(Sr=(Ti=(Wn=Pr==null?void 0:Pr.name)==null?void 0:Wn.split("."))==null?void 0:Ti.pop)==null?void 0:Sr.call(Ti);return((Br=Pr==null?void 0:Pr.type)==null?void 0:Br.indexOf("image"))>-1||!(Pr!=null&&Pr.type)?Pr.align||Pr.width?ln.replaceSelection(`<p style="text-align:${Pr.align||"initial"}"><img width="${Pr.width?Pr.width+"%":"initial"}" src="${vs}" alt="${Nr||""}" /></p>`):ln.replaceSelection(`<img width="100%" src="${vs}" alt="${Nr||""}" />`):((Rr=Pr==null?void 0:Pr.type)==null?void 0:Rr.indexOf("video"))>-1?ln.replaceSelection(`<video width="100%" controls src="${vs}"></video>`):((Vr=Pr==null?void 0:Pr.type)==null?void 0:Vr.indexOf("pdf"))>-1?ln.replaceSelection(`<a href="${vs}?type=${Pr.type}&disposition=inline" target="_blank">${Pr.name}</a>`):Fi.includes(uo)?ln.replaceSelection(`<a href="${vs}?type=office&disposition=inline" target="_blank">${Pr.name}</a>`):ln.replaceSelection(`[${Pr.name}](${vs})`),ln.focus();case ci:const{row:Wr,col:Ji,align:$i}=Pi;let Uo=`
|
|
|
`;for(let zi=0;zi<Wr;zi++){let dr=[],pr=[];for(let li=0;li<Ji;li++)zi===1&&pr.push(xi[$i]),dr.push(" ");zi===1&&(Uo+=`| ${pr.join(" | ")} |
|
|
|
`),Uo+=`| ${dr.join(Ji===1?"":" | ")} |
|
|
|
`}return ln.replaceSelection(Uo+`
|
|
|
`),ln.focus();default:throw new Error}},[ln,ei]),ji=(0,zt.useMemo)(()=>{switch(ei){case hn:return zt.createElement(ue,{callback:Se,onCancel:yr});case Gn:return zt.createElement(ge.Z,{callback:Se,onCancel:yr});case Pn:return zt.createElement(he.Z,{callback:Se,onCancel:yr});case In:return zt.createElement(wt,{callback:Se,onCancel:yr});case ci:return zt.createElement(de,{callback:Se,onCancel:yr});case"maths-latex":return zt.createElement(vn,{showSaveButton:!0,callback:Se});case"inline-latex":return zt.createElement(ke.Z,{showSaveButton:!0,callback:Se});default:return null}},[ei]);function yr(){fi("")}(0,zt.useEffect)(()=>{if(wi.current){let Pi=function(Rr){Sr=!0,Br=Rr.pageY},mi=function(){Sr=!1},Wn=function(Rr){if(Sr){let Vr=Rr.pageY-Br;Vr<0&&(Vr=0),Vr>300&&(Vr=300);let io=fn+Vr+"px";Li(io)}},Ti=wi.current,Sr=!1,Br=0;return Ti.addEventListener("mousedown",Pi),document.addEventListener("mousemove",Wn),document.addEventListener("mouseup",mi),()=>{Ti.removeEventListener("mousedown",Pi),document.removeEventListener("mousemove",Wn),document.removeEventListener("mouseup",mi)}}},[ln,wi]),(0,zt.useEffect)(()=>{Li(fn)},[fn]);const Ki=nr(we),rr=nr(ii),Tr={width:Ki,height:rr},Ar=(0,zt.useMemo)(()=>{if(Ai){let Pi=new Date(Ai),mi=Pi.getHours(),Wn=Pi.getMinutes(),Ti=Pi.getSeconds();return mi=mi<10?"0"+mi:mi,Wn=Wn<10?"0"+Wn:Wn,Ti=Ti<10?"0"+Ti:Ti,`${mi}:${Wn}:${Ti}`}return 0},[Ai]),Bi=Pi=>{const mi=[];if(pn){let Wn=-1;Pi=Pi.replace(/(@▁▁@|@▁@)/g,function(Ti,Sr,Br){mi.push({multiLine:Ti!==ne})})}return mi};function Di(){window.sessionStorage.removeItem(Nn),er(!1),gi(0)}function Mi(){er(!1),gi(0),ln.setValue(window.sessionStorage.getItem(Nn))}(0,zt.useEffect)(()=>{Jn[ei]&&ei!==Bn&&ei!==In&&setTimeout(()=>{const Pi=document.getElementsByClassName("markdown-popup-form")[0],mi=window.innerWidth/2-Pi.offsetWidth/2,Wn=window.innerHeight/2-Pi.offsetHeight/2;Oi(mi),_i(Wn)},0)},[ei]);const lr=Pi=>{Pi.preventDefault();const mi=Pi.clientX-En,Wn=Pi.clientY-wr;document.body.onmousemove=Ti=>{let Sr=Ti.clientX-mi,Br=Ti.clientY-Wn;const Rr=document.getElementsByClassName("markdown-popup-form")[0],Vr=window.innerWidth-Rr.offsetWidth,io=window.innerHeight-Rr.offsetHeight;Sr=Math.max(0,Math.min(Sr,Vr)),Br=Math.max(0,Math.min(Br,io)),ar(Ti.clientX,Ti.clientY,mi,Wn)&&(Oi(Sr),_i(Br))},document.body.onmouseup=function(){document.body.onmousemove=null}},ar=(Pi,mi,Wn,Ti)=>{const Sr=document.body.clientHeight,Br=document.body.clientWidth;return Pi<20&&Wn>Pi||Pi>Br-20&&Wn<Pi||mi<20&&Ti>mi||mi>Sr-20&&Ti<mi?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return zt.createElement(zt.Fragment,null,zt.createElement("div",{className:"markdown-editor-wrapper",ref:gr},zt.createElement("div",{className:`markdown-editor-container ${un} ${dn?"on-preview":""} ${Sn?"mini":""} ${Xn?"full-screen":""}`,style:Tr},zt.createElement(Zt,{insertTemp:cn,watch:dn,fullScreen:Xn,showNullButton:We,showNullProgramButton:pn,onActionCallback:qn,hidetoolBar:On,extraUse:Qn}),zt.createElement("div",{className:"markdown-editor-body"},zt.createElement("div",{className:"codemirror-container"},zt.createElement("textarea",{ref:kr,placeholder:Ln})),dn?zt.createElement("div",{ref:yi,className:"preview-container"},wn==="stex"&&zt.createElement(At,{value:vi}),wn!=="stex"&&zt.createElement(Lt.Z,{disabledFill:gn,showProgramFill:pn,value:vi})):null))),Hn?zt.createElement("a",{ref:wi,className:"editor-resize"}):null,ei===Bn&&zt.createElement(tn,{callback:Se,onCancel:yr}),ei===In&&zt.createElement(wt,{callback:Se,onCancel:yr}),zt.createElement(Ft.Z,null,Jn[ei]&&ei!==Bn&&ei!==In?zt.createElement(De.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:En,top:wr},title:zt.createElement("div",{style:{cursor:"move"},onMouseDown:lr},Jn[ei]),open:!0,onCancel:yr,footer:null,destroyOnClose:!0,width:ei===In?"1200px":null,height:ei===In?"80vh":null,className:"markdown-popup-form"},ji):null))}},56030:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return Pt},I:function(){return Zt}});var zt=Kt(78241),gt=Kt(8591),Xt=Kt(92832),Qt=Kt(81327),kt=Kt(5871),Bt=Kt(5112),xt=Kt(3113),Ot=Kt(49291),Rt=Kt(59301),Ct=Kt(59301),Lt=Object.defineProperty,At=Object.defineProperties,It=Object.getOwnPropertyDescriptors,mt=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,st=(Ft,qt,te)=>qt in Ft?Lt(Ft,qt,{enumerable:!0,configurable:!0,writable:!0,value:te}):Ft[qt]=te,rt=(Ft,qt)=>{for(var te in qt||(qt={}))et.call(qt,te)&&st(Ft,te,qt[te]);if(mt)for(var te of mt(qt))tt.call(qt,te)&&st(Ft,te,qt[te]);return Ft},ut=(Ft,qt)=>At(Ft,It(qt));const{useForm:ct}=zt.default,ft={width:280,marginRight:10},pt={labelCol:{span:5},wrapperCol:{span:19}};var Pt=({callback:Ft,onCancel:qt})=>{const[te]=ct();let Gt=(0,Rt.useRef)();function ce(ye){Gt.current.width=te.getFieldValue("width"),Gt.current.align=te.getFieldValue("align"),Ft(ye,Gt.current)}function ae(ye,Te){if(ye.status===-1){gt.ZP.error(ye.message);return}te.setFieldsValue({src:`/api/attachments/${ye.id}`,type:Te.type})}function xe(ye){let Te=ye.target.files[0];Gt.current=Te,Zt(Te,ae)}return Ct.createElement(zt.default,ut(rt({form:te},pt),{className:"upload-image-panel",onFinish:ce,style:{width:470,overflow:"hidden"}}),Ct.createElement(zt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Ct.createElement("div",{className:"flex-container"},Ct.createElement(zt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Ct.createElement(Xt.default,{style:ft})),Ct.createElement(Dt,{onFileChange:xe}))),Ct.createElement(zt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Ct.createElement(Xt.default,{style:{width:264}})),Ct.createElement(zt.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Ct.createElement(Qt.Z,null,Ct.createElement(zt.default.Item,{name:"width",style:{margin:0}},Ct.createElement(kt.Z,{style:{width:264}})),Ct.createElement("span",{className:"ml8"},"%"))),Ct.createElement(zt.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Ct.createElement(Bt.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Ct.createElement("aside",null,Ct.createElement(zt.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Ct.createElement(xt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Ct.createElement(xt.ZP,{type:"default",onClick:qt},"\u53D6\u6D88"))))};function Dt({onFileChange:Ft}){return Ct.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Ct.createElement("input",{type:"file",onChange:Ft}))}function Zt(Ft,qt){if(!Ft)throw new String("\u6CA1\u6709\u6587\u4EF6");let te=new FormData;te.append("editormd-image-file",Ft),te.append("file_param_name","editormd-image-file"),te.append("byxhr","true");var Gt=new window.XMLHttpRequest;Gt.withCredentials=!0,Gt.addEventListener("load",function(ce){qt(JSON.parse(ce.target.responseText),Ft)},!1),Gt.addEventListener("error",function(ce){console.error(ce)},!1),Gt.open("POST",`${Ot.KI}/api/attachments.json`),Gt.send(te)}},19647:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return Xt}});var zt=Kt(59301),gt=Kt(4676);class Xt extends zt.Component{constructor(kt){super(kt);const Bt=window.document;this.node=Bt.createElement("div"),Bt.body.appendChild(this.node)}render(){const{children:kt}=this.props;return(0,gt.createPortal)(kt,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},57800:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{SV:function(){return Ut},ZP:function(){return Mt}});var zt=Kt(59301),gt=Kt(76374);const Xt={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"]},Qt={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"]},kt={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(`
|
|
|
`)}]},Bt={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(`
|
|
|
`)}]},xt={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 Ot=Kt(7947),Rt=Kt.n(Ot),Ct=Object.defineProperty,Lt=Object.defineProperties,At=Object.getOwnPropertyDescriptors,It=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,tt=(St,wt,jt)=>wt in St?Ct(St,wt,{enumerable:!0,configurable:!0,writable:!0,value:jt}):St[wt]=jt,st=(St,wt)=>{for(var jt in wt||(wt={}))mt.call(wt,jt)&&tt(St,jt,wt[jt]);if(It)for(var jt of It(wt))et.call(wt,jt)&&tt(St,jt,wt[jt]);return St},rt=(St,wt)=>Lt(St,At(wt)),ut=(St,wt,jt)=>new Promise((Wt,Vt)=>{var oe=Ye=>{try{Ge(jt.next(Ye))}catch(Ue){Vt(Ue)}},de=Ye=>{try{Ge(jt.throw(Ye))}catch(Ue){Vt(Ue)}},Ge=Ye=>Ye.done?Wt(Ye.value):Promise.resolve(Ye.value).then(oe,de);Ge((jt=jt.apply(St,wt)).next())});const ct={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"]}},ft=(St,wt)=>wt.map(jt=>({label:jt,kind:St.languages.CompletionItemKind.Keyword,insertText:jt})),pt=St=>Object.keys(ct.tables).map(wt=>({label:wt,kind:St.languages.CompletionItemKind.Variable,insertText:wt})),Pt=(St,wt)=>{const jt=ct.tables[St];return jt?jt.map(Wt=>({label:Wt,kind:wt.languages.CompletionItemKind.Field,insertText:Wt})):[]};function Dt(St,wt,jt,Wt,Vt){let oe=wt.getWordUntilPosition(jt),de={startLineNumber:jt.lineNumber,endLineNumber:jt.lineNumber,startColumn:oe.startColumn,endColumn:oe.endColumn},Ge=Wt.map(Ye=>({label:Ye,kind:St.languages.CompletionItemKind.Keyword,insertText:Ye,insertTextRules:St.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:de}));return Vt.map(Ye=>{Ge.push(rt(st({},Ye),{range:de}))}),Ge}var Zt=St=>{ct.languages.map(Vt=>(St.languages.registerDocumentFormattingEditProvider(Vt,{provideDocumentFormattingEdits(oe,de,Ge){return ut(this,null,function*(){const Ye=Rt()(oe.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:oe.getFullModelRange(),text:Ye}]})}}),Vt));const wt=kt.quickKey.map(Vt=>({label:Vt.label,kind:St.languages.CompletionItemKind.Method,insertText:Vt.content,insertTextRules:St.languages.CompletionItemInsertTextRule.InsertAsSnippet})),jt=Bt.quickKey.map(Vt=>({label:Vt.label,kind:St.languages.CompletionItemKind.Method,insertText:Vt.content,insertTextRules:St.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Wt=Qt.quickKey.map(Vt=>({label:Vt.label,kind:St.languages.CompletionItemKind.Method,insertText:Vt.content,insertTextRules:St.languages.CompletionItemInsertTextRule.InsertAsSnippet}));St.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Vt,oe){var de=Vt.getWordUntilPosition(oe),Ge={startLineNumber:oe.lineNumber,endLineNumber:oe.lineNumber,startColumn:de.startColumn,endColumn:de.endColumn},Ye=Vt.getLineContent(oe.lineNumber).substring(de.startColumn-2,de.endColumn);return{suggestions:[...kt.keywords.map(Ue=>({label:Ue,kind:St.languages.CompletionItemKind.Function,documentation:Ue,insertText:Ue,insertTextRules:St.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge})),...kt.quickKey.map(Ue=>({label:Ue.label,kind:St.languages.CompletionItemKind.Function,documentation:Ue.content,insertText:Ye.startsWith("#")?Ue.content.replace(/#/,""):Ue.content,insertTextRules:St.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge}))]}}}),St.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Vt,oe){var de=Vt.getWordUntilPosition(oe),Ge={startLineNumber:oe.lineNumber,endLineNumber:oe.lineNumber,startColumn:de.startColumn,endColumn:de.endColumn};return{suggestions:[...Xt.keywords.map(Ye=>({label:Ye,kind:St.languages.CompletionItemKind.Function,documentation:Ye,insertText:Ye,insertTextRules:St.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge}))]}}}),St.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Vt,oe){var de=Vt.getWordUntilPosition(oe),Ge={startLineNumber:oe.lineNumber,endLineNumber:oe.lineNumber,startColumn:de.startColumn,endColumn:de.endColumn},Ye=Vt.getLineContent(oe.lineNumber).substring(de.startColumn-2,de.endColumn);return{suggestions:[...Qt.keywords.map(Ue=>({label:Ue,kind:St.languages.CompletionItemKind.Function,documentation:Ue,insertText:Ue,insertTextRules:St.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge})),...Qt.quickKey.map(Ue=>({label:Ue.label,kind:St.languages.CompletionItemKind.Function,documentation:Ue.content,insertText:Ye.startsWith("#")?Ue.content.replace(/#/,""):Ue.content,insertTextRules:St.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge}))]}}}),St.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Vt,oe){var de=Vt.getWordUntilPosition(oe),Ge={startLineNumber:oe.lineNumber,endLineNumber:oe.lineNumber,startColumn:de.startColumn,endColumn:de.endColumn},Ye=Vt.getLineContent(oe.lineNumber).substring(de.startColumn-2,de.endColumn);return{suggestions:[...xt.keywords.map(Ue=>({label:Ue,kind:St.languages.CompletionItemKind.Function,documentation:Ue,insertText:Ue,insertTextRules:St.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge})),...xt.quickKey.map(Ue=>({label:Ue.label,kind:St.languages.CompletionItemKind.Function,documentation:Ue.content,insertText:Ye.startsWith("#")?Ue.content.replace(/#/,""):Ue.content,insertTextRules:St.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge}))]}}}),St.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Vt,oe){var de=Vt.getWordUntilPosition(oe),Ge={startLineNumber:oe.lineNumber,endLineNumber:oe.lineNumber,startColumn:de.startColumn,endColumn:de.endColumn},Ye=Vt.getLineContent(oe.lineNumber).substring(de.startColumn-2,de.endColumn);return{suggestions:[...Bt.keywords.map(Ue=>({label:Ue,kind:St.languages.CompletionItemKind.Function,documentation:Ue,insertText:Ue,insertTextRules:St.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge})),...Bt.quickKey.map(Ue=>({label:Ue.label,kind:St.languages.CompletionItemKind.Function,documentation:Ue.content,insertText:Ye.startsWith("#")?Ue.content.replace(/#/,""):Ue.content,insertTextRules:St.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ge}))]}}})};const Ft="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var qt=Object.defineProperty,te=(St,wt,jt)=>wt in St?qt(St,wt,{enumerable:!0,configurable:!0,writable:!0,value:jt}):St[wt]=jt,Gt=(St,wt,jt)=>te(St,typeof wt!="symbol"?wt+"":wt,jt);const ce=class mx{constructor(wt,jt,Wt){this.placeholder=wt,this.editor=jt,this.monaco=Wt,jt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return mx.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};Gt(ce,"ID","editor.widget.placeholderHint");var xe=ce,ye=Kt(96236),Te=Kt(8591),me=Kt(6848),He=Kt(89392),fe=Kt(50484),$t=Kt(56102),ie=Object.defineProperty,ue=Object.defineProperties,ge=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,$e=(St,wt,jt)=>wt in St?ie(St,wt,{enumerable:!0,configurable:!0,writable:!0,value:jt}):St[wt]=jt,Re=(St,wt)=>{for(var jt in wt||(wt={}))De.call(wt,jt)&&$e(St,jt,wt[jt]);if(he)for(var jt of he(wt))Ne.call(wt,jt)&&$e(St,jt,wt[jt]);return St},tn=(St,wt)=>ue(St,ge(wt)),Me=(St,wt)=>{var jt={};for(var Wt in St)De.call(St,Wt)&&wt.indexOf(Wt)<0&&(jt[Wt]=St[Wt]);if(St!=null&&he)for(var Wt of he(St))wt.indexOf(Wt)<0&&Ne.call(St,Wt)&&(jt[Wt]=St[Wt]);return jt},Oe=(St,wt,jt)=>new Promise((Wt,Vt)=>{var oe=Ye=>{try{Ge(jt.next(Ye))}catch(Ue){Vt(Ue)}},de=Ye=>{try{Ge(jt.throw(Ye))}catch(Ue){Vt(Ue)}},Ge=Ye=>Ye.done?Wt(Ye.value):Promise.resolve(Ye.value).then(oe,de);Ge((jt=jt.apply(St,wt)).next())});function Fe(St){return/^\d+$/.test(St)?`${St}px`:St}function le(){}let Tt=!1;const bt={"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 _t(St=[]){let wt=St;if(Array.isArray(St)){for(let jt=0;jt<St.length;jt++){let Wt=bt[St[jt]];if(Wt)return Wt}return wt[0]}return bt[wt]||wt}let Yt=null;var Mt=St=>{var wt=St,{width:jt="100%",height:Wt="100%",value:Vt,language:oe="javascript",style:de={},options:Ge={},overrideServices:Ye={},theme:Ue="vs-dark",onEditBlur:an,isCopy:vn=!1,onSave:ke,autoHeight:Ze=!1,forbidCopy:hn=!1,onChange:Pn=le,editorDidMount:In=le,onFocus:Bn=le,onBreakPoint:Zn=le,breakPointValue:Gn=[],filename:ci="educoder.txt",errorLine:pi,errorContent:xi="",highlightLine:Ci,openBreakPoint:Gi=!1,placeholder:qi=""}=wt,bi=Me(wt,["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 Yi=(0,zt.useRef)(),ui=(0,zt.useRef)({}),ne=(0,zt.useRef)(),Wi=(0,zt.useRef)(),Fi=(0,zt.useRef)([]),nr=(0,zt.useRef)(!1),sr=(0,zt.useRef)(),xr=(0,zt.useRef)(),vr=(0,zt.useRef)(!1),[Jn,_n]=(0,zt.useState)(!1);function qe(){let Ke;return Yi.current&&(Ke=new gt.Z(nn=>{for(let _e of nn)(_e.target.offsetHeight>0||_e.target.offsetWidth>0)&&ui.current.instance.layout()}),Ke.observe(Yi.current)),Ke}function Qe(){Te.ZP.warning({content:decodeURIComponent(Ft),key:"monaco-editor-tip"})}const we=()=>{let Ke=ui.current.instance;if(Vt!=null&&Ke&&Jn){const nn=Ke.getModel();nn&&Vt!==nn.getValue()&&(Tt=!0,nn.setValue(Vt),Ke.layout(),Tt=!1)}};(0,zt.useEffect)(()=>{const Ke=fe.Z.subscribe("formatDocument",nn=>{var _e;let en=ui.current.instance;(_e=en==null?void 0:en.getAction)==null||_e.call(en,"editor.action.formatDocument").run()});return window.updateMonacoValue=nn=>{Pn(nn)},Ke},[]),(0,zt.useEffect)(()=>{var Ke;let nn=ui.current.instance;Wi.current&&clearTimeout(Wi.current),Wi.current=setTimeout(()=>{we()},500),Vt&&(Vt!=null&&Vt.length)&&((Ke=nn==null?void 0:nn.updateOptions)==null||Ke.call(nn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Vt.split(/\r\n|\r|\n/g).length))+3,5)}))},[Vt,Jn,ui.current]),(0,zt.useEffect)(()=>{if(pi&&ui.current&&ui.current.instance){let nn=ui.current.instance;nn.changeViewZones(function(_e){var en=document.createElement("div");en.style.padding="10px 20px",en.style.width="calc(100% - 20px)",en.className="my-error-line-wrp",en.innerHTML=xi,_e.addZone({afterLineNumber:pi||11,heightInLines:3,domNode:en})});var Ke={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}};nn.addOverlayWidget(Ke),nn.revealPositionInCenter({lineNumber:20,column:1})}},[pi,ui.current,Jn]);const fn=(Ke="",nn)=>{if(!Ke||Ke.trim()==="")return!0;const en=ui.current.instance.getModel().getLineTokens(nn);let un=!1;for(let sn=0;sn<2;sn++)en.getStandardTokenType(sn)===1&&(un=!0);return un};(0,zt.useEffect)(()=>{var Ke;const nn=(Ke=ui.current)==null?void 0:Ke.instance;if(nn&&Jn&&hn){const _e=nn.onDidBlurEditorWidget(()=>{vr.current=!1}),en=nn.onDidFocusEditorText(()=>{vr.current=!0});return()=>{_e.dispose(),en.dispose()}}},[ui.current,Jn,hn]),(0,zt.useEffect)(()=>{var Ke;if((Ke=ui.current)!=null&&Ke.instance&&Jn&&Gi){let nn=ui.current.instance,_e=nn.getModel();if(!_e)return;(()=>{var oi;let dn=[],Rn=[];const Xn=_e.getAllDecorations();for(let ei of Xn)ei.options.className==="highlighted-line"&&(dn.push((oi=ei==null?void 0:ei.range)==null?void 0:oi.startLineNumber),Rn.push(ei==null?void 0:ei.id));if(Ci===dn[0])return;_e.deltaDecorations(Rn,[]);const hi=_e.getLineCount();Ci&&Ci<=hi&&(nn.deltaDecorations([],[{range:new Yt.Range(Ci,1,Ci,_e.getLineMaxColumn(Ci)),options:{isWholeLine:!0,className:"highlighted-line"}}]),nn.revealLineInCenter(Ci))})();const un=(oi=!1)=>{var dn;let Rn=[],Xn=[];const hi=_e.getAllDecorations();for(let ei of hi)ei.options.linesDecorationsClassName==="breakpoints-select"&&(Rn.push((dn=ei==null?void 0:ei.range)==null?void 0:dn.startLineNumber),Xn.push(ei==null?void 0:ei.id));if(oi)return{lines:Rn,ids:Xn};Zn(Rn)},sn=oi=>Oe(void 0,null,function*(){let dn={range:new Yt.Range(oi,1,oi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield _e.deltaDecorations([],[dn]),un()}),xn=oi=>Oe(void 0,null,function*(){let dn=[];const Rn=nn.getLineDecorations(oi);for(let Xn of Rn)Xn.options.linesDecorationsClassName==="breakpoints-select"&&dn.push(Xn.id);yield _e.deltaDecorations(dn,[]),un()}),gn=oi=>{let dn=nn.getLineDecorations(oi);for(let Rn of dn)if(Rn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,He.isEqual)(Gn,un(!0).lines)){_e.deltaDecorations(un(!0).ids,[]);const oi=Gn.map(dn=>({range:new Yt.Range(dn,1,dn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));_e.deltaDecorations([],oi)}const Ln=nn.onDidChangeModelContent(oi=>{let dn=nn.getPosition();if(dn){let Rn=dn.lineNumber;clearTimeout(xr.current),xr.current=setTimeout(()=>{fn(_e.getLineContent(Rn),Rn)?xn(Rn):gn(Rn)?(xn(Rn),sn(Rn)):un()},100)}}),Mn=nn.onMouseDown(oi=>{var dn,Rn,Xn;if(oi.target.detail&&((Xn=(Rn=(dn=oi.target)==null?void 0:dn.element)==null?void 0:Rn.className)!=null&&Xn.includes("line-numbers"))){let hi=oi.target.position.lineNumber;if(fn(_e.getLineContent(hi),hi))return;gn(hi)?xn(hi):sn(hi)}}),Qn=oi=>{let dn={range:new Yt.Range(oi,1,oi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Fi.current=nn.deltaDecorations(Fi.current,[dn])},ln=()=>{Fi.current=nn.deltaDecorations(Fi.current,[])},ti=nn.onMouseMove(oi=>{var dn,Rn,Xn;if(ln(),oi.target.detail&&((Xn=(Rn=(dn=oi.target)==null?void 0:dn.element)==null?void 0:Rn.className)!=null&&Xn.includes("line-numbers"))){let hi=oi.target.position.lineNumber;if(fn(_e.getLineContent(hi),hi))return;Qn(hi)}}),vi=nn.onMouseLeave(()=>{ln()});return()=>{Ln.dispose(),Mn.dispose(),ti.dispose(),vi.dispose()}}},[ui.current,Jn,Gn,Ci,Gi,oe]),(0,zt.useEffect)(()=>{var Ke;(Ke=ui.current)!=null&&Ke.instance&&Gi&&ui.current.instance.setPosition({lineNumber:0,column:0})},[Ci]);function Sn(){let Ke=ui.current.instance;if(Ke){const nn=Ke.getSelection(),_e=ui.current.pastePos||{},en=new Yt.Range(_e.startLineNumber||nn.endLineNumber,_e.startColumn||nn.endColumn,_e.endLineNumber||nn.endLineNumber,_e.endColumn||nn.endColumn);setTimeout(()=>{Ke.executeEdits("",[{range:en,text:""}])},300)}}function ze(Ke){(window.navigator.platform.match("Mac")?Ke.metaKey:Ke.ctrlKey)&&Ke.keyCode==83&&(Ke.preventDefault(),ke())}const Le=()=>{if(Ze&&ui.current.instance){const Ke=ui.current.instance.getContentHeight();pn(Ke<Wt?Wt:Ke)}else pn(Wt)};function cn(Ke){var nn=document.createEvent("MouseEvents");nn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Ke.dispatchEvent(nn)}const wn=Ke=>{if(!vr.current)return;const{keyCode:nn,ctrlKey:_e,metaKey:en,target:un,type:sn}=Ke;return(sn==="paste"||(nn===67||nn===86)&&(en||_e))&&un.nodeName==="TEXTAREA"&&(Qe(),Ke.preventDefault()),!1};function Nn(Ke,nn){var _e=window.URL||window.webkitURL||window,en=new Blob([nn]),un=document.createElementNS("http://www.w3.org/1999/xhtml","a");un.href=_e.createObjectURL(en),un.download=Ke,cn(un)}(0,zt.useEffect)(()=>{Le()},[Le]),(0,zt.useEffect)(()=>{Yi.current&&!Jn&&Promise.all([Kt.e(8909),Kt.e(6894)]).then(Kt.bind(Kt,71448)).then(Ke=>{try{Yt=Ke,ui.current.instance=Yt.editor.create(Yi.current,{value:Vt,language:_t(oe),theme:Ue,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Ye);const nn=ui.current.instance;let un=[...ye.BH._menuItems].find(Ln=>Ln[0]._debugName=="EditorContext")[1],sn=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],xn=(Ln,Mn)=>{var Qn,ln;let ti=Ln._first;do Mn.includes((ln=(Qn=ti.element)==null?void 0:Qn.command)==null?void 0:ln.id)&&Ln._remove(ti);while(ti=ti.next)};if(In(nn,Yt),setTimeout(()=>{Le(),ui.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Nn(ci||"educoder.txt",nn.getValue())}})},500),ui.current.subscription=nn.onDidChangeModelContent(Ln=>{nr.current?clearTimeout(sr.current):(Le(),Pn(nn.getValue(),Ln)),sr.current=setTimeout(()=>{nr.current=!1},500)}),window.Monaco||Zt(Yt,_t(oe)),hn&&(xn(un,sn),Yi.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",wn),window.removeEventListener("paste",wn),window.addEventListener("keydown",wn),window.addEventListener("paste",wn)),window.Monaco=Yt,an&&nn.onDidBlurEditorWidget(()=>{an(nn.getValue())}),Bn&&nn.onDidFocusEditorText(()=>{Bn(nn.getValue())}),hn)try{nn.onDidPaste(Ln=>{const Mn=nn.getSelection(),Qn=ui.current.pastePos||{},ln=new Yt.Range(Qn.startLineNumber||Mn.endLineNumber,Qn.startColumn||Mn.endColumn,Qn.endLineNumber||Mn.endLineNumber,Qn.endColumn||Mn.endColumn);nn.executeEdits("",[{range:Ln.range,text:""}])})}catch(Ln){}let gn=qe();return qi&&typeof qi=="string"&&new xe(qi,nn,Yt),_n(!0),()=>{const Ln=ui.current.instance;Ln.dispose();const Mn=Ln.getModel();Mn&&Mn.dispose(),ui.current.subscription&&ui.current.subscription.dispose(),gn.unobserve(Yi.current)}}catch(nn){}})},[]),(0,zt.useEffect)(()=>{if(ui.current.instance&&Jn)return document.addEventListener("keydown",ze,!1),()=>{document.removeEventListener("keydown",ze)}},[ke,Jn]),(0,zt.useEffect)(()=>{let Ke=ui.current.instance;if(Ke&&Jn){let nn=_t(oe);Yt.editor.setModelLanguage(Ke.getModel(),nn)}},[oe,Jn]),(0,zt.useEffect)(()=>{ui.current.instance&&Jn&&Yt.editor.setTheme(Ue)},[Ue,Jn]),(0,zt.useEffect)(()=>{let Ke=ui.current.instance;ne.current=Ge,Ke&&Jn&&(Ke.updateOptions(Re({},Ge)),setTimeout(()=>{Ke.getModel().updateOptions(Re({},Ge))},200))},[JSON.stringify(Ge),Jn]),(0,zt.useEffect)(()=>{let Ke=ui.current.instance;Ke&&Jn&&Ke.layout()},[jt,Wt,Jn]);const[Hn,Pe]=(0,zt.useState)(Fe(jt)),[We,pn]=(0,zt.useState)(Fe(Wt)),On=tn(Re({},de),{width:Hn,height:We,position:"relative"});return zt.createElement("div",{className:"my-monaco-editor",ref:Yi,style:On},vn&&zt.createElement($t.CopyToClipboard,{text:Vt,onCopy:()=>Te.ZP.success("\u590D\u5236\u6210\u529F")},zt.createElement(me.Z,{title:"\u590D\u5236\u4EE3\u7801"},zt.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},zt.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Ut({width:St="100%",height:wt="100%",original:jt,modified:Wt,language:Vt,options:oe={}}){const de=(0,zt.useRef)(),[Ge,Ye]=(0,zt.useState)(null);function Ue(Ze){let hn;return de.current&&(hn=new gt.Z(Pn=>{for(let In of Pn)(In.target.offsetHeight>0||In.target.offsetWidth>0)&&Ze.layout()}),hn.observe(de.current)),hn}(0,zt.useEffect)(()=>(de.current&&Promise.all([Kt.e(8909),Kt.e(9404)]).then(Kt.bind(Kt,2550)).then(Ze=>{Yt=Ze;const hn=Yt.editor.createDiffEditor(de.current,tn(Re({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},oe),{wordWrap:!0}));Ye(hn);let Pn=Ue(hn);return()=>{hn.dispose();const In=hn.getModel();In&&In.dispose(),Pn.unobserve(de.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,zt.useEffect)(()=>{Ge&&Ge.setModel({original:Yt.editor.createModel(jt,Vt),modified:Yt.editor.createModel(Wt,Vt)})},[jt,Wt,Vt,Ge]);const an=Fe(St),vn=Fe(wt),ke={width:an,height:vn};return zt.createElement("div",{className:"my-diff-editor",ref:de,style:ke})}},15965:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{jL:function(){return kt},w9:function(){return De},QD:function(){return Pn},cQ:function(){return $t},op:function(){return Ue},O5:function(){return vr},_b:function(){return pi},t7:function(){return rt},Gi:function(){return Oe},YG:function(){return tn},qp:function(){return Lt},vr:function(){return Zn},qE:function(){return ke},Je:function(){return ft},wb:function(){return ye},cq:function(){return Yt},tp:function(){return mt}});var zt=Kt(59301),gt={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},Xt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6a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eWTDrTOebkDeL2+13e5nnPZfrh/UTdmVvOJb6fq6OsIzziK9H8lCI6RldtMcX46ZbDT9V//oJ6fAz4iBI7VMfYp5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",kt=({dataSource:Jn=[],img:_n,imgWidth:qe=346,title:Qe,sunTitle:we,bannerExtraContent:fn})=>zt.createElement("div",{className:gt.banner},zt.createElement("div",{className:gt.content},zt.createElement("aside",null,zt.createElement("p",null,zt.createElement("b",null,Qe),zt.createElement("span",null,we)),Jn.length>0&&zt.createElement("div",{className:gt.btns},Jn.map((Sn,ze)=>zt.createElement("div",{key:ze,onClick:Sn.click},Sn.name,Sn.sign?zt.createElement("img",{src:Xt,width:39}):null))),fn),_n&&zt.createElement("img",{style:{marginTop:33,marginRight:38},src:_n,width:qe}))),Bt={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},xt=Kt(92310),Ot=Kt.n(xt),Rt=Kt(89392),Lt=({dataSource:Jn=[],value:_n,onChange:qe,onTitleChange:Qe,className:we,title:fn,titleWidth:Sn=41,style:ze={},fontColor:Le="#6A7283",showCount:cn})=>{const[wn,Nn]=(0,zt.useState)(0),[Hn,Pe]=(0,zt.useState)(!1),We=(0,zt.useRef)(null),pn=(0,zt.useRef)(null);return(0,zt.useEffect)(()=>{var On;Jn.length!==0&&(((On=We==null?void 0:We.current)==null?void 0:On.clientHeight)>97?Nn(1):Nn(0)),Jn.length===0&&Nn(0),Pe(!1)},[Jn]),zt.createElement("div",{className:Ot()(Bt.row,we),style:ze},zt.createElement("div",{onClick:(0,Rt.throttle)(()=>Qe==null?void 0:Qe(),2e3),style:{width:Sn,marginTop:Hn?12:4},className:`${Bt.title} ${Qe?"current":""}`},fn),zt.createElement("div",{className:Hn?`${Bt.tagsWrap} ${Bt.tagsBorderWrap}`:Bt.tagsWrap},zt.createElement("div",{className:Bt.bar,ref:pn,style:wn>0?{height:wn===1?97:"auto",overflow:wn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},zt.createElement("div",{className:Bt.tag,ref:We},Jn==null?void 0:Jn.map(On=>zt.createElement("span",{onClick:()=>qe(On.id),key:On.id,style:{color:Le},className:_n===On.id?Bt.active:""},zt.createElement("span",{title:On.name,className:Bt.name},On.name),!!cn&&zt.createElement("span",{className:Bt.num},On.count))))),!!wn&&zt.createElement(zt.Fragment,null,wn===1?zt.createElement("div",{onClick:()=>{var On;Nn(2),((On=We==null?void 0:We.current)==null?void 0:On.clientHeight)>245?Pe(!0):Pe(!1)},className:Bt.action},"\u5C55\u5F00",zt.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):zt.createElement("div",{onClick:()=>{pn.current.scrollTop=0,Nn(1),Pe(!1)},className:Bt.action},"\u6536\u8D77",zt.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},At={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},mt=({dataSource:Jn=[],value:_n,onChange:qe,className:Qe,style:we={}})=>zt.createElement("div",{style:we,className:Ot()(At.tabs,Qe)},Jn.map(fn=>zt.createElement("span",{onClick:()=>qe(fn.id),className:_n===fn.id?At.active:"",key:fn.id},fn.name))),et={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},tt=Kt(92832),rt=({dataSource:Jn=[],value:_n="",onChange:qe,onInputChange:Qe=()=>{},className:we,style:fn={},placeholder:Sn,allowClear:ze=!1})=>{var Le;const[cn,wn]=(0,zt.useState)(""),[Nn,Hn]=(0,zt.useState)("");(0,zt.useEffect)(()=>{var pn;let On=_n;(pn=JSON.stringify(_n))!=null&&pn.includes("{")&&(wn(_n.id),On=_n.value||"");try{Hn(decodeURIComponent(On||""))}catch(Ke){Hn(decodeURIComponent(On||""))}},[_n]);const Pe=()=>{qe(encodeURIComponent(Nn),cn||null)},We=pn=>{pn!==cn&&(wn(pn),qe(encodeURIComponent(Nn),pn))};return zt.createElement("div",{className:Ot()(et.input,we),style:fn},!!Jn.length&&zt.createElement("div",{className:et.dropdown},zt.createElement("div",{className:et.text},(Le=Jn.find(pn=>pn.id===cn))==null?void 0:Le.name,zt.createElement("i",{className:"iconfont icon-zhankai4"}),zt.createElement("b",{className:et.b1}),zt.createElement("b",{className:et.b2})),zt.createElement("div",{className:et.menu},Jn.map((pn,On)=>zt.createElement("div",{key:On,onClick:()=>We(pn.id)},pn.name)))),zt.createElement(tt.default,{onPressEnter:Pe,value:Nn,onChange:pn=>{Hn(pn.target.value),Qe(encodeURIComponent(pn.target.value),cn||null)},bordered:!1,placeholder:Sn}),zt.createElement("i",{onClick:Pe,className:"iconfont icon-sousuo9 font14 pl10 current"}))},ut={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},ft=({value:Jn,onChange:_n,className:qe,total:Qe,pageSize:we,style:fn={}})=>{const Sn=Jn<2,ze=Jn>=Math.ceil(Qe/we);return Qe<=we?zt.createElement(zt.Fragment,null):zt.createElement("div",{className:Ot()(ut.quickPager,qe),style:fn},zt.createElement("div",{onClick:()=>{Sn||_n(Jn-1,"prev")},className:Sn?ut.disabled:""},"\u4E0A\u4E00\u9875"),zt.createElement("div",{onClick:()=>{ze||_n(Jn+1,"next")},className:ze?ut.disabled:""},"\u4E0B\u4E00\u9875"))},pt={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},Pt=Kt(71418),Dt=Kt(6848),Zt=Kt(13570),Ft=Kt(38446),qt=Kt(88230),te=Kt(96908),Gt=Kt(57177),ce=Kt(81378),ae=Kt(57816),ye=({className:Jn,dataSource:_n=[],col:qe=4,right:Qe,bottom:we=23,precision:fn=0,wrapWidth:Sn=1200,trackEventItems:ze,loading:Le})=>{const cn=Math.floor((Sn-(qe-1)*Qe)/qe);return zt.createElement(Pt.Z,{spinning:Le},zt.createElement("div",{className:Ot()(pt.list,Jn)},!!_n.length&&_n.map((wn,Nn)=>{const{name:Hn,id:Pe,identifier:We,power:pn,cover_image_id:On,pic:Ke}=wn;return zt.createElement("div",{className:pt.wrap,key:Pe,style:{width:cn,marginRight:(1+Nn)%qe===0?0:Qe+fn,marginBottom:we}},zt.createElement("a",{target:"_blank",href:`/shixuns/${We}/challenges`,className:pt.li,onClick:nn=>{nn.preventDefault(),ze&&(0,qt.L9)([ze]),pn&&(0,qt.xg)(`/shixuns/${We}/challenges`)}},zt.createElement("div",{className:pt.img},zt.createElement("img",{className:pt.cover,src:`${Ke}`}),wn.is_jupyter&&zt.createElement("img",{className:pt.sign,src:te}),wn.is_jupyter_lab&&zt.createElement("img",{className:pt.sign,src:Gt}),wn.is_unity_3d&&zt.createElement("img",{className:pt.sign,src:ce})),zt.createElement("div",{className:pt.name},zt.createElement(Dt.Z,{title:Hn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},zt.createElement("span",{className:pt.e},Hn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),zt.createElement("div",{className:pt.tags},zt.createElement(Dt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},zt.createElement("span",null,zt.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),zt.createElement("span",null,wn.challenges_count))),!!wn.myshixuns_count&&zt.createElement(Dt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},zt.createElement("span",null,zt.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),zt.createElement("span",null,wn.myshixuns_count))),zt.createElement(Dt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},zt.createElement("span",null,zt.createElement("span",null,wn.level))),zt.createElement("div",{className:pt.rate},zt.createElement(Zt.Z,{allowHalf:!0,disabled:!0,defaultValue:wn.score_info}),zt.createElement("span",null,"\xA0",wn.score_info?`${wn.score_info}\u5206`:"5\u5206")))),!pn&&zt.createElement("div",{className:pt.lockWrap},zt.createElement("img",{src:`${Ft.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),zt.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!_n.length&&zt.createElement(ae.Z,null)))},Te={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf"},me=Kt(73898),He=Kt(59301),$t=({className:Jn,dataSource:_n=[],col:qe=4,right:Qe,bottom:we=23,precision:fn=0,wrapWidth:Sn=1200,trackEventItems:ze,loading:Le,onRemove:cn=()=>{},isCurrent:wn=!0,showAlias:Nn=!1})=>{const Hn=Math.floor((Sn-(qe-1)*Qe)/qe),Pe=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return He.createElement(Pt.Z,{spinning:Le},He.createElement("div",{className:Ot()(Te.list,Jn)},!!(_n!=null&&_n.length)&&(_n==null?void 0:_n.map((We,pn)=>{var On;const{name:Ke,id:nn,identifier:_e,featured:en,school_name:un,image_url:sn,excellent:xn,is_plan:gn}=We;return He.createElement("div",{key:nn,className:Te.wrap,style:{width:Hn,marginRight:(1+pn)%qe===0?0:Qe+fn,marginBottom:we}},He.createElement("a",{className:Te.li,onClick:Ln=>{Ln.preventDefault(),Ln.stopPropagation(),ze&&(0,qt.L9)([ze]),(0,qt.xg)(`/paths/${_e}`)}},He.createElement("div",{className:Te.img},He.createElement("img",{className:Te.cover,src:`${sn}`}),wn&&(0,me.bg)()&&(We==null?void 0:We.studying)&&He.createElement("div",{className:`${Te.movebq} user-path-items`,onClick:Ln=>{Ln.stopPropagation(),cn(We)}},He.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),He.createElement("span",{className:"c-red"},"\u79FB\u9664")),(On=We==null?void 0:We.subject_tags)==null?void 0:On.map((Ln,Mn)=>{var Qn,ln;if(Mn===0){const vi=(Qn=Pe.find(oi=>oi.name==Ln))==null?void 0:Qn.swimg;return He.createElement("img",{className:Te.sign,src:vi,style:{left:"-4px"}})}const ti=(ln=Pe.find(vi=>vi.name==Ln))==null?void 0:ln.ptimg;return He.createElement("img",{className:Te.sign,src:ti,style:{left:`${48+52*(Mn-1)+2*Mn}px`}})}),He.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(We==null?void 0:We.excellent)&&He.createElement("div",{className:Te.bq},"\u5F00\u653E\u8BFE\u7A0B"))),He.createElement("div",{className:Te.name},He.createElement(Dt.Z,{title:Nn&&(We!=null&&We.excellent_alias_name)?He.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Ke}`,He.createElement("br",null),He.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${We==null?void 0:We.excellent_alias_name}`)):Ke},He.createElement("span",{className:Te.e},Nn&&(We==null?void 0:We.excellent_alias_name)||Ke))),He.createElement(Dt.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${un}`},He.createElement("div",{className:Te.unit},He.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),un)),He.createElement("div",{className:Te.tags},He.createElement("div",null,He.createElement(Dt.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},He.createElement("span",null,He.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),He.createElement("span",null,We.stages_count))),He.createElement(Dt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},He.createElement("span",null,He.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),He.createElement("span",null,We.members_count)))))))})),!_n.length&&He.createElement(ae.Z,null)))},ie={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},ue="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59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w1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",ge=Kt(59301),De=({className:Jn,dataSource:_n=[],col:qe=4,right:Qe,bottom:we=23,precision:fn=0,wrapWidth:Sn=1200,trackEventItems:ze,loading:Le,handleVery:cn=()=>{}})=>{const wn=Math.floor((Sn-(qe-1)*Qe)/qe);return ge.createElement(Pt.Z,{spinning:Le},ge.createElement("div",{className:Ot()(ie.list,Jn)},!!_n.length&&_n.map((Nn,Hn)=>{const{subject_identifier:Pe,id:We,identifier:pn,power:On}=Nn,Ke=Nn.is_public!=0&&Nn.is_public;return ge.createElement("div",{className:ie.wrap,key:We,style:{width:wn,marginRight:(1+Hn)%qe===0?0:Qe+fn,marginBottom:we}},ge.createElement("a",{className:ie.li,onClick:nn=>{nn.preventDefault(),cn(Nn==null?void 0:Nn.first_category_url)}},ge.createElement("div",{className:ie.top},ge.createElement(Dt.Z,{title:Nn.name},ge.createElement("div",{className:ie.name},Nn.name)),ge.createElement("img",{className:ie.img,src:Ft.Z.IMG_SERVER+"/images/"+Nn.avatar_url}),ge.createElement("div",{className:ie.text,title:Nn.creator},Nn.creator),Pe&&ge.createElement("div",{className:ie.btns},ge.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ge.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Ke&&ge.createElement("div",{className:ie.sign},"\u516C\u5F00")),ge.createElement("div",{className:ie.bottom},Nn.visits>0&&ge.createElement(Dt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},ge.createElement("span",null,ge.createElement("i",{className:"iconfont icon-liulanyan"}),ge.createElement("span",null,Nn.visits))),Nn.course_members_count>0&&ge.createElement(Dt.Z,{title:"\u6210\u5458",placement:"bottom"},ge.createElement("span",null,ge.createElement("i",{className:"iconfont icon-chengyuan"}),Nn.course_members_count)),Nn.tasks_count>0&&ge.createElement(Dt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},ge.createElement("span",null,ge.createElement("i",{className:"iconfont icon-zuoye"}),Nn.tasks_count)),Nn.is_end?ge.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):ge.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Nn.is_accessible&&ge.createElement("div",{className:ie.lockWrap},ge.createElement("img",{src:`${Ft.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ge.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!_n.length&&ge.createElement(ae.Z,null)))},Ne={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},$e=Kt(24459),tn=({dataSource:Jn=[],value:_n,onChange:qe,className:Qe,style:we={},tabBarExtraContent:fn})=>zt.createElement("div",{className:Ot()(Ne.tabs,Qe),style:we},zt.createElement("div",{className:Ne.tabsWrap},Jn.map((Sn,ze)=>!(Sn!=null&&Sn.hide)&&zt.createElement("aside",{className:Ne.tab,onClick:()=>{qe(Sn.id),Sn.link&&$e.history.push(Sn.link)},key:ze},zt.createElement("div",{className:_n===Sn.id?Ne.active:""},Sn.name),(Sn==null?void 0:Sn.resetCount)==null&&(Sn==null?void 0:Sn.total)!==void 0&&zt.createElement("span",null,"\uFF08",Sn==null?void 0:Sn.total,"\uFF09"),(Sn==null?void 0:Sn.resetCount)!==void 0&&(Sn==null?void 0:Sn.total)!==void 0&&zt.createElement(Dt.Z,{title:(Sn==null?void 0:Sn.tip)!=null?Sn==null?void 0:Sn.tip:""},zt.createElement("span",{style:{color:"#9096A3"}},"\uFF08",zt.createElement("span",{style:{color:"#000"}},Sn==null?void 0:Sn.resetCount),"/",zt.createElement("span",null,Sn==null?void 0:Sn.total),"\uFF09"))))),zt.createElement("div",{className:Ne.tabBar},fn)),Oe=({className:Jn,style:_n={},children:qe})=>zt.createElement("div",{className:Ot()(Jn),style:_n},qe),Fe={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},le=Kt(38854),Tt=Kt(20834);const bt=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Yt=({sortValue:Jn,dropValue:_n,className:qe,onSort:Qe,onDrop:we,dataSource:fn=bt})=>{var Sn;return zt.createElement("div",{className:Ot()(Fe.orderWrap,qe)},zt.createElement(le.Z,{dropdownRender:()=>zt.createElement(Tt.default,null,fn.map((ze,Le)=>zt.createElement(Tt.default.Item,{key:Le,onClick:()=>we(ze.id)},ze.name)))},zt.createElement("span",{className:Fe.orderTextWrap},(Sn=fn.find(ze=>_n===ze.id))==null?void 0:Sn.name)),zt.createElement("span",{className:Fe.orderIconWrap},zt.createElement("span",{className:Fe.orderAsc},zt.createElement("i",{className:Jn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Fe.cursorPointer} ${Fe.active}`:`iconfont icon-sanjiaoxing-up font12 ${Fe.cursorPointer}`,onClick:()=>Qe(Jn==="asc"?"desc":"asc")})),zt.createElement("span",{className:Fe.orderDesc},zt.createElement("i",{className:Jn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Fe.cursorPointer} ${Fe.active}`:`iconfont icon-sanjiaoxing-down font12 ${Fe.cursorPointer}`,onClick:()=>Qe(Jn==="asc"?"desc":"asc")}))))},Mt={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},Ut=Kt(3113),St=Object.defineProperty,wt=Object.getOwnPropertySymbols,jt=Object.prototype.hasOwnProperty,Wt=Object.prototype.propertyIsEnumerable,Vt=(Jn,_n,qe)=>_n in Jn?St(Jn,_n,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Jn[_n]=qe,oe=(Jn,_n)=>{for(var qe in _n||(_n={}))jt.call(_n,qe)&&Vt(Jn,qe,_n[qe]);if(wt)for(var qe of wt(_n))Wt.call(_n,qe)&&Vt(Jn,qe,_n[qe]);return Jn},de=(Jn,_n)=>{var qe={};for(var Qe in Jn)jt.call(Jn,Qe)&&_n.indexOf(Qe)<0&&(qe[Qe]=Jn[Qe]);if(Jn!=null&&wt)for(var Qe of wt(Jn))_n.indexOf(Qe)<0&&Wt.call(Jn,Qe)&&(qe[Qe]=Jn[Qe]);return qe},Ge=(Jn,_n,qe)=>new Promise((Qe,we)=>{var fn=Le=>{try{ze(qe.next(Le))}catch(cn){we(cn)}},Sn=Le=>{try{ze(qe.throw(Le))}catch(cn){we(cn)}},ze=Le=>Le.done?Qe(Le.value):Promise.resolve(Le.value).then(fn,Sn);ze((qe=qe.apply(Jn,_n)).next())}),Ue=Jn=>{var _n=Jn,{className:qe,style:Qe,children:we,loading:fn=!1,openLoading:Sn,onClick:ze=()=>{},size:Le="middle",shape:cn="round"}=_n,wn=de(_n,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Nn,Hn]=(0,zt.useState)(!1);return zt.createElement(Ut.ZP,oe({onClick:(0,Rt.throttle)(Pe=>Ge(void 0,null,function*(){Sn&&Hn(!0);try{yield ze(Pe)}catch(We){console.log("error",We)}Sn&&Hn(!1)}),2e3,{leading:!0,trailing:!1}),className:Ot()(Mt.btn,Mt[`${Le}-${cn}`],qe),style:Qe,size:Le,shape:cn,loading:Nn||fn},wn),we)},an={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},ke=({className:Jn,style:_n,children:qe=null,onClick:Qe,title:we})=>zt.createElement("div",{className:Ot()(an.head,Jn),style:_n},zt.createElement("span",{className:"primary-hover",onClick:Qe},zt.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),zt.createElement("b",{title:we},we),zt.createElement("div",{className:an.node},qe)),Ze={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},Pn=({confirmShow:Jn=!0,confirmTitle:_n,confirmClick:qe,cancelShow:Qe=!0,cancelTitle:we,cancelClick:fn,className:Sn,style:ze,confirmLoading:Le=!1})=>zt.createElement("div",{className:Ot()(Ze.btns,Sn),style:ze},Jn&&zt.createElement(Ut.ZP,{loading:Le,onClick:qe,type:"primary",className:Ze.confirm},_n),Qe&&zt.createElement(Ut.ZP,{onClick:fn,className:Ze.cancel},we)),In={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},Zn=({className:Jn,style:_n={},LeftContent:qe,children:Qe,RightContent:we})=>zt.createElement("div",{className:Ot()(In.fixedBottom,Jn),style:_n},zt.createElement("div",{className:In.wrap},zt.createElement("div",{className:In.left},qe),zt.createElement("div",{className:In.center},Qe),zt.createElement("div",{className:In.right},we))),Gn={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},pi=({className:Jn,style:_n={},dataSource:qe=[]})=>zt.createElement("div",{className:Ot()(Gn.crumbs,Jn),style:_n},qe.map((Qe,we)=>we<qe.length-1?zt.createElement(zt.Fragment,{key:we},Qe.path||Qe.onClick?zt.createElement("span",{className:Gn.hover,onClick:Qe!=null&&Qe.onClick?Qe.onClick:()=>$e.history.push(Qe.path)},Qe.name):zt.createElement("span",null,Qe.name),zt.createElement("span",null,"\xA0",">","\xA0")):zt.createElement("span",{key:we,style:{color:"#5F6368"}},Qe.name))),xi=Kt(31797),Ci=Object.defineProperty,Gi=Object.defineProperties,qi=Object.getOwnPropertyDescriptors,bi=Object.getOwnPropertySymbols,Yi=Object.prototype.hasOwnProperty,ui=Object.prototype.propertyIsEnumerable,ne=(Jn,_n,qe)=>_n in Jn?Ci(Jn,_n,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Jn[_n]=qe,Wi=(Jn,_n)=>{for(var qe in _n||(_n={}))Yi.call(_n,qe)&&ne(Jn,qe,_n[qe]);if(bi)for(var qe of bi(_n))ui.call(_n,qe)&&ne(Jn,qe,_n[qe]);return Jn},Fi=(Jn,_n)=>Gi(Jn,qi(_n)),nr=(Jn,_n)=>{var qe={};for(var Qe in Jn)Yi.call(Jn,Qe)&&_n.indexOf(Qe)<0&&(qe[Qe]=Jn[Qe]);if(Jn!=null&&bi)for(var Qe of bi(Jn))_n.indexOf(Qe)<0&&ui.call(Jn,Qe)&&(qe[Qe]=Jn[Qe]);return qe};const{Countdown:sr}=xi.default;var vr=Jn=>{var _n=Jn,{onChange:qe}=_n,Qe=nr(_n,["onChange"]);const[we,fn]=(0,zt.useState)(null);(0,zt.useEffect)(()=>{typeof we=="number"&&we>=0&&qe(we)},[we]);const Sn=ze=>{const Le=Math.floor(ze/1e3);fn(Le)};return zt.createElement(sr,Fi(Wi({},Qe),{onChange:Sn}))}},50505:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return gt}});var zt=Kt(59301);function gt(Xt,Qt){const kt=(0,zt.useRef)();(0,zt.useEffect)(()=>{kt.current=Xt}),(0,zt.useEffect)(()=>{function Bt(){kt.current()}if(Qt!==null){let xt=setInterval(Bt,Qt);return()=>clearInterval(xt)}},[Qt])}},59674:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{$J:function(){return Xt},JZ:function(){return kt},bN:function(){return xt},jP:function(){return Bt},rO:function(){return Qt}});var zt=Kt(7660),gt=(Ot,Rt,Ct)=>new Promise((Lt,At)=>{var It=tt=>{try{et(Ct.next(tt))}catch(st){At(st)}},mt=tt=>{try{et(Ct.throw(tt))}catch(st){At(st)}},et=tt=>tt.done?Lt(tt.value):Promise.resolve(tt.value).then(It,mt);et((Ct=Ct.apply(Ot,Rt)).next())});function Xt(Ot){return(0,zt.U2)(`libraries/${Ot}.json`)}function Qt(){return(0,zt.U2)("library_tags.json")}function kt(Ot){return gt(this,null,function*(){return(yield(0,zt.IV)(`attachments/${Ot}.json`)).status===0})}function Bt(Ot){return(0,zt.v_)("libraries.json",Ot)}function xt(Ot,Rt){return(0,zt.gz)(`libraries/${Ot}.json`,Rt)}},843:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return Zt}});var zt=Kt(59301),gt=Kt(24459),Xt=Kt(92832),Qt=Kt(78241),kt=Kt(8591),Bt=Kt(43418),xt=Kt(93948),Ot=Kt(24905),Rt=Kt(12563),Ct={modal:"modal___EKlPQ",uploadWrap:"uploadWrap___YGxav",upload:"upload___ouqG9",uploadLink:"uploadLink___nuif6",fileProgress:"fileProgress___tf4qy",fileCancel:"fileCancel___Bh3Wh",videoName:"videoName___Ra0NM",contentItem:"contentItem___zMdIq","tagsList-content":"tagsList-content___sDVph"},Lt=Kt(60918),At=Kt(66701),It=Kt(73898),mt=Object.defineProperty,et=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,rt=(Ft,qt,te)=>qt in Ft?mt(Ft,qt,{enumerable:!0,configurable:!0,writable:!0,value:te}):Ft[qt]=te,ut=(Ft,qt)=>{for(var te in qt||(qt={}))tt.call(qt,te)&&rt(Ft,te,qt[te]);if(et)for(var te of et(qt))st.call(qt,te)&&rt(Ft,te,qt[te]);return Ft},ct=(Ft,qt,te)=>new Promise((Gt,ce)=>{var ae=Te=>{try{ye(te.next(Te))}catch(me){ce(me)}},xe=Te=>{try{ye(te.throw(Te))}catch(me){ce(me)}},ye=Te=>Te.done?Gt(Te.value):Promise.resolve(Te.value).then(ae,xe);ye((te=te.apply(Ft,qt)).next())});const{TextArea:ft}=Xt.default,pt=1024,Pt=(Ft,qt)=>{var te;const{uploadInfo:Gt={}}=qt.payload||{};switch(qt.type){case"addVideo":return{videoList:[...Ft.videoList,{name:Gt.file.name,size:Gt.file.size,type:Gt.file.type,fileHash:Gt.fileHash,state:Gt.state,videoId:Gt.videoId,loaded:Gt.loaded||0,title:""}]};case"removeVideo":return{videoList:Ft.videoList.filter(ce=>ce.name!==qt.payload.name)};case"removeAll":return{videoList:[]};case"updateProgress":return{videoList:Ft.videoList.map(ce=>ce.name===qt.payload.uploadInfo.file.name?ut(ut({},ce),{loaded:qt.payload.progressPercent,videoId:Gt.videoId,fileHash:Gt.fileHash}):ce)};case"updateTitle":return{videoList:(te=Ft.videoList)==null?void 0:te.map(ce=>ce.name===qt.payload.item.name?ut(ut({},ce),{title:qt.payload.title}):ce)};default:return{videoList:[]}}},Dt=({user:Ft,globalSetting:qt,loading:te,dispatch:Gt,visible:ce,editData:ae,onCancel:xe=()=>{},onOk:ye=()=>{},queryParams:Te={}})=>{var me;const He=(0,gt.useParams)(),[fe]=Qt.default.useForm(),[$t,ie]=(0,zt.useReducer)(Pt,{videoList:[]}),[ue,ge]=(0,zt.useState)(!1),he=(0,zt.useRef)(),[De,Ne]=(0,zt.useState)(),[$e,Re]=(0,zt.useState)(!1),[tn,Me]=(0,zt.useState)(!1),Oe=(0,It.Ny)()?3:1;(0,zt.useEffect)(()=>{var Vt,oe,de;ce&&ae&&(Re(ae.is_link),Ne(ae.link),!ae.is_link&&ie({type:"addVideo",payload:{uploadInfo:{file:{name:ae.filename||""},videoId:ae.video_id,loaded:100}}}),wt(((Vt=ae==null?void 0:ae.tags)==null?void 0:Vt.map(Ge=>Ge==null?void 0:Ge.name))||[]),fe.setFieldsValue({name:ae.name,description:ae.description,attachment_id:(oe=ae==null?void 0:ae.video)==null?void 0:oe.attachment_id,allow_skip:(de=ae==null?void 0:ae.video_item)==null?void 0:de.allow_skip}))},[ae,ce]);const Fe=()=>{const Vt=document.getElementById("fileUpload");Vt.value=""},le=Vt=>{var oe;Re(!1);const de=Vt.target.files[0];if(!de){Fe();return}const Ge=de.name.toLowerCase();if(Ge&&Ge.indexOf(".avi")==-1&&Ge.indexOf(".flv")==-1&&Ge.indexOf(".f4v")==-1&&Ge.indexOf(".m4v")==-1&&Ge.indexOf(".mov")==-1&&Ge.indexOf(".mp4")==-1&&Ge.indexOf(".rmvb")==-1&&Ge.indexOf(".swf")==-1&&Ge.indexOf(".webm")==-1&&Ge.indexOf(".wmv")==-1){kt.ZP.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),Fe();return}if(de.size>pt*Oe*1024*1024){kt.ZP.info(`\u89C6\u9891\u5927\u5C0F\u8D85\u8FC7${Oe}G`),Fe();return}if((oe=$t.videoList)!=null&&oe.find(Ye=>Ye.name===de.name)){kt.ZP.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),Fe();return}bt(de)},Tt=(Vt,oe)=>{Bt.default.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:zt.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",oe?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:()=>{Fe(),ie({type:"removeVideo",payload:{name:Vt}})}})},bt=Vt=>{var oe,de='{"Vod":{}}';if(ge(!0),he.current){he.current.addFile(Vt,null,null,null,de);return}(0,Lt.o)((oe=Ft.userInfo)==null?void 0:oe.login,"",{create:!he,addFileSuccess:Ge=>{ie({type:"addVideo",payload:{uploadInfo:Ge}})},onUploadProgress:(Ge,Ye,Ue)=>{const an=Math.ceil(Ue*100);ie({type:"updateProgress",payload:{uploadInfo:Ge,progressPercent:an}}),Fe()},onUploadFailed:Ge=>{kt.ZP.info("\u89C6\u9891\u4E91\u670D\u52A1\u51FA\u73B0\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\u3002")},onUploadEnd:Ge=>{ge(!1)},onUploadSucceed:Ge=>{ge(!1)},onUploadError:Ge=>{ge(!1)},gotUploader:Ge=>{Ge.addFile(Vt,null,null,null,de),he.current=Ge}})},_t=()=>ct(void 0,null,function*(){var Vt,oe;if(yield fe.validateFields(),!$e&&!((Vt=$t.videoList)!=null&&Vt.length)||$e&&!De){kt.ZP.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891\u6216\u8005\u6DFB\u52A0\u5916\u94FE");return}Me(!0);const de=$e?{link:De}:{video_id:(oe=$t.videoList)==null?void 0:oe[0].videoId},Ge=yield ye(ut(ut(ut({},de),Te),{name:fe.getFieldValue("name"),attachment_id:fe.getFieldValue("attachment_id"),description:fe.getFieldValue("description"),tags:fe.getFieldValue("tag"),allow_skip:fe.getFieldValue("allow_skip")}));Me(!1),Ge.id&&Yt()}),Yt=()=>{fe.resetFields(),ie({type:"removeAll"}),Ne(null),wt([]),Re(null)},Mt=()=>{xe(),Yt()},Ut=()=>{var Vt,oe,de,Ge,Ye,Ue,an,vn,ke,Ze,hn,Pn;return zt.createElement(zt.Fragment,null,!$e&&!!((Vt=$t.videoList)!=null&&Vt.length)&&zt.createElement("div",{className:Ct.fileProgress},((de=(oe=$t.videoList)==null?void 0:oe[0])==null?void 0:de.loaded)==100?zt.createElement("div",{className:`${Ct.videoName} font14`},(Ye=(Ge=$t.videoList)==null?void 0:Ge[0])==null?void 0:Ye.name):zt.createElement(xt.Z,{style:{width:"80%"},percent:(an=(Ue=$t.videoList)==null?void 0:Ue[0])==null?void 0:an.loaded,status:((ke=(vn=$t.videoList)==null?void 0:vn[0])==null?void 0:ke.loaded)==100?"normal":"active"}),zt.createElement("div",{className:Ct.fileCancel,onClick:()=>{var In,Bn,Zn,Gn;return Tt((Bn=(In=$t.videoList)==null?void 0:In[0])==null?void 0:Bn.name,((Gn=(Zn=$t.videoList)==null?void 0:Zn[0])==null?void 0:Gn.loaded)==100)}},((hn=(Ze=$t.videoList)==null?void 0:Ze[0])==null?void 0:hn.loaded)===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20")),!((Pn=$t.videoList)!=null&&Pn.length)&&zt.createElement("div",{className:Ct.uploadWrap},zt.createElement("label",{htmlFor:"fileUpload",className:Ct.upload},zt.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4E0A\u4F20\u89C6\u9891"),zt.createElement("label",{className:`${Ct.upload} ${Ct.uploadLink}`,onClick:()=>Re(!0)},zt.createElement("i",{className:"iconfont icon-lianjie1 mr5"}),"\u6DFB\u52A0\u5916\u94FE")),$e&&zt.createElement(Xt.default,{className:"mt5",placeholder:"\u8BF7\u8F93\u5165\u89C6\u9891\u94FE\u63A5",value:De,onChange:In=>Ne(In.target.value)}))},[St,wt]=(0,zt.useState)([]),jt=Vt=>{if(Vt.key=="Enter"){const oe=fe.getFieldValue("tag");if(fe.setFieldsValue({tag:""}),!oe){kt.ZP.info("\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A");return}if(St.filter(de=>de===oe).length>0){kt.ZP.info("\u5DF2\u6709\u76F8\u540C\u540D\u79F0\u6807\u7B7E");return}St.push(oe),wt([...St])}},Wt=(Vt,oe)=>{Vt.preventDefault(),wt([...St.filter(de=>de!=oe)])};return zt.createElement(Bt.default,{centered:!0,maskClosable:!1,destroyOnClose:!0,title:ae?"\u7F16\u8F91\u89C6\u9891\u9879\u76EE":"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE",width:740,className:Ct.modal,open:ce,confirmLoading:tn,onOk:_t,onCancel:Mt},zt.createElement(Qt.default,{form:fe},zt.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:le,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}),zt.createElement(Qt.default.Item,{label:"\u9879\u76EE\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"}]},zt.createElement(Xt.default,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u9879\u76EE\u540D\u79F0"})),zt.createElement(Qt.default.Item,{label:"\u9879\u76EE\u5185\u5BB9",name:"content",className:Ct.contentItem},Ut()),zt.createElement(Qt.default.Item,{name:"attachment_id",label:"\u4E0A\u4F20\u5C01\u9762\u56FE:"},zt.createElement(At.Z,{getFileProgress:Vt=>{if(Vt.file.status==="uploading"){Me(!0);return}Vt.file.status==="done"&&Me(!1)}})),zt.createElement(Qt.default.Item,{label:"\u9879\u76EE\u7B80\u4ECB",name:"description",className:"ml8"},zt.createElement(ft,{rows:5,maxLength:800,placeholder:"\u8BF7\u8F93\u5165\u672C\u89C6\u9891\u7B80\u4ECB\uFF0C\u6700\u591A\u4E0D\u8D85\u8FC7800\u5B57"})),zt.createElement(Qt.default.Item,{label:"\u77E5\u8BC6\u6807\u7B7E",name:"tag",className:"ml8"},zt.createElement(Xt.default,{onKeyUp:jt})),zt.createElement(Qt.default.Item,{label:"\u64AD\u653E\u8BBE\u7F6E",name:"allow_skip",valuePropName:"checked",className:"ml8",initialValue:!0},zt.createElement(Ot.default,null,"\u5141\u8BB8\u5FEB\u8FDB\u64AD\u653E")),zt.createElement("div",{className:Ct["tagsList-content"]},St.map((Vt,oe)=>zt.createElement(Rt.default,{key:oe+Vt,closable:!0,onClose:de=>{Wt(de,Vt)}},Vt))),zt.createElement("div",{className:"c-grey-999"},zt.createElement("div",null,"\u6CE8\u610F\uFF1A"),zt.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",zt.createElement(gt.Link,{to:`/users/${(me=Ft.userInfo)==null?void 0:me.login}/videos/protocol`,target:"_blank",className:Ct.colorBlue},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),zt.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7",Oe,"G\uFF1B"),zt.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"),zt.createElement("div",null,"4\u3001\u5982\u679C\u89C6\u9891\u6765\u81EA\u4E8E\u5916\u90E8\u94FE\u63A5\uFF0C\u672C\u7F51\u7AD9\u4E0D\u63D0\u4F9B\u64AD\u653E\u9875\u9762\uFF0C\u65E0\u6CD5\u63D0\u4F9B\u7EDF\u8BA1\u6570\u636E\u3002"))))};var Zt=(0,gt.connect)(({user:Ft,loading:qt,globalSetting:te})=>({user:Ft,globalSetting:te,loading:qt}))(Dt)},60918:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{o:function(){return Rt}});var zt=Kt(7660),gt=Kt(93125),Xt=Kt.n(gt);let Qt="",kt,Bt="";function xt(Ct){Ot(Ct)}function Ot(Ct){kt=new(Xt()).Vod({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:0x6803cbd867207,enableUploadProgress:!1,addFileSuccess:function(Lt){console.log("addFileSuccess: "+Lt.file.name),Ct.addFileSuccess&&Ct.addFileSuccess(Lt),kt.startUpload()},onUploadstarted:function(Lt){const At=Lt.file.name;if(Lt.videoId){var mt=`/api/users/${Qt}/video_auths.json`;(0,zt.ZP)(mt,{method:"put",body:{video_id:Lt.videoId,title:At,file_name:At,virtual_classroom_id:Bt}}).then(et=>{if(et.status==-1){Ct.onUploadError&&Ct.onUploadError(Lt);return}const tt=et.data;var st=tt.UploadAuth,rt=tt.UploadAddress,ut=tt.VideoId;kt.setUploadAuthAndAddress(Lt,st,rt)}).catch(et=>{kt.deleteFile(kt._curIndex),kt.nextUpload(),console.log(et)})}else{var It=`/api/users/${Qt}/video_auths.json`;const et="";(0,zt.ZP)(It,{method:"Post",body:{title:et+At,file_name:et+At,virtual_classroom_id:Bt}}).then(tt=>{if(tt){const ct=tt.data;var st=ct.UploadAuth,rt=ct.UploadAddress,ut=ct.VideoId;kt.setUploadAuthAndAddress(Lt,st,rt,ut)}}).catch(tt=>{kt.deleteFile(kt._curIndex),kt.nextUpload(),console.log(tt)}),console.log("\u6587\u4EF6\u5F00\u59CB\u4E0A\u4F20...")}},onUploadSucceed:function(Lt){Ct.onUploadSucceed&&Ct.onUploadSucceed(Lt),console.log("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F!")},onUploadFailed:function(Lt,At,It){Ct.onUploadFailed&&Ct.onUploadFailed(Lt),console.log("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25!")},onUploadCanceled:function(Lt,At,It){console.log("\u6587\u4EF6\u4E0A\u4F20\u5DF2\u6682\u505C!")},onUploadProgress:function(Lt,At,It){Ct.onUploadProgress&&Ct.onUploadProgress(Lt,At,It);var mt=Math.ceil(It*100);console.log("\u6587\u4EF6\u4E0A\u4F20\u4E2D...")},onUploadTokenExpired:function(Lt){console.log("\u6587\u4EF6\u4E0A\u4F20\u8D85\u65F6!");var At=`/api/users/${Qt}/video_auths.json`;(0,zt.ZP)(At,{method:"put",body:{video_id:Lt.videoId}}).then(It=>{var et=It.data.UploadAuth;kt.resumeUploadWithAuth(et)}).catch(It=>{console.log(It)})},onUploadEnd:function(Lt){Ct.onUploadEnd&&Ct.onUploadEnd(Lt),console.log("onUploadEnd: uploaded all the files")}}),Ct.gotUploader&&Ct.gotUploader(kt)}function Rt(Ct,Lt,At){Ct&&(Qt=Ct),Lt&&(Bt=Lt),xt(At)}},85187:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{AL:function(){return ft},Iy:function(){return Lt},Qv:function(){return mt},ez:function(){return ct},jb:function(){return At}});var zt=Kt(32834),gt=Kt.n(zt),Xt=Kt(11690),Qt=Kt.n(Xt);let kt=1;function Bt(Ft,qt){const te=Ft.match(/^(\s+)(?:```)/);if(te===null)return qt;const Gt=te[1];return qt.split(`
|
|
|
`).map(ce=>{const ae=ce.match(/^\s+/);if(ae===null)return ce;const[xe]=ae;return xe.length>=Gt.length?ce.slice(Gt.length):ce}).join(`
|
|
|
`)}let xt=[],Ot=["<ul>"];const Rt=new(gt()).Renderer,Ct=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Lt(){xt.length=0,Ot=["<ul>"]}const At={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function It(Ft,qt,te,Gt){if(qt>=Ft.length||Ft[qt].level<=te)return qt;var ce=Ft[qt];Gt.push("<li><a href='#"+kt+ce.anchor+"'>"+ce.text+"</a>"),qt++;var ae=[];return qt=It(Ft,qt,ce.level,ae),ae.length>0&&(Gt.push("<ul>"),ae.forEach(function(xe){Gt.push(xe)}),Gt.push("</ul>")),Gt.push("</li>"),qt=It(Ft,qt,te,Gt),qt}function mt(){return It(xt,0,0,Ot),Ot.push("</ul>"),Ot.join("")}const et={heading(Ft){const qt=Ct.exec(Ft);if(kt+=1,qt)return{type:"heading",raw:qt[0],depth:qt[1].length,text:qt[2]}},fences(Ft){const qt=this.rules.block.fences.exec(Ft);if(qt){const te=qt[0];let Gt=Bt(te,qt[3]||"");const ce=qt[2]?qt[2].trim():qt[2];if(["latex","katex","math"].indexOf(ce)>=0){const ae=rt(),xe=Gt;Gt=ae,ut[ae]={type:"block",expression:xe}}return{type:"code",raw:te,lang:ce,text:Gt}}}},tt=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let st=0;const rt=()=>`__special_katext_id_${st++}__`;let ut={};function ct(){return ut}function ft(){st=0,ut={}}function pt(Ft){return Ft=Ft.replace(tt,(qt,te)=>{const Gt=rt();return ut[Gt]={type:"inline",expression:te},Gt}),Ft}const Pt=Rt.listitem;Rt.listitem=function(Ft){return Pt(pt(Ft))};const Dt=Rt.paragraph;Rt.paragraph=function(Ft){return Dt(pt(Ft))};const Zt=Rt.tablecell;Rt.tablecell=function(Ft,qt){return Zt(pt(Ft),qt)},Rt.code=function(Ft,qt,te){const Gt=(qt||"").match(/\S*/)[0];return Gt?["latex","katex","math"].indexOf(Gt)>=0?`<p class='editormd-tex'>${Ft}</p>`:`<pre class="prettyprint linenums"><code class="language-${qt}">${te?Ft:(0,Xt.escape)(Ft,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(te?Ft:(0,Xt.escape)(Ft,!0))+"</code></pre>"},Rt.heading=function(Ft,qt,te){let Gt=this.options.headerPrefix+te.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return xt.push({anchor:Gt,level:qt,text:Ft}),"<h"+qt+' id="'+kt+Gt+'">'+Ft+"</h"+qt+">"},gt().setOptions({silent:!0,gfm:!0,pedantic:!1}),gt().use({tokenizer:et,renderer:Rt}),Cn.ZP=gt()},82309:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{rX:function(){return ft},pW:function(){return pt},gy:function(){return Pt},xY:function(){return ct},O5:function(){return ut},tJ:function(){return mt},o1:function(){return et},Rd:function(){return rt}});var zt=Kt(24459),gt=Kt(43418),Xt=Kt(28103),Qt=Kt(8591),kt=Kt(73898),Bt=Kt(88230),xt=Kt(87169),Ot=Kt(25510),Rt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UIIBgBAgeR0AwAAjEJgAQAZCCwAIAOBBQBkILAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMxfhbOedOt7a/nKUmcrbT2aIUxned8Xaa/DhMbsi2dppk8nO3ovG27XnbemTbDmE4wgIAQhBYAEAGAgsAyEBgAQAZCCwAIAOBBQBk5DGsIaedO3dWVFRY3cpVq1atXLnS4JuNj3WwgvF7tCbHZFhxe9u2dZp8Z04uHGlhxbAbKz44F/6KB2I2sCoqKqqqqqzuajgctn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65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",Ct=Kt.p+"static/newqrcode.a8740efb.png",Lt=Kt(32637),At=Kt(59301),It=(Dt,Zt,Ft)=>new Promise((qt,te)=>{var Gt=xe=>{try{ae(Ft.next(xe))}catch(ye){te(ye)}},ce=xe=>{try{ae(Ft.throw(xe))}catch(ye){te(ye)}},ae=xe=>xe.done?qt(xe.value):Promise.resolve(xe.value).then(Gt,ce);ae((Ft=Ft.apply(Dt,Zt)).next())});const mt=(Dt,Zt=!1,Ft=!1,qt="",te=!1)=>!!(et(Dt)&&tt(Dt,Zt,Ft,qt,te)),et=Dt=>(0,kt.bg)()?!0:(Dt({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),tt=(Dt,Zt=!1,Ft=!0,qt="",te=!1)=>{var Gt;const{user:ce}=(0,zt.getDvaApp)()._store.getState();return(Gt=ce.userInfo)!=null&&Gt.profile_completed?!0:(Ft?Dt({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:qt,isCurrentPage:te}}):gt.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,Bt.xg)("/account/profile/edit"),st()}}),!1)},st=()=>{gt.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()}})},rt=()=>{gt.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:At.createElement("div",{style:{textAlign:"center"}},At.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"),At.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:Lt}),At.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},ut=()=>{var Dt;const{user:Zt}=(0,zt.getDvaApp)()._store.getState();return(Dt=Zt.userInfo)!=null&&Dt.professional_certification?!0:(gt.default.confirm({title:"\u63D0\u793A",centered:!0,content:At.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,Bt.xg)("/account/certification")}}),!1)},ct=()=>(0,kt.V9)()?!0:(gt.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:At.createElement("div",{className:"tc",style:{marginLeft:-38}},At.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),At.createElement("img",{src:Ct,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),ft=(Dt,Zt)=>Dt?!0:(gt.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:At.createElement("div",null,At.createElement("p",null,Zt||"\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"),At.createElement("div",{style:{marginLeft:"110px"}},At.createElement("img",{src:Rt,width:200}),At.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,Bt.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),pt=Dt=>{gt.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:At.createElement("div",null,At.createElement("div",null,At.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"),At.createElement(Xt.Z,null),At.createElement("p",{style:{color:"#666666",fontSize:12}}," ",At.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 ",At.createElement("a",null,Dt),"\u5929\u3002"),At.createElement("p",{style:{color:"#666666",fontSize:12}}," ",At.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")),At.createElement("div",{style:{textAlign:"center",marginTop:30}},At.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Ot,alt:"\u4E8C\u7EF4\u7801",width:160})))})},Pt=(Dt,Zt="")=>{const{shixunsDetail:{detail:Ft}}=(0,zt.getDvaApp)()._store.getState();if((Ft==null?void 0:Ft.public)===2||(Ft==null?void 0:Ft.public)===1||(Ft==null?void 0:Ft.shixun_status)===3){let qt="";return(Ft==null?void 0:Ft.public)===2&&(qt="\u5DF2\u516C\u5F00"),(Ft==null?void 0:Ft.public)===1&&(qt="\u5F85\u5BA1\u6838"),(Ft==null?void 0:Ft.shixun_status)===3&&(qt="\u5DF2\u5173\u95ED"),gt.default.info({centered:!0,icon:At.createElement(xt.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:At.createElement("div",{className:"tc",style:{marginLeft:-38}},At.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},At.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",qt,"\uFF0C",Zt,"\u3002"),At.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),At.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Ot,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(Ft==null?void 0:Ft.shixun_status)===2?(gt.default.confirm({centered:!0,icon:At.createElement(xt.Z,null),title:"\u63D0\u793A",content:At.createElement("div",null,At.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",Zt,"\u3002"),At.createElement("br",null),At.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:()=>{gt.default.confirm({width:440,centered:!0,icon:At.createElement(xt.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:()=>It(void 0,null,function*(){(yield Dt({type:"shixunsDetail/cancelRelease",payload:{id:Ft==null?void 0:Ft.identifier}})).status!==401&&(Qt.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),Dt({type:"shixunsDetail/getShixunsDetail",payload:{id:Ft==null?void 0:Ft.identifier}}),Dt({type:"practiceSetting/getCommonData",payload:{id:Ft==null?void 0:Ft.identifier}}))})})}}),!0):!1}},93125:function(Tn,Cn,Kt){(function(zt){if(1)window.OSS=zt(),Tn.exports=zt();else var gt})(function(){var zt;return function(){function gt(Xt,Qt,kt){function Bt(Rt,Ct){if(!Qt[Rt]){if(!Xt[Rt]){var Lt=void 0;if(!Ct&&Lt)return require(Rt,!0);if(xt)return xt(Rt,!0);var At=new Error("Cannot find module '"+Rt+"'");throw At.code="MODULE_NOT_FOUND",At}var It=Qt[Rt]={exports:{}};Xt[Rt][0].call(It.exports,function(mt){return Bt(Xt[Rt][1][mt]||mt)},It,It.exports,gt,Xt,Qt,kt)}return Qt[Rt].exports}for(var xt=void 0,Ot=0;Ot<kt.length;Ot++)Bt(kt[Ot]);return Bt}return gt}()({1:[function(gt,Xt,Qt){"use strict";var kt=gt("./browser/client");kt.Buffer=gt("buffer").Buffer,kt.co=gt("co"),kt.urllib=gt("../shims/xhr"),kt.version=gt("./browser/version").version,Xt.exports=kt},{"../shims/xhr":244,"./browser/client":2,"./browser/version":5,buffer:38,co:41}],2:[function(gt,Xt,Qt){(function(kt,Bt){"use strict";function xt($t){return $t&&$t.__esModule?$t:{default:$t}}function Ot($t,ie){return $t[ie]||$t[ie.toLowerCase()]}function Rt($t,ie){var ue=Ft.parse($t);if(!ue.protocol){var ge=ie?"https://":"http://";ue=Ft.parse(ge+$t)}if(ue.protocol!=="http:"&&ue.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return ue}function Ct($t,ie,ue){var ge=ue?"https://":"http://",he=ie?"-internal.aliyuncs.com":".aliyuncs.com";return $t.substr(0,14)==="vpc100-oss-cn-"&&(he=".aliyuncs.com"),Ft.parse(ge+$t+he)}function Lt(){return document&&document.location&&document.location.protocol==="https:"}function At($t,ie){if(!(this instanceof At))return new At($t,ie);$t&&$t.inited?this.options=$t:this.options=At.initOptions($t),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=ce,this.agent=this.options.agent||He),this.ctx=ie,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}var It=gt("babel-runtime/regenerator"),mt=xt(It),et=gt("babel-runtime/core-js/object/keys"),tt=xt(et),st=gt("debug")("ali-oss"),rt=gt("./../../shims/crypto/crypto.js"),ut=gt("path"),ct=gt("copy-to"),ft=gt("mime"),pt=gt("xml2js"),Pt=gt("humanize-ms"),Dt=gt("agentkeepalive"),Zt=gt("merge-descriptors"),Ft=gt("url"),qt=gt("is-type-of"),te=gt("platform"),Gt=gt("utility"),ce=gt("urllib"),ae=gt("./version"),xe=gt("dateformat"),ye=gt("bowser"),Te=gt("../common/signUtils"),me=gt("../common/utils"),He=new Dt;Xt.exports=At,At.initOptions=function($t){if(!$t||!$t.accessKeyId||!$t.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");var ie=Lt(),ue={region:"oss-cn-hangzhou",internal:!1,secure:ie,bucket:null,endpoint:null,cname:!1};if((0,tt.default)($t).forEach(function(ge){$t[ge]!==void 0&&(ue[ge]=$t[ge])}),ue.accessKeyId=ue.accessKeyId.trim(),ue.accessKeySecret=ue.accessKeySecret.trim(),ue.timeout&&(ue.timeout=Pt(ue.timeout)),ue.endpoint)ue.endpoint=Rt(ue.endpoint,ue.secure);else{if(!ue.region)throw new Error("require options.endpoint or options.region");ue.endpoint=Ct(ue.region,ue.internal,ue.secure)}return ue.inited=!0,ue};var fe=At.prototype;Zt(fe,gt("./object")),Zt(fe,gt("./managed_upload")),Zt(fe,gt("../common/multipart")),Zt(fe,gt("../common/thunkpool.js")),At.Wrapper=gt("./wrapper"),fe.signature=function($t){return st("authorization stringToSign: %s",$t),Te.computeSignature(this.options.accessKeySecret,$t)},fe.authorization=function($t,ie,ue,ge){var he=Te.buildCanonicalString($t.toUpperCase(),ie,{headers:ge,parameters:ue});return Te.authorization(this.options.accessKeyId,this.options.accessKeySecret,he)},fe.createRequest=function($t){var ie={"x-oss-date":xe(+new Date+this.options.amendTimeSkewed,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.options.stsToken&&(ie["x-oss-security-token"]=this.options.stsToken),ct($t.headers).to(ie),Ot(ie,"Content-Type")||($t.mime===ft.default_type&&($t.mime=""),$t.mime&&$t.mime.indexOf("/")>0?ie["Content-Type"]=$t.mime:ie["Content-Type"]=ft.getType($t.mime||ut.extname($t.object||""))||"application/octet-stream"),$t.content&&(ie["Content-Md5"]=rt.createHash("md5").update(new Bt($t.content,"utf8")).digest("base64"),ie["Content-Length"]||(ie["Content-Length"]=$t.content.length));var ue=this._getResource($t);ie.authorization=this.authorization($t.method,ue,$t.subres,ie);var ge=this._getReqUrl($t);st("request %s %s, with headers %j, !!stream: %s",$t.method,ge,ie,!!$t.stream);var he=$t.timeout||this.options.timeout;return{url:ge,params:{agent:this.agent,method:$t.method,content:$t.content,stream:$t.stream,headers:ie,timeout:he,writeStream:$t.writeStream,customResponse:$t.customResponse,ctx:$t.ctx||this.ctx}}},fe.request=mt.default.mark(function $t(ie){var ue,ge,he,De;return mt.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:return ue=this.createRequest(ie),ge=void 0,he=void 0,Ne.prev=3,Ne.next=6,this.urllib.request(ue.url,ue.params);case 6:ge=Ne.sent,st("response %s %s, got %s, headers: %j",ie.method,ue.url,ge.status,ge.headers),Ne.next=13;break;case 10:Ne.prev=10,Ne.t0=Ne.catch(3),he=Ne.t0;case 13:if(De=void 0,!ge||!ie.successStatuses||ie.successStatuses.indexOf(ge.status)!==-1){Ne.next=26;break}return Ne.next=17,this.requestError(ge);case 17:if(De=Ne.sent,De.code!=="RequestTimeTooSkewed"){Ne.next=23;break}return this.options.amendTimeSkewed=+new Date(De.serverTime)-new Date,Ne.next=22,this.request(ie);case 22:return Ne.abrupt("return",Ne.sent);case 23:De.params=ie,Ne.next=30;break;case 26:if(!he){Ne.next=30;break}return Ne.next=29,this.requestError(he);case 29:De=Ne.sent;case 30:if(!De){Ne.next=32;break}throw De;case 32:if(!ie.xmlResponse){Ne.next=36;break}return Ne.next=35,this.parseXML(ge.data);case 35:ge.data=Ne.sent;case 36:return Ne.abrupt("return",ge);case 37:case"end":return Ne.stop()}},$t,this,[[3,10]])}),fe._getResource=function($t){var ie="/";return $t.bucket&&(ie+=$t.bucket+"/"),$t.object&&(ie+=$t.object),ie},fe._isIP=function($t){return me._isIP($t)},fe._escape=function($t){return Gt.encodeURIComponent($t).replace(/%2F/g,"/")},fe._getReqUrl=function($t){var ie={};ct(this.options.endpoint).to(ie);var ue=this._isIP(ie.hostname),ge=this.options.cname;!$t.bucket||ge||ue||(ie.host=$t.bucket+"."+ie.host);var he="/";$t.bucket&&ue&&(he+=$t.bucket+"/"),$t.object&&(he+=this._escape($t.object).replace(/\+/g,"%2B")),ie.pathname=he;var De={};if($t.query&&Zt(De,$t.query),$t.subres){var Ne={};qt.string($t.subres)?Ne[$t.subres]="":qt.array($t.subres)?$t.subres.forEach(function($e){Ne[$e]=""}):Ne=$t.subres,Zt(De,Ne)}return ie.query=De,Ft.format(ie)},fe._getUserAgent=function(){var $t=kt&&kt.browser?"js":"nodejs",ie="aliyun-sdk-"+$t+"/"+ae.version,ue=te.description;return!ue&&kt&&(ue="Node.js "+kt.version.slice(1)+" on "+kt.platform+" "+kt.arch),this._checkUserAgent(ie+" "+ue)},fe._checkUserAgent=function($t){return $t.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},fe.checkBrowserAndVersion=function($t,ie){return ye.name===$t&&ye.version.split(".")[0]===ie},fe.parseXML=function($t){return function(ie){Bt.isBuffer($t)&&($t=$t.toString()),pt.parseString($t,{explicitRoot:!1,explicitArray:!1},ie)}},fe.requestError=mt.default.mark(function $t(ie){var ue,ge,he,De;return mt.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:if(ue=null,ie.data&&ie.data.length){Ne.next=5;break}ie.status===-1||ie.status===-2?(ue=new Error(ie.message),ue.name=ie.name,ue.status=ie.status,ue.code=ie.name):(ie.status===404?(ue=new Error("Object not exists"),ue.name="NoSuchKeyError",ue.status=404,ue.code="NoSuchKey"):ie.status===412?(ue=new Error("Pre condition failed"),ue.name="PreconditionFailedError",ue.status=412,ue.code="PreconditionFailed"):(ue=new Error("Unknow error, status: "+ie.status),ue.name="UnknowError",ue.status=ie.status),ue.requestId=ie.headers["x-oss-request-id"],ue.host=""),Ne.next=30;break;case 5:return ge=String(ie.data),st("request response error data: %s",ge),he=void 0,Ne.prev=8,Ne.next=11,this.parseXML(ge)||{};case 11:he=Ne.sent,Ne.next=21;break;case 14:return Ne.prev=14,Ne.t0=Ne.catch(8),st(ge),Ne.t0.message+=`
|
|
|
raw xml: `+ge,Ne.t0.status=ie.status,Ne.t0.requestId=ie.headers["x-oss-request-id"],Ne.abrupt("return",Ne.t0);case 21:De=he.Message||"unknow request error, status: "+ie.status,he.Condition&&(De+=" (condition: "+he.Condition+")"),ue=new Error(De),ue.name=he.Code?he.Code+"Error":"UnknowError",ue.status=ie.status,ue.code=he.Code,ue.requestId=he.RequestId,ue.hostId=he.HostId,ue.serverTime=he.ServerTime;case 30:return st("generate error %j",ue),Ne.abrupt("return",ue);case 32:case"end":return Ne.stop()}},$t,this,[[8,14]])})}).call(this,gt("_process"),gt("buffer").Buffer)},{"../common/multipart":8,"../common/signUtils":9,"../common/thunkpool.js":10,"../common/utils":11,"./../../shims/crypto/crypto.js":237,"./managed_upload":3,"./object":4,"./version":5,"./wrapper":6,_process:173,agentkeepalive:12,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,bowser:35,buffer:38,"copy-to":43,dateformat:154,debug:155,"humanize-ms":160,"is-type-of":165,"merge-descriptors":168,mime:242,path:170,platform:171,url:203,urllib:244,utility:243,xml2js:213}],3:[function(gt,Xt,Qt){(function(kt){"use strict";function Bt(ct){return ct&&ct.__esModule?ct:{default:ct}}function xt(ct,ft){if(!(this instanceof xt))return new xt(ct,ft);ut.call(this,ft),this.file=ct,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var Ot=gt("babel-runtime/core-js/array/from"),Rt=Bt(Ot),Ct=gt("babel-runtime/regenerator"),Lt=Bt(Ct),At=gt("is-type-of"),It=gt("util"),mt=gt("path"),et=gt("mime"),tt=gt("copy-to"),st=Qt;st.multipartUpload=Lt.default.mark(function ct(ft,pt,Pt){var Dt,Zt,Ft,qt,te,Gt,ce,ae,xe;return Lt.default.wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:if(this.resetCancelFlag(),Pt=Pt||{},!Pt.checkpoint||!Pt.checkpoint.uploadId){ye.next=6;break}return ye.next=5,this._resumeMultipart(Pt.checkpoint,Pt);case 5:return ye.abrupt("return",ye.sent);case 6:return Dt=102400,Pt.mime||(At.file(pt)?Pt.mime=et.getType(mt.extname(pt.name)):At.blob(pt)?Pt.mime=pt.type:Pt.mime=et.getType(mt.extname(pt))),Pt.headers=Pt.headers||{},this._convertMetaToHeaders(Pt.meta,Pt.headers),ye.next=12,this._getFileSize(pt);case 12:if(!((Zt=ye.sent)<Dt)){ye.next=25;break}return Ft=this._createStream(pt,0,Zt),Pt.contentLength=Zt,ye.next=18,this.putStream(ft,Ft,Pt);case 18:if(qt=ye.sent,!Pt||!Pt.progress){ye.next=22;break}return ye.next=22,Pt.progress(1);case 22:return te={res:qt.res,bucket:this.options.bucket,name:ft,etag:qt.res.headers.etag},(Pt.headers&&Pt.headers["x-oss-callback"]||Pt.callback)&&(te.data=qt.data),ye.abrupt("return",te);case 25:if(!(Pt.partSize&&Pt.partSize<Dt)){ye.next=27;break}throw new Error("partSize must not be smaller than "+Dt);case 27:return ye.next=29,this.initMultipartUpload(ft,Pt);case 29:if(Gt=ye.sent,ce=Gt.uploadId,ae=this._getPartSize(Zt,Pt.partSize),xe={file:pt,name:ft,fileSize:Zt,partSize:ae,uploadId:ce,doneParts:[]},!Pt||!Pt.progress){ye.next=36;break}return ye.next=36,Pt.progress(0,xe,Gt.res);case 36:return ye.next=38,this._resumeMultipart(xe,Pt);case 38:return ye.abrupt("return",ye.sent);case 39:case"end":return ye.stop()}},ct,this)}),st._resumeMultipart=Lt.default.mark(function ct(ft,pt){var Pt,Dt,Zt,Ft,qt,te,Gt,ce,ae,xe,ye,Te,me,He,fe,$t,ie,ue,ge,he,De;return Lt.default.wrap(function(Ne){for(;;)switch(Ne.prev=Ne.next){case 0:if(!this.isCancel()){Ne.next=2;break}throw this._makeCancelEvent();case 2:if(Pt=ft.file,Dt=ft.fileSize,Zt=ft.partSize,Ft=ft.uploadId,qt=ft.doneParts,te=ft.name,Gt=[],qt.length>0&&tt(qt).to(Gt),ce=this._divideParts(Dt,Zt),ae=ce.length,xe=!1,ye=Lt.default.mark(function $e(Re,tn){var Me,Oe,Fe;return Lt.default.wrap(function(le){for(;;)switch(le.prev=le.next){case 0:if(Re.isCancel()){le.next=21;break}return le.prev=1,Me=ce[tn-1],Oe={stream:Re._createStream(Pt,Me.start,Me.end),size:Me.end-Me.start},le.next=6,Re._uploadPart(te,Ft,tn,Oe);case 6:if(Fe=le.sent,Re.isCancel()||xe){le.next=13;break}if(ft.doneParts.push({number:tn,etag:Fe.res.headers.etag}),Gt.push({number:tn,etag:Fe.res.headers.etag}),!pt||!pt.progress){le.next=13;break}return le.next=13,pt.progress(qt.length/ae,ft,Fe.res);case 13:le.next=21;break;case 15:if(le.prev=15,le.t0=le.catch(1),Re.isCancel()){le.next=21;break}throw Re.cancel(),le.t0.partNum=tn,le.t0;case 21:case"end":return le.stop()}},$e,this,[[1,15]])}),Te=(0,Rt.default)(new Array(ae),function($e,Re){return Re+1}),me=Gt.map(function($e){return $e.number}),He=Te.filter(function($e){return me.indexOf($e)<0}),fe=5,$t=pt.parallel||fe,!this.checkBrowserAndVersion("Internet Explorer","10")&&$t!==1){Ne.next=26;break}ie=0;case 16:if(!(ie<He.length)){Ne.next=24;break}if(!this.isCancel()){Ne.next=19;break}throw this._makeCancelEvent();case 19:return Ne.next=21,ye(this,He[ie]);case 21:ie++,Ne.next=16;break;case 24:Ne.next=40;break;case 26:for(ue=[],ge=0;ge<He.length;ge++)ue.push(ye(this,He[ge]));return Ne.next=30,this._thunkPool(ue,$t);case 30:if(he=Ne.sent,xe=!0,!(he&&he.length>0)){Ne.next=37;break}throw this.resetCancelFlag(),De=he[0],De.message="Failed to upload some parts with error: "+De.toString()+" part_num: "+De.partNum,De;case 37:if(!this.isCancel()){Ne.next=40;break}throw ue=null,this._makeCancelEvent();case 40:return Ne.next=42,this.completeMultipartUpload(te,Ft,Gt,pt);case 42:return Ne.abrupt("return",Ne.sent);case 43:case"end":return Ne.stop()}},ct,this)}),At.file=function(ct){return typeof File!="undefined"&&ct instanceof File},At.blob=function(ct){return typeof Blob!="undefined"&&ct instanceof Blob},st._getFileSize=Lt.default.mark(function ct(ft){var pt;return Lt.default.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:if(!At.buffer(ft)){Pt.next=4;break}return Pt.abrupt("return",ft.length);case 4:if(!At.blob(ft)&&!At.file(ft)){Pt.next=6;break}return Pt.abrupt("return",ft.size);case 6:if(!At.string(ft)){Pt.next=11;break}return Pt.next=9,this._statFile(ft);case 9:return pt=Pt.sent,Pt.abrupt("return",pt.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return Pt.stop()}},ct,this)});var rt=gt("stream"),ut=rt.Readable;It.inherits(xt,ut),xt.prototype.readFileAndPush=function(ct){if(this.fileBuffer)for(var ft=!0;ft&&this.fileBuffer&&this.start<this.fileBuffer.length;){var pt=this.start,Pt=pt+ct;Pt=Pt>this.fileBuffer.length?this.fileBuffer.length:Pt,this.start=Pt,ft=this.push(this.fileBuffer.slice(pt,Pt))}},xt.prototype._read=function(ct){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file)return this.finish||(this.fileBuffer=null,this.finish=!0),void this.push(null);ct=ct||16384;var ft=this;this.reader.onload=function(pt){ft.fileBuffer=new kt(new Uint8Array(pt.target.result)),ft.file=null,ft.readFileAndPush(ct)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(ct)},st._createStream=function(ct,ft,pt){if(At.blob(ct)||At.file(ct))return new xt(ct.slice(ft,pt));throw new Error("_createStream requires File/String.")},st._getPartSize=function(ct,ft){return ft?Math.max(Math.ceil(ct/1e4),ft):1048576},st._divideParts=function(ct,ft){for(var pt=Math.ceil(ct/ft),Pt=[],Dt=0;Dt<pt;Dt++){var Zt=ft*Dt,Ft=Math.min(Zt+ft,ct);Pt.push({start:Zt,end:Ft})}return Pt},st._makeCancelEvent=function(){return{status:0,name:"cancel"}}}).call(this,gt("buffer").Buffer)},{"babel-runtime/core-js/array/from":16,"babel-runtime/regenerator":33,buffer:38,"copy-to":43,"is-type-of":165,mime:242,path:170,stream:195,util:207}],4:[function(gt,Xt,Qt){"use strict";function kt(ft){return ft&&ft.__esModule?ft:{default:ft}}var Bt=gt("babel-runtime/core-js/object/keys"),xt=kt(Bt),Ot=gt("babel-runtime/regenerator"),Rt=kt(Ot),Ct=gt("debug")("ali-oss:object"),Lt=gt("utility"),At=gt("fs"),It=gt("is-type-of"),mt=gt("url"),et=gt("copy-to"),tt=gt("path"),st=gt("mime"),rt=gt("../common/callback"),ut=gt("../common/signUtils"),ct=Qt;ct.append=Rt.default.mark(function ft(pt,Pt,Dt){var Zt;return Rt.default.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Dt=Dt||{},Dt.position===void 0&&(Dt.position="0"),Dt.subres={append:"",position:Dt.position},Dt.method="POST",Ft.next=6,this.put(pt,Pt,Dt);case 6:return Zt=Ft.sent,Zt.nextAppendPosition=Zt.res.headers["x-oss-next-append-position"],Ft.abrupt("return",Zt);case 9:case"end":return Ft.stop()}},ft,this)}),ct.put=Rt.default.mark(function ft(pt,Pt,Dt){var Zt,Ft,qt,te,Gt,ce;return Rt.default.wrap(function(ae){for(;;)switch(ae.prev=ae.next){case 0:if(Zt=void 0,Dt=Dt||{},!It.buffer(Pt)){ae.next=6;break}Zt=Pt,ae.next=18;break;case 6:if(!It.blob(Pt)&&!It.file(Pt)){ae.next=17;break}return Dt.mime||(It.file(Pt)?Dt.mime=st.getType(tt.extname(Pt.name)):Dt.mime=Pt.type),Ft=this._createStream(Pt,0,Pt.size),ae.next=11,this._getFileSize(Pt);case 11:return Dt.contentLength=ae.sent,ae.next=14,this.putStream(pt,Ft,Dt);case 14:return ae.abrupt("return",ae.sent);case 17:throw new TypeError("Must provide Buffer/Blob for put.");case 18:return Dt.headers=Dt.headers||{},this._convertMetaToHeaders(Dt.meta,Dt.headers),qt=Dt.method||"PUT",te=this._objectRequestParams(qt,pt,Dt),rt.encodeCallback(te,Dt),te.mime=Dt.mime,te.content=Zt,te.successStatuses=[200],ae.next=28,this.request(te);case 28:return Gt=ae.sent,ce={name:pt,url:this._objectUrl(pt),res:Gt.res},te.headers&&te.headers["x-oss-callback"]&&(ce.data=JSON.parse(Gt.data.toString())),ae.abrupt("return",ce);case 32:case"end":return ae.stop()}},ft,this)}),ct.putStream=Rt.default.mark(function ft(pt,Pt,Dt){var Zt,Ft,qt,te;return Rt.default.wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:return Dt=Dt||{},Dt.headers=Dt.headers||{},Dt.contentLength?Dt.headers["Content-Length"]=Dt.contentLength:Dt.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(Dt.meta,Dt.headers),Zt=Dt.method||"PUT",Ft=this._objectRequestParams(Zt,pt,Dt),rt.encodeCallback(Ft,Dt),Ft.mime=Dt.mime,Ft.stream=Pt,Ft.successStatuses=[200],Gt.next=12,this.request(Ft);case 12:return qt=Gt.sent,te={name:pt,url:this._objectUrl(pt),res:qt.res},Ft.headers&&Ft.headers["x-oss-callback"]&&(te.data=JSON.parse(qt.data.toString())),Gt.abrupt("return",te);case 16:case"end":return Gt.stop()}},ft,this)}),ct.head=Rt.default.mark(function ft(pt,Pt){var Dt,Zt,Ft;return Rt.default.wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:return Dt=this._objectRequestParams("HEAD",pt,Pt),Dt.successStatuses=[200,304],qt.next=4,this.request(Dt);case 4:return Zt=qt.sent,Ft={meta:null,res:Zt.res,status:Zt.status},Zt.status===200&&(0,xt.default)(Zt.headers).forEach(function(te){te.indexOf("x-oss-meta-")===0&&(Ft.meta||(Ft.meta={}),Ft.meta[te.substring(11)]=Zt.headers[te])}),qt.abrupt("return",Ft);case 8:case"end":return qt.stop()}},ft,this)}),ct.get=Rt.default.mark(function ft(pt,Pt,Dt){var Zt,Ft,qt,te;return Rt.default.wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:return Zt=null,Ft=!1,It.writableStream(Pt)?Zt=Pt:It.string(Pt)?(Zt=At.createWriteStream(Pt),Ft=!0):Dt=Pt,Dt=Dt||{},Dt.process&&(Dt.subres=Dt.subres||{},Dt.subres["x-oss-process"]=Dt.process),qt=void 0,Gt.prev=6,te=this._objectRequestParams("GET",pt,Dt),te.writeStream=Zt,te.successStatuses=[200,206,304],Gt.next=12,this.request(te);case 12:qt=Gt.sent,Ft&&Zt.destroy(),Gt.next=24;break;case 16:if(Gt.prev=16,Gt.t0=Gt.catch(6),!Ft){Gt.next=23;break}return Zt.destroy(),Ct("get error: %s, delete the exists file %s",Gt.t0,Pt),Gt.next=23,this._deleteFileSafe(Pt);case 23:throw Gt.t0;case 24:return Gt.abrupt("return",{res:qt.res,content:qt.data});case 25:case"end":return Gt.stop()}},ft,this,[[6,16]])}),ct.getStream=Rt.default.mark(function ft(pt,Pt){var Dt,Zt;return Rt.default.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Pt=Pt||{},Dt=this._objectRequestParams("GET",pt,Pt),Dt.customResponse=!0,Dt.successStatuses=[200,206,304],Ft.next=6,this.request(Dt);case 6:return Zt=Ft.sent,Ft.abrupt("return",{stream:Zt.res,res:{status:Zt.status,headers:Zt.headers}});case 8:case"end":return Ft.stop()}},ft,this)}),ct.delete=Rt.default.mark(function ft(pt,Pt){var Dt,Zt;return Rt.default.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Dt=this._objectRequestParams("DELETE",pt,Pt),Dt.successStatuses=[204],Ft.next=4,this.request(Dt);case 4:return Zt=Ft.sent,Ft.abrupt("return",{res:Zt.res});case 6:case"end":return Ft.stop()}},ft,this)}),ct.deleteMulti=Rt.default.mark(function ft(pt,Pt){var Dt,Zt,Ft,qt,te,Gt;return Rt.default.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:for(Pt=Pt||{},Dt=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<Delete>
|
|
|
`,Pt.quiet?Dt+=` <Quiet>true</Quiet>
|
|
|
`:Dt+=` <Quiet>false</Quiet>
|
|
|
`,Zt=0;Zt<pt.length;Zt++)Dt+=" <Object><Key>"+Lt.escape(this._objectName(pt[Zt]))+`</Key></Object>
|
|
|
`;return Dt+="</Delete>",Ct("delete multi objects: %s",Dt),Pt.subres="delete",Ft=this._objectRequestParams("POST","",Pt),Ft.mime="xml",Ft.content=Dt,Ft.xmlResponse=!0,Ft.successStatuses=[200],ce.next=14,this.request(Ft);case 14:return qt=ce.sent,te=qt.data,Gt=te&&te.Deleted||null,Gt&&(Array.isArray(Gt)||(Gt=[Gt]),Gt=Gt.map(function(ae){return ae.Key})),ce.abrupt("return",{res:qt.res,deleted:Gt});case 19:case"end":return ce.stop()}},ft,this)}),ct.copy=Rt.default.mark(function ft(pt,Pt,Dt){var Zt,Ft,qt;return Rt.default.wrap(function(te){for(;;)switch(te.prev=te.next){case 0:return Dt=Dt||{},Dt.headers=Dt.headers||{},(0,xt.default)(Dt.headers).forEach(function(Gt){Dt.headers["x-oss-copy-source-"+Gt.toLowerCase()]=Dt.headers[Gt]}),Dt.meta&&(Dt.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(Dt.meta,Dt.headers),Pt=Pt[0]!=="/"?"/"+this.options.bucket+"/"+encodeURIComponent(Pt):"/"+encodeURIComponent(Pt.slice(1)),Dt.headers["x-oss-copy-source"]=Pt,Zt=this._objectRequestParams("PUT",pt,Dt),Zt.xmlResponse=!0,Zt.successStatuses=[200,304],te.next=12,this.request(Zt);case 12:return Ft=te.sent,qt=Ft.data,qt&&(qt={etag:qt.ETag,lastModified:qt.LastModified}),te.abrupt("return",{data:qt,res:Ft.res});case 16:case"end":return te.stop()}},ft,this)}),ct.putMeta=Rt.default.mark(function ft(pt,Pt,Dt){return Rt.default.wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:return Zt.next=2,this.copy(pt,pt,{meta:Pt||{},timeout:Dt&&Dt.timeout,ctx:Dt&&Dt.ctx});case 2:return Zt.abrupt("return",Zt.sent);case 3:case"end":return Zt.stop()}},ft,this)}),ct.list=Rt.default.mark(function ft(pt,Pt){var Dt,Zt,Ft,qt,te;return Rt.default.wrap(function(Gt){for(;;)switch(Gt.prev=Gt.next){case 0:return Dt=this._objectRequestParams("GET","",Pt),Dt.query=pt,Dt.xmlResponse=!0,Dt.successStatuses=[200],Gt.next=6,this.request(Dt);case 6:return Zt=Gt.sent,Ft=Zt.data.Contents,qt=this,Ft&&(Array.isArray(Ft)||(Ft=[Ft]),Ft=Ft.map(function(ce){return{name:ce.Key,url:qt._objectUrl(ce.Key),lastModified:ce.LastModified,etag:ce.ETag,type:ce.Type,size:Number(ce.Size),storageClass:ce.StorageClass,owner:{id:ce.Owner.ID,displayName:ce.Owner.DisplayName}}})),te=Zt.data.CommonPrefixes||null,te&&(Array.isArray(te)||(te=[te]),te=te.map(function(ce){return ce.Prefix})),Gt.abrupt("return",{res:Zt.res,objects:Ft,prefixes:te,nextMarker:Zt.data.NextMarker||null,isTruncated:Zt.data.IsTruncated==="true"});case 13:case"end":return Gt.stop()}},ft,this)}),ct.putACL=Rt.default.mark(function ft(pt,Pt,Dt){var Zt,Ft;return Rt.default.wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:return Dt=Dt||{},Dt.subres="acl",Dt.headers=Dt.headers||{},Dt.headers["x-oss-object-acl"]=Pt,pt=this._objectName(pt),Zt=this._objectRequestParams("PUT",pt,Dt),Zt.successStatuses=[200],qt.next=9,this.request(Zt);case 9:return Ft=qt.sent,qt.abrupt("return",{res:Ft.res});case 11:case"end":return qt.stop()}},ft,this)}),ct.getACL=Rt.default.mark(function ft(pt,Pt){var Dt,Zt;return Rt.default.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Pt=Pt||{},Pt.subres="acl",pt=this._objectName(pt),Dt=this._objectRequestParams("GET",pt,Pt),Dt.successStatuses=[200],Dt.xmlResponse=!0,Ft.next=8,this.request(Dt);case 8:return Zt=Ft.sent,Ft.abrupt("return",{acl:Zt.data.AccessControlList.Grant,owner:{id:Zt.data.Owner.ID,displayName:Zt.data.Owner.DisplayName},res:Zt.res});case 10:case"end":return Ft.stop()}},ft,this)}),ct.restore=Rt.default.mark(function ft(pt,Pt){var Dt,Zt;return Rt.default.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Pt=Pt||{},Pt.subres="restore",Dt=this._objectRequestParams("POST",pt,Pt),Dt.successStatuses=[202],Ft.next=6,this.request(Dt);case 6:return Zt=Ft.sent,Ft.abrupt("return",{res:Zt.res});case 8:case"end":return Ft.stop()}},ft,this)}),ct.signatureUrl=function(ft,pt){pt=pt||{},ft=this._objectName(ft),pt.method=pt.method||"GET";var Pt=Lt.timestamp()+(pt.expires||1800),Dt={bucket:this.options.bucket,object:ft},Zt=this._getResource(Dt);this.options.stsToken&&(pt["security-token"]=this.options.stsToken);var Ft=ut._signatureForURL(this.options.accessKeySecret,pt,Zt,Pt),qt=mt.parse(this._getReqUrl(Dt));return qt.query={OSSAccessKeyId:this.options.accessKeyId,Expires:Pt,Signature:Ft.Signature},et(Ft.subResource).to(qt.query),qt.format()},ct.getObjectUrl=function(ft,pt){return pt?pt[pt.length-1]!=="/"&&(pt+="/"):pt=this.options.endpoint.format(),pt+this._escape(this._objectName(ft))},ct._objectUrl=function(ft){return this._getReqUrl({bucket:this.options.bucket,object:ft})},ct.generateObjectUrl=function(ft,pt){if(pt)pt[pt.length-1]!=="/"&&(pt+="/");else{pt=this.options.endpoint.format();var Pt=mt.parse(pt),Dt=this.options.bucket;Pt.hostname=Dt+"."+Pt.hostname,Pt.host=Dt+"."+Pt.host,pt=Pt.format()}return pt+this._escape(this._objectName(ft))},ct._objectRequestParams=function(ft,pt,Pt){if(!this.options.bucket)throw new Error("Please create a bucket first");Pt=Pt||{},pt=this._objectName(pt);var Dt={object:pt,bucket:this.options.bucket,method:ft,subres:Pt&&Pt.subres,timeout:Pt&&Pt.timeout,ctx:Pt&&Pt.ctx};return Pt.headers&&(Dt.headers={},et(Pt.headers).to(Dt.headers)),Dt},ct._objectName=function(ft){return ft.replace(/^\/+/,"")},ct._statFile=function(ft){return function(pt){At.stat(ft,pt)}},ct._convertMetaToHeaders=function(ft,pt){ft&&(0,xt.default)(ft).forEach(function(Pt){pt["x-oss-meta-"+Pt]=ft[Pt]})},ct._deleteFileSafe=function(ft){return function(pt){At.exists(ft,function(Pt){Pt?At.unlink(ft,function(Dt){Dt&&Ct("unlink %j error: %s",ft,Dt),pt()}):pt()})}}},{"../common/callback":7,"../common/signUtils":9,"babel-runtime/core-js/object/keys":23,"babel-runtime/regenerator":33,"copy-to":43,debug:155,fs:36,"is-type-of":165,mime:242,path:170,url:203,utility:243}],5:[function(gt,Xt,Qt){"use strict";Qt.version="5.3.1"},{}],6:[function(gt,Xt,Qt){"use strict";function kt(tt){return tt&&tt.__esModule?tt:{default:tt}}function Bt(tt){return tt&&typeof tt.next=="function"&&typeof tt.throw=="function"}function xt(tt){if(!tt)return!1;var st=tt.constructor;return!!st&&(st.name==="GeneratorFunction"||st.displayName==="GeneratorFunction"||Bt(st.prototype)||Bt(tt.prototype))}function Ot(tt,st){var rt=new tt(st),ut=(0,It.default)(rt),ct=(0,It.default)((0,Lt.default)(rt));ut.concat(ct).forEach(function(ft){xt(rt[ft])?this[ft]=mt.wrap(rt[ft]).bind(rt):this[ft]=rt[ft]},this)}function Rt(tt){if(!(this instanceof Rt))return new Rt(tt);Ot.call(this,et,tt)}var Ct=gt("babel-runtime/core-js/object/get-prototype-of"),Lt=kt(Ct),At=gt("babel-runtime/core-js/object/keys"),It=kt(At),mt=gt("co"),et=gt("./client");Xt.exports=Rt,Rt.STS=function tt(st){if(!(this instanceof tt))return new tt(st);Ot.call(this,et.STS,st)}},{"./client":2,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/core-js/object/keys":23,co:41}],7:[function(gt,Xt,Qt){(function(kt){"use strict";function Bt(Lt){return Lt&&Lt.__esModule?Lt:{default:Lt}}var xt=gt("babel-runtime/core-js/object/keys"),Ot=Bt(xt),Rt=gt("babel-runtime/core-js/json/stringify"),Ct=Bt(Rt);Qt.encodeCallback=function(Lt,At){if(Lt.headers=Lt.headers||{},!Object.prototype.hasOwnProperty.call(Lt.headers,"x-oss-callback")&&At.callback){var It={callbackUrl:encodeURI(At.callback.url),callbackBody:At.callback.body};At.callback.host&&(It.callbackHost=At.callback.host),At.callback.contentType&&(It.callbackBodyType=At.callback.contentType);var mt=new kt((0,Ct.default)(It)).toString("base64");if(Lt.headers["x-oss-callback"]=mt,At.callback.customValue){var et={};(0,Ot.default)(At.callback.customValue).forEach(function(tt){et["x:"+tt]=At.callback.customValue[tt]}),Lt.headers["x-oss-callback-var"]=new kt((0,Ct.default)(et)).toString("base64")}}}}).call(this,gt("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38}],8:[function(gt,Xt,Qt){"use strict";var kt=gt("babel-runtime/regenerator"),Bt=function(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}}(kt),xt=gt("copy-to"),Ot=gt("./callback"),Rt=Qt;Rt.listUploads=Bt.default.mark(function Ct(Lt,At){var It,mt,et,tt;return Bt.default.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return At=At||{},It={},xt(At).to(It),It.subres="uploads",mt=this._objectRequestParams("GET","",It),mt.query=Lt,mt.xmlResponse=!0,mt.successStatuses=[200],st.next=10,this.request(mt);case 10:return et=st.sent,tt=et.data.Upload||[],Array.isArray(tt)||(tt=[tt]),tt=tt.map(function(rt){return{name:rt.Key,uploadId:rt.UploadId,initiated:rt.Initiated}}),st.abrupt("return",{res:et.res,uploads:tt,bucket:et.data.Bucket,nextKeyMarker:et.data.NextKeyMarker,nextUploadIdMarker:et.data.NextUploadIdMarker,isTruncated:et.data.IsTruncated==="true"});case 15:case"end":return st.stop()}},Ct,this)}),Rt.listParts=Bt.default.mark(function Ct(Lt,At,It,mt){var et,tt,st;return Bt.default.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return mt=mt||{},et={},xt(mt).to(et),et.subres={uploadId:At},tt=this._objectRequestParams("GET",Lt,et),tt.query=It,tt.xmlResponse=!0,tt.successStatuses=[200],rt.next=10,this.request(tt);case 10:return st=rt.sent,rt.abrupt("return",{res:st.res,uploadId:st.data.UploadId,bucket:st.data.Bucket,name:st.data.Key,partNumberMarker:st.data.PartNumberMarker,nextPartNumberMarker:st.data.NextPartNumberMarker,maxParts:st.data.MaxParts,isTruncated:st.data.IsTruncated,parts:st.data.Part||[]});case 12:case"end":return rt.stop()}},Ct,this)}),Rt.abortMultipartUpload=Bt.default.mark(function Ct(Lt,At,It){var mt,et,tt;return Bt.default.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return this.cancel(),It=It||{},mt={},xt(It).to(mt),mt.subres={uploadId:At},et=this._objectRequestParams("DELETE",Lt,mt),et.successStatuses=[204],st.next=9,this.request(et);case 9:return tt=st.sent,st.abrupt("return",{res:tt.res});case 11:case"end":return st.stop()}},Ct,this)}),Rt.initMultipartUpload=Bt.default.mark(function Ct(Lt,At){var It,mt,et;return Bt.default.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return At=At||{},It={},xt(At).to(It),It.headers=It.headers||{},this._convertMetaToHeaders(At.meta,It.headers),It.subres="uploads",mt=this._objectRequestParams("POST",Lt,It),mt.mime=At.mime,mt.xmlResponse=!0,mt.successStatuses=[200],tt.next=12,this.request(mt);case 12:return et=tt.sent,tt.abrupt("return",{res:et.res,bucket:et.data.Bucket,name:et.data.Key,uploadId:et.data.UploadId});case 14:case"end":return tt.stop()}},Ct,this)}),Rt.uploadPart=Bt.default.mark(function Ct(Lt,At,It,mt,et,tt,st){var rt;return Bt.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return rt={stream:this._createStream(mt,et,tt),size:tt-et},ut.next=3,this._uploadPart(Lt,At,It,rt,st);case 3:return ut.abrupt("return",ut.sent);case 4:case"end":return ut.stop()}},Ct,this)}),Rt.completeMultipartUpload=Bt.default.mark(function Ct(Lt,At,It,mt){var et,tt,st,rt,ut,ct,ft,pt;return Bt.default.wrap(function(Pt){for(;;)switch(Pt.prev=Pt.next){case 0:for(et=It.concat().sort(function(Dt,Zt){return Dt.number-Zt.number}).filter(function(Dt,Zt,Ft){return!Zt||Dt.number!==Ft[Zt-1].number}),tt=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<CompleteMultipartUpload>
|
|
|
`,st=0;st<et.length;st++)rt=et[st],tt+=`<Part>
|
|
|
`,tt+="<PartNumber>"+rt.number+`</PartNumber>
|
|
|
`,tt+="<ETag>"+rt.etag+`</ETag>
|
|
|
`,tt+=`</Part>
|
|
|
`;return tt+="</CompleteMultipartUpload>",mt=mt||{},ut={},xt(mt).to(ut),ut.subres={uploadId:At},ct=this._objectRequestParams("POST",Lt,ut),Ot.encodeCallback(ct,ut),ct.mime="xml",ct.content=tt,ct.headers&&ct.headers["x-oss-callback"]||(ct.xmlResponse=!0),ct.successStatuses=[200],Pt.next=16,this.request(ct);case 16:return ft=Pt.sent,pt={res:ft.res,bucket:ct.bucket,name:Lt,etag:ft.res.headers.etag},ct.headers&&ct.headers["x-oss-callback"]&&(pt.data=JSON.parse(ft.data.toString())),Pt.abrupt("return",pt);case 20:case"end":return Pt.stop()}},Ct,this)}),Rt._uploadPart=Bt.default.mark(function Ct(Lt,At,It,mt,et){var tt,st,rt;return Bt.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return et=et||{},tt={},xt(et).to(tt),tt.headers={"Content-Length":mt.size},tt.subres={partNumber:It,uploadId:At},st=this._objectRequestParams("PUT",Lt,tt),st.mime=tt.mime,st.stream=mt.stream,st.successStatuses=[200],ut.next=11,this.request(st);case 11:return rt=ut.sent,mt.stream=null,st.stream=null,ut.abrupt("return",{name:Lt,etag:rt.res.headers.etag,res:rt.res});case 15:case"end":return ut.stop()}},Ct,this)})},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(gt,Xt,Qt){(function(kt){"use strict";function Bt(It){return It&&It.__esModule?It:{default:It}}var xt=gt("babel-runtime/core-js/json/stringify"),Ot=Bt(xt),Rt=gt("babel-runtime/core-js/object/keys"),Ct=Bt(Rt),Lt=gt("./../../shims/crypto/crypto.js"),At=gt("is-type-of");Qt.buildCanonicalizedResource=function(It,mt){var et=""+It,tt="?";if(At.string(mt)&&mt.trim()!=="")et+=tt+mt;else if(At.array(mt))mt.sort(),et+=tt+mt.join("&");else if(mt){var st=function(ut,ct){return ut[0]>ct[0]?1:ut[0]<ct[0]?-1:0},rt=function(ut){et+=tt+ut,mt[ut]&&(et+="="+mt[ut]),tt="&"};(0,Ct.default)(mt).sort(st).forEach(rt)}return et},Qt.buildCanonicalString=function(It,mt,et,tt){et=et||{};var st=et.headers||{},rt=[],ut={},ct=[It.toUpperCase(),st["Content-Md5"]||"",st["Content-Type"]||st["Content-Type".toLowerCase()],tt||st["x-oss-date"]];return(0,Ct.default)(st).forEach(function(ft){var pt=ft.toLowerCase();pt.indexOf("x-oss-")===0&&(ut[pt]=String(st[ft]).trim())}),(0,Ct.default)(ut).sort().forEach(function(ft){rt.push(ft+":"+ut[ft])}),ct=ct.concat(rt),ct.push(this.buildCanonicalizedResource(mt,et.parameters)),ct.join(`
|
|
|
`)},Qt.computeSignature=function(It,mt){return Lt.createHmac("sha1",It).update(new kt(mt,"utf8")).digest("base64")},Qt.authorization=function(It,mt,et){return"OSS "+It+":"+this.computeSignature(mt,et)},Qt._signatureForURL=function(It,mt,et,tt){var st={},rt={};if(mt.process&&(rt["x-oss-process"]=mt.process),mt.response&&(0,Ct.default)(mt.response).forEach(function(pt){var Pt="response-"+pt.toLowerCase();rt[Pt]=mt.response[pt]}),(0,Ct.default)(mt).forEach(function(pt){var Pt=pt.toLowerCase(),Dt=mt[pt];Pt.indexOf("x-oss-")===0?st[Pt]=Dt:Pt.indexOf("content-md5")===0||Pt.indexOf("content-type")===0?st[pt]=Dt:Pt!=="expires"&&Pt!=="response"&&Pt!=="process"&&Pt!=="method"&&(rt[Pt]=Dt)}),Object.prototype.hasOwnProperty.call(mt,"security-token")&&(rt["security-token"]=mt["security-token"]),Object.prototype.hasOwnProperty.call(mt,"callback")){var ut={callbackUrl:encodeURI(mt.callback.url),callbackBody:mt.callback.body};if(mt.callback.host&&(ut.callbackHost=mt.callback.host),mt.callback.contentType&&(ut.callbackBodyType=mt.callback.contentType),rt.callback=new kt((0,Ot.default)(ut)).toString("base64"),mt.callback.customValue){var ct={};(0,Ct.default)(mt.callback.customValue).forEach(function(pt){ct["x:"+pt]=mt.callback.customValue[pt]}),rt["callback-var"]=new kt((0,Ot.default)(ct)).toString("base64")}}var ft=this.buildCanonicalString(mt.method,et,{headers:st,parameters:rt},tt.toString());return{Signature:this.computeSignature(It,ft),subResource:rt}}}).call(this,gt("buffer").Buffer)},{"./../../shims/crypto/crypto.js":237,"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38,"is-type-of":165}],10:[function(gt,Xt,Qt){"use strict";var kt=gt("babel-runtime/regenerator"),Bt=function(Lt){return Lt&&Lt.__esModule?Lt:{default:Lt}}(kt),xt=gt("co"),Ot=gt("co-priority-queue"),Rt=gt("any-promise"),Ct=Qt;Ct._thunkPool=function(Lt,At){function It(rt,ut){++tt===rt.length&&ut(st)}function mt(rt,ut){function ct(){var Ft;return Bt.default.wrap(function(qt){for(;;)switch(qt.prev=qt.next){case 0:Ft=void 0;case 1:if(et.isCancel()){qt.next=9;break}return qt.next=4,Pt.next();case 4:return Ft=qt.sent,qt.next=7,Ft();case 7:qt.next=1;break;case 9:Dt+=1,Dt===rt&&(Pt.fns=[],Pt.buffer=[],ut(st));case 11:case"end":return qt.stop()}},pt,this)}function ft(Ft){console.error(Ft.stack)}for(var pt=Bt.default.mark(ct),Pt=new Ot,Dt=0,Zt=0;Zt<rt;Zt++)xt(ct).catch(ft);return function(Ft,qt){return function(te){Pt.push(Bt.default.mark(function Gt(){return Bt.default.wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return ce.prev=0,ce.t0=te,ce.next=4,Ft;case 4:ce.t1=ce.sent,(0,ce.t0)(null,ce.t1),ce.next=11;break;case 8:ce.prev=8,ce.t2=ce.catch(0),te(ce.t2);case 11:case"end":return ce.stop()}},Gt,this,[[0,8]])}),qt)}}}var et=this,tt=0,st=[];return new Rt(function(rt){function ut(Dt){return Bt.default.wrap(function(Zt){for(;;)switch(Zt.prev=Zt.next){case 0:return Zt.next=2,pt(Lt[Dt]);case 2:It(Lt,rt);case 3:case"end":return Zt.stop()}},ft,this)}function ct(Dt){st.push(Dt),It(Lt,rt)}for(var ft=Bt.default.mark(ut),pt=new mt(At,rt),Pt=0;Pt<Lt.length;Pt++)xt(ut(Pt)).catch(ct)})},Ct.cancel=function(){this.options.cancelFlag=!0},Ct.isCancel=function(){return this.options.cancelFlag},Ct.resetCancelFlag=function(){this.options.cancelFlag=!1}},{"any-promise":13,"babel-runtime/regenerator":33,co:41,"co-priority-queue":40}],11:[function(gt,Xt,Qt){"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[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return Bt.test(kt)||xt.test(kt)}},{}],12:[function(gt,Xt,Qt){function kt(){}Xt.exports=kt,Xt.exports.HttpsAgent=kt},{}],13:[function(gt,Xt,Qt){Xt.exports=gt("./register")().Promise},{"./register":15}],14:[function(gt,Xt,Qt){"use strict";var kt=null;Xt.exports=function(Bt,xt){return function(Ot,Rt){Ot=Ot||null,Rt=Rt||{};var Ct=Rt.global!==!1;if(kt===null&&Ct&&(kt=Bt["@@any-promise/REGISTRATION"]||null),kt!==null&&Ot!==null&&kt.implementation!==Ot)throw new Error('any-promise already defined as "'+kt.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return kt===null&&(kt=Ot!==null&&Rt.Promise!==void 0?{Promise:Rt.Promise,implementation:Ot}:xt(Ot),Ct&&(Bt["@@any-promise/REGISTRATION"]=kt)),kt}}},{}],15:[function(gt,Xt,Qt){"use strict";function kt(){if(window.Promise===void 0)throw new Error("any-promise browser requires a polyfill or explicit registration e.g: require('any-promise/register/bluebird')");return{Promise:window.Promise,implementation:"window.Promise"}}Xt.exports=gt("./loader")(window,kt)},{"./loader":14}],16:[function(gt,Xt,Qt){Xt.exports={default:gt("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":44}],17:[function(gt,Xt,Qt){Xt.exports={default:gt("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":45}],18:[function(gt,Xt,Qt){Xt.exports={default:gt("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":46}],19:[function(gt,Xt,Qt){Xt.exports={default:gt("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":47}],20:[function(gt,Xt,Qt){Xt.exports={default:gt("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":48}],21:[function(gt,Xt,Qt){Xt.exports={default:gt("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":49}],22:[function(gt,Xt,Qt){Xt.exports={default:gt("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":50}],23:[function(gt,Xt,Qt){Xt.exports={default:gt("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":51}],24:[function(gt,Xt,Qt){Xt.exports={default:gt("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":52}],25:[function(gt,Xt,Qt){Xt.exports={default:gt("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":53}],26:[function(gt,Xt,Qt){Xt.exports={default:gt("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":54}],27:[function(gt,Xt,Qt){Xt.exports={default:gt("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":56}],28:[function(gt,Xt,Qt){Xt.exports={default:gt("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":55}],29:[function(gt,Xt,Qt){Xt.exports={default:gt("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":57}],30:[function(gt,Xt,Qt){"use strict";Qt.__esModule=!0,Qt.default=function(kt,Bt){if(!(kt instanceof Bt))throw new TypeError("Cannot call a class as a function")}},{}],31:[function(gt,Xt,Qt){"use strict";Qt.__esModule=!0;var kt=gt("../core-js/object/define-property"),Bt=function(xt){return xt&&xt.__esModule?xt:{default:xt}}(kt);Qt.default=function(){function xt(Ot,Rt){for(var Ct=0;Ct<Rt.length;Ct++){var Lt=Rt[Ct];Lt.enumerable=Lt.enumerable||!1,Lt.configurable=!0,"value"in Lt&&(Lt.writable=!0),(0,Bt.default)(Ot,Lt.key,Lt)}}return function(Ot,Rt,Ct){return Rt&&xt(Ot.prototype,Rt),Ct&&xt(Ot,Ct),Ot}}()},{"../core-js/object/define-property":20}],32:[function(gt,Xt,Qt){"use strict";function kt(Lt){return Lt&&Lt.__esModule?Lt:{default:Lt}}Qt.__esModule=!0;var Bt=gt("../core-js/symbol/iterator"),xt=kt(Bt),Ot=gt("../core-js/symbol"),Rt=kt(Ot),Ct=typeof Rt.default=="function"&&typeof xt.default=="symbol"?function(Lt){return typeof Lt}:function(Lt){return Lt&&typeof Rt.default=="function"&&Lt.constructor===Rt.default&&Lt!==Rt.default.prototype?"symbol":typeof Lt};Qt.default=typeof Rt.default=="function"&&Ct(xt.default)==="symbol"?function(Lt){return Lt===void 0?"undefined":Ct(Lt)}:function(Lt){return Lt&&typeof Rt.default=="function"&&Lt.constructor===Rt.default&&Lt!==Rt.default.prototype?"symbol":Lt===void 0?"undefined":Ct(Lt)}},{"../core-js/symbol":27,"../core-js/symbol/iterator":29}],33:[function(gt,Xt,Qt){Xt.exports=gt("regenerator-runtime")},{"regenerator-runtime":191}],34:[function(gt,Xt,Qt){"use strict";function kt(rt){var ut=rt.length;if(ut%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var ct=rt.indexOf("=");return ct===-1&&(ct=ut),[ct,ct===ut?0:4-ct%4]}function Bt(rt){var ut=kt(rt),ct=ut[0],ft=ut[1];return 3*(ct+ft)/4-ft}function xt(rt,ut,ct){return 3*(ut+ct)/4-ct}function Ot(rt){for(var ut,ct=kt(rt),ft=ct[0],pt=ct[1],Pt=new mt(xt(rt,ft,pt)),Dt=0,Zt=pt>0?ft-4:ft,Ft=0;Ft<Zt;Ft+=4)ut=It[rt.charCodeAt(Ft)]<<18|It[rt.charCodeAt(Ft+1)]<<12|It[rt.charCodeAt(Ft+2)]<<6|It[rt.charCodeAt(Ft+3)],Pt[Dt++]=ut>>16&255,Pt[Dt++]=ut>>8&255,Pt[Dt++]=255&ut;return pt===2&&(ut=It[rt.charCodeAt(Ft)]<<2|It[rt.charCodeAt(Ft+1)]>>4,Pt[Dt++]=255&ut),pt===1&&(ut=It[rt.charCodeAt(Ft)]<<10|It[rt.charCodeAt(Ft+1)]<<4|It[rt.charCodeAt(Ft+2)]>>2,Pt[Dt++]=ut>>8&255,Pt[Dt++]=255&ut),Pt}function Rt(rt){return At[rt>>18&63]+At[rt>>12&63]+At[rt>>6&63]+At[63&rt]}function Ct(rt,ut,ct){for(var ft,pt=[],Pt=ut;Pt<ct;Pt+=3)ft=(rt[Pt]<<16&16711680)+(rt[Pt+1]<<8&65280)+(255&rt[Pt+2]),pt.push(Rt(ft));return pt.join("")}function Lt(rt){for(var ut,ct=rt.length,ft=ct%3,pt=[],Pt=0,Dt=ct-ft;Pt<Dt;Pt+=16383)pt.push(Ct(rt,Pt,Pt+16383>Dt?Dt:Pt+16383));return ft===1?(ut=rt[ct-1],pt.push(At[ut>>2]+At[ut<<4&63]+"==")):ft===2&&(ut=(rt[ct-2]<<8)+rt[ct-1],pt.push(At[ut>>10]+At[ut>>4&63]+At[ut<<2&63]+"=")),pt.join("")}Qt.byteLength=Bt,Qt.toByteArray=Ot,Qt.fromByteArray=Lt;for(var At=[],It=[],mt=typeof Uint8Array!="undefined"?Uint8Array:Array,et="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tt=0,st=et.length;tt<st;++tt)At[tt]=et[tt],It[et.charCodeAt(tt)]=tt;It[45]=62,It[95]=63},{}],35:[function(gt,Xt,Qt){(function(kt,Bt,xt){Xt!==void 0&&Xt.exports?Xt.exports=xt():typeof zt=="function"&&zt.amd?zt("bowser",xt):kt.bowser=xt()})(this,0,function(){function kt(It){function mt($t){var ie=It.match($t);return ie&&ie.length>1&&ie[1]||""}function et($t){var ie=It.match($t);return ie&&ie.length>1&&ie[2]||""}var tt,st=mt(/(ipod|iphone|ipad)/i).toLowerCase(),rt=/like android/i.test(It),ut=!rt&&/android/i.test(It),ct=/nexus\s*[0-6]\s*/i.test(It),ft=!ct&&/nexus\s*[0-9]+/i.test(It),pt=/CrOS/.test(It),Pt=/silk/i.test(It),Dt=/sailfish/i.test(It),Zt=/tizen/i.test(It),Ft=/(web|hpw)os/i.test(It),qt=/windows phone/i.test(It),te=(/SamsungBrowser/i.test(It),!qt&&/windows/i.test(It)),Gt=!st&&!Pt&&/macintosh/i.test(It),ce=!ut&&!Dt&&!Zt&&!Ft&&/linux/i.test(It),ae=et(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),xe=mt(/version\/(\d+(\.\d+)?)/i),ye=/tablet/i.test(It)&&!/tablet pc/i.test(It),Te=!ye&&/[^-]mobi/i.test(It),me=/xbox/i.test(It);/opera/i.test(It)?tt={name:"Opera",opera:Lt,version:xe||mt(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(It)?tt={name:"Opera",opera:Lt,version:mt(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||xe}:/SamsungBrowser/i.test(It)?tt={name:"Samsung Internet for Android",samsungBrowser:Lt,version:xe||mt(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(It)?tt={name:"Opera Coast",coast:Lt,version:xe||mt(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(It)?tt={name:"Yandex Browser",yandexbrowser:Lt,version:xe||mt(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(It)?tt={name:"UC Browser",ucbrowser:Lt,version:mt(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(It)?tt={name:"Maxthon",maxthon:Lt,version:mt(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(It)?tt={name:"Epiphany",epiphany:Lt,version:mt(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(It)?tt={name:"Puffin",puffin:Lt,version:mt(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(It)?tt={name:"Sleipnir",sleipnir:Lt,version:mt(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(It)?tt={name:"K-Meleon",kMeleon:Lt,version:mt(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:qt?(tt={name:"Windows Phone",osname:"Windows Phone",windowsphone:Lt},ae?(tt.msedge=Lt,tt.version=ae):(tt.msie=Lt,tt.version=mt(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(It)?tt={name:"Internet Explorer",msie:Lt,version:mt(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:pt?tt={name:"Chrome",osname:"Chrome OS",chromeos:Lt,chromeBook:Lt,chrome:Lt,version:mt(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(It)?tt={name:"Microsoft Edge",msedge:Lt,version:ae}:/vivaldi/i.test(It)?tt={name:"Vivaldi",vivaldi:Lt,version:mt(/vivaldi\/(\d+(\.\d+)?)/i)||xe}:Dt?tt={name:"Sailfish",osname:"Sailfish OS",sailfish:Lt,version:mt(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(It)?tt={name:"SeaMonkey",seamonkey:Lt,version:mt(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(It)?(tt={name:"Firefox",firefox:Lt,version:mt(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(It)&&(tt.firefoxos=Lt,tt.osname="Firefox OS")):Pt?tt={name:"Amazon Silk",silk:Lt,version:mt(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(It)?tt={name:"PhantomJS",phantom:Lt,version:mt(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(It)?tt={name:"SlimerJS",slimer:Lt,version:mt(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(It)||/rim\stablet/i.test(It)?tt={name:"BlackBerry",osname:"BlackBerry OS",blackberry:Lt,version:xe||mt(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:Ft?(tt={name:"WebOS",osname:"WebOS",webos:Lt,version:xe||mt(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(It)&&(tt.touchpad=Lt)):/bada/i.test(It)?tt={name:"Bada",osname:"Bada",bada:Lt,version:mt(/dolfin\/(\d+(\.\d+)?)/i)}:Zt?tt={name:"Tizen",osname:"Tizen",tizen:Lt,version:mt(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||xe}:/qupzilla/i.test(It)?tt={name:"QupZilla",qupzilla:Lt,version:mt(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||xe}:/chromium/i.test(It)?tt={name:"Chromium",chromium:Lt,version:mt(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||xe}:/chrome|crios|crmo/i.test(It)?tt={name:"Chrome",chrome:Lt,version:mt(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:ut?tt={name:"Android",version:xe}:/safari|applewebkit/i.test(It)?(tt={name:"Safari",safari:Lt},xe&&(tt.version=xe)):st?(tt={name:st=="iphone"?"iPhone":st=="ipad"?"iPad":"iPod"},xe&&(tt.version=xe)):tt=/googlebot/i.test(It)?{name:"Googlebot",googlebot:Lt,version:mt(/googlebot\/(\d+(\.\d+))/i)||xe}:{name:mt(/^(.*)\/(.*) /),version:et(/^(.*)\/(.*) /)},!tt.msedge&&/(apple)?webkit/i.test(It)?(/(apple)?webkit\/537\.36/i.test(It)?(tt.name=tt.name||"Blink",tt.blink=Lt):(tt.name=tt.name||"Webkit",tt.webkit=Lt),!tt.version&&xe&&(tt.version=xe)):!tt.opera&&/gecko\//i.test(It)&&(tt.name=tt.name||"Gecko",tt.gecko=Lt,tt.version=tt.version||mt(/gecko\/(\d+(\.\d+)?)/i)),tt.windowsphone||!ut&&!tt.silk?!tt.windowsphone&&st?(tt[st]=Lt,tt.ios=Lt,tt.osname="iOS"):Gt?(tt.mac=Lt,tt.osname="macOS"):me?(tt.xbox=Lt,tt.osname="Xbox"):te?(tt.windows=Lt,tt.osname="Windows"):ce&&(tt.linux=Lt,tt.osname="Linux"):(tt.android=Lt,tt.osname="Android");var He="";tt.windows?He=function($t){switch($t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}(mt(/Windows ((NT|XP)( \d\d?.\d)?)/i)):tt.windowsphone?He=mt(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):tt.mac?(He=mt(/Mac OS X (\d+([_\.\s]\d+)*)/i),He=He.replace(/[_\s]/g,".")):st?(He=mt(/os (\d+([_\s]\d+)*) like mac os x/i),He=He.replace(/[_\s]/g,".")):ut?He=mt(/android[ \/-](\d+(\.\d+)*)/i):tt.webos?He=mt(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):tt.blackberry?He=mt(/rim\stablet\sos\s(\d+(\.\d+)*)/i):tt.bada?He=mt(/bada\/(\d+(\.\d+)*)/i):tt.tizen&&(He=mt(/tizen[\/\s](\d+(\.\d+)*)/i)),He&&(tt.osversion=He);var fe=!tt.windows&&He.split(".")[0];return ye||ft||st=="ipad"||ut&&(fe==3||fe>=4&&!Te)||tt.silk?tt.tablet=Lt:(Te||st=="iphone"||st=="ipod"||ut||ct||tt.blackberry||tt.webos||tt.bada)&&(tt.mobile=Lt),tt.msedge||tt.msie&&tt.version>=10||tt.yandexbrowser&&tt.version>=15||tt.vivaldi&&tt.version>=1||tt.chrome&&tt.version>=20||tt.samsungBrowser&&tt.version>=4||tt.firefox&&tt.version>=20||tt.safari&&tt.version>=6||tt.opera&&tt.version>=10||tt.ios&&tt.osversion&&tt.osversion.split(".")[0]>=6||tt.blackberry&&tt.version>=10.1||tt.chromium&&tt.version>=20?tt.a=Lt:tt.msie&&tt.version<10||tt.chrome&&tt.version<20||tt.firefox&&tt.version<20||tt.safari&&tt.version<6||tt.opera&&tt.version<10||tt.ios&&tt.osversion&&tt.osversion.split(".")[0]<6||tt.chromium&&tt.version<20?tt.c=Lt:tt.x=Lt,tt}function Bt(It){return It.split(".").length}function xt(It,mt){var et,tt=[];if(Array.prototype.map)return Array.prototype.map.call(It,mt);for(et=0;et<It.length;et++)tt.push(mt(It[et]));return tt}function Ot(It){for(var mt=Math.max(Bt(It[0]),Bt(It[1])),et=xt(It,function(tt){var st=mt-Bt(tt);return tt+=new Array(st+1).join(".0"),xt(tt.split("."),function(rt){return new Array(20-rt.length).join("0")+rt}).reverse()});--mt>=0;){if(et[0][mt]>et[1][mt])return 1;if(et[0][mt]!==et[1][mt])return-1;if(mt===0)return 0}}function Rt(It,mt,et){var tt=At;typeof mt=="string"&&(et=mt,mt=void 0),mt===void 0&&(mt=!1),et&&(tt=kt(et));var st=""+tt.version;for(var rt in It)if(It.hasOwnProperty(rt)&&tt[rt]){if(typeof It[rt]!="string")throw new Error("Browser version in the minVersion map should be a string: "+rt+": "+String(It));return Ot([st,It[rt]])<0}return mt}function Ct(It,mt,et){return!Rt(It,mt,et)}var Lt=!0,At=kt(typeof navigator!="undefined"&&navigator.userAgent||"");return At.test=function(It){for(var mt=0;mt<It.length;++mt){var et=It[mt];if(typeof et=="string"&&et in At)return!0}return!1},At.isUnsupportedBrowser=Rt,At.compareVersions=Ot,At.check=Ct,At._detect=kt,At.detect=kt,At})},{}],36:[function(gt,Xt,Qt){},{}],37:[function(gt,Xt,Qt){function kt(At){if(At&&!Ct(At))throw new Error("Unknown encoding: "+At)}function Bt(At){return At.toString(this.encoding)}function xt(At){this.charReceived=At.length%2,this.charLength=this.charReceived?2:0}function Ot(At){this.charReceived=At.length%3,this.charLength=this.charReceived?3:0}var Rt=gt("buffer").Buffer,Ct=Rt.isEncoding||function(At){switch(At&&At.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},Lt=Qt.StringDecoder=function(At){switch(this.encoding=(At||"utf8").toLowerCase().replace(/[-_]/,""),kt(At),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=xt;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=Ot;break;default:return void(this.write=Bt)}this.charBuffer=new Rt(6),this.charReceived=0,this.charLength=0};Lt.prototype.write=function(At){for(var It="";this.charLength;){var mt=At.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:At.length;if(At.copy(this.charBuffer,this.charReceived,0,mt),this.charReceived+=mt,this.charReceived<this.charLength)return"";At=At.slice(mt,At.length),It=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var tt=It.charCodeAt(It.length-1);if(!(tt>=55296&&tt<=56319)){if(this.charReceived=this.charLength=0,At.length===0)return It;break}this.charLength+=this.surrogateSize,It=""}this.detectIncompleteChar(At);var et=At.length;this.charLength&&(At.copy(this.charBuffer,0,At.length-this.charReceived,et),et-=this.charReceived),It+=At.toString(this.encoding,0,et);var et=It.length-1,tt=It.charCodeAt(et);if(tt>=55296&&tt<=56319){var st=this.surrogateSize;return this.charLength+=st,this.charReceived+=st,this.charBuffer.copy(this.charBuffer,st,0,st),At.copy(this.charBuffer,0,0,st),It.substring(0,et)}return It},Lt.prototype.detectIncompleteChar=function(At){for(var It=At.length>=3?3:At.length;It>0;It--){var mt=At[At.length-It];if(It==1&&mt>>5==6){this.charLength=2;break}if(It<=2&&mt>>4==14){this.charLength=3;break}if(It<=3&&mt>>3==30){this.charLength=4;break}}this.charReceived=It},Lt.prototype.end=function(At){var It="";if(At&&At.length&&(It=this.write(At)),this.charReceived){var mt=this.charReceived,et=this.charBuffer,tt=this.encoding;It+=et.slice(0,mt).toString(tt)}return It}},{buffer:38}],38:[function(gt,Xt,Qt){(function(kt){"use strict";function Bt(){return Ot.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function xt(St,wt){if(Bt()<wt)throw new RangeError("Invalid typed array length");return Ot.TYPED_ARRAY_SUPPORT?(St=new Uint8Array(wt),St.__proto__=Ot.prototype):(St===null&&(St=new Ot(wt)),St.length=wt),St}function Ot(St,wt,jt){if(!(Ot.TYPED_ARRAY_SUPPORT||this instanceof Ot))return new Ot(St,wt,jt);if(typeof St=="number"){if(typeof wt=="string")throw new Error("If encoding is specified then the first argument must be a string");return At(this,St)}return Rt(this,St,wt,jt)}function Rt(St,wt,jt,Wt){if(typeof wt=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&wt instanceof ArrayBuffer?et(St,wt,jt,Wt):typeof wt=="string"?It(St,wt,jt):tt(St,wt)}function Ct(St){if(typeof St!="number")throw new TypeError('"size" argument must be a number');if(St<0)throw new RangeError('"size" argument must not be negative')}function Lt(St,wt,jt,Wt){return Ct(wt),wt<=0?xt(St,wt):jt!==void 0?typeof Wt=="string"?xt(St,wt).fill(jt,Wt):xt(St,wt).fill(jt):xt(St,wt)}function At(St,wt){if(Ct(wt),St=xt(St,wt<0?0:0|st(wt)),!Ot.TYPED_ARRAY_SUPPORT)for(var jt=0;jt<wt;++jt)St[jt]=0;return St}function It(St,wt,jt){if(typeof jt=="string"&&jt!==""||(jt="utf8"),!Ot.isEncoding(jt))throw new TypeError('"encoding" must be a valid string encoding');var Wt=0|ut(wt,jt);St=xt(St,Wt);var Vt=St.write(wt,jt);return Vt!==Wt&&(St=St.slice(0,Vt)),St}function mt(St,wt){var jt=wt.length<0?0:0|st(wt.length);St=xt(St,jt);for(var Wt=0;Wt<jt;Wt+=1)St[Wt]=255&wt[Wt];return St}function et(St,wt,jt,Wt){if(wt.byteLength,jt<0||wt.byteLength<jt)throw new RangeError("'offset' is out of bounds");if(wt.byteLength<jt+(Wt||0))throw new RangeError("'length' is out of bounds");return wt=jt===void 0&&Wt===void 0?new Uint8Array(wt):Wt===void 0?new Uint8Array(wt,jt):new Uint8Array(wt,jt,Wt),Ot.TYPED_ARRAY_SUPPORT?(St=wt,St.__proto__=Ot.prototype):St=mt(St,wt),St}function tt(St,wt){if(Ot.isBuffer(wt)){var jt=0|st(wt.length);return St=xt(St,jt),St.length===0||wt.copy(St,0,0,jt),St}if(wt){if(typeof ArrayBuffer!="undefined"&&wt.buffer instanceof ArrayBuffer||"length"in wt)return typeof wt.length!="number"||Tt(wt.length)?xt(St,0):mt(St,wt);if(wt.type==="Buffer"&&Yt(wt.data))return mt(St,wt.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function st(St){if(St>=Bt())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Bt().toString(16)+" bytes");return 0|St}function rt(St){return+St!=St&&(St=0),Ot.alloc(+St)}function ut(St,wt){if(Ot.isBuffer(St))return St.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(St)||St instanceof ArrayBuffer))return St.byteLength;typeof St!="string"&&(St=""+St);var jt=St.length;if(jt===0)return 0;for(var Wt=!1;;)switch(wt){case"ascii":case"latin1":case"binary":return jt;case"utf8":case"utf-8":case void 0:return tn(St).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*jt;case"hex":return jt>>>1;case"base64":return Fe(St).length;default:if(Wt)return tn(St).length;wt=(""+wt).toLowerCase(),Wt=!0}}function ct(St,wt,jt){var Wt=!1;if((wt===void 0||wt<0)&&(wt=0),wt>this.length||((jt===void 0||jt>this.length)&&(jt=this.length),jt<=0)||(jt>>>=0,wt>>>=0,jt<=wt))return"";for(St||(St="utf8");;)switch(St){case"hex":return me(this,wt,jt);case"utf8":case"utf-8":return ae(this,wt,jt);case"ascii":return ye(this,wt,jt);case"latin1":case"binary":return Te(this,wt,jt);case"base64":return ce(this,wt,jt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return He(this,wt,jt);default:if(Wt)throw new TypeError("Unknown encoding: "+St);St=(St+"").toLowerCase(),Wt=!0}}function ft(St,wt,jt){var Wt=St[wt];St[wt]=St[jt],St[jt]=Wt}function pt(St,wt,jt,Wt,Vt){if(St.length===0)return-1;if(typeof jt=="string"?(Wt=jt,jt=0):jt>2147483647?jt=2147483647:jt<-2147483648&&(jt=-2147483648),jt=+jt,isNaN(jt)&&(jt=Vt?0:St.length-1),jt<0&&(jt=St.length+jt),jt>=St.length){if(Vt)return-1;jt=St.length-1}else if(jt<0){if(!Vt)return-1;jt=0}if(typeof wt=="string"&&(wt=Ot.from(wt,Wt)),Ot.isBuffer(wt))return wt.length===0?-1:Pt(St,wt,jt,Wt,Vt);if(typeof wt=="number")return wt&=255,Ot.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Vt?Uint8Array.prototype.indexOf.call(St,wt,jt):Uint8Array.prototype.lastIndexOf.call(St,wt,jt):Pt(St,[wt],jt,Wt,Vt);throw new TypeError("val must be string, number or Buffer")}function Pt(St,wt,jt,Wt,Vt){function oe(Ze,hn){return de===1?Ze[hn]:Ze.readUInt16BE(hn*de)}var de=1,Ge=St.length,Ye=wt.length;if(Wt!==void 0&&((Wt=String(Wt).toLowerCase())==="ucs2"||Wt==="ucs-2"||Wt==="utf16le"||Wt==="utf-16le")){if(St.length<2||wt.length<2)return-1;de=2,Ge/=2,Ye/=2,jt/=2}var Ue;if(Vt){var an=-1;for(Ue=jt;Ue<Ge;Ue++)if(oe(St,Ue)===oe(wt,an===-1?0:Ue-an)){if(an===-1&&(an=Ue),Ue-an+1===Ye)return an*de}else an!==-1&&(Ue-=Ue-an),an=-1}else for(jt+Ye>Ge&&(jt=Ge-Ye),Ue=jt;Ue>=0;Ue--){for(var vn=!0,ke=0;ke<Ye;ke++)if(oe(St,Ue+ke)!==oe(wt,ke)){vn=!1;break}if(vn)return Ue}return-1}function Dt(St,wt,jt,Wt){jt=Number(jt)||0;var Vt=St.length-jt;Wt?(Wt=Number(Wt))>Vt&&(Wt=Vt):Wt=Vt;var oe=wt.length;if(oe%2!=0)throw new TypeError("Invalid hex string");Wt>oe/2&&(Wt=oe/2);for(var de=0;de<Wt;++de){var Ge=parseInt(wt.substr(2*de,2),16);if(isNaN(Ge))return de;St[jt+de]=Ge}return de}function Zt(St,wt,jt,Wt){return le(tn(wt,St.length-jt),St,jt,Wt)}function Ft(St,wt,jt,Wt){return le(Me(wt),St,jt,Wt)}function qt(St,wt,jt,Wt){return Ft(St,wt,jt,Wt)}function te(St,wt,jt,Wt){return le(Fe(wt),St,jt,Wt)}function Gt(St,wt,jt,Wt){return le(Oe(wt,St.length-jt),St,jt,Wt)}function ce(St,wt,jt){return wt===0&&jt===St.length?bt.fromByteArray(St):bt.fromByteArray(St.slice(wt,jt))}function ae(St,wt,jt){jt=Math.min(St.length,jt);for(var Wt=[],Vt=wt;Vt<jt;){var oe=St[Vt],de=null,Ge=oe>239?4:oe>223?3:oe>191?2:1;if(Vt+Ge<=jt){var Ye,Ue,an,vn;switch(Ge){case 1:oe<128&&(de=oe);break;case 2:Ye=St[Vt+1],(192&Ye)==128&&(vn=(31&oe)<<6|63&Ye)>127&&(de=vn);break;case 3:Ye=St[Vt+1],Ue=St[Vt+2],(192&Ye)==128&&(192&Ue)==128&&(vn=(15&oe)<<12|(63&Ye)<<6|63&Ue)>2047&&(vn<55296||vn>57343)&&(de=vn);break;case 4:Ye=St[Vt+1],Ue=St[Vt+2],an=St[Vt+3],(192&Ye)==128&&(192&Ue)==128&&(192&an)==128&&(vn=(15&oe)<<18|(63&Ye)<<12|(63&Ue)<<6|63&an)>65535&&vn<1114112&&(de=vn)}}de===null?(de=65533,Ge=1):de>65535&&(de-=65536,Wt.push(de>>>10&1023|55296),de=56320|1023&de),Wt.push(de),Vt+=Ge}return xe(Wt)}function xe(St){var wt=St.length;if(wt<=Mt)return String.fromCharCode.apply(String,St);for(var jt="",Wt=0;Wt<wt;)jt+=String.fromCharCode.apply(String,St.slice(Wt,Wt+=Mt));return jt}function ye(St,wt,jt){var Wt="";jt=Math.min(St.length,jt);for(var Vt=wt;Vt<jt;++Vt)Wt+=String.fromCharCode(127&St[Vt]);return Wt}function Te(St,wt,jt){var Wt="";jt=Math.min(St.length,jt);for(var Vt=wt;Vt<jt;++Vt)Wt+=String.fromCharCode(St[Vt]);return Wt}function me(St,wt,jt){var Wt=St.length;(!wt||wt<0)&&(wt=0),(!jt||jt<0||jt>Wt)&&(jt=Wt);for(var Vt="",oe=wt;oe<jt;++oe)Vt+=Re(St[oe]);return Vt}function He(St,wt,jt){for(var Wt=St.slice(wt,jt),Vt="",oe=0;oe<Wt.length;oe+=2)Vt+=String.fromCharCode(Wt[oe]+256*Wt[oe+1]);return Vt}function fe(St,wt,jt){if(St%1!=0||St<0)throw new RangeError("offset is not uint");if(St+wt>jt)throw new RangeError("Trying to access beyond buffer length")}function $t(St,wt,jt,Wt,Vt,oe){if(!Ot.isBuffer(St))throw new TypeError('"buffer" argument must be a Buffer instance');if(wt>Vt||wt<oe)throw new RangeError('"value" argument is out of bounds');if(jt+Wt>St.length)throw new RangeError("Index out of range")}function ie(St,wt,jt,Wt){wt<0&&(wt=65535+wt+1);for(var Vt=0,oe=Math.min(St.length-jt,2);Vt<oe;++Vt)St[jt+Vt]=(wt&255<<8*(Wt?Vt:1-Vt))>>>8*(Wt?Vt:1-Vt)}function ue(St,wt,jt,Wt){wt<0&&(wt=4294967295+wt+1);for(var Vt=0,oe=Math.min(St.length-jt,4);Vt<oe;++Vt)St[jt+Vt]=wt>>>8*(Wt?Vt:3-Vt)&255}function ge(St,wt,jt,Wt,Vt,oe){if(jt+Wt>St.length)throw new RangeError("Index out of range");if(jt<0)throw new RangeError("Index out of range")}function he(St,wt,jt,Wt,Vt){return Vt||ge(St,wt,jt,4,34028234663852886e22,-34028234663852886e22),_t.write(St,wt,jt,Wt,23,4),jt+4}function De(St,wt,jt,Wt,Vt){return Vt||ge(St,wt,jt,8,17976931348623157e292,-17976931348623157e292),_t.write(St,wt,jt,Wt,52,8),jt+8}function Ne(St){if(St=$e(St).replace(Ut,""),St.length<2)return"";for(;St.length%4!=0;)St+="=";return St}function $e(St){return St.trim?St.trim():St.replace(/^\s+|\s+$/g,"")}function Re(St){return St<16?"0"+St.toString(16):St.toString(16)}function tn(St,wt){wt=wt||1/0;for(var jt,Wt=St.length,Vt=null,oe=[],de=0;de<Wt;++de){if((jt=St.charCodeAt(de))>55295&&jt<57344){if(!Vt){if(jt>56319){(wt-=3)>-1&&oe.push(239,191,189);continue}if(de+1===Wt){(wt-=3)>-1&&oe.push(239,191,189);continue}Vt=jt;continue}if(jt<56320){(wt-=3)>-1&&oe.push(239,191,189),Vt=jt;continue}jt=65536+(Vt-55296<<10|jt-56320)}else Vt&&(wt-=3)>-1&&oe.push(239,191,189);if(Vt=null,jt<128){if((wt-=1)<0)break;oe.push(jt)}else if(jt<2048){if((wt-=2)<0)break;oe.push(jt>>6|192,63&jt|128)}else if(jt<65536){if((wt-=3)<0)break;oe.push(jt>>12|224,jt>>6&63|128,63&jt|128)}else{if(!(jt<1114112))throw new Error("Invalid code point");if((wt-=4)<0)break;oe.push(jt>>18|240,jt>>12&63|128,jt>>6&63|128,63&jt|128)}}return oe}function Me(St){for(var wt=[],jt=0;jt<St.length;++jt)wt.push(255&St.charCodeAt(jt));return wt}function Oe(St,wt){for(var jt,Wt,Vt,oe=[],de=0;de<St.length&&!((wt-=2)<0);++de)jt=St.charCodeAt(de),Wt=jt>>8,Vt=jt%256,oe.push(Vt),oe.push(Wt);return oe}function Fe(St){return bt.toByteArray(Ne(St))}function le(St,wt,jt,Wt){for(var Vt=0;Vt<Wt&&!(Vt+jt>=wt.length||Vt>=St.length);++Vt)wt[Vt+jt]=St[Vt];return Vt}function Tt(St){return St!==St}var bt=gt("base64-js"),_t=gt("ieee754"),Yt=gt("isarray");Qt.Buffer=Ot,Qt.SlowBuffer=rt,Qt.INSPECT_MAX_BYTES=50,Ot.TYPED_ARRAY_SUPPORT=kt.TYPED_ARRAY_SUPPORT!==void 0?kt.TYPED_ARRAY_SUPPORT:function(){try{var St=new Uint8Array(1);return St.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},St.foo()===42&&typeof St.subarray=="function"&&St.subarray(1,1).byteLength===0}catch(wt){return!1}}(),Qt.kMaxLength=Bt(),Ot.poolSize=8192,Ot._augment=function(St){return St.__proto__=Ot.prototype,St},Ot.from=function(St,wt,jt){return Rt(null,St,wt,jt)},Ot.TYPED_ARRAY_SUPPORT&&(Ot.prototype.__proto__=Uint8Array.prototype,Ot.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&Ot[Symbol.species]===Ot&&Object.defineProperty(Ot,Symbol.species,{value:null,configurable:!0})),Ot.alloc=function(St,wt,jt){return Lt(null,St,wt,jt)},Ot.allocUnsafe=function(St){return At(null,St)},Ot.allocUnsafeSlow=function(St){return At(null,St)},Ot.isBuffer=function(St){return!(St==null||!St._isBuffer)},Ot.compare=function(St,wt){if(!Ot.isBuffer(St)||!Ot.isBuffer(wt))throw new TypeError("Arguments must be Buffers");if(St===wt)return 0;for(var jt=St.length,Wt=wt.length,Vt=0,oe=Math.min(jt,Wt);Vt<oe;++Vt)if(St[Vt]!==wt[Vt]){jt=St[Vt],Wt=wt[Vt];break}return jt<Wt?-1:Wt<jt?1:0},Ot.isEncoding=function(St){switch(String(St).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Ot.concat=function(St,wt){if(!Yt(St))throw new TypeError('"list" argument must be an Array of Buffers');if(St.length===0)return Ot.alloc(0);var jt;if(wt===void 0)for(wt=0,jt=0;jt<St.length;++jt)wt+=St[jt].length;var Wt=Ot.allocUnsafe(wt),Vt=0;for(jt=0;jt<St.length;++jt){var oe=St[jt];if(!Ot.isBuffer(oe))throw new TypeError('"list" argument must be an Array of Buffers');oe.copy(Wt,Vt),Vt+=oe.length}return Wt},Ot.byteLength=ut,Ot.prototype._isBuffer=!0,Ot.prototype.swap16=function(){var St=this.length;if(St%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var wt=0;wt<St;wt+=2)ft(this,wt,wt+1);return this},Ot.prototype.swap32=function(){var St=this.length;if(St%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var wt=0;wt<St;wt+=4)ft(this,wt,wt+3),ft(this,wt+1,wt+2);return this},Ot.prototype.swap64=function(){var St=this.length;if(St%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var wt=0;wt<St;wt+=8)ft(this,wt,wt+7),ft(this,wt+1,wt+6),ft(this,wt+2,wt+5),ft(this,wt+3,wt+4);return this},Ot.prototype.toString=function(){var St=0|this.length;return St===0?"":arguments.length===0?ae(this,0,St):ct.apply(this,arguments)},Ot.prototype.equals=function(St){if(!Ot.isBuffer(St))throw new TypeError("Argument must be a Buffer");return this===St||Ot.compare(this,St)===0},Ot.prototype.inspect=function(){var St="",wt=Qt.INSPECT_MAX_BYTES;return this.length>0&&(St=this.toString("hex",0,wt).match(/.{2}/g).join(" "),this.length>wt&&(St+=" ... ")),"<Buffer "+St+">"},Ot.prototype.compare=function(St,wt,jt,Wt,Vt){if(!Ot.isBuffer(St))throw new TypeError("Argument must be a Buffer");if(wt===void 0&&(wt=0),jt===void 0&&(jt=St?St.length:0),Wt===void 0&&(Wt=0),Vt===void 0&&(Vt=this.length),wt<0||jt>St.length||Wt<0||Vt>this.length)throw new RangeError("out of range index");if(Wt>=Vt&&wt>=jt)return 0;if(Wt>=Vt)return-1;if(wt>=jt)return 1;if(wt>>>=0,jt>>>=0,Wt>>>=0,Vt>>>=0,this===St)return 0;for(var oe=Vt-Wt,de=jt-wt,Ge=Math.min(oe,de),Ye=this.slice(Wt,Vt),Ue=St.slice(wt,jt),an=0;an<Ge;++an)if(Ye[an]!==Ue[an]){oe=Ye[an],de=Ue[an];break}return oe<de?-1:de<oe?1:0},Ot.prototype.includes=function(St,wt,jt){return this.indexOf(St,wt,jt)!==-1},Ot.prototype.indexOf=function(St,wt,jt){return pt(this,St,wt,jt,!0)},Ot.prototype.lastIndexOf=function(St,wt,jt){return pt(this,St,wt,jt,!1)},Ot.prototype.write=function(St,wt,jt,Wt){if(wt===void 0)Wt="utf8",jt=this.length,wt=0;else if(jt===void 0&&typeof wt=="string")Wt=wt,jt=this.length,wt=0;else{if(!isFinite(wt))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");wt|=0,isFinite(jt)?(jt|=0,Wt===void 0&&(Wt="utf8")):(Wt=jt,jt=void 0)}var Vt=this.length-wt;if((jt===void 0||jt>Vt)&&(jt=Vt),St.length>0&&(jt<0||wt<0)||wt>this.length)throw new RangeError("Attempt to write outside buffer bounds");Wt||(Wt="utf8");for(var oe=!1;;)switch(Wt){case"hex":return Dt(this,St,wt,jt);case"utf8":case"utf-8":return Zt(this,St,wt,jt);case"ascii":return Ft(this,St,wt,jt);case"latin1":case"binary":return qt(this,St,wt,jt);case"base64":return te(this,St,wt,jt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Gt(this,St,wt,jt);default:if(oe)throw new TypeError("Unknown encoding: "+Wt);Wt=(""+Wt).toLowerCase(),oe=!0}},Ot.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Mt=4096;Ot.prototype.slice=function(St,wt){var jt=this.length;St=~~St,wt=wt===void 0?jt:~~wt,St<0?(St+=jt)<0&&(St=0):St>jt&&(St=jt),wt<0?(wt+=jt)<0&&(wt=0):wt>jt&&(wt=jt),wt<St&&(wt=St);var Wt;if(Ot.TYPED_ARRAY_SUPPORT)Wt=this.subarray(St,wt),Wt.__proto__=Ot.prototype;else{var Vt=wt-St;Wt=new Ot(Vt,void 0);for(var oe=0;oe<Vt;++oe)Wt[oe]=this[oe+St]}return Wt},Ot.prototype.readUIntLE=function(St,wt,jt){St|=0,wt|=0,jt||fe(St,wt,this.length);for(var Wt=this[St],Vt=1,oe=0;++oe<wt&&(Vt*=256);)Wt+=this[St+oe]*Vt;return Wt},Ot.prototype.readUIntBE=function(St,wt,jt){St|=0,wt|=0,jt||fe(St,wt,this.length);for(var Wt=this[St+--wt],Vt=1;wt>0&&(Vt*=256);)Wt+=this[St+--wt]*Vt;return Wt},Ot.prototype.readUInt8=function(St,wt){return wt||fe(St,1,this.length),this[St]},Ot.prototype.readUInt16LE=function(St,wt){return wt||fe(St,2,this.length),this[St]|this[St+1]<<8},Ot.prototype.readUInt16BE=function(St,wt){return wt||fe(St,2,this.length),this[St]<<8|this[St+1]},Ot.prototype.readUInt32LE=function(St,wt){return wt||fe(St,4,this.length),(this[St]|this[St+1]<<8|this[St+2]<<16)+16777216*this[St+3]},Ot.prototype.readUInt32BE=function(St,wt){return wt||fe(St,4,this.length),16777216*this[St]+(this[St+1]<<16|this[St+2]<<8|this[St+3])},Ot.prototype.readIntLE=function(St,wt,jt){St|=0,wt|=0,jt||fe(St,wt,this.length);for(var Wt=this[St],Vt=1,oe=0;++oe<wt&&(Vt*=256);)Wt+=this[St+oe]*Vt;return Vt*=128,Wt>=Vt&&(Wt-=Math.pow(2,8*wt)),Wt},Ot.prototype.readIntBE=function(St,wt,jt){St|=0,wt|=0,jt||fe(St,wt,this.length);for(var Wt=wt,Vt=1,oe=this[St+--Wt];Wt>0&&(Vt*=256);)oe+=this[St+--Wt]*Vt;return Vt*=128,oe>=Vt&&(oe-=Math.pow(2,8*wt)),oe},Ot.prototype.readInt8=function(St,wt){return wt||fe(St,1,this.length),128&this[St]?-1*(255-this[St]+1):this[St]},Ot.prototype.readInt16LE=function(St,wt){wt||fe(St,2,this.length);var jt=this[St]|this[St+1]<<8;return 32768&jt?4294901760|jt:jt},Ot.prototype.readInt16BE=function(St,wt){wt||fe(St,2,this.length);var jt=this[St+1]|this[St]<<8;return 32768&jt?4294901760|jt:jt},Ot.prototype.readInt32LE=function(St,wt){return wt||fe(St,4,this.length),this[St]|this[St+1]<<8|this[St+2]<<16|this[St+3]<<24},Ot.prototype.readInt32BE=function(St,wt){return wt||fe(St,4,this.length),this[St]<<24|this[St+1]<<16|this[St+2]<<8|this[St+3]},Ot.prototype.readFloatLE=function(St,wt){return wt||fe(St,4,this.length),_t.read(this,St,!0,23,4)},Ot.prototype.readFloatBE=function(St,wt){return wt||fe(St,4,this.length),_t.read(this,St,!1,23,4)},Ot.prototype.readDoubleLE=function(St,wt){return wt||fe(St,8,this.length),_t.read(this,St,!0,52,8)},Ot.prototype.readDoubleBE=function(St,wt){return wt||fe(St,8,this.length),_t.read(this,St,!1,52,8)},Ot.prototype.writeUIntLE=function(St,wt,jt,Wt){St=+St,wt|=0,jt|=0,!Wt&&$t(this,St,wt,jt,Math.pow(2,8*jt)-1,0);var Vt=1,oe=0;for(this[wt]=255&St;++oe<jt&&(Vt*=256);)this[wt+oe]=St/Vt&255;return wt+jt},Ot.prototype.writeUIntBE=function(St,wt,jt,Wt){St=+St,wt|=0,jt|=0,!Wt&&$t(this,St,wt,jt,Math.pow(2,8*jt)-1,0);var Vt=jt-1,oe=1;for(this[wt+Vt]=255&St;--Vt>=0&&(oe*=256);)this[wt+Vt]=St/oe&255;return wt+jt},Ot.prototype.writeUInt8=function(St,wt,jt){return St=+St,wt|=0,jt||$t(this,St,wt,1,255,0),Ot.TYPED_ARRAY_SUPPORT||(St=Math.floor(St)),this[wt]=255&St,wt+1},Ot.prototype.writeUInt16LE=function(St,wt,jt){return St=+St,wt|=0,jt||$t(this,St,wt,2,65535,0),Ot.TYPED_ARRAY_SUPPORT?(this[wt]=255&St,this[wt+1]=St>>>8):ie(this,St,wt,!0),wt+2},Ot.prototype.writeUInt16BE=function(St,wt,jt){return St=+St,wt|=0,jt||$t(this,St,wt,2,65535,0),Ot.TYPED_ARRAY_SUPPORT?(this[wt]=St>>>8,this[wt+1]=255&St):ie(this,St,wt,!1),wt+2},Ot.prototype.writeUInt32LE=function(St,wt,jt){return St=+St,wt|=0,jt||$t(this,St,wt,4,4294967295,0),Ot.TYPED_ARRAY_SUPPORT?(this[wt+3]=St>>>24,this[wt+2]=St>>>16,this[wt+1]=St>>>8,this[wt]=255&St):ue(this,St,wt,!0),wt+4},Ot.prototype.writeUInt32BE=function(St,wt,jt){return St=+St,wt|=0,jt||$t(this,St,wt,4,4294967295,0),Ot.TYPED_ARRAY_SUPPORT?(this[wt]=St>>>24,this[wt+1]=St>>>16,this[wt+2]=St>>>8,this[wt+3]=255&St):ue(this,St,wt,!1),wt+4},Ot.prototype.writeIntLE=function(St,wt,jt,Wt){if(St=+St,wt|=0,!Wt){var Vt=Math.pow(2,8*jt-1);$t(this,St,wt,jt,Vt-1,-Vt)}var oe=0,de=1,Ge=0;for(this[wt]=255&St;++oe<jt&&(de*=256);)St<0&&Ge===0&&this[wt+oe-1]!==0&&(Ge=1),this[wt+oe]=(St/de>>0)-Ge&255;return wt+jt},Ot.prototype.writeIntBE=function(St,wt,jt,Wt){if(St=+St,wt|=0,!Wt){var Vt=Math.pow(2,8*jt-1);$t(this,St,wt,jt,Vt-1,-Vt)}var oe=jt-1,de=1,Ge=0;for(this[wt+oe]=255&St;--oe>=0&&(de*=256);)St<0&&Ge===0&&this[wt+oe+1]!==0&&(Ge=1),this[wt+oe]=(St/de>>0)-Ge&255;return wt+jt},Ot.prototype.writeInt8=function(St,wt,jt){return St=+St,wt|=0,jt||$t(this,St,wt,1,127,-128),Ot.TYPED_ARRAY_SUPPORT||(St=Math.floor(St)),St<0&&(St=255+St+1),this[wt]=255&St,wt+1},Ot.prototype.writeInt16LE=function(St,wt,jt){return St=+St,wt|=0,jt||$t(this,St,wt,2,32767,-32768),Ot.TYPED_ARRAY_SUPPORT?(this[wt]=255&St,this[wt+1]=St>>>8):ie(this,St,wt,!0),wt+2},Ot.prototype.writeInt16BE=function(St,wt,jt){return St=+St,wt|=0,jt||$t(this,St,wt,2,32767,-32768),Ot.TYPED_ARRAY_SUPPORT?(this[wt]=St>>>8,this[wt+1]=255&St):ie(this,St,wt,!1),wt+2},Ot.prototype.writeInt32LE=function(St,wt,jt){return St=+St,wt|=0,jt||$t(this,St,wt,4,2147483647,-2147483648),Ot.TYPED_ARRAY_SUPPORT?(this[wt]=255&St,this[wt+1]=St>>>8,this[wt+2]=St>>>16,this[wt+3]=St>>>24):ue(this,St,wt,!0),wt+4},Ot.prototype.writeInt32BE=function(St,wt,jt){return St=+St,wt|=0,jt||$t(this,St,wt,4,2147483647,-2147483648),St<0&&(St=4294967295+St+1),Ot.TYPED_ARRAY_SUPPORT?(this[wt]=St>>>24,this[wt+1]=St>>>16,this[wt+2]=St>>>8,this[wt+3]=255&St):ue(this,St,wt,!1),wt+4},Ot.prototype.writeFloatLE=function(St,wt,jt){return he(this,St,wt,!0,jt)},Ot.prototype.writeFloatBE=function(St,wt,jt){return he(this,St,wt,!1,jt)},Ot.prototype.writeDoubleLE=function(St,wt,jt){return De(this,St,wt,!0,jt)},Ot.prototype.writeDoubleBE=function(St,wt,jt){return De(this,St,wt,!1,jt)},Ot.prototype.copy=function(St,wt,jt,Wt){if(jt||(jt=0),Wt||Wt===0||(Wt=this.length),wt>=St.length&&(wt=St.length),wt||(wt=0),Wt>0&&Wt<jt&&(Wt=jt),Wt===jt||St.length===0||this.length===0)return 0;if(wt<0)throw new RangeError("targetStart out of bounds");if(jt<0||jt>=this.length)throw new RangeError("sourceStart out of bounds");if(Wt<0)throw new RangeError("sourceEnd out of bounds");Wt>this.length&&(Wt=this.length),St.length-wt<Wt-jt&&(Wt=St.length-wt+jt);var Vt,oe=Wt-jt;if(this===St&&jt<wt&&wt<Wt)for(Vt=oe-1;Vt>=0;--Vt)St[Vt+wt]=this[Vt+jt];else if(oe<1e3||!Ot.TYPED_ARRAY_SUPPORT)for(Vt=0;Vt<oe;++Vt)St[Vt+wt]=this[Vt+jt];else Uint8Array.prototype.set.call(St,this.subarray(jt,jt+oe),wt);return oe},Ot.prototype.fill=function(St,wt,jt,Wt){if(typeof St=="string"){if(typeof wt=="string"?(Wt=wt,wt=0,jt=this.length):typeof jt=="string"&&(Wt=jt,jt=this.length),St.length===1){var Vt=St.charCodeAt(0);Vt<256&&(St=Vt)}if(Wt!==void 0&&typeof Wt!="string")throw new TypeError("encoding must be a string");if(typeof Wt=="string"&&!Ot.isEncoding(Wt))throw new TypeError("Unknown encoding: "+Wt)}else typeof St=="number"&&(St&=255);if(wt<0||this.length<wt||this.length<jt)throw new RangeError("Out of range index");if(jt<=wt)return this;wt>>>=0,jt=jt===void 0?this.length:jt>>>0,St||(St=0);var oe;if(typeof St=="number")for(oe=wt;oe<jt;++oe)this[oe]=St;else{var de=Ot.isBuffer(St)?St:tn(new Ot(St,Wt).toString()),Ge=de.length;for(oe=0;oe<jt-wt;++oe)this[oe+wt]=de[oe%Ge]}return this};var Ut=/[^+\/0-9A-Za-z-_]/g}).call(this,typeof Kt.g!="undefined"?Kt.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"base64-js":34,ieee754:161,isarray:166}],39:[function(gt,Xt,Qt){Xt.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],40:[function(gt,Xt,Qt){"use strict";var kt=function(){this.buffer=[],this.fns=[]};kt.prototype.push=function(xt,Ot){if(this.fns.length)return this.fns.shift()(null,xt);var Rt={data:xt,priority:Ot},Ct=Bt(this.buffer,Rt,function(Lt){return Lt.priority});this.buffer.splice(Ct,0,Rt)},kt.prototype.next=function(){var xt=this;return function(Ot){if(xt.buffer.length)return Ot(null,xt.buffer.pop().data);xt.fns.push(Ot)}};var Bt=function(xt,Ot,Rt){Ot=Rt(Ot);for(var Ct=0,Lt=xt?xt.length:Ct;Ct<Lt;){var At=Ct+Lt>>>1;Rt(xt[At])<Ot?Ct=At+1:Lt=At}return Ct};Xt.exports=kt},{}],41:[function(gt,Xt,Qt){function kt(et){var tt=this,st=mt.call(arguments,1);return new Promise(function(rt,ut){function ct(Pt){var Dt;try{Dt=et.next(Pt)}catch(Zt){return ut(Zt)}pt(Dt)}function ft(Pt){var Dt;try{Dt=et.throw(Pt)}catch(Zt){return ut(Zt)}pt(Dt)}function pt(Pt){if(Pt.done)return rt(Pt.value);var Dt=Bt.call(tt,Pt.value);return Dt&&Ct(Dt)?Dt.then(ct,ft):ft(new TypeError('You may only yield a function, promise, generator, array, or object, but the following object was passed: "'+String(Pt.value)+'"'))}if(typeof et=="function"&&(et=et.apply(tt,st)),!et||typeof et.next!="function")return rt(et);ct()})}function Bt(et){return et&&(Ct(et)?et:At(et)||Lt(et)?kt.call(this,et):typeof et=="function"?xt.call(this,et):Array.isArray(et)?Ot.call(this,et):It(et)?Rt.call(this,et):et)}function xt(et){var tt=this;return new Promise(function(st,rt){et.call(tt,function(ut,ct){if(ut)return rt(ut);arguments.length>2&&(ct=mt.call(arguments,1)),st(ct)})})}function Ot(et){return Promise.all(et.map(Bt,this))}function Rt(et){for(var tt=new et.constructor,st=Object.keys(et),rt=[],ut=0;ut<st.length;ut++){var ct=st[ut],ft=Bt.call(this,et[ct]);ft&&Ct(ft)?function(pt,Pt){tt[Pt]=void 0,rt.push(pt.then(function(Dt){tt[Pt]=Dt}))}(ft,ct):tt[ct]=et[ct]}return Promise.all(rt).then(function(){return tt})}function Ct(et){return typeof et.then=="function"}function Lt(et){return typeof et.next=="function"&&typeof et.throw=="function"}function At(et){var tt=et.constructor;return!!tt&&(tt.name==="GeneratorFunction"||tt.displayName==="GeneratorFunction"||Lt(tt.prototype))}function It(et){return Object==et.constructor}var mt=Array.prototype.slice;Xt.exports=kt.default=kt.co=kt,kt.wrap=function(et){function tt(){return kt.call(this,et.apply(this,arguments))}return tt.__generatorFunction__=et,tt}},{}],42:[function(gt,Xt,Qt){Xt.exports={O_RDONLY:0,O_WRONLY:1,O_RDWR:2,S_IFMT:61440,S_IFREG:32768,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960,S_IFSOCK:49152,O_CREAT:512,O_EXCL:2048,O_NOCTTY:131072,O_TRUNC:1024,O_APPEND:8,O_DIRECTORY:1048576,O_NOFOLLOW:256,O_SYNC:128,O_SYMLINK:2097152,O_NONBLOCK:4,S_IRWXU:448,S_IRUSR:256,S_IWUSR:128,S_IXUSR:64,S_IRWXG:56,S_IRGRP:32,S_IWGRP:16,S_IXGRP:8,S_IRWXO:7,S_IROTH:4,S_IWOTH:2,S_IXOTH:1,E2BIG:7,EACCES:13,EADDRINUSE:48,EADDRNOTAVAIL:49,EAFNOSUPPORT:47,EAGAIN:35,EALREADY:37,EBADF:9,EBADMSG:94,EBUSY:16,ECANCELED:89,ECHILD:10,ECONNABORTED:53,ECONNREFUSED:61,ECONNRESET:54,EDEADLK:11,EDESTADDRREQ:39,EDOM:33,EDQUOT:69,EEXIST:17,EFAULT:14,EFBIG:27,EHOSTUNREACH:65,EIDRM:90,EILSEQ:92,EINPROGRESS:36,EINTR:4,EINVAL:22,EIO:5,EISCONN:56,EISDIR:21,ELOOP:62,EMFILE:24,EMLINK:31,EMSGSIZE:40,EMULTIHOP:95,ENAMETOOLONG:63,ENETDOWN:50,ENETRESET:52,ENETUNREACH:51,ENFILE:23,ENOBUFS:55,ENODATA:96,ENODEV:19,ENOENT:2,ENOEXEC:8,ENOLCK:77,ENOLINK:97,ENOMEM:12,ENOMSG:91,ENOPROTOOPT:42,ENOSPC:28,ENOSR:98,ENOSTR:99,ENOSYS:78,ENOTCONN:57,ENOTDIR:20,ENOTEMPTY:66,ENOTSOCK:38,ENOTSUP:45,ENOTTY:25,ENXIO:6,EOPNOTSUPP:102,EOVERFLOW:84,EPERM:1,EPIPE:32,EPROTO:100,EPROTONOSUPPORT:43,EPROTOTYPE:41,ERANGE:34,EROFS:30,ESPIPE:29,ESRCH:3,ESTALE:70,ETIME:101,ETIMEDOUT:60,ETXTBSY:26,EWOULDBLOCK:35,EXDEV:18,SIGHUP:1,SIGINT:2,SIGQUIT:3,SIGILL:4,SIGTRAP:5,SIGABRT:6,SIGIOT:6,SIGBUS:10,SIGFPE:8,SIGKILL:9,SIGUSR1:30,SIGSEGV:11,SIGUSR2:31,SIGPIPE:13,SIGALRM:14,SIGTERM:15,SIGCHLD:20,SIGCONT:19,SIGSTOP:17,SIGTSTP:18,SIGTTIN:21,SIGTTOU:22,SIGURG:16,SIGXCPU:24,SIGXFSZ:25,SIGVTALRM:26,SIGPROF:27,SIGWINCH:28,SIGIO:23,SIGSYS:12,SSL_OP_ALL:2147486719,SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION:262144,SSL_OP_CIPHER_SERVER_PREFERENCE:4194304,SSL_OP_CISCO_ANYCONNECT:32768,SSL_OP_COOKIE_EXCHANGE:8192,SSL_OP_CRYPTOPRO_TLSEXT_BUG:2147483648,SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS:2048,SSL_OP_EPHEMERAL_RSA:0,SSL_OP_LEGACY_SERVER_CONNECT:4,SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER:32,SSL_OP_MICROSOFT_SESS_ID_BUG:1,SSL_OP_MSIE_SSLV2_RSA_PADDING:0,SSL_OP_NETSCAPE_CA_DN_BUG:536870912,SSL_OP_NETSCAPE_CHALLENGE_BUG:2,SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG:1073741824,SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG:8,SSL_OP_NO_COMPRESSION:131072,SSL_OP_NO_QUERY_MTU:4096,SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION:65536,SSL_OP_NO_SSLv2:16777216,SSL_OP_NO_SSLv3:33554432,SSL_OP_NO_TICKET:16384,SSL_OP_NO_TLSv1:67108864,SSL_OP_NO_TLSv1_1:268435456,SSL_OP_NO_TLSv1_2:134217728,SSL_OP_PKCS1_CHECK_1:0,SSL_OP_PKCS1_CHECK_2:0,SSL_OP_SINGLE_DH_USE:1048576,SSL_OP_SINGLE_ECDH_USE:524288,SSL_OP_SSLEAY_080_CLIENT_DH_BUG:128,SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG:0,SSL_OP_TLS_BLOCK_PADDING_BUG:512,SSL_OP_TLS_D5_BUG:256,SSL_OP_TLS_ROLLBACK_BUG:8388608,ENGINE_METHOD_DSA:2,ENGINE_METHOD_DH:4,ENGINE_METHOD_RAND:8,ENGINE_METHOD_ECDH:16,ENGINE_METHOD_ECDSA:32,ENGINE_METHOD_CIPHERS:64,ENGINE_METHOD_DIGESTS:128,ENGINE_METHOD_STORE:256,ENGINE_METHOD_PKEY_METHS:512,ENGINE_METHOD_PKEY_ASN1_METHS:1024,ENGINE_METHOD_ALL:65535,ENGINE_METHOD_NONE:0,DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6,F_OK:0,R_OK:4,W_OK:2,X_OK:1,UV_UDP_REUSEADDR:4}},{}],43:[function(gt,Xt,Qt){"use strict";function kt(Ot,Rt){if(!(this instanceof kt))return new kt(Ot,Rt);this.src=Ot,this._withAccess=Rt}function Bt(Ot,Rt){return Ot[Rt]===void 0&&Ot.__lookupGetter__(Rt)===void 0&&Ot.__lookupSetter__(Rt)===void 0}var xt=Array.prototype.slice;Xt.exports=kt,kt.prototype.withAccess=function(Ot){return this._withAccess=Ot!==!1,this},kt.prototype.pick=function(Ot){return Array.isArray(Ot)||(Ot=xt.call(arguments)),Ot.length&&(this.keys=Ot),this},kt.prototype.to=function(Ot){if(Ot=Ot||{},!this.src)return Ot;var Rt=this.keys||Object.keys(this.src);if(!this._withAccess){for(var Ct=0;Ct<Rt.length;Ct++)Lt=Rt[Ct],Ot[Lt]===void 0&&(Ot[Lt]=this.src[Lt]);return Ot}for(var Ct=0;Ct<Rt.length;Ct++){var Lt=Rt[Ct];if(Bt(Ot,Lt)){var At=this.src.__lookupGetter__(Lt),It=this.src.__lookupSetter__(Lt);At&&Ot.__defineGetter__(Lt,At),It&&Ot.__defineSetter__(Lt,It),At||It||(Ot[Lt]=this.src[Lt])}}return Ot},kt.prototype.toCover=function(Ot){for(var Rt=this.keys||Object.keys(this.src),Ct=0;Ct<Rt.length;Ct++){var Lt=Rt[Ct];delete Ot[Lt];var At=this.src.__lookupGetter__(Lt),It=this.src.__lookupSetter__(Lt);At&&Ot.__defineGetter__(Lt,At),It&&Ot.__defineSetter__(Lt,It),At||It||(Ot[Lt]=this.src[Lt])}},kt.prototype.override=kt.prototype.toCover,kt.prototype.and=function(Ot){var Rt={};return this.to(Rt),this.src=Ot,this.to(Rt),this.src=Rt,this}},{}],44:[function(gt,Xt,Qt){gt("../../modules/es6.string.iterator"),gt("../../modules/es6.array.from"),Xt.exports=gt("../../modules/_core").Array.from},{"../../modules/_core":65,"../../modules/es6.array.from":133,"../../modules/es6.string.iterator":145}],45:[function(gt,Xt,Qt){var kt=gt("../../modules/_core"),Bt=kt.JSON||(kt.JSON={stringify:JSON.stringify});Xt.exports=function(xt){return Bt.stringify.apply(Bt,arguments)}},{"../../modules/_core":65}],46:[function(gt,Xt,Qt){gt("../../modules/es6.object.assign"),Xt.exports=gt("../../modules/_core").Object.assign},{"../../modules/_core":65,"../../modules/es6.object.assign":136}],47:[function(gt,Xt,Qt){gt("../../modules/es6.object.create");var kt=gt("../../modules/_core").Object;Xt.exports=function(Bt,xt){return kt.create(Bt,xt)}},{"../../modules/_core":65,"../../modules/es6.object.create":137}],48:[function(gt,Xt,Qt){gt("../../modules/es6.object.define-property");var kt=gt("../../modules/_core").Object;Xt.exports=function(Bt,xt,Ot){return kt.defineProperty(Bt,xt,Ot)}},{"../../modules/_core":65,"../../modules/es6.object.define-property":138}],49:[function(gt,Xt,Qt){gt("../../modules/es6.object.get-own-property-names");var kt=gt("../../modules/_core").Object;Xt.exports=function(Bt){return kt.getOwnPropertyNames(Bt)}},{"../../modules/_core":65,"../../modules/es6.object.get-own-property-names":139}],50:[function(gt,Xt,Qt){gt("../../modules/es6.object.get-prototype-of"),Xt.exports=gt("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":65,"../../modules/es6.object.get-prototype-of":140}],51:[function(gt,Xt,Qt){gt("../../modules/es6.object.keys"),Xt.exports=gt("../../modules/_core").Object.keys},{"../../modules/_core":65,"../../modules/es6.object.keys":141}],52:[function(gt,Xt,Qt){gt("../modules/es6.object.to-string"),gt("../modules/es6.string.iterator"),gt("../modules/web.dom.iterable"),gt("../modules/es6.promise"),gt("../modules/es7.promise.finally"),gt("../modules/es7.promise.try"),Xt.exports=gt("../modules/_core").Promise},{"../modules/_core":65,"../modules/es6.object.to-string":142,"../modules/es6.promise":143,"../modules/es6.string.iterator":145,"../modules/es7.promise.finally":147,"../modules/es7.promise.try":148,"../modules/web.dom.iterable":151}],53:[function(gt,Xt,Qt){gt("../modules/web.immediate"),Xt.exports=gt("../modules/_core").setImmediate},{"../modules/_core":65,"../modules/web.immediate":152}],54:[function(gt,Xt,Qt){gt("../../modules/es6.string.from-code-point"),Xt.exports=gt("../../modules/_core").String.fromCodePoint},{"../../modules/_core":65,"../../modules/es6.string.from-code-point":144}],55:[function(gt,Xt,Qt){gt("../../modules/es6.function.has-instance"),Xt.exports=gt("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":130,"../../modules/es6.function.has-instance":135}],56:[function(gt,Xt,Qt){gt("../../modules/es6.symbol"),gt("../../modules/es6.object.to-string"),gt("../../modules/es7.symbol.async-iterator"),gt("../../modules/es7.symbol.observable"),Xt.exports=gt("../../modules/_core").Symbol},{"../../modules/_core":65,"../../modules/es6.object.to-string":142,"../../modules/es6.symbol":146,"../../modules/es7.symbol.async-iterator":149,"../../modules/es7.symbol.observable":150}],57:[function(gt,Xt,Qt){gt("../../modules/es6.string.iterator"),gt("../../modules/web.dom.iterable"),Xt.exports=gt("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":130,"../../modules/es6.string.iterator":145,"../../modules/web.dom.iterable":151}],58:[function(gt,Xt,Qt){Xt.exports=function(kt){if(typeof kt!="function")throw TypeError(kt+" is not a function!");return kt}},{}],59:[function(gt,Xt,Qt){Xt.exports=function(){}},{}],60:[function(gt,Xt,Qt){Xt.exports=function(kt,Bt,xt,Ot){if(!(kt instanceof Bt)||Ot!==void 0&&Ot in kt)throw TypeError(xt+": incorrect invocation!");return kt}},{}],61:[function(gt,Xt,Qt){var kt=gt("./_is-object");Xt.exports=function(Bt){if(!kt(Bt))throw TypeError(Bt+" is not an object!");return Bt}},{"./_is-object":85}],62:[function(gt,Xt,Qt){var kt=gt("./_to-iobject"),Bt=gt("./_to-length"),xt=gt("./_to-absolute-index");Xt.exports=function(Ot){return function(Rt,Ct,Lt){var At,It=kt(Rt),mt=Bt(It.length),et=xt(Lt,mt);if(Ot&&Ct!=Ct){for(;mt>et;)if((At=It[et++])!=At)return!0}else for(;mt>et;et++)if((Ot||et in It)&&It[et]===Ct)return Ot||et||0;return!Ot&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(gt,Xt,Qt){var kt=gt("./_cof"),Bt=gt("./_wks")("toStringTag"),xt=kt(function(){return arguments}())=="Arguments",Ot=function(Rt,Ct){try{return Rt[Ct]}catch(Lt){}};Xt.exports=function(Rt){var Ct,Lt,At;return Rt===void 0?"Undefined":Rt===null?"Null":typeof(Lt=Ot(Ct=Object(Rt),Bt))=="string"?Lt:xt?kt(Ct):(At=kt(Ct))=="Object"&&typeof Ct.callee=="function"?"Arguments":At}},{"./_cof":64,"./_wks":131}],64:[function(gt,Xt,Qt){var kt={}.toString;Xt.exports=function(Bt){return kt.call(Bt).slice(8,-1)}},{}],65:[function(gt,Xt,Qt){var kt=Xt.exports={version:"2.5.7"};typeof __e=="number"&&(__e=kt)},{}],66:[function(gt,Xt,Qt){"use strict";var kt=gt("./_object-dp"),Bt=gt("./_property-desc");Xt.exports=function(xt,Ot,Rt){Ot in xt?kt.f(xt,Ot,Bt(0,Rt)):xt[Ot]=Rt}},{"./_object-dp":98,"./_property-desc":111}],67:[function(gt,Xt,Qt){var kt=gt("./_a-function");Xt.exports=function(Bt,xt,Ot){if(kt(Bt),xt===void 0)return Bt;switch(Ot){case 1:return function(Rt){return Bt.call(xt,Rt)};case 2:return function(Rt,Ct){return Bt.call(xt,Rt,Ct)};case 3:return function(Rt,Ct,Lt){return Bt.call(xt,Rt,Ct,Lt)}}return function(){return Bt.apply(xt,arguments)}}},{"./_a-function":58}],68:[function(gt,Xt,Qt){Xt.exports=function(kt){if(kt==null)throw TypeError("Can't call method on "+kt);return kt}},{}],69:[function(gt,Xt,Qt){Xt.exports=!gt("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":74}],70:[function(gt,Xt,Qt){var kt=gt("./_is-object"),Bt=gt("./_global").document,xt=kt(Bt)&&kt(Bt.createElement);Xt.exports=function(Ot){return xt?Bt.createElement(Ot):{}}},{"./_global":76,"./_is-object":85}],71:[function(gt,Xt,Qt){Xt.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(gt,Xt,Qt){var kt=gt("./_object-keys"),Bt=gt("./_object-gops"),xt=gt("./_object-pie");Xt.exports=function(Ot){var Rt=kt(Ot),Ct=Bt.f;if(Ct)for(var Lt,At=Ct(Ot),It=xt.f,mt=0;At.length>mt;)It.call(Ot,Lt=At[mt++])&&Rt.push(Lt);return Rt}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(gt,Xt,Qt){var kt=gt("./_global"),Bt=gt("./_core"),xt=gt("./_ctx"),Ot=gt("./_hide"),Rt=gt("./_has"),Ct=function(Lt,At,It){var mt,et,tt,st=Lt&Ct.F,rt=Lt&Ct.G,ut=Lt&Ct.S,ct=Lt&Ct.P,ft=Lt&Ct.B,pt=Lt&Ct.W,Pt=rt?Bt:Bt[At]||(Bt[At]={}),Dt=Pt.prototype,Zt=rt?kt:ut?kt[At]:(kt[At]||{}).prototype;rt&&(It=At);for(mt in It)(et=!st&&Zt&&Zt[mt]!==void 0)&&Rt(Pt,mt)||(tt=et?Zt[mt]:It[mt],Pt[mt]=rt&&typeof Zt[mt]!="function"?It[mt]:ft&&et?xt(tt,kt):pt&&Zt[mt]==tt?function(Ft){var qt=function(te,Gt,ce){if(this instanceof Ft){switch(arguments.length){case 0:return new Ft;case 1:return new Ft(te);case 2:return new Ft(te,Gt)}return new Ft(te,Gt,ce)}return Ft.apply(this,arguments)};return qt.prototype=Ft.prototype,qt}(tt):ct&&typeof tt=="function"?xt(Function.call,tt):tt,ct&&((Pt.virtual||(Pt.virtual={}))[mt]=tt,Lt&Ct.R&&Dt&&!Dt[mt]&&Ot(Dt,mt,tt)))};Ct.F=1,Ct.G=2,Ct.S=4,Ct.P=8,Ct.B=16,Ct.W=32,Ct.U=64,Ct.R=128,Xt.exports=Ct},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(gt,Xt,Qt){Xt.exports=function(kt){try{return!!kt()}catch(Bt){return!0}}},{}],75:[function(gt,Xt,It){var kt=gt("./_ctx"),Bt=gt("./_iter-call"),xt=gt("./_is-array-iter"),Ot=gt("./_an-object"),Rt=gt("./_to-length"),Ct=gt("./core.get-iterator-method"),Lt={},At={},It=Xt.exports=function(mt,et,tt,st,rt){var ut,ct,ft,pt,Pt=rt?function(){return mt}:Ct(mt),Dt=kt(tt,st,et?2:1),Zt=0;if(typeof Pt!="function")throw TypeError(mt+" is not iterable!");if(xt(Pt)){for(ut=Rt(mt.length);ut>Zt;Zt++)if((pt=et?Dt(Ot(ct=mt[Zt])[0],ct[1]):Dt(mt[Zt]))===Lt||pt===At)return pt}else for(ft=Pt.call(mt);!(ct=ft.next()).done;)if((pt=Bt(ft,Dt,ct.value,et))===Lt||pt===At)return pt};It.BREAK=Lt,It.RETURN=At},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(gt,Xt,Qt){var kt=Xt.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=kt)},{}],77:[function(gt,Xt,Qt){var kt={}.hasOwnProperty;Xt.exports=function(Bt,xt){return kt.call(Bt,xt)}},{}],78:[function(gt,Xt,Qt){var kt=gt("./_object-dp"),Bt=gt("./_property-desc");Xt.exports=gt("./_descriptors")?function(xt,Ot,Rt){return kt.f(xt,Ot,Bt(1,Rt))}:function(xt,Ot,Rt){return xt[Ot]=Rt,xt}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(gt,Xt,Qt){var kt=gt("./_global").document;Xt.exports=kt&&kt.documentElement},{"./_global":76}],80:[function(gt,Xt,Qt){Xt.exports=!gt("./_descriptors")&&!gt("./_fails")(function(){return Object.defineProperty(gt("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":69,"./_dom-create":70,"./_fails":74}],81:[function(gt,Xt,Qt){Xt.exports=function(kt,Bt,xt){var Ot=xt===void 0;switch(Bt.length){case 0:return Ot?kt():kt.call(xt);case 1:return Ot?kt(Bt[0]):kt.call(xt,Bt[0]);case 2:return Ot?kt(Bt[0],Bt[1]):kt.call(xt,Bt[0],Bt[1]);case 3:return Ot?kt(Bt[0],Bt[1],Bt[2]):kt.call(xt,Bt[0],Bt[1],Bt[2]);case 4:return Ot?kt(Bt[0],Bt[1],Bt[2],Bt[3]):kt.call(xt,Bt[0],Bt[1],Bt[2],Bt[3])}return kt.apply(xt,Bt)}},{}],82:[function(gt,Xt,Qt){var kt=gt("./_cof");Xt.exports=Object("z").propertyIsEnumerable(0)?Object:function(Bt){return kt(Bt)=="String"?Bt.split(""):Object(Bt)}},{"./_cof":64}],83:[function(gt,Xt,Qt){var kt=gt("./_iterators"),Bt=gt("./_wks")("iterator"),xt=Array.prototype;Xt.exports=function(Ot){return Ot!==void 0&&(kt.Array===Ot||xt[Bt]===Ot)}},{"./_iterators":91,"./_wks":131}],84:[function(gt,Xt,Qt){var kt=gt("./_cof");Xt.exports=Array.isArray||function(Bt){return kt(Bt)=="Array"}},{"./_cof":64}],85:[function(gt,Xt,Qt){Xt.exports=function(kt){return typeof kt=="object"?kt!==null:typeof kt=="function"}},{}],86:[function(gt,Xt,Qt){var kt=gt("./_an-object");Xt.exports=function(Bt,xt,Ot,Rt){try{return Rt?xt(kt(Ot)[0],Ot[1]):xt(Ot)}catch(Lt){var Ct=Bt.return;throw Ct!==void 0&&kt(Ct.call(Bt)),Lt}}},{"./_an-object":61}],87:[function(gt,Xt,Qt){"use strict";var kt=gt("./_object-create"),Bt=gt("./_property-desc"),xt=gt("./_set-to-string-tag"),Ot={};gt("./_hide")(Ot,gt("./_wks")("iterator"),function(){return this}),Xt.exports=function(Rt,Ct,Lt){Rt.prototype=kt(Ot,{next:Bt(1,Lt)}),xt(Rt,Ct+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(gt,Xt,Qt){"use strict";var kt=gt("./_library"),Bt=gt("./_export"),xt=gt("./_redefine"),Ot=gt("./_hide"),Rt=gt("./_iterators"),Ct=gt("./_iter-create"),Lt=gt("./_set-to-string-tag"),At=gt("./_object-gpo"),It=gt("./_wks")("iterator"),mt=!([].keys&&"next"in[].keys()),et=function(){return this};Xt.exports=function(tt,st,rt,ut,ct,ft,pt){Ct(rt,st,ut);var Pt,Dt,Zt,Ft=function(me){if(!mt&&me in ce)return ce[me];switch(me){case"keys":case"values":return function(){return new rt(this,me)}}return function(){return new rt(this,me)}},qt=st+" Iterator",te=ct=="values",Gt=!1,ce=tt.prototype,ae=ce[It]||ce["@@iterator"]||ct&&ce[ct],xe=ae||Ft(ct),ye=ct?te?Ft("entries"):xe:void 0,Te=st=="Array"&&ce.entries||ae;if(Te&&(Zt=At(Te.call(new tt)))!==Object.prototype&&Zt.next&&(Lt(Zt,qt,!0),kt||typeof Zt[It]=="function"||Ot(Zt,It,et)),te&&ae&&ae.name!=="values"&&(Gt=!0,xe=function(){return ae.call(this)}),kt&&!pt||!mt&&!Gt&&ce[It]||Ot(ce,It,xe),Rt[st]=xe,Rt[qt]=et,ct)if(Pt={values:te?xe:Ft("values"),keys:ft?xe:Ft("keys"),entries:ye},pt)for(Dt in Pt)Dt in ce||xt(ce,Dt,Pt[Dt]);else Bt(Bt.P+Bt.F*(mt||Gt),st,Pt);return Pt}},{"./_export":73,"./_hide":78,"./_iter-create":87,"./_iterators":91,"./_library":92,"./_object-gpo":104,"./_redefine":113,"./_set-to-string-tag":115,"./_wks":131}],89:[function(gt,Xt,Qt){var kt=gt("./_wks")("iterator"),Bt=!1;try{var xt=[7][kt]();xt.return=function(){Bt=!0},Array.from(xt,function(){throw 2})}catch(Ot){}Xt.exports=function(Ot,Rt){if(!Rt&&!Bt)return!1;var Ct=!1;try{var Lt=[7],At=Lt[kt]();At.next=function(){return{done:Ct=!0}},Lt[kt]=function(){return At},Ot(Lt)}catch(It){}return Ct}},{"./_wks":131}],90:[function(gt,Xt,Qt){Xt.exports=function(kt,Bt){return{value:Bt,done:!!kt}}},{}],91:[function(gt,Xt,Qt){Xt.exports={}},{}],92:[function(gt,Xt,Qt){Xt.exports=!0},{}],93:[function(gt,Xt,Qt){var kt=gt("./_uid")("meta"),Bt=gt("./_is-object"),xt=gt("./_has"),Ot=gt("./_object-dp").f,Rt=0,Ct=Object.isExtensible||function(){return!0},Lt=!gt("./_fails")(function(){return Ct(Object.preventExtensions({}))}),At=function(st){Ot(st,kt,{value:{i:"O"+ ++Rt,w:{}}})},It=function(st,rt){if(!Bt(st))return typeof st=="symbol"?st:(typeof st=="string"?"S":"P")+st;if(!xt(st,kt)){if(!Ct(st))return"F";if(!rt)return"E";At(st)}return st[kt].i},mt=function(st,rt){if(!xt(st,kt)){if(!Ct(st))return!0;if(!rt)return!1;At(st)}return st[kt].w},et=function(st){return Lt&&tt.NEED&&Ct(st)&&!xt(st,kt)&&At(st),st},tt=Xt.exports={KEY:kt,NEED:!1,fastKey:It,getWeak:mt,onFreeze:et}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(gt,Xt,Qt){var kt=gt("./_global"),Bt=gt("./_task").set,xt=kt.MutationObserver||kt.WebKitMutationObserver,Ot=kt.process,Rt=kt.Promise,Ct=gt("./_cof")(Ot)=="process";Xt.exports=function(){var Lt,At,It,mt=function(){var rt,ut;for(Ct&&(rt=Ot.domain)&&rt.exit();Lt;){ut=Lt.fn,Lt=Lt.next;try{ut()}catch(ct){throw Lt?It():At=void 0,ct}}At=void 0,rt&&rt.enter()};if(Ct)It=function(){Ot.nextTick(mt)};else if(!xt||kt.navigator&&kt.navigator.standalone)if(Rt&&Rt.resolve){var et=Rt.resolve(void 0);It=function(){et.then(mt)}}else It=function(){Bt.call(kt,mt)};else{var tt=!0,st=document.createTextNode("");new xt(mt).observe(st,{characterData:!0}),It=function(){st.data=tt=!tt}}return function(rt){var ut={fn:rt,next:void 0};At&&(At.next=ut),Lt||(Lt=ut,It()),At=ut}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(gt,Xt,Qt){"use strict";function kt(xt){var Ot,Rt;this.promise=new xt(function(Ct,Lt){if(Ot!==void 0||Rt!==void 0)throw TypeError("Bad Promise constructor");Ot=Ct,Rt=Lt}),this.resolve=Bt(Ot),this.reject=Bt(Rt)}var Bt=gt("./_a-function");Xt.exports.f=function(xt){return new kt(xt)}},{"./_a-function":58}],96:[function(gt,Xt,Qt){"use strict";var kt=gt("./_object-keys"),Bt=gt("./_object-gops"),xt=gt("./_object-pie"),Ot=gt("./_to-object"),Rt=gt("./_iobject"),Ct=Object.assign;Xt.exports=!Ct||gt("./_fails")(function(){var Lt={},At={},It=Symbol(),mt="abcdefghijklmnopqrst";return Lt[It]=7,mt.split("").forEach(function(et){At[et]=et}),Ct({},Lt)[It]!=7||Object.keys(Ct({},At)).join("")!=mt})?function(Lt,At){for(var It=Ot(Lt),mt=arguments.length,et=1,tt=Bt.f,st=xt.f;mt>et;)for(var rt,ut=Rt(arguments[et++]),ct=tt?kt(ut).concat(tt(ut)):kt(ut),ft=ct.length,pt=0;ft>pt;)st.call(ut,rt=ct[pt++])&&(It[rt]=ut[rt]);return It}:Ct},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(gt,Xt,Qt){var kt=gt("./_an-object"),Bt=gt("./_object-dps"),xt=gt("./_enum-bug-keys"),Ot=gt("./_shared-key")("IE_PROTO"),Rt=function(){},Ct=function(){var Lt,At=gt("./_dom-create")("iframe"),It=xt.length;for(At.style.display="none",gt("./_html").appendChild(At),At.src="javascript:",Lt=At.contentWindow.document,Lt.open(),Lt.write("<script>document.F=Object<\/script>"),Lt.close(),Ct=Lt.F;It--;)delete Ct.prototype[xt[It]];return Ct()};Xt.exports=Object.create||function(Lt,At){var It;return Lt!==null?(Rt.prototype=kt(Lt),It=new Rt,Rt.prototype=null,It[Ot]=Lt):It=Ct(),At===void 0?It:Bt(It,At)}},{"./_an-object":61,"./_dom-create":70,"./_enum-bug-keys":71,"./_html":79,"./_object-dps":99,"./_shared-key":116}],98:[function(gt,Xt,Qt){var kt=gt("./_an-object"),Bt=gt("./_ie8-dom-define"),xt=gt("./_to-primitive"),Ot=Object.defineProperty;Qt.f=gt("./_descriptors")?Object.defineProperty:function(Rt,Ct,Lt){if(kt(Rt),Ct=xt(Ct,!0),kt(Lt),Bt)try{return Ot(Rt,Ct,Lt)}catch(At){}if("get"in Lt||"set"in Lt)throw TypeError("Accessors not supported!");return"value"in Lt&&(Rt[Ct]=Lt.value),Rt}},{"./_an-object":61,"./_descriptors":69,"./_ie8-dom-define":80,"./_to-primitive":126}],99:[function(gt,Xt,Qt){var kt=gt("./_object-dp"),Bt=gt("./_an-object"),xt=gt("./_object-keys");Xt.exports=gt("./_descriptors")?Object.defineProperties:function(Ot,Rt){Bt(Ot);for(var Ct,Lt=xt(Rt),At=Lt.length,It=0;At>It;)kt.f(Ot,Ct=Lt[It++],Rt[Ct]);return Ot}},{"./_an-object":61,"./_descriptors":69,"./_object-dp":98,"./_object-keys":106}],100:[function(gt,Xt,Qt){var kt=gt("./_object-pie"),Bt=gt("./_property-desc"),xt=gt("./_to-iobject"),Ot=gt("./_to-primitive"),Rt=gt("./_has"),Ct=gt("./_ie8-dom-define"),Lt=Object.getOwnPropertyDescriptor;Qt.f=gt("./_descriptors")?Lt:function(At,It){if(At=xt(At),It=Ot(It,!0),Ct)try{return Lt(At,It)}catch(mt){}if(Rt(At,It))return Bt(!kt.f.call(At,It),At[It])}},{"./_descriptors":69,"./_has":77,"./_ie8-dom-define":80,"./_object-pie":107,"./_property-desc":111,"./_to-iobject":123,"./_to-primitive":126}],101:[function(gt,Xt,Qt){var kt=gt("./_to-iobject"),Bt=gt("./_object-gopn").f,xt={}.toString,Ot=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Rt=function(Ct){try{return Bt(Ct)}catch(Lt){return Ot.slice()}};Xt.exports.f=function(Ct){return Ot&&xt.call(Ct)=="[object Window]"?Rt(Ct):Bt(kt(Ct))}},{"./_object-gopn":102,"./_to-iobject":123}],102:[function(gt,Xt,Qt){var kt=gt("./_object-keys-internal"),Bt=gt("./_enum-bug-keys").concat("length","prototype");Qt.f=Object.getOwnPropertyNames||function(xt){return kt(xt,Bt)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],103:[function(gt,Xt,Qt){Qt.f=Object.getOwnPropertySymbols},{}],104:[function(gt,Xt,Qt){var kt=gt("./_has"),Bt=gt("./_to-object"),xt=gt("./_shared-key")("IE_PROTO"),Ot=Object.prototype;Xt.exports=Object.getPrototypeOf||function(Rt){return Rt=Bt(Rt),kt(Rt,xt)?Rt[xt]:typeof Rt.constructor=="function"&&Rt instanceof Rt.constructor?Rt.constructor.prototype:Rt instanceof Object?Ot:null}},{"./_has":77,"./_shared-key":116,"./_to-object":125}],105:[function(gt,Xt,Qt){var kt=gt("./_has"),Bt=gt("./_to-iobject"),xt=gt("./_array-includes")(!1),Ot=gt("./_shared-key")("IE_PROTO");Xt.exports=function(Rt,Ct){var Lt,At=Bt(Rt),It=0,mt=[];for(Lt in At)Lt!=Ot&&kt(At,Lt)&&mt.push(Lt);for(;Ct.length>It;)kt(At,Lt=Ct[It++])&&(~xt(mt,Lt)||mt.push(Lt));return mt}},{"./_array-includes":62,"./_has":77,"./_shared-key":116,"./_to-iobject":123}],106:[function(gt,Xt,Qt){var kt=gt("./_object-keys-internal"),Bt=gt("./_enum-bug-keys");Xt.exports=Object.keys||function(xt){return kt(xt,Bt)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],107:[function(gt,Xt,Qt){Qt.f={}.propertyIsEnumerable},{}],108:[function(gt,Xt,Qt){var kt=gt("./_export"),Bt=gt("./_core"),xt=gt("./_fails");Xt.exports=function(Ot,Rt){var Ct=(Bt.Object||{})[Ot]||Object[Ot],Lt={};Lt[Ot]=Rt(Ct),kt(kt.S+kt.F*xt(function(){Ct(1)}),"Object",Lt)}},{"./_core":65,"./_export":73,"./_fails":74}],109:[function(gt,Xt,Qt){Xt.exports=function(kt){try{return{e:!1,v:kt()}}catch(Bt){return{e:!0,v:Bt}}}},{}],110:[function(gt,Xt,Qt){var kt=gt("./_an-object"),Bt=gt("./_is-object"),xt=gt("./_new-promise-capability");Xt.exports=function(Ot,Rt){if(kt(Ot),Bt(Rt)&&Rt.constructor===Ot)return Rt;var Ct=xt.f(Ot);return(0,Ct.resolve)(Rt),Ct.promise}},{"./_an-object":61,"./_is-object":85,"./_new-promise-capability":95}],111:[function(gt,Xt,Qt){Xt.exports=function(kt,Bt){return{enumerable:!(1&kt),configurable:!(2&kt),writable:!(4&kt),value:Bt}}},{}],112:[function(gt,Xt,Qt){var kt=gt("./_hide");Xt.exports=function(Bt,xt,Ot){for(var Rt in xt)Ot&&Bt[Rt]?Bt[Rt]=xt[Rt]:kt(Bt,Rt,xt[Rt]);return Bt}},{"./_hide":78}],113:[function(gt,Xt,Qt){Xt.exports=gt("./_hide")},{"./_hide":78}],114:[function(gt,Xt,Qt){"use strict";var kt=gt("./_global"),Bt=gt("./_core"),xt=gt("./_object-dp"),Ot=gt("./_descriptors"),Rt=gt("./_wks")("species");Xt.exports=function(Ct){var Lt=typeof Bt[Ct]=="function"?Bt[Ct]:kt[Ct];Ot&&Lt&&!Lt[Rt]&&xt.f(Lt,Rt,{configurable:!0,get:function(){return this}})}},{"./_core":65,"./_descriptors":69,"./_global":76,"./_object-dp":98,"./_wks":131}],115:[function(gt,Xt,Qt){var kt=gt("./_object-dp").f,Bt=gt("./_has"),xt=gt("./_wks")("toStringTag");Xt.exports=function(Ot,Rt,Ct){Ot&&!Bt(Ot=Ct?Ot:Ot.prototype,xt)&&kt(Ot,xt,{configurable:!0,value:Rt})}},{"./_has":77,"./_object-dp":98,"./_wks":131}],116:[function(gt,Xt,Qt){var kt=gt("./_shared")("keys"),Bt=gt("./_uid");Xt.exports=function(xt){return kt[xt]||(kt[xt]=Bt(xt))}},{"./_shared":117,"./_uid":127}],117:[function(gt,Xt,Qt){var kt=gt("./_core"),Bt=gt("./_global"),xt=Bt["__core-js_shared__"]||(Bt["__core-js_shared__"]={});(Xt.exports=function(Ot,Rt){return xt[Ot]||(xt[Ot]=Rt!==void 0?Rt:{})})("versions",[]).push({version:kt.version,mode:gt("./_library")?"pure":"global",copyright:"\u6F0F 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":65,"./_global":76,"./_library":92}],118:[function(gt,Xt,Qt){var kt=gt("./_an-object"),Bt=gt("./_a-function"),xt=gt("./_wks")("species");Xt.exports=function(Ot,Rt){var Ct,Lt=kt(Ot).constructor;return Lt===void 0||(Ct=kt(Lt)[xt])==null?Rt:Bt(Ct)}},{"./_a-function":58,"./_an-object":61,"./_wks":131}],119:[function(gt,Xt,Qt){var kt=gt("./_to-integer"),Bt=gt("./_defined");Xt.exports=function(xt){return function(Ot,Rt){var Ct,Lt,At=String(Bt(Ot)),It=kt(Rt),mt=At.length;return It<0||It>=mt?xt?"":void 0:(Ct=At.charCodeAt(It),Ct<55296||Ct>56319||It+1===mt||(Lt=At.charCodeAt(It+1))<56320||Lt>57343?xt?At.charAt(It):Ct:xt?At.slice(It,It+2):Lt-56320+(Ct-55296<<10)+65536)}}},{"./_defined":68,"./_to-integer":122}],120:[function(gt,Xt,Qt){var kt,Bt,xt,Ot=gt("./_ctx"),Rt=gt("./_invoke"),Ct=gt("./_html"),Lt=gt("./_dom-create"),At=gt("./_global"),It=At.process,mt=At.setImmediate,et=At.clearImmediate,tt=At.MessageChannel,st=At.Dispatch,rt=0,ut={},ct=function(){var pt=+this;if(ut.hasOwnProperty(pt)){var Pt=ut[pt];delete ut[pt],Pt()}},ft=function(pt){ct.call(pt.data)};mt&&et||(mt=function(pt){for(var Pt=[],Dt=1;arguments.length>Dt;)Pt.push(arguments[Dt++]);return ut[++rt]=function(){Rt(typeof pt=="function"?pt:Function(pt),Pt)},kt(rt),rt},et=function(pt){delete ut[pt]},gt("./_cof")(It)=="process"?kt=function(pt){It.nextTick(Ot(ct,pt,1))}:st&&st.now?kt=function(pt){st.now(Ot(ct,pt,1))}:tt?(Bt=new tt,xt=Bt.port2,Bt.port1.onmessage=ft,kt=Ot(xt.postMessage,xt,1)):At.addEventListener&&typeof postMessage=="function"&&!At.importScripts?(kt=function(pt){At.postMessage(pt+"","*")},At.addEventListener("message",ft,!1)):kt="onreadystatechange"in Lt("script")?function(pt){Ct.appendChild(Lt("script")).onreadystatechange=function(){Ct.removeChild(this),ct.call(pt)}}:function(pt){setTimeout(Ot(ct,pt,1),0)}),Xt.exports={set:mt,clear:et}},{"./_cof":64,"./_ctx":67,"./_dom-create":70,"./_global":76,"./_html":79,"./_invoke":81}],121:[function(gt,Xt,Qt){var kt=gt("./_to-integer"),Bt=Math.max,xt=Math.min;Xt.exports=function(Ot,Rt){return Ot=kt(Ot),Ot<0?Bt(Ot+Rt,0):xt(Ot,Rt)}},{"./_to-integer":122}],122:[function(gt,Xt,Qt){var kt=Math.ceil,Bt=Math.floor;Xt.exports=function(xt){return isNaN(xt=+xt)?0:(xt>0?Bt:kt)(xt)}},{}],123:[function(gt,Xt,Qt){var kt=gt("./_iobject"),Bt=gt("./_defined");Xt.exports=function(xt){return kt(Bt(xt))}},{"./_defined":68,"./_iobject":82}],124:[function(gt,Xt,Qt){var kt=gt("./_to-integer"),Bt=Math.min;Xt.exports=function(xt){return xt>0?Bt(kt(xt),9007199254740991):0}},{"./_to-integer":122}],125:[function(gt,Xt,Qt){var kt=gt("./_defined");Xt.exports=function(Bt){return Object(kt(Bt))}},{"./_defined":68}],126:[function(gt,Xt,Qt){var kt=gt("./_is-object");Xt.exports=function(Bt,xt){if(!kt(Bt))return Bt;var Ot,Rt;if(xt&&typeof(Ot=Bt.toString)=="function"&&!kt(Rt=Ot.call(Bt))||typeof(Ot=Bt.valueOf)=="function"&&!kt(Rt=Ot.call(Bt))||!xt&&typeof(Ot=Bt.toString)=="function"&&!kt(Rt=Ot.call(Bt)))return Rt;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":85}],127:[function(gt,Xt,Qt){var kt=0,Bt=Math.random();Xt.exports=function(xt){return"Symbol(".concat(xt===void 0?"":xt,")_",(++kt+Bt).toString(36))}},{}],128:[function(gt,Xt,Qt){var kt=gt("./_global"),Bt=kt.navigator;Xt.exports=Bt&&Bt.userAgent||""},{"./_global":76}],129:[function(gt,Xt,Qt){var kt=gt("./_global"),Bt=gt("./_core"),xt=gt("./_library"),Ot=gt("./_wks-ext"),Rt=gt("./_object-dp").f;Xt.exports=function(Ct){var Lt=Bt.Symbol||(Bt.Symbol=xt?{}:kt.Symbol||{});Ct.charAt(0)=="_"||Ct in Lt||Rt(Lt,Ct,{value:Ot.f(Ct)})}},{"./_core":65,"./_global":76,"./_library":92,"./_object-dp":98,"./_wks-ext":130}],130:[function(gt,Xt,Qt){Qt.f=gt("./_wks")},{"./_wks":131}],131:[function(gt,Xt,Qt){var kt=gt("./_shared")("wks"),Bt=gt("./_uid"),xt=gt("./_global").Symbol,Ot=typeof xt=="function";(Xt.exports=function(Rt){return kt[Rt]||(kt[Rt]=Ot&&xt[Rt]||(Ot?xt:Bt)("Symbol."+Rt))}).store=kt},{"./_global":76,"./_shared":117,"./_uid":127}],132:[function(gt,Xt,Qt){var kt=gt("./_classof"),Bt=gt("./_wks")("iterator"),xt=gt("./_iterators");Xt.exports=gt("./_core").getIteratorMethod=function(Ot){if(Ot!=null)return Ot[Bt]||Ot["@@iterator"]||xt[kt(Ot)]}},{"./_classof":63,"./_core":65,"./_iterators":91,"./_wks":131}],133:[function(gt,Xt,Qt){"use strict";var kt=gt("./_ctx"),Bt=gt("./_export"),xt=gt("./_to-object"),Ot=gt("./_iter-call"),Rt=gt("./_is-array-iter"),Ct=gt("./_to-length"),Lt=gt("./_create-property"),At=gt("./core.get-iterator-method");Bt(Bt.S+Bt.F*!gt("./_iter-detect")(function(It){Array.from(It)}),"Array",{from:function(It){var mt,et,tt,st,rt=xt(It),ut=typeof this=="function"?this:Array,ct=arguments.length,ft=ct>1?arguments[1]:void 0,pt=ft!==void 0,Pt=0,Dt=At(rt);if(pt&&(ft=kt(ft,ct>2?arguments[2]:void 0,2)),Dt==null||ut==Array&&Rt(Dt))for(mt=Ct(rt.length),et=new ut(mt);mt>Pt;Pt++)Lt(et,Pt,pt?ft(rt[Pt],Pt):rt[Pt]);else for(st=Dt.call(rt),et=new ut;!(tt=st.next()).done;Pt++)Lt(et,Pt,pt?Ot(st,ft,[tt.value,Pt],!0):tt.value);return et.length=Pt,et}})},{"./_create-property":66,"./_ctx":67,"./_export":73,"./_is-array-iter":83,"./_iter-call":86,"./_iter-detect":89,"./_to-length":124,"./_to-object":125,"./core.get-iterator-method":132}],134:[function(gt,Xt,Qt){"use strict";var kt=gt("./_add-to-unscopables"),Bt=gt("./_iter-step"),xt=gt("./_iterators"),Ot=gt("./_to-iobject");Xt.exports=gt("./_iter-define")(Array,"Array",function(Rt,Ct){this._t=Ot(Rt),this._i=0,this._k=Ct},function(){var Rt=this._t,Ct=this._k,Lt=this._i++;return!Rt||Lt>=Rt.length?(this._t=void 0,Bt(1)):Ct=="keys"?Bt(0,Lt):Ct=="values"?Bt(0,Rt[Lt]):Bt(0,[Lt,Rt[Lt]])},"values"),xt.Arguments=xt.Array,kt("keys"),kt("values"),kt("entries")},{"./_add-to-unscopables":59,"./_iter-define":88,"./_iter-step":90,"./_iterators":91,"./_to-iobject":123}],135:[function(gt,Xt,Qt){"use strict";var kt=gt("./_is-object"),Bt=gt("./_object-gpo"),xt=gt("./_wks")("hasInstance"),Ot=Function.prototype;xt in Ot||gt("./_object-dp").f(Ot,xt,{value:function(Rt){if(typeof this!="function"||!kt(Rt))return!1;if(!kt(this.prototype))return Rt instanceof this;for(;Rt=Bt(Rt);)if(this.prototype===Rt)return!0;return!1}})},{"./_is-object":85,"./_object-dp":98,"./_object-gpo":104,"./_wks":131}],136:[function(gt,Xt,Qt){var kt=gt("./_export");kt(kt.S+kt.F,"Object",{assign:gt("./_object-assign")})},{"./_export":73,"./_object-assign":96}],137:[function(gt,Xt,Qt){var kt=gt("./_export");kt(kt.S,"Object",{create:gt("./_object-create")})},{"./_export":73,"./_object-create":97}],138:[function(gt,Xt,Qt){var kt=gt("./_export");kt(kt.S+kt.F*!gt("./_descriptors"),"Object",{defineProperty:gt("./_object-dp").f})},{"./_descriptors":69,"./_export":73,"./_object-dp":98}],139:[function(gt,Xt,Qt){gt("./_object-sap")("getOwnPropertyNames",function(){return gt("./_object-gopn-ext").f})},{"./_object-gopn-ext":101,"./_object-sap":108}],140:[function(gt,Xt,Qt){var kt=gt("./_to-object"),Bt=gt("./_object-gpo");gt("./_object-sap")("getPrototypeOf",function(){return function(xt){return Bt(kt(xt))}})},{"./_object-gpo":104,"./_object-sap":108,"./_to-object":125}],141:[function(gt,Xt,Qt){var kt=gt("./_to-object"),Bt=gt("./_object-keys");gt("./_object-sap")("keys",function(){return function(xt){return Bt(kt(xt))}})},{"./_object-keys":106,"./_object-sap":108,"./_to-object":125}],142:[function(gt,Xt,Qt){arguments[4][36][0].apply(Qt,arguments)},{dup:36}],143:[function(gt,Xt,Qt){"use strict";var kt,Bt,xt,Ot,Rt=gt("./_library"),Ct=gt("./_global"),Lt=gt("./_ctx"),At=gt("./_classof"),It=gt("./_export"),mt=gt("./_is-object"),et=gt("./_a-function"),tt=gt("./_an-instance"),st=gt("./_for-of"),rt=gt("./_species-constructor"),ut=gt("./_task").set,ct=gt("./_microtask")(),ft=gt("./_new-promise-capability"),pt=gt("./_perform"),Pt=gt("./_user-agent"),Dt=gt("./_promise-resolve"),Zt=Ct.TypeError,Ft=Ct.process,qt=Ft&&Ft.versions,te=qt&&qt.v8||"",Gt=Ct.Promise,ce=At(Ft)=="process",ae=function(){},xe=Bt=ft.f,ye=!!function(){try{var ge=Gt.resolve(1),he=(ge.constructor={})[gt("./_wks")("species")]=function(De){De(ae,ae)};return(ce||typeof PromiseRejectionEvent=="function")&&ge.then(ae)instanceof he&&te.indexOf("6.6")!==0&&Pt.indexOf("Chrome/66")===-1}catch(De){}}(),Te=function(ge){var he;return!(!mt(ge)||typeof(he=ge.then)!="function")&&he},me=function(ge,he){if(!ge._n){ge._n=!0;var De=ge._c;ct(function(){for(var Ne=ge._v,$e=ge._s==1,Re=0;De.length>Re;)(function(tn){var Me,Oe,Fe,le=$e?tn.ok:tn.fail,Tt=tn.resolve,bt=tn.reject,_t=tn.domain;try{le?($e||(ge._h==2&&$t(ge),ge._h=1),le===!0?Me=Ne:(_t&&_t.enter(),Me=le(Ne),_t&&(_t.exit(),Fe=!0)),Me===tn.promise?bt(Zt("Promise-chain cycle")):(Oe=Te(Me))?Oe.call(Me,Tt,bt):Tt(Me)):bt(Ne)}catch(Yt){_t&&!Fe&&_t.exit(),bt(Yt)}})(De[Re++]);ge._c=[],ge._n=!1,he&&!ge._h&&He(ge)})}},He=function(ge){ut.call(Ct,function(){var he,De,Ne,$e=ge._v,Re=fe(ge);if(Re&&(he=pt(function(){ce?Ft.emit("unhandledRejection",$e,ge):(De=Ct.onunhandledrejection)?De({promise:ge,reason:$e}):(Ne=Ct.console)&&Ne.error&&Ne.error("Unhandled promise rejection",$e)}),ge._h=ce||fe(ge)?2:1),ge._a=void 0,Re&&he.e)throw he.v})},fe=function(ge){return ge._h!==1&&(ge._a||ge._c).length===0},$t=function(ge){ut.call(Ct,function(){var he;ce?Ft.emit("rejectionHandled",ge):(he=Ct.onrejectionhandled)&&he({promise:ge,reason:ge._v})})},ie=function(ge){var he=this;he._d||(he._d=!0,he=he._w||he,he._v=ge,he._s=2,he._a||(he._a=he._c.slice()),me(he,!0))},ue=function(ge){var he,De=this;if(!De._d){De._d=!0,De=De._w||De;try{if(De===ge)throw Zt("Promise can't be resolved itself");(he=Te(ge))?ct(function(){var Ne={_w:De,_d:!1};try{he.call(ge,Lt(ue,Ne,1),Lt(ie,Ne,1))}catch($e){ie.call(Ne,$e)}}):(De._v=ge,De._s=1,me(De,!1))}catch(Ne){ie.call({_w:De,_d:!1},Ne)}}};ye||(Gt=function(ge){tt(this,Gt,"Promise","_h"),et(ge),kt.call(this);try{ge(Lt(ue,this,1),Lt(ie,this,1))}catch(he){ie.call(this,he)}},kt=function(ge){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},kt.prototype=gt("./_redefine-all")(Gt.prototype,{then:function(ge,he){var De=xe(rt(this,Gt));return De.ok=typeof ge!="function"||ge,De.fail=typeof he=="function"&&he,De.domain=ce?Ft.domain:void 0,this._c.push(De),this._a&&this._a.push(De),this._s&&me(this,!1),De.promise},catch:function(ge){return this.then(void 0,ge)}}),xt=function(){var ge=new kt;this.promise=ge,this.resolve=Lt(ue,ge,1),this.reject=Lt(ie,ge,1)},ft.f=xe=function(ge){return ge===Gt||ge===Ot?new xt(ge):Bt(ge)}),It(It.G+It.W+It.F*!ye,{Promise:Gt}),gt("./_set-to-string-tag")(Gt,"Promise"),gt("./_set-species")("Promise"),Ot=gt("./_core").Promise,It(It.S+It.F*!ye,"Promise",{reject:function(ge){var he=xe(this);return(0,he.reject)(ge),he.promise}}),It(It.S+It.F*(Rt||!ye),"Promise",{resolve:function(ge){return Dt(Rt&&this===Ot?Gt:this,ge)}}),It(It.S+It.F*!(ye&>("./_iter-detect")(function(ge){Gt.all(ge).catch(ae)})),"Promise",{all:function(ge){var he=this,De=xe(he),Ne=De.resolve,$e=De.reject,Re=pt(function(){var tn=[],Me=0,Oe=1;st(ge,!1,function(Fe){var le=Me++,Tt=!1;tn.push(void 0),Oe++,he.resolve(Fe).then(function(bt){Tt||(Tt=!0,tn[le]=bt,--Oe||Ne(tn))},$e)}),--Oe||Ne(tn)});return Re.e&&$e(Re.v),De.promise},race:function(ge){var he=this,De=xe(he),Ne=De.reject,$e=pt(function(){st(ge,!1,function(Re){he.resolve(Re).then(De.resolve,Ne)})});return $e.e&&Ne($e.v),De.promise}})},{"./_a-function":58,"./_an-instance":60,"./_classof":63,"./_core":65,"./_ctx":67,"./_export":73,"./_for-of":75,"./_global":76,"./_is-object":85,"./_iter-detect":89,"./_library":92,"./_microtask":94,"./_new-promise-capability":95,"./_perform":109,"./_promise-resolve":110,"./_redefine-all":112,"./_set-species":114,"./_set-to-string-tag":115,"./_species-constructor":118,"./_task":120,"./_user-agent":128,"./_wks":131}],144:[function(gt,Xt,Qt){var kt=gt("./_export"),Bt=gt("./_to-absolute-index"),xt=String.fromCharCode,Ot=String.fromCodePoint;kt(kt.S+kt.F*(!!Ot&&Ot.length!=1),"String",{fromCodePoint:function(Rt){for(var Ct,Lt=[],At=arguments.length,It=0;At>It;){if(Ct=+arguments[It++],Bt(Ct,1114111)!==Ct)throw RangeError(Ct+" is not a valid code point");Lt.push(Ct<65536?xt(Ct):xt(55296+((Ct-=65536)>>10),Ct%1024+56320))}return Lt.join("")}})},{"./_export":73,"./_to-absolute-index":121}],145:[function(gt,Xt,Qt){"use strict";var kt=gt("./_string-at")(!0);gt("./_iter-define")(String,"String",function(Bt){this._t=String(Bt),this._i=0},function(){var Bt,xt=this._t,Ot=this._i;return Ot>=xt.length?{value:void 0,done:!0}:(Bt=kt(xt,Ot),this._i+=Bt.length,{value:Bt,done:!1})})},{"./_iter-define":88,"./_string-at":119}],146:[function(gt,Xt,Qt){"use strict";var kt=gt("./_global"),Bt=gt("./_has"),xt=gt("./_descriptors"),Ot=gt("./_export"),Rt=gt("./_redefine"),Ct=gt("./_meta").KEY,Lt=gt("./_fails"),At=gt("./_shared"),It=gt("./_set-to-string-tag"),mt=gt("./_uid"),et=gt("./_wks"),tt=gt("./_wks-ext"),st=gt("./_wks-define"),rt=gt("./_enum-keys"),ut=gt("./_is-array"),ct=gt("./_an-object"),ft=gt("./_is-object"),pt=gt("./_to-iobject"),Pt=gt("./_to-primitive"),Dt=gt("./_property-desc"),Zt=gt("./_object-create"),Ft=gt("./_object-gopn-ext"),qt=gt("./_object-gopd"),te=gt("./_object-dp"),Gt=gt("./_object-keys"),ce=qt.f,ae=te.f,xe=Ft.f,ye=kt.Symbol,Te=kt.JSON,me=Te&&Te.stringify,He=et("_hidden"),fe=et("toPrimitive"),$t={}.propertyIsEnumerable,ie=At("symbol-registry"),ue=At("symbols"),ge=At("op-symbols"),he=Object.prototype,De=typeof ye=="function",Ne=kt.QObject,$e=!Ne||!Ne.prototype||!Ne.prototype.findChild,Re=xt&&Lt(function(){return Zt(ae({},"a",{get:function(){return ae(this,"a",{value:7}).a}})).a!=7})?function(jt,Wt,Vt){var oe=ce(he,Wt);oe&&delete he[Wt],ae(jt,Wt,Vt),oe&&jt!==he&&ae(he,Wt,oe)}:ae,tn=function(jt){var Wt=ue[jt]=Zt(ye.prototype);return Wt._k=jt,Wt},Me=De&&typeof ye.iterator=="symbol"?function(jt){return typeof jt=="symbol"}:function(jt){return jt instanceof ye},Oe=function(jt,Wt,Vt){return jt===he&&Oe(ge,Wt,Vt),ct(jt),Wt=Pt(Wt,!0),ct(Vt),Bt(ue,Wt)?(Vt.enumerable?(Bt(jt,He)&&jt[He][Wt]&&(jt[He][Wt]=!1),Vt=Zt(Vt,{enumerable:Dt(0,!1)})):(Bt(jt,He)||ae(jt,He,Dt(1,{})),jt[He][Wt]=!0),Re(jt,Wt,Vt)):ae(jt,Wt,Vt)},Fe=function(jt,Wt){ct(jt);for(var Vt,oe=rt(Wt=pt(Wt)),de=0,Ge=oe.length;Ge>de;)Oe(jt,Vt=oe[de++],Wt[Vt]);return jt},le=function(jt,Wt){return Wt===void 0?Zt(jt):Fe(Zt(jt),Wt)},Tt=function(jt){var Wt=$t.call(this,jt=Pt(jt,!0));return!(this===he&&Bt(ue,jt)&&!Bt(ge,jt))&&(!(Wt||!Bt(this,jt)||!Bt(ue,jt)||Bt(this,He)&&this[He][jt])||Wt)},bt=function(jt,Wt){if(jt=pt(jt),Wt=Pt(Wt,!0),jt!==he||!Bt(ue,Wt)||Bt(ge,Wt)){var Vt=ce(jt,Wt);return!Vt||!Bt(ue,Wt)||Bt(jt,He)&&jt[He][Wt]||(Vt.enumerable=!0),Vt}},_t=function(jt){for(var Wt,Vt=xe(pt(jt)),oe=[],de=0;Vt.length>de;)Bt(ue,Wt=Vt[de++])||Wt==He||Wt==Ct||oe.push(Wt);return oe},Yt=function(jt){for(var Wt,Vt=jt===he,oe=xe(Vt?ge:pt(jt)),de=[],Ge=0;oe.length>Ge;)!Bt(ue,Wt=oe[Ge++])||Vt&&!Bt(he,Wt)||de.push(ue[Wt]);return de};De||(ye=function(){if(this instanceof ye)throw TypeError("Symbol is not a constructor!");var jt=mt(arguments.length>0?arguments[0]:void 0),Wt=function(Vt){this===he&&Wt.call(ge,Vt),Bt(this,He)&&Bt(this[He],jt)&&(this[He][jt]=!1),Re(this,jt,Dt(1,Vt))};return xt&&$e&&Re(he,jt,{configurable:!0,set:Wt}),tn(jt)},Rt(ye.prototype,"toString",function(){return this._k}),qt.f=bt,te.f=Oe,gt("./_object-gopn").f=Ft.f=_t,gt("./_object-pie").f=Tt,gt("./_object-gops").f=Yt,xt&&!gt("./_library")&&Rt(he,"propertyIsEnumerable",Tt,!0),tt.f=function(jt){return tn(et(jt))}),Ot(Ot.G+Ot.W+Ot.F*!De,{Symbol:ye});for(var Mt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Ut=0;Mt.length>Ut;)et(Mt[Ut++]);for(var St=Gt(et.store),wt=0;St.length>wt;)st(St[wt++]);Ot(Ot.S+Ot.F*!De,"Symbol",{for:function(jt){return Bt(ie,jt+="")?ie[jt]:ie[jt]=ye(jt)},keyFor:function(jt){if(!Me(jt))throw TypeError(jt+" is not a symbol!");for(var Wt in ie)if(ie[Wt]===jt)return Wt},useSetter:function(){$e=!0},useSimple:function(){$e=!1}}),Ot(Ot.S+Ot.F*!De,"Object",{create:le,defineProperty:Oe,defineProperties:Fe,getOwnPropertyDescriptor:bt,getOwnPropertyNames:_t,getOwnPropertySymbols:Yt}),Te&&Ot(Ot.S+Ot.F*(!De||Lt(function(){var jt=ye();return me([jt])!="[null]"||me({a:jt})!="{}"||me(Object(jt))!="{}"})),"JSON",{stringify:function(jt){for(var Wt,Vt,oe=[jt],de=1;arguments.length>de;)oe.push(arguments[de++]);if(Vt=Wt=oe[1],(ft(Wt)||jt!==void 0)&&!Me(jt))return ut(Wt)||(Wt=function(Ge,Ye){if(typeof Vt=="function"&&(Ye=Vt.call(this,Ge,Ye)),!Me(Ye))return Ye}),oe[1]=Wt,me.apply(Te,oe)}}),ye.prototype[fe]||gt("./_hide")(ye.prototype,fe,ye.prototype.valueOf),It(ye,"Symbol"),It(Math,"Math",!0),It(kt.JSON,"JSON",!0)},{"./_an-object":61,"./_descriptors":69,"./_enum-keys":72,"./_export":73,"./_fails":74,"./_global":76,"./_has":77,"./_hide":78,"./_is-array":84,"./_is-object":85,"./_library":92,"./_meta":93,"./_object-create":97,"./_object-dp":98,"./_object-gopd":100,"./_object-gopn":102,"./_object-gopn-ext":101,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_property-desc":111,"./_redefine":113,"./_set-to-string-tag":115,"./_shared":117,"./_to-iobject":123,"./_to-primitive":126,"./_uid":127,"./_wks":131,"./_wks-define":129,"./_wks-ext":130}],147:[function(gt,Xt,Qt){"use strict";var kt=gt("./_export"),Bt=gt("./_core"),xt=gt("./_global"),Ot=gt("./_species-constructor"),Rt=gt("./_promise-resolve");kt(kt.P+kt.R,"Promise",{finally:function(Ct){var Lt=Ot(this,Bt.Promise||xt.Promise),At=typeof Ct=="function";return this.then(At?function(It){return Rt(Lt,Ct()).then(function(){return It})}:Ct,At?function(It){return Rt(Lt,Ct()).then(function(){throw It})}:Ct)}})},{"./_core":65,"./_export":73,"./_global":76,"./_promise-resolve":110,"./_species-constructor":118}],148:[function(gt,Xt,Qt){"use strict";var kt=gt("./_export"),Bt=gt("./_new-promise-capability"),xt=gt("./_perform");kt(kt.S,"Promise",{try:function(Ot){var Rt=Bt.f(this),Ct=xt(Ot);return(Ct.e?Rt.reject:Rt.resolve)(Ct.v),Rt.promise}})},{"./_export":73,"./_new-promise-capability":95,"./_perform":109}],149:[function(gt,Xt,Qt){gt("./_wks-define")("asyncIterator")},{"./_wks-define":129}],150:[function(gt,Xt,Qt){gt("./_wks-define")("observable")},{"./_wks-define":129}],151:[function(gt,Xt,Qt){gt("./es6.array.iterator");for(var kt=gt("./_global"),Bt=gt("./_hide"),xt=gt("./_iterators"),Ot=gt("./_wks")("toStringTag"),Rt="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),Ct=0;Ct<Rt.length;Ct++){var Lt=Rt[Ct],At=kt[Lt],It=At&&At.prototype;It&&!It[Ot]&&Bt(It,Ot,Lt),xt[Lt]=xt.Array}},{"./_global":76,"./_hide":78,"./_iterators":91,"./_wks":131,"./es6.array.iterator":134}],152:[function(gt,Xt,Qt){var kt=gt("./_export"),Bt=gt("./_task");kt(kt.G+kt.B,{setImmediate:Bt.set,clearImmediate:Bt.clear})},{"./_export":73,"./_task":120}],153:[function(gt,Xt,Qt){(function(kt){"use strict";function Bt(Pt){return Array.isArray?Array.isArray(Pt):ct(Pt)==="[object Array]"}function xt(Pt){return typeof Pt=="boolean"}function Ot(Pt){return Pt===null}function Rt(Pt){return Pt==null}function Ct(Pt){return typeof Pt=="number"}function Lt(Pt){return typeof Pt=="string"}function At(Pt){return(Pt===void 0?"undefined":(0,pt.default)(Pt))==="symbol"}function It(Pt){return Pt===void 0}function mt(Pt){return ct(Pt)==="[object RegExp]"}function et(Pt){return(Pt===void 0?"undefined":(0,pt.default)(Pt))==="object"&&Pt!==null}function tt(Pt){return ct(Pt)==="[object Date]"}function st(Pt){return ct(Pt)==="[object Error]"||Pt instanceof Error}function rt(Pt){return typeof Pt=="function"}function ut(Pt){return Pt===null||typeof Pt=="boolean"||typeof Pt=="number"||typeof Pt=="string"||(Pt===void 0?"undefined":(0,pt.default)(Pt))==="symbol"||Pt===void 0}function ct(Pt){return Object.prototype.toString.call(Pt)}var ft=gt("babel-runtime/helpers/typeof"),pt=function(Pt){return Pt&&Pt.__esModule?Pt:{default:Pt}}(ft);Qt.isArray=Bt,Qt.isBoolean=xt,Qt.isNull=Ot,Qt.isNullOrUndefined=Rt,Qt.isNumber=Ct,Qt.isString=Lt,Qt.isSymbol=At,Qt.isUndefined=It,Qt.isRegExp=mt,Qt.isObject=et,Qt.isDate=tt,Qt.isError=st,Qt.isFunction=rt,Qt.isPrimitive=ut,Qt.isBuffer=kt.isBuffer}).call(this,{isBuffer:gt("../../is-buffer/index.js")})},{"../../is-buffer/index.js":163,"babel-runtime/helpers/typeof":32}],154:[function(gt,Xt,Qt){"use strict";var kt=gt("babel-runtime/helpers/typeof"),Bt=function(xt){return xt&&xt.__esModule?xt:{default:xt}}(kt);(function(xt){function Ot(It,mt){for(It=String(It),mt=mt||2;It.length<mt;)It="0"+It;return It}function Rt(It){var mt=new Date(It.getFullYear(),It.getMonth(),It.getDate());mt.setDate(mt.getDate()-(mt.getDay()+6)%7+3);var et=new Date(mt.getFullYear(),0,4);et.setDate(et.getDate()-(et.getDay()+6)%7+3);var tt=mt.getTimezoneOffset()-et.getTimezoneOffset();mt.setHours(mt.getHours()-tt);var st=(mt-et)/6048e5;return 1+Math.floor(st)}function Ct(It){var mt=It.getDay();return mt===0&&(mt=7),mt}function Lt(It){return It===null?"null":It===void 0?"undefined":(It===void 0?"undefined":(0,Bt.default)(It))!=="object"?It===void 0?"undefined":(0,Bt.default)(It):Array.isArray(It)?"array":{}.toString.call(It).slice(8,-1).toLowerCase()}var At=function(){var It=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,mt=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,et=/[^-+\dA-Z]/g;return function(tt,st,rt,ut){if(arguments.length!==1||Lt(tt)!=="string"||/\d/.test(tt)||(st=tt,tt=void 0),tt=tt||new Date,tt instanceof Date||(tt=new Date(tt)),isNaN(tt))throw TypeError("Invalid date");st=String(At.masks[st]||st||At.masks.default);var ct=st.slice(0,4);ct!=="UTC:"&&ct!=="GMT:"||(st=st.slice(4),rt=!0,ct==="GMT:"&&(ut=!0));var ft=rt?"getUTC":"get",pt=tt[ft+"Date"](),Pt=tt[ft+"Day"](),Dt=tt[ft+"Month"](),Zt=tt[ft+"FullYear"](),Ft=tt[ft+"Hours"](),qt=tt[ft+"Minutes"](),te=tt[ft+"Seconds"](),Gt=tt[ft+"Milliseconds"](),ce=rt?0:tt.getTimezoneOffset(),ae=Rt(tt),xe=Ct(tt),ye={d:pt,dd:Ot(pt),ddd:At.i18n.dayNames[Pt],dddd:At.i18n.dayNames[Pt+7],m:Dt+1,mm:Ot(Dt+1),mmm:At.i18n.monthNames[Dt],mmmm:At.i18n.monthNames[Dt+12],yy:String(Zt).slice(2),yyyy:Zt,h:Ft%12||12,hh:Ot(Ft%12||12),H:Ft,HH:Ot(Ft),M:qt,MM:Ot(qt),s:te,ss:Ot(te),l:Ot(Gt,3),L:Ot(Math.round(Gt/10)),t:Ft<12?"a":"p",tt:Ft<12?"am":"pm",T:Ft<12?"A":"P",TT:Ft<12?"AM":"PM",Z:ut?"GMT":rt?"UTC":(String(tt).match(mt)||[""]).pop().replace(et,""),o:(ce>0?"-":"+")+Ot(100*Math.floor(Math.abs(ce)/60)+Math.abs(ce)%60,4),S:["th","st","nd","rd"][pt%10>3?0:(pt%100-pt%10!=10)*pt%10],W:ae,N:xe};return st.replace(It,function(Te){return Te in ye?ye[Te]:Te.slice(1,Te.length-1)})}}();At.masks={default:"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:sso",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'",expiresHeaderFormat:"ddd, dd mmm yyyy HH:MM:ss Z"},At.i18n={dayNames:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"]},typeof zt=="function"&&zt.amd?zt(function(){return At}):(Qt===void 0?"undefined":(0,Bt.default)(Qt))==="object"?Xt.exports=At:xt.dateFormat=At})(void 0)},{"babel-runtime/helpers/typeof":32}],155:[function(gt,Xt,Qt){(function(kt){function Bt(){return!(typeof window=="undefined"||!window.process||window.process.type!=="renderer")||typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function xt(Lt){var At=this.useColors;if(Lt[0]=(At?"%c":"")+this.namespace+(At?" %c":" ")+Lt[0]+(At?"%c ":" ")+"+"+Qt.humanize(this.diff),At){var It="color: "+this.color;Lt.splice(1,0,It,"color: inherit");var mt=0,et=0;Lt[0].replace(/%[a-zA-Z%]/g,function(tt){tt!=="%%"&&(mt++,tt==="%c"&&(et=mt))}),Lt.splice(et,0,It)}}function Ot(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function Rt(Lt){try{Lt==null?Qt.storage.removeItem("debug"):Qt.storage.debug=Lt}catch(At){}}function Ct(){var Lt;try{Lt=Qt.storage.debug}catch(At){}return!Lt&&kt!==void 0&&"env"in kt&&(Lt=kt.env.DEBUG),Lt}Qt=Xt.exports=gt("./debug"),Qt.log=Ot,Qt.formatArgs=xt,Qt.save=Rt,Qt.load=Ct,Qt.useColors=Bt,Qt.storage=typeof chrome!="undefined"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch(Lt){}}(),Qt.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],Qt.formatters.j=function(Lt){try{return JSON.stringify(Lt)}catch(At){return"[UnexpectedJSONParseError]: "+At.message}},Qt.enable(Ct())}).call(this,gt("_process"))},{"./debug":156,_process:173}],156:[function(gt,Xt,Qt){function kt(At){var It,mt=0;for(It in At)mt=(mt<<5)-mt+At.charCodeAt(It),mt|=0;return Qt.colors[Math.abs(mt)%Qt.colors.length]}function Bt(At){function It(){if(It.enabled){var mt=It,et=+new Date,tt=et-(Lt||et);mt.diff=tt,mt.prev=Lt,mt.curr=et,Lt=et;for(var st=new Array(arguments.length),rt=0;rt<st.length;rt++)st[rt]=arguments[rt];st[0]=Qt.coerce(st[0]),typeof st[0]!="string"&&st.unshift("%O");var ut=0;st[0]=st[0].replace(/%([a-zA-Z%])/g,function(ct,ft){if(ct==="%%")return ct;ut++;var pt=Qt.formatters[ft];if(typeof pt=="function"){var Pt=st[ut];ct=pt.call(mt,Pt),st.splice(ut,1),ut--}return ct}),Qt.formatArgs.call(mt,st),(It.log||Qt.log||console.log.bind(console)).apply(mt,st)}}return It.namespace=At,It.enabled=Qt.enabled(At),It.useColors=Qt.useColors(),It.color=kt(At),typeof Qt.init=="function"&&Qt.init(It),It}function xt(At){Qt.save(At),Qt.names=[],Qt.skips=[];for(var It=(typeof At=="string"?At:"").split(/[\s,]+/),mt=It.length,et=0;et<mt;et++)It[et]&&(At=It[et].replace(/\*/g,".*?"),At[0]==="-"?Qt.skips.push(new RegExp("^"+At.substr(1)+"$")):Qt.names.push(new RegExp("^"+At+"$")))}function Ot(){Qt.enable("")}function Rt(At){var It,mt;for(It=0,mt=Qt.skips.length;It<mt;It++)if(Qt.skips[It].test(At))return!1;for(It=0,mt=Qt.names.length;It<mt;It++)if(Qt.names[It].test(At))return!0;return!1}function Ct(At){return At instanceof Error?At.stack||At.message:At}Qt=Xt.exports=Bt.debug=Bt.default=Bt,Qt.coerce=Ct,Qt.disable=Ot,Qt.enable=xt,Qt.enabled=Rt,Qt.humanize=gt("ms"),Qt.names=[],Qt.skips=[],Qt.formatters={};var Lt},{ms:169}],157:[function(gt,Xt,Qt){"use strict";function kt(xt){var Ot=""+xt,Rt=Bt.exec(Ot);if(!Rt)return Ot;var Ct,Lt="",At=0,It=0;for(At=Rt.index;At<Ot.length;At++){switch(Ot.charCodeAt(At)){case 34:Ct=""";break;case 38:Ct="&";break;case 39:Ct="'";break;case 60:Ct="<";break;case 62:Ct=">";break;default:continue}It!==At&&(Lt+=Ot.substring(It,At)),It=At+1,Lt+=Ct}return It!==At?Lt+Ot.substring(It,At):Lt}var Bt=/["'&<>]/;Xt.exports=kt},{}],158:[function(gt,Xt,Qt){function kt(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function Bt(Ct){return typeof Ct=="function"}function xt(Ct){return typeof Ct=="number"}function Ot(Ct){return typeof Ct=="object"&&Ct!==null}function Rt(Ct){return Ct===void 0}Xt.exports=kt,kt.EventEmitter=kt,kt.prototype._events=void 0,kt.prototype._maxListeners=void 0,kt.defaultMaxListeners=10,kt.prototype.setMaxListeners=function(Ct){if(!xt(Ct)||Ct<0||isNaN(Ct))throw TypeError("n must be a positive number");return this._maxListeners=Ct,this},kt.prototype.emit=function(Ct){var Lt,At,It,mt,et,tt;if(this._events||(this._events={}),Ct==="error"&&(!this._events.error||Ot(this._events.error)&&!this._events.error.length)){if((Lt=arguments[1])instanceof Error)throw Lt;var st=new Error('Uncaught, unspecified "error" event. ('+Lt+")");throw st.context=Lt,st}if(At=this._events[Ct],Rt(At))return!1;if(Bt(At))switch(arguments.length){case 1:At.call(this);break;case 2:At.call(this,arguments[1]);break;case 3:At.call(this,arguments[1],arguments[2]);break;default:mt=Array.prototype.slice.call(arguments,1),At.apply(this,mt)}else if(Ot(At))for(mt=Array.prototype.slice.call(arguments,1),tt=At.slice(),It=tt.length,et=0;et<It;et++)tt[et].apply(this,mt);return!0},kt.prototype.addListener=function(Ct,Lt){var At;if(!Bt(Lt))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",Ct,Bt(Lt.listener)?Lt.listener:Lt),this._events[Ct]?Ot(this._events[Ct])?this._events[Ct].push(Lt):this._events[Ct]=[this._events[Ct],Lt]:this._events[Ct]=Lt,Ot(this._events[Ct])&&!this._events[Ct].warned&&(At=Rt(this._maxListeners)?kt.defaultMaxListeners:this._maxListeners)&&At>0&&this._events[Ct].length>At&&(this._events[Ct].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[Ct].length),typeof console.trace=="function"&&console.trace()),this},kt.prototype.on=kt.prototype.addListener,kt.prototype.once=function(Ct,Lt){function At(){this.removeListener(Ct,At),It||(It=!0,Lt.apply(this,arguments))}if(!Bt(Lt))throw TypeError("listener must be a function");var It=!1;return At.listener=Lt,this.on(Ct,At),this},kt.prototype.removeListener=function(Ct,Lt){var At,It,mt,et;if(!Bt(Lt))throw TypeError("listener must be a function");if(!this._events||!this._events[Ct])return this;if(At=this._events[Ct],mt=At.length,It=-1,At===Lt||Bt(At.listener)&&At.listener===Lt)delete this._events[Ct],this._events.removeListener&&this.emit("removeListener",Ct,Lt);else if(Ot(At)){for(et=mt;et-- >0;)if(At[et]===Lt||At[et].listener&&At[et].listener===Lt){It=et;break}if(It<0)return this;At.length===1?(At.length=0,delete this._events[Ct]):At.splice(It,1),this._events.removeListener&&this.emit("removeListener",Ct,Lt)}return this},kt.prototype.removeAllListeners=function(Ct){var Lt,At;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[Ct]&&delete this._events[Ct],this;if(arguments.length===0){for(Lt in this._events)Lt!=="removeListener"&&this.removeAllListeners(Lt);return this.removeAllListeners("removeListener"),this._events={},this}if(At=this._events[Ct],Bt(At))this.removeListener(Ct,At);else if(At)for(;At.length;)this.removeListener(Ct,At[At.length-1]);return delete this._events[Ct],this},kt.prototype.listeners=function(Ct){return this._events&&this._events[Ct]?Bt(this._events[Ct])?[this._events[Ct]]:this._events[Ct].slice():[]},kt.prototype.listenerCount=function(Ct){if(this._events){var Lt=this._events[Ct];if(Bt(Lt))return 1;if(Lt)return Lt.length}return 0},kt.listenerCount=function(Ct,Lt){return Ct.listenerCount(Lt)}},{}],159:[function(gt,Xt,Qt){var kt=gt("http"),Bt=Xt.exports;for(var xt in kt)kt.hasOwnProperty(xt)&&(Bt[xt]=kt[xt]);Bt.request=function(Ot,Rt){return Ot||(Ot={}),Ot.scheme="https",Ot.protocol="https:",kt.request.call(this,Ot,Rt)}},{http:196}],160:[function(gt,Xt,Qt){"use strict";var kt=gt("util"),Bt=gt("ms");Xt.exports=function(xt){if(typeof xt=="number")return xt;var Ot=Bt(xt);if(Ot===void 0){var Rt=new Error(kt.format("humanize-ms(%j) result undefined",xt));console.warn(Rt.stack)}return Ot}},{ms:169,util:207}],161:[function(gt,Xt,Qt){Qt.read=function(kt,Bt,xt,Ot,Rt){var Ct,Lt,At=8*Rt-Ot-1,It=(1<<At)-1,mt=It>>1,et=-7,tt=xt?Rt-1:0,st=xt?-1:1,rt=kt[Bt+tt];for(tt+=st,Ct=rt&(1<<-et)-1,rt>>=-et,et+=At;et>0;Ct=256*Ct+kt[Bt+tt],tt+=st,et-=8);for(Lt=Ct&(1<<-et)-1,Ct>>=-et,et+=Ot;et>0;Lt=256*Lt+kt[Bt+tt],tt+=st,et-=8);if(Ct===0)Ct=1-mt;else{if(Ct===It)return Lt?NaN:1/0*(rt?-1:1);Lt+=Math.pow(2,Ot),Ct-=mt}return(rt?-1:1)*Lt*Math.pow(2,Ct-Ot)},Qt.write=function(kt,Bt,xt,Ot,Rt,Ct){var Lt,At,It,mt=8*Ct-Rt-1,et=(1<<mt)-1,tt=et>>1,st=Rt===23?Math.pow(2,-24)-Math.pow(2,-77):0,rt=Ot?0:Ct-1,ut=Ot?1:-1,ct=Bt<0||Bt===0&&1/Bt<0?1:0;for(Bt=Math.abs(Bt),isNaN(Bt)||Bt===1/0?(At=isNaN(Bt)?1:0,Lt=et):(Lt=Math.floor(Math.log(Bt)/Math.LN2),Bt*(It=Math.pow(2,-Lt))<1&&(Lt--,It*=2),Bt+=Lt+tt>=1?st/It:st*Math.pow(2,1-tt),Bt*It>=2&&(Lt++,It/=2),Lt+tt>=et?(At=0,Lt=et):Lt+tt>=1?(At=(Bt*It-1)*Math.pow(2,Rt),Lt+=tt):(At=Bt*Math.pow(2,tt-1)*Math.pow(2,Rt),Lt=0));Rt>=8;kt[xt+rt]=255&At,rt+=ut,At/=256,Rt-=8);for(Lt=Lt<<Rt|At,mt+=Rt;mt>0;kt[xt+rt]=255&Lt,rt+=ut,Lt/=256,mt-=8);kt[xt+rt-ut]|=128*ct}},{}],162:[function(gt,Xt,Qt){typeof Object.create=="function"?Xt.exports=function(kt,Bt){kt.super_=Bt,kt.prototype=Object.create(Bt.prototype,{constructor:{value:kt,enumerable:!1,writable:!0,configurable:!0}})}:Xt.exports=function(kt,Bt){kt.super_=Bt;var xt=function(){};xt.prototype=Bt.prototype,kt.prototype=new xt,kt.prototype.constructor=kt}},{}],163:[function(gt,Xt,Qt){function kt(xt){return!!xt.constructor&&typeof xt.constructor.isBuffer=="function"&&xt.constructor.isBuffer(xt)}function Bt(xt){return typeof xt.readFloatLE=="function"&&typeof xt.slice=="function"&&kt(xt.slice(0,0))}Xt.exports=function(xt){return xt!=null&&(kt(xt)||Bt(xt)||!!xt._isBuffer)}},{}],164:[function(gt,Xt,Qt){(function(kt){function Bt(Rt){return Ot.call(Rt).replace(/^[^{]*{\s*/,"").replace(/\s*}[^}]*$/,"")}function xt(Rt){return typeof Rt=="function"&&(/^class(\s|\{\}$)/.test(Ot.call(Rt))||/^.*classCallCheck\(/.test(Bt(Rt)))}var Ot=Function.prototype.toString;Qt!==void 0?(Xt!==void 0&&Xt.exports&&(Qt=Xt.exports=xt),Qt.isClass=xt):typeof zt=="function"&&zt.amd?zt([],function(){return xt}):kt.isClass=xt})(this)},{}],165:[function(gt,Xt,Qt){"use strict";function kt(Ct){var Lt=Ct.slice(2);return Lt=Lt[0].toLowerCase()+Lt.slice(1)}var Bt=gt("core-util-is"),xt=gt("isstream"),Ot=gt("is-class");Object.keys(Bt).map(function(Ct){Qt[kt(Ct)]=Bt[Ct]}),Qt.stream=xt,Qt.readableStream=xt.isReadable,Qt.writableStream=xt.isWritable,Qt.duplexStream=xt.isDuplex,Qt.class=Ot,Qt.finite=function(Ct){return Number.isFinite(Ct)},Qt.NaN=function(Ct){return Number.isNaN(Ct)},Qt.generator=function(Ct){return Ct&&typeof Ct.next=="function"&&typeof Ct.throw=="function"},Qt.generatorFunction=function(Ct){return Ct&&Ct.constructor&&Ct.constructor.name==="GeneratorFunction"},Qt.asyncFunction=function(Ct){return Ct&&Ct.constructor&&Ct.constructor.name==="AsyncFunction"},Qt.promise=function(Ct){return Ct&&typeof Ct.then=="function"};var Rt=Math.pow(2,31);Qt.int=function(Ct){return Bt.isNumber(Ct)&&Ct%1==0},Qt.int32=function(Ct){return Qt.int(Ct)&&Ct<Rt&&Ct>=-Rt},Qt.long=function(Ct){return Qt.int(Ct)&&(Ct>=Rt||Ct<-Rt)},Qt.Long=function(Ct){return Qt.object(Ct)&&Qt.number(Ct.high)&&Qt.number(Ct.low)},Qt.double=function(Ct){return Bt.isNumber(Ct)&&!isNaN(Ct)&&Ct%1!=0},Qt.date=function(Ct){return Ct instanceof Date},Qt.regExp=function(Ct){return Ct instanceof RegExp},Qt.regexp=Qt.regExp,Qt.error=function(Ct){return Ct instanceof Error},Qt.array=function(Ct){return Array.isArray(Ct)}},{"core-util-is":153,"is-class":164,isstream:167}],166:[function(gt,Xt,Qt){var kt={}.toString;Xt.exports=Array.isArray||function(Bt){return kt.call(Bt)=="[object Array]"}},{}],167:[function(gt,Xt,Qt){function kt(Ct){return Ct instanceof Rt.Stream}function Bt(Ct){return kt(Ct)&&typeof Ct._read=="function"&&typeof Ct._readableState=="object"}function xt(Ct){return kt(Ct)&&typeof Ct._write=="function"&&typeof Ct._writableState=="object"}function Ot(Ct){return Bt(Ct)&&xt(Ct)}var Rt=gt("stream");Xt.exports=kt,Xt.exports.isReadable=Bt,Xt.exports.isWritable=xt,Xt.exports.isDuplex=Ot},{stream:195}],168:[function(gt,Xt,Qt){"use strict";function kt(xt,Ot,Rt){if(!xt)throw new TypeError("argument dest is required");if(!Ot)throw new TypeError("argument src is required");return Rt===void 0&&(Rt=!0),Object.getOwnPropertyNames(Ot).forEach(function(Ct){if(Rt||!Bt.call(xt,Ct)){var Lt=Object.getOwnPropertyDescriptor(Ot,Ct);Object.defineProperty(xt,Ct,Lt)}}),xt}Xt.exports=kt;var Bt=Object.prototype.hasOwnProperty},{}],169:[function(gt,Xt,Qt){function kt(mt){if(mt=String(mt),!(mt.length>100)){var et=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(mt);if(et){var tt=parseFloat(et[1]);switch((et[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return tt*It;case"days":case"day":case"d":return tt*At;case"hours":case"hour":case"hrs":case"hr":case"h":return tt*Lt;case"minutes":case"minute":case"mins":case"min":case"m":return tt*Ct;case"seconds":case"second":case"secs":case"sec":case"s":return tt*Rt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return tt;default:return}}}}function Bt(mt){return mt>=At?Math.round(mt/At)+"d":mt>=Lt?Math.round(mt/Lt)+"h":mt>=Ct?Math.round(mt/Ct)+"m":mt>=Rt?Math.round(mt/Rt)+"s":mt+"ms"}function xt(mt){return Ot(mt,At,"day")||Ot(mt,Lt,"hour")||Ot(mt,Ct,"minute")||Ot(mt,Rt,"second")||mt+" ms"}function Ot(mt,et,tt){if(!(mt<et))return mt<1.5*et?Math.floor(mt/et)+" "+tt:Math.ceil(mt/et)+" "+tt+"s"}var Rt=1e3,Ct=60*Rt,Lt=60*Ct,At=24*Lt,It=365.25*At;Xt.exports=function(mt,et){et=et||{};var tt=typeof mt;if(tt==="string"&&mt.length>0)return kt(mt);if(tt==="number"&&isNaN(mt)===!1)return et.long?xt(mt):Bt(mt);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(mt))}},{}],170:[function(gt,Xt,Qt){(function(kt){function Bt(Ct,Lt){for(var At=0,It=Ct.length-1;It>=0;It--){var mt=Ct[It];mt==="."?Ct.splice(It,1):mt===".."?(Ct.splice(It,1),At++):At&&(Ct.splice(It,1),At--)}if(Lt)for(;At--;At)Ct.unshift("..");return Ct}function xt(Ct){typeof Ct!="string"&&(Ct+="");var Lt,At=0,It=-1,mt=!0;for(Lt=Ct.length-1;Lt>=0;--Lt)if(Ct.charCodeAt(Lt)===47){if(!mt){At=Lt+1;break}}else It===-1&&(mt=!1,It=Lt+1);return It===-1?"":Ct.slice(At,It)}function Ot(Ct,Lt){if(Ct.filter)return Ct.filter(Lt);for(var At=[],It=0;It<Ct.length;It++)Lt(Ct[It],It,Ct)&&At.push(Ct[It]);return At}Qt.resolve=function(){for(var Ct="",Lt=!1,At=arguments.length-1;At>=-1&&!Lt;At--){var It=At>=0?arguments[At]:kt.cwd();if(typeof It!="string")throw new TypeError("Arguments to path.resolve must be strings");It&&(Ct=It+"/"+Ct,Lt=It.charAt(0)==="/")}return Ct=Bt(Ot(Ct.split("/"),function(mt){return!!mt}),!Lt).join("/"),(Lt?"/":"")+Ct||"."},Qt.normalize=function(Ct){var Lt=Qt.isAbsolute(Ct),At=Rt(Ct,-1)==="/";return Ct=Bt(Ot(Ct.split("/"),function(It){return!!It}),!Lt).join("/"),Ct||Lt||(Ct="."),Ct&&At&&(Ct+="/"),(Lt?"/":"")+Ct},Qt.isAbsolute=function(Ct){return Ct.charAt(0)==="/"},Qt.join=function(){var Ct=Array.prototype.slice.call(arguments,0);return Qt.normalize(Ot(Ct,function(Lt,At){if(typeof Lt!="string")throw new TypeError("Arguments to path.join must be strings");return Lt}).join("/"))},Qt.relative=function(Ct,Lt){function At(ut){for(var ct=0;ct<ut.length&&ut[ct]==="";ct++);for(var ft=ut.length-1;ft>=0&&ut[ft]==="";ft--);return ct>ft?[]:ut.slice(ct,ft-ct+1)}Ct=Qt.resolve(Ct).substr(1),Lt=Qt.resolve(Lt).substr(1);for(var It=At(Ct.split("/")),mt=At(Lt.split("/")),et=Math.min(It.length,mt.length),tt=et,st=0;st<et;st++)if(It[st]!==mt[st]){tt=st;break}for(var rt=[],st=tt;st<It.length;st++)rt.push("..");return rt=rt.concat(mt.slice(tt)),rt.join("/")},Qt.sep="/",Qt.delimiter=":",Qt.dirname=function(Ct){if(typeof Ct!="string"&&(Ct+=""),Ct.length===0)return".";for(var Lt=Ct.charCodeAt(0),At=Lt===47,It=-1,mt=!0,et=Ct.length-1;et>=1;--et)if((Lt=Ct.charCodeAt(et))===47){if(!mt){It=et;break}}else mt=!1;return It===-1?At?"/":".":At&&It===1?"/":Ct.slice(0,It)},Qt.basename=function(Ct,Lt){var At=xt(Ct);return Lt&&At.substr(-1*Lt.length)===Lt&&(At=At.substr(0,At.length-Lt.length)),At},Qt.extname=function(Ct){typeof Ct!="string"&&(Ct+="");for(var Lt=-1,At=0,It=-1,mt=!0,et=0,tt=Ct.length-1;tt>=0;--tt){var st=Ct.charCodeAt(tt);if(st!==47)It===-1&&(mt=!1,It=tt+1),st===46?Lt===-1?Lt=tt:et!==1&&(et=1):Lt!==-1&&(et=-1);else if(!mt){At=tt+1;break}}return Lt===-1||It===-1||et===0||et===1&&Lt===It-1&&Lt===At+1?"":Ct.slice(Lt,It)};var Rt=function(Ct,Lt,At){return Ct.substr(Lt,At)}}).call(this,gt("_process"))},{_process:173}],171:[function(gt,Xt,Qt){(function(kt){(function(){"use strict";function Bt(te){return te=String(te),te.charAt(0).toUpperCase()+te.slice(1)}function xt(te,Gt,ce){var ae={"10.0":"10",6.4:"10 Technical Preview",6.3:"8.1",6.2:"8",6.1:"Server 2008 R2 / 7","6.0":"Server 2008 / Vista",5.2:"Server 2003 / XP 64-bit",5.1:"XP",5.01:"2000 SP1","5.0":"2000","4.0":"NT","4.90":"ME"};return Gt&&ce&&/^Win/i.test(te)&&!/^Windows Phone /i.test(te)&&(ae=ae[/[\d.]+$/.exec(te)])&&(te="Windows "+ae),te=String(te),Gt&&ce&&(te=te.replace(RegExp(Gt,"i"),ce)),te=Rt(te.replace(/ ce$/i," CE").replace(/\bhpw/i,"web").replace(/\bMacintosh\b/,"Mac OS").replace(/_PowerPC\b/i," OS").replace(/\b(OS X) [^ \d]+/i,"$1").replace(/\bMac (OS X)\b/,"$1").replace(/\/(\d)/," $1").replace(/_/g,".").replace(/(?: BePC|[ .]*fc[ \d.]+)$/i,"").replace(/\bx86\.64\b/gi,"x86_64").replace(/\b(Windows Phone) OS\b/,"$1").replace(/\b(Chrome OS \w+) [\d.]+\b/,"$1").split(" on ")[0])}function Ot(te,Gt){var ce=-1,ae=te?te.length:0;if(typeof ae=="number"&&ae>-1&&ae<=pt)for(;++ce<ae;)Gt(te[ce],ce,te);else Ct(te,Gt)}function Rt(te){return te=et(te),/^(?:webOS|i(?:OS|P))/.test(te)?te:Bt(te)}function Ct(te,Gt){for(var ce in te)Zt.call(te,ce)&&Gt(te[ce],ce,te)}function Lt(te){return te==null?Bt(te):Ft.call(te).slice(8,-1)}function At(te,Gt){var ce=te!=null?typeof te[Gt]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(ce)||ce=="object"&&!te[Gt])}function It(te){return String(te).replace(/([ -])(?!$)/g,"$1?")}function mt(te,Gt){var ce=null;return Ot(te,function(ae,xe){ce=Gt(ce,ae,xe,te)}),ce}function et(te){return String(te).replace(/^ +| +$/g,"")}function tt(te){function Gt(jt){return mt(jt,function(Wt,Vt){var oe=Vt.pattern||It(Vt);return!Wt&&(Wt=RegExp("\\b"+oe+" *\\d+[.\\w_]*","i").exec(te)||RegExp("\\b"+oe+" *\\w+-[\\w]*","i").exec(te)||RegExp("\\b"+oe+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(te))&&((Wt=String(Vt.label&&!RegExp(oe,"i").test(Vt.label)?Vt.label:Wt).split("/"))[1]&&!/[\d.]+/.test(Wt[0])&&(Wt[0]+=" "+Wt[1]),Vt=Vt.label||Vt,Wt=Rt(Wt[0].replace(RegExp(oe,"i"),Vt).replace(RegExp("; *(?:"+Vt+"[_-])?","i")," ").replace(RegExp("("+Vt+")[-_.]?(\\w)","i"),"$1 $2"))),Wt})}function ce(){return this.description||""}var ae=rt,xe=te&&typeof te=="object"&&Lt(te)!="String";xe&&(ae=te,te=null);var ye=ae.navigator||{},Te=ye.userAgent||"";te||(te=Te);var me,He,fe=xe?!!ye.likeChrome:/\bChrome\b/.test(te)&&!/internal|\n/i.test(Ft.toString()),$t=xe?"Object":"ScriptBridgingProxyObject",ie=xe?"Object":"Environment",ue=xe&&ae.java?"JavaPackage":Lt(ae.java),ge=xe?"Object":"RuntimeObject",he=/\bJava/.test(ue)&&ae.java,De=he&&Lt(ae.environment)==ie,Ne=he?"a":"\u4F2A",$e=he?"b":"\u5C3E",Re=ae.document||{},tn=ae.operamini||ae.opera,Me=Pt.test(Me=xe&&tn?tn["[[Class]]"]:Lt(tn))?Me:tn=null,Oe=te,Fe=[],le=null,Tt=te==Te,bt=Tt&&tn&&typeof tn.version=="function"&&tn.version(),_t=function(jt){return mt(jt,function(Wt,Vt){return Wt||RegExp("\\b"+(Vt.pattern||It(Vt))+"\\b","i").exec(te)&&(Vt.label||Vt)})}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),Yt=function(jt){return mt(jt,function(Wt,Vt){return Wt||RegExp("\\b"+(Vt.pattern||It(Vt))+"\\b","i").exec(te)&&(Vt.label||Vt)})}(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),Mt=Gt([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),Ut=function(jt){return mt(jt,function(Wt,Vt,oe){return Wt||(Vt[Mt]||Vt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(Mt)]||RegExp("\\b"+It(oe)+"(?:\\b|\\w*\\d)","i").exec(te))&&oe})}({Apple:{iPad:1,iPhone:1,iPod:1},Archos:{},Amazon:{Kindle:1,"Kindle Fire":1},Asus:{Transformer:1},"Barnes & Noble":{Nook:1},BlackBerry:{PlayBook:1},Google:{"Google TV":1,Nexus:1},HP:{TouchPad:1},HTC:{},LG:{},Microsoft:{Xbox:1,"Xbox One":1},Motorola:{Xoom:1},Nintendo:{"Wii U":1,Wii:1},Nokia:{Lumia:1},Samsung:{"Galaxy S":1,"Galaxy S2":1,"Galaxy S3":1,"Galaxy S4":1},Sony:{PlayStation:1,"PlayStation Vita":1}}),St=function(jt){return mt(jt,function(Wt,Vt){var oe=Vt.pattern||It(Vt);return!Wt&&(Wt=RegExp("\\b"+oe+"(?:/[\\d.]+|[ \\w.]*)","i").exec(te))&&(Wt=xt(Wt,oe,Vt.label||Vt)),Wt})}(["Windows Phone","Android","CentOS",{label:"Chrome OS",pattern:"CrOS"},"Debian","Fedora","FreeBSD","Gentoo","Haiku","Kubuntu","Linux Mint","OpenBSD","Red Hat","SuSE","Ubuntu","Xubuntu","Cygwin","Symbian OS","hpwOS","webOS ","webOS","Tablet OS","Tizen","Linux","Mac OS X","Macintosh","Mac","Windows 98;","Windows "]);if(_t&&(_t=[_t]),Ut&&!Mt&&(Mt=Gt([Ut])),(me=/\bGoogle TV\b/.exec(Mt))&&(Mt=me[0]),/\bSimulator\b/i.test(te)&&(Mt=(Mt?Mt+" ":"")+"Simulator"),Yt=="Opera Mini"&&/\bOPiOS\b/.test(te)&&Fe.push("running in Turbo/Uncompressed mode"),Yt=="IE"&&/\blike iPhone OS\b/.test(te)?(me=tt(te.replace(/like iPhone OS/,"")),Ut=me.manufacturer,Mt=me.product):/^iP/.test(Mt)?(Yt||(Yt="Safari"),St="iOS"+((me=/ OS ([\d_]+)/i.exec(te))?" "+me[1].replace(/_/g,"."):"")):Yt!="Konqueror"||/buntu/i.test(St)?Ut&&Ut!="Google"&&(/Chrome/.test(Yt)&&!/\bMobile Safari\b/i.test(te)||/\bVita\b/.test(Mt))||/\bAndroid\b/.test(St)&&/^Chrome/.test(Yt)&&/\bVersion\//i.test(te)?(Yt="Android Browser",St=/\bAndroid\b/.test(St)?St:"Android"):Yt=="Silk"?(/\bMobi/i.test(te)||(St="Android",Fe.unshift("desktop mode")),/Accelerated *= *true/i.test(te)&&Fe.unshift("accelerated")):Yt=="PaleMoon"&&(me=/\bFirefox\/([\d.]+)\b/.exec(te))?Fe.push("identifying as Firefox "+me[1]):Yt=="Firefox"&&(me=/\b(Mobile|Tablet|TV)\b/i.exec(te))?(St||(St="Firefox OS"),Mt||(Mt=me[1])):!Yt||(me=!/\bMinefield\b/i.test(te)&&/\b(?:Firefox|Safari)\b/.exec(Yt))?(Yt&&!Mt&&/[\/,]|^[^(]+?\)/.test(te.slice(te.indexOf(me+"/")+8))&&(Yt=null),(me=Mt||Ut||St)&&(Mt||Ut||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(St))&&(Yt=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(St)?St:me)+" Browser")):Yt=="Electron"&&(me=(/\bChrome\/([\d.]+)\b/.exec(te)||0)[1])&&Fe.push("Chromium "+me):St="Kubuntu",bt||(bt=function(jt){return mt(jt,function(Wt,Vt){return Wt||(RegExp(Vt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(te)||0)[1]||null})}(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",It(Yt),"(?:Firefox|Minefield|NetFront)"])),(me=_t=="iCab"&&parseFloat(bt)>3&&"WebKit"||/\bOpera\b/.test(Yt)&&(/\bOPR\b/.test(te)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(te)&&!/^(?:Trident|EdgeHTML)$/.test(_t)&&"WebKit"||!_t&&/\bMSIE\b/i.test(te)&&(St=="Mac OS"?"Tasman":"Trident")||_t=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(Yt)&&"NetFront")&&(_t=[me]),Yt=="IE"&&(me=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(te)||0)[1])?(Yt+=" Mobile",St="Windows Phone "+(/\+$/.test(me)?me:me+".x"),Fe.unshift("desktop mode")):/\bWPDesktop\b/i.test(te)?(Yt="IE Mobile",St="Windows Phone 8.x",Fe.unshift("desktop mode"),bt||(bt=(/\brv:([\d.]+)/.exec(te)||0)[1])):Yt!="IE"&&_t=="Trident"&&(me=/\brv:([\d.]+)/.exec(te))&&(Yt&&Fe.push("identifying as "+Yt+(bt?" "+bt:"")),Yt="IE",bt=me[1]),Tt){if(At(ae,"global"))if(he&&(me=he.lang.System,Oe=me.getProperty("os.arch"),St=St||me.getProperty("os.name")+" "+me.getProperty("os.version")),De){try{bt=ae.require("ringo/engine").version.join("."),Yt="RingoJS"}catch(jt){(me=ae.system)&&me.global.system==ae.system&&(Yt="Narwhal",St||(St=me[0].os||null))}Yt||(Yt="Rhino")}else typeof ae.process=="object"&&!ae.process.browser&&(me=ae.process)&&(typeof me.versions=="object"&&(typeof me.versions.electron=="string"?(Fe.push("Node "+me.versions.node),Yt="Electron",bt=me.versions.electron):typeof me.versions.nw=="string"&&(Fe.push("Chromium "+bt,"Node "+me.versions.node),Yt="NW.js",bt=me.versions.nw)),Yt||(Yt="Node.js",Oe=me.arch,St=me.platform,bt=/[\d.]+/.exec(me.version),bt=bt?bt[0]:null));else Lt(me=ae.runtime)==$t?(Yt="Adobe AIR",St=me.flash.system.Capabilities.os):Lt(me=ae.phantom)==ge?(Yt="PhantomJS",bt=(me=me.version||null)&&me.major+"."+me.minor+"."+me.patch):typeof Re.documentMode=="number"&&(me=/\bTrident\/(\d+)/i.exec(te))?(bt=[bt,Re.documentMode],(me=+me[1]+4)!=bt[1]&&(Fe.push("IE "+bt[1]+" mode"),_t&&(_t[1]=""),bt[1]=me),bt=Yt=="IE"?String(bt[1].toFixed(1)):bt[0]):typeof Re.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(Yt)&&(Fe.push("masking as "+Yt+" "+bt),Yt="IE",bt="11.0",_t=["Trident"],St="Windows");St=St&&Rt(St)}if(bt&&(me=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(bt)||/(?:alpha|beta)(?: ?\d)?/i.exec(te+";"+(Tt&&ye.appMinorVersion))||/\bMinefield\b/i.test(te)&&"a")&&(le=/b/i.test(me)?"beta":"alpha",bt=bt.replace(RegExp(me+"\\+?$"),"")+(le=="beta"?$e:Ne)+(/\d+\+?/.exec(me)||"")),Yt=="Fennec"||Yt=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(St))Yt="Firefox Mobile";else if(Yt=="Maxthon"&&bt)bt=bt.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(Mt))Mt=="Xbox 360"&&(St=null),Mt=="Xbox 360"&&/\bIEMobile\b/.test(te)&&Fe.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(Yt)&&(!Yt||Mt||/Browser|Mobi/.test(Yt))||St!="Windows CE"&&!/Mobi/i.test(te))if(Yt=="IE"&&Tt)try{ae.external===null&&Fe.unshift("platform preview")}catch(jt){Fe.unshift("embedded")}else(/\bBlackBerry\b/.test(Mt)||/\bBB10\b/.test(te))&&(me=(RegExp(Mt.replace(/ +/g," *")+"/([.\\d]+)","i").exec(te)||0)[1]||bt)?(me=[me,/BB10/.test(te)],St=(me[1]?(Mt=null,Ut="BlackBerry"):"Device Software")+" "+me[0],bt=null):this!=Ct&&Mt!="Wii"&&(Tt&&tn||/Opera/.test(Yt)&&/\b(?:MSIE|Firefox)\b/i.test(te)||Yt=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(St)||Yt=="IE"&&(St&&!/^Win/.test(St)&&bt>5.5||/\bWindows XP\b/.test(St)&&bt>8||bt==8&&!/\bTrident\b/.test(te)))&&!Pt.test(me=tt.call(Ct,te.replace(Pt,"")+";"))&&me.name&&(me="ing as "+me.name+((me=me.version)?" "+me:""),Pt.test(Yt)?(/\bIE\b/.test(me)&&St=="Mac OS"&&(St=null),me="identify"+me):(me="mask"+me,Yt=Me?Rt(Me.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(me)&&(St=null),Tt||(bt=null)),_t=["Presto"],Fe.push(me));else Yt+=" Mobile";(me=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(te)||0)[1])&&(me=[parseFloat(me.replace(/\.(\d)$/,".0$1")),me],Yt=="Safari"&&me[1].slice(-1)=="+"?(Yt="WebKit Nightly",le="alpha",bt=me[1].slice(0,-1)):bt!=me[1]&&bt!=(me[2]=(/\bSafari\/([\d.]+\+?)/i.exec(te)||0)[1])||(bt=null),me[1]=(/\bChrome\/([\d.]+)/i.exec(te)||0)[1],me[0]==537.36&&me[2]==537.36&&parseFloat(me[1])>=28&&_t=="WebKit"&&(_t=["Blink"]),Tt&&(fe||me[1])?(_t&&(_t[1]="like Chrome"),me=me[1]||(me=me[0],me<530?1:me<532?2:me<532.05?3:me<533?4:me<534.03?5:me<534.07?6:me<534.1?7:me<534.13?8:me<534.16?9:me<534.24?10:me<534.3?11:me<535.01?12:me<535.02?"13+":me<535.07?15:me<535.11?16:me<535.19?17:me<536.05?18:me<536.1?19:me<537.01?20:me<537.11?"21+":me<537.13?23:me<537.18?24:me<537.24?25:me<537.36?26:_t!="Blink"?"27":"28")):(_t&&(_t[1]="like Safari"),me=me[0],me=me<400?1:me<500?2:me<526?3:me<533?4:me<534?"4+":me<535?5:me<537?6:me<538?7:me<601?8:"8"),_t&&(_t[1]+=" "+(me+=typeof me=="number"?".x":/[.+]/.test(me)?"":"+")),Yt=="Safari"&&(!bt||parseInt(bt)>45)&&(bt=me)),Yt=="Opera"&&(me=/\bzbov|zvav$/.exec(St))?(Yt+=" ",Fe.unshift("desktop mode"),me=="zvav"?(Yt+="Mini",bt=null):Yt+="Mobile",St=St.replace(RegExp(" *"+me+"$"),"")):Yt=="Safari"&&/\bChrome\b/.exec(_t&&_t[1])&&(Fe.unshift("desktop mode"),Yt="Chrome Mobile",bt=null,/\bOS X\b/.test(St)?(Ut="Apple",St="iOS 4.3+"):St=null),bt&&bt.indexOf(me=/[\d.]+$/.exec(St))==0&&te.indexOf("/"+me+"-")>-1&&(St=et(St.replace(me,""))),_t&&!/\b(?:Avant|Nook)\b/.test(Yt)&&(/Browser|Lunascape|Maxthon/.test(Yt)||Yt!="Safari"&&/^iOS/.test(St)&&/\bSafari\b/.test(_t[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(Yt)&&_t[1])&&(me=_t[_t.length-1])&&Fe.push(me),Fe.length&&(Fe=["("+Fe.join("; ")+")"]),Ut&&Mt&&Mt.indexOf(Ut)<0&&Fe.push("on "+Ut),Mt&&Fe.push((/^on /.test(Fe[Fe.length-1])?"":"on ")+Mt),St&&(me=/ ([\d.+]+)$/.exec(St),He=me&&St.charAt(St.length-me[0].length-1)=="/",St={architecture:32,family:me&&!He?St.replace(me[0],""):St,version:me?me[1]:null,toString:function(){var jt=this.version;return this.family+(jt&&!He?" "+jt:"")+(this.architecture==64?" 64-bit":"")}}),(me=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Oe))&&!/\bi686\b/i.test(Oe)?(St&&(St.architecture=64,St.family=St.family.replace(RegExp(" *"+me),"")),Yt&&(/\bWOW64\b/i.test(te)||Tt&&/\w(?:86|32)$/.test(ye.cpuClass||ye.platform)&&!/\bWin64; x64\b/i.test(te))&&Fe.unshift("32-bit")):St&&/^OS X/.test(St.family)&&Yt=="Chrome"&&parseFloat(bt)>=39&&(St.architecture=64),te||(te=null);var wt={};return wt.description=te,wt.layout=_t&&_t[0],wt.manufacturer=Ut,wt.name=Yt,wt.prerelease=le,wt.product=Mt,wt.ua=te,wt.version=Yt&&bt,wt.os=St||{architecture:null,family:null,version:null,toString:function(){return"null"}},wt.parse=tt,wt.toString=ce,wt.version&&Fe.unshift(bt),wt.name&&Fe.unshift(Yt),St&&Yt&&(St!=String(St).split(" ")[0]||St!=Yt.split(" ")[0]&&!Mt)&&Fe.push(Mt?"("+St+")":"on "+St),Fe.length&&(wt.description=Fe.join(" ")),wt}var st={function:!0,object:!0},rt=st[typeof window]&&window||this,ut=st[typeof Qt]&&Qt,ct=st[typeof Xt]&&Xt&&!Xt.nodeType&&Xt,ft=ut&&ct&&typeof kt=="object"&&kt;!ft||ft.global!==ft&&ft.window!==ft&&ft.self!==ft||(rt=ft);var pt=Math.pow(2,53)-1,Pt=/\bOpera/,Dt=Object.prototype,Zt=Dt.hasOwnProperty,Ft=Dt.toString,qt=tt();typeof zt=="function"&&typeof zt.amd=="object"&&zt.amd?(rt.platform=qt,zt(function(){return qt})):ut&&ct?Ct(qt,function(te,Gt){ut[Gt]=te}):rt.platform=qt}).call(this)}).call(this,typeof Kt.g!="undefined"?Kt.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],172:[function(gt,Xt,Qt){(function(kt){"use strict";function Bt(xt,Ot,Rt,Ct){if(typeof xt!="function")throw new TypeError('"callback" argument must be a function');var Lt,At,It=arguments.length;switch(It){case 0:case 1:return kt.nextTick(xt);case 2:return kt.nextTick(function(){xt.call(null,Ot)});case 3:return kt.nextTick(function(){xt.call(null,Ot,Rt)});case 4:return kt.nextTick(function(){xt.call(null,Ot,Rt,Ct)});default:for(Lt=new Array(It-1),At=0;At<Lt.length;)Lt[At++]=arguments[At];return kt.nextTick(function(){xt.apply(null,Lt)})}}!kt.version||kt.version.indexOf("v0.")===0||kt.version.indexOf("v1.")===0&&kt.version.indexOf("v1.8.")!==0?Xt.exports={nextTick:Bt}:Xt.exports=kt}).call(this,gt("_process"))},{_process:173}],173:[function(gt,Xt,Qt){function kt(){throw new Error("setTimeout has not been defined")}function Bt(){throw new Error("clearTimeout has not been defined")}function xt(ct){if(It===setTimeout)return setTimeout(ct,0);if((It===kt||!It)&&setTimeout)return It=setTimeout,setTimeout(ct,0);try{return It(ct,0)}catch(ft){try{return It.call(null,ct,0)}catch(pt){return It.call(this,ct,0)}}}function Ot(ct){if(mt===clearTimeout)return clearTimeout(ct);if((mt===Bt||!mt)&&clearTimeout)return mt=clearTimeout,clearTimeout(ct);try{return mt(ct)}catch(ft){try{return mt.call(null,ct)}catch(pt){return mt.call(this,ct)}}}function Rt(){rt&&tt&&(rt=!1,tt.length?st=tt.concat(st):ut=-1,st.length&&Ct())}function Ct(){if(!rt){var ct=xt(Rt);rt=!0;for(var ft=st.length;ft;){for(tt=st,st=[];++ut<ft;)tt&&tt[ut].run();ut=-1,ft=st.length}tt=null,rt=!1,Ot(ct)}}function Lt(ct,ft){this.fun=ct,this.array=ft}function At(){}var It,mt,et=Xt.exports={};(function(){try{It=typeof setTimeout=="function"?setTimeout:kt}catch(ct){It=kt}try{mt=typeof clearTimeout=="function"?clearTimeout:Bt}catch(ct){mt=Bt}})();var tt,st=[],rt=!1,ut=-1;et.nextTick=function(ct){var ft=new Array(arguments.length-1);if(arguments.length>1)for(var pt=1;pt<arguments.length;pt++)ft[pt-1]=arguments[pt];st.push(new Lt(ct,ft)),st.length!==1||rt||xt(Ct)},Lt.prototype.run=function(){this.fun.apply(null,this.array)},et.title="browser",et.browser=!0,et.env={},et.argv=[],et.version="",et.versions={},et.on=At,et.addListener=At,et.once=At,et.off=At,et.removeListener=At,et.removeAllListeners=At,et.emit=At,et.prependListener=At,et.prependOnceListener=At,et.listeners=function(ct){return[]},et.binding=function(ct){throw new Error("process.binding is not supported")},et.cwd=function(){return"/"},et.chdir=function(ct){throw new Error("process.chdir is not supported")},et.umask=function(){return 0}},{}],174:[function(gt,Xt,Qt){(function(kt){(function(Bt){function xt(ue){throw new RangeError(He[ue])}function Ot(ue,ge){for(var he=ue.length,De=[];he--;)De[he]=ge(ue[he]);return De}function Rt(ue,ge){var he=ue.split("@"),De="";return he.length>1&&(De=he[0]+"@",ue=he[1]),ue=ue.replace(me,"."),De+Ot(ue.split("."),ge).join(".")}function Ct(ue){for(var ge,he,De=[],Ne=0,$e=ue.length;Ne<$e;)ge=ue.charCodeAt(Ne++),ge>=55296&&ge<=56319&&Ne<$e?(he=ue.charCodeAt(Ne++),(64512&he)==56320?De.push(((1023&ge)<<10)+(1023&he)+65536):(De.push(ge),Ne--)):De.push(ge);return De}function Lt(ue){return Ot(ue,function(ge){var he="";return ge>65535&&(ge-=65536,he+=ie(ge>>>10&1023|55296),ge=56320|1023&ge),he+=ie(ge)}).join("")}function At(ue){return ue-48<10?ue-22:ue-65<26?ue-65:ue-97<26?ue-97:Zt}function It(ue,ge){return ue+22+75*(ue<26)-((ge!=0)<<5)}function mt(ue,ge,he){var De=0;for(ue=he?$t(ue/Gt):ue>>1,ue+=$t(ue/ge);ue>fe*qt>>1;De+=Zt)ue=$t(ue/fe);return $t(De+(fe+1)*ue/(ue+te))}function et(ue){var ge,he,De,Ne,$e,Re,tn,Me,Oe,Fe,le=[],Tt=ue.length,bt=0,_t=ae,Yt=ce;for(he=ue.lastIndexOf(xe),he<0&&(he=0),De=0;De<he;++De)ue.charCodeAt(De)>=128&&xt("not-basic"),le.push(ue.charCodeAt(De));for(Ne=he>0?he+1:0;Ne<Tt;){for($e=bt,Re=1,tn=Zt;Ne>=Tt&&xt("invalid-input"),Me=At(ue.charCodeAt(Ne++)),(Me>=Zt||Me>$t((Dt-bt)/Re))&&xt("overflow"),bt+=Me*Re,Oe=tn<=Yt?Ft:tn>=Yt+qt?qt:tn-Yt,!(Me<Oe);tn+=Zt)Fe=Zt-Oe,Re>$t(Dt/Fe)&&xt("overflow"),Re*=Fe;ge=le.length+1,Yt=mt(bt-$e,ge,$e==0),$t(bt/ge)>Dt-_t&&xt("overflow"),_t+=$t(bt/ge),bt%=ge,le.splice(bt++,0,_t)}return Lt(le)}function tt(ue){var ge,he,De,Ne,$e,Re,tn,Me,Oe,Fe,le,Tt,bt,_t,Yt,Mt=[];for(ue=Ct(ue),Tt=ue.length,ge=ae,he=0,$e=ce,Re=0;Re<Tt;++Re)(le=ue[Re])<128&&Mt.push(ie(le));for(De=Ne=Mt.length,Ne&&Mt.push(xe);De<Tt;){for(tn=Dt,Re=0;Re<Tt;++Re)(le=ue[Re])>=ge&&le<tn&&(tn=le);for(bt=De+1,tn-ge>$t((Dt-he)/bt)&&xt("overflow"),he+=(tn-ge)*bt,ge=tn,Re=0;Re<Tt;++Re)if(le=ue[Re],le<ge&&++he>Dt&&xt("overflow"),le==ge){for(Me=he,Oe=Zt;Fe=Oe<=$e?Ft:Oe>=$e+qt?qt:Oe-$e,!(Me<Fe);Oe+=Zt)Yt=Me-Fe,_t=Zt-Fe,Mt.push(ie(It(Fe+Yt%_t,0))),Me=$t(Yt/_t);Mt.push(ie(It(Me,0))),$e=mt(he,bt,De==Ne),he=0,++De}++he,++ge}return Mt.join("")}function st(ue){return Rt(ue,function(ge){return ye.test(ge)?et(ge.slice(4).toLowerCase()):ge})}function rt(ue){return Rt(ue,function(ge){return Te.test(ge)?"xn--"+tt(ge):ge})}var ut=typeof Qt=="object"&&Qt&&!Qt.nodeType&&Qt,ct=typeof Xt=="object"&&Xt&&!Xt.nodeType&&Xt,ft=typeof kt=="object"&&kt;ft.global!==ft&&ft.window!==ft&&ft.self!==ft||(Bt=ft);var pt,Pt,Dt=2147483647,Zt=36,Ft=1,qt=26,te=38,Gt=700,ce=72,ae=128,xe="-",ye=/^xn--/,Te=/[^\x20-\x7E]/,me=/[\x2E\u3002\uFF0E\uFF61]/g,He={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},fe=Zt-Ft,$t=Math.floor,ie=String.fromCharCode;if(pt={version:"1.4.1",ucs2:{decode:Ct,encode:Lt},decode:et,encode:tt,toASCII:rt,toUnicode:st},typeof zt=="function"&&typeof zt.amd=="object"&&zt.amd)zt("punycode",function(){return pt});else if(ut&&ct)if(Xt.exports==ut)ct.exports=pt;else for(Pt in pt)pt.hasOwnProperty(Pt)&&(ut[Pt]=pt[Pt]);else Bt.punycode=pt})(this)}).call(this,typeof Kt.g!="undefined"?Kt.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],175:[function(gt,Xt,Qt){"use strict";function kt(xt,Ot){return Object.prototype.hasOwnProperty.call(xt,Ot)}Xt.exports=function(xt,Ot,Rt,Ct){Ot=Ot||"&",Rt=Rt||"=";var Lt={};if(typeof xt!="string"||xt.length===0)return Lt;var At=/\+/g;xt=xt.split(Ot);var It=1e3;Ct&&typeof Ct.maxKeys=="number"&&(It=Ct.maxKeys);var mt=xt.length;It>0&&mt>It&&(mt=It);for(var et=0;et<mt;++et){var tt,st,rt,ut,ct=xt[et].replace(At,"%20"),ft=ct.indexOf(Rt);ft>=0?(tt=ct.substr(0,ft),st=ct.substr(ft+1)):(tt=ct,st=""),rt=decodeURIComponent(tt),ut=decodeURIComponent(st),kt(Lt,rt)?Bt(Lt[rt])?Lt[rt].push(ut):Lt[rt]=[Lt[rt],ut]:Lt[rt]=ut}return Lt};var Bt=Array.isArray||function(xt){return Object.prototype.toString.call(xt)==="[object Array]"}},{}],176:[function(gt,Xt,Qt){"use strict";function kt(Rt,Ct){if(Rt.map)return Rt.map(Ct);for(var Lt=[],At=0;At<Rt.length;At++)Lt.push(Ct(Rt[At],At));return Lt}var Bt=function(Rt){switch(typeof Rt){case"string":return Rt;case"boolean":return Rt?"true":"false";case"number":return isFinite(Rt)?Rt:"";default:return""}};Xt.exports=function(Rt,Ct,Lt,At){return Ct=Ct||"&",Lt=Lt||"=",Rt===null&&(Rt=void 0),typeof Rt=="object"?kt(Ot(Rt),function(It){var mt=encodeURIComponent(Bt(It))+Lt;return xt(Rt[It])?kt(Rt[It],function(et){return mt+encodeURIComponent(Bt(et))}).join(Ct):mt+encodeURIComponent(Bt(Rt[It]))}).join(Ct):At?encodeURIComponent(Bt(At))+Lt+encodeURIComponent(Bt(Rt)):""};var xt=Array.isArray||function(Rt){return Object.prototype.toString.call(Rt)==="[object Array]"},Ot=Object.keys||function(Rt){var Ct=[];for(var Lt in Rt)Object.prototype.hasOwnProperty.call(Rt,Lt)&&Ct.push(Lt);return Ct}},{}],177:[function(gt,Xt,Qt){"use strict";Qt.decode=Qt.parse=gt("./decode"),Qt.encode=Qt.stringify=gt("./encode")},{"./decode":175,"./encode":176}],178:[function(gt,Xt,Qt){Xt.exports=gt("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":179}],179:[function(gt,Xt,Qt){"use strict";function kt(rt){if(!(this instanceof kt))return new kt(rt);It.call(this,rt),mt.call(this,rt),rt&&rt.readable===!1&&(this.readable=!1),rt&&rt.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,rt&&rt.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",Bt)}function Bt(){this.allowHalfOpen||this._writableState.ended||Ct.nextTick(xt,this)}function xt(rt){rt.end()}var Ot=gt("babel-runtime/core-js/object/keys"),Rt=function(rt){return rt&&rt.__esModule?rt:{default:rt}}(Ot),Ct=gt("process-nextick-args"),Lt=Rt.default||function(rt){var ut=[];for(var ct in rt)ut.push(ct);return ut};Xt.exports=kt;var At=gt("core-util-is");At.inherits=gt("inherits");var It=gt("./_stream_readable"),mt=gt("./_stream_writable");At.inherits(kt,It);for(var et=Lt(mt.prototype),tt=0;tt<et.length;tt++){var st=et[tt];kt.prototype[st]||(kt.prototype[st]=mt.prototype[st])}Object.defineProperty(kt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(kt.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(rt){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=rt,this._writableState.destroyed=rt)}}),kt.prototype._destroy=function(rt,ut){this.push(null),this.end(),Ct.nextTick(ut,rt)}},{"./_stream_readable":181,"./_stream_writable":183,"babel-runtime/core-js/object/keys":23,"core-util-is":153,inherits:162,"process-nextick-args":172}],180:[function(gt,Xt,Qt){"use strict";function kt(Ot){if(!(this instanceof kt))return new kt(Ot);Bt.call(this,Ot)}Xt.exports=kt;var Bt=gt("./_stream_transform"),xt=gt("core-util-is");xt.inherits=gt("inherits"),xt.inherits(kt,Bt),kt.prototype._transform=function(Ot,Rt,Ct){Ct(null,Ot)}},{"./_stream_transform":182,"core-util-is":153,inherits:162}],181:[function(gt,Xt,Qt){(function(kt,Bt){"use strict";function xt(Tt){return he.from(Tt)}function Ot(Tt){return he.isBuffer(Tt)||Tt instanceof De}function Rt(Tt,bt,_t){if(typeof Tt.prependListener=="function")return Tt.prependListener(bt,_t);Tt._events&&Tt._events[bt]?ie(Tt._events[bt])?Tt._events[bt].unshift(_t):Tt._events[bt]=[_t,Tt._events[bt]]:Tt.on(bt,_t)}function Ct(Tt,bt){$t=$t||gt("./_stream_duplex"),Tt=Tt||{};var _t=bt instanceof $t;this.objectMode=!!Tt.objectMode,_t&&(this.objectMode=this.objectMode||!!Tt.readableObjectMode);var Yt=Tt.highWaterMark,Mt=Tt.readableHighWaterMark,Ut=this.objectMode?16:16384;this.highWaterMark=Yt||Yt===0?Yt:_t&&(Mt||Mt===0)?Mt:Ut,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new Me,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=Tt.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Tt.encoding&&(tn||(tn=gt("string_decoder/").StringDecoder),this.decoder=new tn(Tt.encoding),this.encoding=Tt.encoding)}function Lt(Tt){if($t=$t||gt("./_stream_duplex"),!(this instanceof Lt))return new Lt(Tt);this._readableState=new Ct(Tt,this),this.readable=!0,Tt&&(typeof Tt.read=="function"&&(this._read=Tt.read),typeof Tt.destroy=="function"&&(this._destroy=Tt.destroy)),ge.call(this)}function At(Tt,bt,_t,Yt,Mt){var Ut=Tt._readableState;if(bt===null)Ut.reading=!1,rt(Tt,Ut);else{var St;Mt||(St=mt(Ut,bt)),St?Tt.emit("error",St):Ut.objectMode||bt&&bt.length>0?(typeof bt=="string"||Ut.objectMode||(0,He.default)(bt)===he.prototype||(bt=xt(bt)),Yt?Ut.endEmitted?Tt.emit("error",new Error("stream.unshift() after end event")):It(Tt,Ut,bt,!0):Ut.ended?Tt.emit("error",new Error("stream.push() after EOF")):(Ut.reading=!1,Ut.decoder&&!_t?(bt=Ut.decoder.write(bt),Ut.objectMode||bt.length!==0?It(Tt,Ut,bt,!1):ft(Tt,Ut)):It(Tt,Ut,bt,!1))):Yt||(Ut.reading=!1)}return et(Ut)}function It(Tt,bt,_t,Yt){bt.flowing&&bt.length===0&&!bt.sync?(Tt.emit("data",_t),Tt.read(0)):(bt.length+=bt.objectMode?1:_t.length,Yt?bt.buffer.unshift(_t):bt.buffer.push(_t),bt.needReadable&&ut(Tt)),ft(Tt,bt)}function mt(Tt,bt){var _t;return Ot(bt)||typeof bt=="string"||bt===void 0||Tt.objectMode||(_t=new TypeError("Invalid non-string/buffer chunk")),_t}function et(Tt){return!Tt.ended&&(Tt.needReadable||Tt.length<Tt.highWaterMark||Tt.length===0)}function tt(Tt){return Tt>=le?Tt=le:(Tt--,Tt|=Tt>>>1,Tt|=Tt>>>2,Tt|=Tt>>>4,Tt|=Tt>>>8,Tt|=Tt>>>16,Tt++),Tt}function st(Tt,bt){return Tt<=0||bt.length===0&&bt.ended?0:bt.objectMode?1:Tt!==Tt?bt.flowing&&bt.length?bt.buffer.head.data.length:bt.length:(Tt>bt.highWaterMark&&(bt.highWaterMark=tt(Tt)),Tt<=bt.length?Tt:bt.ended?bt.length:(bt.needReadable=!0,0))}function rt(Tt,bt){if(!bt.ended){if(bt.decoder){var _t=bt.decoder.end();_t&&_t.length&&(bt.buffer.push(_t),bt.length+=bt.objectMode?1:_t.length)}bt.ended=!0,ut(Tt)}}function ut(Tt){var bt=Tt._readableState;bt.needReadable=!1,bt.emittedReadable||(Re("emitReadable",bt.flowing),bt.emittedReadable=!0,bt.sync?fe.nextTick(ct,Tt):ct(Tt))}function ct(Tt){Re("emit readable"),Tt.emit("readable"),qt(Tt)}function ft(Tt,bt){bt.readingMore||(bt.readingMore=!0,fe.nextTick(pt,Tt,bt))}function pt(Tt,bt){for(var _t=bt.length;!bt.reading&&!bt.flowing&&!bt.ended&&bt.length<bt.highWaterMark&&(Re("maybeReadMore read 0"),Tt.read(0),_t!==bt.length);)_t=bt.length;bt.readingMore=!1}function Pt(Tt){return function(){var bt=Tt._readableState;Re("pipeOnDrain",bt.awaitDrain),bt.awaitDrain&&bt.awaitDrain--,bt.awaitDrain===0&&ue(Tt,"data")&&(bt.flowing=!0,qt(Tt))}}function Dt(Tt){Re("readable nexttick read 0"),Tt.read(0)}function Zt(Tt,bt){bt.resumeScheduled||(bt.resumeScheduled=!0,fe.nextTick(Ft,Tt,bt))}function Ft(Tt,bt){bt.reading||(Re("resume read 0"),Tt.read(0)),bt.resumeScheduled=!1,bt.awaitDrain=0,Tt.emit("resume"),qt(Tt),bt.flowing&&!bt.reading&&Tt.read(0)}function qt(Tt){var bt=Tt._readableState;for(Re("flow",bt.flowing);bt.flowing&&Tt.read()!==null;);}function te(Tt,bt){if(bt.length===0)return null;var _t;return bt.objectMode?_t=bt.buffer.shift():!Tt||Tt>=bt.length?(_t=bt.decoder?bt.buffer.join(""):bt.buffer.length===1?bt.buffer.head.data:bt.buffer.concat(bt.length),bt.buffer.clear()):_t=Gt(Tt,bt.buffer,bt.decoder),_t}function Gt(Tt,bt,_t){var Yt;return Tt<bt.head.data.length?(Yt=bt.head.data.slice(0,Tt),bt.head.data=bt.head.data.slice(Tt)):Yt=Tt===bt.head.data.length?bt.shift():_t?ce(Tt,bt):ae(Tt,bt),Yt}function ce(Tt,bt){var _t=bt.head,Yt=1,Mt=_t.data;for(Tt-=Mt.length;_t=_t.next;){var Ut=_t.data,St=Tt>Ut.length?Ut.length:Tt;if(St===Ut.length?Mt+=Ut:Mt+=Ut.slice(0,Tt),(Tt-=St)===0){St===Ut.length?(++Yt,_t.next?bt.head=_t.next:bt.head=bt.tail=null):(bt.head=_t,_t.data=Ut.slice(St));break}++Yt}return bt.length-=Yt,Mt}function ae(Tt,bt){var _t=he.allocUnsafe(Tt),Yt=bt.head,Mt=1;for(Yt.data.copy(_t),Tt-=Yt.data.length;Yt=Yt.next;){var Ut=Yt.data,St=Tt>Ut.length?Ut.length:Tt;if(Ut.copy(_t,_t.length-Tt,0,St),(Tt-=St)===0){St===Ut.length?(++Mt,Yt.next?bt.head=Yt.next:bt.head=bt.tail=null):(bt.head=Yt,Yt.data=Ut.slice(St));break}++Mt}return bt.length-=Mt,_t}function xe(Tt){var bt=Tt._readableState;if(bt.length>0)throw new Error('"endReadable()" called on non-empty stream');bt.endEmitted||(bt.ended=!0,fe.nextTick(ye,bt,Tt))}function ye(Tt,bt){Tt.endEmitted||Tt.length!==0||(Tt.endEmitted=!0,bt.readable=!1,bt.emit("end"))}function Te(Tt,bt){for(var _t=0,Yt=Tt.length;_t<Yt;_t++)if(Tt[_t]===bt)return _t;return-1}var me=gt("babel-runtime/core-js/object/get-prototype-of"),He=function(Tt){return Tt&&Tt.__esModule?Tt:{default:Tt}}(me),fe=gt("process-nextick-args");Xt.exports=Lt;var $t,ie=gt("isarray");Lt.ReadableState=Ct;var ue=(gt("events").EventEmitter,function(Tt,bt){return Tt.listeners(bt).length}),ge=gt("./internal/streams/stream"),he=gt("safe-buffer").Buffer,De=Bt.Uint8Array||function(){},Ne=gt("core-util-is");Ne.inherits=gt("inherits");var $e=gt("util"),Re=void 0;Re=$e&&$e.debuglog?$e.debuglog("stream"):function(){};var tn,Me=gt("./internal/streams/BufferList"),Oe=gt("./internal/streams/destroy");Ne.inherits(Lt,ge);var Fe=["error","close","destroy","pause","resume"];Object.defineProperty(Lt.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(Tt){this._readableState&&(this._readableState.destroyed=Tt)}}),Lt.prototype.destroy=Oe.destroy,Lt.prototype._undestroy=Oe.undestroy,Lt.prototype._destroy=function(Tt,bt){this.push(null),bt(Tt)},Lt.prototype.push=function(Tt,bt){var _t,Yt=this._readableState;return Yt.objectMode?_t=!0:typeof Tt=="string"&&(bt=bt||Yt.defaultEncoding,bt!==Yt.encoding&&(Tt=he.from(Tt,bt),bt=""),_t=!0),At(this,Tt,bt,!1,_t)},Lt.prototype.unshift=function(Tt){return At(this,Tt,null,!0,!1)},Lt.prototype.isPaused=function(){return this._readableState.flowing===!1},Lt.prototype.setEncoding=function(Tt){return tn||(tn=gt("string_decoder/").StringDecoder),this._readableState.decoder=new tn(Tt),this._readableState.encoding=Tt,this};var le=8388608;Lt.prototype.read=function(Tt){Re("read",Tt),Tt=parseInt(Tt,10);var bt=this._readableState,_t=Tt;if(Tt!==0&&(bt.emittedReadable=!1),Tt===0&&bt.needReadable&&(bt.length>=bt.highWaterMark||bt.ended))return Re("read: emitReadable",bt.length,bt.ended),bt.length===0&&bt.ended?xe(this):ut(this),null;if((Tt=st(Tt,bt))===0&&bt.ended)return bt.length===0&&xe(this),null;var Yt=bt.needReadable;Re("need readable",Yt),(bt.length===0||bt.length-Tt<bt.highWaterMark)&&(Yt=!0,Re("length less than watermark",Yt)),bt.ended||bt.reading?(Yt=!1,Re("reading or ended",Yt)):Yt&&(Re("do read"),bt.reading=!0,bt.sync=!0,bt.length===0&&(bt.needReadable=!0),this._read(bt.highWaterMark),bt.sync=!1,bt.reading||(Tt=st(_t,bt)));var Mt;return Mt=Tt>0?te(Tt,bt):null,Mt===null?(bt.needReadable=!0,Tt=0):bt.length-=Tt,bt.length===0&&(bt.ended||(bt.needReadable=!0),_t!==Tt&&bt.ended&&xe(this)),Mt!==null&&this.emit("data",Mt),Mt},Lt.prototype._read=function(Tt){this.emit("error",new Error("_read() is not implemented"))},Lt.prototype.pipe=function(Tt,bt){function _t(vn,ke){Re("onunpipe"),vn===Vt&&ke&&ke.hasUnpiped===!1&&(ke.hasUnpiped=!0,Mt())}function Yt(){Re("onend"),Tt.end()}function Mt(){Re("cleanup"),Tt.removeListener("close",wt),Tt.removeListener("finish",jt),Tt.removeListener("drain",Ye),Tt.removeListener("error",St),Tt.removeListener("unpipe",_t),Vt.removeListener("end",Yt),Vt.removeListener("end",Wt),Vt.removeListener("data",Ut),Ue=!0,!oe.awaitDrain||Tt._writableState&&!Tt._writableState.needDrain||Ye()}function Ut(vn){Re("ondata"),an=!1,Tt.write(vn)!==!1||an||((oe.pipesCount===1&&oe.pipes===Tt||oe.pipesCount>1&&Te(oe.pipes,Tt)!==-1)&&!Ue&&(Re("false write response, pause",Vt._readableState.awaitDrain),Vt._readableState.awaitDrain++,an=!0),Vt.pause())}function St(vn){Re("onerror",vn),Wt(),Tt.removeListener("error",St),ue(Tt,"error")===0&&Tt.emit("error",vn)}function wt(){Tt.removeListener("finish",jt),Wt()}function jt(){Re("onfinish"),Tt.removeListener("close",wt),Wt()}function Wt(){Re("unpipe"),Vt.unpipe(Tt)}var Vt=this,oe=this._readableState;switch(oe.pipesCount){case 0:oe.pipes=Tt;break;case 1:oe.pipes=[oe.pipes,Tt];break;default:oe.pipes.push(Tt)}oe.pipesCount+=1,Re("pipe count=%d opts=%j",oe.pipesCount,bt);var de=(!bt||bt.end!==!1)&&Tt!==kt.stdout&&Tt!==kt.stderr,Ge=de?Yt:Wt;oe.endEmitted?fe.nextTick(Ge):Vt.once("end",Ge),Tt.on("unpipe",_t);var Ye=Pt(Vt);Tt.on("drain",Ye);var Ue=!1,an=!1;return Vt.on("data",Ut),Rt(Tt,"error",St),Tt.once("close",wt),Tt.once("finish",jt),Tt.emit("pipe",Vt),oe.flowing||(Re("pipe resume"),Vt.resume()),Tt},Lt.prototype.unpipe=function(Tt){var bt=this._readableState,_t={hasUnpiped:!1};if(bt.pipesCount===0)return this;if(bt.pipesCount===1)return Tt&&Tt!==bt.pipes?this:(Tt||(Tt=bt.pipes),bt.pipes=null,bt.pipesCount=0,bt.flowing=!1,Tt&&Tt.emit("unpipe",this,_t),this);if(!Tt){var Yt=bt.pipes,Mt=bt.pipesCount;bt.pipes=null,bt.pipesCount=0,bt.flowing=!1;for(var Ut=0;Ut<Mt;Ut++)Yt[Ut].emit("unpipe",this,_t);return this}var St=Te(bt.pipes,Tt);return St===-1?this:(bt.pipes.splice(St,1),bt.pipesCount-=1,bt.pipesCount===1&&(bt.pipes=bt.pipes[0]),Tt.emit("unpipe",this,_t),this)},Lt.prototype.on=function(Tt,bt){var _t=ge.prototype.on.call(this,Tt,bt);if(Tt==="data")this._readableState.flowing!==!1&&this.resume();else if(Tt==="readable"){var Yt=this._readableState;Yt.endEmitted||Yt.readableListening||(Yt.readableListening=Yt.needReadable=!0,Yt.emittedReadable=!1,Yt.reading?Yt.length&&ut(this):fe.nextTick(Dt,this))}return _t},Lt.prototype.addListener=Lt.prototype.on,Lt.prototype.resume=function(){var Tt=this._readableState;return Tt.flowing||(Re("resume"),Tt.flowing=!0,Zt(this,Tt)),this},Lt.prototype.pause=function(){return Re("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(Re("pause"),this._readableState.flowing=!1,this.emit("pause")),this},Lt.prototype.wrap=function(Tt){var bt=this,_t=this._readableState,Yt=!1;Tt.on("end",function(){if(Re("wrapped end"),_t.decoder&&!_t.ended){var St=_t.decoder.end();St&&St.length&&bt.push(St)}bt.push(null)}),Tt.on("data",function(St){Re("wrapped data"),_t.decoder&&(St=_t.decoder.write(St)),(!_t.objectMode||St!=null)&&(_t.objectMode||St&&St.length)&&(bt.push(St)||(Yt=!0,Tt.pause()))});for(var Mt in Tt)this[Mt]===void 0&&typeof Tt[Mt]=="function"&&(this[Mt]=function(St){return function(){return Tt[St].apply(Tt,arguments)}}(Mt));for(var Ut=0;Ut<Fe.length;Ut++)Tt.on(Fe[Ut],this.emit.bind(this,Fe[Ut]));return this._read=function(St){Re("wrapped _read",St),Yt&&(Yt=!1,Tt.resume())},this},Object.defineProperty(Lt.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Lt._fromList=te}).call(this,gt("_process"),typeof Kt.g!="undefined"?Kt.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":179,"./internal/streams/BufferList":184,"./internal/streams/destroy":185,"./internal/streams/stream":186,_process:173,"babel-runtime/core-js/object/get-prototype-of":22,"core-util-is":153,events:158,inherits:162,isarray:166,"process-nextick-args":172,"safe-buffer":193,"string_decoder/":200,util:36}],182:[function(gt,Xt,Qt){"use strict";function kt(Lt,At){var It=this._transformState;It.transforming=!1;var mt=It.writecb;if(!mt)return this.emit("error",new Error("write callback called multiple times"));It.writechunk=null,It.writecb=null,At!=null&&this.push(At),mt(Lt);var et=this._readableState;et.reading=!1,(et.needReadable||et.length<et.highWaterMark)&&this._read(et.highWaterMark)}function Bt(Lt){if(!(this instanceof Bt))return new Bt(Lt);Rt.call(this,Lt),this._transformState={afterTransform:kt.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,Lt&&(typeof Lt.transform=="function"&&(this._transform=Lt.transform),typeof Lt.flush=="function"&&(this._flush=Lt.flush)),this.on("prefinish",xt)}function xt(){var Lt=this;typeof this._flush=="function"?this._flush(function(At,It){Ot(Lt,At,It)}):Ot(this,null,null)}function Ot(Lt,At,It){if(At)return Lt.emit("error",At);if(It!=null&&Lt.push(It),Lt._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(Lt._transformState.transforming)throw new Error("Calling transform done when still transforming");return Lt.push(null)}Xt.exports=Bt;var Rt=gt("./_stream_duplex"),Ct=gt("core-util-is");Ct.inherits=gt("inherits"),Ct.inherits(Bt,Rt),Bt.prototype.push=function(Lt,At){return this._transformState.needTransform=!1,Rt.prototype.push.call(this,Lt,At)},Bt.prototype._transform=function(Lt,At,It){throw new Error("_transform() is not implemented")},Bt.prototype._write=function(Lt,At,It){var mt=this._transformState;if(mt.writecb=It,mt.writechunk=Lt,mt.writeencoding=At,!mt.transforming){var et=this._readableState;(mt.needTransform||et.needReadable||et.length<et.highWaterMark)&&this._read(et.highWaterMark)}},Bt.prototype._read=function(Lt){var At=this._transformState;At.writechunk!==null&&At.writecb&&!At.transforming?(At.transforming=!0,this._transform(At.writechunk,At.writeencoding,At.afterTransform)):At.needTransform=!0},Bt.prototype._destroy=function(Lt,At){var It=this;Rt.prototype._destroy.call(this,Lt,function(mt){At(mt),It.emit("close")})}},{"./_stream_duplex":179,"core-util-is":153,inherits:162}],183:[function(gt,Xt,Qt){(function(kt,Bt){"use strict";function xt(Oe){return Oe&&Oe.__esModule?Oe:{default:Oe}}function Ot(Oe){var Fe=this;this.next=null,this.entry=null,this.finish=function(){ce(Fe,Oe)}}function Rt(Oe){return $e.from(Oe)}function Ct(Oe){return $e.isBuffer(Oe)||Oe instanceof Re}function Lt(){}function At(Oe,Fe){ue=ue||gt("./_stream_duplex"),Oe=Oe||{};var le=Fe instanceof ue;this.objectMode=!!Oe.objectMode,le&&(this.objectMode=this.objectMode||!!Oe.writableObjectMode);var Tt=Oe.highWaterMark,bt=Oe.writableHighWaterMark,_t=this.objectMode?16:16384;this.highWaterMark=Tt||Tt===0?Tt:le&&(bt||bt===0)?bt:_t,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Yt=Oe.decodeStrings===!1;this.decodeStrings=!Yt,this.defaultEncoding=Oe.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Mt){ft(Fe,Mt)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new Ot(this)}function It(Oe){if(ue=ue||gt("./_stream_duplex"),!(Me.call(It,this)||this instanceof ue))return new It(Oe);this._writableState=new At(Oe,this),this.writable=!0,Oe&&(typeof Oe.write=="function"&&(this._write=Oe.write),typeof Oe.writev=="function"&&(this._writev=Oe.writev),typeof Oe.destroy=="function"&&(this._destroy=Oe.destroy),typeof Oe.final=="function"&&(this._final=Oe.final)),Ne.call(this)}function mt(Oe,Fe){var le=new Error("write after end");Oe.emit("error",le),ie.nextTick(Fe,le)}function et(Oe,Fe,le,Tt){var bt=!0,_t=!1;return le===null?_t=new TypeError("May not write null values to stream"):typeof le=="string"||le===void 0||Fe.objectMode||(_t=new TypeError("Invalid non-string/buffer chunk")),_t&&(Oe.emit("error",_t),ie.nextTick(Tt,_t),bt=!1),bt}function tt(Oe,Fe,le){return Oe.objectMode||Oe.decodeStrings===!1||typeof Fe!="string"||(Fe=$e.from(Fe,le)),Fe}function st(Oe,Fe,le,Tt,bt,_t){if(!le){var Yt=tt(Fe,Tt,bt);Tt!==Yt&&(le=!0,bt="buffer",Tt=Yt)}var Mt=Fe.objectMode?1:Tt.length;Fe.length+=Mt;var Ut=Fe.length<Fe.highWaterMark;if(Ut||(Fe.needDrain=!0),Fe.writing||Fe.corked){var St=Fe.lastBufferedRequest;Fe.lastBufferedRequest={chunk:Tt,encoding:bt,isBuf:le,callback:_t,next:null},St?St.next=Fe.lastBufferedRequest:Fe.bufferedRequest=Fe.lastBufferedRequest,Fe.bufferedRequestCount+=1}else rt(Oe,Fe,!1,Mt,Tt,bt,_t);return Ut}function rt(Oe,Fe,le,Tt,bt,_t,Yt){Fe.writelen=Tt,Fe.writecb=Yt,Fe.writing=!0,Fe.sync=!0,le?Oe._writev(bt,Fe.onwrite):Oe._write(bt,_t,Fe.onwrite),Fe.sync=!1}function ut(Oe,Fe,le,Tt,bt){--Fe.pendingcb,le?(ie.nextTick(bt,Tt),ie.nextTick(te,Oe,Fe),Oe._writableState.errorEmitted=!0,Oe.emit("error",Tt)):(bt(Tt),Oe._writableState.errorEmitted=!0,Oe.emit("error",Tt),te(Oe,Fe))}function ct(Oe){Oe.writing=!1,Oe.writecb=null,Oe.length-=Oe.writelen,Oe.writelen=0}function ft(Oe,Fe){var le=Oe._writableState,Tt=le.sync,bt=le.writecb;if(ct(le),Fe)ut(Oe,le,Tt,Fe,bt);else{var _t=Zt(le);_t||le.corked||le.bufferProcessing||!le.bufferedRequest||Dt(Oe,le),Tt?ge(pt,Oe,le,_t,bt):pt(Oe,le,_t,bt)}}function pt(Oe,Fe,le,Tt){le||Pt(Oe,Fe),Fe.pendingcb--,Tt(),te(Oe,Fe)}function Pt(Oe,Fe){Fe.length===0&&Fe.needDrain&&(Fe.needDrain=!1,Oe.emit("drain"))}function Dt(Oe,Fe){Fe.bufferProcessing=!0;var le=Fe.bufferedRequest;if(Oe._writev&&le&&le.next){var Tt=Fe.bufferedRequestCount,bt=new Array(Tt),_t=Fe.corkedRequestsFree;_t.entry=le;for(var Yt=0,Mt=!0;le;)bt[Yt]=le,le.isBuf||(Mt=!1),le=le.next,Yt+=1;bt.allBuffers=Mt,rt(Oe,Fe,!0,Fe.length,bt,"",_t.finish),Fe.pendingcb++,Fe.lastBufferedRequest=null,_t.next?(Fe.corkedRequestsFree=_t.next,_t.next=null):Fe.corkedRequestsFree=new Ot(Fe),Fe.bufferedRequestCount=0}else{for(;le;){var Ut=le.chunk,St=le.encoding,wt=le.callback;if(rt(Oe,Fe,!1,Fe.objectMode?1:Ut.length,Ut,St,wt),le=le.next,Fe.bufferedRequestCount--,Fe.writing)break}le===null&&(Fe.lastBufferedRequest=null)}Fe.bufferedRequest=le,Fe.bufferProcessing=!1}function Zt(Oe){return Oe.ending&&Oe.length===0&&Oe.bufferedRequest===null&&!Oe.finished&&!Oe.writing}function Ft(Oe,Fe){Oe._final(function(le){Fe.pendingcb--,le&&Oe.emit("error",le),Fe.prefinished=!0,Oe.emit("prefinish"),te(Oe,Fe)})}function qt(Oe,Fe){Fe.prefinished||Fe.finalCalled||(typeof Oe._final=="function"?(Fe.pendingcb++,Fe.finalCalled=!0,ie.nextTick(Ft,Oe,Fe)):(Fe.prefinished=!0,Oe.emit("prefinish")))}function te(Oe,Fe){var le=Zt(Fe);return le&&(qt(Oe,Fe),Fe.pendingcb===0&&(Fe.finished=!0,Oe.emit("finish"))),le}function Gt(Oe,Fe,le){Fe.ending=!0,te(Oe,Fe),le&&(Fe.finished?ie.nextTick(le):Oe.once("finish",le)),Fe.ended=!0,Oe.writable=!1}function ce(Oe,Fe,le){var Tt=Oe.entry;for(Oe.entry=null;Tt;){var bt=Tt.callback;Fe.pendingcb--,bt(le),Tt=Tt.next}Fe.corkedRequestsFree?Fe.corkedRequestsFree.next=Oe:Fe.corkedRequestsFree=Oe}var ae=gt("babel-runtime/core-js/object/define-property"),xe=xt(ae),ye=gt("babel-runtime/core-js/symbol/has-instance"),Te=xt(ye),me=gt("babel-runtime/core-js/symbol"),He=xt(me),fe=gt("babel-runtime/core-js/set-immediate"),$t=xt(fe),ie=gt("process-nextick-args");Xt.exports=It;var ue,ge=!kt.browser&&["v0.10","v0.9."].indexOf(kt.version.slice(0,5))>-1?$t.default:ie.nextTick;It.WritableState=At;var he=gt("core-util-is");he.inherits=gt("inherits");var De={deprecate:gt("util-deprecate")},Ne=gt("./internal/streams/stream"),$e=gt("safe-buffer").Buffer,Re=Bt.Uint8Array||function(){},tn=gt("./internal/streams/destroy");he.inherits(It,Ne),At.prototype.getBuffer=function(){for(var Oe=this.bufferedRequest,Fe=[];Oe;)Fe.push(Oe),Oe=Oe.next;return Fe},function(){try{Object.defineProperty(At.prototype,"buffer",{get:De.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Oe){}}();var Me;typeof He.default=="function"&&Te.default&&typeof Function.prototype[Te.default]=="function"?(Me=Function.prototype[Te.default],(0,xe.default)(It,Te.default,{value:function(Oe){return!!Me.call(this,Oe)||this===It&&Oe&&Oe._writableState instanceof At}})):Me=function(Oe){return Oe instanceof this},It.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},It.prototype.write=function(Oe,Fe,le){var Tt=this._writableState,bt=!1,_t=!Tt.objectMode&&Ct(Oe);return _t&&!$e.isBuffer(Oe)&&(Oe=Rt(Oe)),typeof Fe=="function"&&(le=Fe,Fe=null),_t?Fe="buffer":Fe||(Fe=Tt.defaultEncoding),typeof le!="function"&&(le=Lt),Tt.ended?mt(this,le):(_t||et(this,Tt,Oe,le))&&(Tt.pendingcb++,bt=st(this,Tt,_t,Oe,Fe,le)),bt},It.prototype.cork=function(){this._writableState.corked++},It.prototype.uncork=function(){var Oe=this._writableState;Oe.corked&&(Oe.corked--,Oe.writing||Oe.corked||Oe.finished||Oe.bufferProcessing||!Oe.bufferedRequest||Dt(this,Oe))},It.prototype.setDefaultEncoding=function(Oe){if(typeof Oe=="string"&&(Oe=Oe.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Oe+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Oe);return this._writableState.defaultEncoding=Oe,this},Object.defineProperty(It.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),It.prototype._write=function(Oe,Fe,le){le(new Error("_write() is not implemented"))},It.prototype._writev=null,It.prototype.end=function(Oe,Fe,le){var Tt=this._writableState;typeof Oe=="function"?(le=Oe,Oe=null,Fe=null):typeof Fe=="function"&&(le=Fe,Fe=null),Oe!=null&&this.write(Oe,Fe),Tt.corked&&(Tt.corked=1,this.uncork()),Tt.ending||Tt.finished||Gt(this,Tt,le)},Object.defineProperty(It.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(Oe){this._writableState&&(this._writableState.destroyed=Oe)}}),It.prototype.destroy=tn.destroy,It.prototype._undestroy=tn.undestroy,It.prototype._destroy=function(Oe,Fe){this.end(),Fe(Oe)}}).call(this,gt("_process"),typeof Kt.g!="undefined"?Kt.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./_stream_duplex":179,"./internal/streams/destroy":185,"./internal/streams/stream":186,_process:173,"babel-runtime/core-js/object/define-property":20,"babel-runtime/core-js/set-immediate":25,"babel-runtime/core-js/symbol":27,"babel-runtime/core-js/symbol/has-instance":28,"core-util-is":153,inherits:162,"process-nextick-args":172,"safe-buffer":193,"util-deprecate":205}],184:[function(gt,Xt,Qt){"use strict";function kt(Rt,Ct){if(!(Rt instanceof Ct))throw new TypeError("Cannot call a class as a function")}function Bt(Rt,Ct,Lt){Rt.copy(Ct,Lt)}var xt=gt("safe-buffer").Buffer,Ot=gt("util");Xt.exports=function(){function Rt(){kt(this,Rt),this.head=null,this.tail=null,this.length=0}return Rt.prototype.push=function(Ct){var Lt={data:Ct,next:null};this.length>0?this.tail.next=Lt:this.head=Lt,this.tail=Lt,++this.length},Rt.prototype.unshift=function(Ct){var Lt={data:Ct,next:this.head};this.length===0&&(this.tail=Lt),this.head=Lt,++this.length},Rt.prototype.shift=function(){if(this.length!==0){var Ct=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,Ct}},Rt.prototype.clear=function(){this.head=this.tail=null,this.length=0},Rt.prototype.join=function(Ct){if(this.length===0)return"";for(var Lt=this.head,At=""+Lt.data;Lt=Lt.next;)At+=Ct+Lt.data;return At},Rt.prototype.concat=function(Ct){if(this.length===0)return xt.alloc(0);if(this.length===1)return this.head.data;for(var Lt=xt.allocUnsafe(Ct>>>0),At=this.head,It=0;At;)Bt(At.data,Lt,It),It+=At.data.length,At=At.next;return Lt},Rt}(),Ot&&Ot.inspect&&Ot.inspect.custom&&(Xt.exports.prototype[Ot.inspect.custom]=function(){var Rt=Ot.inspect({length:this.length});return this.constructor.name+" "+Rt})},{"safe-buffer":193,util:36}],185:[function(gt,Xt,Qt){"use strict";function kt(Rt,Ct){var Lt=this,At=this._readableState&&this._readableState.destroyed,It=this._writableState&&this._writableState.destroyed;return At||It?(Ct?Ct(Rt):!Rt||this._writableState&&this._writableState.errorEmitted||Ot.nextTick(xt,this,Rt),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(Rt||null,function(mt){!Ct&&mt?(Ot.nextTick(xt,Lt,mt),Lt._writableState&&(Lt._writableState.errorEmitted=!0)):Ct&&Ct(mt)}),this)}function Bt(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function xt(Rt,Ct){Rt.emit("error",Ct)}var Ot=gt("process-nextick-args");Xt.exports={destroy:kt,undestroy:Bt}},{"process-nextick-args":172}],186:[function(gt,Xt,Qt){"use strict";Xt.exports=gt("events").EventEmitter},{events:158}],187:[function(gt,Xt,Qt){Xt.exports=gt("./readable").PassThrough},{"./readable":188}],188:[function(gt,Xt,Qt){Qt=Xt.exports=gt("./lib/_stream_readable.js"),Qt.Stream=Qt,Qt.Readable=Qt,Qt.Writable=gt("./lib/_stream_writable.js"),Qt.Duplex=gt("./lib/_stream_duplex.js"),Qt.Transform=gt("./lib/_stream_transform.js"),Qt.PassThrough=gt("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":179,"./lib/_stream_passthrough.js":180,"./lib/_stream_readable.js":181,"./lib/_stream_transform.js":182,"./lib/_stream_writable.js":183}],189:[function(gt,Xt,Qt){Xt.exports=gt("./readable").Transform},{"./readable":188}],190:[function(gt,Xt,Qt){Xt.exports=gt("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":183}],191:[function(gt,Xt,Qt){var kt=function(){return this}()||Function("return this")(),Bt=kt.regeneratorRuntime&&Object.getOwnPropertyNames(kt).indexOf("regeneratorRuntime")>=0,xt=Bt&&kt.regeneratorRuntime;if(kt.regeneratorRuntime=void 0,Xt.exports=gt("./runtime"),Bt)kt.regeneratorRuntime=xt;else try{delete kt.regeneratorRuntime}catch(Ot){kt.regeneratorRuntime=void 0}},{"./runtime":192}],192:[function(gt,Xt,Qt){(function(kt){"use strict";function Bt($t,ie,ue,ge){var he=ie&&ie.prototype instanceof Ot?ie:Ot,De=Object.create(he.prototype),Ne=new st(ge||[]);return De._invoke=It($t,ue,Ne),De}function xt($t,ie,ue){try{return{type:"normal",arg:$t.call(ie,ue)}}catch(ge){return{type:"throw",arg:ge}}}function Ot(){}function Rt(){}function Ct(){}function Lt($t){["next","throw","return"].forEach(function(ie){$t[ie]=function(ue){return this._invoke(ie,ue)}})}function At($t){function ie(he,De,Ne,$e){var Re=xt($t[he],$t,De);if(Re.type!=="throw"){var tn=Re.arg,Me=tn.value;return Me&&typeof Me=="object"&&pt.call(Me,"__await")?Promise.resolve(Me.__await).then(function(Oe){ie("next",Oe,Ne,$e)},function(Oe){ie("throw",Oe,Ne,$e)}):Promise.resolve(Me).then(function(Oe){tn.value=Oe,Ne(tn)},$e)}$e(Re.arg)}function ue(he,De){function Ne(){return new Promise(function($e,Re){ie(he,De,$e,Re)})}return ge=ge?ge.then(Ne,Ne):Ne()}var ge;this._invoke=ue}function It($t,ie,ue){var ge=Gt;return function(he,De){if(ge===ae)throw new Error("Generator is already running");if(ge===xe){if(he==="throw")throw De;return ut()}for(ue.method=he,ue.arg=De;;){var Ne=ue.delegate;if(Ne){var $e=mt(Ne,ue);if($e){if($e===ye)continue;return $e}}if(ue.method==="next")ue.sent=ue._sent=ue.arg;else if(ue.method==="throw"){if(ge===Gt)throw ge=xe,ue.arg;ue.dispatchException(ue.arg)}else ue.method==="return"&&ue.abrupt("return",ue.arg);ge=ae;var Re=xt($t,ie,ue);if(Re.type==="normal"){if(ge=ue.done?xe:ce,Re.arg===ye)continue;return{value:Re.arg,done:ue.done}}Re.type==="throw"&&(ge=xe,ue.method="throw",ue.arg=Re.arg)}}}function mt($t,ie){var ue=$t.iterator[ie.method];if(ue===ct){if(ie.delegate=null,ie.method==="throw"){if($t.iterator.return&&(ie.method="return",ie.arg=ct,mt($t,ie),ie.method==="throw"))return ye;ie.method="throw",ie.arg=new TypeError("The iterator does not provide a 'throw' method")}return ye}var ge=xt(ue,$t.iterator,ie.arg);if(ge.type==="throw")return ie.method="throw",ie.arg=ge.arg,ie.delegate=null,ye;var he=ge.arg;return he?he.done?(ie[$t.resultName]=he.value,ie.next=$t.nextLoc,ie.method!=="return"&&(ie.method="next",ie.arg=ct),ie.delegate=null,ye):he:(ie.method="throw",ie.arg=new TypeError("iterator result is not an object"),ie.delegate=null,ye)}function et($t){var ie={tryLoc:$t[0]};1 in $t&&(ie.catchLoc=$t[1]),2 in $t&&(ie.finallyLoc=$t[2],ie.afterLoc=$t[3]),this.tryEntries.push(ie)}function tt($t){var ie=$t.completion||{};ie.type="normal",delete ie.arg,$t.completion=ie}function st($t){this.tryEntries=[{tryLoc:"root"}],$t.forEach(et,this),this.reset(!0)}function rt($t){if($t){var ie=$t[Dt];if(ie)return ie.call($t);if(typeof $t.next=="function")return $t;if(!isNaN($t.length)){var ue=-1,ge=function he(){for(;++ue<$t.length;)if(pt.call($t,ue))return he.value=$t[ue],he.done=!1,he;return he.value=ct,he.done=!0,he};return ge.next=ge}}return{next:ut}}function ut(){return{value:ct,done:!0}}var ct,ft=Object.prototype,pt=ft.hasOwnProperty,Pt=typeof Symbol=="function"?Symbol:{},Dt=Pt.iterator||"@@iterator",Zt=Pt.asyncIterator||"@@asyncIterator",Ft=Pt.toStringTag||"@@toStringTag",qt=typeof Xt=="object",te=kt.regeneratorRuntime;if(te)return void(qt&&(Xt.exports=te));te=kt.regeneratorRuntime=qt?Xt.exports:{},te.wrap=Bt;var Gt="suspendedStart",ce="suspendedYield",ae="executing",xe="completed",ye={},Te={};Te[Dt]=function(){return this};var me=Object.getPrototypeOf,He=me&&me(me(rt([])));He&&He!==ft&&pt.call(He,Dt)&&(Te=He);var fe=Ct.prototype=Ot.prototype=Object.create(Te);Rt.prototype=fe.constructor=Ct,Ct.constructor=Rt,Ct[Ft]=Rt.displayName="GeneratorFunction",te.isGeneratorFunction=function($t){var ie=typeof $t=="function"&&$t.constructor;return!!ie&&(ie===Rt||(ie.displayName||ie.name)==="GeneratorFunction")},te.mark=function($t){return Object.setPrototypeOf?Object.setPrototypeOf($t,Ct):($t.__proto__=Ct,Ft in $t||($t[Ft]="GeneratorFunction")),$t.prototype=Object.create(fe),$t},te.awrap=function($t){return{__await:$t}},Lt(At.prototype),At.prototype[Zt]=function(){return this},te.AsyncIterator=At,te.async=function($t,ie,ue,ge){var he=new At(Bt($t,ie,ue,ge));return te.isGeneratorFunction(ie)?he:he.next().then(function(De){return De.done?De.value:he.next()})},Lt(fe),fe[Ft]="Generator",fe[Dt]=function(){return this},fe.toString=function(){return"[object Generator]"},te.keys=function($t){var ie=[];for(var ue in $t)ie.push(ue);return ie.reverse(),function ge(){for(;ie.length;){var he=ie.pop();if(he in $t)return ge.value=he,ge.done=!1,ge}return ge.done=!0,ge}},te.values=rt,st.prototype={constructor:st,reset:function($t){if(this.prev=0,this.next=0,this.sent=this._sent=ct,this.done=!1,this.delegate=null,this.method="next",this.arg=ct,this.tryEntries.forEach(tt),!$t)for(var ie in this)ie.charAt(0)==="t"&&pt.call(this,ie)&&!isNaN(+ie.slice(1))&&(this[ie]=ct)},stop:function(){this.done=!0;var $t=this.tryEntries[0],ie=$t.completion;if(ie.type==="throw")throw ie.arg;return this.rval},dispatchException:function($t){function ie(Re,tn){return De.type="throw",De.arg=$t,ue.next=Re,tn&&(ue.method="next",ue.arg=ct),!!tn}if(this.done)throw $t;for(var ue=this,ge=this.tryEntries.length-1;ge>=0;--ge){var he=this.tryEntries[ge],De=he.completion;if(he.tryLoc==="root")return ie("end");if(he.tryLoc<=this.prev){var Ne=pt.call(he,"catchLoc"),$e=pt.call(he,"finallyLoc");if(Ne&&$e){if(this.prev<he.catchLoc)return ie(he.catchLoc,!0);if(this.prev<he.finallyLoc)return ie(he.finallyLoc)}else if(Ne){if(this.prev<he.catchLoc)return ie(he.catchLoc,!0)}else{if(!$e)throw new Error("try statement without catch or finally");if(this.prev<he.finallyLoc)return ie(he.finallyLoc)}}}},abrupt:function($t,ie){for(var ue=this.tryEntries.length-1;ue>=0;--ue){var ge=this.tryEntries[ue];if(ge.tryLoc<=this.prev&&pt.call(ge,"finallyLoc")&&this.prev<ge.finallyLoc){var he=ge;break}}he&&($t==="break"||$t==="continue")&&he.tryLoc<=ie&&ie<=he.finallyLoc&&(he=null);var De=he?he.completion:{};return De.type=$t,De.arg=ie,he?(this.method="next",this.next=he.finallyLoc,ye):this.complete(De)},complete:function($t,ie){if($t.type==="throw")throw $t.arg;return $t.type==="break"||$t.type==="continue"?this.next=$t.arg:$t.type==="return"?(this.rval=this.arg=$t.arg,this.method="return",this.next="end"):$t.type==="normal"&&ie&&(this.next=ie),ye},finish:function($t){for(var ie=this.tryEntries.length-1;ie>=0;--ie){var ue=this.tryEntries[ie];if(ue.finallyLoc===$t)return this.complete(ue.completion,ue.afterLoc),tt(ue),ye}},catch:function($t){for(var ie=this.tryEntries.length-1;ie>=0;--ie){var ue=this.tryEntries[ie];if(ue.tryLoc===$t){var ge=ue.completion;if(ge.type==="throw"){var he=ge.arg;tt(ue)}return he}}throw new Error("illegal catch attempt")},delegateYield:function($t,ie,ue){return this.delegate={iterator:rt($t),resultName:ie,nextLoc:ue},this.method==="next"&&(this.arg=ct),ye}}})(function(){return this}()||Function("return this")())},{}],193:[function(gt,Xt,Qt){function kt(Rt,Ct){for(var Lt in Rt)Ct[Lt]=Rt[Lt]}function Bt(Rt,Ct,Lt){return Ot(Rt,Ct,Lt)}var xt=gt("buffer"),Ot=xt.Buffer;Ot.from&&Ot.alloc&&Ot.allocUnsafe&&Ot.allocUnsafeSlow?Xt.exports=xt:(kt(xt,Qt),Qt.Buffer=Bt),kt(Ot,Bt),Bt.from=function(Rt,Ct,Lt){if(typeof Rt=="number")throw new TypeError("Argument must not be a number");return Ot(Rt,Ct,Lt)},Bt.alloc=function(Rt,Ct,Lt){if(typeof Rt!="number")throw new TypeError("Argument must be a number");var At=Ot(Rt);return Ct!==void 0?typeof Lt=="string"?At.fill(Ct,Lt):At.fill(Ct):At.fill(0),At},Bt.allocUnsafe=function(Rt){if(typeof Rt!="number")throw new TypeError("Argument must be a number");return Ot(Rt)},Bt.allocUnsafeSlow=function(Rt){if(typeof Rt!="number")throw new TypeError("Argument must be a number");return xt.SlowBuffer(Rt)}},{buffer:38}],194:[function(gt,Xt,Qt){(function(kt){"use strict";function Bt(ut){return ut&&ut.__esModule?ut:{default:ut}}var xt=gt("babel-runtime/core-js/string/from-code-point"),Ot=Bt(xt),Rt=gt("babel-runtime/core-js/json/stringify"),Ct=Bt(Rt),Lt=gt("babel-runtime/helpers/typeof"),At=Bt(Lt),It=gt("babel-runtime/core-js/object/define-property"),mt=Bt(It),et=gt("babel-runtime/core-js/object/keys"),tt=Bt(et),st=gt("babel-runtime/core-js/object/create"),rt=Bt(st);(function(ut){function ct(Wt,Vt){if(!(this instanceof ct))return new ct(Wt,Vt);var oe=this;pt(oe),oe.q=oe.c="",oe.bufferCheckPosition=ut.MAX_BUFFER_LENGTH,oe.opt=Vt||{},oe.opt.lowercase=oe.opt.lowercase||oe.opt.lowercasetags,oe.looseCase=oe.opt.lowercase?"toLowerCase":"toUpperCase",oe.tags=[],oe.closed=oe.closedRoot=oe.sawRoot=!1,oe.tag=oe.error=null,oe.strict=!!Wt,oe.noscript=!(!Wt&&!oe.opt.noscript),oe.state=wt.BEGIN,oe.strictEntities=oe.opt.strictEntities,oe.ENTITIES=oe.strictEntities?(0,rt.default)(ut.XML_ENTITIES):(0,rt.default)(ut.ENTITIES),oe.attribList=[],oe.opt.xmlns&&(oe.ns=(0,rt.default)(_t)),oe.trackPosition=oe.opt.position!==!1,oe.trackPosition&&(oe.position=oe.line=oe.column=0),ae(oe,"onready")}function ft(Wt){for(var Vt=Math.max(ut.MAX_BUFFER_LENGTH,10),oe=0,de=0,Ge=tn.length;de<Ge;de++){var Ye=Wt[tn[de]].length;if(Ye>Vt)switch(tn[de]){case"textNode":ye(Wt);break;case"cdata":xe(Wt,"oncdata",Wt.cdata),Wt.cdata="";break;case"script":xe(Wt,"onscript",Wt.script),Wt.script="";break;default:me(Wt,"Max buffer length exceeded: "+tn[de])}oe=Math.max(oe,Ye)}var Ue=ut.MAX_BUFFER_LENGTH-oe;Wt.bufferCheckPosition=Ue+Wt.position}function pt(Wt){for(var Vt=0,oe=tn.length;Vt<oe;Vt++)Wt[tn[Vt]]=""}function Pt(Wt){ye(Wt),Wt.cdata!==""&&(xe(Wt,"oncdata",Wt.cdata),Wt.cdata=""),Wt.script!==""&&(xe(Wt,"onscript",Wt.script),Wt.script="")}function Dt(Wt,Vt){return new Zt(Wt,Vt)}function Zt(Wt,Vt){if(!(this instanceof Zt))return new Zt(Wt,Vt);Me.apply(this),this._parser=new ct(Wt,Vt),this.writable=!0,this.readable=!0;var oe=this;this._parser.onend=function(){oe.emit("end")},this._parser.onerror=function(de){oe.emit("error",de),oe._parser.error=null},this._decoder=null,Oe.forEach(function(de){(0,mt.default)(oe,"on"+de,{get:function(){return oe._parser["on"+de]},set:function(Ge){if(!Ge)return oe.removeAllListeners(de),oe._parser["on"+de]=Ge,Ge;oe.on(de,Ge)},enumerable:!0,configurable:!1})})}function Ft(Wt){return Wt===" "||Wt===`
|
|
|
`||Wt==="\r"||Wt===" "}function qt(Wt){return Wt==='"'||Wt==="'"}function te(Wt){return Wt===">"||Ft(Wt)}function Gt(Wt,Vt){return Wt.test(Vt)}function ce(Wt,Vt){return!Gt(Wt,Vt)}function ae(Wt,Vt,oe){Wt[Vt]&&Wt[Vt](oe)}function xe(Wt,Vt,oe){Wt.textNode&&ye(Wt),ae(Wt,Vt,oe)}function ye(Wt){Wt.textNode=Te(Wt.opt,Wt.textNode),Wt.textNode&&ae(Wt,"ontext",Wt.textNode),Wt.textNode=""}function Te(Wt,Vt){return Wt.trim&&(Vt=Vt.trim()),Wt.normalize&&(Vt=Vt.replace(/\s+/g," ")),Vt}function me(Wt,Vt){return ye(Wt),Wt.trackPosition&&(Vt+=`
|
|
|
Line: `+Wt.line+`
|
|
|
Column: `+Wt.column+`
|
|
|
Char: `+Wt.c),Vt=new Error(Vt),Wt.error=Vt,ae(Wt,"onerror",Vt),Wt}function He(Wt){return Wt.sawRoot&&!Wt.closedRoot&&fe(Wt,"Unclosed root tag"),Wt.state!==wt.BEGIN&&Wt.state!==wt.BEGIN_WHITESPACE&&Wt.state!==wt.TEXT&&me(Wt,"Unexpected end"),ye(Wt),Wt.c="",Wt.closed=!0,ae(Wt,"onend"),ct.call(Wt,Wt.strict,Wt.opt),Wt}function fe(Wt,Vt){if((Wt===void 0?"undefined":(0,At.default)(Wt))!=="object"||!(Wt instanceof ct))throw new Error("bad call to strictFail");Wt.strict&&me(Wt,Vt)}function $t(Wt){Wt.strict||(Wt.tagName=Wt.tagName[Wt.looseCase]());var Vt=Wt.tags[Wt.tags.length-1]||Wt,oe=Wt.tag={name:Wt.tagName,attributes:{}};Wt.opt.xmlns&&(oe.ns=Vt.ns),Wt.attribList.length=0,xe(Wt,"onopentagstart",oe)}function ie(Wt,Vt){var oe=Wt.indexOf(":"),de=oe<0?["",Wt]:Wt.split(":"),Ge=de[0],Ye=de[1];return Vt&&Wt==="xmlns"&&(Ge="xmlns",Ye=""),{prefix:Ge,local:Ye}}function ue(Wt){if(Wt.strict||(Wt.attribName=Wt.attribName[Wt.looseCase]()),Wt.attribList.indexOf(Wt.attribName)!==-1||Wt.tag.attributes.hasOwnProperty(Wt.attribName))return void(Wt.attribName=Wt.attribValue="");if(Wt.opt.xmlns){var Vt=ie(Wt.attribName,!0),oe=Vt.prefix,de=Vt.local;if(oe==="xmlns")if(de==="xml"&&Wt.attribValue!==Tt)fe(Wt,"xml: prefix must be bound to "+Tt+`
|
|
|
Actual: `+Wt.attribValue);else if(de==="xmlns"&&Wt.attribValue!==bt)fe(Wt,"xmlns: prefix must be bound to "+bt+`
|
|
|
Actual: `+Wt.attribValue);else{var Ge=Wt.tag,Ye=Wt.tags[Wt.tags.length-1]||Wt;Ge.ns===Ye.ns&&(Ge.ns=(0,rt.default)(Ye.ns)),Ge.ns[de]=Wt.attribValue}Wt.attribList.push([Wt.attribName,Wt.attribValue])}else Wt.tag.attributes[Wt.attribName]=Wt.attribValue,xe(Wt,"onattribute",{name:Wt.attribName,value:Wt.attribValue});Wt.attribName=Wt.attribValue=""}function ge(Wt,Vt){if(Wt.opt.xmlns){var oe=Wt.tag,de=ie(Wt.tagName);oe.prefix=de.prefix,oe.local=de.local,oe.uri=oe.ns[de.prefix]||"",oe.prefix&&!oe.uri&&(fe(Wt,"Unbound namespace prefix: "+(0,Ct.default)(Wt.tagName)),oe.uri=de.prefix);var Ge=Wt.tags[Wt.tags.length-1]||Wt;oe.ns&&Ge.ns!==oe.ns&&(0,tt.default)(oe.ns).forEach(function(Zn){xe(Wt,"onopennamespace",{prefix:Zn,uri:oe.ns[Zn]})});for(var Ye=0,Ue=Wt.attribList.length;Ye<Ue;Ye++){var an=Wt.attribList[Ye],vn=an[0],ke=an[1],Ze=ie(vn,!0),hn=Ze.prefix,Pn=Ze.local,In=hn===""?"":oe.ns[hn]||"",Bn={name:vn,value:ke,prefix:hn,local:Pn,uri:In};hn&&hn!=="xmlns"&&!In&&(fe(Wt,"Unbound namespace prefix: "+(0,Ct.default)(hn)),Bn.uri=hn),Wt.tag.attributes[vn]=Bn,xe(Wt,"onattribute",Bn)}Wt.attribList.length=0}Wt.tag.isSelfClosing=!!Vt,Wt.sawRoot=!0,Wt.tags.push(Wt.tag),xe(Wt,"onopentag",Wt.tag),Vt||(Wt.noscript||Wt.tagName.toLowerCase()!=="script"?Wt.state=wt.TEXT:Wt.state=wt.SCRIPT,Wt.tag=null,Wt.tagName=""),Wt.attribName=Wt.attribValue="",Wt.attribList.length=0}function he(Wt){if(!Wt.tagName)return fe(Wt,"Weird empty close tag."),Wt.textNode+="</>",void(Wt.state=wt.TEXT);if(Wt.script){if(Wt.tagName!=="script")return Wt.script+="</"+Wt.tagName+">",Wt.tagName="",void(Wt.state=wt.SCRIPT);xe(Wt,"onscript",Wt.script),Wt.script=""}var Vt=Wt.tags.length,oe=Wt.tagName;Wt.strict||(oe=oe[Wt.looseCase]());for(var de=oe;Vt--&&Wt.tags[Vt].name!==de;)fe(Wt,"Unexpected close tag");if(Vt<0)return fe(Wt,"Unmatched closing tag: "+Wt.tagName),Wt.textNode+="</"+Wt.tagName+">",void(Wt.state=wt.TEXT);Wt.tagName=oe;for(var Ge=Wt.tags.length;Ge-- >Vt;){var Ye=Wt.tag=Wt.tags.pop();Wt.tagName=Wt.tag.name,xe(Wt,"onclosetag",Wt.tagName);var Ue={};for(var an in Ye.ns)Ue[an]=Ye.ns[an];var vn=Wt.tags[Wt.tags.length-1]||Wt;Wt.opt.xmlns&&Ye.ns!==vn.ns&&(0,tt.default)(Ye.ns).forEach(function(ke){var Ze=Ye.ns[ke];xe(Wt,"onclosenamespace",{prefix:ke,uri:Ze})})}Vt===0&&(Wt.closedRoot=!0),Wt.tagName=Wt.attribValue=Wt.attribName="",Wt.attribList.length=0,Wt.state=wt.TEXT}function De(Wt){var Vt,oe=Wt.entity,de=oe.toLowerCase(),Ge="";return Wt.ENTITIES[oe]?Wt.ENTITIES[oe]:Wt.ENTITIES[de]?Wt.ENTITIES[de]:(oe=de,oe.charAt(0)==="#"&&(oe.charAt(1)==="x"?(oe=oe.slice(2),Vt=parseInt(oe,16),Ge=Vt.toString(16)):(oe=oe.slice(1),Vt=parseInt(oe,10),Ge=Vt.toString(10))),oe=oe.replace(/^0+/,""),isNaN(Vt)||Ge.toLowerCase()!==oe?(fe(Wt,"Invalid character entity"),"&"+Wt.entity+";"):(0,Ot.default)(Vt))}function Ne(Wt,Vt){Vt==="<"?(Wt.state=wt.OPEN_WAKA,Wt.startTagPosition=Wt.position):Ft(Vt)||(fe(Wt,"Non-whitespace before first tag."),Wt.textNode=Vt,Wt.state=wt.TEXT)}function $e(Wt,Vt){var oe="";return Vt<Wt.length&&(oe=Wt.charAt(Vt)),oe}function Re(Wt){var Vt=this;if(this.error)throw this.error;if(Vt.closed)return me(Vt,"Cannot write after close. Assign an onready handler.");if(Wt===null)return He(Vt);(Wt===void 0?"undefined":(0,At.default)(Wt))==="object"&&(Wt=Wt.toString());for(var oe=0,de="";de=$e(Wt,oe++),Vt.c=de,!!de;)switch(Vt.trackPosition&&(Vt.position++,de===`
|
|
|
`?(Vt.line++,Vt.column=0):Vt.column++),Vt.state){case wt.BEGIN:if(Vt.state=wt.BEGIN_WHITESPACE,de==="\uFEFF")continue;Ne(Vt,de);continue;case wt.BEGIN_WHITESPACE:Ne(Vt,de);continue;case wt.TEXT:if(Vt.sawRoot&&!Vt.closedRoot){for(var Ge=oe-1;de&&de!=="<"&&de!=="&";)(de=$e(Wt,oe++))&&Vt.trackPosition&&(Vt.position++,de===`
|
|
|
`?(Vt.line++,Vt.column=0):Vt.column++);Vt.textNode+=Wt.substring(Ge,oe-1)}de!=="<"||Vt.sawRoot&&Vt.closedRoot&&!Vt.strict?(Ft(de)||Vt.sawRoot&&!Vt.closedRoot||fe(Vt,"Text data outside of root node."),de==="&"?Vt.state=wt.TEXT_ENTITY:Vt.textNode+=de):(Vt.state=wt.OPEN_WAKA,Vt.startTagPosition=Vt.position);continue;case wt.SCRIPT:de==="<"?Vt.state=wt.SCRIPT_ENDING:Vt.script+=de;continue;case wt.SCRIPT_ENDING:de==="/"?Vt.state=wt.CLOSE_TAG:(Vt.script+="<"+de,Vt.state=wt.SCRIPT);continue;case wt.OPEN_WAKA:if(de==="!")Vt.state=wt.SGML_DECL,Vt.sgmlDecl="";else if(!Ft(de))if(Gt(Yt,de))Vt.state=wt.OPEN_TAG,Vt.tagName=de;else if(de==="/")Vt.state=wt.CLOSE_TAG,Vt.tagName="";else if(de==="?")Vt.state=wt.PROC_INST,Vt.procInstName=Vt.procInstBody="";else{if(fe(Vt,"Unencoded <"),Vt.startTagPosition+1<Vt.position){var Ye=Vt.position-Vt.startTagPosition;de=new Array(Ye).join(" ")+de}Vt.textNode+="<"+de,Vt.state=wt.TEXT}continue;case wt.SGML_DECL:(Vt.sgmlDecl+de).toUpperCase()===Fe?(xe(Vt,"onopencdata"),Vt.state=wt.CDATA,Vt.sgmlDecl="",Vt.cdata=""):Vt.sgmlDecl+de==="--"?(Vt.state=wt.COMMENT,Vt.comment="",Vt.sgmlDecl=""):(Vt.sgmlDecl+de).toUpperCase()===le?(Vt.state=wt.DOCTYPE,(Vt.doctype||Vt.sawRoot)&&fe(Vt,"Inappropriately located doctype declaration"),Vt.doctype="",Vt.sgmlDecl=""):de===">"?(xe(Vt,"onsgmldeclaration",Vt.sgmlDecl),Vt.sgmlDecl="",Vt.state=wt.TEXT):(qt(de)&&(Vt.state=wt.SGML_DECL_QUOTED),Vt.sgmlDecl+=de);continue;case wt.SGML_DECL_QUOTED:de===Vt.q&&(Vt.state=wt.SGML_DECL,Vt.q=""),Vt.sgmlDecl+=de;continue;case wt.DOCTYPE:de===">"?(Vt.state=wt.TEXT,xe(Vt,"ondoctype",Vt.doctype),Vt.doctype=!0):(Vt.doctype+=de,de==="["?Vt.state=wt.DOCTYPE_DTD:qt(de)&&(Vt.state=wt.DOCTYPE_QUOTED,Vt.q=de));continue;case wt.DOCTYPE_QUOTED:Vt.doctype+=de,de===Vt.q&&(Vt.q="",Vt.state=wt.DOCTYPE);continue;case wt.DOCTYPE_DTD:Vt.doctype+=de,de==="]"?Vt.state=wt.DOCTYPE:qt(de)&&(Vt.state=wt.DOCTYPE_DTD_QUOTED,Vt.q=de);continue;case wt.DOCTYPE_DTD_QUOTED:Vt.doctype+=de,de===Vt.q&&(Vt.state=wt.DOCTYPE_DTD,Vt.q="");continue;case wt.COMMENT:de==="-"?Vt.state=wt.COMMENT_ENDING:Vt.comment+=de;continue;case wt.COMMENT_ENDING:de==="-"?(Vt.state=wt.COMMENT_ENDED,Vt.comment=Te(Vt.opt,Vt.comment),Vt.comment&&xe(Vt,"oncomment",Vt.comment),Vt.comment=""):(Vt.comment+="-"+de,Vt.state=wt.COMMENT);continue;case wt.COMMENT_ENDED:de!==">"?(fe(Vt,"Malformed comment"),Vt.comment+="--"+de,Vt.state=wt.COMMENT):Vt.state=wt.TEXT;continue;case wt.CDATA:de==="]"?Vt.state=wt.CDATA_ENDING:Vt.cdata+=de;continue;case wt.CDATA_ENDING:de==="]"?Vt.state=wt.CDATA_ENDING_2:(Vt.cdata+="]"+de,Vt.state=wt.CDATA);continue;case wt.CDATA_ENDING_2:de===">"?(Vt.cdata&&xe(Vt,"oncdata",Vt.cdata),xe(Vt,"onclosecdata"),Vt.cdata="",Vt.state=wt.TEXT):de==="]"?Vt.cdata+="]":(Vt.cdata+="]]"+de,Vt.state=wt.CDATA);continue;case wt.PROC_INST:de==="?"?Vt.state=wt.PROC_INST_ENDING:Ft(de)?Vt.state=wt.PROC_INST_BODY:Vt.procInstName+=de;continue;case wt.PROC_INST_BODY:if(!Vt.procInstBody&&Ft(de))continue;de==="?"?Vt.state=wt.PROC_INST_ENDING:Vt.procInstBody+=de;continue;case wt.PROC_INST_ENDING:de===">"?(xe(Vt,"onprocessinginstruction",{name:Vt.procInstName,body:Vt.procInstBody}),Vt.procInstName=Vt.procInstBody="",Vt.state=wt.TEXT):(Vt.procInstBody+="?"+de,Vt.state=wt.PROC_INST_BODY);continue;case wt.OPEN_TAG:Gt(Mt,de)?Vt.tagName+=de:($t(Vt),de===">"?ge(Vt):de==="/"?Vt.state=wt.OPEN_TAG_SLASH:(Ft(de)||fe(Vt,"Invalid character in tag name"),Vt.state=wt.ATTRIB));continue;case wt.OPEN_TAG_SLASH:de===">"?(ge(Vt,!0),he(Vt)):(fe(Vt,"Forward-slash in opening tag not followed by >"),Vt.state=wt.ATTRIB);continue;case wt.ATTRIB:if(Ft(de))continue;de===">"?ge(Vt):de==="/"?Vt.state=wt.OPEN_TAG_SLASH:Gt(Yt,de)?(Vt.attribName=de,Vt.attribValue="",Vt.state=wt.ATTRIB_NAME):fe(Vt,"Invalid attribute name");continue;case wt.ATTRIB_NAME:de==="="?Vt.state=wt.ATTRIB_VALUE:de===">"?(fe(Vt,"Attribute without value"),Vt.attribValue=Vt.attribName,ue(Vt),ge(Vt)):Ft(de)?Vt.state=wt.ATTRIB_NAME_SAW_WHITE:Gt(Mt,de)?Vt.attribName+=de:fe(Vt,"Invalid attribute name");continue;case wt.ATTRIB_NAME_SAW_WHITE:if(de==="=")Vt.state=wt.ATTRIB_VALUE;else{if(Ft(de))continue;fe(Vt,"Attribute without value"),Vt.tag.attributes[Vt.attribName]="",Vt.attribValue="",xe(Vt,"onattribute",{name:Vt.attribName,value:""}),Vt.attribName="",de===">"?ge(Vt):Gt(Yt,de)?(Vt.attribName=de,Vt.state=wt.ATTRIB_NAME):(fe(Vt,"Invalid attribute name"),Vt.state=wt.ATTRIB)}continue;case wt.ATTRIB_VALUE:if(Ft(de))continue;qt(de)?(Vt.q=de,Vt.state=wt.ATTRIB_VALUE_QUOTED):(fe(Vt,"Unquoted attribute value"),Vt.state=wt.ATTRIB_VALUE_UNQUOTED,Vt.attribValue=de);continue;case wt.ATTRIB_VALUE_QUOTED:if(de!==Vt.q){de==="&"?Vt.state=wt.ATTRIB_VALUE_ENTITY_Q:Vt.attribValue+=de;continue}ue(Vt),Vt.q="",Vt.state=wt.ATTRIB_VALUE_CLOSED;continue;case wt.ATTRIB_VALUE_CLOSED:Ft(de)?Vt.state=wt.ATTRIB:de===">"?ge(Vt):de==="/"?Vt.state=wt.OPEN_TAG_SLASH:Gt(Yt,de)?(fe(Vt,"No whitespace between attributes"),Vt.attribName=de,Vt.attribValue="",Vt.state=wt.ATTRIB_NAME):fe(Vt,"Invalid attribute name");continue;case wt.ATTRIB_VALUE_UNQUOTED:if(!te(de)){de==="&"?Vt.state=wt.ATTRIB_VALUE_ENTITY_U:Vt.attribValue+=de;continue}ue(Vt),de===">"?ge(Vt):Vt.state=wt.ATTRIB;continue;case wt.CLOSE_TAG:if(Vt.tagName)de===">"?he(Vt):Gt(Mt,de)?Vt.tagName+=de:Vt.script?(Vt.script+="</"+Vt.tagName,Vt.tagName="",Vt.state=wt.SCRIPT):(Ft(de)||fe(Vt,"Invalid tagname in closing tag"),Vt.state=wt.CLOSE_TAG_SAW_WHITE);else{if(Ft(de))continue;ce(Yt,de)?Vt.script?(Vt.script+="</"+de,Vt.state=wt.SCRIPT):fe(Vt,"Invalid tagname in closing tag."):Vt.tagName=de}continue;case wt.CLOSE_TAG_SAW_WHITE:if(Ft(de))continue;de===">"?he(Vt):fe(Vt,"Invalid characters in closing tag");continue;case wt.TEXT_ENTITY:case wt.ATTRIB_VALUE_ENTITY_Q:case wt.ATTRIB_VALUE_ENTITY_U:var Ue,an;switch(Vt.state){case wt.TEXT_ENTITY:Ue=wt.TEXT,an="textNode";break;case wt.ATTRIB_VALUE_ENTITY_Q:Ue=wt.ATTRIB_VALUE_QUOTED,an="attribValue";break;case wt.ATTRIB_VALUE_ENTITY_U:Ue=wt.ATTRIB_VALUE_UNQUOTED,an="attribValue"}de===";"?(Vt[an]+=De(Vt),Vt.entity="",Vt.state=Ue):Gt(Vt.entity.length?St:Ut,de)?Vt.entity+=de:(fe(Vt,"Invalid character in entity name"),Vt[an]+="&"+Vt.entity+de,Vt.entity="",Vt.state=Ue);continue;default:throw new Error(Vt,"Unknown state: "+Vt.state)}return Vt.position>=Vt.bufferCheckPosition&&ft(Vt),Vt}ut.parser=function(Wt,Vt){return new ct(Wt,Vt)},ut.SAXParser=ct,ut.SAXStream=Zt,ut.createStream=Dt,ut.MAX_BUFFER_LENGTH=65536;var tn=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];ut.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],rt.default||(Object.create=function(Wt){function Vt(){}return Vt.prototype=Wt,new Vt}),tt.default||(Object.keys=function(Wt){var Vt=[];for(var oe in Wt)Wt.hasOwnProperty(oe)&&Vt.push(oe);return Vt}),ct.prototype={end:function(){He(this)},write:Re,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){Pt(this)}};var Me;try{Me=gt("stream").Stream}catch(Wt){Me=function(){}}var Oe=ut.EVENTS.filter(function(Wt){return Wt!=="error"&&Wt!=="end"});Zt.prototype=(0,rt.default)(Me.prototype,{constructor:{value:Zt}}),Zt.prototype.write=function(Wt){if(typeof kt=="function"&&typeof kt.isBuffer=="function"&&kt.isBuffer(Wt)){if(!this._decoder){var Vt=gt("string_decoder").StringDecoder;this._decoder=new Vt("utf8")}Wt=this._decoder.write(Wt)}return this._parser.write(Wt.toString()),this.emit("data",Wt),!0},Zt.prototype.end=function(Wt){return Wt&&Wt.length&&this.write(Wt),this._parser.end(),!0},Zt.prototype.on=function(Wt,Vt){var oe=this;return oe._parser["on"+Wt]||Oe.indexOf(Wt)===-1||(oe._parser["on"+Wt]=function(){var de=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);de.splice(0,0,Wt),oe.emit.apply(oe,de)}),Me.prototype.on.call(oe,Wt,Vt)};var Fe="[CDATA[",le="DOCTYPE",Tt="http://www.w3.org/XML/1998/namespace",bt="http://www.w3.org/2000/xmlns/",_t={xml:Tt,xmlns:bt},Yt=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,Mt=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,Ut=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,St=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,wt=0;ut.STATE={BEGIN:wt++,BEGIN_WHITESPACE:wt++,TEXT:wt++,TEXT_ENTITY:wt++,OPEN_WAKA:wt++,SGML_DECL:wt++,SGML_DECL_QUOTED:wt++,DOCTYPE:wt++,DOCTYPE_QUOTED:wt++,DOCTYPE_DTD:wt++,DOCTYPE_DTD_QUOTED:wt++,COMMENT_STARTING:wt++,COMMENT:wt++,COMMENT_ENDING:wt++,COMMENT_ENDED:wt++,CDATA:wt++,CDATA_ENDING:wt++,CDATA_ENDING_2:wt++,PROC_INST:wt++,PROC_INST_BODY:wt++,PROC_INST_ENDING:wt++,OPEN_TAG:wt++,OPEN_TAG_SLASH:wt++,ATTRIB:wt++,ATTRIB_NAME:wt++,ATTRIB_NAME_SAW_WHITE:wt++,ATTRIB_VALUE:wt++,ATTRIB_VALUE_QUOTED:wt++,ATTRIB_VALUE_CLOSED:wt++,ATTRIB_VALUE_UNQUOTED:wt++,ATTRIB_VALUE_ENTITY_Q:wt++,ATTRIB_VALUE_ENTITY_U:wt++,CLOSE_TAG:wt++,CLOSE_TAG_SAW_WHITE:wt++,SCRIPT:wt++,SCRIPT_ENDING:wt++},ut.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},ut.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},(0,tt.default)(ut.ENTITIES).forEach(function(Wt){var Vt=ut.ENTITIES[Wt],oe=typeof Vt=="number"?String.fromCharCode(Vt):Vt;ut.ENTITIES[Wt]=oe});for(var jt in ut.STATE)ut.STATE[ut.STATE[jt]]=jt;wt=ut.STATE,Ot.default||function(){var Wt=String.fromCharCode,Vt=Math.floor,oe=function(){var de,Ge,Ye=[],Ue=-1,an=arguments.length;if(!an)return"";for(var vn="";++Ue<an;){var ke=Number(arguments[Ue]);if(!isFinite(ke)||ke<0||ke>1114111||Vt(ke)!==ke)throw RangeError("Invalid code point: "+ke);ke<=65535?Ye.push(ke):(ke-=65536,de=55296+(ke>>10),Ge=ke%1024+56320,Ye.push(de,Ge)),(Ue+1===an||Ye.length>16384)&&(vn+=Wt.apply(null,Ye),Ye.length=0)}return vn};mt.default?Object.defineProperty(String,"fromCodePoint",{value:oe,configurable:!0,writable:!0}):String.fromCodePoint=oe}()})(Qt===void 0?(void 0).sax={}:Qt)}).call(this,gt("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/create":19,"babel-runtime/core-js/object/define-property":20,"babel-runtime/core-js/object/keys":23,"babel-runtime/core-js/string/from-code-point":26,"babel-runtime/helpers/typeof":32,buffer:38,stream:195,string_decoder:37}],195:[function(gt,Xt,Qt){function kt(){Bt.call(this)}Xt.exports=kt;var Bt=gt("events").EventEmitter;gt("inherits")(kt,Bt),kt.Readable=gt("readable-stream/readable.js"),kt.Writable=gt("readable-stream/writable.js"),kt.Duplex=gt("readable-stream/duplex.js"),kt.Transform=gt("readable-stream/transform.js"),kt.PassThrough=gt("readable-stream/passthrough.js"),kt.Stream=kt,kt.prototype.pipe=function(xt,Ot){function Rt(st){xt.writable&&xt.write(st)===!1&&et.pause&&et.pause()}function Ct(){et.readable&&et.resume&&et.resume()}function Lt(){tt||(tt=!0,xt.end())}function At(){tt||(tt=!0,typeof xt.destroy=="function"&&xt.destroy())}function It(st){if(mt(),Bt.listenerCount(this,"error")===0)throw st}function mt(){et.removeListener("data",Rt),xt.removeListener("drain",Ct),et.removeListener("end",Lt),et.removeListener("close",At),et.removeListener("error",It),xt.removeListener("error",It),et.removeListener("end",mt),et.removeListener("close",mt),xt.removeListener("close",mt)}var et=this;et.on("data",Rt),xt.on("drain",Ct),xt._isStdio||Ot&&Ot.end===!1||(et.on("end",Lt),et.on("close",At));var tt=!1;return et.on("error",It),xt.on("error",It),et.on("end",mt),et.on("close",mt),xt.on("close",mt),xt.emit("pipe",et),xt}},{events:158,inherits:162,"readable-stream/duplex.js":178,"readable-stream/passthrough.js":187,"readable-stream/readable.js":188,"readable-stream/transform.js":189,"readable-stream/writable.js":190}],196:[function(gt,Xt,Qt){(function(kt){var Bt=gt("./lib/request"),xt=gt("./lib/response"),Ot=gt("xtend"),Rt=gt("builtin-status-codes"),Ct=gt("url"),Lt=Qt;Lt.request=function(At,It){At=typeof At=="string"?Ct.parse(At):Ot(At);var mt=kt.location.protocol.search(/^https?:$/)===-1?"http:":"",et=At.protocol||mt,tt=At.hostname||At.host,st=At.port,rt=At.path||"/";tt&&tt.indexOf(":")!==-1&&(tt="["+tt+"]"),At.url=(tt?et+"//"+tt:"")+(st?":"+st:"")+rt,At.method=(At.method||"GET").toUpperCase(),At.headers=At.headers||{};var ut=new Bt(At);return It&&ut.on("response",It),ut},Lt.get=function(At,It){var mt=Lt.request(At,It);return mt.end(),mt},Lt.ClientRequest=Bt,Lt.IncomingMessage=xt.IncomingMessage,Lt.Agent=function(){},Lt.Agent.defaultMaxSockets=4,Lt.globalAgent=new Lt.Agent,Lt.STATUS_CODES=Rt,Lt.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,typeof Kt.g!="undefined"?Kt.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./lib/request":198,"./lib/response":199,"builtin-status-codes":39,url:203,xtend:236}],197:[function(gt,Xt,Qt){(function(kt){"use strict";function Bt(){if(Rt!==void 0)return Rt;if(kt.XMLHttpRequest){Rt=new kt.XMLHttpRequest;try{Rt.open("GET",kt.XDomainRequest?"/":"https://example.com")}catch(At){Rt=null}}else Rt=null;return Rt}function xt(At){var It=Bt();if(!It)return!1;try{return It.responseType=At,It.responseType===At}catch(mt){}return!1}function Ot(At){return typeof At=="function"}Qt.fetch=Ot(kt.fetch)&&Ot(kt.ReadableStream),Qt.writableStream=Ot(kt.WritableStream),Qt.abortController=Ot(kt.AbortController),Qt.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),Qt.blobConstructor=!0}catch(At){}var Rt,Ct=kt.ArrayBuffer!==void 0,Lt=Ct&&Ot(kt.ArrayBuffer.prototype.slice);Qt.arraybuffer=Qt.fetch||Ct&&xt("arraybuffer"),Qt.msstream=!Qt.fetch&&Lt&&xt("ms-stream"),Qt.mozchunkedarraybuffer=!Qt.fetch&&Ct&&xt("moz-chunked-arraybuffer"),Qt.overrideMimeType=Qt.fetch||!!Bt()&&Ot(Bt().overrideMimeType),Qt.vbArray=Ot(kt.VBArray),Rt=null}).call(this,typeof Kt.g!="undefined"?Kt.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],198:[function(gt,Xt,Qt){(function(kt,Bt,xt){"use strict";function Ot(ft,pt){return At.fetch&&pt?"fetch":At.mozchunkedarraybuffer?"moz-chunked-arraybuffer":At.msstream?"ms-stream":At.arraybuffer&&ft?"arraybuffer":At.vbArray&&ft?"text:vbarray":"text"}function Rt(ft){try{var pt=ft.status;return pt!==null&&pt!==0}catch(Pt){return!1}}var Ct=gt("babel-runtime/core-js/object/keys"),Lt=function(ft){return ft&&ft.__esModule?ft:{default:ft}}(Ct),At=gt("./capability"),It=gt("inherits"),mt=gt("./response"),et=gt("readable-stream"),tt=gt("to-arraybuffer"),st=mt.IncomingMessage,rt=mt.readyStates,ut=Xt.exports=function(ft){var pt=this;et.Writable.call(pt),pt._opts=ft,pt._body=[],pt._headers={},ft.auth&&pt.setHeader("Authorization","Basic "+new xt(ft.auth).toString("base64")),(0,Lt.default)(ft.headers).forEach(function(Zt){pt.setHeader(Zt,ft.headers[Zt])});var Pt,Dt=!0;if(ft.mode==="disable-fetch"||"requestTimeout"in ft&&!At.abortController)Dt=!1,Pt=!0;else if(ft.mode==="prefer-streaming")Pt=!1;else if(ft.mode==="allow-wrong-content-type")Pt=!At.overrideMimeType;else{if(ft.mode&&ft.mode!=="default"&&ft.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");Pt=!0}pt._mode=Ot(Pt,Dt),pt._fetchTimer=null,pt.on("finish",function(){pt._onFinish()})};It(ut,et.Writable),ut.prototype.setHeader=function(ft,pt){var Pt=this,Dt=ft.toLowerCase();ct.indexOf(Dt)===-1&&(Pt._headers[Dt]={name:ft,value:pt})},ut.prototype.getHeader=function(ft){var pt=this._headers[ft.toLowerCase()];return pt?pt.value:null},ut.prototype.removeHeader=function(ft){delete this._headers[ft.toLowerCase()]},ut.prototype._onFinish=function(){var ft=this;if(!ft._destroyed){var pt=ft._opts,Pt=ft._headers,Dt=null;pt.method!=="GET"&&pt.method!=="HEAD"&&(Dt=At.arraybuffer?tt(xt.concat(ft._body)):At.blobConstructor?new Bt.Blob(ft._body.map(function(Gt){return tt(Gt)}),{type:(Pt["content-type"]||{}).value||""}):xt.concat(ft._body).toString());var Zt=[];if((0,Lt.default)(Pt).forEach(function(Gt){var ce=Pt[Gt].name,ae=Pt[Gt].value;Array.isArray(ae)?ae.forEach(function(xe){Zt.push([ce,xe])}):Zt.push([ce,ae])}),ft._mode==="fetch"){var Ft=null;if(At.abortController){var qt=new AbortController;Ft=qt.signal,ft._fetchAbortController=qt,"requestTimeout"in pt&&pt.requestTimeout!==0&&(ft._fetchTimer=Bt.setTimeout(function(){ft.emit("requestTimeout"),ft._fetchAbortController&&ft._fetchAbortController.abort()},pt.requestTimeout))}Bt.fetch(ft._opts.url,{method:ft._opts.method,headers:Zt,body:Dt||void 0,mode:"cors",credentials:pt.withCredentials?"include":"same-origin",signal:Ft}).then(function(Gt){ft._fetchResponse=Gt,ft._connect()},function(Gt){Bt.clearTimeout(ft._fetchTimer),ft._destroyed||ft.emit("error",Gt)})}else{var te=ft._xhr=new Bt.XMLHttpRequest;try{te.open(ft._opts.method,ft._opts.url,!0)}catch(Gt){return void kt.nextTick(function(){ft.emit("error",Gt)})}"responseType"in te&&(te.responseType=ft._mode.split(":")[0]),"withCredentials"in te&&(te.withCredentials=!!pt.withCredentials),ft._mode==="text"&&"overrideMimeType"in te&&te.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in pt&&(te.timeout=pt.requestTimeout,te.ontimeout=function(){ft.emit("requestTimeout")}),Zt.forEach(function(Gt){te.setRequestHeader(Gt[0],Gt[1])}),ft._response=null,te.onreadystatechange=function(){switch(te.readyState){case rt.LOADING:case rt.DONE:ft._onXHRProgress()}},ft._mode==="moz-chunked-arraybuffer"&&(te.onprogress=function(){ft._onXHRProgress()}),te.onerror=function(){ft._destroyed||ft.emit("error",new Error("XHR error"))};try{te.send(Dt)}catch(Gt){return void kt.nextTick(function(){ft.emit("error",Gt)})}}}},ut.prototype._onXHRProgress=function(){var ft=this;Rt(ft._xhr)&&!ft._destroyed&&(ft._response||ft._connect(),ft._response._onXHRProgress())},ut.prototype._connect=function(){var ft=this;ft._destroyed||(ft._response=new st(ft._xhr,ft._fetchResponse,ft._mode,ft._fetchTimer),ft._response.on("error",function(pt){ft.emit("error",pt)}),ft.emit("response",ft._response))},ut.prototype._write=function(ft,pt,Pt){this._body.push(ft),Pt()},ut.prototype.abort=ut.prototype.destroy=function(){var ft=this;ft._destroyed=!0,Bt.clearTimeout(ft._fetchTimer),ft._response&&(ft._response._destroyed=!0),ft._xhr?ft._xhr.abort():ft._fetchAbortController&&ft._fetchAbortController.abort()},ut.prototype.end=function(ft,pt,Pt){var Dt=this;typeof ft=="function"&&(Pt=ft,ft=void 0),et.Writable.prototype.end.call(Dt,ft,pt,Pt)},ut.prototype.flushHeaders=function(){},ut.prototype.setTimeout=function(){},ut.prototype.setNoDelay=function(){},ut.prototype.setSocketKeepAlive=function(){};var ct=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(this,gt("_process"),typeof Kt.g!="undefined"?Kt.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{},gt("buffer").Buffer)},{"./capability":197,"./response":199,_process:173,"babel-runtime/core-js/object/keys":23,buffer:38,inherits:162,"readable-stream":188,"to-arraybuffer":202}],199:[function(gt,Xt,Qt){(function(kt,Bt,xt){"use strict";var Ot=gt("babel-runtime/core-js/promise"),Rt=function(et){return et&&et.__esModule?et:{default:et}}(Ot),Ct=gt("./capability"),Lt=gt("inherits"),At=gt("readable-stream"),It=Qt.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},mt=Qt.IncomingMessage=function(et,tt,st,rt){var ut=this;if(At.Readable.call(ut),ut._mode=st,ut.headers={},ut.rawHeaders=[],ut.trailers={},ut.rawTrailers=[],ut.on("end",function(){kt.nextTick(function(){ut.emit("close")})}),st==="fetch"){if(ut._fetchResponse=tt,ut.url=tt.url,ut.statusCode=tt.status,ut.statusMessage=tt.statusText,tt.headers.forEach(function(Dt,Zt){ut.headers[Zt.toLowerCase()]=Dt,ut.rawHeaders.push(Zt,Dt)}),Ct.writableStream){var ct=new WritableStream({write:function(Dt){return new Rt.default(function(Zt,Ft){ut._destroyed?Ft():ut.push(new xt(Dt))?Zt():ut._resumeFetch=Zt})},close:function(){Bt.clearTimeout(rt),ut._destroyed||ut.push(null)},abort:function(Dt){ut._destroyed||ut.emit("error",Dt)}});try{return void tt.body.pipeTo(ct).catch(function(Dt){Bt.clearTimeout(rt),ut._destroyed||ut.emit("error",Dt)})}catch(Dt){}}var ft=tt.body.getReader();(function Dt(){ft.read().then(function(Zt){if(!ut._destroyed){if(Zt.done)return Bt.clearTimeout(rt),void ut.push(null);ut.push(new xt(Zt.value)),Dt()}}).catch(function(Zt){Bt.clearTimeout(rt),ut._destroyed||ut.emit("error",Zt)})})()}else if(ut._xhr=et,ut._pos=0,ut.url=et.responseURL,ut.statusCode=et.status,ut.statusMessage=et.statusText,et.getAllResponseHeaders().split(/\r?\n/).forEach(function(Dt){var Zt=Dt.match(/^([^:]+):\s*(.*)/);if(Zt){var Ft=Zt[1].toLowerCase();Ft==="set-cookie"?(ut.headers[Ft]===void 0&&(ut.headers[Ft]=[]),ut.headers[Ft].push(Zt[2])):ut.headers[Ft]!==void 0?ut.headers[Ft]+=", "+Zt[2]:ut.headers[Ft]=Zt[2],ut.rawHeaders.push(Zt[1],Zt[2])}}),ut._charset="x-user-defined",!Ct.overrideMimeType){var pt=ut.rawHeaders["mime-type"];if(pt){var Pt=pt.match(/;\s*charset=([^;])(;|$)/);Pt&&(ut._charset=Pt[1].toLowerCase())}ut._charset||(ut._charset="utf-8")}};Lt(mt,At.Readable),mt.prototype._read=function(){var et=this,tt=et._resumeFetch;tt&&(et._resumeFetch=null,tt())},mt.prototype._onXHRProgress=function(){var et=this,tt=et._xhr,st=null;switch(et._mode){case"text:vbarray":if(tt.readyState!==It.DONE)break;try{st=new Bt.VBArray(tt.responseBody).toArray()}catch(pt){}if(st!==null){et.push(new xt(st));break}case"text":try{st=tt.responseText}catch(pt){et._mode="text:vbarray";break}if(st.length>et._pos){var rt=st.substr(et._pos);if(et._charset==="x-user-defined"){for(var ut=new xt(rt.length),ct=0;ct<rt.length;ct++)ut[ct]=255&rt.charCodeAt(ct);et.push(ut)}else et.push(rt,et._charset);et._pos=st.length}break;case"arraybuffer":if(tt.readyState!==It.DONE||!tt.response)break;st=tt.response,et.push(new xt(new Uint8Array(st)));break;case"moz-chunked-arraybuffer":if(st=tt.response,tt.readyState!==It.LOADING||!st)break;et.push(new xt(new Uint8Array(st)));break;case"ms-stream":if(st=tt.response,tt.readyState!==It.LOADING)break;var ft=new Bt.MSStreamReader;ft.onprogress=function(){ft.result.byteLength>et._pos&&(et.push(new xt(new Uint8Array(ft.result.slice(et._pos)))),et._pos=ft.result.byteLength)},ft.onload=function(){et.push(null)},ft.readAsArrayBuffer(st)}et._xhr.readyState===It.DONE&&et._mode!=="ms-stream"&&et.push(null)}}).call(this,gt("_process"),typeof Kt.g!="undefined"?Kt.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{},gt("buffer").Buffer)},{"./capability":197,_process:173,"babel-runtime/core-js/promise":24,buffer:38,inherits:162,"readable-stream":188}],200:[function(gt,Xt,Qt){"use strict";function kt(pt){if(!pt)return"utf8";for(var Pt;;)switch(pt){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return pt;default:if(Pt)return;pt=(""+pt).toLowerCase(),Pt=!0}}function Bt(pt){var Pt=kt(pt);if(typeof Pt!="string"&&(ct.isEncoding===ft||!ft(pt)))throw new Error("Unknown encoding: "+pt);return Pt||pt}function xt(pt){this.encoding=Bt(pt);var Pt;switch(this.encoding){case"utf16le":this.text=mt,this.end=et,Pt=4;break;case"utf8":this.fillLast=Lt,Pt=4;break;case"base64":this.text=tt,this.end=st,Pt=3;break;default:return this.write=rt,void(this.end=ut)}this.lastNeed=0,this.lastTotal=0,this.lastChar=ct.allocUnsafe(Pt)}function Ot(pt){return pt<=127?0:pt>>5==6?2:pt>>4==14?3:pt>>3==30?4:pt>>6==2?-1:-2}function Rt(pt,Pt,Dt){var Zt=Pt.length-1;if(Zt<Dt)return 0;var Ft=Ot(Pt[Zt]);return Ft>=0?(Ft>0&&(pt.lastNeed=Ft-1),Ft):--Zt<Dt||Ft===-2?0:(Ft=Ot(Pt[Zt]))>=0?(Ft>0&&(pt.lastNeed=Ft-2),Ft):--Zt<Dt||Ft===-2?0:(Ft=Ot(Pt[Zt]),Ft>=0?(Ft>0&&(Ft===2?Ft=0:pt.lastNeed=Ft-3),Ft):0)}function Ct(pt,Pt,Dt){if((192&Pt[0])!=128)return pt.lastNeed=0,"\u951F\uFFFD";if(pt.lastNeed>1&&Pt.length>1){if((192&Pt[1])!=128)return pt.lastNeed=1,"\u951F\uFFFD";if(pt.lastNeed>2&&Pt.length>2&&(192&Pt[2])!=128)return pt.lastNeed=2,"\u951F\uFFFD"}}function Lt(pt){var Pt=this.lastTotal-this.lastNeed,Dt=Ct(this,pt,Pt);return Dt!==void 0?Dt:this.lastNeed<=pt.length?(pt.copy(this.lastChar,Pt,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(pt.copy(this.lastChar,Pt,0,pt.length),void(this.lastNeed-=pt.length))}function At(pt,Pt){var Dt=Rt(this,pt,Pt);if(!this.lastNeed)return pt.toString("utf8",Pt);this.lastTotal=Dt;var Zt=pt.length-(Dt-this.lastNeed);return pt.copy(this.lastChar,0,Zt),pt.toString("utf8",Pt,Zt)}function It(pt){var Pt=pt&&pt.length?this.write(pt):"";return this.lastNeed?Pt+"\u951F\uFFFD":Pt}function mt(pt,Pt){if((pt.length-Pt)%2==0){var Dt=pt.toString("utf16le",Pt);if(Dt){var Zt=Dt.charCodeAt(Dt.length-1);if(Zt>=55296&&Zt<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=pt[pt.length-2],this.lastChar[1]=pt[pt.length-1],Dt.slice(0,-1)}return Dt}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=pt[pt.length-1],pt.toString("utf16le",Pt,pt.length-1)}function et(pt){var Pt=pt&&pt.length?this.write(pt):"";if(this.lastNeed){var Dt=this.lastTotal-this.lastNeed;return Pt+this.lastChar.toString("utf16le",0,Dt)}return Pt}function tt(pt,Pt){var Dt=(pt.length-Pt)%3;return Dt===0?pt.toString("base64",Pt):(this.lastNeed=3-Dt,this.lastTotal=3,Dt===1?this.lastChar[0]=pt[pt.length-1]:(this.lastChar[0]=pt[pt.length-2],this.lastChar[1]=pt[pt.length-1]),pt.toString("base64",Pt,pt.length-Dt))}function st(pt){var Pt=pt&&pt.length?this.write(pt):"";return this.lastNeed?Pt+this.lastChar.toString("base64",0,3-this.lastNeed):Pt}function rt(pt){return pt.toString(this.encoding)}function ut(pt){return pt&&pt.length?this.write(pt):""}var ct=gt("safe-buffer").Buffer,ft=ct.isEncoding||function(pt){switch((pt=""+pt)&&pt.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};Qt.StringDecoder=xt,xt.prototype.write=function(pt){if(pt.length===0)return"";var Pt,Dt;if(this.lastNeed){if((Pt=this.fillLast(pt))===void 0)return"";Dt=this.lastNeed,this.lastNeed=0}else Dt=0;return Dt<pt.length?Pt?Pt+this.text(pt,Dt):this.text(pt,Dt):Pt||""},xt.prototype.end=It,xt.prototype.text=At,xt.prototype.fillLast=function(pt){if(this.lastNeed<=pt.length)return pt.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);pt.copy(this.lastChar,this.lastTotal-this.lastNeed,0,pt.length),this.lastNeed-=pt.length}},{"safe-buffer":193}],201:[function(gt,Xt,Qt){(function(kt,Bt){function xt(It,mt){this._id=It,this._clearFn=mt}var Ot=gt("process/browser.js").nextTick,Rt=Function.prototype.apply,Ct=Array.prototype.slice,Lt={},At=0;Qt.setTimeout=function(){return new xt(Rt.call(setTimeout,window,arguments),clearTimeout)},Qt.setInterval=function(){return new xt(Rt.call(setInterval,window,arguments),clearInterval)},Qt.clearTimeout=Qt.clearInterval=function(It){It.close()},xt.prototype.unref=xt.prototype.ref=function(){},xt.prototype.close=function(){this._clearFn.call(window,this._id)},Qt.enroll=function(It,mt){clearTimeout(It._idleTimeoutId),It._idleTimeout=mt},Qt.unenroll=function(It){clearTimeout(It._idleTimeoutId),It._idleTimeout=-1},Qt._unrefActive=Qt.active=function(It){clearTimeout(It._idleTimeoutId);var mt=It._idleTimeout;mt>=0&&(It._idleTimeoutId=setTimeout(function(){It._onTimeout&&It._onTimeout()},mt))},Qt.setImmediate=typeof kt=="function"?kt:function(It){var mt=At++,et=!(arguments.length<2)&&Ct.call(arguments,1);return Lt[mt]=!0,Ot(function(){Lt[mt]&&(et?It.apply(null,et):It.call(null),Qt.clearImmediate(mt))}),mt},Qt.clearImmediate=typeof Bt=="function"?Bt:function(It){delete Lt[It]}}).call(this,gt("timers").setImmediate,gt("timers").clearImmediate)},{"process/browser.js":173,timers:201}],202:[function(gt,Xt,Qt){var kt=gt("buffer").Buffer;Xt.exports=function(Bt){if(Bt instanceof Uint8Array){if(Bt.byteOffset===0&&Bt.byteLength===Bt.buffer.byteLength)return Bt.buffer;if(typeof Bt.buffer.slice=="function")return Bt.buffer.slice(Bt.byteOffset,Bt.byteOffset+Bt.byteLength)}if(kt.isBuffer(Bt)){for(var xt=new Uint8Array(Bt.length),Ot=Bt.length,Rt=0;Rt<Ot;Rt++)xt[Rt]=Bt[Rt];return xt.buffer}throw new Error("Argument must be a Buffer")}},{buffer:38}],203:[function(gt,Xt,Qt){"use strict";function kt(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function Bt(Ft,qt,te){if(Ft&&Lt.isObject(Ft)&&Ft instanceof kt)return Ft;var Gt=new kt;return Gt.parse(Ft,qt,te),Gt}function xt(Ft){return Lt.isString(Ft)&&(Ft=Bt(Ft)),Ft instanceof kt?Ft.format():kt.prototype.format.call(Ft)}function Ot(Ft,qt){return Bt(Ft,!1,!0).resolve(qt)}function Rt(Ft,qt){return Ft?Bt(Ft,!1,!0).resolveObject(qt):qt}var Ct=gt("punycode"),Lt=gt("./util");Qt.parse=Bt,Qt.resolve=Ot,Qt.resolveObject=Rt,Qt.format=xt,Qt.Url=kt;var At=/^([a-z0-9.+-]+:)/i,It=/:[0-9]*$/,mt=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,et=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],tt=["{","}","|","\\","^","`"].concat(et),st=["'"].concat(tt),rt=["%","/","?",";","#"].concat(st),ut=["/","?","#"],ct=/^[+a-z0-9A-Z_-]{0,63}$/,ft=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,pt={javascript:!0,"javascript:":!0},Pt={javascript:!0,"javascript:":!0},Dt={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Zt=gt("querystring");kt.prototype.parse=function(Ft,qt,te){if(!Lt.isString(Ft))throw new TypeError("Parameter 'url' must be a string, not "+typeof Ft);var Gt=Ft.indexOf("?"),ce=Gt!==-1&&Gt<Ft.indexOf("#")?"?":"#",ae=Ft.split(ce),xe=/\\/g;ae[0]=ae[0].replace(xe,"/"),Ft=ae.join(ce);var ye=Ft;if(ye=ye.trim(),!te&&Ft.split("#").length===1){var Te=mt.exec(ye);if(Te)return this.path=ye,this.href=ye,this.pathname=Te[1],Te[2]?(this.search=Te[2],this.query=qt?Zt.parse(this.search.substr(1)):this.search.substr(1)):qt&&(this.search="",this.query={}),this}var me=At.exec(ye);if(me){me=me[0];var He=me.toLowerCase();this.protocol=He,ye=ye.substr(me.length)}if(te||me||ye.match(/^\/\/[^@\/]+@[^@\/]+/)){var fe=ye.substr(0,2)==="//";!fe||me&&Pt[me]||(ye=ye.substr(2),this.slashes=!0)}if(!Pt[me]&&(fe||me&&!Dt[me])){for(var $t=-1,ie=0;ie<ut.length;ie++){var ue=ye.indexOf(ut[ie]);ue!==-1&&($t===-1||ue<$t)&&($t=ue)}var ge,he;he=$t===-1?ye.lastIndexOf("@"):ye.lastIndexOf("@",$t),he!==-1&&(ge=ye.slice(0,he),ye=ye.slice(he+1),this.auth=decodeURIComponent(ge)),$t=-1;for(var ie=0;ie<rt.length;ie++){var ue=ye.indexOf(rt[ie]);ue!==-1&&($t===-1||ue<$t)&&($t=ue)}$t===-1&&($t=ye.length),this.host=ye.slice(0,$t),ye=ye.slice($t),this.parseHost(),this.hostname=this.hostname||"";var De=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!De)for(var Ne=this.hostname.split(/\./),ie=0,$e=Ne.length;ie<$e;ie++){var Re=Ne[ie];if(Re&&!Re.match(ct)){for(var tn="",Me=0,Oe=Re.length;Me<Oe;Me++)Re.charCodeAt(Me)>127?tn+="x":tn+=Re[Me];if(!tn.match(ct)){var Fe=Ne.slice(0,ie),le=Ne.slice(ie+1),Tt=Re.match(ft);Tt&&(Fe.push(Tt[1]),le.unshift(Tt[2])),le.length&&(ye="/"+le.join(".")+ye),this.hostname=Fe.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),De||(this.hostname=Ct.toASCII(this.hostname));var bt=this.port?":"+this.port:"",_t=this.hostname||"";this.host=_t+bt,this.href+=this.host,De&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),ye[0]!=="/"&&(ye="/"+ye))}if(!pt[He])for(var ie=0,$e=st.length;ie<$e;ie++){var Yt=st[ie];if(ye.indexOf(Yt)!==-1){var Mt=encodeURIComponent(Yt);Mt===Yt&&(Mt=escape(Yt)),ye=ye.split(Yt).join(Mt)}}var Ut=ye.indexOf("#");Ut!==-1&&(this.hash=ye.substr(Ut),ye=ye.slice(0,Ut));var St=ye.indexOf("?");if(St!==-1?(this.search=ye.substr(St),this.query=ye.substr(St+1),qt&&(this.query=Zt.parse(this.query)),ye=ye.slice(0,St)):qt&&(this.search="",this.query={}),ye&&(this.pathname=ye),Dt[He]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var bt=this.pathname||"",wt=this.search||"";this.path=bt+wt}return this.href=this.format(),this},kt.prototype.format=function(){var Ft=this.auth||"";Ft&&(Ft=encodeURIComponent(Ft),Ft=Ft.replace(/%3A/i,":"),Ft+="@");var qt=this.protocol||"",te=this.pathname||"",Gt=this.hash||"",ce=!1,ae="";this.host?ce=Ft+this.host:this.hostname&&(ce=Ft+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(ce+=":"+this.port)),this.query&&Lt.isObject(this.query)&&Object.keys(this.query).length&&(ae=Zt.stringify(this.query));var xe=this.search||ae&&"?"+ae||"";return qt&&qt.substr(-1)!==":"&&(qt+=":"),this.slashes||(!qt||Dt[qt])&&ce!==!1?(ce="//"+(ce||""),te&&te.charAt(0)!=="/"&&(te="/"+te)):ce||(ce=""),Gt&&Gt.charAt(0)!=="#"&&(Gt="#"+Gt),xe&&xe.charAt(0)!=="?"&&(xe="?"+xe),te=te.replace(/[?#]/g,function(ye){return encodeURIComponent(ye)}),xe=xe.replace("#","%23"),qt+ce+te+xe+Gt},kt.prototype.resolve=function(Ft){return this.resolveObject(Bt(Ft,!1,!0)).format()},kt.prototype.resolveObject=function(Ft){if(Lt.isString(Ft)){var qt=new kt;qt.parse(Ft,!1,!0),Ft=qt}for(var te=new kt,Gt=Object.keys(this),ce=0;ce<Gt.length;ce++){var ae=Gt[ce];te[ae]=this[ae]}if(te.hash=Ft.hash,Ft.href==="")return te.href=te.format(),te;if(Ft.slashes&&!Ft.protocol){for(var xe=Object.keys(Ft),ye=0;ye<xe.length;ye++){var Te=xe[ye];Te!=="protocol"&&(te[Te]=Ft[Te])}return Dt[te.protocol]&&te.hostname&&!te.pathname&&(te.path=te.pathname="/"),te.href=te.format(),te}if(Ft.protocol&&Ft.protocol!==te.protocol){if(!Dt[Ft.protocol]){for(var me=Object.keys(Ft),He=0;He<me.length;He++){var fe=me[He];te[fe]=Ft[fe]}return te.href=te.format(),te}if(te.protocol=Ft.protocol,Ft.host||Pt[Ft.protocol])te.pathname=Ft.pathname;else{for(var $e=(Ft.pathname||"").split("/");$e.length&&!(Ft.host=$e.shift()););Ft.host||(Ft.host=""),Ft.hostname||(Ft.hostname=""),$e[0]!==""&&$e.unshift(""),$e.length<2&&$e.unshift(""),te.pathname=$e.join("/")}if(te.search=Ft.search,te.query=Ft.query,te.host=Ft.host||"",te.auth=Ft.auth,te.hostname=Ft.hostname||Ft.host,te.port=Ft.port,te.pathname||te.search){var $t=te.pathname||"",ie=te.search||"";te.path=$t+ie}return te.slashes=te.slashes||Ft.slashes,te.href=te.format(),te}var ue=te.pathname&&te.pathname.charAt(0)==="/",ge=Ft.host||Ft.pathname&&Ft.pathname.charAt(0)==="/",he=ge||ue||te.host&&Ft.pathname,De=he,Ne=te.pathname&&te.pathname.split("/")||[],$e=Ft.pathname&&Ft.pathname.split("/")||[],Re=te.protocol&&!Dt[te.protocol];if(Re&&(te.hostname="",te.port=null,te.host&&(Ne[0]===""?Ne[0]=te.host:Ne.unshift(te.host)),te.host="",Ft.protocol&&(Ft.hostname=null,Ft.port=null,Ft.host&&($e[0]===""?$e[0]=Ft.host:$e.unshift(Ft.host)),Ft.host=null),he=he&&($e[0]===""||Ne[0]==="")),ge)te.host=Ft.host||Ft.host===""?Ft.host:te.host,te.hostname=Ft.hostname||Ft.hostname===""?Ft.hostname:te.hostname,te.search=Ft.search,te.query=Ft.query,Ne=$e;else if($e.length)Ne||(Ne=[]),Ne.pop(),Ne=Ne.concat($e),te.search=Ft.search,te.query=Ft.query;else if(!Lt.isNullOrUndefined(Ft.search)){if(Re){te.hostname=te.host=Ne.shift();var tn=!!(te.host&&te.host.indexOf("@")>0)&&te.host.split("@");tn&&(te.auth=tn.shift(),te.host=te.hostname=tn.shift())}return te.search=Ft.search,te.query=Ft.query,Lt.isNull(te.pathname)&&Lt.isNull(te.search)||(te.path=(te.pathname?te.pathname:"")+(te.search?te.search:"")),te.href=te.format(),te}if(!Ne.length)return te.pathname=null,te.search?te.path="/"+te.search:te.path=null,te.href=te.format(),te;for(var Me=Ne.slice(-1)[0],Oe=(te.host||Ft.host||Ne.length>1)&&(Me==="."||Me==="..")||Me==="",Fe=0,le=Ne.length;le>=0;le--)Me=Ne[le],Me==="."?Ne.splice(le,1):Me===".."?(Ne.splice(le,1),Fe++):Fe&&(Ne.splice(le,1),Fe--);if(!he&&!De)for(;Fe--;Fe)Ne.unshift("..");!he||Ne[0]===""||Ne[0]&&Ne[0].charAt(0)==="/"||Ne.unshift(""),Oe&&Ne.join("/").substr(-1)!=="/"&&Ne.push("");var Tt=Ne[0]===""||Ne[0]&&Ne[0].charAt(0)==="/";if(Re){te.hostname=te.host=Tt?"":Ne.length?Ne.shift():"";var tn=!!(te.host&&te.host.indexOf("@")>0)&&te.host.split("@");tn&&(te.auth=tn.shift(),te.host=te.hostname=tn.shift())}return he=he||te.host&&Ne.length,he&&!Tt&&Ne.unshift(""),Ne.length?te.pathname=Ne.join("/"):(te.pathname=null,te.path=null),Lt.isNull(te.pathname)&&Lt.isNull(te.search)||(te.path=(te.pathname?te.pathname:"")+(te.search?te.search:"")),te.auth=Ft.auth||te.auth,te.slashes=te.slashes||Ft.slashes,te.href=te.format(),te},kt.prototype.parseHost=function(){var Ft=this.host,qt=It.exec(Ft);qt&&(qt=qt[0],qt!==":"&&(this.port=qt.substr(1)),Ft=Ft.substr(0,Ft.length-qt.length)),Ft&&(this.hostname=Ft)}},{"./util":204,punycode:174,querystring:177}],204:[function(gt,Xt,Qt){"use strict";Xt.exports={isString:function(kt){return typeof kt=="string"},isObject:function(kt){return typeof kt=="object"&&kt!==null},isNull:function(kt){return kt===null},isNullOrUndefined:function(kt){return kt==null}}},{}],205:[function(gt,Xt,Qt){(function(kt){function Bt(Ot,Rt){function Ct(){if(!Lt){if(xt("throwDeprecation"))throw new Error(Rt);xt("traceDeprecation")?console.trace(Rt):console.warn(Rt),Lt=!0}return Ot.apply(this,arguments)}if(xt("noDeprecation"))return Ot;var Lt=!1;return Ct}function xt(Ot){try{if(!kt.localStorage)return!1}catch(Ct){return!1}var Rt=kt.localStorage[Ot];return Rt!=null&&String(Rt).toLowerCase()==="true"}Xt.exports=Bt}).call(this,typeof Kt.g!="undefined"?Kt.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],206:[function(gt,Xt,Qt){Xt.exports=function(kt){return kt&&typeof kt=="object"&&typeof kt.copy=="function"&&typeof kt.fill=="function"&&typeof kt.readUInt8=="function"}},{}],207:[function(gt,Xt,Qt){(function(kt,Bt){function xt(ie,ue){var ge={seen:[],stylize:Rt};return arguments.length>=3&&(ge.depth=arguments[2]),arguments.length>=4&&(ge.colors=arguments[3]),rt(ue)?ge.showHidden=ue:ue&&Qt._extend(ge,ue),Dt(ge.showHidden)&&(ge.showHidden=!1),Dt(ge.depth)&&(ge.depth=2),Dt(ge.colors)&&(ge.colors=!1),Dt(ge.customInspect)&&(ge.customInspect=!0),ge.colors&&(ge.stylize=Ot),Lt(ge,ie,ge.depth)}function Ot(ie,ue){var ge=xt.styles[ue];return ge?"\x1B["+xt.colors[ge][0]+"m"+ie+"\x1B["+xt.colors[ge][1]+"m":ie}function Rt(ie,ue){return ie}function Ct(ie){var ue={};return ie.forEach(function(ge,he){ue[ge]=!0}),ue}function Lt(ie,ue,ge){if(ie.customInspect&&ue&&Gt(ue.inspect)&&ue.inspect!==Qt.inspect&&(!ue.constructor||ue.constructor.prototype!==ue)){var he=ue.inspect(ge,ie);return pt(he)||(he=Lt(ie,he,ge)),he}var De=At(ie,ue);if(De)return De;var Ne=Object.keys(ue),$e=Ct(Ne);if(ie.showHidden&&(Ne=Object.getOwnPropertyNames(ue)),te(ue)&&(Ne.indexOf("message")>=0||Ne.indexOf("description")>=0))return It(ue);if(Ne.length===0){if(Gt(ue)){var Re=ue.name?": "+ue.name:"";return ie.stylize("[Function"+Re+"]","special")}if(Zt(ue))return ie.stylize(RegExp.prototype.toString.call(ue),"regexp");if(qt(ue))return ie.stylize(Date.prototype.toString.call(ue),"date");if(te(ue))return It(ue)}var tn="",Me=!1,Oe=["{","}"];if(st(ue)&&(Me=!0,Oe=["[","]"]),Gt(ue)&&(tn=" [Function"+(ue.name?": "+ue.name:"")+"]"),Zt(ue)&&(tn=" "+RegExp.prototype.toString.call(ue)),qt(ue)&&(tn=" "+Date.prototype.toUTCString.call(ue)),te(ue)&&(tn=" "+It(ue)),Ne.length===0&&(!Me||ue.length==0))return Oe[0]+tn+Oe[1];if(ge<0)return Zt(ue)?ie.stylize(RegExp.prototype.toString.call(ue),"regexp"):ie.stylize("[Object]","special");ie.seen.push(ue);var Fe;return Fe=Me?mt(ie,ue,ge,$e,Ne):Ne.map(function(le){return et(ie,ue,ge,$e,le,Me)}),ie.seen.pop(),tt(Fe,tn,Oe)}function At(ie,ue){if(Dt(ue))return ie.stylize("undefined","undefined");if(pt(ue)){var ge="'"+JSON.stringify(ue).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ie.stylize(ge,"string")}return ft(ue)?ie.stylize(""+ue,"number"):rt(ue)?ie.stylize(""+ue,"boolean"):ut(ue)?ie.stylize("null","null"):void 0}function It(ie){return"["+Error.prototype.toString.call(ie)+"]"}function mt(ie,ue,ge,he,De){for(var Ne=[],$e=0,Re=ue.length;$e<Re;++$e)Te(ue,String($e))?Ne.push(et(ie,ue,ge,he,String($e),!0)):Ne.push("");return De.forEach(function(tn){tn.match(/^\d+$/)||Ne.push(et(ie,ue,ge,he,tn,!0))}),Ne}function et(ie,ue,ge,he,De,Ne){var $e,Re,tn;if(tn=Object.getOwnPropertyDescriptor(ue,De)||{value:ue[De]},tn.get?Re=tn.set?ie.stylize("[Getter/Setter]","special"):ie.stylize("[Getter]","special"):tn.set&&(Re=ie.stylize("[Setter]","special")),Te(he,De)||($e="["+De+"]"),Re||(ie.seen.indexOf(tn.value)<0?(Re=ut(ge)?Lt(ie,tn.value,null):Lt(ie,tn.value,ge-1),Re.indexOf(`
|
|
|
`)>-1&&(Re=Ne?Re.split(`
|
|
|
`).map(function(Me){return" "+Me}).join(`
|
|
|
`).substr(2):`
|
|
|
`+Re.split(`
|
|
|
`).map(function(Me){return" "+Me}).join(`
|
|
|
`))):Re=ie.stylize("[Circular]","special")),Dt($e)){if(Ne&&De.match(/^\d+$/))return Re;$e=JSON.stringify(""+De),$e.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?($e=$e.substr(1,$e.length-2),$e=ie.stylize($e,"name")):($e=$e.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),$e=ie.stylize($e,"string"))}return $e+": "+Re}function tt(ie,ue,ge){var he=0;return ie.reduce(function(De,Ne){return he++,Ne.indexOf(`
|
|
|
`)>=0&&he++,De+Ne.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?ge[0]+(ue===""?"":ue+`
|
|
|
`)+" "+ie.join(`,
|
|
|
`)+" "+ge[1]:ge[0]+ue+" "+ie.join(", ")+" "+ge[1]}function st(ie){return Array.isArray(ie)}function rt(ie){return typeof ie=="boolean"}function ut(ie){return ie===null}function ct(ie){return ie==null}function ft(ie){return typeof ie=="number"}function pt(ie){return typeof ie=="string"}function Pt(ie){return typeof ie=="symbol"}function Dt(ie){return ie===void 0}function Zt(ie){return Ft(ie)&&ae(ie)==="[object RegExp]"}function Ft(ie){return typeof ie=="object"&&ie!==null}function qt(ie){return Ft(ie)&&ae(ie)==="[object Date]"}function te(ie){return Ft(ie)&&(ae(ie)==="[object Error]"||ie instanceof Error)}function Gt(ie){return typeof ie=="function"}function ce(ie){return ie===null||typeof ie=="boolean"||typeof ie=="number"||typeof ie=="string"||typeof ie=="symbol"||ie===void 0}function ae(ie){return Object.prototype.toString.call(ie)}function xe(ie){return ie<10?"0"+ie.toString(10):ie.toString(10)}function ye(){var ie=new Date,ue=[xe(ie.getHours()),xe(ie.getMinutes()),xe(ie.getSeconds())].join(":");return[ie.getDate(),$t[ie.getMonth()],ue].join(" ")}function Te(ie,ue){return Object.prototype.hasOwnProperty.call(ie,ue)}var me=/%[sdj%]/g;Qt.format=function(ie){if(!pt(ie)){for(var ue=[],ge=0;ge<arguments.length;ge++)ue.push(xt(arguments[ge]));return ue.join(" ")}for(var ge=1,he=arguments,De=he.length,Ne=String(ie).replace(me,function(tn){if(tn==="%%")return"%";if(ge>=De)return tn;switch(tn){case"%s":return String(he[ge++]);case"%d":return Number(he[ge++]);case"%j":try{return JSON.stringify(he[ge++])}catch(Me){return"[Circular]"}default:return tn}}),$e=he[ge];ge<De;$e=he[++ge])ut($e)||!Ft($e)?Ne+=" "+$e:Ne+=" "+xt($e);return Ne},Qt.deprecate=function(ie,ue){function ge(){if(!he){if(kt.throwDeprecation)throw new Error(ue);kt.traceDeprecation?console.trace(ue):console.error(ue),he=!0}return ie.apply(this,arguments)}if(Dt(Bt.process))return function(){return Qt.deprecate(ie,ue).apply(this,arguments)};if(kt.noDeprecation===!0)return ie;var he=!1;return ge};var He,fe={};Qt.debuglog=function(ie){if(Dt(He)&&(He=kt.env.NODE_DEBUG||""),ie=ie.toUpperCase(),!fe[ie])if(new RegExp("\\b"+ie+"\\b","i").test(He)){var ue=kt.pid;fe[ie]=function(){var ge=Qt.format.apply(Qt,arguments);console.error("%s %d: %s",ie,ue,ge)}}else fe[ie]=function(){};return fe[ie]},Qt.inspect=xt,xt.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},xt.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},Qt.isArray=st,Qt.isBoolean=rt,Qt.isNull=ut,Qt.isNullOrUndefined=ct,Qt.isNumber=ft,Qt.isString=pt,Qt.isSymbol=Pt,Qt.isUndefined=Dt,Qt.isRegExp=Zt,Qt.isObject=Ft,Qt.isDate=qt,Qt.isError=te,Qt.isFunction=Gt,Qt.isPrimitive=ce,Qt.isBuffer=gt("./support/isBuffer");var $t=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];Qt.log=function(){console.log("%s - %s",ye(),Qt.format.apply(Qt,arguments))},Qt.inherits=gt("inherits"),Qt._extend=function(ie,ue){if(!ue||!Ft(ue))return ie;for(var ge=Object.keys(ue),he=ge.length;he--;)ie[ge[he]]=ue[ge[he]];return ie}}).call(this,gt("_process"),typeof Kt.g!="undefined"?Kt.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":206,_process:173,inherits:162}],208:[function(gt,Xt,Qt){"use strict";(function(){Qt.stripBOM=function(kt){return kt[0]==="\uFEFF"?kt.substring(1):kt}}).call(void 0)},{}],209:[function(gt,Xt,Qt){"use strict";function kt(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}}var Bt=gt("babel-runtime/helpers/typeof"),xt=kt(Bt),Ot=gt("babel-runtime/core-js/object/keys"),Rt=kt(Ot);(function(){var Ct,Lt,At,It,mt,et={}.hasOwnProperty;Ct=gt("xmlbuilder"),Lt=gt("./defaults").defaults,It=function(tt){return typeof tt=="string"&&(tt.indexOf("&")>=0||tt.indexOf(">")>=0||tt.indexOf("<")>=0)},mt=function(tt){return"<![CDATA["+At(tt)+"]]>"},At=function(tt){return tt.replace("]]>","]]]]><![CDATA[>")},Qt.Builder=function(){function tt(st){var rt,ut,ct;this.options={},ut=Lt[.2];for(rt in ut)et.call(ut,rt)&&(ct=ut[rt],this.options[rt]=ct);for(rt in st)et.call(st,rt)&&(ct=st[rt],this.options[rt]=ct)}return tt.prototype.buildObject=function(st){var rt,ut,ct,ft,pt;return rt=this.options.attrkey,ut=this.options.charkey,(0,Rt.default)(st).length===1&&this.options.rootName===Lt[.2].rootName?(pt=(0,Rt.default)(st)[0],st=st[pt]):pt=this.options.rootName,ct=function(Pt){return function(Dt,Zt){var Ft,qt,te,Gt,ce,ae;if((Zt===void 0?"undefined":(0,xt.default)(Zt))!=="object")Pt.options.cdata&&It(Zt)?Dt.raw(mt(Zt)):Dt.txt(Zt);else if(Array.isArray(Zt)){for(Gt in Zt)if(et.call(Zt,Gt)){qt=Zt[Gt];for(ce in qt)te=qt[ce],Dt=ct(Dt.ele(ce),te).up()}}else for(ce in Zt)if(et.call(Zt,ce))if(qt=Zt[ce],ce===rt){if((qt===void 0?"undefined":(0,xt.default)(qt))==="object")for(Ft in qt)ae=qt[Ft],Dt=Dt.att(Ft,ae)}else if(ce===ut)Dt=Pt.options.cdata&&It(qt)?Dt.raw(mt(qt)):Dt.txt(qt);else if(Array.isArray(qt))for(Gt in qt)et.call(qt,Gt)&&(te=qt[Gt],Dt=typeof te=="string"?Pt.options.cdata&&It(te)?Dt.ele(ce).raw(mt(te)).up():Dt.ele(ce,te).up():ct(Dt.ele(ce),te).up());else(qt===void 0?"undefined":(0,xt.default)(qt))==="object"?Dt=ct(Dt.ele(ce),qt).up():typeof qt=="string"&&Pt.options.cdata&&It(qt)?Dt=Dt.ele(ce).raw(mt(qt)).up():(qt==null&&(qt=""),Dt=Dt.ele(ce,qt.toString()).up());return Dt}}(this),ft=Ct.create(pt,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),ct(ft,st).end(this.options.renderOpts)},tt}()}).call(void 0)},{"./defaults":210,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,xmlbuilder:235}],210:[function(gt,Xt,Qt){"use strict";(function(){Qt.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:`
|
|
|
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(void 0)},{}],211:[function(gt,Xt,Qt){"use strict";function kt(At){return At&&At.__esModule?At:{default:At}}var Bt=gt("babel-runtime/core-js/object/get-own-property-names"),xt=kt(Bt),Ot=gt("babel-runtime/core-js/object/keys"),Rt=kt(Ot),Ct=gt("babel-runtime/helpers/typeof"),Lt=kt(Ct);(function(){var At,It,mt,et,tt,st,rt,ut,ct=function(Pt,Dt){return function(){return Pt.apply(Dt,arguments)}},ft=function(Pt,Dt){function Zt(){this.constructor=Pt}for(var Ft in Dt)pt.call(Dt,Ft)&&(Pt[Ft]=Dt[Ft]);return Zt.prototype=Dt.prototype,Pt.prototype=new Zt,Pt.__super__=Dt.prototype,Pt},pt={}.hasOwnProperty;rt=gt("sax"),mt=gt("events"),At=gt("./bom"),st=gt("./processors"),ut=gt("timers").setImmediate,It=gt("./defaults").defaults,et=function(Pt){return(Pt===void 0?"undefined":(0,Lt.default)(Pt))==="object"&&Pt!=null&&(0,Rt.default)(Pt).length===0},tt=function(Pt,Dt,Zt){var Ft,qt,te;for(Ft=0,qt=Pt.length;Ft<qt;Ft++)te=Pt[Ft],Dt=te(Dt,Zt);return Dt},Qt.Parser=function(Pt){function Dt(Zt){this.parseString=ct(this.parseString,this),this.reset=ct(this.reset,this),this.assignOrPush=ct(this.assignOrPush,this),this.processAsync=ct(this.processAsync,this);var Ft,qt,te;if(!(this instanceof Qt.Parser))return new Qt.Parser(Zt);this.options={},qt=It[.2];for(Ft in qt)pt.call(qt,Ft)&&(te=qt[Ft],this.options[Ft]=te);for(Ft in Zt)pt.call(Zt,Ft)&&(te=Zt[Ft],this.options[Ft]=te);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(st.normalize)),this.reset()}return ft(Dt,Pt),Dt.prototype.processAsync=function(){var Zt,Ft;try{return this.remaining.length<=this.options.chunkSize?(Zt=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(Zt),this.saxParser.close()):(Zt=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(Zt),ut(this.processAsync))}catch(qt){if(Ft=qt,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(Ft)}},Dt.prototype.assignOrPush=function(Zt,Ft,qt){return Ft in Zt?(Zt[Ft]instanceof Array||(Zt[Ft]=[Zt[Ft]]),Zt[Ft].push(qt)):this.options.explicitArray?Zt[Ft]=[qt]:Zt[Ft]=qt},Dt.prototype.reset=function(){var Zt,Ft,qt,te;return this.removeAllListeners(),this.saxParser=rt.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=function(Gt){return function(ce){if(Gt.saxParser.resume(),!Gt.saxParser.errThrown)return Gt.saxParser.errThrown=!0,Gt.emit("error",ce)}}(this),this.saxParser.onend=function(Gt){return function(){if(!Gt.saxParser.ended)return Gt.saxParser.ended=!0,Gt.emit("end",Gt.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,te=[],Zt=this.options.attrkey,Ft=this.options.charkey,this.saxParser.onopentag=function(Gt){return function(ce){var ae,xe,ye,Te,me;if(ye={},ye[Ft]="",!Gt.options.ignoreAttrs){me=ce.attributes;for(ae in me)pt.call(me,ae)&&(Zt in ye||Gt.options.mergeAttrs||(ye[Zt]={}),xe=Gt.options.attrValueProcessors?tt(Gt.options.attrValueProcessors,ce.attributes[ae],ae):ce.attributes[ae],Te=Gt.options.attrNameProcessors?tt(Gt.options.attrNameProcessors,ae):ae,Gt.options.mergeAttrs?Gt.assignOrPush(ye,Te,xe):ye[Zt][Te]=xe)}return ye["#name"]=Gt.options.tagNameProcessors?tt(Gt.options.tagNameProcessors,ce.name):ce.name,Gt.options.xmlns&&(ye[Gt.options.xmlnskey]={uri:ce.uri,local:ce.local}),te.push(ye)}}(this),this.saxParser.onclosetag=function(Gt){return function(){var ce,ae,xe,ye,Te,me,He,fe,$t,ie;if(me=te.pop(),Te=me["#name"],Gt.options.explicitChildren&&Gt.options.preserveChildrenOrder||delete me["#name"],me.cdata===!0&&(ce=me.cdata,delete me.cdata),$t=te[te.length-1],me[Ft].match(/^\s*$/)&&!ce?(ae=me[Ft],delete me[Ft]):(Gt.options.trim&&(me[Ft]=me[Ft].trim()),Gt.options.normalize&&(me[Ft]=me[Ft].replace(/\s{2,}/g," ").trim()),me[Ft]=Gt.options.valueProcessors?tt(Gt.options.valueProcessors,me[Ft],Te):me[Ft],(0,Rt.default)(me).length===1&&Ft in me&&!Gt.EXPLICIT_CHARKEY&&(me=me[Ft])),et(me)&&(me=Gt.options.emptyTag!==""?Gt.options.emptyTag:ae),Gt.options.validator!=null&&(ie="/"+function(){var ue,ge,he;for(he=[],ue=0,ge=te.length;ue<ge;ue++)ye=te[ue],he.push(ye["#name"]);return he}().concat(Te).join("/"),function(){var ue;try{me=Gt.options.validator(ie,$t&&$t[Te],me)}catch(ge){return ue=ge,Gt.emit("error",ue)}}()),Gt.options.explicitChildren&&!Gt.options.mergeAttrs&&(me===void 0?"undefined":(0,Lt.default)(me))==="object")if(Gt.options.preserveChildrenOrder){if($t){$t[Gt.options.childkey]=$t[Gt.options.childkey]||[],He={};for(xe in me)pt.call(me,xe)&&(He[xe]=me[xe]);$t[Gt.options.childkey].push(He),delete me["#name"],(0,Rt.default)(me).length===1&&Ft in me&&!Gt.EXPLICIT_CHARKEY&&(me=me[Ft])}}else ye={},Gt.options.attrkey in me&&(ye[Gt.options.attrkey]=me[Gt.options.attrkey],delete me[Gt.options.attrkey]),!Gt.options.charsAsChildren&&Gt.options.charkey in me&&(ye[Gt.options.charkey]=me[Gt.options.charkey],delete me[Gt.options.charkey]),(0,xt.default)(me).length>0&&(ye[Gt.options.childkey]=me),me=ye;return te.length>0?Gt.assignOrPush($t,Te,me):(Gt.options.explicitRoot&&(fe=me,me={},me[Te]=fe),Gt.resultObject=me,Gt.saxParser.ended=!0,Gt.emit("end",Gt.resultObject))}}(this),qt=function(Gt){return function(ce){var ae,xe;if(xe=te[te.length-1])return xe[Ft]+=ce,Gt.options.explicitChildren&&Gt.options.preserveChildrenOrder&&Gt.options.charsAsChildren&&(Gt.options.includeWhiteChars||ce.replace(/\\n/g,"").trim()!=="")&&(xe[Gt.options.childkey]=xe[Gt.options.childkey]||[],ae={"#name":"__text__"},ae[Ft]=ce,Gt.options.normalize&&(ae[Ft]=ae[Ft].replace(/\s{2,}/g," ").trim()),xe[Gt.options.childkey].push(ae)),xe}}(this),this.saxParser.ontext=qt,this.saxParser.oncdata=function(Gt){return function(ce){var ae;if(ae=qt(ce))return ae.cdata=!0}}()},Dt.prototype.parseString=function(Zt,Ft){var qt;Ft!=null&&typeof Ft=="function"&&(this.on("end",function(te){return this.reset(),Ft(null,te)}),this.on("error",function(te){return this.reset(),Ft(te)}));try{return Zt=Zt.toString(),Zt.trim()===""?(this.emit("end",null),!0):(Zt=At.stripBOM(Zt),this.options.async?(this.remaining=Zt,ut(this.processAsync),this.saxParser):this.saxParser.write(Zt).close())}catch(te){if(qt=te,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",qt),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw qt}},Dt}(mt.EventEmitter),Qt.parseString=function(Pt,Dt,Zt){var Ft,qt,te;return Zt!=null?(typeof Zt=="function"&&(Ft=Zt),(Dt===void 0?"undefined":(0,Lt.default)(Dt))==="object"&&(qt=Dt)):(typeof Dt=="function"&&(Ft=Dt),qt={}),te=new Qt.Parser(qt),te.parseString(Pt,Ft)}}).call(void 0)},{"./bom":208,"./defaults":210,"./processors":212,"babel-runtime/core-js/object/get-own-property-names":21,"babel-runtime/core-js/object/keys":23,"babel-runtime/helpers/typeof":32,events:158,sax:194,timers:201}],212:[function(gt,Xt,Qt){"use strict";(function(){var kt;kt=new RegExp(/(?!xmlns)^.*:/),Qt.normalize=function(Bt){return Bt.toLowerCase()},Qt.firstCharLowerCase=function(Bt){return Bt.charAt(0).toLowerCase()+Bt.slice(1)},Qt.stripPrefix=function(Bt){return Bt.replace(kt,"")},Qt.parseNumbers=function(Bt){return isNaN(Bt)||(Bt=Bt%1==0?parseInt(Bt,10):parseFloat(Bt)),Bt},Qt.parseBooleans=function(Bt){return/^(?:true|false)$/i.test(Bt)&&(Bt=Bt.toLowerCase()==="true"),Bt}}).call(void 0)},{}],213:[function(gt,Xt,Qt){"use strict";(function(){var kt,Bt,xt,Ot,Rt=function(Lt,At){function It(){this.constructor=Lt}for(var mt in At)Ct.call(At,mt)&&(Lt[mt]=At[mt]);return It.prototype=At.prototype,Lt.prototype=new It,Lt.__super__=At.prototype,Lt},Ct={}.hasOwnProperty;Bt=gt("./defaults"),kt=gt("./builder"),xt=gt("./parser"),Ot=gt("./processors"),Qt.defaults=Bt.defaults,Qt.processors=Ot,Qt.ValidationError=function(Lt){function At(It){this.message=It}return Rt(At,Lt),At}(Error),Qt.Builder=kt.Builder,Qt.Parser=xt.Parser,Qt.parseString=xt.parseString}).call(void 0)},{"./builder":209,"./defaults":210,"./parser":211,"./processors":212}],214:[function(gt,Xt,Qt){"use strict";function kt(At){return At&&At.__esModule?At:{default:At}}var Bt=gt("babel-runtime/core-js/object/get-prototype-of"),xt=kt(Bt),Ot=gt("babel-runtime/helpers/typeof"),Rt=kt(Ot),Ct=gt("babel-runtime/core-js/object/assign"),Lt=kt(Ct);(function(){var At,It,mt,et,tt,st,rt=[].slice,ut={}.hasOwnProperty;At=function(){var ct,ft,pt,Pt,Dt,Zt;if(Zt=arguments[0],Dt=2<=arguments.length?rt.call(arguments,1):[],et(Lt.default))Lt.default.apply(null,arguments);else for(ct=0,pt=Dt.length;ct<pt;ct++)if((Pt=Dt[ct])!=null)for(ft in Pt)ut.call(Pt,ft)&&(Zt[ft]=Pt[ft]);return Zt},et=function(ct){return!!ct&&Object.prototype.toString.call(ct)==="[object Function]"},tt=function(ct){var ft;return!!ct&&((ft=ct===void 0?"undefined":(0,Rt.default)(ct))==="function"||ft==="object")},It=function(ct){return et(Array.isArray)?Array.isArray(ct):Object.prototype.toString.call(ct)==="[object Array]"},mt=function(ct){var ft;if(It(ct))return!ct.length;for(ft in ct)if(ut.call(ct,ft))return!1;return!0},st=function(ct){var ft,pt;return tt(ct)&&(pt=(0,xt.default)(ct))&&(ft=pt.constructor)&&typeof ft=="function"&&ft instanceof ft&&Function.prototype.toString.call(ft)===Function.prototype.toString.call(Object)},Xt.exports.assign=At,Xt.exports.isFunction=et,Xt.exports.isObject=tt,Xt.exports.isArray=It,Xt.exports.isEmpty=mt,Xt.exports.isPlainObject=st}).call(void 0)},{"babel-runtime/core-js/object/assign":18,"babel-runtime/core-js/object/get-prototype-of":22,"babel-runtime/helpers/typeof":32}],215:[function(gt,Xt,Qt){"use strict";var kt=gt("babel-runtime/core-js/object/create"),Bt=function(xt){return xt&&xt.__esModule?xt:{default:xt}}(kt);(function(){Xt.exports=function(){function xt(Ot,Rt,Ct){if(this.options=Ot.options,this.stringify=Ot.stringify,Rt==null)throw new Error("Missing attribute name of element "+Ot.name);if(Ct==null)throw new Error("Missing attribute value for attribute "+Rt+" of element "+Ot.name);this.name=this.stringify.attName(Rt),this.value=this.stringify.attValue(Ct)}return xt.prototype.clone=function(){return(0,Bt.default)(this)},xt.prototype.toString=function(Ot){return this.options.writer.set(Ot).attribute(this)},xt}()}).call(void 0)},{"babel-runtime/core-js/object/create":19}],216:[function(gt,Xt,Qt){"use strict";var kt=gt("babel-runtime/core-js/object/create"),Bt=function(xt){return xt&&xt.__esModule?xt:{default:xt}}(kt);(function(){var xt,Ot=function(Ct,Lt){function At(){this.constructor=Ct}for(var It in Lt)Rt.call(Lt,It)&&(Ct[It]=Lt[It]);return At.prototype=Lt.prototype,Ct.prototype=new At,Ct.__super__=Lt.prototype,Ct},Rt={}.hasOwnProperty;xt=gt("./XMLNode"),Xt.exports=function(Ct){function Lt(At,It){if(Lt.__super__.constructor.call(this,At),It==null)throw new Error("Missing CDATA text");this.text=this.stringify.cdata(It)}return Ot(Lt,Ct),Lt.prototype.clone=function(){return(0,Bt.default)(this)},Lt.prototype.toString=function(At){return this.options.writer.set(At).cdata(this)},Lt}(xt)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],217:[function(gt,Xt,Qt){"use strict";var kt=gt("babel-runtime/core-js/object/create"),Bt=function(xt){return xt&&xt.__esModule?xt:{default:xt}}(kt);(function(){var xt,Ot=function(Ct,Lt){function At(){this.constructor=Ct}for(var It in Lt)Rt.call(Lt,It)&&(Ct[It]=Lt[It]);return At.prototype=Lt.prototype,Ct.prototype=new At,Ct.__super__=Lt.prototype,Ct},Rt={}.hasOwnProperty;xt=gt("./XMLNode"),Xt.exports=function(Ct){function Lt(At,It){if(Lt.__super__.constructor.call(this,At),It==null)throw new Error("Missing comment text");this.text=this.stringify.comment(It)}return Ot(Lt,Ct),Lt.prototype.clone=function(){return(0,Bt.default)(this)},Lt.prototype.toString=function(At){return this.options.writer.set(At).comment(this)},Lt}(xt)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],218:[function(gt,Xt,Qt){"use strict";(function(){var kt,Bt=function(Ot,Rt){function Ct(){this.constructor=Ot}for(var Lt in Rt)xt.call(Rt,Lt)&&(Ot[Lt]=Rt[Lt]);return Ct.prototype=Rt.prototype,Ot.prototype=new Ct,Ot.__super__=Rt.prototype,Ot},xt={}.hasOwnProperty;kt=gt("./XMLNode"),Xt.exports=function(Ot){function Rt(Ct,Lt,At,It,mt,et){if(Rt.__super__.constructor.call(this,Ct),Lt==null)throw new Error("Missing DTD element name");if(At==null)throw new Error("Missing DTD attribute name");if(!It)throw new Error("Missing DTD attribute type");if(!mt)throw new Error("Missing DTD attribute default");if(mt.indexOf("#")!==0&&(mt="#"+mt),!mt.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT");if(et&&!mt.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT");this.elementName=this.stringify.eleName(Lt),this.attributeName=this.stringify.attName(At),this.attributeType=this.stringify.dtdAttType(It),this.defaultValue=this.stringify.dtdAttDefault(et),this.defaultValueType=mt}return Bt(Rt,Ot),Rt.prototype.toString=function(Ct){return this.options.writer.set(Ct).dtdAttList(this)},Rt}(kt)}).call(void 0)},{"./XMLNode":227}],219:[function(gt,Xt,Qt){"use strict";(function(){var kt,Bt=function(Ot,Rt){function Ct(){this.constructor=Ot}for(var Lt in Rt)xt.call(Rt,Lt)&&(Ot[Lt]=Rt[Lt]);return Ct.prototype=Rt.prototype,Ot.prototype=new Ct,Ot.__super__=Rt.prototype,Ot},xt={}.hasOwnProperty;kt=gt("./XMLNode"),Xt.exports=function(Ot){function Rt(Ct,Lt,At){if(Rt.__super__.constructor.call(this,Ct),Lt==null)throw new Error("Missing DTD element name");At||(At="(#PCDATA)"),Array.isArray(At)&&(At="("+At.join(",")+")"),this.name=this.stringify.eleName(Lt),this.value=this.stringify.dtdElementValue(At)}return Bt(Rt,Ot),Rt.prototype.toString=function(Ct){return this.options.writer.set(Ct).dtdElement(this)},Rt}(kt)}).call(void 0)},{"./XMLNode":227}],220:[function(gt,Xt,Qt){"use strict";(function(){var kt,Bt,xt=function(Rt,Ct){function Lt(){this.constructor=Rt}for(var At in Ct)Ot.call(Ct,At)&&(Rt[At]=Ct[At]);return Lt.prototype=Ct.prototype,Rt.prototype=new Lt,Rt.__super__=Ct.prototype,Rt},Ot={}.hasOwnProperty;Bt=gt("./Utility").isObject,kt=gt("./XMLNode"),Xt.exports=function(Rt){function Ct(Lt,At,It,mt){if(Ct.__super__.constructor.call(this,Lt),It==null)throw new Error("Missing entity name");if(mt==null)throw new Error("Missing entity value");if(this.pe=!!At,this.name=this.stringify.eleName(It),Bt(mt)){if(!mt.pubID&&!mt.sysID)throw new Error("Public and/or system identifiers are required for an external entity");if(mt.pubID&&!mt.sysID)throw new Error("System identifier is required for a public external entity");if(mt.pubID!=null&&(this.pubID=this.stringify.dtdPubID(mt.pubID)),mt.sysID!=null&&(this.sysID=this.stringify.dtdSysID(mt.sysID)),mt.nData!=null&&(this.nData=this.stringify.dtdNData(mt.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity")}else this.value=this.stringify.dtdEntityValue(mt)}return xt(Ct,Rt),Ct.prototype.toString=function(Lt){return this.options.writer.set(Lt).dtdEntity(this)},Ct}(kt)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],221:[function(gt,Xt,Qt){"use strict";(function(){var kt,Bt=function(Ot,Rt){function Ct(){this.constructor=Ot}for(var Lt in Rt)xt.call(Rt,Lt)&&(Ot[Lt]=Rt[Lt]);return Ct.prototype=Rt.prototype,Ot.prototype=new Ct,Ot.__super__=Rt.prototype,Ot},xt={}.hasOwnProperty;kt=gt("./XMLNode"),Xt.exports=function(Ot){function Rt(Ct,Lt,At){if(Rt.__super__.constructor.call(this,Ct),Lt==null)throw new Error("Missing notation name");if(!At.pubID&&!At.sysID)throw new Error("Public or system identifiers are required for an external entity");this.name=this.stringify.eleName(Lt),At.pubID!=null&&(this.pubID=this.stringify.dtdPubID(At.pubID)),At.sysID!=null&&(this.sysID=this.stringify.dtdSysID(At.sysID))}return Bt(Rt,Ot),Rt.prototype.toString=function(Ct){return this.options.writer.set(Ct).dtdNotation(this)},Rt}(kt)}).call(void 0)},{"./XMLNode":227}],222:[function(gt,Xt,Qt){"use strict";(function(){var kt,Bt,xt=function(Rt,Ct){function Lt(){this.constructor=Rt}for(var At in Ct)Ot.call(Ct,At)&&(Rt[At]=Ct[At]);return Lt.prototype=Ct.prototype,Rt.prototype=new Lt,Rt.__super__=Ct.prototype,Rt},Ot={}.hasOwnProperty;Bt=gt("./Utility").isObject,kt=gt("./XMLNode"),Xt.exports=function(Rt){function Ct(Lt,At,It,mt){var et;Ct.__super__.constructor.call(this,Lt),Bt(At)&&(et=At,At=et.version,It=et.encoding,mt=et.standalone),At||(At="1.0"),this.version=this.stringify.xmlVersion(At),It!=null&&(this.encoding=this.stringify.xmlEncoding(It)),mt!=null&&(this.standalone=this.stringify.xmlStandalone(mt))}return xt(Ct,Rt),Ct.prototype.toString=function(Lt){return this.options.writer.set(Lt).declaration(this)},Ct}(kt)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],223:[function(gt,Xt,Qt){"use strict";(function(){var kt,Bt,xt,Ot,Rt,Ct,Lt=function(It,mt){function et(){this.constructor=It}for(var tt in mt)At.call(mt,tt)&&(It[tt]=mt[tt]);return et.prototype=mt.prototype,It.prototype=new et,It.__super__=mt.prototype,It},At={}.hasOwnProperty;Ct=gt("./Utility").isObject,Rt=gt("./XMLNode"),kt=gt("./XMLDTDAttList"),xt=gt("./XMLDTDEntity"),Bt=gt("./XMLDTDElement"),Ot=gt("./XMLDTDNotation"),Xt.exports=function(It){function mt(et,tt,st){var rt,ut;mt.__super__.constructor.call(this,et),this.documentObject=et,Ct(tt)&&(rt=tt,tt=rt.pubID,st=rt.sysID),st==null&&(ut=[tt,st],st=ut[0],tt=ut[1]),tt!=null&&(this.pubID=this.stringify.dtdPubID(tt)),st!=null&&(this.sysID=this.stringify.dtdSysID(st))}return Lt(mt,It),mt.prototype.element=function(et,tt){var st;return st=new Bt(this,et,tt),this.children.push(st),this},mt.prototype.attList=function(et,tt,st,rt,ut){var ct;return ct=new kt(this,et,tt,st,rt,ut),this.children.push(ct),this},mt.prototype.entity=function(et,tt){var st;return st=new xt(this,!1,et,tt),this.children.push(st),this},mt.prototype.pEntity=function(et,tt){var st;return st=new xt(this,!0,et,tt),this.children.push(st),this},mt.prototype.notation=function(et,tt){var st;return st=new Ot(this,et,tt),this.children.push(st),this},mt.prototype.toString=function(et){return this.options.writer.set(et).docType(this)},mt.prototype.ele=function(et,tt){return this.element(et,tt)},mt.prototype.att=function(et,tt,st,rt,ut){return this.attList(et,tt,st,rt,ut)},mt.prototype.ent=function(et,tt){return this.entity(et,tt)},mt.prototype.pent=function(et,tt){return this.pEntity(et,tt)},mt.prototype.not=function(et,tt){return this.notation(et,tt)},mt.prototype.up=function(){return this.root()||this.documentObject},mt}(Rt)}).call(void 0)},{"./Utility":214,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLNode":227}],224:[function(gt,Xt,Qt){"use strict";(function(){var kt,Bt,xt,Ot,Rt=function(Lt,At){function It(){this.constructor=Lt}for(var mt in At)Ct.call(At,mt)&&(Lt[mt]=At[mt]);return It.prototype=At.prototype,Lt.prototype=new It,Lt.__super__=At.prototype,Lt},Ct={}.hasOwnProperty;Ot=gt("./Utility").isPlainObject,kt=gt("./XMLNode"),xt=gt("./XMLStringifier"),Bt=gt("./XMLStringWriter"),Xt.exports=function(Lt){function At(It){At.__super__.constructor.call(this,null),It||(It={}),It.writer||(It.writer=new Bt),this.options=It,this.stringify=new xt(It),this.isDocument=!0}return Rt(At,Lt),At.prototype.end=function(It){var mt;return It?Ot(It)&&(mt=It,It=this.options.writer.set(mt)):It=this.options.writer,It.document(this)},At.prototype.toString=function(It){return this.options.writer.set(It).document(this)},At}(kt)}).call(void 0)},{"./Utility":214,"./XMLNode":227,"./XMLStringWriter":231,"./XMLStringifier":232}],225:[function(gt,Xt,Qt){"use strict";(function(){var kt,Bt,xt,Ot,Rt,Ct,Lt,At,It,mt,et,tt,st,rt,ut,ct,ft,pt,Pt,Dt={}.hasOwnProperty;Pt=gt("./Utility"),ft=Pt.isObject,ct=Pt.isFunction,pt=Pt.isPlainObject,mt=gt("./XMLElement"),Bt=gt("./XMLCData"),xt=gt("./XMLComment"),tt=gt("./XMLRaw"),ut=gt("./XMLText"),et=gt("./XMLProcessingInstruction"),At=gt("./XMLDeclaration"),It=gt("./XMLDocType"),Ot=gt("./XMLDTDAttList"),Ct=gt("./XMLDTDEntity"),Rt=gt("./XMLDTDElement"),Lt=gt("./XMLDTDNotation"),kt=gt("./XMLAttribute"),rt=gt("./XMLStringifier"),st=gt("./XMLStringWriter"),Xt.exports=function(){function Zt(Ft,qt,te){var Gt;Ft||(Ft={}),Ft.writer?pt(Ft.writer)&&(Gt=Ft.writer,Ft.writer=new st(Gt)):Ft.writer=new st(Ft),this.options=Ft,this.writer=Ft.writer,this.stringify=new rt(Ft),this.onDataCallback=qt||function(){},this.onEndCallback=te||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return Zt.prototype.node=function(Ft,qt,te){var Gt;if(Ft==null)throw new Error("Missing node name");if(this.root&&this.currentLevel===-1)throw new Error("Document can only have one root node");return this.openCurrent(),Ft=Ft.valueOf(),qt==null&&(qt={}),qt=qt.valueOf(),ft(qt)||(Gt=[qt,te],te=Gt[0],qt=Gt[1]),this.currentNode=new mt(this,Ft,qt),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,te!=null&&this.text(te),this},Zt.prototype.element=function(Ft,qt,te){return this.currentNode&&this.currentNode instanceof It?this.dtdElement.apply(this,arguments):this.node(Ft,qt,te)},Zt.prototype.attribute=function(Ft,qt){var te,Gt;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode");if(Ft!=null&&(Ft=Ft.valueOf()),ft(Ft))for(te in Ft)Dt.call(Ft,te)&&(Gt=Ft[te],this.attribute(te,Gt));else ct(qt)&&(qt=qt.apply()),this.options.skipNullAttributes&&qt==null||(this.currentNode.attributes[Ft]=new kt(this,Ft,qt));return this},Zt.prototype.text=function(Ft){var qt;return this.openCurrent(),qt=new ut(this,Ft),this.onData(this.writer.text(qt,this.currentLevel+1)),this},Zt.prototype.cdata=function(Ft){var qt;return this.openCurrent(),qt=new Bt(this,Ft),this.onData(this.writer.cdata(qt,this.currentLevel+1)),this},Zt.prototype.comment=function(Ft){var qt;return this.openCurrent(),qt=new xt(this,Ft),this.onData(this.writer.comment(qt,this.currentLevel+1)),this},Zt.prototype.raw=function(Ft){var qt;return this.openCurrent(),qt=new tt(this,Ft),this.onData(this.writer.raw(qt,this.currentLevel+1)),this},Zt.prototype.instruction=function(Ft,qt){var te,Gt,ce,ae,xe;if(this.openCurrent(),Ft!=null&&(Ft=Ft.valueOf()),qt!=null&&(qt=qt.valueOf()),Array.isArray(Ft))for(te=0,ae=Ft.length;te<ae;te++)Gt=Ft[te],this.instruction(Gt);else if(ft(Ft))for(Gt in Ft)Dt.call(Ft,Gt)&&(ce=Ft[Gt],this.instruction(Gt,ce));else ct(qt)&&(qt=qt.apply()),xe=new et(this,Ft,qt),this.onData(this.writer.processingInstruction(xe,this.currentLevel+1));return this},Zt.prototype.declaration=function(Ft,qt,te){var Gt;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node");return Gt=new At(this,Ft,qt,te),this.onData(this.writer.declaration(Gt,this.currentLevel+1)),this},Zt.prototype.doctype=function(Ft,qt,te){if(this.openCurrent(),Ft==null)throw new Error("Missing root node name");if(this.root)throw new Error("dtd() must come before the root node");return this.currentNode=new It(this,qt,te),this.currentNode.rootNodeName=Ft,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},Zt.prototype.dtdElement=function(Ft,qt){var te;return this.openCurrent(),te=new Rt(this,Ft,qt),this.onData(this.writer.dtdElement(te,this.currentLevel+1)),this},Zt.prototype.attList=function(Ft,qt,te,Gt,ce){var ae;return this.openCurrent(),ae=new Ot(this,Ft,qt,te,Gt,ce),this.onData(this.writer.dtdAttList(ae,this.currentLevel+1)),this},Zt.prototype.entity=function(Ft,qt){var te;return this.openCurrent(),te=new Ct(this,!1,Ft,qt),this.onData(this.writer.dtdEntity(te,this.currentLevel+1)),this},Zt.prototype.pEntity=function(Ft,qt){var te;return this.openCurrent(),te=new Ct(this,!0,Ft,qt),this.onData(this.writer.dtdEntity(te,this.currentLevel+1)),this},Zt.prototype.notation=function(Ft,qt){var te;return this.openCurrent(),te=new Lt(this,Ft,qt),this.onData(this.writer.dtdNotation(te,this.currentLevel+1)),this},Zt.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},Zt.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},Zt.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},Zt.prototype.openNode=function(Ft){if(!Ft.isOpen)return!this.root&&this.currentLevel===0&&Ft instanceof mt&&(this.root=Ft),this.onData(this.writer.openNode(Ft,this.currentLevel)),Ft.isOpen=!0},Zt.prototype.closeNode=function(Ft){if(!Ft.isClosed)return this.onData(this.writer.closeNode(Ft,this.currentLevel)),Ft.isClosed=!0},Zt.prototype.onData=function(Ft){return this.documentStarted=!0,this.onDataCallback(Ft)},Zt.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},Zt.prototype.ele=function(){return this.element.apply(this,arguments)},Zt.prototype.nod=function(Ft,qt,te){return this.node(Ft,qt,te)},Zt.prototype.txt=function(Ft){return this.text(Ft)},Zt.prototype.dat=function(Ft){return this.cdata(Ft)},Zt.prototype.com=function(Ft){return this.comment(Ft)},Zt.prototype.ins=function(Ft,qt){return this.instruction(Ft,qt)},Zt.prototype.dec=function(Ft,qt,te){return this.declaration(Ft,qt,te)},Zt.prototype.dtd=function(Ft,qt,te){return this.doctype(Ft,qt,te)},Zt.prototype.e=function(Ft,qt,te){return this.element(Ft,qt,te)},Zt.prototype.n=function(Ft,qt,te){return this.node(Ft,qt,te)},Zt.prototype.t=function(Ft){return this.text(Ft)},Zt.prototype.d=function(Ft){return this.cdata(Ft)},Zt.prototype.c=function(Ft){return this.comment(Ft)},Zt.prototype.r=function(Ft){return this.raw(Ft)},Zt.prototype.i=function(Ft,qt){return this.instruction(Ft,qt)},Zt.prototype.att=function(){return this.currentNode&&this.currentNode instanceof It?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Zt.prototype.a=function(){return this.currentNode&&this.currentNode instanceof It?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Zt.prototype.ent=function(Ft,qt){return this.entity(Ft,qt)},Zt.prototype.pent=function(Ft,qt){return this.pEntity(Ft,qt)},Zt.prototype.not=function(Ft,qt){return this.notation(Ft,qt)},Zt}()}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLStringWriter":231,"./XMLStringifier":232,"./XMLText":233}],226:[function(gt,Xt,Qt){"use strict";var kt=gt("babel-runtime/core-js/object/create"),Bt=function(xt){return xt&&xt.__esModule?xt:{default:xt}}(kt);(function(){var xt,Ot,Rt,Ct,Lt,At=function(mt,et){function tt(){this.constructor=mt}for(var st in et)It.call(et,st)&&(mt[st]=et[st]);return tt.prototype=et.prototype,mt.prototype=new tt,mt.__super__=et.prototype,mt},It={}.hasOwnProperty;Lt=gt("./Utility"),Ct=Lt.isObject,Rt=Lt.isFunction,Ot=gt("./XMLNode"),xt=gt("./XMLAttribute"),Xt.exports=function(mt){function et(tt,st,rt){if(et.__super__.constructor.call(this,tt),st==null)throw new Error("Missing element name");this.name=this.stringify.eleName(st),this.attributes={},rt!=null&&this.attribute(rt),tt.isDocument&&(this.isRoot=!0,this.documentObject=tt,tt.rootObject=this)}return At(et,mt),et.prototype.clone=function(){var tt,st,rt,ut;rt=(0,Bt.default)(this),rt.isRoot&&(rt.documentObject=null),rt.attributes={},ut=this.attributes;for(st in ut)It.call(ut,st)&&(tt=ut[st],rt.attributes[st]=tt.clone());return rt.children=[],this.children.forEach(function(ct){var ft;return ft=ct.clone(),ft.parent=rt,rt.children.push(ft)}),rt},et.prototype.attribute=function(tt,st){var rt,ut;if(tt!=null&&(tt=tt.valueOf()),Ct(tt))for(rt in tt)It.call(tt,rt)&&(ut=tt[rt],this.attribute(rt,ut));else Rt(st)&&(st=st.apply()),this.options.skipNullAttributes&&st==null||(this.attributes[tt]=new xt(this,tt,st));return this},et.prototype.removeAttribute=function(tt){var st,rt,ut;if(tt==null)throw new Error("Missing attribute name");if(tt=tt.valueOf(),Array.isArray(tt))for(rt=0,ut=tt.length;rt<ut;rt++)st=tt[rt],delete this.attributes[st];else delete this.attributes[tt];return this},et.prototype.toString=function(tt){return this.options.writer.set(tt).element(this)},et.prototype.att=function(tt,st){return this.attribute(tt,st)},et.prototype.a=function(tt,st){return this.attribute(tt,st)},et}(Ot)}).call(void 0)},{"./Utility":214,"./XMLAttribute":215,"./XMLNode":227,"babel-runtime/core-js/object/create":19}],227:[function(gt,Xt,Qt){"use strict";(function(){var kt,Bt,xt,Ot,Rt,Ct,Lt,At,It,mt,et,tt,st={}.hasOwnProperty;tt=gt("./Utility"),et=tt.isObject,mt=tt.isFunction,It=tt.isEmpty,Rt=null,kt=null,Bt=null,xt=null,Ot=null,Lt=null,At=null,Ct=null,Xt.exports=function(){function rt(ut){this.parent=ut,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],Rt||(Rt=gt("./XMLElement"),kt=gt("./XMLCData"),Bt=gt("./XMLComment"),xt=gt("./XMLDeclaration"),Ot=gt("./XMLDocType"),Lt=gt("./XMLRaw"),At=gt("./XMLText"),Ct=gt("./XMLProcessingInstruction"))}return rt.prototype.element=function(ut,ct,ft){var pt,Pt,Dt,Zt,Ft,qt,te,Gt,ce,ae;if(qt=null,ct==null&&(ct={}),ct=ct.valueOf(),et(ct)||(ce=[ct,ft],ft=ce[0],ct=ce[1]),ut!=null&&(ut=ut.valueOf()),Array.isArray(ut))for(Dt=0,te=ut.length;Dt<te;Dt++)Pt=ut[Dt],qt=this.element(Pt);else if(mt(ut))qt=this.element(ut.apply());else if(et(ut)){for(Ft in ut)if(st.call(ut,Ft))if(ae=ut[Ft],mt(ae)&&(ae=ae.apply()),et(ae)&&It(ae)&&(ae=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&Ft.indexOf(this.stringify.convertAttKey)===0)qt=this.attribute(Ft.substr(this.stringify.convertAttKey.length),ae);else if(!this.options.separateArrayItems&&Array.isArray(ae))for(Zt=0,Gt=ae.length;Zt<Gt;Zt++)Pt=ae[Zt],pt={},pt[Ft]=Pt,qt=this.element(pt);else et(ae)?(qt=this.element(Ft),qt.element(ae)):qt=this.element(Ft,ae)}else qt=!this.options.ignoreDecorators&&this.stringify.convertTextKey&&ut.indexOf(this.stringify.convertTextKey)===0?this.text(ft):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&ut.indexOf(this.stringify.convertCDataKey)===0?this.cdata(ft):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&ut.indexOf(this.stringify.convertCommentKey)===0?this.comment(ft):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&ut.indexOf(this.stringify.convertRawKey)===0?this.raw(ft):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&ut.indexOf(this.stringify.convertPIKey)===0?this.instruction(ut.substr(this.stringify.convertPIKey.length),ft):this.node(ut,ct,ft);if(qt==null)throw new Error("Could not create any elements with: "+ut);return qt},rt.prototype.insertBefore=function(ut,ct,ft){var pt,Pt,Dt;if(this.isRoot)throw new Error("Cannot insert elements at root level");return Pt=this.parent.children.indexOf(this),Dt=this.parent.children.splice(Pt),pt=this.parent.element(ut,ct,ft),Array.prototype.push.apply(this.parent.children,Dt),pt},rt.prototype.insertAfter=function(ut,ct,ft){var pt,Pt,Dt;if(this.isRoot)throw new Error("Cannot insert elements at root level");return Pt=this.parent.children.indexOf(this),Dt=this.parent.children.splice(Pt+1),pt=this.parent.element(ut,ct,ft),Array.prototype.push.apply(this.parent.children,Dt),pt},rt.prototype.remove=function(){var ut;if(this.isRoot)throw new Error("Cannot remove the root element");return ut=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[ut,ut-ut+1].concat([])),this.parent},rt.prototype.node=function(ut,ct,ft){var pt,Pt;return ut!=null&&(ut=ut.valueOf()),ct||(ct={}),ct=ct.valueOf(),et(ct)||(Pt=[ct,ft],ft=Pt[0],ct=Pt[1]),pt=new Rt(this,ut,ct),ft!=null&&pt.text(ft),this.children.push(pt),pt},rt.prototype.text=function(ut){var ct;return ct=new At(this,ut),this.children.push(ct),this},rt.prototype.cdata=function(ut){var ct;return ct=new kt(this,ut),this.children.push(ct),this},rt.prototype.comment=function(ut){var ct;return ct=new Bt(this,ut),this.children.push(ct),this},rt.prototype.commentBefore=function(ut){var ct,ft;return ct=this.parent.children.indexOf(this),ft=this.parent.children.splice(ct),this.parent.comment(ut),Array.prototype.push.apply(this.parent.children,ft),this},rt.prototype.commentAfter=function(ut){var ct,ft;return ct=this.parent.children.indexOf(this),ft=this.parent.children.splice(ct+1),this.parent.comment(ut),Array.prototype.push.apply(this.parent.children,ft),this},rt.prototype.raw=function(ut){var ct;return ct=new Lt(this,ut),this.children.push(ct),this},rt.prototype.instruction=function(ut,ct){var ft,pt,Pt,Dt,Zt;if(ut!=null&&(ut=ut.valueOf()),ct!=null&&(ct=ct.valueOf()),Array.isArray(ut))for(Dt=0,Zt=ut.length;Dt<Zt;Dt++)ft=ut[Dt],this.instruction(ft);else if(et(ut))for(ft in ut)st.call(ut,ft)&&(pt=ut[ft],this.instruction(ft,pt));else mt(ct)&&(ct=ct.apply()),Pt=new Ct(this,ut,ct),this.children.push(Pt);return this},rt.prototype.instructionBefore=function(ut,ct){var ft,pt;return ft=this.parent.children.indexOf(this),pt=this.parent.children.splice(ft),this.parent.instruction(ut,ct),Array.prototype.push.apply(this.parent.children,pt),this},rt.prototype.instructionAfter=function(ut,ct){var ft,pt;return ft=this.parent.children.indexOf(this),pt=this.parent.children.splice(ft+1),this.parent.instruction(ut,ct),Array.prototype.push.apply(this.parent.children,pt),this},rt.prototype.declaration=function(ut,ct,ft){var pt,Pt;return pt=this.document(),Pt=new xt(pt,ut,ct,ft),pt.children[0]instanceof xt?pt.children[0]=Pt:pt.children.unshift(Pt),pt.root()||pt},rt.prototype.doctype=function(ut,ct){var ft,pt,Pt,Dt,Zt,Ft,qt,te,Gt,ce;for(pt=this.document(),Pt=new Ot(pt,ut,ct),Gt=pt.children,Dt=Zt=0,qt=Gt.length;Zt<qt;Dt=++Zt)if((ft=Gt[Dt])instanceof Ot)return pt.children[Dt]=Pt,Pt;for(ce=pt.children,Dt=Ft=0,te=ce.length;Ft<te;Dt=++Ft)if(ft=ce[Dt],ft.isRoot)return pt.children.splice(Dt,0,Pt),Pt;return pt.children.push(Pt),Pt},rt.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},rt.prototype.root=function(){var ut;for(ut=this;ut;){if(ut.isDocument)return ut.rootObject;if(ut.isRoot)return ut;ut=ut.parent}},rt.prototype.document=function(){var ut;for(ut=this;ut;){if(ut.isDocument)return ut;ut=ut.parent}},rt.prototype.end=function(ut){return this.document().end(ut)},rt.prototype.prev=function(){var ut;if((ut=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node");return this.parent.children[ut-1]},rt.prototype.next=function(){var ut;if((ut=this.parent.children.indexOf(this))===-1||ut===this.parent.children.length-1)throw new Error("Already at the last node");return this.parent.children[ut+1]},rt.prototype.importDocument=function(ut){var ct;return ct=ut.root().clone(),ct.parent=this,ct.isRoot=!1,this.children.push(ct),this},rt.prototype.ele=function(ut,ct,ft){return this.element(ut,ct,ft)},rt.prototype.nod=function(ut,ct,ft){return this.node(ut,ct,ft)},rt.prototype.txt=function(ut){return this.text(ut)},rt.prototype.dat=function(ut){return this.cdata(ut)},rt.prototype.com=function(ut){return this.comment(ut)},rt.prototype.ins=function(ut,ct){return this.instruction(ut,ct)},rt.prototype.doc=function(){return this.document()},rt.prototype.dec=function(ut,ct,ft){return this.declaration(ut,ct,ft)},rt.prototype.dtd=function(ut,ct){return this.doctype(ut,ct)},rt.prototype.e=function(ut,ct,ft){return this.element(ut,ct,ft)},rt.prototype.n=function(ut,ct,ft){return this.node(ut,ct,ft)},rt.prototype.t=function(ut){return this.text(ut)},rt.prototype.d=function(ut){return this.cdata(ut)},rt.prototype.c=function(ut){return this.comment(ut)},rt.prototype.r=function(ut){return this.raw(ut)},rt.prototype.i=function(ut,ct){return this.instruction(ut,ct)},rt.prototype.u=function(){return this.up()},rt.prototype.importXMLBuilder=function(ut){return this.importDocument(ut)},rt}()}).call(void 0)},{"./Utility":214,"./XMLCData":216,"./XMLComment":217,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233}],228:[function(gt,Xt,Qt){"use strict";var kt=gt("babel-runtime/core-js/object/create"),Bt=function(xt){return xt&&xt.__esModule?xt:{default:xt}}(kt);(function(){var xt,Ot=function(Ct,Lt){function At(){this.constructor=Ct}for(var It in Lt)Rt.call(Lt,It)&&(Ct[It]=Lt[It]);return At.prototype=Lt.prototype,Ct.prototype=new At,Ct.__super__=Lt.prototype,Ct},Rt={}.hasOwnProperty;xt=gt("./XMLNode"),Xt.exports=function(Ct){function Lt(At,It,mt){if(Lt.__super__.constructor.call(this,At),It==null)throw new Error("Missing instruction target");this.target=this.stringify.insTarget(It),mt&&(this.value=this.stringify.insValue(mt))}return Ot(Lt,Ct),Lt.prototype.clone=function(){return(0,Bt.default)(this)},Lt.prototype.toString=function(At){return this.options.writer.set(At).processingInstruction(this)},Lt}(xt)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],229:[function(gt,Xt,Qt){"use strict";var kt=gt("babel-runtime/core-js/object/create"),Bt=function(xt){return xt&&xt.__esModule?xt:{default:xt}}(kt);(function(){var xt,Ot=function(Ct,Lt){function At(){this.constructor=Ct}for(var It in Lt)Rt.call(Lt,It)&&(Ct[It]=Lt[It]);return At.prototype=Lt.prototype,Ct.prototype=new At,Ct.__super__=Lt.prototype,Ct},Rt={}.hasOwnProperty;xt=gt("./XMLNode"),Xt.exports=function(Ct){function Lt(At,It){if(Lt.__super__.constructor.call(this,At),It==null)throw new Error("Missing raw text");this.value=this.stringify.raw(It)}return Ot(Lt,Ct),Lt.prototype.clone=function(){return(0,Bt.default)(this)},Lt.prototype.toString=function(At){return this.options.writer.set(At).raw(this)},Lt}(xt)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],230:[function(gt,Xt,Qt){"use strict";(function(){var kt,Bt,xt,Ot,Rt,Ct,Lt,At,It,mt,et,tt,st,rt=function(ct,ft){function pt(){this.constructor=ct}for(var Pt in ft)ut.call(ft,Pt)&&(ct[Pt]=ft[Pt]);return pt.prototype=ft.prototype,ct.prototype=new pt,ct.__super__=ft.prototype,ct},ut={}.hasOwnProperty;Lt=gt("./XMLDeclaration"),At=gt("./XMLDocType"),kt=gt("./XMLCData"),Bt=gt("./XMLComment"),It=gt("./XMLElement"),et=gt("./XMLRaw"),tt=gt("./XMLText"),mt=gt("./XMLProcessingInstruction"),xt=gt("./XMLDTDAttList"),Ot=gt("./XMLDTDElement"),Rt=gt("./XMLDTDEntity"),Ct=gt("./XMLDTDNotation"),st=gt("./XMLWriterBase"),Xt.exports=function(ct){function ft(pt,Pt){ft.__super__.constructor.call(this,Pt),this.stream=pt}return rt(ft,ct),ft.prototype.document=function(pt){var Pt,Dt,Zt,Ft,qt,te,Gt,ce;for(te=pt.children,Dt=0,Ft=te.length;Dt<Ft;Dt++)Pt=te[Dt],Pt.isLastRootNode=!1;for(pt.children[pt.children.length-1].isLastRootNode=!0,Gt=pt.children,ce=[],Zt=0,qt=Gt.length;Zt<qt;Zt++)switch(Pt=Gt[Zt],!1){case!(Pt instanceof Lt):ce.push(this.declaration(Pt));break;case!(Pt instanceof At):ce.push(this.docType(Pt));break;case!(Pt instanceof Bt):ce.push(this.comment(Pt));break;case!(Pt instanceof mt):ce.push(this.processingInstruction(Pt));break;default:ce.push(this.element(Pt))}return ce},ft.prototype.attribute=function(pt){return this.stream.write(" "+pt.name+'="'+pt.value+'"')},ft.prototype.cdata=function(pt,Pt){return this.stream.write(this.space(Pt)+"<![CDATA["+pt.text+"]]>"+this.endline(pt))},ft.prototype.comment=function(pt,Pt){return this.stream.write(this.space(Pt)+"<!-- "+pt.text+" -->"+this.endline(pt))},ft.prototype.declaration=function(pt,Pt){return this.stream.write(this.space(Pt)),this.stream.write('<?xml version="'+pt.version+'"'),pt.encoding!=null&&this.stream.write(' encoding="'+pt.encoding+'"'),pt.standalone!=null&&this.stream.write(' standalone="'+pt.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(pt))},ft.prototype.docType=function(pt,Pt){var Dt,Zt,Ft,qt;if(Pt||(Pt=0),this.stream.write(this.space(Pt)),this.stream.write("<!DOCTYPE "+pt.root().name),pt.pubID&&pt.sysID?this.stream.write(' PUBLIC "'+pt.pubID+'" "'+pt.sysID+'"'):pt.sysID&&this.stream.write(' SYSTEM "'+pt.sysID+'"'),pt.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(pt)),qt=pt.children,Zt=0,Ft=qt.length;Zt<Ft;Zt++)switch(Dt=qt[Zt],!1){case!(Dt instanceof xt):this.dtdAttList(Dt,Pt+1);break;case!(Dt instanceof Ot):this.dtdElement(Dt,Pt+1);break;case!(Dt instanceof Rt):this.dtdEntity(Dt,Pt+1);break;case!(Dt instanceof Ct):this.dtdNotation(Dt,Pt+1);break;case!(Dt instanceof kt):this.cdata(Dt,Pt+1);break;case!(Dt instanceof Bt):this.comment(Dt,Pt+1);break;case!(Dt instanceof mt):this.processingInstruction(Dt,Pt+1);break;default:throw new Error("Unknown DTD node type: "+Dt.constructor.name)}this.stream.write("]")}return this.stream.write(this.spacebeforeslash+">"),this.stream.write(this.endline(pt))},ft.prototype.element=function(pt,Pt){var Dt,Zt,Ft,qt,te,Gt,ce,ae;Pt||(Pt=0),ae=this.space(Pt),this.stream.write(ae+"<"+pt.name),Gt=pt.attributes;for(te in Gt)ut.call(Gt,te)&&(Dt=Gt[te],this.attribute(Dt));if(pt.children.length===0||pt.children.every(function(xe){return xe.value===""}))this.allowEmpty?this.stream.write("></"+pt.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&pt.children.length===1&&pt.children[0].value!=null)this.stream.write(">"),this.stream.write(pt.children[0].value),this.stream.write("</"+pt.name+">");else{for(this.stream.write(">"+this.newline),ce=pt.children,Ft=0,qt=ce.length;Ft<qt;Ft++)switch(Zt=ce[Ft],!1){case!(Zt instanceof kt):this.cdata(Zt,Pt+1);break;case!(Zt instanceof Bt):this.comment(Zt,Pt+1);break;case!(Zt instanceof It):this.element(Zt,Pt+1);break;case!(Zt instanceof et):this.raw(Zt,Pt+1);break;case!(Zt instanceof tt):this.text(Zt,Pt+1);break;case!(Zt instanceof mt):this.processingInstruction(Zt,Pt+1);break;default:throw new Error("Unknown XML node type: "+Zt.constructor.name)}this.stream.write(ae+"</"+pt.name+">")}return this.stream.write(this.endline(pt))},ft.prototype.processingInstruction=function(pt,Pt){return this.stream.write(this.space(Pt)+"<?"+pt.target),pt.value&&this.stream.write(" "+pt.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(pt))},ft.prototype.raw=function(pt,Pt){return this.stream.write(this.space(Pt)+pt.value+this.endline(pt))},ft.prototype.text=function(pt,Pt){return this.stream.write(this.space(Pt)+pt.value+this.endline(pt))},ft.prototype.dtdAttList=function(pt,Pt){return this.stream.write(this.space(Pt)+"<!ATTLIST "+pt.elementName+" "+pt.attributeName+" "+pt.attributeType),pt.defaultValueType!=="#DEFAULT"&&this.stream.write(" "+pt.defaultValueType),pt.defaultValue&&this.stream.write(' "'+pt.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(pt))},ft.prototype.dtdElement=function(pt,Pt){return this.stream.write(this.space(Pt)+"<!ELEMENT "+pt.name+" "+pt.value),this.stream.write(this.spacebeforeslash+">"+this.endline(pt))},ft.prototype.dtdEntity=function(pt,Pt){return this.stream.write(this.space(Pt)+"<!ENTITY"),pt.pe&&this.stream.write(" %"),this.stream.write(" "+pt.name),pt.value?this.stream.write(' "'+pt.value+'"'):(pt.pubID&&pt.sysID?this.stream.write(' PUBLIC "'+pt.pubID+'" "'+pt.sysID+'"'):pt.sysID&&this.stream.write(' SYSTEM "'+pt.sysID+'"'),pt.nData&&this.stream.write(" NDATA "+pt.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(pt))},ft.prototype.dtdNotation=function(pt,Pt){return this.stream.write(this.space(Pt)+"<!NOTATION "+pt.name),pt.pubID&&pt.sysID?this.stream.write(' PUBLIC "'+pt.pubID+'" "'+pt.sysID+'"'):pt.pubID?this.stream.write(' PUBLIC "'+pt.pubID+'"'):pt.sysID&&this.stream.write(' SYSTEM "'+pt.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(pt))},ft.prototype.endline=function(pt){return pt.isLastRootNode?"":this.newline},ft}(st)}).call(void 0)},{"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233,"./XMLWriterBase":234}],231:[function(gt,Xt,Qt){"use strict";(function(){var kt,Bt,xt,Ot,Rt,Ct,Lt,At,It,mt,et,tt,st,rt=function(ct,ft){function pt(){this.constructor=ct}for(var Pt in ft)ut.call(ft,Pt)&&(ct[Pt]=ft[Pt]);return pt.prototype=ft.prototype,ct.prototype=new pt,ct.__super__=ft.prototype,ct},ut={}.hasOwnProperty;Lt=gt("./XMLDeclaration"),At=gt("./XMLDocType"),kt=gt("./XMLCData"),Bt=gt("./XMLComment"),It=gt("./XMLElement"),et=gt("./XMLRaw"),tt=gt("./XMLText"),mt=gt("./XMLProcessingInstruction"),xt=gt("./XMLDTDAttList"),Ot=gt("./XMLDTDElement"),Rt=gt("./XMLDTDEntity"),Ct=gt("./XMLDTDNotation"),st=gt("./XMLWriterBase"),Xt.exports=function(ct){function ft(pt){ft.__super__.constructor.call(this,pt)}return rt(ft,ct),ft.prototype.document=function(pt){var Pt,Dt,Zt,Ft,qt;for(this.textispresent=!1,Ft="",qt=pt.children,Dt=0,Zt=qt.length;Dt<Zt;Dt++)Pt=qt[Dt],Ft+=function(){switch(!1){case!(Pt instanceof Lt):return this.declaration(Pt);case!(Pt instanceof At):return this.docType(Pt);case!(Pt instanceof Bt):return this.comment(Pt);case!(Pt instanceof mt):return this.processingInstruction(Pt);default:return this.element(Pt,0)}}.call(this);return this.pretty&&Ft.slice(-this.newline.length)===this.newline&&(Ft=Ft.slice(0,-this.newline.length)),Ft},ft.prototype.attribute=function(pt){return" "+pt.name+'="'+pt.value+'"'},ft.prototype.cdata=function(pt,Pt){return this.space(Pt)+"<![CDATA["+pt.text+"]]>"+this.newline},ft.prototype.comment=function(pt,Pt){return this.space(Pt)+"<!-- "+pt.text+" -->"+this.newline},ft.prototype.declaration=function(pt,Pt){var Dt;return Dt=this.space(Pt),Dt+='<?xml version="'+pt.version+'"',pt.encoding!=null&&(Dt+=' encoding="'+pt.encoding+'"'),pt.standalone!=null&&(Dt+=' standalone="'+pt.standalone+'"'),Dt+=this.spacebeforeslash+"?>",Dt+=this.newline},ft.prototype.docType=function(pt,Pt){var Dt,Zt,Ft,qt,te;if(Pt||(Pt=0),qt=this.space(Pt),qt+="<!DOCTYPE "+pt.root().name,pt.pubID&&pt.sysID?qt+=' PUBLIC "'+pt.pubID+'" "'+pt.sysID+'"':pt.sysID&&(qt+=' SYSTEM "'+pt.sysID+'"'),pt.children.length>0){for(qt+=" [",qt+=this.newline,te=pt.children,Zt=0,Ft=te.length;Zt<Ft;Zt++)Dt=te[Zt],qt+=function(){switch(!1){case!(Dt instanceof xt):return this.dtdAttList(Dt,Pt+1);case!(Dt instanceof Ot):return this.dtdElement(Dt,Pt+1);case!(Dt instanceof Rt):return this.dtdEntity(Dt,Pt+1);case!(Dt instanceof Ct):return this.dtdNotation(Dt,Pt+1);case!(Dt instanceof kt):return this.cdata(Dt,Pt+1);case!(Dt instanceof Bt):return this.comment(Dt,Pt+1);case!(Dt instanceof mt):return this.processingInstruction(Dt,Pt+1);default:throw new Error("Unknown DTD node type: "+Dt.constructor.name)}}.call(this);qt+="]"}return qt+=this.spacebeforeslash+">",qt+=this.newline},ft.prototype.element=function(pt,Pt){var Dt,Zt,Ft,qt,te,Gt,ce,ae,xe,ye,Te,me,He;Pt||(Pt=0),He=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),me=this.space(Pt),ae="",ae+=me+"<"+pt.name,xe=pt.attributes;for(ce in xe)ut.call(xe,ce)&&(Dt=xe[ce],ae+=this.attribute(Dt));if(pt.children.length===0||pt.children.every(function(fe){return fe.value===""}))this.allowEmpty?ae+="></"+pt.name+">"+this.newline:ae+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&pt.children.length===1&&pt.children[0].value!=null)ae+=">",ae+=pt.children[0].value,ae+="</"+pt.name+">"+this.newline;else{if(this.dontprettytextnodes){for(ye=pt.children,Ft=0,te=ye.length;Ft<te;Ft++)if(Zt=ye[Ft],Zt.value!=null){this.textispresent++,He=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,me=this.space(Pt)),ae+=">"+this.newline,Te=pt.children,qt=0,Gt=Te.length;qt<Gt;qt++)Zt=Te[qt],ae+=function(){switch(!1){case!(Zt instanceof kt):return this.cdata(Zt,Pt+1);case!(Zt instanceof Bt):return this.comment(Zt,Pt+1);case!(Zt instanceof It):return this.element(Zt,Pt+1);case!(Zt instanceof et):return this.raw(Zt,Pt+1);case!(Zt instanceof tt):return this.text(Zt,Pt+1);case!(Zt instanceof mt):return this.processingInstruction(Zt,Pt+1);default:throw new Error("Unknown XML node type: "+Zt.constructor.name)}}.call(this);He&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),ae+=me+"</"+pt.name+">"+this.newline}return ae},ft.prototype.processingInstruction=function(pt,Pt){var Dt;return Dt=this.space(Pt)+"<?"+pt.target,pt.value&&(Dt+=" "+pt.value),Dt+=this.spacebeforeslash+"?>"+this.newline},ft.prototype.raw=function(pt,Pt){return this.space(Pt)+pt.value+this.newline},ft.prototype.text=function(pt,Pt){return this.space(Pt)+pt.value+this.newline},ft.prototype.dtdAttList=function(pt,Pt){var Dt;return Dt=this.space(Pt)+"<!ATTLIST "+pt.elementName+" "+pt.attributeName+" "+pt.attributeType,pt.defaultValueType!=="#DEFAULT"&&(Dt+=" "+pt.defaultValueType),pt.defaultValue&&(Dt+=' "'+pt.defaultValue+'"'),Dt+=this.spacebeforeslash+">"+this.newline},ft.prototype.dtdElement=function(pt,Pt){return this.space(Pt)+"<!ELEMENT "+pt.name+" "+pt.value+this.spacebeforeslash+">"+this.newline},ft.prototype.dtdEntity=function(pt,Pt){var Dt;return Dt=this.space(Pt)+"<!ENTITY",pt.pe&&(Dt+=" %"),Dt+=" "+pt.name,pt.value?Dt+=' "'+pt.value+'"':(pt.pubID&&pt.sysID?Dt+=' PUBLIC "'+pt.pubID+'" "'+pt.sysID+'"':pt.sysID&&(Dt+=' SYSTEM "'+pt.sysID+'"'),pt.nData&&(Dt+=" NDATA "+pt.nData)),Dt+=this.spacebeforeslash+">"+this.newline},ft.prototype.dtdNotation=function(pt,Pt){var Dt;return Dt=this.space(Pt)+"<!NOTATION "+pt.name,pt.pubID&&pt.sysID?Dt+=' PUBLIC "'+pt.pubID+'" "'+pt.sysID+'"':pt.pubID?Dt+=' PUBLIC "'+pt.pubID+'"':pt.sysID&&(Dt+=' SYSTEM "'+pt.sysID+'"'),Dt+=this.spacebeforeslash+">"+this.newline},ft.prototype.openNode=function(pt,Pt){var Dt,Zt,Ft,qt;if(Pt||(Pt=0),pt instanceof It){Ft=this.space(Pt)+"<"+pt.name,qt=pt.attributes;for(Zt in qt)ut.call(qt,Zt)&&(Dt=qt[Zt],Ft+=this.attribute(Dt));return Ft+=(pt.children?">":"/>")+this.newline}return Ft=this.space(Pt)+"<!DOCTYPE "+pt.rootNodeName,pt.pubID&&pt.sysID?Ft+=' PUBLIC "'+pt.pubID+'" "'+pt.sysID+'"':pt.sysID&&(Ft+=' SYSTEM "'+pt.sysID+'"'),Ft+=(pt.children?" [":">")+this.newline},ft.prototype.closeNode=function(pt,Pt){switch(Pt||(Pt=0),!1){case!(pt instanceof It):return this.space(Pt)+"</"+pt.name+">"+this.newline;case!(pt instanceof At):return this.space(Pt)+"]>"+this.newline}},ft}(st)}).call(void 0)},{"./XMLCData":216,"./XMLComment":217,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLDeclaration":222,"./XMLDocType":223,"./XMLElement":226,"./XMLProcessingInstruction":228,"./XMLRaw":229,"./XMLText":233,"./XMLWriterBase":234}],232:[function(gt,Xt,Qt){"use strict";(function(){var kt=function(xt,Ot){return function(){return xt.apply(Ot,arguments)}},Bt={}.hasOwnProperty;Xt.exports=function(){function xt(Ot){this.assertLegalChar=kt(this.assertLegalChar,this);var Rt,Ct,Lt;Ot||(Ot={}),this.noDoubleEncoding=Ot.noDoubleEncoding,Ct=Ot.stringify||{};for(Rt in Ct)Bt.call(Ct,Rt)&&(Lt=Ct[Rt],this[Rt]=Lt)}return xt.prototype.eleName=function(Ot){return Ot=""+Ot||"",this.assertLegalChar(Ot)},xt.prototype.eleText=function(Ot){return Ot=""+Ot||"",this.assertLegalChar(this.elEscape(Ot))},xt.prototype.cdata=function(Ot){return Ot=""+Ot||"",Ot=Ot.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(Ot)},xt.prototype.comment=function(Ot){if(Ot=""+Ot||"",Ot.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+Ot);return this.assertLegalChar(Ot)},xt.prototype.raw=function(Ot){return""+Ot||""},xt.prototype.attName=function(Ot){return Ot=""+Ot||""},xt.prototype.attValue=function(Ot){return Ot=""+Ot||"",this.attEscape(Ot)},xt.prototype.insTarget=function(Ot){return""+Ot||""},xt.prototype.insValue=function(Ot){if(Ot=""+Ot||"",Ot.match(/\?>/))throw new Error("Invalid processing instruction value: "+Ot);return Ot},xt.prototype.xmlVersion=function(Ot){if(Ot=""+Ot||"",!Ot.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+Ot);return Ot},xt.prototype.xmlEncoding=function(Ot){if(Ot=""+Ot||"",!Ot.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+Ot);return Ot},xt.prototype.xmlStandalone=function(Ot){return Ot?"yes":"no"},xt.prototype.dtdPubID=function(Ot){return""+Ot||""},xt.prototype.dtdSysID=function(Ot){return""+Ot||""},xt.prototype.dtdElementValue=function(Ot){return""+Ot||""},xt.prototype.dtdAttType=function(Ot){return""+Ot||""},xt.prototype.dtdAttDefault=function(Ot){return Ot!=null?""+Ot||"":Ot},xt.prototype.dtdEntityValue=function(Ot){return""+Ot||""},xt.prototype.dtdNData=function(Ot){return""+Ot||""},xt.prototype.convertAttKey="@",xt.prototype.convertPIKey="?",xt.prototype.convertTextKey="#text",xt.prototype.convertCDataKey="#cdata",xt.prototype.convertCommentKey="#comment",xt.prototype.convertRawKey="#raw",xt.prototype.assertLegalChar=function(Ot){var Rt;if(Rt=Ot.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+Ot+" at index "+Rt.index);return Ot},xt.prototype.elEscape=function(Ot){var Rt;return Rt=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,Ot.replace(Rt,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")},xt.prototype.attEscape=function(Ot){var Rt;return Rt=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,Ot.replace(Rt,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},xt}()}).call(void 0)},{}],233:[function(gt,Xt,Qt){"use strict";var kt=gt("babel-runtime/core-js/object/create"),Bt=function(xt){return xt&&xt.__esModule?xt:{default:xt}}(kt);(function(){var xt,Ot=function(Ct,Lt){function At(){this.constructor=Ct}for(var It in Lt)Rt.call(Lt,It)&&(Ct[It]=Lt[It]);return At.prototype=Lt.prototype,Ct.prototype=new At,Ct.__super__=Lt.prototype,Ct},Rt={}.hasOwnProperty;xt=gt("./XMLNode"),Xt.exports=function(Ct){function Lt(At,It){if(Lt.__super__.constructor.call(this,At),It==null)throw new Error("Missing element text");this.value=this.stringify.eleText(It)}return Ot(Lt,Ct),Lt.prototype.clone=function(){return(0,Bt.default)(this)},Lt.prototype.toString=function(At){return this.options.writer.set(At).text(this)},Lt}(xt)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],234:[function(gt,Xt,Qt){"use strict";(function(){var kt={}.hasOwnProperty;Xt.exports=function(){function Bt(xt){var Ot,Rt,Ct,Lt,At,It,mt,et,tt;xt||(xt={}),this.pretty=xt.pretty||!1,this.allowEmpty=(Rt=xt.allowEmpty)!=null&&Rt,this.pretty?(this.indent=(Ct=xt.indent)!=null?Ct:" ",this.newline=(Lt=xt.newline)!=null?Lt:`
|
|
|
`,this.offset=(At=xt.offset)!=null?At:0,this.dontprettytextnodes=(It=xt.dontprettytextnodes)!=null?It:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=(mt=xt.spacebeforeslash)!=null?mt:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,et=xt.writer||{};for(Ot in et)kt.call(et,Ot)&&(tt=et[Ot],this[Ot]=tt)}return Bt.prototype.set=function(xt){var Ot,Rt,Ct;xt||(xt={}),"pretty"in xt&&(this.pretty=xt.pretty),"allowEmpty"in xt&&(this.allowEmpty=xt.allowEmpty),this.pretty?(this.indent="indent"in xt?xt.indent:" ",this.newline="newline"in xt?xt.newline:`
|
|
|
`,this.offset="offset"in xt?xt.offset:0,this.dontprettytextnodes="dontprettytextnodes"in xt?xt.dontprettytextnodes:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash="spacebeforeslash"in xt?xt.spacebeforeslash:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,Rt=xt.writer||{};for(Ot in Rt)kt.call(Rt,Ot)&&(Ct=Rt[Ot],this[Ot]=Ct);return this},Bt.prototype.space=function(xt){var Ot;return this.pretty?(Ot=(xt||0)+this.offset+1,Ot>0?new Array(Ot).join(this.indent):""):""},Bt}()}).call(void 0)},{}],235:[function(gt,Xt,Qt){"use strict";(function(){var kt,Bt,xt,Ot,Rt,Ct,Lt;Lt=gt("./Utility"),Rt=Lt.assign,Ct=Lt.isFunction,kt=gt("./XMLDocument"),Bt=gt("./XMLDocumentCB"),Ot=gt("./XMLStringWriter"),xt=gt("./XMLStreamWriter"),Xt.exports.create=function(At,It,mt,et){var tt,st;if(At==null)throw new Error("Root element needs a name");return et=Rt({},It,mt,et),tt=new kt(et),st=tt.element(At),et.headless||(tt.declaration(et),et.pubID==null&&et.sysID==null||tt.doctype(et)),st},Xt.exports.begin=function(At,It,mt){var et;return Ct(At)&&(et=[At,It],It=et[0],mt=et[1],At={}),It?new Bt(At,It,mt):new kt(At)},Xt.exports.stringWriter=function(At){return new Ot(At)},Xt.exports.streamWriter=function(At,It){return new xt(At,It)}}).call(void 0)},{"./Utility":214,"./XMLDocument":224,"./XMLDocumentCB":225,"./XMLStreamWriter":230,"./XMLStringWriter":231}],236:[function(gt,Xt,Qt){function kt(){for(var xt={},Ot=0;Ot<arguments.length;Ot++){var Rt=arguments[Ot];for(var Ct in Rt)Bt.call(Rt,Ct)&&(xt[Ct]=Rt[Ct])}return xt}Xt.exports=kt;var Bt=Object.prototype.hasOwnProperty},{}],237:[function(gt,Xt,Qt){"use strict";function kt(et,tt,st){Ot.isBuffer(tt)||(tt=new Ot(tt)),Ot.isBuffer(st)||(st=new Ot(st)),tt.length>It?tt=et(tt):tt.length<It&&(tt=Ot.concat([tt,mt],It));for(var rt=new Ot(It),ut=new Ot(It),ct=0;ct<It;ct++)rt[ct]=54^tt[ct],ut[ct]=92^tt[ct];var ft=et(Ot.concat([rt,st]));return et(Ot.concat([ut,ft]))}function Bt(et,tt){et=et||"sha1";var st=At[et],rt=[],ut=0;return st||xt("algorithm:",et,"is not yet supported"),{update:function(ct){return Ot.isBuffer(ct)||(ct=new Ot(ct)),rt.push(ct),ut+=ct.length,this},digest:function(ct){var ft=Ot.concat(rt),pt=tt?kt(st,tt,ft):st(ft);return rt=null,ct?pt.toString(ct):pt}}}function xt(){var et=[].slice.call(arguments).join(" ");throw new Error([et,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
|
|
|
`))}var Ot=gt("buffer").Buffer,Rt=gt("./sha"),Ct=gt("./sha256"),Lt=gt("./md5"),At={sha1:Rt,sha256:Ct,md5:Lt},It=64,mt=new Ot(It);mt.fill(0),Qt.createHash=function(et){return Bt(et)},Qt.createHmac=function(et,tt){return Bt(et,tt)},function(et,tt){for(var st in et)tt(et[st],st)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(et){Qt[et]=function(){xt("sorry,",et,"is not implemented yet")}})},{"./md5":239,"./sha":240,"./sha256":241,buffer:38}],238:[function(gt,Xt,Qt){"use strict";function kt(At,It){if(At.length%Rt!=0){var mt=At.length+(Rt-At.length%Rt);At=Ot.concat([At,Ct],mt)}for(var et=[],tt=It?At.readInt32BE:At.readInt32LE,st=0;st<At.length;st+=Rt)et.push(tt.call(At,st));return et}function Bt(At,It,mt){for(var et=new Ot(It),tt=mt?et.writeInt32BE:et.writeInt32LE,st=0;st<At.length;st++)tt.call(et,At[st],4*st,!0);return et}function xt(At,It,mt,et){return Ot.isBuffer(At)||(At=new Ot(At)),Bt(It(kt(At,et),At.length*Lt),mt,et)}var Ot=gt("buffer").Buffer,Rt=4,Ct=new Ot(Rt);Ct.fill(0);var Lt=8;Xt.exports={hash:xt}},{buffer:38}],239:[function(gt,Xt,Qt){"use strict";function kt(mt,et){mt[et>>5]|=128<<et%32,mt[14+(et+64>>>9<<4)]=et;for(var tt=1732584193,st=-271733879,rt=-1732584194,ut=271733878,ct=0;ct<mt.length;ct+=16){var ft=tt,pt=st,Pt=rt,Dt=ut;tt=xt(tt,st,rt,ut,mt[ct+0],7,-680876936),ut=xt(ut,tt,st,rt,mt[ct+1],12,-389564586),rt=xt(rt,ut,tt,st,mt[ct+2],17,606105819),st=xt(st,rt,ut,tt,mt[ct+3],22,-1044525330),tt=xt(tt,st,rt,ut,mt[ct+4],7,-176418897),ut=xt(ut,tt,st,rt,mt[ct+5],12,1200080426),rt=xt(rt,ut,tt,st,mt[ct+6],17,-1473231341),st=xt(st,rt,ut,tt,mt[ct+7],22,-45705983),tt=xt(tt,st,rt,ut,mt[ct+8],7,1770035416),ut=xt(ut,tt,st,rt,mt[ct+9],12,-1958414417),rt=xt(rt,ut,tt,st,mt[ct+10],17,-42063),st=xt(st,rt,ut,tt,mt[ct+11],22,-1990404162),tt=xt(tt,st,rt,ut,mt[ct+12],7,1804603682),ut=xt(ut,tt,st,rt,mt[ct+13],12,-40341101),rt=xt(rt,ut,tt,st,mt[ct+14],17,-1502002290),st=xt(st,rt,ut,tt,mt[ct+15],22,1236535329),tt=Ot(tt,st,rt,ut,mt[ct+1],5,-165796510),ut=Ot(ut,tt,st,rt,mt[ct+6],9,-1069501632),rt=Ot(rt,ut,tt,st,mt[ct+11],14,643717713),st=Ot(st,rt,ut,tt,mt[ct+0],20,-373897302),tt=Ot(tt,st,rt,ut,mt[ct+5],5,-701558691),ut=Ot(ut,tt,st,rt,mt[ct+10],9,38016083),rt=Ot(rt,ut,tt,st,mt[ct+15],14,-660478335),st=Ot(st,rt,ut,tt,mt[ct+4],20,-405537848),tt=Ot(tt,st,rt,ut,mt[ct+9],5,568446438),ut=Ot(ut,tt,st,rt,mt[ct+14],9,-1019803690),rt=Ot(rt,ut,tt,st,mt[ct+3],14,-187363961),st=Ot(st,rt,ut,tt,mt[ct+8],20,1163531501),tt=Ot(tt,st,rt,ut,mt[ct+13],5,-1444681467),ut=Ot(ut,tt,st,rt,mt[ct+2],9,-51403784),rt=Ot(rt,ut,tt,st,mt[ct+7],14,1735328473),st=Ot(st,rt,ut,tt,mt[ct+12],20,-1926607734),tt=Rt(tt,st,rt,ut,mt[ct+5],4,-378558),ut=Rt(ut,tt,st,rt,mt[ct+8],11,-2022574463),rt=Rt(rt,ut,tt,st,mt[ct+11],16,1839030562),st=Rt(st,rt,ut,tt,mt[ct+14],23,-35309556),tt=Rt(tt,st,rt,ut,mt[ct+1],4,-1530992060),ut=Rt(ut,tt,st,rt,mt[ct+4],11,1272893353),rt=Rt(rt,ut,tt,st,mt[ct+7],16,-155497632),st=Rt(st,rt,ut,tt,mt[ct+10],23,-1094730640),tt=Rt(tt,st,rt,ut,mt[ct+13],4,681279174),ut=Rt(ut,tt,st,rt,mt[ct+0],11,-358537222),rt=Rt(rt,ut,tt,st,mt[ct+3],16,-722521979),st=Rt(st,rt,ut,tt,mt[ct+6],23,76029189),tt=Rt(tt,st,rt,ut,mt[ct+9],4,-640364487),ut=Rt(ut,tt,st,rt,mt[ct+12],11,-421815835),rt=Rt(rt,ut,tt,st,mt[ct+15],16,530742520),st=Rt(st,rt,ut,tt,mt[ct+2],23,-995338651),tt=Ct(tt,st,rt,ut,mt[ct+0],6,-198630844),ut=Ct(ut,tt,st,rt,mt[ct+7],10,1126891415),rt=Ct(rt,ut,tt,st,mt[ct+14],15,-1416354905),st=Ct(st,rt,ut,tt,mt[ct+5],21,-57434055),tt=Ct(tt,st,rt,ut,mt[ct+12],6,1700485571),ut=Ct(ut,tt,st,rt,mt[ct+3],10,-1894986606),rt=Ct(rt,ut,tt,st,mt[ct+10],15,-1051523),st=Ct(st,rt,ut,tt,mt[ct+1],21,-2054922799),tt=Ct(tt,st,rt,ut,mt[ct+8],6,1873313359),ut=Ct(ut,tt,st,rt,mt[ct+15],10,-30611744),rt=Ct(rt,ut,tt,st,mt[ct+6],15,-1560198380),st=Ct(st,rt,ut,tt,mt[ct+13],21,1309151649),tt=Ct(tt,st,rt,ut,mt[ct+4],6,-145523070),ut=Ct(ut,tt,st,rt,mt[ct+11],10,-1120210379),rt=Ct(rt,ut,tt,st,mt[ct+2],15,718787259),st=Ct(st,rt,ut,tt,mt[ct+9],21,-343485551),tt=Lt(tt,ft),st=Lt(st,pt),rt=Lt(rt,Pt),ut=Lt(ut,Dt)}return Array(tt,st,rt,ut)}function Bt(mt,et,tt,st,rt,ut){return Lt(At(Lt(Lt(et,mt),Lt(st,ut)),rt),tt)}function xt(mt,et,tt,st,rt,ut,ct){return Bt(et&tt|~et&st,mt,et,rt,ut,ct)}function Ot(mt,et,tt,st,rt,ut,ct){return Bt(et&st|tt&~st,mt,et,rt,ut,ct)}function Rt(mt,et,tt,st,rt,ut,ct){return Bt(et^tt^st,mt,et,rt,ut,ct)}function Ct(mt,et,tt,st,rt,ut,ct){return Bt(tt^(et|~st),mt,et,rt,ut,ct)}function Lt(mt,et){var tt=(65535&mt)+(65535&et);return(mt>>16)+(et>>16)+(tt>>16)<<16|65535&tt}function At(mt,et){return mt<<et|mt>>>32-et}var It=gt("./helpers");Xt.exports=function(mt){return It.hash(mt,kt,16)}},{"./helpers":238}],240:[function(gt,Xt,Qt){"use strict";function kt(Lt,At){Lt[At>>5]|=128<<24-At%32,Lt[15+(At+64>>9<<4)]=At;for(var It=Array(80),mt=1732584193,et=-271733879,tt=-1732584194,st=271733878,rt=-1009589776,ut=0;ut<Lt.length;ut+=16){for(var ct=mt,ft=et,pt=tt,Pt=st,Dt=rt,Zt=0;Zt<80;Zt++){It[Zt]=Zt<16?Lt[ut+Zt]:Rt(It[Zt-3]^It[Zt-8]^It[Zt-14]^It[Zt-16],1);var Ft=Ot(Ot(Rt(mt,5),Bt(Zt,et,tt,st)),Ot(Ot(rt,It[Zt]),xt(Zt)));rt=st,st=tt,tt=Rt(et,30),et=mt,mt=Ft}mt=Ot(mt,ct),et=Ot(et,ft),tt=Ot(tt,pt),st=Ot(st,Pt),rt=Ot(rt,Dt)}return Array(mt,et,tt,st,rt)}function Bt(Lt,At,It,mt){return Lt<20?At&It|~At&mt:Lt<40?At^It^mt:Lt<60?At&It|At&mt|It&mt:At^It^mt}function xt(Lt){return Lt<20?1518500249:Lt<40?1859775393:Lt<60?-1894007588:-899497514}function Ot(Lt,At){var It=(65535&Lt)+(65535&At);return(Lt>>16)+(At>>16)+(It>>16)<<16|65535&It}function Rt(Lt,At){return Lt<<At|Lt>>>32-At}var Ct=gt("./helpers");Xt.exports=function(Lt){return Ct.hash(Lt,kt,20,!0)}},{"./helpers":238}],241:[function(gt,Xt,Qt){"use strict";var kt=gt("./helpers"),Bt=function(tt,st){var rt=(65535&tt)+(65535&st);return(tt>>16)+(st>>16)+(rt>>16)<<16|65535&rt},xt=function(tt,st){return tt>>>st|tt<<32-st},Ot=function(tt,st){return tt>>>st},Rt=function(tt,st,rt){return tt&st^~tt&rt},Ct=function(tt,st,rt){return tt&st^tt&rt^st&rt},Lt=function(tt){return xt(tt,2)^xt(tt,13)^xt(tt,22)},At=function(tt){return xt(tt,6)^xt(tt,11)^xt(tt,25)},It=function(tt){return xt(tt,7)^xt(tt,18)^Ot(tt,3)},mt=function(tt){return xt(tt,17)^xt(tt,19)^Ot(tt,10)},et=function(tt,st){var rt,ut,ct,ft,pt,Pt,Dt,Zt,Ft,qt,te,Gt,ce=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),ae=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),xe=new Array(64);tt[st>>5]|=128<<24-st%32,tt[15+(st+64>>9<<4)]=st;for(var Ft=0;Ft<tt.length;Ft+=16){rt=ae[0],ut=ae[1],ct=ae[2],ft=ae[3],pt=ae[4],Pt=ae[5],Dt=ae[6],Zt=ae[7];for(var qt=0;qt<64;qt++)xe[qt]=qt<16?tt[qt+Ft]:Bt(Bt(Bt(mt(xe[qt-2]),xe[qt-7]),It(xe[qt-15])),xe[qt-16]),te=Bt(Bt(Bt(Bt(Zt,At(pt)),Rt(pt,Pt,Dt)),ce[qt]),xe[qt]),Gt=Bt(Lt(rt),Ct(rt,ut,ct)),Zt=Dt,Dt=Pt,Pt=pt,pt=Bt(ft,te),ft=ct,ct=ut,ut=rt,rt=Bt(te,Gt);ae[0]=Bt(rt,ae[0]),ae[1]=Bt(ut,ae[1]),ae[2]=Bt(ct,ae[2]),ae[3]=Bt(ft,ae[3]),ae[4]=Bt(pt,ae[4]),ae[5]=Bt(Pt,ae[5]),ae[6]=Bt(Dt,ae[6]),ae[7]=Bt(Zt,ae[7])}return ae};Xt.exports=function(tt){return kt.hash(tt,et,32,!0)}},{"./helpers":238}],242:[function(gt,Xt,Qt){(function(kt){"use strict";function Bt(et){return et&&et.__esModule?et:{default:et}}var xt=gt("babel-runtime/core-js/object/create"),Ot=Bt(xt),Rt=gt("babel-runtime/helpers/classCallCheck"),Ct=Bt(Rt),Lt=gt("babel-runtime/helpers/createClass"),At=Bt(Lt),It=gt("babel-runtime/helpers/typeof"),mt=Bt(It);(function(et){if((Qt===void 0?"undefined":(0,mt.default)(Qt))==="object"&&Xt!==void 0)Xt.exports=et();else if(typeof zt=="function"&&zt.amd)zt([],et);else{var tt;tt=typeof window!="undefined"?window:kt!==void 0?kt:typeof self!="undefined"?self:this,tt.mime=et()}})(function(){return function et(tt,st,rt){function ut(pt,Pt){if(!st[pt]){if(!tt[pt]){var Dt=typeof gt=="function"&>if(!Pt&&Dt)return Dt(pt,!0);if(ct)return ct(pt,!0);var Zt=new Error("Cannot find module '"+pt+"'");throw Zt.code="MODULE_NOT_FOUND",Zt}var Ft=st[pt]={exports:{}};tt[pt][0].call(Ft.exports,function(qt){var te=tt[pt][1][qt];return ut(te||qt)},Ft,Ft.exports,et,tt,st,rt)}return st[pt].exports}for(var ct=typeof gt=="function"&>,ft=0;ft<rt.length;ft++)ut(rt[ft]);return ut}({1:[function(et,tt,st){var rt=function(){function ut(){(0,Ct.default)(this,ut),this._types=(0,Ot.default)(null),this._extensions=(0,Ot.default)(null);for(var ct=0;ct<arguments.length;ct++)this.define(arguments[ct])}return(0,At.default)(ut,[{key:"define",value:function(ct,ft){for(var pt in ct){for(var Pt=ct[pt],Dt=0;Dt<Pt.length;Dt++){var Zt=Pt[Dt];if(!ft&&Zt in this._types)throw new Error('Attempt to change mapping for "'+Zt+'" extension from "'+this._types[Zt]+'" to "'+pt+'". Pass `force=true` to allow this, otherwise remove "'+Zt+'" from the list of extensions for "'+pt+'".');this._types[Zt]=pt}!ft&&this._extensions[pt]||(this._extensions[pt]=Pt[0])}}},{key:"getType",value:function(ct){ct=String(ct);var ft=ct.replace(/^.*[\/\\]/,"").toLowerCase(),pt=ft.replace(/^.*\./,"").toLowerCase(),Pt=ft.length<ct.length;return(pt.length<ft.length-1||!Pt)&&this._types[pt]||null}},{key:"getExtension",value:function(ct){return(ct=/^\s*([^;\s]*)/.test(ct)&&RegExp.$1)&&this._extensions[ct.toLowerCase()]||null}}]),ut}();tt.exports=rt},{}],2:[function(et,tt,st){var rt=et("./Mime");tt.exports=new rt(et("./types/standard"),et("./types/other"))},{"./Mime":1,"./types/other":3,"./types/standard":4}],3:[function(et,tt,st){tt.exports={"application/prs.cww":["cww"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":[],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":[],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-otf":[],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-ttf":["ttf","ttc"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":[],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":[],"application/x-msdownload":["com","bat"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["wmf","emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":[],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":[],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":[],"audio/x-wav":[],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":[],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":[],"image/x-pcx":["pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":[],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}},{}],4:[function(et,tt,st){tt.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomsvc+xml":["atomsvc"],"application/bdoc":["bdoc"],"application/ccxml+xml":["ccxml"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/font-tdpfr":["pfr"],"application/font-woff":["woff"],"application/font-woff2":["woff2"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/pskc+xml":["pskcxml"],"application/rdf+xml":["rdf"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/voicexml+xml":["vxml"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-diff+xml":["xdf"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":[],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mp3":[],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":[],"audio/webm":["weba"],"audio/xm":["xm"],"font/otf":["otf"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/g3fax":["g3"],"image/gif":["gif"],"image/ief":["ief"],"image/jpeg":["jpeg","jpg","jpe"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/tiff":["tiff","tif"],"image/webp":["webp"],"message/rfc822":["eml","mime"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["x3db","x3dbz"],"model/x3d+vrml":["x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/hjson":["hjson"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":[],"text/sgml":["sgml","sgm"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":[],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},{}]},{},[2])(2)})}).call(this,typeof Kt.g!="undefined"?Kt.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"babel-runtime/core-js/object/create":19,"babel-runtime/helpers/classCallCheck":30,"babel-runtime/helpers/createClass":31,"babel-runtime/helpers/typeof":32}],243:[function(gt,Xt,Qt){"use strict";Qt.encodeURIComponent=function(kt){try{return encodeURIComponent(kt)}catch(Bt){return kt}},Qt.escape=gt("escape-html"),Qt.timestamp=function(kt){if(kt){var Bt=kt;return typeof Bt=="string"&&(Bt=Number(Bt)),String(kt).length===10&&(Bt*=1e3),new Date(Bt)}return Math.round(Date.now()/1e3)}},{"escape-html":157}],244:[function(gt,Xt,Qt){(function(kt,Bt){"use strict";function xt(Zt){return Zt&&Zt.__esModule?Zt:{default:Zt}}function Ot(Zt,Ft){return Zt===void 0?Ft:Zt}function Rt(Zt,Ft){return function(qt,te,Gt){if(qt)return Ft(qt);Zt({data:te,status:Gt.statusCode,headers:Gt.headers,res:Gt})}}var Ct,Lt=gt("babel-runtime/core-js/json/stringify"),At=xt(Lt),It=gt("babel-runtime/helpers/typeof"),mt=xt(It),et=gt("util"),tt=gt("url"),st=gt("http"),rt=gt("https"),ut=gt("debug")("urllib"),ct=gt("humanize-ms"),ft=0,pt=Math.pow(2,31)-10,Pt=/^https?:\/\//i;Qt.TIMEOUTS=[ct("300s"),ct("300s")];var Dt=["json","text"];Qt.request=function(Zt,Ft,qt){return arguments.length===2&&typeof Ft=="function"&&(qt=Ft,Ft=null),typeof qt=="function"?Qt.requestWithCallback(Zt,Ft,qt):(Ct||(Ct=gt("any-promise")),new Ct(function(te,Gt){Qt.requestWithCallback(Zt,Ft,Rt(te,Gt))}))},Qt.requestWithCallback=function(Zt,Ft,qt){function te(){Mt&&(clearTimeout(Mt),Mt=null)}function Gt(){Ut&&(clearTimeout(Ut),Ut=null)}function ce(Ze,hn,Pn){if(Gt(),!qt)return console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),fe,kt.pid,Re.method,Zt),void(Ze&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),fe,kt.pid,Ze.name,Ze.message,Ze.stack));var In=qt;qt=null;var Bn={};if(Pn&&(Vt=Pn.statusCode,Bn=Pn.headers),Vt===401&&Bn["www-authenticate"]&&(!Ft.headers||!Ft.headers.Authorization)&&Ft.digestAuth){var Zn=Bn["www-authenticate"];if(Zn.indexOf("Digest ")>=0)return ut("Request#%d %s: got digest auth header WWW-Authenticate: %s",fe,Zt,Zn),Ft.headers=Ft.headers||{},Ft.headers.Authorization=digestAuthHeader(Re.method,Re.path,Zn,Ft.digestAuth),ut("Request#%d %s: auth with digest header: %s",fe,Zt,Ft.headers.Authorization),Pn.headers["set-cookie"]&&(Ft.headers.Cookie=Pn.headers["set-cookie"].join(";")),Qt.requestWithCallback(Zt,Ft,In)}var Gn=Date.now()-ue;Ye&&(Ye.contentDownload=Gn),ut("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Gn,Wt,Vt,Re.method,Re.host,Re.path,jt,Ye);var ci={status:Vt,statusCode:Vt,headers:Bn,size:Wt,aborted:oe,rt:Gn,keepAliveSocket:jt,data:hn,requestUrls:Ft.requestUrls,timing:Ye,remoteAddress:de,remotePort:Ge};if(Ze){var pi="";Ne&&typeof Ne.getCurrentStatus=="function"&&(pi=", agent status: "+(0,At.default)(Ne.getCurrentStatus())),Ze.message+=", "+Re.method+" "+Zt+" "+Vt+" (connected: "+wt+", keepalive socket: "+jt+pi+`)
|
|
|
headers: `+(0,At.default)(Bn),Ze.data=hn,Ze.path=Re.path,Ze.status=Vt,Ze.headers=Bn,Ze.res=ci}In(Ze,hn,Ft.streaming?Pn:ci),Ft.emitter&&($t.url=Zt,$t.socket=ke&&ke.connection,$t.options=Re,$t.size=_t,Ft.emitter.emit("response",{requestId:fe,error:Ze,ctx:Ft.ctx,req:$t,res:ci}))}function ae(Ze){var hn=null;if(Ft.followRedirect&&statuses.redirect[Ze.statusCode]){Ft._followRedirectCount=(Ft._followRedirectCount||0)+1;var Pn=Ze.headers.location;if(Pn){if(!(Ft._followRedirectCount>Ft.maxRedirects)){var In=Ft.formatRedirectUrl?Ft.formatRedirectUrl(Zt,Pn):tt.resolve(Zt,Pn);ut("Request#%d %s: `redirected` from %s to %s",fe,Re.path,Zt,In),Gt(),Ft.headers&&Ft.headers.Host&&Pt.test(Pn)&&(Ft.headers.Host=null);var Bn=qt;return qt=null,Qt.requestWithCallback(In,Ft,Bn),{redirect:!0,error:null}}hn=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+Zt),hn.name="MaxRedirectError"}else hn=new Error("Got statusCode "+Ze.statusCode+" but cannot resolve next location from headers"),hn.name="FollowRedirectError"}return{redirect:!1,error:hn}}function xe(Ze,hn,Pn){return Pn(null,hn,Ze.headers["content-encoding"])}function ye(Ze){if(Ye&&(Ye.waiting=Date.now()-ue),ut("Request#%d %s `req response` event emit: status %d, headers: %j",fe,Zt,Ze.statusCode,Ze.headers),Ft.streaming){var hn=ae(Ze);return hn.redirect?void Ze.resume():hn.error?(Ze.resume(),ce(hn.error,null,Ze)):ce(null,null,Ze)}if(Ze.on("close",function(){ut("Request#%d %s: `res close` event emit, total size %d",fe,Zt,Wt)}),Ze.on("error",function(){ut("Request#%d %s: `res error` event emit, total size %d",fe,Zt,Wt)}),Ze.on("aborted",function(){oe=!0,ut("Request#%d %s: `res aborted` event emit, total size %d",fe,Zt,Wt)}),Ue){var hn=ae(Ze);return hn.redirect?void Ze.resume():hn.error?(Ze.resume(),Ue.end(),ce(hn.error,null,Ze)):(Ft.consumeWriteStream===!1?Ze.on("end",ce.bind(null,null,null,Ze)):isNode010||isNode012?first([[Ue,"close"],[Ze,"aborted"]],function(Bn,Zn,Gn){ut("Request#%d %s: writeStream or res %s event emitted",fe,Zt,Gn),ce(St||null,null,Ze)}):Ue.on("close",function(){ut("Request#%d %s: writeStream close event emitted",fe,Zt),ce(St||null,null,Ze)}),Ze.pipe(Ue))}var Pn=[];Ze.on("data",function(In){ut("Request#%d %s: `res data` event emit, size %d",fe,Zt,In.length),Wt+=In.length,Pn.push(In)}),Ze.on("end",function(){var In=Bt.concat(Pn,Wt);if(ut("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",fe,Zt,Wt,Ze._dumped),St)return ce(St,In,Ze);var Bn=ae(Ze);if(Bn.error)return ce(Bn.error,In,Ze);Bn.redirect||xe(Ze,In,function(Zn,Gn,ci){if(Zn)return ce(Zn,In,Ze);if(!ci&&Dt.indexOf(Ft.dataType)>=0){try{Gn=decodeBodyByCharset(Gn,Ze)}catch(xi){return ut("decodeBodyByCharset error: %s",xi),ce(null,Gn,Ze)}if(Ft.dataType==="json")if(Wt===0)Gn=null;else{var pi=parseJSON(Gn,$e);pi.error?Zn=pi.error:Gn=pi.data}}oe&&ut("Request#%d %s: Remote socket was terminated before `response.end()` was called",fe,Zt),ce(Zn,Gn,Ze)})})}function Te(){ut("Response timer ticking, timeout: %d",vn),Ut=setTimeout(function(){Ut=null;var Ze="Response timeout for "+vn+"ms";St=new Error(Ze),St.name="ResponseTimeoutError",St.requestId=fe,ut("ResponseTimeout: Request#%d %s %s: %s, connected: %s",fe,Zt,St.name,Ze,wt),me()},vn)}function me(){ut("Request#%d %s abort, connected: %s",fe,Zt,wt),ke.socket||(St.noSocket=!0,ce(St)),ke.abort()}if(!Zt||typeof Zt!="string"&&(Zt===void 0?"undefined":(0,mt.default)(Zt))!=="object"){var He=et.format("expect request url to be a string or a http request options, but got %j",Zt);throw new Error(He)}arguments.length===2&&typeof Ft=="function"&&(qt=Ft,Ft=null),Ft=Ft||{},ft>=pt&&(ft=0);var fe=++ft;Ft.requestUrls=Ft.requestUrls||[];var $t={requestId:fe,url:Zt,args:Ft,ctx:Ft.ctx};Ft.emitter&&Ft.emitter.emit("request",$t),Ft.timeout=Ft.timeout||Qt.TIMEOUTS,Ft.maxRedirects=Ft.maxRedirects||10,Ft.streaming=Ft.streaming||Ft.customResponse;var ie,ue=Date.now();typeof Zt=="string"?(Pt.test(Zt)||(Zt="http://"+Zt),ie=tt.parse(Zt)):ie=Zt;var ge=(Ft.type||Ft.method||ie.method||"GET").toUpperCase(),he=ie.port||80,De=st,Ne=Ot(Ft.agent,Qt.agent),$e=Ft.fixJSONCtlChars;ie.protocol==="https:"&&(De=rt,Ne=Ot(Ft.httpsAgent,Qt.httpsAgent),ie.port||(he=443));var Re={host:ie.hostname||ie.host||"localhost",path:ie.path||"/",method:ge,port:he,agent:Ne,headers:Ft.headers||{},lookup:Ft.lookup};Array.isArray(Ft.timeout)?Re.requestTimeout=Ft.timeout[Ft.timeout.length-1]:Ft.timeout!==void 0&&(Re.requestTimeout=Ft.timeout);for(var tn=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],Me=0;Me<tn.length;Me++){var Oe=tn[Me];Ft.hasOwnProperty(Oe)&&(Re[Oe]=Ft[Oe])}Re.rejectUnauthorized!==!1||Re.hasOwnProperty("secureOptions")||(Re.secureOptions=gt("constants").SSL_OP_NO_TLSv1_2);var Fe=Ft.auth||ie.auth;Fe&&(Re.auth=Fe);var le=Ft.content||Ft.data,Tt=ge==="GET"||ge==="HEAD"||Ft.dataAsQueryString;if(!Ft.content&&le&&typeof le!="string"&&!Bt.isBuffer(le))if(Tt)le=Ft.nestedQuerystring?qs.stringify(le):querystring.stringify(le);else{var bt=Re.headers["Content-Type"]||Re.headers["content-type"];bt||(bt=Ft.contentType==="json"?"application/json":"application/x-www-form-urlencoded",Re.headers["Content-Type"]=bt),le=parseContentType(bt).type==="application/json"?(0,At.default)(le):Ft.nestedQuerystring?qs.stringify(le):querystring.stringify(le)}Tt&&le&&(Re.path+=(ie.query?"&":"?")+le,le=null);var _t=0;if(le){var Yt=le.length;Bt.isBuffer(le)||(Yt=Bt.byteLength(le)),_t=Re.headers["Content-Length"]=Yt}Ft.dataType==="json"&&(Re.headers.Accept="application/json"),typeof Ft.beforeRequest=="function"&&Ft.beforeRequest(Re);var Mt=null,Ut=null,St=null,wt=!1,jt=!1,Wt=0,Vt=-1,oe=!1,de="",Ge="",Ye=null;Ft.timing&&(Ye={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0}),Re.headers["User-Agent"]||Re.headers["user-agent"]||(Re.headers["User-Agent"]=navigator.userAgent),Ft.gzip&&(Re.headers["Accept-Encoding"]||Re.headers["accept-encoding"]||(Re.headers["Accept-Encoding"]="gzip"));var Ue=Ft.writeStream;ut("Request#%d %s %s with headers %j, options.path: %s",fe,ge,Zt,Re.headers,Re.path),Ft.requestUrls.push(Zt);var an,vn;Array.isArray(Ft.timeout)?(an=ct(Ft.timeout[0]),vn=ct(Ft.timeout[1])):an=vn=ct(Ft.timeout),ut("ConnectTimeout: %d, ResponseTimeout: %d",an,vn);var ke;try{ke=De.request(Re,ye)}catch(Ze){return ce(Ze)}return typeof window=="undefined"?function(){ut("Connect timer ticking, timeout: %d",an),Mt=setTimeout(function(){Mt=null,Vt===-1&&(Vt=-2);var Ze="Connect timeout for "+an+"ms",hn="ConnectionTimeoutError";ke.socket||(hn="SocketAssignTimeoutError",Ze+=", working sockets is full"),St=new Error(Ze),St.name=hn,St.requestId=fe,ut("ConnectTimeout: Request#%d %s %s: %s, connected: %s",fe,Zt,St.name,Ze,wt),me()},an)}():ke.on("requestTimeout",function(){Vt===-1&&(Vt=-2);var Ze="Connect timeout for "+an+"ms";St=new Error(Ze),St.name="ConnectionTimeoutError",St.requestId=fe,me()}),Ye&&ke.on("finish",function(){Ye.requestSent=Date.now()-ue}),ke.once("socket",function(Ze){Ye&&(Ye.queuing=Date.now()-ue),isNode010&&Ze.socket&&(Ze=Ze.socket);var hn=Ze.readyState;if(hn==="opening")return Ze.once("lookup",function(Pn,In,Bn){ut("Request#%d %s lookup: %s, %s, %s",fe,Zt,Pn,In,Bn),Ye&&(Ye.dnslookup=Date.now()-ue),In&&(de=In)}),void Ze.once("connect",function(){Ye&&(Ye.connected=Date.now()-ue),te(),Te(),ut("Request#%d %s new socket connected",fe,Zt),wt=!0,de||(de=Ze.remoteAddress),Ge=Ze.remotePort});ut("Request#%d %s reuse socket connected, readyState: %s",fe,Zt,hn),wt=!0,jt=!0,de||(de=Ze.remoteAddress),Ge=Ze.remotePort,te(),Te()}),ke.on("error",function(Ze){Ze.name!=="Error"&&Ze.name!=="TypeError"||(Ze.name=wt?"ResponseError":"RequestError"),Ze.message+=' (req "error")',ut("Request#%d %s `req error` event emit, %s: %s",fe,Zt,Ze.name,Ze.message),ce(St||Ze)}),Ue&&Ue.once("error",function(Ze){Ze.message+=' (writeStream "error")',St=Ze,ut("Request#%d %s `writeStream error` event emit, %s: %s",fe,Zt,Ze.name,Ze.message),me()}),Ft.stream?(Ft.stream.pipe(ke),Ft.stream.once("error",function(Ze){Ze.message+=' (stream "error")',St=Ze,ut("Request#%d %s `readStream error` event emit, %s: %s",fe,Zt,Ze.name,Ze.message),me()})):ke.end(le),ke.requestId=fe,ke}}).call(this,gt("_process"),gt("buffer").Buffer)},{_process:173,"any-promise":13,"babel-runtime/core-js/json/stringify":17,"babel-runtime/helpers/typeof":32,buffer:38,constants:42,debug:155,http:196,https:159,"humanize-ms":160,url:203,util:207}]},{},[1])(1)}),function(zt){function gt(Qt){if(Xt[Qt])return Xt[Qt].exports;var kt=Xt[Qt]={i:Qt,l:!1,exports:{}};return zt[Qt].call(kt.exports,kt,kt.exports,gt),kt.l=!0,kt.exports}var Xt={};gt.m=zt,gt.c=Xt,gt.d=function(Qt,kt,Bt){gt.o(Qt,kt)||Object.defineProperty(Qt,kt,{configurable:!1,enumerable:!0,get:Bt})},gt.n=function(Qt){var kt=Qt&&Qt.__esModule?function(){return Qt.default}:function(){return Qt};return gt.d(kt,"a",kt),kt},gt.o=function(Qt,kt){return Object.prototype.hasOwnProperty.call(Qt,kt)},gt.p="",gt(gt.s=12)}([function(zt,gt,Xt){(function(Qt,kt){zt.exports=gt=kt()})(0,function(){var Qt=Qt||function(kt,Bt){var xt=Object.create||function(){function rt(){}return function(ut){var ct;return rt.prototype=ut,ct=new rt,rt.prototype=null,ct}}(),Ot={},Rt=Ot.lib={},Ct=Rt.Base=function(){return{extend:function(rt){var ut=xt(this);return rt&&ut.mixIn(rt),ut.hasOwnProperty("init")&&this.init!==ut.init||(ut.init=function(){ut.$super.init.apply(this,arguments)}),ut.init.prototype=ut,ut.$super=this,ut},create:function(){var rt=this.extend();return rt.init.apply(rt,arguments),rt},init:function(){},mixIn:function(rt){for(var ut in rt)rt.hasOwnProperty(ut)&&(this[ut]=rt[ut]);rt.hasOwnProperty("toString")&&(this.toString=rt.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),Lt=Rt.WordArray=Ct.extend({init:function(rt,ut){rt=this.words=rt||[],this.sigBytes=ut!=null?ut:4*rt.length},toString:function(rt){return(rt||It).stringify(this)},concat:function(rt){var ut=this.words,ct=rt.words,ft=this.sigBytes,pt=rt.sigBytes;if(this.clamp(),ft%4)for(var Pt=0;Pt<pt;Pt++){var Dt=ct[Pt>>>2]>>>24-Pt%4*8&255;ut[ft+Pt>>>2]|=Dt<<24-(ft+Pt)%4*8}else for(var Pt=0;Pt<pt;Pt+=4)ut[ft+Pt>>>2]=ct[Pt>>>2];return this.sigBytes+=pt,this},clamp:function(){var rt=this.words,ut=this.sigBytes;rt[ut>>>2]&=4294967295<<32-ut%4*8,rt.length=kt.ceil(ut/4)},clone:function(){var rt=Ct.clone.call(this);return rt.words=this.words.slice(0),rt},random:function(rt){for(var ut,ct=[],ft=0;ft<rt;ft+=4){var pt=function(Dt){var Dt=Dt,Zt=987654321,Ft=4294967295;return function(){Zt=36969*(65535&Zt)+(Zt>>16)&Ft,Dt=18e3*(65535&Dt)+(Dt>>16)&Ft;var qt=(Zt<<16)+Dt&Ft;return qt/=4294967296,(qt+=.5)*(kt.random()>.5?1:-1)}}(4294967296*(ut||kt.random()));ut=987654071*pt(),ct.push(4294967296*pt()|0)}return new Lt.init(ct,rt)}}),At=Ot.enc={},It=At.Hex={stringify:function(rt){for(var ut=rt.words,ct=rt.sigBytes,ft=[],pt=0;pt<ct;pt++){var Pt=ut[pt>>>2]>>>24-pt%4*8&255;ft.push((Pt>>>4).toString(16)),ft.push((15&Pt).toString(16))}return ft.join("")},parse:function(rt){for(var ut=rt.length,ct=[],ft=0;ft<ut;ft+=2)ct[ft>>>3]|=parseInt(rt.substr(ft,2),16)<<24-ft%8*4;return new Lt.init(ct,ut/2)}},mt=At.Latin1={stringify:function(rt){for(var ut=rt.words,ct=rt.sigBytes,ft=[],pt=0;pt<ct;pt++){var Pt=ut[pt>>>2]>>>24-pt%4*8&255;ft.push(String.fromCharCode(Pt))}return ft.join("")},parse:function(rt){for(var ut=rt.length,ct=[],ft=0;ft<ut;ft++)ct[ft>>>2]|=(255&rt.charCodeAt(ft))<<24-ft%4*8;return new Lt.init(ct,ut)}},et=At.Utf8={stringify:function(rt){try{return decodeURIComponent(escape(mt.stringify(rt)))}catch(ut){throw new Error("Malformed UTF-8 data")}},parse:function(rt){return mt.parse(unescape(encodeURIComponent(rt)))}},tt=Rt.BufferedBlockAlgorithm=Ct.extend({reset:function(){this._data=new Lt.init,this._nDataBytes=0},_append:function(rt){typeof rt=="string"&&(rt=et.parse(rt)),this._data.concat(rt),this._nDataBytes+=rt.sigBytes},_process:function(rt){var ut=this._data,ct=ut.words,ft=ut.sigBytes,pt=this.blockSize,Pt=4*pt,Dt=ft/Pt;Dt=rt?kt.ceil(Dt):kt.max((0|Dt)-this._minBufferSize,0);var Zt=Dt*pt,Ft=kt.min(4*Zt,ft);if(Zt){for(var qt=0;qt<Zt;qt+=pt)this._doProcessBlock(ct,qt);var te=ct.splice(0,Zt);ut.sigBytes-=Ft}return new Lt.init(te,Ft)},clone:function(){var rt=Ct.clone.call(this);return rt._data=this._data.clone(),rt},_minBufferSize:0}),st=(Rt.Hasher=tt.extend({cfg:Ct.extend(),init:function(rt){this.cfg=this.cfg.extend(rt),this.reset()},reset:function(){tt.reset.call(this),this._doReset()},update:function(rt){return this._append(rt),this._process(),this},finalize:function(rt){return rt&&this._append(rt),this._doFinalize()},blockSize:16,_createHelper:function(rt){return function(ut,ct){return new rt.init(ct).finalize(ut)}},_createHmacHelper:function(rt){return function(ut,ct){return new st.HMAC.init(rt,ct).finalize(ut)}}}),Ot.algo={});return Ot}(Math);return Qt})},function(zt,gt,Xt){"use strict";function Qt(xt,Ot){if(!(xt instanceof Ot))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(gt,"__esModule",{value:!0});var kt=function(){function xt(Ot,Rt){for(var Ct=0;Ct<Rt.length;Ct++){var Lt=Rt[Ct];Lt.enumerable=Lt.enumerable||!1,Lt.configurable=!0,"value"in Lt&&(Lt.writable=!0),Object.defineProperty(Ot,Lt.key,Lt)}}return function(Ot,Rt,Ct){return Rt&&xt(Ot.prototype,Rt),Ct&&xt(Ot,Ct),Ot}}(),Bt=function(){function xt(){Qt(this,xt)}return kt(xt,null,[{key:"detectIEVersion",value:function(){for(var Ot=4,Rt=document.createElement("div"),Ct=Rt.getElementsByTagName("i");Rt.innerHTML="<!--[if gt IE "+Ot+"]><i></i><![endif]-->",Ct[0];)Ot++;return Ot>4&&Ot}},{key:"extend",value:function(Ot,Rt){for(var Ct in Rt)Object.prototype.hasOwnProperty.call(Rt,Ct)&&Rt[Ct]&&(Ot[Ct]=Rt[Ct])}},{key:"isArray",value:function(Ot){return Object.prototype.toString.call(arg)==="[object Array]"}},{key:"getFileType",value:function(Ot){return Ot=Ot.toLowerCase(),/.mp4|.flv|.m3u8|.avi|.rm|.rmvb|.mpeg|.mpg|.mov|.wmv|.3gp|.asf|.dat|.dv|.f4v|.gif|.m2t|.m4v|.mj2|.mjpeg|.mpe|.mts|.ogg|.qt|.swf|.ts|.vob|.wmv|.webm/.test(Ot)?"video":/.mp3|.wav|.ape|.cda|.au|.midi|.mac|.aac|.ac3|.acm|.amr|.caf|.flac|.m4a|.ra|.wma/.test(Ot)?"audio":/.bmp|.jpg|.jpeg|.png/.test(Ot)?"img":"other"}},{key:"isImage",value:function(Ot){return Ot=Ot.toLowerCase(),!!/.jpg|.jpeg|.png/.test(Ot)}},{key:"ISODateString",value:function(Ot){function Rt(Ct){return Ct<10?"0"+Ct:Ct}return Ot.getUTCFullYear()+"-"+Rt(Ot.getUTCMonth()+1)+"-"+Rt(Ot.getUTCDate())+"T"+Rt(Ot.getUTCHours())+":"+Rt(Ot.getUTCMinutes())+":"+Rt(Ot.getUTCSeconds())+"Z"}},{key:"isIntNum",value:function(Ot){return!!/^\d+$/.test(Ot)}}]),xt}();gt.default=Bt},function(zt,gt,Xt){(function(Qt,kt){zt.exports=gt=kt(Xt(0))})(0,function(Qt){return function(kt){function Bt(st,rt,ut,ct,ft,pt,Pt){var Dt=st+(rt&ut|~rt&ct)+ft+Pt;return(Dt<<pt|Dt>>>32-pt)+rt}function xt(st,rt,ut,ct,ft,pt,Pt){var Dt=st+(rt&ct|ut&~ct)+ft+Pt;return(Dt<<pt|Dt>>>32-pt)+rt}function Ot(st,rt,ut,ct,ft,pt,Pt){var Dt=st+(rt^ut^ct)+ft+Pt;return(Dt<<pt|Dt>>>32-pt)+rt}function Rt(st,rt,ut,ct,ft,pt,Pt){var Dt=st+(ut^(rt|~ct))+ft+Pt;return(Dt<<pt|Dt>>>32-pt)+rt}var Ct=Qt,Lt=Ct.lib,At=Lt.WordArray,It=Lt.Hasher,mt=Ct.algo,et=[];(function(){for(var st=0;st<64;st++)et[st]=4294967296*kt.abs(kt.sin(st+1))|0})();var tt=mt.MD5=It.extend({_doReset:function(){this._hash=new At.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(st,rt){for(var ut=0;ut<16;ut++){var ct=rt+ut,ft=st[ct];st[ct]=16711935&(ft<<8|ft>>>24)|4278255360&(ft<<24|ft>>>8)}var pt=this._hash.words,Pt=st[rt+0],Dt=st[rt+1],Zt=st[rt+2],Ft=st[rt+3],qt=st[rt+4],te=st[rt+5],Gt=st[rt+6],ce=st[rt+7],ae=st[rt+8],xe=st[rt+9],ye=st[rt+10],Te=st[rt+11],me=st[rt+12],He=st[rt+13],fe=st[rt+14],$t=st[rt+15],ie=pt[0],ue=pt[1],ge=pt[2],he=pt[3];ie=Bt(ie,ue,ge,he,Pt,7,et[0]),he=Bt(he,ie,ue,ge,Dt,12,et[1]),ge=Bt(ge,he,ie,ue,Zt,17,et[2]),ue=Bt(ue,ge,he,ie,Ft,22,et[3]),ie=Bt(ie,ue,ge,he,qt,7,et[4]),he=Bt(he,ie,ue,ge,te,12,et[5]),ge=Bt(ge,he,ie,ue,Gt,17,et[6]),ue=Bt(ue,ge,he,ie,ce,22,et[7]),ie=Bt(ie,ue,ge,he,ae,7,et[8]),he=Bt(he,ie,ue,ge,xe,12,et[9]),ge=Bt(ge,he,ie,ue,ye,17,et[10]),ue=Bt(ue,ge,he,ie,Te,22,et[11]),ie=Bt(ie,ue,ge,he,me,7,et[12]),he=Bt(he,ie,ue,ge,He,12,et[13]),ge=Bt(ge,he,ie,ue,fe,17,et[14]),ue=Bt(ue,ge,he,ie,$t,22,et[15]),ie=xt(ie,ue,ge,he,Dt,5,et[16]),he=xt(he,ie,ue,ge,Gt,9,et[17]),ge=xt(ge,he,ie,ue,Te,14,et[18]),ue=xt(ue,ge,he,ie,Pt,20,et[19]),ie=xt(ie,ue,ge,he,te,5,et[20]),he=xt(he,ie,ue,ge,ye,9,et[21]),ge=xt(ge,he,ie,ue,$t,14,et[22]),ue=xt(ue,ge,he,ie,qt,20,et[23]),ie=xt(ie,ue,ge,he,xe,5,et[24]),he=xt(he,ie,ue,ge,fe,9,et[25]),ge=xt(ge,he,ie,ue,Ft,14,et[26]),ue=xt(ue,ge,he,ie,ae,20,et[27]),ie=xt(ie,ue,ge,he,He,5,et[28]),he=xt(he,ie,ue,ge,Zt,9,et[29]),ge=xt(ge,he,ie,ue,ce,14,et[30]),ue=xt(ue,ge,he,ie,me,20,et[31]),ie=Ot(ie,ue,ge,he,te,4,et[32]),he=Ot(he,ie,ue,ge,ae,11,et[33]),ge=Ot(ge,he,ie,ue,Te,16,et[34]),ue=Ot(ue,ge,he,ie,fe,23,et[35]),ie=Ot(ie,ue,ge,he,Dt,4,et[36]),he=Ot(he,ie,ue,ge,qt,11,et[37]),ge=Ot(ge,he,ie,ue,ce,16,et[38]),ue=Ot(ue,ge,he,ie,ye,23,et[39]),ie=Ot(ie,ue,ge,he,He,4,et[40]),he=Ot(he,ie,ue,ge,Pt,11,et[41]),ge=Ot(ge,he,ie,ue,Ft,16,et[42]),ue=Ot(ue,ge,he,ie,Gt,23,et[43]),ie=Ot(ie,ue,ge,he,xe,4,et[44]),he=Ot(he,ie,ue,ge,me,11,et[45]),ge=Ot(ge,he,ie,ue,$t,16,et[46]),ue=Ot(ue,ge,he,ie,Zt,23,et[47]),ie=Rt(ie,ue,ge,he,Pt,6,et[48]),he=Rt(he,ie,ue,ge,ce,10,et[49]),ge=Rt(ge,he,ie,ue,fe,15,et[50]),ue=Rt(ue,ge,he,ie,te,21,et[51]),ie=Rt(ie,ue,ge,he,me,6,et[52]),he=Rt(he,ie,ue,ge,Ft,10,et[53]),ge=Rt(ge,he,ie,ue,ye,15,et[54]),ue=Rt(ue,ge,he,ie,Dt,21,et[55]),ie=Rt(ie,ue,ge,he,ae,6,et[56]),he=Rt(he,ie,ue,ge,$t,10,et[57]),ge=Rt(ge,he,ie,ue,Gt,15,et[58]),ue=Rt(ue,ge,he,ie,He,21,et[59]),ie=Rt(ie,ue,ge,he,qt,6,et[60]),he=Rt(he,ie,ue,ge,Te,10,et[61]),ge=Rt(ge,he,ie,ue,Zt,15,et[62]),ue=Rt(ue,ge,he,ie,xe,21,et[63]),pt[0]=pt[0]+ie|0,pt[1]=pt[1]+ue|0,pt[2]=pt[2]+ge|0,pt[3]=pt[3]+he|0},_doFinalize:function(){var st=this._data,rt=st.words,ut=8*this._nDataBytes,ct=8*st.sigBytes;rt[ct>>>5]|=128<<24-ct%32;var ft=kt.floor(ut/4294967296),pt=ut;rt[15+(ct+64>>>9<<4)]=16711935&(ft<<8|ft>>>24)|4278255360&(ft<<24|ft>>>8),rt[14+(ct+64>>>9<<4)]=16711935&(pt<<8|pt>>>24)|4278255360&(pt<<24|pt>>>8),st.sigBytes=4*(rt.length+1),this._process();for(var Pt=this._hash,Dt=Pt.words,Zt=0;Zt<4;Zt++){var Ft=Dt[Zt];Dt[Zt]=16711935&(Ft<<8|Ft>>>24)|4278255360&(Ft<<24|Ft>>>8)}return Pt},clone:function(){var st=It.clone.call(this);return st._hash=this._hash.clone(),st}});Ct.MD5=It._createHelper(tt),Ct.HmacMD5=It._createHmacHelper(tt)}(Math),Qt.MD5})},function(zt,gt,Xt){"use strict";Object.defineProperty(gt,"__esModule",{value:!0}),gt.UPLOADSTATE={INIT:"init",UPLOADING:"uploading",COMPLETE:"complete",INTERRUPT:"interrupt"},gt.UPLOADSTEP={INIT:"init",PART:"part",COMPLETE:"complete"},gt.UPLOADDEFAULT={PARALLEL:5,PARTSIZE:1048576}},function(zt,gt,Xt){"use strict";function Qt(tt){return tt&&tt.__esModule?tt:{default:tt}}function kt(tt,st){if(!(tt instanceof st))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(gt,"__esModule",{value:!0});var Bt=function(){function tt(st,rt){for(var ut=0;ut<rt.length;ut++){var ct=rt[ut];ct.enumerable=ct.enumerable||!1,ct.configurable=!0,"value"in ct&&(ct.writable=!0),Object.defineProperty(st,ct.key,ct)}}return function(st,rt,ut){return rt&&tt(st.prototype,rt),ut&&tt(st,ut),st}}(),xt=Xt(5),Ot=Qt(xt),Rt=Xt(25),Ct=Qt(Rt),Lt=Xt(6),At=Qt(Lt),It=Xt(7),mt=Qt(It),et=function(){function tt(st){kt(this,tt);var rt=mt.default.os.name,ut=mt.default.os.version||"",ct=mt.default.browser.name,ft=mt.default.browser.version||"",pt=window.location.href,Pt="";pt&&(Pt=mt.default.getHost(pt));var Dt="pc";mt.default.os.ipad?Dt="pad":(mt.default.os.iphone||mt.default.os.android)&&(Dt="phone"),this._ri=Ot.default.create(),this.initParam={APIVersion:"0.6.0",lv:"1",av:At.default.version,pd:"upload",sm:"upload",md:"uploader",uuid:tt.getUuid(),os:rt,ov:ut,et:ct,ev:ft,uat:navigator.userAgent,app_n:Pt,tt:Dt,dm:"h5",ut:""}}return Bt(tt,[{key:"log",value:function(st,rt){rt&&rt.ri?(this._ri=rt.ri,delete rt.ri):this._ri=Ot.default.create(),rt&&rt.ut&&(this.initParam.ut=rt.ut,delete rt.ut),this.initParam.t=new Date().getTime(),this.initParam.ll=st=="20006"?"error":"info",this.initParam.ri=this._ri,this.initParam.e=st;var ut=[];if(rt)for(var ct in rt)ut.push(ct+"="+rt[ct]);var ft=ut.join("&");this.initParam.args=encodeURIComponent(ft==""?"0":ft);var pt=[];for(var ct in this.initParam)pt.push(ct+"="+this.initParam[ct]);var Pt=pt.join("&");AliyunUpload&&AliyunUpload.__logTestCallback__?AliyunUpload.__logTestCallback__(Pt):new Image(0,0).src="https://videocloud.cn-hangzhou.log.aliyuncs.com/logstores/upload/track?"+Pt}}],[{key:"getUuid",value:function(){var st=Ct.default.get("p_h5_upload_u");return st||(st=Ot.default.create(),Ct.default.set("p_h5_upload_u",st,730)),st}},{key:"getClientId",value:function(){return Ct.default.get("p_h5_upload_clientId")}},{key:"setClientId",value:function(st){return st||(st=Ot.default.create()),Ct.default.set("p_h5_upload_clientId",st,730),st}}]),tt}();gt.default=et},function(zt,gt,Xt){"use strict";function Qt(xt,Ot){if(!(xt instanceof Ot))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(gt,"__esModule",{value:!0});var kt=function(){function xt(Ot,Rt){for(var Ct=0;Ct<Rt.length;Ct++){var Lt=Rt[Ct];Lt.enumerable=Lt.enumerable||!1,Lt.configurable=!0,"value"in Lt&&(Lt.writable=!0),Object.defineProperty(Ot,Lt.key,Lt)}}return function(Ot,Rt,Ct){return Rt&&xt(Ot.prototype,Rt),Ct&&xt(Ot,Ct),Ot}}(),Bt=function(){function xt(){Qt(this,xt)}return kt(xt,null,[{key:"create",value:function(Ot,Rt){var Ct,Lt="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),At=[];if(Rt=Rt||Lt.length,Ot)for(Ct=0;Ct<Ot;Ct++)At[Ct]=Lt[0|Math.random()*Rt];else{var It;for(At[8]=At[13]=At[18]=At[23]="-",At[14]="4",Ct=0;Ct<36;Ct++)At[Ct]||(It=0|16*Math.random(),At[Ct]=Lt[Ct==19?3&It|8:It])}return At.join("")}}]),xt}();gt.default=Bt},function(zt,gt,Xt){"use strict";Object.defineProperty(gt,"__esModule",{value:!0});var Qt={version:"1.5.0"};gt.default=Qt},function(zt,gt,Xt){"use strict";function Qt(Lt,At){if(!(Lt instanceof At))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(gt,"__esModule",{value:!0});var kt=function(){function Lt(At,It){for(var mt=0;mt<It.length;mt++){var et=It[mt];et.enumerable=et.enumerable||!1,et.configurable=!0,"value"in et&&(et.writable=!0),Object.defineProperty(At,et.key,et)}}return function(At,It,mt){return It&&Lt(At.prototype,It),mt&&Lt(At,mt),At}}(),Bt=function(Lt){var At=navigator.userAgent,It="other";if(Lt.ios)return"iOS";if(Lt.android)return"android";if(At.indexOf("Baiduspider")>-1)return"Baiduspider";if(At.indexOf("PlayStation")>-1)return"PS4";var mt=navigator.platform=="Win32"||navigator.platform=="Windows"||At.indexOf("Windows")>-1,et=navigator.platform=="Mac68K"||navigator.platform=="MacPPC"||navigator.platform=="Macintosh"||navigator.platform=="MacIntel";return et&&(It="macOS"),navigator.platform=="X11"&&!mt&&!et&&(It="Unix"),String(navigator.platform).indexOf("Linux")>-1&&(It="Linux"),mt?"windows":It},xt=function(){var Lt=navigator.userAgent,At="";return(Lt.indexOf("Windows NT 5.0")>-1||Lt.indexOf("Windows 2000")>-1)&&(At="2000"),(Lt.indexOf("Windows NT 5.1")>-1||Lt.indexOf("Windows XP")>-1)&&(At="XP"),(Lt.indexOf("Windows NT 5.2")>-1||Lt.indexOf("Windows 2003")>-1)&&(At="2003"),(Lt.indexOf("Windows NT 6.0")>-1||Lt.indexOf("Windows Vista")>-1)&&(At="Vista"),(Lt.indexOf("Windows NT 6.1")>-1||Lt.indexOf("Windows 7")>-1)&&(At="7"),(Lt.indexOf("Windows NT 6.2")>-1||Lt.indexOf("Windows 8")>-1)&&(At="8"),(Lt.indexOf("Windows NT 6.3")>-1||Lt.indexOf("Windows 8.1")>-1)&&(At="8.1"),(Lt.indexOf("Windows NT 10")>-1||Lt.indexOf("Windows 10")>-1)&&(At="10"),At},Ot=function(Lt){var At=navigator.userAgent.toLowerCase();return Lt.chrome?"Chrome":Lt.firefox?"Firefox":Lt.safari?"Safari":Lt.webview?"webview":Lt.ie?/edge/.test(At)?"Edge":"IE":/baiduspider/.test(At)?"Baiduspider":/ucweb/.test(At)||/UCBrowser/.test(At)?"UC":/opera/.test(At)?"Opera":/ucweb/.test(At)?"UC":/360se/.test(At)?"360\u6D4F\u89C8\u5668":/bidubrowser/.test(At)?"\u767E\u5EA6\u6D4F\u89C8\u5668":/metasr/.test(At)?"\u641C\u72D7\u6D4F\u89C8\u5668":/lbbrowser/.test(At)?"\u730E\u8C79\u6D4F\u89C8\u5668":/micromessenger/.test(At)?"\u5FAE\u4FE1\u5185\u7F6E\u6D4F\u89C8\u5668":/qqbrowser/.test(At)?"QQ\u6D4F\u89C8\u5668":/playstation/.test(At)?"PS4\u6D4F\u89C8\u5668":void 0},Rt=function(){var Lt={},At={},It=navigator.userAgent,mt=navigator.platform,et=It.match(/Web[kK]it[\/]{0,1}([\d.]+)/),tt=It.match(/(Android);?[\s\/]+([\d.]+)?/),st=!!It.match(/\(Macintosh\; Intel /),rt=It.match(/(iPad).*OS\s([\d_]+)/),ut=It.match(/(iPod)(.*OS\s([\d_]+))?/),ct=!rt&&It.match(/(iPhone\sOS)\s([\d_]+)/),ft=It.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),pt=/Win\d{2}|Windows/.test(mt),Pt=It.match(/Windows Phone ([\d.]+)/),Dt=ft&&It.match(/TouchPad/),Zt=It.match(/Kindle\/([\d.]+)/),Ft=It.match(/Silk\/([\d._]+)/),qt=It.match(/(BlackBerry).*Version\/([\d.]+)/),te=It.match(/(BB10).*Version\/([\d.]+)/),Gt=It.match(/(RIM\sTablet\sOS)\s([\d.]+)/),ce=It.match(/PlayBook/),ae=It.match(/Chrome\/([\d.]+)/)||It.match(/CriOS\/([\d.]+)/),xe=It.match(/Firefox\/([\d.]+)/),ye=It.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),Te=It.match(/MSIE\s([\d.]+)/)||It.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),me=!ae&&It.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),He=me||It.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);if((At.webkit=!!et)&&(At.version=et[1]),tt&&(Lt.android=!0,Lt.version=tt[2]),ct&&!ut&&(Lt.ios=Lt.iphone=!0,Lt.version=ct[2].replace(/_/g,".")),rt&&(Lt.ios=Lt.ipad=!0,Lt.version=rt[2].replace(/_/g,".")),ut&&(Lt.ios=Lt.ipod=!0,Lt.version=ut[3]?ut[3].replace(/_/g,"."):null),Pt&&(Lt.wp=!0,Lt.version=Pt[1]),ft&&(Lt.webos=!0,Lt.version=ft[2]),Dt&&(Lt.touchpad=!0),qt&&(Lt.blackberry=!0,Lt.version=qt[2]),te&&(Lt.bb10=!0,Lt.version=te[2]),Gt&&(Lt.rimtabletos=!0,Lt.version=Gt[2]),ce&&(At.playbook=!0),Zt&&(Lt.kindle=!0,Lt.version=Zt[1]),Ft&&(At.silk=!0,At.version=Ft[1]),!Ft&&Lt.android&&It.match(/Kindle Fire/)&&(At.silk=!0),ae&&(At.chrome=!0,At.version=ae[1]),xe&&(At.firefox=!0,At.version=xe[1]),ye&&(Lt.firefoxos=!0,Lt.version=ye[1]),Te&&(At.ie=!0,At.version=Te[1]),He&&(st||Lt.ios||pt||tt)&&(At.safari=!0,Lt.ios||(At.version=He[1])),me&&(At.webview=!0),st){var fe=It.match(/[\d]*_[\d]*_[\d]*/);fe&&fe.length>0&&fe[0]&&(Lt.version=fe[0].replace(/_/g,"."))}return Lt.tablet=!!(rt||ce||tt&&!It.match(/Mobile/)||xe&&It.match(/Tablet/)||Te&&!It.match(/Phone/)&&It.match(/Touch/)),Lt.phone=!(Lt.tablet||Lt.ipod||!(tt||ct||ft||qt||te||ae&&It.match(/Android/)||ae&&It.match(/CriOS\/([\d.]+)/)||xe&&It.match(/Mobile/)||Te&&It.match(/Touch/))),Lt.pc=!Lt.tablet&&!Lt.phone,st?Lt.name="macOS":pt?(Lt.name="windows",Lt.version=xt()):Lt.name=Bt(Lt),At.name=Ot(At),{os:Lt,browser:At}}(),Ct=function(){function Lt(){Qt(this,Lt)}return kt(Lt,null,[{key:"getHost",value:function(At){var et="";if(At===void 0||At==null||At=="")return"";var It=At.indexOf("//"),mt=At;It>-1&&(mt=At.substring(It+2));var et=mt,tt=mt.split("/");return tt&&tt.length>0&&(et=tt[0]),tt=et.split(":"),tt&&tt.length>0&&(et=tt[0]),et}},{key:"os",get:function(){return Rt.os}},{key:"browser",get:function(){var At=Rt.browser;return At.name||(At.name=Ot()),At}}]),Lt}();gt.default=Ct},function(zt,gt,Xt){"use strict";function Qt(xt,Ot){if(!(xt instanceof Ot))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(gt,"__esModule",{value:!0});var kt=function(){function xt(Ot,Rt){for(var Ct=0;Ct<Rt.length;Ct++){var Lt=Rt[Ct];Lt.enumerable=Lt.enumerable||!1,Lt.configurable=!0,"value"in Lt&&(Lt.writable=!0),Object.defineProperty(Ot,Lt.key,Lt)}}return function(Ot,Rt,Ct){return Rt&&xt(Ot.prototype,Rt),Ct&&xt(Ot,Ct),Ot}}(),Bt=function(){function xt(){Qt(this,xt)}return kt(xt,null,[{key:"get",value:function(Ot,Rt,Ct,Lt,At){var It;Ct=Ct||function(){},typeof XMLHttpRequest=="undefined"&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(mt){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(mt){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(mt){}throw new Error("This browser does not support XMLHttpRequest.")}),It=new XMLHttpRequest,It.onreadystatechange=function(){It.readyState===4&&(It.status===200?Rt(It.responseText):Ct(It.responseText))};try{Lt===void 0&&(Lt=!0),It.open("GET",Ot,Lt),At&&(It.withCredentials=!0)}catch(mt){return void Ct(mt)}try{It.send()}catch(mt){Ct(mt)}}}]),xt}();gt.default=Bt},function(zt,gt,Xt){"use strict";function Qt(Rt,Ct){if(!(Rt instanceof Ct))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(gt,"__esModule",{value:!0});var kt=function(){function Rt(Ct,Lt){for(var At=0;At<Lt.length;At++){var It=Lt[At];It.enumerable=It.enumerable||!1,It.configurable=!0,"value"in It&&(It.writable=!0),Object.defineProperty(Ct,It.key,It)}}return function(Ct,Lt,At){return Lt&&Rt(Ct.prototype,Lt),At&&Rt(Ct,At),Ct}}(),Bt=Xt(27),xt=Xt(30),Ot=(Xt(10),function(){function Rt(){Qt(this,Rt)}return kt(Rt,null,[{key:"randomUUID",value:function(){for(var Ct=[],Lt="0123456789abcdef",At=0;At<36;At++)Ct[At]=Lt.substr(Math.floor(16*Math.random()),1);return Ct[14]="4",Ct[19]=Lt.substr(3&Ct[19]|8,1),Ct[8]=Ct[13]=Ct[18]=Ct[23]="-",Ct.join("")}},{key:"aliyunEncodeURI",value:function(Ct){var Lt=encodeURIComponent(Ct);return Lt=Lt.replace(/\+/g,"%20").replace(/\*/g,"%2A").replace(/%7E/g,"~").replace(/!/g,"%21").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/'/g,"%27")}},{key:"makeUTF8sort",value:function(Ct,Lt,At){if(!Ct)throw new Error("PrismPlayer Error: vid should not be null!");var It=[];for(var mt in Ct)It.push(mt);for(var et=It.sort(),tt="",st=et.length,mt=0;mt<st;mt++){var rt=Rt.aliyunEncodeURI(et[mt]),ut=Rt.aliyunEncodeURI(Ct[et[mt]]);tt==""?tt=rt+Lt+ut:tt+=At+rt+Lt+ut}return tt}},{key:"makeChangeSiga",value:function(Ct,Lt){if(!Ct)throw new Error("PrismPlayer Error: vid should not be null!");return xt.stringify(Bt("GET&"+Rt.aliyunEncodeURI("/")+"&"+Rt.aliyunEncodeURI(Rt.makeUTF8sort(Ct,"=","&")),Lt+"&"))}}]),Rt}());gt.default=Ot},function(zt,gt,Xt){(function(Qt,kt){zt.exports=gt=kt(Xt(0))})(0,function(Qt){return Qt.enc.Utf8})},function(zt,gt,Xt){(function(Qt,kt){zt.exports=gt=kt(Xt(0))})(0,function(Qt){return Qt.enc.Hex})},function(zt,gt,Xt){zt.exports=Xt(13)},function(zt,gt,Xt){"use strict";var Qt,kt,Bt=Xt(14),xt=function(Rt){return Rt&&Rt.__esModule?Rt:{default:Rt}}(Bt),Ot={Vod:xt.default};Qt=[],(kt=function(){return Ot}.apply(gt,Qt))!==void 0&&(zt.exports=kt),window.AliyunUpload=Ot,Tn.exports=AliyunUpload},function(zt,gt,Xt){"use strict";function Qt(te){return te&&te.__esModule?te:{default:te}}function kt(te,Gt){if(!(te instanceof Gt))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(gt,"__esModule",{value:!0});var Bt=function(){function te(Gt,ce){for(var ae=0;ae<ce.length;ae++){var xe=ce[ae];xe.enumerable=xe.enumerable||!1,xe.configurable=!0,"value"in xe&&(xe.writable=!0),Object.defineProperty(Gt,xe.key,xe)}}return function(Gt,ce,ae){return ce&&te(Gt.prototype,ce),ae&&te(Gt,ae),Gt}}(),xt=Xt(15),Ot=Xt(3),Rt=Xt(16),Ct=Qt(Rt),Lt=Xt(18),At=Qt(Lt),It=Xt(24),mt=Qt(It),et=Xt(4),tt=Qt(et),st=Xt(1),rt=Qt(st),ut=Xt(5),ct=Qt(ut),ft=Xt(26),pt=Qt(ft),Pt=Xt(31),Dt=Qt(Pt),Zt=Xt(32),Ft=Qt(Zt),qt=(Xt(2),function(){function te(Gt){kt(this,te),this.options=Gt,this.options.partSize=this.options.partSize||Ot.UPLOADDEFAULT.PARTSIZE,this.options.parallel=this.options.parallel||Ot.UPLOADDEFAULT.PARALLEL,this.options.region=this.options.region||"cn-shanghai",this.options.cname=this.options.cname||!1,this.options.localCheckpoint=this.options.localCheckpoint||!1,this.options.enableUploadProgress===void 0&&(this.options.enableUploadProgress=!0),this._ossCreditor=new Object,this._state=xt.VODSTATE.INIT,this._uploadList=[],this._curIndex=-1,this._ossUpload=null,this._log=new tt.default,this._retryCount=0,this._retryTotal=this.options.retryCount||3,this._retryDuration=this.options.retryDuration||2,this._state=xt.VODSTATE.INIT,this._uploadWay="vod",this._onbeforeunload=!1,this._invalidUserId=!1,this._initEvent()}return Bt(te,[{key:"init",value:function(Gt,ce,ae,xe){return this._retryCount=0,!(ae&&!xe||!ae&&xe)&&!(Gt&&!ce||!Gt&&ce)&&(this._ossCreditor.accessKeyId=Gt,this._ossCreditor.accessKeySecret=ce,this._ossCreditor.securityToken=ae,this._ossCreditor.expireTime=xe,!0)}},{key:"addFile",value:function(Gt,ce,ae,xe,ye,Te){if(!Gt)return!1;if(Gt.size==0)try{this.options.onUploadFailed({file:Gt},"EmptyFile","\u6587\u4EF6\u5927\u5C0F\u4E3A0\uFF0C\u4E0D\u80FD\u4E0A\u4F20")}catch($t){console.log($t)}for(var me=(this.options,0);me<this._uploadList.length;me++)if(this._uploadList[me].file==Gt)return!1;var He=new Object;if(He.file=Gt,He._endpoint=ce,He._bucket=ae,He._object=xe,He.state=xt.UPLOADSTATE.INIT,He.isImage=rt.default.isImage(Gt.name),!He.isImage&&this.options.enableUploadProgress){var fe=this;Ft.default.getMd5(Gt,function($t){He.fileHash=$t;var ie=fe._getCheckoutpoint(He);fe.options.localCheckpoint||ie||fe._getCheckoutpointFromCloud(He,function(ue){if(ue.UploadPoint){var ge=JSON.parse(ue.UploadPoint);ge.loaded!=1&&(He.checkpoint=ge.checkpoint,He.loaded=ge.loaded,He.videoId=ue.VideoId,fe._saveCheckoutpoint(He,ge.checkpoint))}},function(ue){try{if((ue=JSON.parse(ue))&&ue.Code=="InvalidParameter"&&ue.Message.indexOf("UserId")>0){fe._invalidUserId=!0;var ge=ue.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(ge)}}catch(he){console.log(he)}})})}ye&&(He.videoInfo=ye?JSON.parse(ye).Vod:{},He.userData=At.default.encode(ye)),He.ri=ct.default.create(),this._uploadList.push(He),this._reportLog("20001",He,{ql:this._uploadList.length});try{this.options.addFileSuccess&&this.options.addFileSuccess(He)}catch($t){console.log($t)}return!0}},{key:"deleteFile",value:function(Gt){return!!this.cancelFile(Gt)&&(this._uploadList.splice(Gt,1),!0)}},{key:"cleanList",value:function(){this.stopUpload(),this._uploadList.length=0,this._curIndex=-1}},{key:"cancelFile",value:function(Gt){if(this.options,Gt<0||Gt>=this._uploadList.length)return!1;var ce=this._uploadList[Gt];if(Gt==this._curIndex&&ce.state==xt.UPLOADSTATE.UPLOADING){ce.state=xt.UPLOADSTATE.CANCELED;var ae=this._getCheckoutpoint(ce);ae&&ae.checkpoint&&(ae=ae.checkpoint),ae&&this._ossUpload.abort(ce),this._removeCheckoutpoint(ce),this.nextUpload()}else ce.state!=xt.UPLOADSTATE.SUCCESS&&(ce.state=xt.UPLOADSTATE.CANCELED);return this._reportLog("20008",ce),!0}},{key:"resumeFile",value:function(Gt){if(this.options,Gt<0||Gt>=this._uploadList.length)return!1;var ce=this._uploadList[Gt];return ce.state==xt.UPLOADSTATE.CANCELED&&(ce.state=xt.UPLOADSTATE.INIT,!0)}},{key:"listFiles",value:function(){return this._uploadList}},{key:"getCheckpoint",value:function(Gt){return this._getCheckoutpoint({file:Gt})}},{key:"startUpload",value:function(Gt){if(this._retryCount=0,this.options,this._state==xt.VODSTATE.START||this._state==xt.VODSTATE.EXPIRE)return void console.log("already started or expired");if(this._initState(),this._curIndex=this._findUploadIndex(),this._curIndex==-1)return void(this._state=xt.VODSTATE.END);var ce=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(ce),this._state=xt.VODSTATE.START}},{key:"nextUpload",value:function(){var Gt=this.options;if(this._state==xt.VODSTATE.START)if(this._curIndex=this._findUploadIndex(),this._curIndex!=-1){var ce=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(ce)}else{this._state=xt.VODSTATE.END;try{Gt.onUploadEnd&&Gt.onUploadEnd(ce)}catch(ae){console.log(ae)}}}},{key:"clear",value:function(Gt){for(var ce=this.options,ae=0,xe=0;xe<this._uploadList.length;xe++)ce.uploadList[xe].state==xt.UPLOADSTATE.SUCCESS&&ae++,this._uploadList[xe].state==Gt&&(ce.uploadList.splice(xe,1),xe--);ce.onClear&&ce.onClear(ce.uploadList.length,ae)}},{key:"stopUpload",value:function(){if((this._state==xt.VODSTATE.START||this._state==xt.VODSTATE.FAILURE||this._curIndex==-1)&&this._curIndex!=-1){var Gt=this._uploadList[this._curIndex];this._state=xt.VODSTATE.STOP,Gt.state=xt.UPLOADSTATE.STOPED,this._changeState(Gt,xt.UPLOADSTATE.STOPED),this._ossUpload.cancel()}}},{key:"resumeUploadWithAuth",value:function(Gt){var ce=this;if(!Gt)return!1;var ae=JSON.parse(At.default.decode(Gt));return!!(ae.AccessKeyId&&ae.AccessKeySecret&&ae.SecurityToken&&ae.Expiration)&&ce.resumeUploadWithToken(ae.AccessKeyId,ae.AccessKeySecret,ae.SecurityToken,ae.Expiration)}},{key:"resumeUploadWithToken",value:function(Gt,ce,ae,xe){if(this.options,!(Gt&&ce&&ae&&xe)||this._state!=xt.VODSTATE.EXPIRE||this._curIndex==-1)return!1;var ye="";return this._uploadList.length>this._curIndex&&(ye=this._uploadList[this._curIndex]),ye&&(this.init(Gt,ce,ae,xe),this._state=xt.VODSTATE.START,this._ossUpload=null,this._uploadCore(ye,ye.retry),ye.retry=!1),!0}},{key:"resumeUploadWithSTSToken",value:function(Gt,ce,ae){if(this._curIndex==-1||this._state!=xt.VODSTATE.EXPIRE)return!1;if(this._uploadList.length>this._curIndex){var xe=this._uploadList[this._curIndex];xe.object?this._refreshSTSTokenUpload(xe,Gt,ce,ae):this.setSTSToken(xe,Gt,ce,ae)}}},{key:"setSTSTokenDirectlyUpload",value:function(Gt,ce,ae,xe,ye){if(!(ce&&ae&&xe&&ye))return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken and expiration should not be empty."),!1;this._ut="oss";var Te=Gt;this.init(ce,ae,xe,ye),Te.endpoint=Te._endpoint,Te.bucket=Te._bucket,Te.object=Te._object,this._ossUpload=null,this._uploadCore(Te,Gt.retry),Gt.retry=!1}},{key:"setSTSToken",value:function(Gt,ce,ae,xe){if(!ce||!ae||!xe)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;this._ut="vod",this._uploadWay="sts";var ye=Gt.videoInfo,Te={accessKeyId:ce,securityToken:xe,accessKeySecret:ae,fileName:Gt.file.name,title:ye.Title,requestId:Gt.ri,region:this.options.region};ye.ImageType&&(Te.imageType=ye.ImageType),ye.ImageExt&&(Te.imageExt=ye.ImageExt),ye.FileSize&&(Te.fileSize=ye.FileSize),ye.Description&&(Te.description=ye.Description),ye.CateId&&(Te.cateId=ye.CateId),ye.Tags&&(Te.tags=ye.Tags),ye.TemplateGroupId&&(Te.templateGroupId=ye.TemplateGroupId),ye.StorageLocation&&(Te.storageLocation=ye.StorageLocation),ye.CoverURL&&(Te.coverUrl=ye.CoverURL),ye.TransCodeMode&&(Te.transCodeMode=ye.TransCodeMode),ye.UserData&&(Te.userData=ye.UserData);var me=this,He="getUploadAuth";Gt.videoId?(Te.videoId=Gt.videoId,He="refreshUploadAuth"):Gt.isImage&&(He="getImageUploadAuth"),pt.default[He](Te,function(fe){Gt.videoId=fe.VideoId?fe.VideoId:Gt.videoId,me.setUploadAuthAndAddress(Gt,fe.UploadAuth,fe.UploadAddress),me._state=xt.VODSTATE.START},function(fe){me._error(Gt,{name:fe.Code,code:fe.Code,message:fe.Message,requestId:fe.RequestId})})}},{key:"setUploadAuthAndAddress",value:function(Gt,ce,ae,xe){if(!Gt||!ce||!ae)return!1;var ye=JSON.parse(At.default.decode(ce));if(!(ye.AccessKeyId&&ye.AccessKeySecret&&ye.SecurityToken&&ye.Expiration))return console.error("uploadauth is invalid"),!1;var Te={},me=Gt;if(ae){if(Te=JSON.parse(At.default.decode(ae)),!Te.Endpoint||!Te.Bucket||!Te.FileName)return console.error("uploadAddress is invalid"),!1}else Te.Endpoint=me.endpoint,Te.Bucket=me.bucket,Te.FileName=me.object;this._ut="vod",this._uploadWay="vod",this.options.region=ye.Region||this.options.region,this.init(ye.AccessKeyId,ye.AccessKeySecret,ye.SecurityToken,ye.Expiration),me.endpoint=me._endpoint?me._endpoint:Te.Endpoint,me.bucket=me._bucket?me._bucket:Te.Bucket,me.object=me._object?me._object:Te.FileName,me.region=this.options.region,xe&&(me.videoId=xe),this._ossUpload=null,this._uploadCore(me,Gt.retry),Gt.retry=!1}},{key:"_refreshSTSTokenUpload",value:function(Gt,ce,ae,xe){if(!ce||!ae||!xe)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;var ye={accessKeyId:ce,securityToken:xe,accessKeySecret:ae,videoId:Gt.object,requestId:Gt.ri,region:this.options.region},Te=this,me="refreshUploadAuth";Gt.isImage&&(me="getImageUploadAuth"),pt.default[me](ye,function(He){Te.setUploadAuthAndAddress(Gt,He.UploadAuth,UploadAddress),Te._state=xt.VODSTATE.START},function(He){Te._error(Gt,{name:He.Code,code:He.Code,message:He.Message,requestId:He.RequestId})})}},{key:"_upload",value:function(Gt){var ce=arguments.length>1&&arguments[1]!==void 0&&arguments[1],ae=this.options;if(Gt.retry=ce,ae.onUploadstarted&&!ce)try{var xe=this._getCheckoutpoint(Gt);xe&&xe.state!=xt.UPLOADSTATE.UPLOADING&&(Gt.checkpoint=xe,Gt.videoId=xe.videoId),ae.onUploadstarted(Gt)}catch(ye){console.log(ye)}}},{key:"_uploadCore",value:function(Gt){if(arguments.length>1&&arguments[1]!==void 0&&arguments[1],!this._ossCreditor.accessKeyId||!this._ossCreditor.accessKeySecret||!this._ossCreditor.securityToken)throw new Error("AccessKeyId\u3001AccessKeySecret\u3001securityToken should not be null");if(Gt.state=xt.UPLOADSTATE.UPLOADING,!this._ossUpload){Gt.endpoint=Gt.endpoint||"http://oss-cn-hangzhou.aliyuncs.com";var ce=this;this._ossUpload=new Ct.default({bucket:Gt.bucket,endpoint:Gt.endpoint,AccessKeyId:this._ossCreditor.accessKeyId,AccessKeySecret:this._ossCreditor.accessKeySecret,SecurityToken:this._ossCreditor.securityToken,timeout:this.options.timeout,cname:this.options.cname},{onerror:function(fe,$t){ce._error.call(ce,fe,$t)},oncomplete:function(fe,$t){ce._complete.call(ce,fe,$t)},onprogress:function(fe,$t,ie){ce._progress.call(ce,fe,$t,ie)}})}var ae=rt.default.getFileType(Gt.file.name),xe=this._getCheckoutpoint(Gt),ye="",Te="";xe&&xe.checkpoint&&(Te=xe.state,ye=xe.videoId,xe=xe.checkpoint),xe&&ye==Gt.videoId&&Te!=xt.UPLOADSTATE.UPLOADING&&(xe.file=Gt.file,Gt.checkpoint=xe,xe.uploadId);var me=this._adjustPartSize(Gt);this._reportLog("20002",Gt,{ft:ae,fs:Gt.file.size,bu:Gt.bucket,ok:Gt.object,vid:Gt.videoId||"",fn:Gt.file.name,fw:null,fh:null,ps:me});var He={headers:{"x-oss-notification":Gt.userData?Gt.userData:""},partSize:me,parallel:this.options.parallel};this._ossUpload.upload(Gt,He)}},{key:"_findUploadIndex",value:function(){for(var Gt=-1,ce=0;ce<this._uploadList.length;ce++)if(this._uploadList[ce].state==xt.UPLOADSTATE.INIT){Gt=ce;break}return Gt}},{key:"_error",value:function(Gt,ce){if(ce.name=="cancel")try{this.options.onUploadCanceled(Gt,ce)}catch(xe){console.log(xe)}else{if(ce.message.indexOf("InvalidAccessKeyIdError")>0||ce.name=="SignatureDoesNotMatchError"||ce.code=="SecurityTokenExpired"||ce.code=="InvalidSecurityToken.Expired"||ce.code=="InvalidAccessKeyId"&&this._ossCreditor.securityToken){if(this.options.onUploadTokenExpired){this._state=xt.VODSTATE.EXPIRE,Gt.state=xt.UPLOADSTATE.FAIlURE;try{this.options.onUploadTokenExpired(Gt,ce)}catch(xe){console.log(xe)}}return}if((ce.name=="RequestTimeoutError"||ce.name=="ConnectionTimeout"||ce.name=="ConnectionTimeoutError")&&this._retryTotal>this._retryCount){var ae=this;return setTimeout(function(){ae._uploadCore(Gt,!0)},1e3*ae._retryDuration),void this._retryCount++}ce.name=="NoSuchUploadError"&&this._removeCheckoutpoint(Gt),this._handleError(Gt,ce)}}},{key:"_handleError",value:function(Gt,ce){var ae=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],xe=xt.UPLOADSTATE.FAIlURE;if(Gt.state!=xt.UPLOADSTATE.CANCELED&&(Gt.state=xt.UPLOADSTATE.FAIlURE,this._state=xt.VODSTATE.FAILURE,this.options.onUploadFailed&&ce&&ce.code&&ce.message))try{this.options.onUploadFailed(Gt,ce.code,ce.message)}catch(Te){console.log(Te)}if(ae&&this._changeState(Gt,xe),this._reportLog("20006",Gt,{code:ce.name,message:ce.message,requestId:ce.requestId,fs:Gt.file.size,bu:Gt.bucket,ok:Gt.object,fn:Gt.file.name}),this._reportLog("20004",Gt,{requestId:ce.requestId,fs:Gt.file.size,bu:Gt.bucket,ok:Gt.object,fn:Gt.file.name}),Gt.ri=ct.default.create(),this._findUploadIndex()!=-1){var ye=this;this._state=xt.VODSTATE.START,setTimeout(function(){ye.nextUpload()},100)}}},{key:"_complete",value:function(Gt,ce){if(Gt.state=xt.UPLOADSTATE.SUCCESS,this.options.onUploadSucceed)try{this.options.onUploadSucceed(Gt)}catch(ye){console.log(ye)}var ae=0;ce&&ce.res&&ce.res.headers&&(ae=ce.res.headers["x-oss-request-id"]),this._removeCheckoutpoint(Gt);var xe=this;setTimeout(function(){xe.nextUpload()},100),this._retryCount=0,this._reportLog("20003",Gt,{requestId:ae})}},{key:"_progress",value:function(Gt,ce,ae){if(this.options.onUploadProgress)try{Gt.loaded=ce.loaded,this.options.onUploadProgress(Gt,ce.total,ce.loaded)}catch($t){console.log($t)}var xe=ce.checkpoint,ye=0;xe&&(Gt.checkpoint=xe,this._saveCheckoutpoint(Gt,xe,xt.UPLOADSTATE.UPLOADING),ye=xe.uploadId),this._retryCount=0;var Te=this._getPortNumber(xe),me=0;if(ae&&ae.headers&&(me=ae.headers["x-oss-request-id"]),ce.loaded!=0&&this._reportLog("20007",Gt,{pn:Te,requestId:me}),ce.loaded!=1&&this._reportLog("20005",Gt,{UploadId:ye,pn:Te+1,pr:Gt.retry?1:0,fs:Gt.file.size,bu:Gt.bucket,ok:Gt.object,fn:Gt.file.name}),!this._invalidUserId&&!Gt.isImage&&this._ut=="vod"&&this.options.enableUploadProgress){var He={file:Gt.file,checkpoint:ce,userId:this.options.userId,videoId:Gt.videoId,region:this.options.region,fileHash:Gt.fileHash};try{var fe=this;Dt.default.upload(He,function(){},function($t){if(($t=JSON.parse($t))&&$t.Code=="InvalidParameter"&&$t.Message.indexOf("UserId")>0){fe._invalidUserId=!0;var ie=$t.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(ie)}})}catch($t){console.log($t)}}}},{key:"_getPortNumber",value:function(Gt){if(Gt){var ce=Gt.doneParts;if(ce&&ce.length>0)return ce[ce.length-1].number}return 0}},{key:"_removeCheckoutpoint",value:function(Gt){var ce=this._getCheckoutpointKey(Gt);mt.default.remove(ce)}},{key:"_getCheckoutpoint",value:function(Gt){var ce=this._getCheckoutpointKey(Gt),ae=mt.default.get(ce);if(ae)try{return JSON.parse(ae)}catch(xe){}return""}},{key:"_saveCheckoutpoint",value:function(Gt,ce,ae){if(ce){var xe=this._getCheckoutpointKey(Gt),ye=Gt.file,Te={fileName:ye.name,lastModified:ye.lastModified,size:ye.size,object:Gt.object,videoId:Gt.videoId,bucket:Gt.bucket,endpoint:Gt.endpoint,checkpoint:ce,loaded:Gt.loaded,state:ae};mt.default.set(xe,JSON.stringify(Te))}}},{key:"_changeState",value:function(Gt,ce){var ae=this._getCheckoutpoint(Gt);ae&&((this._onbeforeunload=!0)&&(ce=xt.UPLOADSTATE.STOPED),this._saveCheckoutpoint(Gt,ae.checkpoint,ce))}},{key:"_getCheckoutpointKey",value:function(Gt){return"upload_"+Gt.file.lastModified+"_"+Gt.file.name+"_"+Gt.file.size}},{key:"_getCheckoutpointFromCloud",value:function(Gt,ce,ae){var xe={userId:this.options.userId,uploadInfoList:[{FileName:Gt.file.name,FileSize:Gt.file.size,FileCreateTime:Gt.file.lastModified,FileHash:Gt.fileHash}],region:this.options.region};Dt.default.get(xe,function(ye){ce(ye)},ae)}},{key:"_reportLog",value:function(Gt,ce,ae){ae||(ae={}),ae.ri=ce.ri,this._ut&&(ae.ut=this._ut),this._log.log(Gt,ae)}},{key:"_initEvent",value:function(){var Gt=this;window&&(window.onbeforeunload=function(ce){if(Gt._onbeforeunload=!0,Gt._curIndex!=-1&&Gt._uploadList.length>Gt._curIndex){var ae=Gt._uploadList[Gt._curIndex];Gt._changeState(ae,xt.UPLOADSTATE.STOPED)}})}},{key:"_initState",value:function(){for(var Gt=0;Gt<this._uploadList.length;Gt++){var ce=this._uploadList[Gt];ce.state!=xt.UPLOADSTATE.FAIlURE&&ce.state!=xt.UPLOADSTATE.STOPED||(ce.state=xt.UPLOADSTATE.INIT)}this._state=xt.VODSTATE.INIT}},{key:"_adjustPartSize",value:function(Gt){return Gt.file.size/this.options.partSize>1e4?Gt.file.size/9999:this.options.partSize}}]),te}());gt.default=qt},function(zt,gt,Xt){"use strict";Object.defineProperty(gt,"__esModule",{value:!0}),gt.UPLOADSTATE={INIT:"Ready",UPLOADING:"Uploading",SUCCESS:"Success",FAIlURE:"Failure",CANCELED:"Canceled",STOPED:"Stoped"},gt.VODSTATE={INIT:"Init",START:"Start",STOP:"Stop",FAILURE:"Failure",EXPIRE:"Expire",END:"End"}},function(zt,gt,Xt){"use strict";function Qt(Lt){return Lt&&Lt.__esModule?Lt:{default:Lt}}function kt(Lt,At){if(!(Lt instanceof At))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(gt,"__esModule",{value:!0});var Bt=function(){function Lt(At,It){for(var mt=0;mt<It.length;mt++){var et=It[mt];et.enumerable=et.enumerable||!1,et.configurable=!0,"value"in et&&(et.writable=!0),Object.defineProperty(At,et.key,et)}}return function(At,It,mt){return It&&Lt(At.prototype,It),mt&&Lt(At,mt),At}}(),xt=Xt(3),Ot=Xt(17),Rt=(Qt(Ot),Xt(1)),Ct=(Qt(Rt),function(){function Lt(At,It){if(kt(this,Lt),At){this._config=At,this.create(this._config),this._uploadInfo=null,this._callback={};var mt=function(){};this._callback.onerror=It.onerror||mt,this._callback.oncomplete=It.oncomplete||mt,this._callback.onprogress=It.onprogress||mt}}return Bt(Lt,[{key:"create",value:function(At){if(At.endpoint=At.endpoint||this._config.endpoint,At.bucket=At.bucket||this._config.bucket,!(At.AccessKeyId&&At.AccessKeySecret&&At.endpoint&&At.SecurityToken))throw new Error("AccessKeyId\u3001AccessKeySecret\u3001endpoint should not be null");var It={accessKeyId:At.AccessKeyId,accessKeySecret:At.AccessKeySecret,stsToken:At.SecurityToken,endpoint:At.endpoint||this._config.endpoint,bucket:At.bucket||this._config.bucket,secure:!0,cname:At.cname};At.timeout&&(It.timeout=At.timeout),this.oss=new OSS.Wrapper(It)}},{key:"abort",value:function(At){if(At.checkpoint){var It=At.checkpoint.uploadId;this.oss.abortMultipartUpload(At.object,It)}}},{key:"getVersion",value:function(){}},{key:"cancel",value:function(){this.oss.cancel&&this.oss.cancel()}},{key:"upload",value:function(At,It){this._uploadInfo=At;var mt=this,et=function(st,rt,ut){return function(ct){mt._progress(st,rt,ut),ct()}},tt={parallel:It.parallel||this._config.parallel||xt.UPLOADDEFAULT.PARALLEL,partSize:It.partSize||this._config.partSize||xt.UPLOADDEFAULT.PARTSIZE,progress:et};It.headers&&(tt.headers=It.headers),At.checkpoint&&(tt.checkpoint=At.checkpoint),At.bucket||(this.oss.options.bucket=At.bucket),At.endpoint||(this.oss.options.endpoint=At.endpoint),this.oss.multipartUpload(At.object,At.file,tt).then(function(st,rt){mt._complete(st)}).catch(function(st){mt.oss.cancel&&(mt.oss&&mt.oss.isCancel()?console.log("oss is cancel as error"):mt.oss.cancel()),mt._error(st)})}},{key:"header",value:function(At,It,mt){this.oss.get(At.object).then(function(et){It(et)}).catch(function(et){mt(et)})}},{key:"_progress",value:function(At,It,mt){this._callback.onprogress(this._uploadInfo,{loaded:At,total:this._uploadInfo.file.size,checkpoint:It},mt)}},{key:"_error",value:function(At){this._callback.onerror(this._uploadInfo,At)}},{key:"_complete",value:function(At){this._callback.oncomplete(this._uploadInfo,At)}}]),Lt}());gt.default=Ct},function(zt,gt,Xt){"use strict";function Qt(xt,Ot){if(!(xt instanceof Ot))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(gt,"__esModule",{value:!0});var kt=function(){function xt(Ot,Rt){for(var Ct=0;Ct<Rt.length;Ct++){var Lt=Rt[Ct];Lt.enumerable=Lt.enumerable||!1,Lt.configurable=!0,"value"in Lt&&(Lt.writable=!0),Object.defineProperty(Ot,Lt.key,Lt)}}return function(Ot,Rt,Ct){return Rt&&xt(Ot.prototype,Rt),Ct&&xt(Ot,Ct),Ot}}(),Bt=function(){function xt(){Qt(this,xt)}return kt(xt,null,[{key:"format",value:function(Ot){if(arguments.length<2)return null;for(var Rt=arguments[1],Ct=1;Ct<arguments.length;Ct++){var Lt=new RegExp("\\{"+(Ct-1)+"\\}","gm");Rt=Rt.replace(Lt,arguments[Ct+1])}return{code:Ot,message:Rt}}},{key:"CODE",get:function(){return{SUCCESS:"Successful",EmptyValue:"InvalidParameter.EmptyValue",STSInvalid:"InvalidParameter.TokenInvalid",ReadFileError:"ReadFileError",FILEDUPLICATION:"FileDuplication",UploadALEADRYSTARTED:"UploadAlearyStarted"}}},{key:"MESSAGE",get:function(){return{SUCCESS:"Successful",EmptyValue:"\u53C2\u6570 {0} \u4E0D\u80FD\u4E3A\u7A7A\u3002",STSInvalid:"STS\u53C2\u6570\u975E\u6CD5\uFF0C accessKeyId\u3001accessKeySecret\u3001secretToken\u3001expireTime\u90FD\u4E0D\u80FD\u4E3A\u7A7A\u3002",ReadFileError:"\u8BFB\u53D6\u6587\u4EF6{0}{1}\u5931\u8D25.",FILEDUPLICATION:"\u6587\u4EF6\u91CD\u590D\u6DFB\u52A0 {0}",UploadALEADRYSTARTED:"\u91CD\u590D\u5F00\u59CB."}}}]),xt}();gt.default=Bt},function(zt,gt,Xt){"use strict";(function(Qt){function kt(Ot,Rt){if(!(Ot instanceof Rt))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(gt,"__esModule",{value:!0});var Bt=function(){function Ot(Rt,Ct){for(var Lt=0;Lt<Ct.length;Lt++){var At=Ct[Lt];At.enumerable=At.enumerable||!1,At.configurable=!0,"value"in At&&(At.writable=!0),Object.defineProperty(Rt,At.key,At)}}return function(Rt,Ct,Lt){return Ct&&Ot(Rt.prototype,Ct),Lt&&Ot(Rt,Lt),Rt}}(),xt=function(){function Ot(){kt(this,Ot)}return Bt(Ot,null,[{key:"encode",value:function(Rt){return new Qt(Rt).toString("base64")}},{key:"decode",value:function(Rt){return new Qt(Rt,"base64").toString()}}]),Ot}();gt.default=xt}).call(gt,Xt(19).Buffer)},function(zt,gt,Xt){"use strict";(function(Qt){function kt(){return xt.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Bt(Ut,St){if(kt()<St)throw new RangeError("Invalid typed array length");return xt.TYPED_ARRAY_SUPPORT?(Ut=new Uint8Array(St),Ut.__proto__=xt.prototype):(Ut===null&&(Ut=new xt(St)),Ut.length=St),Ut}function xt(Ut,St,wt){if(!(xt.TYPED_ARRAY_SUPPORT||this instanceof xt))return new xt(Ut,St,wt);if(typeof Ut=="number"){if(typeof St=="string")throw new Error("If encoding is specified then the first argument must be a string");return Lt(this,Ut)}return Ot(this,Ut,St,wt)}function Ot(Ut,St,wt,jt){if(typeof St=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&St instanceof ArrayBuffer?mt(Ut,St,wt,jt):typeof St=="string"?At(Ut,St,wt):et(Ut,St)}function Rt(Ut){if(typeof Ut!="number")throw new TypeError('"size" argument must be a number');if(Ut<0)throw new RangeError('"size" argument must not be negative')}function Ct(Ut,St,wt,jt){return Rt(St),St<=0?Bt(Ut,St):wt!==void 0?typeof jt=="string"?Bt(Ut,St).fill(wt,jt):Bt(Ut,St).fill(wt):Bt(Ut,St)}function Lt(Ut,St){if(Rt(St),Ut=Bt(Ut,St<0?0:0|tt(St)),!xt.TYPED_ARRAY_SUPPORT)for(var wt=0;wt<St;++wt)Ut[wt]=0;return Ut}function At(Ut,St,wt){if(typeof wt=="string"&&wt!==""||(wt="utf8"),!xt.isEncoding(wt))throw new TypeError('"encoding" must be a valid string encoding');var jt=0|rt(St,wt);Ut=Bt(Ut,jt);var Wt=Ut.write(St,wt);return Wt!==jt&&(Ut=Ut.slice(0,Wt)),Ut}function It(Ut,St){var wt=St.length<0?0:0|tt(St.length);Ut=Bt(Ut,wt);for(var jt=0;jt<wt;jt+=1)Ut[jt]=255&St[jt];return Ut}function mt(Ut,St,wt,jt){if(St.byteLength,wt<0||St.byteLength<wt)throw new RangeError("'offset' is out of bounds");if(St.byteLength<wt+(jt||0))throw new RangeError("'length' is out of bounds");return St=wt===void 0&&jt===void 0?new Uint8Array(St):jt===void 0?new Uint8Array(St,wt):new Uint8Array(St,wt,jt),xt.TYPED_ARRAY_SUPPORT?(Ut=St,Ut.__proto__=xt.prototype):Ut=It(Ut,St),Ut}function et(Ut,St){if(xt.isBuffer(St)){var wt=0|tt(St.length);return Ut=Bt(Ut,wt),Ut.length===0||St.copy(Ut,0,0,wt),Ut}if(St){if(typeof ArrayBuffer!="undefined"&&St.buffer instanceof ArrayBuffer||"length"in St)return typeof St.length!="number"||le(St.length)?Bt(Ut,0):It(Ut,St);if(St.type==="Buffer"&&_t(St.data))return It(Ut,St.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function tt(Ut){if(Ut>=kt())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kt().toString(16)+" bytes");return 0|Ut}function st(Ut){return+Ut!=Ut&&(Ut=0),xt.alloc(+Ut)}function rt(Ut,St){if(xt.isBuffer(Ut))return Ut.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(Ut)||Ut instanceof ArrayBuffer))return Ut.byteLength;typeof Ut!="string"&&(Ut=""+Ut);var wt=Ut.length;if(wt===0)return 0;for(var jt=!1;;)switch(St){case"ascii":case"latin1":case"binary":return wt;case"utf8":case"utf-8":case void 0:return Re(Ut).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*wt;case"hex":return wt>>>1;case"base64":return Oe(Ut).length;default:if(jt)return Re(Ut).length;St=(""+St).toLowerCase(),jt=!0}}function ut(Ut,St,wt){var jt=!1;if((St===void 0||St<0)&&(St=0),St>this.length||((wt===void 0||wt>this.length)&&(wt=this.length),wt<=0)||(wt>>>=0,St>>>=0,wt<=St))return"";for(Ut||(Ut="utf8");;)switch(Ut){case"hex":return Te(this,St,wt);case"utf8":case"utf-8":return ce(this,St,wt);case"ascii":return xe(this,St,wt);case"latin1":case"binary":return ye(this,St,wt);case"base64":return Gt(this,St,wt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return me(this,St,wt);default:if(jt)throw new TypeError("Unknown encoding: "+Ut);Ut=(Ut+"").toLowerCase(),jt=!0}}function ct(Ut,St,wt){var jt=Ut[St];Ut[St]=Ut[wt],Ut[wt]=jt}function ft(Ut,St,wt,jt,Wt){if(Ut.length===0)return-1;if(typeof wt=="string"?(jt=wt,wt=0):wt>2147483647?wt=2147483647:wt<-2147483648&&(wt=-2147483648),wt=+wt,isNaN(wt)&&(wt=Wt?0:Ut.length-1),wt<0&&(wt=Ut.length+wt),wt>=Ut.length){if(Wt)return-1;wt=Ut.length-1}else if(wt<0){if(!Wt)return-1;wt=0}if(typeof St=="string"&&(St=xt.from(St,jt)),xt.isBuffer(St))return St.length===0?-1:pt(Ut,St,wt,jt,Wt);if(typeof St=="number")return St&=255,xt.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Wt?Uint8Array.prototype.indexOf.call(Ut,St,wt):Uint8Array.prototype.lastIndexOf.call(Ut,St,wt):pt(Ut,[St],wt,jt,Wt);throw new TypeError("val must be string, number or Buffer")}function pt(Ut,St,wt,jt,Wt){function Vt(ke,Ze){return oe===1?ke[Ze]:ke.readUInt16BE(Ze*oe)}var oe=1,de=Ut.length,Ge=St.length;if(jt!==void 0&&((jt=String(jt).toLowerCase())==="ucs2"||jt==="ucs-2"||jt==="utf16le"||jt==="utf-16le")){if(Ut.length<2||St.length<2)return-1;oe=2,de/=2,Ge/=2,wt/=2}var Ye;if(Wt){var Ue=-1;for(Ye=wt;Ye<de;Ye++)if(Vt(Ut,Ye)===Vt(St,Ue===-1?0:Ye-Ue)){if(Ue===-1&&(Ue=Ye),Ye-Ue+1===Ge)return Ue*oe}else Ue!==-1&&(Ye-=Ye-Ue),Ue=-1}else for(wt+Ge>de&&(wt=de-Ge),Ye=wt;Ye>=0;Ye--){for(var an=!0,vn=0;vn<Ge;vn++)if(Vt(Ut,Ye+vn)!==Vt(St,vn)){an=!1;break}if(an)return Ye}return-1}function Pt(Ut,St,wt,jt){wt=Number(wt)||0;var Wt=Ut.length-wt;jt?(jt=Number(jt))>Wt&&(jt=Wt):jt=Wt;var Vt=St.length;if(Vt%2!=0)throw new TypeError("Invalid hex string");jt>Vt/2&&(jt=Vt/2);for(var oe=0;oe<jt;++oe){var de=parseInt(St.substr(2*oe,2),16);if(isNaN(de))return oe;Ut[wt+oe]=de}return oe}function Dt(Ut,St,wt,jt){return Fe(Re(St,Ut.length-wt),Ut,wt,jt)}function Zt(Ut,St,wt,jt){return Fe(tn(St),Ut,wt,jt)}function Ft(Ut,St,wt,jt){return Zt(Ut,St,wt,jt)}function qt(Ut,St,wt,jt){return Fe(Oe(St),Ut,wt,jt)}function te(Ut,St,wt,jt){return Fe(Me(St,Ut.length-wt),Ut,wt,jt)}function Gt(Ut,St,wt){return St===0&&wt===Ut.length?Tt.fromByteArray(Ut):Tt.fromByteArray(Ut.slice(St,wt))}function ce(Ut,St,wt){wt=Math.min(Ut.length,wt);for(var jt=[],Wt=St;Wt<wt;){var Vt=Ut[Wt],oe=null,de=Vt>239?4:Vt>223?3:Vt>191?2:1;if(Wt+de<=wt){var Ge,Ye,Ue,an;switch(de){case 1:Vt<128&&(oe=Vt);break;case 2:Ge=Ut[Wt+1],(192&Ge)==128&&(an=(31&Vt)<<6|63&Ge)>127&&(oe=an);break;case 3:Ge=Ut[Wt+1],Ye=Ut[Wt+2],(192&Ge)==128&&(192&Ye)==128&&(an=(15&Vt)<<12|(63&Ge)<<6|63&Ye)>2047&&(an<55296||an>57343)&&(oe=an);break;case 4:Ge=Ut[Wt+1],Ye=Ut[Wt+2],Ue=Ut[Wt+3],(192&Ge)==128&&(192&Ye)==128&&(192&Ue)==128&&(an=(15&Vt)<<18|(63&Ge)<<12|(63&Ye)<<6|63&Ue)>65535&&an<1114112&&(oe=an)}}oe===null?(oe=65533,de=1):oe>65535&&(oe-=65536,jt.push(oe>>>10&1023|55296),oe=56320|1023&oe),jt.push(oe),Wt+=de}return ae(jt)}function ae(Ut){var St=Ut.length;if(St<=Yt)return String.fromCharCode.apply(String,Ut);for(var wt="",jt=0;jt<St;)wt+=String.fromCharCode.apply(String,Ut.slice(jt,jt+=Yt));return wt}function xe(Ut,St,wt){var jt="";wt=Math.min(Ut.length,wt);for(var Wt=St;Wt<wt;++Wt)jt+=String.fromCharCode(127&Ut[Wt]);return jt}function ye(Ut,St,wt){var jt="";wt=Math.min(Ut.length,wt);for(var Wt=St;Wt<wt;++Wt)jt+=String.fromCharCode(Ut[Wt]);return jt}function Te(Ut,St,wt){var jt=Ut.length;(!St||St<0)&&(St=0),(!wt||wt<0||wt>jt)&&(wt=jt);for(var Wt="",Vt=St;Vt<wt;++Vt)Wt+=$e(Ut[Vt]);return Wt}function me(Ut,St,wt){for(var jt=Ut.slice(St,wt),Wt="",Vt=0;Vt<jt.length;Vt+=2)Wt+=String.fromCharCode(jt[Vt]+256*jt[Vt+1]);return Wt}function He(Ut,St,wt){if(Ut%1!=0||Ut<0)throw new RangeError("offset is not uint");if(Ut+St>wt)throw new RangeError("Trying to access beyond buffer length")}function fe(Ut,St,wt,jt,Wt,Vt){if(!xt.isBuffer(Ut))throw new TypeError('"buffer" argument must be a Buffer instance');if(St>Wt||St<Vt)throw new RangeError('"value" argument is out of bounds');if(wt+jt>Ut.length)throw new RangeError("Index out of range")}function $t(Ut,St,wt,jt){St<0&&(St=65535+St+1);for(var Wt=0,Vt=Math.min(Ut.length-wt,2);Wt<Vt;++Wt)Ut[wt+Wt]=(St&255<<8*(jt?Wt:1-Wt))>>>8*(jt?Wt:1-Wt)}function ie(Ut,St,wt,jt){St<0&&(St=4294967295+St+1);for(var Wt=0,Vt=Math.min(Ut.length-wt,4);Wt<Vt;++Wt)Ut[wt+Wt]=St>>>8*(jt?Wt:3-Wt)&255}function ue(Ut,St,wt,jt,Wt,Vt){if(wt+jt>Ut.length)throw new RangeError("Index out of range");if(wt<0)throw new RangeError("Index out of range")}function ge(Ut,St,wt,jt,Wt){return Wt||ue(Ut,St,wt,4,34028234663852886e22,-34028234663852886e22),bt.write(Ut,St,wt,jt,23,4),wt+4}function he(Ut,St,wt,jt,Wt){return Wt||ue(Ut,St,wt,8,17976931348623157e292,-17976931348623157e292),bt.write(Ut,St,wt,jt,52,8),wt+8}function De(Ut){if(Ut=Ne(Ut).replace(Mt,""),Ut.length<2)return"";for(;Ut.length%4!=0;)Ut+="=";return Ut}function Ne(Ut){return Ut.trim?Ut.trim():Ut.replace(/^\s+|\s+$/g,"")}function $e(Ut){return Ut<16?"0"+Ut.toString(16):Ut.toString(16)}function Re(Ut,St){St=St||1/0;for(var wt,jt=Ut.length,Wt=null,Vt=[],oe=0;oe<jt;++oe){if((wt=Ut.charCodeAt(oe))>55295&&wt<57344){if(!Wt){if(wt>56319){(St-=3)>-1&&Vt.push(239,191,189);continue}if(oe+1===jt){(St-=3)>-1&&Vt.push(239,191,189);continue}Wt=wt;continue}if(wt<56320){(St-=3)>-1&&Vt.push(239,191,189),Wt=wt;continue}wt=65536+(Wt-55296<<10|wt-56320)}else Wt&&(St-=3)>-1&&Vt.push(239,191,189);if(Wt=null,wt<128){if((St-=1)<0)break;Vt.push(wt)}else if(wt<2048){if((St-=2)<0)break;Vt.push(wt>>6|192,63&wt|128)}else if(wt<65536){if((St-=3)<0)break;Vt.push(wt>>12|224,wt>>6&63|128,63&wt|128)}else{if(!(wt<1114112))throw new Error("Invalid code point");if((St-=4)<0)break;Vt.push(wt>>18|240,wt>>12&63|128,wt>>6&63|128,63&wt|128)}}return Vt}function tn(Ut){for(var St=[],wt=0;wt<Ut.length;++wt)St.push(255&Ut.charCodeAt(wt));return St}function Me(Ut,St){for(var wt,jt,Wt,Vt=[],oe=0;oe<Ut.length&&!((St-=2)<0);++oe)wt=Ut.charCodeAt(oe),jt=wt>>8,Wt=wt%256,Vt.push(Wt),Vt.push(jt);return Vt}function Oe(Ut){return Tt.toByteArray(De(Ut))}function Fe(Ut,St,wt,jt){for(var Wt=0;Wt<jt&&!(Wt+wt>=St.length||Wt>=Ut.length);++Wt)St[Wt+wt]=Ut[Wt];return Wt}function le(Ut){return Ut!==Ut}var Tt=Xt(21),bt=Xt(22),_t=Xt(23);gt.Buffer=xt,gt.SlowBuffer=st,gt.INSPECT_MAX_BYTES=50,xt.TYPED_ARRAY_SUPPORT=Qt.TYPED_ARRAY_SUPPORT!==void 0?Qt.TYPED_ARRAY_SUPPORT:function(){try{var Ut=new Uint8Array(1);return Ut.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Ut.foo()===42&&typeof Ut.subarray=="function"&&Ut.subarray(1,1).byteLength===0}catch(St){return!1}}(),gt.kMaxLength=kt(),xt.poolSize=8192,xt._augment=function(Ut){return Ut.__proto__=xt.prototype,Ut},xt.from=function(Ut,St,wt){return Ot(null,Ut,St,wt)},xt.TYPED_ARRAY_SUPPORT&&(xt.prototype.__proto__=Uint8Array.prototype,xt.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&xt[Symbol.species]===xt&&Object.defineProperty(xt,Symbol.species,{value:null,configurable:!0})),xt.alloc=function(Ut,St,wt){return Ct(null,Ut,St,wt)},xt.allocUnsafe=function(Ut){return Lt(null,Ut)},xt.allocUnsafeSlow=function(Ut){return Lt(null,Ut)},xt.isBuffer=function(Ut){return!(Ut==null||!Ut._isBuffer)},xt.compare=function(Ut,St){if(!xt.isBuffer(Ut)||!xt.isBuffer(St))throw new TypeError("Arguments must be Buffers");if(Ut===St)return 0;for(var wt=Ut.length,jt=St.length,Wt=0,Vt=Math.min(wt,jt);Wt<Vt;++Wt)if(Ut[Wt]!==St[Wt]){wt=Ut[Wt],jt=St[Wt];break}return wt<jt?-1:jt<wt?1:0},xt.isEncoding=function(Ut){switch(String(Ut).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},xt.concat=function(Ut,St){if(!_t(Ut))throw new TypeError('"list" argument must be an Array of Buffers');if(Ut.length===0)return xt.alloc(0);var wt;if(St===void 0)for(St=0,wt=0;wt<Ut.length;++wt)St+=Ut[wt].length;var jt=xt.allocUnsafe(St),Wt=0;for(wt=0;wt<Ut.length;++wt){var Vt=Ut[wt];if(!xt.isBuffer(Vt))throw new TypeError('"list" argument must be an Array of Buffers');Vt.copy(jt,Wt),Wt+=Vt.length}return jt},xt.byteLength=rt,xt.prototype._isBuffer=!0,xt.prototype.swap16=function(){var Ut=this.length;if(Ut%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var St=0;St<Ut;St+=2)ct(this,St,St+1);return this},xt.prototype.swap32=function(){var Ut=this.length;if(Ut%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var St=0;St<Ut;St+=4)ct(this,St,St+3),ct(this,St+1,St+2);return this},xt.prototype.swap64=function(){var Ut=this.length;if(Ut%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var St=0;St<Ut;St+=8)ct(this,St,St+7),ct(this,St+1,St+6),ct(this,St+2,St+5),ct(this,St+3,St+4);return this},xt.prototype.toString=function(){var Ut=0|this.length;return Ut===0?"":arguments.length===0?ce(this,0,Ut):ut.apply(this,arguments)},xt.prototype.equals=function(Ut){if(!xt.isBuffer(Ut))throw new TypeError("Argument must be a Buffer");return this===Ut||xt.compare(this,Ut)===0},xt.prototype.inspect=function(){var Ut="",St=gt.INSPECT_MAX_BYTES;return this.length>0&&(Ut=this.toString("hex",0,St).match(/.{2}/g).join(" "),this.length>St&&(Ut+=" ... ")),"<Buffer "+Ut+">"},xt.prototype.compare=function(Ut,St,wt,jt,Wt){if(!xt.isBuffer(Ut))throw new TypeError("Argument must be a Buffer");if(St===void 0&&(St=0),wt===void 0&&(wt=Ut?Ut.length:0),jt===void 0&&(jt=0),Wt===void 0&&(Wt=this.length),St<0||wt>Ut.length||jt<0||Wt>this.length)throw new RangeError("out of range index");if(jt>=Wt&&St>=wt)return 0;if(jt>=Wt)return-1;if(St>=wt)return 1;if(St>>>=0,wt>>>=0,jt>>>=0,Wt>>>=0,this===Ut)return 0;for(var Vt=Wt-jt,oe=wt-St,de=Math.min(Vt,oe),Ge=this.slice(jt,Wt),Ye=Ut.slice(St,wt),Ue=0;Ue<de;++Ue)if(Ge[Ue]!==Ye[Ue]){Vt=Ge[Ue],oe=Ye[Ue];break}return Vt<oe?-1:oe<Vt?1:0},xt.prototype.includes=function(Ut,St,wt){return this.indexOf(Ut,St,wt)!==-1},xt.prototype.indexOf=function(Ut,St,wt){return ft(this,Ut,St,wt,!0)},xt.prototype.lastIndexOf=function(Ut,St,wt){return ft(this,Ut,St,wt,!1)},xt.prototype.write=function(Ut,St,wt,jt){if(St===void 0)jt="utf8",wt=this.length,St=0;else if(wt===void 0&&typeof St=="string")jt=St,wt=this.length,St=0;else{if(!isFinite(St))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");St|=0,isFinite(wt)?(wt|=0,jt===void 0&&(jt="utf8")):(jt=wt,wt=void 0)}var Wt=this.length-St;if((wt===void 0||wt>Wt)&&(wt=Wt),Ut.length>0&&(wt<0||St<0)||St>this.length)throw new RangeError("Attempt to write outside buffer bounds");jt||(jt="utf8");for(var Vt=!1;;)switch(jt){case"hex":return Pt(this,Ut,St,wt);case"utf8":case"utf-8":return Dt(this,Ut,St,wt);case"ascii":return Zt(this,Ut,St,wt);case"latin1":case"binary":return Ft(this,Ut,St,wt);case"base64":return qt(this,Ut,St,wt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return te(this,Ut,St,wt);default:if(Vt)throw new TypeError("Unknown encoding: "+jt);jt=(""+jt).toLowerCase(),Vt=!0}},xt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Yt=4096;xt.prototype.slice=function(Ut,St){var wt=this.length;Ut=~~Ut,St=St===void 0?wt:~~St,Ut<0?(Ut+=wt)<0&&(Ut=0):Ut>wt&&(Ut=wt),St<0?(St+=wt)<0&&(St=0):St>wt&&(St=wt),St<Ut&&(St=Ut);var jt;if(xt.TYPED_ARRAY_SUPPORT)jt=this.subarray(Ut,St),jt.__proto__=xt.prototype;else{var Wt=St-Ut;jt=new xt(Wt,void 0);for(var Vt=0;Vt<Wt;++Vt)jt[Vt]=this[Vt+Ut]}return jt},xt.prototype.readUIntLE=function(Ut,St,wt){Ut|=0,St|=0,wt||He(Ut,St,this.length);for(var jt=this[Ut],Wt=1,Vt=0;++Vt<St&&(Wt*=256);)jt+=this[Ut+Vt]*Wt;return jt},xt.prototype.readUIntBE=function(Ut,St,wt){Ut|=0,St|=0,wt||He(Ut,St,this.length);for(var jt=this[Ut+--St],Wt=1;St>0&&(Wt*=256);)jt+=this[Ut+--St]*Wt;return jt},xt.prototype.readUInt8=function(Ut,St){return St||He(Ut,1,this.length),this[Ut]},xt.prototype.readUInt16LE=function(Ut,St){return St||He(Ut,2,this.length),this[Ut]|this[Ut+1]<<8},xt.prototype.readUInt16BE=function(Ut,St){return St||He(Ut,2,this.length),this[Ut]<<8|this[Ut+1]},xt.prototype.readUInt32LE=function(Ut,St){return St||He(Ut,4,this.length),(this[Ut]|this[Ut+1]<<8|this[Ut+2]<<16)+16777216*this[Ut+3]},xt.prototype.readUInt32BE=function(Ut,St){return St||He(Ut,4,this.length),16777216*this[Ut]+(this[Ut+1]<<16|this[Ut+2]<<8|this[Ut+3])},xt.prototype.readIntLE=function(Ut,St,wt){Ut|=0,St|=0,wt||He(Ut,St,this.length);for(var jt=this[Ut],Wt=1,Vt=0;++Vt<St&&(Wt*=256);)jt+=this[Ut+Vt]*Wt;return Wt*=128,jt>=Wt&&(jt-=Math.pow(2,8*St)),jt},xt.prototype.readIntBE=function(Ut,St,wt){Ut|=0,St|=0,wt||He(Ut,St,this.length);for(var jt=St,Wt=1,Vt=this[Ut+--jt];jt>0&&(Wt*=256);)Vt+=this[Ut+--jt]*Wt;return Wt*=128,Vt>=Wt&&(Vt-=Math.pow(2,8*St)),Vt},xt.prototype.readInt8=function(Ut,St){return St||He(Ut,1,this.length),128&this[Ut]?-1*(255-this[Ut]+1):this[Ut]},xt.prototype.readInt16LE=function(Ut,St){St||He(Ut,2,this.length);var wt=this[Ut]|this[Ut+1]<<8;return 32768&wt?4294901760|wt:wt},xt.prototype.readInt16BE=function(Ut,St){St||He(Ut,2,this.length);var wt=this[Ut+1]|this[Ut]<<8;return 32768&wt?4294901760|wt:wt},xt.prototype.readInt32LE=function(Ut,St){return St||He(Ut,4,this.length),this[Ut]|this[Ut+1]<<8|this[Ut+2]<<16|this[Ut+3]<<24},xt.prototype.readInt32BE=function(Ut,St){return St||He(Ut,4,this.length),this[Ut]<<24|this[Ut+1]<<16|this[Ut+2]<<8|this[Ut+3]},xt.prototype.readFloatLE=function(Ut,St){return St||He(Ut,4,this.length),bt.read(this,Ut,!0,23,4)},xt.prototype.readFloatBE=function(Ut,St){return St||He(Ut,4,this.length),bt.read(this,Ut,!1,23,4)},xt.prototype.readDoubleLE=function(Ut,St){return St||He(Ut,8,this.length),bt.read(this,Ut,!0,52,8)},xt.prototype.readDoubleBE=function(Ut,St){return St||He(Ut,8,this.length),bt.read(this,Ut,!1,52,8)},xt.prototype.writeUIntLE=function(Ut,St,wt,jt){Ut=+Ut,St|=0,wt|=0,!jt&&fe(this,Ut,St,wt,Math.pow(2,8*wt)-1,0);var Wt=1,Vt=0;for(this[St]=255&Ut;++Vt<wt&&(Wt*=256);)this[St+Vt]=Ut/Wt&255;return St+wt},xt.prototype.writeUIntBE=function(Ut,St,wt,jt){Ut=+Ut,St|=0,wt|=0,!jt&&fe(this,Ut,St,wt,Math.pow(2,8*wt)-1,0);var Wt=wt-1,Vt=1;for(this[St+Wt]=255&Ut;--Wt>=0&&(Vt*=256);)this[St+Wt]=Ut/Vt&255;return St+wt},xt.prototype.writeUInt8=function(Ut,St,wt){return Ut=+Ut,St|=0,wt||fe(this,Ut,St,1,255,0),xt.TYPED_ARRAY_SUPPORT||(Ut=Math.floor(Ut)),this[St]=255&Ut,St+1},xt.prototype.writeUInt16LE=function(Ut,St,wt){return Ut=+Ut,St|=0,wt||fe(this,Ut,St,2,65535,0),xt.TYPED_ARRAY_SUPPORT?(this[St]=255&Ut,this[St+1]=Ut>>>8):$t(this,Ut,St,!0),St+2},xt.prototype.writeUInt16BE=function(Ut,St,wt){return Ut=+Ut,St|=0,wt||fe(this,Ut,St,2,65535,0),xt.TYPED_ARRAY_SUPPORT?(this[St]=Ut>>>8,this[St+1]=255&Ut):$t(this,Ut,St,!1),St+2},xt.prototype.writeUInt32LE=function(Ut,St,wt){return Ut=+Ut,St|=0,wt||fe(this,Ut,St,4,4294967295,0),xt.TYPED_ARRAY_SUPPORT?(this[St+3]=Ut>>>24,this[St+2]=Ut>>>16,this[St+1]=Ut>>>8,this[St]=255&Ut):ie(this,Ut,St,!0),St+4},xt.prototype.writeUInt32BE=function(Ut,St,wt){return Ut=+Ut,St|=0,wt||fe(this,Ut,St,4,4294967295,0),xt.TYPED_ARRAY_SUPPORT?(this[St]=Ut>>>24,this[St+1]=Ut>>>16,this[St+2]=Ut>>>8,this[St+3]=255&Ut):ie(this,Ut,St,!1),St+4},xt.prototype.writeIntLE=function(Ut,St,wt,jt){if(Ut=+Ut,St|=0,!jt){var Wt=Math.pow(2,8*wt-1);fe(this,Ut,St,wt,Wt-1,-Wt)}var Vt=0,oe=1,de=0;for(this[St]=255&Ut;++Vt<wt&&(oe*=256);)Ut<0&&de===0&&this[St+Vt-1]!==0&&(de=1),this[St+Vt]=(Ut/oe>>0)-de&255;return St+wt},xt.prototype.writeIntBE=function(Ut,St,wt,jt){if(Ut=+Ut,St|=0,!jt){var Wt=Math.pow(2,8*wt-1);fe(this,Ut,St,wt,Wt-1,-Wt)}var Vt=wt-1,oe=1,de=0;for(this[St+Vt]=255&Ut;--Vt>=0&&(oe*=256);)Ut<0&&de===0&&this[St+Vt+1]!==0&&(de=1),this[St+Vt]=(Ut/oe>>0)-de&255;return St+wt},xt.prototype.writeInt8=function(Ut,St,wt){return Ut=+Ut,St|=0,wt||fe(this,Ut,St,1,127,-128),xt.TYPED_ARRAY_SUPPORT||(Ut=Math.floor(Ut)),Ut<0&&(Ut=255+Ut+1),this[St]=255&Ut,St+1},xt.prototype.writeInt16LE=function(Ut,St,wt){return Ut=+Ut,St|=0,wt||fe(this,Ut,St,2,32767,-32768),xt.TYPED_ARRAY_SUPPORT?(this[St]=255&Ut,this[St+1]=Ut>>>8):$t(this,Ut,St,!0),St+2},xt.prototype.writeInt16BE=function(Ut,St,wt){return Ut=+Ut,St|=0,wt||fe(this,Ut,St,2,32767,-32768),xt.TYPED_ARRAY_SUPPORT?(this[St]=Ut>>>8,this[St+1]=255&Ut):$t(this,Ut,St,!1),St+2},xt.prototype.writeInt32LE=function(Ut,St,wt){return Ut=+Ut,St|=0,wt||fe(this,Ut,St,4,2147483647,-2147483648),xt.TYPED_ARRAY_SUPPORT?(this[St]=255&Ut,this[St+1]=Ut>>>8,this[St+2]=Ut>>>16,this[St+3]=Ut>>>24):ie(this,Ut,St,!0),St+4},xt.prototype.writeInt32BE=function(Ut,St,wt){return Ut=+Ut,St|=0,wt||fe(this,Ut,St,4,2147483647,-2147483648),Ut<0&&(Ut=4294967295+Ut+1),xt.TYPED_ARRAY_SUPPORT?(this[St]=Ut>>>24,this[St+1]=Ut>>>16,this[St+2]=Ut>>>8,this[St+3]=255&Ut):ie(this,Ut,St,!1),St+4},xt.prototype.writeFloatLE=function(Ut,St,wt){return ge(this,Ut,St,!0,wt)},xt.prototype.writeFloatBE=function(Ut,St,wt){return ge(this,Ut,St,!1,wt)},xt.prototype.writeDoubleLE=function(Ut,St,wt){return he(this,Ut,St,!0,wt)},xt.prototype.writeDoubleBE=function(Ut,St,wt){return he(this,Ut,St,!1,wt)},xt.prototype.copy=function(Ut,St,wt,jt){if(wt||(wt=0),jt||jt===0||(jt=this.length),St>=Ut.length&&(St=Ut.length),St||(St=0),jt>0&&jt<wt&&(jt=wt),jt===wt||Ut.length===0||this.length===0)return 0;if(St<0)throw new RangeError("targetStart out of bounds");if(wt<0||wt>=this.length)throw new RangeError("sourceStart out of bounds");if(jt<0)throw new RangeError("sourceEnd out of bounds");jt>this.length&&(jt=this.length),Ut.length-St<jt-wt&&(jt=Ut.length-St+wt);var Wt,Vt=jt-wt;if(this===Ut&&wt<St&&St<jt)for(Wt=Vt-1;Wt>=0;--Wt)Ut[Wt+St]=this[Wt+wt];else if(Vt<1e3||!xt.TYPED_ARRAY_SUPPORT)for(Wt=0;Wt<Vt;++Wt)Ut[Wt+St]=this[Wt+wt];else Uint8Array.prototype.set.call(Ut,this.subarray(wt,wt+Vt),St);return Vt},xt.prototype.fill=function(Ut,St,wt,jt){if(typeof Ut=="string"){if(typeof St=="string"?(jt=St,St=0,wt=this.length):typeof wt=="string"&&(jt=wt,wt=this.length),Ut.length===1){var Wt=Ut.charCodeAt(0);Wt<256&&(Ut=Wt)}if(jt!==void 0&&typeof jt!="string")throw new TypeError("encoding must be a string");if(typeof jt=="string"&&!xt.isEncoding(jt))throw new TypeError("Unknown encoding: "+jt)}else typeof Ut=="number"&&(Ut&=255);if(St<0||this.length<St||this.length<wt)throw new RangeError("Out of range index");if(wt<=St)return this;St>>>=0,wt=wt===void 0?this.length:wt>>>0,Ut||(Ut=0);var Vt;if(typeof Ut=="number")for(Vt=St;Vt<wt;++Vt)this[Vt]=Ut;else{var oe=xt.isBuffer(Ut)?Ut:Re(new xt(Ut,jt).toString()),de=oe.length;for(Vt=0;Vt<wt-St;++Vt)this[Vt+St]=oe[Vt%de]}return this};var Mt=/[^+\/0-9A-Za-z-_]/g}).call(gt,Xt(20))},function(zt,gt){var Xt;Xt=function(){return this}();try{Xt=Xt||Function("return this")()||(0,eval)("this")}catch(Qt){typeof window=="object"&&(Xt=window)}zt.exports=Xt},function(zt,gt,Xt){"use strict";function Qt(tt){var st=tt.length;if(st%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return tt[st-2]==="="?2:tt[st-1]==="="?1:0}function kt(tt){return 3*tt.length/4-Qt(tt)}function Bt(tt){var st,rt,ut,ct,ft,pt=tt.length;ct=Qt(tt),ft=new At(3*pt/4-ct),rt=ct>0?pt-4:pt;var Pt=0;for(st=0;st<rt;st+=4)ut=Lt[tt.charCodeAt(st)]<<18|Lt[tt.charCodeAt(st+1)]<<12|Lt[tt.charCodeAt(st+2)]<<6|Lt[tt.charCodeAt(st+3)],ft[Pt++]=ut>>16&255,ft[Pt++]=ut>>8&255,ft[Pt++]=255&ut;return ct===2?(ut=Lt[tt.charCodeAt(st)]<<2|Lt[tt.charCodeAt(st+1)]>>4,ft[Pt++]=255&ut):ct===1&&(ut=Lt[tt.charCodeAt(st)]<<10|Lt[tt.charCodeAt(st+1)]<<4|Lt[tt.charCodeAt(st+2)]>>2,ft[Pt++]=ut>>8&255,ft[Pt++]=255&ut),ft}function xt(tt){return Ct[tt>>18&63]+Ct[tt>>12&63]+Ct[tt>>6&63]+Ct[63&tt]}function Ot(tt,st,rt){for(var ut,ct=[],ft=st;ft<rt;ft+=3)ut=(tt[ft]<<16)+(tt[ft+1]<<8)+tt[ft+2],ct.push(xt(ut));return ct.join("")}function Rt(tt){for(var st,rt=tt.length,ut=rt%3,ct="",ft=[],pt=0,Pt=rt-ut;pt<Pt;pt+=16383)ft.push(Ot(tt,pt,pt+16383>Pt?Pt:pt+16383));return ut===1?(st=tt[rt-1],ct+=Ct[st>>2],ct+=Ct[st<<4&63],ct+="=="):ut===2&&(st=(tt[rt-2]<<8)+tt[rt-1],ct+=Ct[st>>10],ct+=Ct[st>>4&63],ct+=Ct[st<<2&63],ct+="="),ft.push(ct),ft.join("")}gt.byteLength=kt,gt.toByteArray=Bt,gt.fromByteArray=Rt;for(var Ct=[],Lt=[],At=typeof Uint8Array!="undefined"?Uint8Array:Array,It="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",mt=0,et=It.length;mt<et;++mt)Ct[mt]=It[mt],Lt[It.charCodeAt(mt)]=mt;Lt[45]=62,Lt[95]=63},function(zt,gt){gt.read=function(Xt,Qt,kt,Bt,xt){var Ot,Rt,Ct=8*xt-Bt-1,Lt=(1<<Ct)-1,At=Lt>>1,It=-7,mt=kt?xt-1:0,et=kt?-1:1,tt=Xt[Qt+mt];for(mt+=et,Ot=tt&(1<<-It)-1,tt>>=-It,It+=Ct;It>0;Ot=256*Ot+Xt[Qt+mt],mt+=et,It-=8);for(Rt=Ot&(1<<-It)-1,Ot>>=-It,It+=Bt;It>0;Rt=256*Rt+Xt[Qt+mt],mt+=et,It-=8);if(Ot===0)Ot=1-At;else{if(Ot===Lt)return Rt?NaN:1/0*(tt?-1:1);Rt+=Math.pow(2,Bt),Ot-=At}return(tt?-1:1)*Rt*Math.pow(2,Ot-Bt)},gt.write=function(Xt,Qt,kt,Bt,xt,Ot){var Rt,Ct,Lt,At=8*Ot-xt-1,It=(1<<At)-1,mt=It>>1,et=xt===23?Math.pow(2,-24)-Math.pow(2,-77):0,tt=Bt?0:Ot-1,st=Bt?1:-1,rt=Qt<0||Qt===0&&1/Qt<0?1:0;for(Qt=Math.abs(Qt),isNaN(Qt)||Qt===1/0?(Ct=isNaN(Qt)?1:0,Rt=It):(Rt=Math.floor(Math.log(Qt)/Math.LN2),Qt*(Lt=Math.pow(2,-Rt))<1&&(Rt--,Lt*=2),Qt+=Rt+mt>=1?et/Lt:et*Math.pow(2,1-mt),Qt*Lt>=2&&(Rt++,Lt/=2),Rt+mt>=It?(Ct=0,Rt=It):Rt+mt>=1?(Ct=(Qt*Lt-1)*Math.pow(2,xt),Rt+=mt):(Ct=Qt*Math.pow(2,mt-1)*Math.pow(2,xt),Rt=0));xt>=8;Xt[kt+tt]=255&Ct,tt+=st,Ct/=256,xt-=8);for(Rt=Rt<<xt|Ct,At+=xt;At>0;Xt[kt+tt]=255&Rt,tt+=st,Rt/=256,At-=8);Xt[kt+tt-st]|=128*rt}},function(zt,gt){var Xt={}.toString;zt.exports=Array.isArray||function(Qt){return Xt.call(Qt)=="[object Array]"}},function(zt,gt,Xt){"use strict";function Qt(xt,Ot){if(!(xt instanceof Ot))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(gt,"__esModule",{value:!0});var kt=function(){function xt(Ot,Rt){for(var Ct=0;Ct<Rt.length;Ct++){var Lt=Rt[Ct];Lt.enumerable=Lt.enumerable||!1,Lt.configurable=!0,"value"in Lt&&(Lt.writable=!0),Object.defineProperty(Ot,Lt.key,Lt)}}return function(Ot,Rt,Ct){return Rt&&xt(Ot.prototype,Rt),Ct&&xt(Ot,Ct),Ot}}(),Bt=function(){function xt(){Qt(this,xt)}return kt(xt,null,[{key:"set",value:function(Ot,Rt){try{window.localStorage&&localStorage.setItem(Ot,Rt)}catch(Ct){window[Ot+"_localStorage"]=Rt}}},{key:"get",value:function(Ot){try{if(window.localStorage)return localStorage.getItem(Ot)}catch(Rt){return window[Ot+"_localStorage"]}return""}},{key:"remove",value:function(Ot){try{window.localStorage&&localStorage.removeItem(Ot)}catch(Rt){delete window[Ot+"_localStorage"]}}}]),xt}();gt.default=Bt},function(zt,gt,Xt){"use strict";function Qt(xt,Ot){if(!(xt instanceof Ot))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(gt,"__esModule",{value:!0});var kt=function(){function xt(Ot,Rt){for(var Ct=0;Ct<Rt.length;Ct++){var Lt=Rt[Ct];Lt.enumerable=Lt.enumerable||!1,Lt.configurable=!0,"value"in Lt&&(Lt.writable=!0),Object.defineProperty(Ot,Lt.key,Lt)}}return function(Ot,Rt,Ct){return Rt&&xt(Ot.prototype,Rt),Ct&&xt(Ot,Ct),Ot}}(),Bt=function(){function xt(){Qt(this,xt)}return kt(xt,null,[{key:"get",value:function(Ot){for(var Rt=Ot+"",Ct=document.cookie.split(";"),Lt=0;Lt<Ct.length;Lt++){var At=Ct[Lt].trim();if(At.indexOf(Rt)==0)return unescape(At.substring(Rt.length+1,At.length))}return""}},{key:"set",value:function(Ot,Rt,Ct){var Lt=new Date;Lt.setTime(Lt.getTime()+24*Ct*60*60*1e3);var At="expires="+Lt.toGMTString();document.cookie=Ot+"="+escape(Rt)+"; "+At}}]),xt}();gt.default=Bt},function(zt,gt,Xt){"use strict";function Qt(At){return At&&At.__esModule?At:{default:At}}function kt(At,It){if(!(At instanceof It))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(gt,"__esModule",{value:!0});var Bt=function(){function At(It,mt){for(var et=0;et<mt.length;et++){var tt=mt[et];tt.enumerable=tt.enumerable||!1,tt.configurable=!0,"value"in tt&&(tt.writable=!0),Object.defineProperty(It,tt.key,tt)}}return function(It,mt,et){return mt&&At(It.prototype,mt),et&&At(It,et),It}}(),xt=Xt(8),Ot=Qt(xt),Rt=Xt(9),Ct=Qt(Rt),Lt=function(){function At(){kt(this,At)}return Bt(At,null,[{key:"refreshUploadAuth",value:function(It,mt,et){var tt=(Ct.default.randomUUID(),Ct.default.randomUUID()),st={AccessKeyId:It.accessKeyId,SecurityToken:It.securityToken,Action:"RefreshUploadVideo",VideoId:It.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:tt,RequestId:It.requestId},rt=Ct.default.makeUTF8sort(st,"=","&")+"&Signature="+Ct.default.aliyunEncodeURI(Ct.default.makeChangeSiga(st,It.accessKeySecret)),ut="https://vod."+It.region+".aliyuncs.com/?"+rt;Ot.default.get(ut,function(ft){var ft=JSON.parse(ft);mt&&mt(ft)},function(ct){if(et){var ft=JSON.parse(ct);et(ft)}})}},{key:"getUploadAuth",value:function(It,mt,et){var tt=(Ct.default.randomUUID(),Ct.default.randomUUID()),st={AccessKeyId:It.accessKeyId,SecurityToken:It.securityToken,Action:"CreateUploadVideo",Title:It.title,FileName:It.fileName,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:tt,RequestId:It.requestId};It.fileSize&&(st.FileSize=It.fileSize),It.description&&(st.Description=It.description),It.cateId&&(st.CateId=It.cateId),It.tags&&(st.Tags=It.tags),It.templateGroupId&&(st.TemplateGroupId=It.templateGroupId),It.storageLocation&&(st.StorageLocation=It.storageLocation),It.coverUrl&&(st.CoverURL=It.coverUrl),It.transCodeMode&&(st.TransCodeMode=It.transCodeMode),It.userData&&(st.UserData=JSON.stringify(It.userData));var rt=Ct.default.makeUTF8sort(st,"=","&")+"&Signature="+Ct.default.aliyunEncodeURI(Ct.default.makeChangeSiga(st,It.accessKeySecret)),ut="https://vod."+It.region+".aliyuncs.com/?"+rt;Ot.default.get(ut,function(ct){try{ct=JSON.parse(ct)}catch(ft){if(et)return void et({Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"})}mt&&mt(ct)},function(ct){if(et){var ft={Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"};try{ft=JSON.parse(ct)}catch(pt){}et(ft)}})}},{key:"getImageUploadAuth",value:function(It,mt,et){var tt=(Ct.default.randomUUID(),Ct.default.randomUUID()),st={AccessKeyId:It.accessKeyId,SecurityToken:It.securityToken,Action:"CreateUploadImage",ImageType:It.imageType?It.imageType:"default",Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:tt,RequestId:It.requestId};It.title&&(st.Title=It.title),It.imageExt&&(st.ImageExt=It.imageExt),It.tags&&(st.Tags=It.tags),It.storageLocation&&(st.StorageLocation=It.storageLocation);var rt=Ct.default.makeUTF8sort(st,"=","&")+"&Signature="+Ct.default.aliyunEncodeURI(Ct.default.makeChangeSiga(st,It.accessKeySecret)),ut="https://vod."+It.region+".aliyuncs.com/?"+rt;Ot.default.get(ut,function(ct){ct=JSON.parse(ct),mt&&mt(ct)},function(ct){if(et){var ft=JSON.parse(ct);et(ft)}})}}]),At}();gt.default=Lt},function(zt,gt,Xt){(function(Qt,kt,Bt){zt.exports=gt=kt(Xt(0),Xt(28),Xt(29))})(0,function(Qt){return Qt.HmacSHA1})},function(zt,gt,Xt){(function(Qt,kt){zt.exports=gt=kt(Xt(0))})(0,function(Qt){return function(){var kt=Qt,Bt=kt.lib,xt=Bt.WordArray,Ot=Bt.Hasher,Rt=kt.algo,Ct=[],Lt=Rt.SHA1=Ot.extend({_doReset:function(){this._hash=new xt.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(At,It){for(var mt=this._hash.words,et=mt[0],tt=mt[1],st=mt[2],rt=mt[3],ut=mt[4],ct=0;ct<80;ct++){if(ct<16)Ct[ct]=0|At[It+ct];else{var ft=Ct[ct-3]^Ct[ct-8]^Ct[ct-14]^Ct[ct-16];Ct[ct]=ft<<1|ft>>>31}var pt=(et<<5|et>>>27)+ut+Ct[ct];pt+=ct<20?1518500249+(tt&st|~tt&rt):ct<40?1859775393+(tt^st^rt):ct<60?(tt&st|tt&rt|st&rt)-1894007588:(tt^st^rt)-899497514,ut=rt,rt=st,st=tt<<30|tt>>>2,tt=et,et=pt}mt[0]=mt[0]+et|0,mt[1]=mt[1]+tt|0,mt[2]=mt[2]+st|0,mt[3]=mt[3]+rt|0,mt[4]=mt[4]+ut|0},_doFinalize:function(){var At=this._data,It=At.words,mt=8*this._nDataBytes,et=8*At.sigBytes;return It[et>>>5]|=128<<24-et%32,It[14+(et+64>>>9<<4)]=Math.floor(mt/4294967296),It[15+(et+64>>>9<<4)]=mt,At.sigBytes=4*It.length,this._process(),this._hash},clone:function(){var At=Ot.clone.call(this);return At._hash=this._hash.clone(),At}});kt.SHA1=Ot._createHelper(Lt),kt.HmacSHA1=Ot._createHmacHelper(Lt)}(),Qt.SHA1})},function(zt,gt,Xt){(function(Qt,kt){zt.exports=gt=kt(Xt(0))})(0,function(Qt){(function(){var kt=Qt,Bt=kt.lib,xt=Bt.Base,Ot=kt.enc,Rt=Ot.Utf8,Ct=kt.algo;Ct.HMAC=xt.extend({init:function(Lt,At){Lt=this._hasher=new Lt.init,typeof At=="string"&&(At=Rt.parse(At));var It=Lt.blockSize,mt=4*It;At.sigBytes>mt&&(At=Lt.finalize(At)),At.clamp();for(var et=this._oKey=At.clone(),tt=this._iKey=At.clone(),st=et.words,rt=tt.words,ut=0;ut<It;ut++)st[ut]^=1549556828,rt[ut]^=909522486;et.sigBytes=tt.sigBytes=mt,this.reset()},reset:function(){var Lt=this._hasher;Lt.reset(),Lt.update(this._iKey)},update:function(Lt){return this._hasher.update(Lt),this},finalize:function(Lt){var At=this._hasher,It=At.finalize(Lt);return At.reset(),At.finalize(this._oKey.clone().concat(It))}})})()})},function(zt,gt,Xt){(function(Qt,kt){zt.exports=gt=kt(Xt(0))})(0,function(Qt){return function(){function kt(Ct,Lt,At){for(var It=[],mt=0,et=0;et<Lt;et++)if(et%4){var tt=At[Ct.charCodeAt(et-1)]<<et%4*2,st=At[Ct.charCodeAt(et)]>>>6-et%4*2;It[mt>>>2]|=(tt|st)<<24-mt%4*8,mt++}return Ot.create(It,mt)}var Bt=Qt,xt=Bt.lib,Ot=xt.WordArray,Rt=Bt.enc;Rt.Base64={stringify:function(Ct){var Lt=Ct.words,At=Ct.sigBytes,It=this._map;Ct.clamp();for(var mt=[],et=0;et<At;et+=3)for(var tt=Lt[et>>>2]>>>24-et%4*8&255,st=Lt[et+1>>>2]>>>24-(et+1)%4*8&255,rt=Lt[et+2>>>2]>>>24-(et+2)%4*8&255,ut=tt<<16|st<<8|rt,ct=0;ct<4&&et+.75*ct<At;ct++)mt.push(It.charAt(ut>>>6*(3-ct)&63));var ft=It.charAt(64);if(ft)for(;mt.length%4;)mt.push(ft);return mt.join("")},parse:function(Ct){var Lt=Ct.length,At=this._map,It=this._reverseMap;if(!It){It=this._reverseMap=[];for(var mt=0;mt<At.length;mt++)It[At.charCodeAt(mt)]=mt}var et=At.charAt(64);if(et){var tt=Ct.indexOf(et);tt!==-1&&(Lt=tt)}return kt(Ct,Lt,It)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),Qt.enc.Base64})},function(zt,gt,Xt){"use strict";function Qt(Pt){return Pt&&Pt.__esModule?Pt:{default:Pt}}function kt(Pt,Dt){if(!(Pt instanceof Dt))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(gt,"__esModule",{value:!0});var Bt=function(){function Pt(Dt,Zt){for(var Ft=0;Ft<Zt.length;Ft++){var qt=Zt[Ft];qt.enumerable=qt.enumerable||!1,qt.configurable=!0,"value"in qt&&(qt.writable=!0),Object.defineProperty(Dt,qt.key,qt)}}return function(Dt,Zt,Ft){return Zt&&Pt(Dt.prototype,Zt),Ft&&Pt(Dt,Ft),Dt}}(),xt=Xt(8),Ot=Qt(xt),Rt=Xt(7),Ct=Qt(Rt),Lt=Xt(4),At=Qt(Lt),It=Xt(6),mt=Qt(It),et=Xt(1),tt=Qt(et),st=Xt(9),rt=Qt(st),ut=Xt(2),ct=Xt(11),ft=Xt(10),pt=function(){function Pt(){kt(this,Pt)}return Bt(Pt,null,[{key:"getAuthInfo",value:function(Dt,Zt,Ft){var qt=Dt+"|f#Ylm&^1TppeRhLg|"+Ft;return Zt&&(qt=Dt+"|"+Zt+"|f#Ylm&^1TppeRhLg|"+Ft),ut(ft.parse(qt)).toString(ct)}},{key:"upload",value:function(Dt,Zt,Ft){var qt=tt.default.ISODateString(new Date),te=Math.floor(new Date().valueOf()/1e3),Gt=At.default.getClientId();Gt=At.default.setClientId(Gt);var ce=Pt.getAuthInfo(Dt.userId,Gt,te),ae=rt.default.randomUUID(),xe={Source:"WebSDK",BusinessType:"UploadVideo",Action:"ReportUploadProgress",TerminalType:"H5",DeviceModel:Ct.default.browser.name+(Ct.default.browser.version||""),AppVersion:mt.default.version,AuthTimestamp:te,Timestamp:qt,AuthInfo:ce,FileName:Dt.file.name,FileSize:Dt.file.size,FileCreateTime:Dt.file.lastModified,FileHash:Dt.fileHash,UploadId:Dt.checkpoint.checkpoint.uploadId,PartSize:Dt.checkpoint.checkpoint.partSize,DonePartsCount:Dt.checkpoint.checkpoint.doneParts.length,UploadPoint:JSON.stringify(Dt.checkpoint),UploadRatio:Dt.checkpoint.loaded,UserId:Dt.userId,VideoId:Dt.videoId,Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:ae};Gt&&(xe.ClientId=Gt);var ye=rt.default.makeUTF8sort(xe,"=","&")+"&Signature="+rt.default.aliyunEncodeURI(rt.default.makeChangeSiga(xe,Dt.accessKeySecret)),Te="https://vod."+Dt.region+".aliyuncs.com/?"+ye;Ot.default.get(Te,function(me){Zt&&Zt()},function(me){me&&(Ft(me),console.log(me))})}},{key:"get",value:function(Dt,Zt,Ft){var qt=tt.default.ISODateString(new Date),te=Math.floor(new Date().valueOf()/1e3),Gt=At.default.getClientId(),ce=Pt.getAuthInfo(Dt.userId,Gt,te),ae=rt.default.randomUUID(),xe={Source:"WebSDK",BusinessType:"UploadVideo",Action:"GetUploadProgress",TerminalType:"H5",DeviceModel:Ct.default.browser.name+(Ct.default.browser.version||""),AppVersion:mt.default.version,AuthTimestamp:te,Timestamp:qt,AuthInfo:ce,UserId:Dt.userId,UploadInfoList:JSON.stringify(Dt.uploadInfoList),Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:ae};Gt&&(xe.ClientId=Gt);var ye=rt.default.makeUTF8sort(xe,"=","&")+"&Signature="+rt.default.aliyunEncodeURI(rt.default.makeChangeSiga(xe,Dt.accessKeySecret)),Te="https://vod."+Dt.region+".aliyuncs.com/?"+ye;Ot.default.get(Te,function(me){var He={},fe=Gt;me=me?JSON.parse(me):{},me.UploadProgress&&me.UploadProgress.UploadProgressList&&me.UploadProgress.UploadProgressList.length>0&&(He=me.UploadProgress.UploadProgressList[0],fe=He.ClientId),At.default.setClientId(fe),Zt&&Zt(He)},function(me){me&&(Ft(me),console.log(me))})}}]),Pt}();gt.default=pt},function(zt,gt,Xt){"use strict";function Qt(Rt,Ct){if(!(Rt instanceof Ct))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(gt,"__esModule",{value:!0});var kt=function(){function Rt(Ct,Lt){for(var At=0;At<Lt.length;At++){var It=Lt[At];It.enumerable=It.enumerable||!1,It.configurable=!0,"value"in It&&(It.writable=!0),Object.defineProperty(Ct,It.key,It)}}return function(Ct,Lt,At){return Lt&&Rt(Ct.prototype,Lt),At&&Rt(Ct,At),Ct}}(),Bt=Xt(2),xt=Xt(33),Ot=(Xt(11),function(){function Rt(){Qt(this,Rt)}return kt(Rt,null,[{key:"getMd5",value:function(Ct,Lt,At){var It=new FileReader;It.onload=function(tt){try{if(tt&&tt.target){var st=Bt(xt.parse(tt.target.result)),rt=st.toString();Lt(rt)}}catch(ut){console.log(ut)}},It.onerror=function(tt){console.log(tt),errorCallback(tt)};var mt=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,et=mt.call(Ct,0,1024);It.readAsBinaryString(et)}}]),Rt}());gt.default=Ot},function(zt,gt,Xt){(function(Qt,kt){zt.exports=gt=kt(Xt(0))})(0,function(Qt){return Qt.enc.Latin1})}])},56762:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return gt}});var zt=Kt(59301);function gt(){const[,Xt]=zt.useReducer(Qt=>Qt+1,0);return Xt}},24905:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{default:function(){return Dt}});var zt=Kt(92310),gt=Kt.n(zt),Xt=Kt(5630),Qt=Kt(59301),kt=Kt(36355),Bt=Kt(1684),xt=Kt(32441),Rt=Qt.createContext(null),Ct=Kt(98447),Lt=Kt(14088),At=Kt(4572),It=function(Zt,Ft){var qt={};for(var te in Zt)Object.prototype.hasOwnProperty.call(Zt,te)&&Ft.indexOf(te)<0&&(qt[te]=Zt[te]);if(Zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,te=Object.getOwnPropertySymbols(Zt);Gt<te.length;Gt++)Ft.indexOf(te[Gt])<0&&Object.prototype.propertyIsEnumerable.call(Zt,te[Gt])&&(qt[te[Gt]]=Zt[te[Gt]]);return qt};const mt=(Zt,Ft)=>{var qt;const{prefixCls:te,className:Gt,rootClassName:ce,children:ae,indeterminate:xe=!1,style:ye,onMouseEnter:Te,onMouseLeave:me,skipGroup:He=!1,disabled:fe}=Zt,$t=It(Zt,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:ie,direction:ue,checkbox:ge}=Qt.useContext(kt.E_),he=Qt.useContext(Rt),{isFormItemInput:De}=Qt.useContext(xt.aM),Ne=Qt.useContext(Bt.Z),$e=(qt=(he==null?void 0:he.disabled)||fe)!==null&&qt!==void 0?qt:Ne,Re=Qt.useRef($t.value);Qt.useEffect(()=>{he==null||he.registerValue($t.value)},[]),Qt.useEffect(()=>{if(!He)return $t.value!==Re.current&&(he==null||he.cancelValue(Re.current),he==null||he.registerValue($t.value),Re.current=$t.value),()=>he==null?void 0:he.cancelValue($t.value)},[$t.value]);const tn=ie("checkbox",te),[Me,Oe]=(0,Ct.ZP)(tn),Fe=Object.assign({},$t);he&&!He&&(Fe.onChange=function(){$t.onChange&&$t.onChange.apply($t,arguments),he.toggleOption&&he.toggleOption({label:ae,value:$t.value})},Fe.name=he.name,Fe.checked=he.value.includes($t.value));const le=gt()(`${tn}-wrapper`,{[`${tn}-rtl`]:ue==="rtl",[`${tn}-wrapper-checked`]:Fe.checked,[`${tn}-wrapper-disabled`]:$e,[`${tn}-wrapper-in-form-item`]:De},ge==null?void 0:ge.className,Gt,ce,Oe),Tt=gt()({[`${tn}-indeterminate`]:xe},At.A,Oe),bt=xe?"mixed":void 0;return Me(Qt.createElement(Lt.Z,{component:"Checkbox",disabled:$e},Qt.createElement("label",{className:le,style:Object.assign(Object.assign({},ge==null?void 0:ge.style),ye),onMouseEnter:Te,onMouseLeave:me},Qt.createElement(Xt.Z,Object.assign({"aria-checked":bt},Fe,{prefixCls:tn,className:Tt,disabled:$e,ref:Ft})),ae!==void 0&&Qt.createElement("span",null,ae))))};var tt=Qt.forwardRef(mt),st=Kt(26407),rt=Kt(2738),ut=function(Zt,Ft){var qt={};for(var te in Zt)Object.prototype.hasOwnProperty.call(Zt,te)&&Ft.indexOf(te)<0&&(qt[te]=Zt[te]);if(Zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,te=Object.getOwnPropertySymbols(Zt);Gt<te.length;Gt++)Ft.indexOf(te[Gt])<0&&Object.prototype.propertyIsEnumerable.call(Zt,te[Gt])&&(qt[te[Gt]]=Zt[te[Gt]]);return qt};const ct=(Zt,Ft)=>{const{defaultValue:qt,children:te,options:Gt=[],prefixCls:ce,className:ae,rootClassName:xe,style:ye,onChange:Te}=Zt,me=ut(Zt,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:He,direction:fe}=Qt.useContext(kt.E_),[$t,ie]=Qt.useState(me.value||qt||[]),[ue,ge]=Qt.useState([]);Qt.useEffect(()=>{"value"in me&&ie(me.value||[])},[me.value]);const he=Qt.useMemo(()=>Gt.map(_t=>typeof _t=="string"||typeof _t=="number"?{label:_t,value:_t}:_t),[Gt]),De=_t=>{ge(Yt=>Yt.filter(Mt=>Mt!==_t))},Ne=_t=>{ge(Yt=>[].concat((0,st.Z)(Yt),[_t]))},$e=_t=>{const Yt=$t.indexOf(_t.value),Mt=(0,st.Z)($t);Yt===-1?Mt.push(_t.value):Mt.splice(Yt,1),"value"in me||ie(Mt),Te==null||Te(Mt.filter(Ut=>ue.includes(Ut)).sort((Ut,St)=>{const wt=he.findIndex(Wt=>Wt.value===Ut),jt=he.findIndex(Wt=>Wt.value===St);return wt-jt}))},Re=He("checkbox",ce),tn=`${Re}-group`,[Me,Oe]=(0,Ct.ZP)(Re),Fe=(0,rt.Z)(me,["value","disabled"]),le=Gt.length?he.map(_t=>Qt.createElement(tt,{prefixCls:Re,key:_t.value.toString(),disabled:"disabled"in _t?_t.disabled:me.disabled,value:_t.value,checked:$t.includes(_t.value),onChange:_t.onChange,className:`${tn}-item`,style:_t.style,title:_t.title},_t.label)):te,Tt={toggleOption:$e,value:$t,disabled:me.disabled,name:me.name,registerValue:Ne,cancelValue:De},bt=gt()(tn,{[`${tn}-rtl`]:fe==="rtl"},ae,xe,Oe);return Me(Qt.createElement("div",Object.assign({className:bt,style:ye},Fe,{ref:Ft}),Qt.createElement(Rt.Provider,{value:Tt},le)))},ft=Qt.forwardRef(ct);var pt=Qt.memo(ft);const Pt=tt;Pt.Group=pt,Pt.__ANT_CHECKBOX=!0;var Dt=Pt},98447:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{C2:function(){return kt}});var zt=Kt(17313),gt=Kt(37613),Xt=Kt(83116);const Qt=Bt=>{const{checkboxCls:xt}=Bt,Ot=`${xt}-wrapper`;return[{[`${xt}-group`]:Object.assign(Object.assign({},(0,zt.Wf)(Bt)),{display:"inline-flex",flexWrap:"wrap",columnGap:Bt.marginXS,[`> ${Bt.antCls}-row`]:{flex:1}}),[Ot]:Object.assign(Object.assign({},(0,zt.Wf)(Bt)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${Ot}`]:{marginInlineStart:0},[`&${Ot}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[xt]:Object.assign(Object.assign({},(0,zt.Wf)(Bt)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Bt.borderRadiusSM,alignSelf:"center",[`${xt}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${xt}-inner`]:Object.assign({},(0,zt.oN)(Bt))},[`${xt}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Bt.checkboxSize,height:Bt.checkboxSize,direction:"ltr",backgroundColor:Bt.colorBgContainer,border:`${Bt.lineWidth}px ${Bt.lineType} ${Bt.colorBorder}`,borderRadius:Bt.borderRadiusSM,borderCollapse:"separate",transition:`all ${Bt.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Bt.checkboxSize/14*5,height:Bt.checkboxSize/14*8,border:`${Bt.lineWidthBold}px solid ${Bt.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Bt.motionDurationFast} ${Bt.motionEaseInBack}, opacity ${Bt.motionDurationFast}`}},"& + span":{paddingInlineStart:Bt.paddingXS,paddingInlineEnd:Bt.paddingXS}})},{[`
|
|
|
${Ot}:not(${Ot}-disabled),
|
|
|
${xt}:not(${xt}-disabled)
|
|
|
`]:{[`&:hover ${xt}-inner`]:{borderColor:Bt.colorPrimary}},[`${Ot}:not(${Ot}-disabled)`]:{[`&:hover ${xt}-checked:not(${xt}-disabled) ${xt}-inner`]:{backgroundColor:Bt.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${xt}-checked:not(${xt}-disabled):after`]:{borderColor:Bt.colorPrimaryHover}}},{[`${xt}-checked`]:{[`${xt}-inner`]:{backgroundColor:Bt.colorPrimary,borderColor:Bt.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Bt.motionDurationMid} ${Bt.motionEaseOutBack} ${Bt.motionDurationFast}`}}},[`
|
|
|
${Ot}-checked:not(${Ot}-disabled),
|
|
|
${xt}-checked:not(${xt}-disabled)
|
|
|
`]:{[`&:hover ${xt}-inner`]:{backgroundColor:Bt.colorPrimaryHover,borderColor:"transparent"}}},{[xt]:{"&-indeterminate":{[`${xt}-inner`]:{backgroundColor:Bt.colorBgContainer,borderColor:Bt.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Bt.fontSizeLG/2,height:Bt.fontSizeLG/2,backgroundColor:Bt.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${Ot}-disabled`]:{cursor:"not-allowed"},[`${xt}-disabled`]:{[`&, ${xt}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${xt}-inner`]:{background:Bt.colorBgContainerDisabled,borderColor:Bt.colorBorder,"&:after":{borderColor:Bt.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Bt.colorTextDisabled},[`&${xt}-indeterminate ${xt}-inner::after`]:{background:Bt.colorTextDisabled}}}]};function kt(Bt,xt){const Ot=(0,gt.TS)(xt,{checkboxCls:`.${Bt}`,checkboxSize:xt.controlInteractiveSize});return[Qt(Ot)]}Cn.ZP=(0,Xt.Z)("Checkbox",(Bt,xt)=>{let{prefixCls:Ot}=xt;return[kt(Ot,Bt)]})},93891:function(Tn,Cn,Kt){"use strict";var zt=Kt(59301),gt=Kt(36355),Xt=Kt(64165);const Qt=kt=>{const{componentName:Bt}=kt,{getPrefixCls:xt}=(0,zt.useContext)(gt.E_),Ot=xt("empty");switch(Bt){case"Table":case"List":return zt.createElement(Xt.Z,{image:Xt.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return zt.createElement(Xt.Z,{image:Xt.Z.PRESENTED_IMAGE_SIMPLE,className:`${Ot}-small`});default:return zt.createElement(Xt.Z,null)}};Cn.Z=Qt},28103:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return At}});var zt=Kt(92310),gt=Kt.n(zt),Xt=Kt(59301),Qt=Kt(36355),kt=Kt(17313),Bt=Kt(83116),xt=Kt(37613);const Ot=It=>{const{componentCls:mt,sizePaddingEdgeHorizontal:et,colorSplit:tt,lineWidth:st,textPaddingInline:rt,orientationMargin:ut,verticalMarginInline:ct}=It;return{[mt]:Object.assign(Object.assign({},(0,kt.Wf)(It)),{borderBlockStart:`${st}px solid ${tt}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:ct,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${st}px solid ${tt}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${It.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${mt}-with-text`]:{display:"flex",alignItems:"center",margin:`${It.dividerHorizontalWithTextGutterMargin}px 0`,color:It.colorTextHeading,fontWeight:500,fontSize:It.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${tt}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${st}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${mt}-with-text-left`]:{"&::before":{width:`${ut*100}%`},"&::after":{width:`${100-ut*100}%`}},[`&-horizontal${mt}-with-text-right`]:{"&::before":{width:`${100-ut*100}%`},"&::after":{width:`${ut*100}%`}},[`${mt}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:rt},"&-dashed":{background:"none",borderColor:tt,borderStyle:"dashed",borderWidth:`${st}px 0 0`},[`&-horizontal${mt}-with-text${mt}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${mt}-dashed`]:{borderInlineStartWidth:st,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${mt}-with-text`]:{color:It.colorText,fontWeight:"normal",fontSize:It.fontSize},[`&-horizontal${mt}-with-text-left${mt}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${mt}-inner-text`]:{paddingInlineStart:et}},[`&-horizontal${mt}-with-text-right${mt}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${mt}-inner-text`]:{paddingInlineEnd:et}}})}};var Rt=(0,Bt.Z)("Divider",It=>{const mt=(0,xt.TS)(It,{dividerHorizontalWithTextGutterMargin:It.margin,dividerHorizontalGutterMargin:It.marginLG,sizePaddingEdgeHorizontal:0});return[Ot(mt)]},It=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:It.marginXS})),Ct=function(It,mt){var et={};for(var tt in It)Object.prototype.hasOwnProperty.call(It,tt)&&mt.indexOf(tt)<0&&(et[tt]=It[tt]);if(It!=null&&typeof Object.getOwnPropertySymbols=="function")for(var st=0,tt=Object.getOwnPropertySymbols(It);st<tt.length;st++)mt.indexOf(tt[st])<0&&Object.prototype.propertyIsEnumerable.call(It,tt[st])&&(et[tt[st]]=It[tt[st]]);return et},At=It=>{const{getPrefixCls:mt,direction:et,divider:tt}=Xt.useContext(Qt.E_),{prefixCls:st,type:rt="horizontal",orientation:ut="center",orientationMargin:ct,className:ft,rootClassName:pt,children:Pt,dashed:Dt,plain:Zt,style:Ft}=It,qt=Ct(It,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),te=mt("divider",st),[Gt,ce]=Rt(te),ae=ut.length>0?`-${ut}`:ut,xe=!!Pt,ye=ut==="left"&&ct!=null,Te=ut==="right"&&ct!=null,me=gt()(te,tt==null?void 0:tt.className,ce,`${te}-${rt}`,{[`${te}-with-text`]:xe,[`${te}-with-text${ae}`]:xe,[`${te}-dashed`]:!!Dt,[`${te}-plain`]:!!Zt,[`${te}-rtl`]:et==="rtl",[`${te}-no-default-orientation-margin-left`]:ye,[`${te}-no-default-orientation-margin-right`]:Te},ft,pt),He=Xt.useMemo(()=>typeof ct=="number"?ct:/^\d+$/.test(ct)?Number(ct):ct,[ct]),fe=Object.assign(Object.assign({},ye&&{marginLeft:He}),Te&&{marginRight:He});return Gt(Xt.createElement("div",Object.assign({className:me,style:Object.assign(Object.assign({},tt==null?void 0:tt.style),Ft)},qt,{role:"separator"}),Pt&&rt!=="vertical"&&Xt.createElement("span",{className:`${te}-inner-text`,style:fe},Pt)))}},43428:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return Me}});var zt=Kt(92310),gt=Kt.n(zt),Xt=Kt(33708),Qt=Kt(33606),kt=Kt(43403),Bt=Kt(34280),xt=Kt(59301),Ot=xt.createContext(null),Rt=xt.createContext({}),Ct=Ot,Lt=Kt(400),At=Kt(92413),It=Kt(77900),mt=Kt(10228),et=Kt(26112),tt=Kt(70425),st=function(Fe){var le=Fe.prefixCls,Tt=Fe.className,bt=Fe.style,_t=Fe.children,Yt=Fe.containerRef,Mt=Fe.id,Ut=Fe.onMouseEnter,St=Fe.onMouseOver,wt=Fe.onMouseLeave,jt=Fe.onClick,Wt=Fe.onKeyDown,Vt=Fe.onKeyUp,oe={onMouseEnter:Ut,onMouseOver:St,onMouseLeave:wt,onClick:jt,onKeyDown:Wt,onKeyUp:Vt},de=xt.useContext(Rt),Ge=de.panel,Ye=(0,tt.useComposeRef)(Ge,Yt);return xt.createElement(xt.Fragment,null,xt.createElement("div",(0,At.Z)({id:Mt,className:gt()("".concat(le,"-content"),Tt),style:(0,Xt.Z)({},bt),"aria-modal":"true",role:"dialog",ref:Ye},oe),_t))},rt=st,ut=Kt(48736);function ct(Oe){return typeof Oe=="string"&&String(Number(Oe))===Oe?((0,ut.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Oe)):Oe}function ft(Oe){warning(!("wrapperClassName"in Oe),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Oe.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var pt={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Pt(Oe,Fe){var le,Tt,bt,_t,Yt=Oe.prefixCls,Mt=Oe.open,Ut=Oe.placement,St=Oe.inline,wt=Oe.push,jt=Oe.forceRender,Wt=Oe.autoFocus,Vt=Oe.keyboard,oe=Oe.rootClassName,de=Oe.rootStyle,Ge=Oe.zIndex,Ye=Oe.className,Ue=Oe.id,an=Oe.style,vn=Oe.motion,ke=Oe.width,Ze=Oe.height,hn=Oe.children,Pn=Oe.contentWrapperStyle,In=Oe.mask,Bn=Oe.maskClosable,Zn=Oe.maskMotion,Gn=Oe.maskClassName,ci=Oe.maskStyle,pi=Oe.afterOpenChange,xi=Oe.onClose,Ci=Oe.onMouseEnter,Gi=Oe.onMouseOver,qi=Oe.onMouseLeave,bi=Oe.onClick,Yi=Oe.onKeyDown,ui=Oe.onKeyUp,ne=xt.useRef(),Wi=xt.useRef(),Fi=xt.useRef();xt.useImperativeHandle(Fe,function(){return ne.current});var nr=function(Hn){var Pe=Hn.keyCode,We=Hn.shiftKey;switch(Pe){case mt.Z.TAB:{if(Pe===mt.Z.TAB){if(!We&&document.activeElement===Fi.current){var pn;(pn=Wi.current)===null||pn===void 0||pn.focus({preventScroll:!0})}else if(We&&document.activeElement===Wi.current){var On;(On=Fi.current)===null||On===void 0||On.focus({preventScroll:!0})}}break}case mt.Z.ESC:{xi&&Vt&&(Hn.stopPropagation(),xi(Hn));break}}};xt.useEffect(function(){if(Mt&&Wt){var Nn;(Nn=ne.current)===null||Nn===void 0||Nn.focus({preventScroll:!0})}},[Mt]);var sr=xt.useState(!1),xr=(0,Qt.Z)(sr,2),vr=xr[0],Jn=xr[1],_n=xt.useContext(Ct),qe;wt===!1?qe={distance:0}:wt===!0?qe={}:qe=wt||{};var Qe=(le=(Tt=(bt=qe)===null||bt===void 0?void 0:bt.distance)!==null&&Tt!==void 0?Tt:_n==null?void 0:_n.pushDistance)!==null&&le!==void 0?le:180,we=xt.useMemo(function(){return{pushDistance:Qe,push:function(){Jn(!0)},pull:function(){Jn(!1)}}},[Qe]);xt.useEffect(function(){if(Mt){var Nn;_n==null||(Nn=_n.push)===null||Nn===void 0||Nn.call(_n)}else{var Hn;_n==null||(Hn=_n.pull)===null||Hn===void 0||Hn.call(_n)}},[Mt]),xt.useEffect(function(){return function(){var Nn;_n==null||(Nn=_n.pull)===null||Nn===void 0||Nn.call(_n)}},[]);var fn=In&&xt.createElement(It.default,(0,At.Z)({key:"mask"},Zn,{visible:Mt}),function(Nn,Hn){var Pe=Nn.className,We=Nn.style;return xt.createElement("div",{className:gt()("".concat(Yt,"-mask"),Pe,Gn),style:(0,Xt.Z)((0,Xt.Z)({},We),ci),onClick:Bn&&Mt?xi:void 0,ref:Hn})}),Sn=typeof vn=="function"?vn(Ut):vn,ze={};if(vr&&Qe)switch(Ut){case"top":ze.transform="translateY(".concat(Qe,"px)");break;case"bottom":ze.transform="translateY(".concat(-Qe,"px)");break;case"left":ze.transform="translateX(".concat(Qe,"px)");break;default:ze.transform="translateX(".concat(-Qe,"px)");break}Ut==="left"||Ut==="right"?ze.width=ct(ke):ze.height=ct(Ze);var Le={onMouseEnter:Ci,onMouseOver:Gi,onMouseLeave:qi,onClick:bi,onKeyDown:Yi,onKeyUp:ui},cn=xt.createElement(It.default,(0,At.Z)({key:"panel"},Sn,{visible:Mt,forceRender:jt,onVisibleChanged:function(Hn){pi==null||pi(Hn)},removeOnLeave:!1,leavedClassName:"".concat(Yt,"-content-wrapper-hidden")}),function(Nn,Hn){var Pe=Nn.className,We=Nn.style;return xt.createElement("div",(0,At.Z)({className:gt()("".concat(Yt,"-content-wrapper"),Pe),style:(0,Xt.Z)((0,Xt.Z)((0,Xt.Z)({},ze),We),Pn)},(0,et.Z)(Oe,{data:!0})),xt.createElement(rt,(0,At.Z)({id:Ue,containerRef:Hn,prefixCls:Yt,className:Ye,style:an},Le),hn))}),wn=(0,Xt.Z)({},de);return Ge&&(wn.zIndex=Ge),xt.createElement(Ct.Provider,{value:we},xt.createElement("div",{className:gt()(Yt,"".concat(Yt,"-").concat(Ut),oe,(_t={},(0,Lt.Z)(_t,"".concat(Yt,"-open"),Mt),(0,Lt.Z)(_t,"".concat(Yt,"-inline"),St),_t)),style:wn,tabIndex:-1,ref:ne,onKeyDown:nr},fn,xt.createElement("div",{tabIndex:0,ref:Wi,style:pt,"aria-hidden":"true","data-sentinel":"start"}),cn,xt.createElement("div",{tabIndex:0,ref:Fi,style:pt,"aria-hidden":"true","data-sentinel":"end"})))}var Dt=xt.forwardRef(Pt),Zt=Dt,Ft=function(Fe){var le=Fe.open,Tt=le===void 0?!1:le,bt=Fe.prefixCls,_t=bt===void 0?"rc-drawer":bt,Yt=Fe.placement,Mt=Yt===void 0?"right":Yt,Ut=Fe.autoFocus,St=Ut===void 0?!0:Ut,wt=Fe.keyboard,jt=wt===void 0?!0:wt,Wt=Fe.width,Vt=Wt===void 0?378:Wt,oe=Fe.mask,de=oe===void 0?!0:oe,Ge=Fe.maskClosable,Ye=Ge===void 0?!0:Ge,Ue=Fe.getContainer,an=Fe.forceRender,vn=Fe.afterOpenChange,ke=Fe.destroyOnClose,Ze=Fe.onMouseEnter,hn=Fe.onMouseOver,Pn=Fe.onMouseLeave,In=Fe.onClick,Bn=Fe.onKeyDown,Zn=Fe.onKeyUp,Gn=Fe.panelRef,ci=xt.useState(!1),pi=(0,Qt.Z)(ci,2),xi=pi[0],Ci=pi[1],Gi=xt.useState(!1),qi=(0,Qt.Z)(Gi,2),bi=qi[0],Yi=qi[1];(0,Bt.Z)(function(){Yi(!0)},[]);var ui=bi?Tt:!1,ne=xt.useRef(),Wi=xt.useRef();(0,Bt.Z)(function(){ui&&(Wi.current=document.activeElement)},[ui]);var Fi=function(Jn){var _n;if(Ci(Jn),vn==null||vn(Jn),!Jn&&Wi.current&&!((_n=ne.current)!==null&&_n!==void 0&&_n.contains(Wi.current))){var qe;(qe=Wi.current)===null||qe===void 0||qe.focus({preventScroll:!0})}},nr=xt.useMemo(function(){return{panel:Gn}},[Gn]);if(!an&&!xi&&!ui&&ke)return null;var sr={onMouseEnter:Ze,onMouseOver:hn,onMouseLeave:Pn,onClick:In,onKeyDown:Bn,onKeyUp:Zn},xr=(0,Xt.Z)((0,Xt.Z)({},Fe),{},{open:ui,prefixCls:_t,placement:Mt,autoFocus:St,keyboard:jt,width:Vt,mask:de,maskClosable:Ye,inline:Ue===!1,afterOpenChange:Fi,ref:ne},sr);return xt.createElement(Rt.Provider,{value:nr},xt.createElement(kt.Z,{open:ui||an||xi,autoDestroy:!1,getContainer:Ue,autoLock:de&&(ui||xi)},xt.createElement(Zt,xr)))},qt=Ft,te=qt,Gt=Kt(62892),ce=Kt(36355),ae=Kt(32441),xe=Kt(47729),Te=Oe=>{const{prefixCls:Fe,title:le,footer:Tt,extra:bt,closeIcon:_t,closable:Yt,onClose:Mt,headerStyle:Ut,drawerStyle:St,bodyStyle:wt,footerStyle:jt,children:Wt}=Oe,Vt=xt.useCallback(Ue=>xt.createElement("button",{type:"button",onClick:Mt,"aria-label":"Close",className:`${Fe}-close`},Ue),[Mt]),[oe,de]=(0,xe.Z)(Yt,_t,Vt,void 0,!0),Ge=xt.useMemo(()=>!le&&!oe?null:xt.createElement("div",{style:Ut,className:gt()(`${Fe}-header`,{[`${Fe}-header-close-only`]:oe&&!le&&!bt})},xt.createElement("div",{className:`${Fe}-header-title`},de,le&&xt.createElement("div",{className:`${Fe}-title`},le)),bt&&xt.createElement("div",{className:`${Fe}-extra`},bt)),[oe,de,bt,Ut,Fe,le]),Ye=xt.useMemo(()=>{if(!Tt)return null;const Ue=`${Fe}-footer`;return xt.createElement("div",{className:Ue,style:jt},Tt)},[Tt,jt,Fe]);return xt.createElement("div",{className:`${Fe}-wrapper-body`,style:St},Ge,xt.createElement("div",{className:`${Fe}-body`,style:wt},Wt),Ye)},me=Kt(33234),He=Kt(83116),fe=Kt(37613),ie=Oe=>{const{componentCls:Fe,motionDurationSlow:le}=Oe,Tt={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${le}`}}};return{[Fe]:{[`${Fe}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${le}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${Fe}-panel-motion`]:{"&-left":[Tt,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[Tt,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[Tt,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[Tt,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const ue=Oe=>{const{componentCls:Fe,zIndexPopup:le,colorBgMask:Tt,colorBgElevated:bt,motionDurationSlow:_t,motionDurationMid:Yt,padding:Mt,paddingLG:Ut,fontSizeLG:St,lineHeightLG:wt,lineWidth:jt,lineType:Wt,colorSplit:Vt,marginSM:oe,colorIcon:de,colorIconHover:Ge,colorText:Ye,fontWeightStrong:Ue,footerPaddingBlock:an,footerPaddingInline:vn}=Oe,ke=`${Fe}-content-wrapper`;return{[Fe]:{position:"fixed",inset:0,zIndex:le,pointerEvents:"none","&-pure":{position:"relative",background:bt,[`&${Fe}-left`]:{boxShadow:Oe.boxShadowDrawerLeft},[`&${Fe}-right`]:{boxShadow:Oe.boxShadowDrawerRight},[`&${Fe}-top`]:{boxShadow:Oe.boxShadowDrawerUp},[`&${Fe}-bottom`]:{boxShadow:Oe.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Fe}-mask`]:{position:"absolute",inset:0,zIndex:le,background:Tt,pointerEvents:"auto"},[ke]:{position:"absolute",zIndex:le,maxWidth:"100vw",transition:`all ${_t}`,"&-hidden":{display:"none"}},[`&-left > ${ke}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Oe.boxShadowDrawerLeft},[`&-right > ${ke}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Oe.boxShadowDrawerRight},[`&-top > ${ke}`]:{top:0,insetInline:0,boxShadow:Oe.boxShadowDrawerUp},[`&-bottom > ${ke}`]:{bottom:0,insetInline:0,boxShadow:Oe.boxShadowDrawerDown},[`${Fe}-content`]:{width:"100%",height:"100%",overflow:"auto",background:bt,pointerEvents:"auto"},[`${Fe}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${Fe}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Mt}px ${Ut}px`,fontSize:St,lineHeight:wt,borderBottom:`${jt}px ${Wt} ${Vt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Fe}-extra`]:{flex:"none"},[`${Fe}-close`]:{display:"inline-block",marginInlineEnd:oe,color:de,fontWeight:Ue,fontSize:St,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${Yt}`,textRendering:"auto","&:focus, &:hover":{color:Ge,textDecoration:"none"}},[`${Fe}-title`]:{flex:1,margin:0,color:Ye,fontWeight:Oe.fontWeightStrong,fontSize:St,lineHeight:wt},[`${Fe}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Ut,overflow:"auto"},[`${Fe}-footer`]:{flexShrink:0,padding:`${an}px ${vn}px`,borderTop:`${jt}px ${Wt} ${Vt}`},"&-rtl":{direction:"rtl"}}}};var ge=(0,He.Z)("Drawer",Oe=>{const Fe=(0,fe.TS)(Oe,{});return[ue(Fe),ie(Fe)]},Oe=>({zIndexPopup:Oe.zIndexPopupBase,footerPaddingBlock:Oe.paddingXS,footerPaddingInline:Oe.padding})),he=Kt(11575),De=function(Oe,Fe){var le={};for(var Tt in Oe)Object.prototype.hasOwnProperty.call(Oe,Tt)&&Fe.indexOf(Tt)<0&&(le[Tt]=Oe[Tt]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,Tt=Object.getOwnPropertySymbols(Oe);bt<Tt.length;bt++)Fe.indexOf(Tt[bt])<0&&Object.prototype.propertyIsEnumerable.call(Oe,Tt[bt])&&(le[Tt[bt]]=Oe[Tt[bt]]);return le};const Ne=null,$e={distance:180},Re=Oe=>{var Fe;const{rootClassName:le,width:Tt,height:bt,size:_t="default",mask:Yt=!0,push:Mt=$e,open:Ut,afterOpenChange:St,onClose:wt,prefixCls:jt,getContainer:Wt,style:Vt,className:oe,visible:de,afterVisibleChange:Ge}=Oe,Ye=De(Oe,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:Ue,getPrefixCls:an,direction:vn,drawer:ke}=xt.useContext(ce.E_),Ze=an("drawer",jt),[hn,Pn]=ge(Ze),In=Wt===void 0&&Ue?()=>Ue(document.body):Wt,Bn=gt()({"no-mask":!Yt,[`${Ze}-rtl`]:vn==="rtl"},le,Pn),Zn=xt.useMemo(()=>Tt!=null?Tt:_t==="large"?736:378,[Tt,_t]),Gn=xt.useMemo(()=>bt!=null?bt:_t==="large"?736:378,[bt,_t]),ci={motionName:(0,Gt.m)(Ze,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},pi=Ci=>({motionName:(0,Gt.m)(Ze,`panel-motion-${Ci}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),xi=(0,he.H)();return hn(xt.createElement(me.BR,null,xt.createElement(ae.Ux,{status:!0,override:!0},xt.createElement(te,Object.assign({prefixCls:Ze,onClose:wt,maskMotion:ci,motion:pi},Ye,{open:Ut!=null?Ut:de,mask:Yt,push:Mt,width:Zn,height:Gn,style:Object.assign(Object.assign({},ke==null?void 0:ke.style),Vt),className:gt()(ke==null?void 0:ke.className,oe),rootClassName:Bn,getContainer:In,afterOpenChange:St!=null?St:Ge,panelRef:xi}),xt.createElement(Te,Object.assign({prefixCls:Ze},Ye,{onClose:wt}))))))},tn=Oe=>{const{prefixCls:Fe,style:le,className:Tt,placement:bt="right"}=Oe,_t=De(Oe,["prefixCls","style","className","placement"]),{getPrefixCls:Yt}=xt.useContext(ce.E_),Mt=Yt("drawer",Fe),[Ut,St]=ge(Mt),wt=gt()(Mt,`${Mt}-pure`,`${Mt}-${bt}`,St,Tt);return Ut(xt.createElement("div",{className:wt,style:le},xt.createElement(Te,Object.assign({prefixCls:Mt},_t))))};Re._InternalPanelDoNotUseOrYouWillBeFired=tn;var Me=Re},91857:function(Tn,Cn,Kt){"use strict";var zt=Kt(59301),gt=Kt(38819),Xt=Kt(92310),Qt=Kt.n(Xt),kt=Kt(31561),Bt=Kt(70425),xt=Kt(18929),Ot=Kt(2738),Rt=Kt(79676),Ct=Kt(53487),Lt=Kt(92343),At=Kt(36355),It=Kt(20834),mt=Kt(40875),et=Kt(88088),tt=Kt(47211);const st=null,rt=pt=>{const{menu:Pt,arrow:Dt,prefixCls:Zt,children:Ft,trigger:qt,disabled:te,dropdownRender:Gt,getPopupContainer:ce,overlayClassName:ae,rootClassName:xe,open:ye,onOpenChange:Te,visible:me,onVisibleChange:He,mouseEnterDelay:fe=.15,mouseLeaveDelay:$t=.1,autoAdjustOverflow:ie=!0,placement:ue="",overlay:ge,transitionName:he}=pt,{getPopupContainer:De,getPrefixCls:Ne,direction:$e}=zt.useContext(At.E_),Re=zt.useMemo(()=>{const oe=Ne();return he!==void 0?he:ue.includes("top")?`${oe}-slide-down`:`${oe}-slide-up`},[Ne,ue,he]),tn=zt.useMemo(()=>ue?ue.includes("Center")?ue.slice(0,ue.indexOf("Center")):ue:$e==="rtl"?"bottomRight":"bottomLeft",[ue,$e]),Me=Ne("dropdown",Zt),[Oe,Fe]=(0,tt.Z)(Me),[,le]=(0,et.Z)(),Tt=zt.Children.only(Ft),bt=(0,Lt.Tm)(Tt,{className:Qt()(`${Me}-trigger`,{[`${Me}-rtl`]:$e==="rtl"},Tt.props.className),disabled:te}),_t=te?[]:qt;let Yt;_t&&_t.includes("contextMenu")&&(Yt=!0);const[Mt,Ut]=(0,xt.Z)(!1,{value:ye!=null?ye:me}),St=(0,Bt.useEvent)(oe=>{Te==null||Te(oe),He==null||He(oe),Ut(oe)}),wt=Qt()(ae,xe,Fe,{[`${Me}-rtl`]:$e==="rtl"}),jt=(0,Rt.Z)({arrowPointAtCenter:typeof Dt=="object"&&Dt.pointAtCenter,autoAdjustOverflow:ie,offset:le.marginXXS,arrowWidth:Dt?le.sizePopupArrow:0,borderRadius:le.borderRadius}),Wt=zt.useCallback(()=>{Ut(!1)},[]),Vt=()=>{let oe;return Pt!=null&&Pt.items?oe=zt.createElement(It.default,Object.assign({},Pt)):typeof ge=="function"?oe=ge():oe=ge,Gt&&(oe=Gt(oe)),oe=zt.Children.only(typeof oe=="string"?zt.createElement("span",null,oe):oe),zt.createElement(mt.J,{prefixCls:`${Me}-menu`,expandIcon:zt.createElement("span",{className:`${Me}-menu-submenu-arrow`},zt.createElement(gt.Z,{className:`${Me}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Wt,validator:de=>{let{mode:Ge}=de}},oe)};return Oe(zt.createElement(kt.Z,Object.assign({alignPoint:Yt},(0,Ot.Z)(pt,["rootClassName"]),{mouseEnterDelay:fe,mouseLeaveDelay:$t,visible:Mt,builtinPlacements:jt,arrow:!!Dt,overlayClassName:wt,prefixCls:Me,getPopupContainer:ce||De,transitionName:Re,trigger:_t,overlay:Vt,placement:tn,onVisibleChange:St}),bt))};function ut(pt){return Object.assign(Object.assign({},pt),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ct=(0,Ct.Z)(rt,"dropdown",pt=>pt,ut),ft=pt=>zt.createElement(ct,Object.assign({},pt),zt.createElement("span",null));rt._InternalPanelDoNotUseOrYouWillBeFired=ft,Cn.Z=rt},38854:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return et}});var zt=Kt(91857),gt=Kt(92310),Xt=Kt.n(gt),Qt=Kt(59301),kt=Kt(18785),Bt=Kt(3113),xt=Kt(36355),Ot=Kt(81327),Rt=Kt(33234),Ct=Kt(47211),Lt=function(tt,st){var rt={};for(var ut in tt)Object.prototype.hasOwnProperty.call(tt,ut)&&st.indexOf(ut)<0&&(rt[ut]=tt[ut]);if(tt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,ut=Object.getOwnPropertySymbols(tt);ct<ut.length;ct++)st.indexOf(ut[ct])<0&&Object.prototype.propertyIsEnumerable.call(tt,ut[ct])&&(rt[ut[ct]]=tt[ut[ct]]);return rt};const At=tt=>{const{getPopupContainer:st,getPrefixCls:rt,direction:ut}=Qt.useContext(xt.E_),{prefixCls:ct,type:ft="default",danger:pt,disabled:Pt,loading:Dt,onClick:Zt,htmlType:Ft,children:qt,className:te,menu:Gt,arrow:ce,autoFocus:ae,overlay:xe,trigger:ye,align:Te,open:me,onOpenChange:He,placement:fe,getPopupContainer:$t,href:ie,icon:ue=Qt.createElement(kt.Z,null),title:ge,buttonsRender:he=Vt=>Vt,mouseEnterDelay:De,mouseLeaveDelay:Ne,overlayClassName:$e,overlayStyle:Re,destroyPopupOnHide:tn,dropdownRender:Me}=tt,Oe=Lt(tt,["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"]),Fe=rt("dropdown",ct),le=`${Fe}-button`,[Tt,bt]=(0,Ct.Z)(Fe),_t={menu:Gt,arrow:ce,autoFocus:ae,align:Te,disabled:Pt,trigger:Pt?[]:ye,onOpenChange:He,getPopupContainer:$t||st,mouseEnterDelay:De,mouseLeaveDelay:Ne,overlayClassName:$e,overlayStyle:Re,destroyPopupOnHide:tn,dropdownRender:Me},{compactSize:Yt,compactItemClassnames:Mt}=(0,Rt.ri)(Fe,ut),Ut=Xt()(le,Mt,te,bt);"overlay"in tt&&(_t.overlay=xe),"open"in tt&&(_t.open=me),"placement"in tt?_t.placement=fe:_t.placement=ut==="rtl"?"bottomLeft":"bottomRight";const St=Qt.createElement(Bt.ZP,{type:ft,danger:pt,disabled:Pt,loading:Dt,onClick:Zt,htmlType:Ft,href:ie,title:ge},qt),wt=Qt.createElement(Bt.ZP,{type:ft,danger:pt,icon:ue}),[jt,Wt]=he([St,wt]);return Tt(Qt.createElement(Ot.Z.Compact,Object.assign({className:Ut,size:Yt,block:!0},Oe),jt,Qt.createElement(zt.Z,Object.assign({},_t),Wt)))};At.__ANT_BUTTON=!0;var It=At;const mt=zt.Z;mt.Button=It;var et=mt},47211:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return Lt}});var zt=Kt(17313),gt=Kt(13826),Xt=Kt(92899),Qt=Kt(29878),kt=Kt(19447),Bt=Kt(83116),xt=Kt(37613),Rt=At=>{const{componentCls:It,menuCls:mt,colorError:et,colorTextLightSolid:tt}=At,st=`${mt}-item`;return{[`${It}, ${It}-menu-submenu`]:{[`${mt} ${st}`]:{[`&${st}-danger:not(${st}-disabled)`]:{color:et,"&:hover":{color:tt,backgroundColor:et}}}}}};const Ct=At=>{const{componentCls:It,menuCls:mt,zIndexPopup:et,dropdownArrowDistance:tt,sizePopupArrow:st,antCls:rt,iconCls:ut,motionDurationMid:ct,dropdownPaddingVertical:ft,fontSize:pt,dropdownEdgeChildPadding:Pt,colorTextDisabled:Dt,fontSizeIcon:Zt,controlPaddingHorizontal:Ft,colorBgElevated:qt}=At;return[{[It]:Object.assign(Object.assign({},(0,zt.Wf)(At)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:et,display:"block","&::before":{position:"absolute",insetBlock:-tt+st/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${rt}-btn`]:{[`& > ${ut}-down, & > ${rt}-btn-icon > ${ut}-down`]:{fontSize:Zt}},[`${It}-wrap`]:{position:"relative",[`${rt}-btn > ${ut}-down`]:{fontSize:Zt},[`${ut}-down::before`]:{transition:`transform ${ct}`}},[`${It}-wrap-open`]:{[`${ut}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${rt}-slide-down-enter${rt}-slide-down-enter-active${It}-placement-bottomLeft,
|
|
|
&${rt}-slide-down-appear${rt}-slide-down-appear-active${It}-placement-bottomLeft,
|
|
|
&${rt}-slide-down-enter${rt}-slide-down-enter-active${It}-placement-bottom,
|
|
|
&${rt}-slide-down-appear${rt}-slide-down-appear-active${It}-placement-bottom,
|
|
|
&${rt}-slide-down-enter${rt}-slide-down-enter-active${It}-placement-bottomRight,
|
|
|
&${rt}-slide-down-appear${rt}-slide-down-appear-active${It}-placement-bottomRight`]:{animationName:gt.fJ},[`&${rt}-slide-up-enter${rt}-slide-up-enter-active${It}-placement-topLeft,
|
|
|
&${rt}-slide-up-appear${rt}-slide-up-appear-active${It}-placement-topLeft,
|
|
|
&${rt}-slide-up-enter${rt}-slide-up-enter-active${It}-placement-top,
|
|
|
&${rt}-slide-up-appear${rt}-slide-up-appear-active${It}-placement-top,
|
|
|
&${rt}-slide-up-enter${rt}-slide-up-enter-active${It}-placement-topRight,
|
|
|
&${rt}-slide-up-appear${rt}-slide-up-appear-active${It}-placement-topRight`]:{animationName:gt.Qt},[`&${rt}-slide-down-leave${rt}-slide-down-leave-active${It}-placement-bottomLeft,
|
|
|
&${rt}-slide-down-leave${rt}-slide-down-leave-active${It}-placement-bottom,
|
|
|
&${rt}-slide-down-leave${rt}-slide-down-leave-active${It}-placement-bottomRight`]:{animationName:gt.Uw},[`&${rt}-slide-up-leave${rt}-slide-up-leave-active${It}-placement-topLeft,
|
|
|
&${rt}-slide-up-leave${rt}-slide-up-leave-active${It}-placement-top,
|
|
|
&${rt}-slide-up-leave${rt}-slide-up-leave-active${It}-placement-topRight`]:{animationName:gt.ly}})},(0,kt.ZP)(At,{colorBg:qt,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${It} ${mt}`]:{position:"relative",margin:0},[`${mt}-submenu-popup`]:{position:"absolute",zIndex:et,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${It}, ${It}-menu-submenu`]:{[mt]:Object.assign(Object.assign({padding:Pt,listStyleType:"none",backgroundColor:qt,backgroundClip:"padding-box",borderRadius:At.borderRadiusLG,outline:"none",boxShadow:At.boxShadowSecondary},(0,zt.Qy)(At)),{[`${mt}-item-group-title`]:{padding:`${ft}px ${Ft}px`,color:At.colorTextDescription,transition:`all ${ct}`},[`${mt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${mt}-item-icon`]:{minWidth:pt,marginInlineEnd:At.marginXS,fontSize:At.fontSizeSM},[`${mt}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ct}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${mt}-item, ${mt}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${ft}px ${Ft}px`,color:At.colorText,fontWeight:"normal",fontSize:pt,lineHeight:At.lineHeight,cursor:"pointer",transition:`all ${ct}`,borderRadius:At.borderRadiusSM,"&:hover, &-active":{backgroundColor:At.controlItemBgHover}},(0,zt.Qy)(At)),{"&-selected":{color:At.colorPrimary,backgroundColor:At.controlItemBgActive,"&:hover, &-active":{backgroundColor:At.controlItemBgActiveHover}},"&-disabled":{color:Dt,cursor:"not-allowed","&:hover":{color:Dt,backgroundColor:qt,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${At.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:At.colorSplit},[`${It}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:At.paddingXS,[`${It}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:At.colorTextDescription,fontSize:Zt,fontStyle:"normal"}}}),[`${mt}-item-group-list`]:{margin:`0 ${At.marginXS}px`,padding:0,listStyle:"none"},[`${mt}-submenu-title`]:{paddingInlineEnd:Ft+At.fontSizeSM},[`${mt}-submenu-vertical`]:{position:"relative"},[`${mt}-submenu${mt}-submenu-disabled ${It}-menu-submenu-title`]:{[`&, ${It}-menu-submenu-arrow-icon`]:{color:Dt,backgroundColor:qt,cursor:"not-allowed"}},[`${mt}-submenu-selected ${It}-menu-submenu-title`]:{color:At.colorPrimary}})}},[(0,gt.oN)(At,"slide-up"),(0,gt.oN)(At,"slide-down"),(0,Xt.Fm)(At,"move-up"),(0,Xt.Fm)(At,"move-down"),(0,Qt._y)(At,"zoom-big")]]};var Lt=(0,Bt.Z)("Dropdown",(At,It)=>{let{rootPrefixCls:mt}=It;const{marginXXS:et,sizePopupArrow:tt,controlHeight:st,fontSize:rt,lineHeight:ut,paddingXXS:ct,componentCls:ft,borderRadiusLG:pt}=At,Pt=(st-rt*ut)/2,{dropdownArrowOffset:Dt}=(0,kt.fS)({contentRadius:pt}),Zt=(0,xt.TS)(At,{menuCls:`${ft}-menu`,rootPrefixCls:mt,dropdownArrowDistance:tt/2+et,dropdownArrowOffset:Dt,dropdownPaddingVertical:Pt,dropdownEdgeChildPadding:ct});return[Ct(Zt),Rt(Zt)]},At=>({zIndexPopup:At.zIndexPopupBase+50}))},64165:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return ct}});var zt=Kt(92310),gt=Kt.n(zt),Xt=Kt(59301),Qt=Kt(36355),kt=Kt(9763),Bt=Kt(64993),xt=Kt(88088),Rt=()=>{const[,ft]=(0,xt.Z)(),Pt=new Bt.C(ft.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Xt.createElement("svg",{style:Pt,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Xt.createElement("g",{fill:"none",fillRule:"evenodd"},Xt.createElement("g",{transform:"translate(24 31.67)"},Xt.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Xt.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"}),Xt.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)"}),Xt.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"}),Xt.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"})),Xt.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"}),Xt.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Xt.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Xt.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},Lt=()=>{const[,ft]=(0,xt.Z)(),{colorFill:pt,colorFillTertiary:Pt,colorFillQuaternary:Dt,colorBgContainer:Zt}=ft,{borderColor:Ft,shadowColor:qt,contentColor:te}=(0,Xt.useMemo)(()=>({borderColor:new Bt.C(pt).onBackground(Zt).toHexShortString(),shadowColor:new Bt.C(Pt).onBackground(Zt).toHexShortString(),contentColor:new Bt.C(Dt).onBackground(Zt).toHexShortString()}),[pt,Pt,Dt,Zt]);return Xt.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Xt.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Xt.createElement("ellipse",{fill:qt,cx:"32",cy:"33",rx:"32",ry:"7"}),Xt.createElement("g",{fillRule:"nonzero",stroke:Ft},Xt.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"}),Xt.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:te}))))},At=Kt(83116),It=Kt(37613);const mt=ft=>{const{componentCls:pt,margin:Pt,marginXS:Dt,marginXL:Zt,fontSize:Ft,lineHeight:qt}=ft;return{[pt]:{marginInline:Dt,fontSize:Ft,lineHeight:qt,textAlign:"center",[`${pt}-image`]:{height:ft.emptyImgHeight,marginBottom:Dt,opacity:ft.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${pt}-description`]:{color:ft.colorText},[`${pt}-footer`]:{marginTop:Pt},"&-normal":{marginBlock:Zt,color:ft.colorTextDisabled,[`${pt}-description`]:{color:ft.colorTextDisabled},[`${pt}-image`]:{height:ft.emptyImgHeightMD}},"&-small":{marginBlock:Dt,color:ft.colorTextDisabled,[`${pt}-image`]:{height:ft.emptyImgHeightSM}}}}};var et=(0,At.Z)("Empty",ft=>{const{componentCls:pt,controlHeightLG:Pt}=ft,Dt=(0,It.TS)(ft,{emptyImgCls:`${pt}-img`,emptyImgHeight:Pt*2.5,emptyImgHeightMD:Pt,emptyImgHeightSM:Pt*.875});return[mt(Dt)]}),tt=function(ft,pt){var Pt={};for(var Dt in ft)Object.prototype.hasOwnProperty.call(ft,Dt)&&pt.indexOf(Dt)<0&&(Pt[Dt]=ft[Dt]);if(ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zt=0,Dt=Object.getOwnPropertySymbols(ft);Zt<Dt.length;Zt++)pt.indexOf(Dt[Zt])<0&&Object.prototype.propertyIsEnumerable.call(ft,Dt[Zt])&&(Pt[Dt[Zt]]=ft[Dt[Zt]]);return Pt};const st=Xt.createElement(Rt,null),rt=Xt.createElement(Lt,null),ut=ft=>{var{className:pt,rootClassName:Pt,prefixCls:Dt,image:Zt=st,description:Ft,children:qt,imageStyle:te,style:Gt}=ft,ce=tt(ft,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:ae,direction:xe,empty:ye}=Xt.useContext(Qt.E_),Te=ae("empty",Dt),[me,He]=et(Te),[fe]=(0,kt.Z)("Empty"),$t=typeof Ft!="undefined"?Ft:fe==null?void 0:fe.description,ie=typeof $t=="string"?$t:"empty";let ue=null;return typeof Zt=="string"?ue=Xt.createElement("img",{alt:ie,src:Zt}):ue=Zt,me(Xt.createElement("div",Object.assign({className:gt()(He,Te,ye==null?void 0:ye.className,{[`${Te}-normal`]:Zt===rt,[`${Te}-rtl`]:xe==="rtl"},pt,Pt),style:Object.assign(Object.assign({},ye==null?void 0:ye.style),Gt)},ce),Xt.createElement("div",{className:`${Te}-image`,style:te},ue),$t&&Xt.createElement("div",{className:`${Te}-description`},$t),qt&&Xt.createElement("div",{className:`${Te}-footer`},qt)))};ut.PRESENTED_IMAGE_DEFAULT=st,ut.PRESENTED_IMAGE_SIMPLE=rt;var ct=ut},78241:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{default:function(){return Qe}});var zt=Kt(26407),gt=Kt(92310),Xt=Kt.n(gt),Qt=Kt(77900),kt=Kt(59301),Bt=Kt(62892),xt=Kt(32441);function Ot(we){const[fn,Sn]=kt.useState(we);return kt.useEffect(()=>{const ze=setTimeout(()=>{Sn(we)},we.length?0:10);return()=>{clearTimeout(ze)}},[we]),fn}var Rt=Kt(17313),Ct=Kt(29878),Lt=Kt(8378),At=Kt(37613),It=Kt(83116),et=we=>{const{componentCls:fn}=we,Sn=`${fn}-show-help`,ze=`${fn}-show-help-item`;return{[Sn]:{transition:`opacity ${we.motionDurationSlow} ${we.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[ze]:{overflow:"hidden",transition:`height ${we.motionDurationSlow} ${we.motionEaseInOut},
|
|
|
opacity ${we.motionDurationSlow} ${we.motionEaseInOut},
|
|
|
transform ${we.motionDurationSlow} ${we.motionEaseInOut} !important`,[`&${ze}-appear, &${ze}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${ze}-leave-active`]:{transform:"translateY(-5px)"}}}}};const tt=we=>({legend:{display:"block",width:"100%",marginBottom:we.marginLG,padding:0,color:we.colorTextDescription,fontSize:we.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${we.lineWidth}px ${we.lineType} ${we.colorBorder}`},label:{fontSize:we.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 ${we.controlOutlineWidth}px ${we.controlOutline}`},output:{display:"block",paddingTop:15,color:we.colorText,fontSize:we.fontSize,lineHeight:we.lineHeight}}),st=(we,fn)=>{const{formItemCls:Sn}=we;return{[Sn]:{[`${Sn}-label > label`]:{height:fn},[`${Sn}-control-input`]:{minHeight:fn}}}},rt=we=>{const{componentCls:fn}=we;return{[we.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Rt.Wf)(we)),tt(we)),{[`${fn}-text`]:{display:"inline-block",paddingInlineEnd:we.paddingSM},"&-small":Object.assign({},st(we,we.controlHeightSM)),"&-large":Object.assign({},st(we,we.controlHeightLG))})}},ut=we=>{const{formItemCls:fn,iconCls:Sn,componentCls:ze,rootPrefixCls:Le,labelRequiredMarkColor:cn,labelColor:wn,labelFontSize:Nn,labelHeight:Hn,labelColonMarginInlineStart:Pe,labelColonMarginInlineEnd:We,itemMarginBottom:pn}=we;return{[fn]:Object.assign(Object.assign({},(0,Rt.Wf)(we)),{marginBottom:pn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${Le}-row`]:{display:"none"},"&-has-warning":{[`${fn}-split`]:{color:we.colorError}},"&-has-error":{[`${fn}-split`]:{color:we.colorWarning}},[`${fn}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${we.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Hn,color:wn,fontSize:Nn,[`> ${Sn}`]:{fontSize:we.fontSize,verticalAlign:"top"},[`&${fn}-required:not(${fn}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:we.marginXXS,color:cn,fontSize:we.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${ze}-hide-required-mark &`]:{display:"none"}},[`${fn}-optional`]:{display:"inline-block",marginInlineStart:we.marginXXS,color:we.colorTextDescription,[`${ze}-hide-required-mark &`]:{display:"none"}},[`${fn}-tooltip`]:{color:we.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:we.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Pe,marginInlineEnd:We},[`&${fn}-no-colon::after`]:{content:'"\\a0"'}}},[`${fn}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Le}-col-'"]):not([class*="' ${Le}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:we.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[fn]:{"&-explain, &-extra":{clear:"both",color:we.colorTextDescription,fontSize:we.fontSize,lineHeight:we.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:we.controlHeightSM,transition:`color ${we.motionDurationMid} ${we.motionEaseOut}`},"&-explain":{"&-error":{color:we.colorError},"&-warning":{color:we.colorWarning}}},[`&-with-help ${fn}-explain`]:{height:"auto",opacity:1},[`${fn}-feedback-icon`]:{fontSize:we.fontSize,textAlign:"center",visibility:"visible",animationName:Ct.kr,animationDuration:we.motionDurationMid,animationTimingFunction:we.motionEaseOutBack,pointerEvents:"none","&-success":{color:we.colorSuccess},"&-error":{color:we.colorError},"&-warning":{color:we.colorWarning},"&-validating":{color:we.colorPrimary}}})}},ct=we=>{const{componentCls:fn,formItemCls:Sn}=we;return{[`${fn}-horizontal`]:{[`${Sn}-label`]:{flexGrow:0},[`${Sn}-control`]:{flex:"1 1 0",minWidth:0},[`${Sn}-label[class$='-24'], ${Sn}-label[class*='-24 ']`]:{[`& + ${Sn}-control`]:{minWidth:"unset"}}}}},ft=we=>{const{componentCls:fn,formItemCls:Sn}=we;return{[`${fn}-inline`]:{display:"flex",flexWrap:"wrap",[Sn]:{flex:"none",marginInlineEnd:we.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Sn}-label,
|
|
|
> ${Sn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Sn}-label`]:{flex:"none"},[`${fn}-text`]:{display:"inline-block"},[`${Sn}-has-feedback`]:{display:"inline-block"}}}}},pt=we=>({padding:we.verticalLabelPadding,margin:we.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Pt=we=>{const{componentCls:fn,formItemCls:Sn,rootPrefixCls:ze}=we;return{[`${Sn} ${Sn}-label`]:pt(we),[fn]:{[Sn]:{flexWrap:"wrap",[`${Sn}-label, ${Sn}-control`]:{[`&:not([class*=" ${ze}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Dt=we=>{const{componentCls:fn,formItemCls:Sn,rootPrefixCls:ze}=we;return{[`${fn}-vertical`]:{[Sn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${fn}-item-control`]:{width:"100%"}}},[`${fn}-vertical ${Sn}-label,
|
|
|
.${ze}-col-24${Sn}-label,
|
|
|
.${ze}-col-xl-24${Sn}-label`]:pt(we),[`@media (max-width: ${we.screenXSMax}px)`]:[Pt(we),{[fn]:{[`.${ze}-col-xs-24${Sn}-label`]:pt(we)}}],[`@media (max-width: ${we.screenSMMax}px)`]:{[fn]:{[`.${ze}-col-sm-24${Sn}-label`]:pt(we)}},[`@media (max-width: ${we.screenMDMax}px)`]:{[fn]:{[`.${ze}-col-md-24${Sn}-label`]:pt(we)}},[`@media (max-width: ${we.screenLGMax}px)`]:{[fn]:{[`.${ze}-col-lg-24${Sn}-label`]:pt(we)}}}},Zt=(we,fn)=>(0,At.TS)(we,{formItemCls:`${we.componentCls}-item`,rootPrefixCls:fn});var Ft=(0,It.Z)("Form",(we,fn)=>{let{rootPrefixCls:Sn}=fn;const ze=Zt(we,Sn);return[rt(ze),ut(ze),et(ze),ct(ze),ft(ze),Dt(ze),(0,Lt.Z)(ze),Ct.kr]},we=>({labelRequiredMarkColor:we.colorError,labelColor:we.colorTextHeading,labelFontSize:we.fontSize,labelHeight:we.controlHeight,labelColonMarginInlineStart:we.marginXXS/2,labelColonMarginInlineEnd:we.marginXS,itemMarginBottom:we.marginLG,verticalLabelPadding:`0 0 ${we.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const qt=[];function te(we,fn,Sn){let ze=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof we=="string"?we:`${fn}-${ze}`,error:we,errorStatus:Sn}}var ce=we=>{let{help:fn,helpStatus:Sn,errors:ze=qt,warnings:Le=qt,className:cn,fieldId:wn,onVisibleChanged:Nn}=we;const{prefixCls:Hn}=kt.useContext(xt.Rk),Pe=`${Hn}-item-explain`,[,We]=Ft(Hn),pn=(0,kt.useMemo)(()=>(0,Bt.Z)(Hn),[Hn]),On=Ot(ze),Ke=Ot(Le),nn=kt.useMemo(()=>fn!=null?[te(fn,"help",Sn)]:[].concat((0,zt.Z)(On.map((en,un)=>te(en,"error","error",un))),(0,zt.Z)(Ke.map((en,un)=>te(en,"warning","warning",un)))),[fn,Sn,On,Ke]),_e={};return wn&&(_e.id=`${wn}_help`),kt.createElement(Qt.default,{motionDeadline:pn.motionDeadline,motionName:`${Hn}-show-help`,visible:!!nn.length,onVisibleChanged:Nn},en=>{const{className:un,style:sn}=en;return kt.createElement("div",Object.assign({},_e,{className:Xt()(Pe,un,cn,We),style:sn,role:"alert"}),kt.createElement(Qt.CSSMotionList,Object.assign({keys:nn},(0,Bt.Z)(Hn),{motionName:`${Hn}-show-help-item`,component:!1}),xn=>{const{key:gn,error:Ln,errorStatus:Mn,className:Qn,style:ln}=xn;return kt.createElement("div",{key:gn,className:Xt()(Qn,{[`${Pe}-${Mn}`]:Mn}),style:ln},Ln)}))})},ae=Kt(95013),xe=Kt(36355),ye=Kt(1684),Te=Kt(52946),me=Kt(19716),He=Kt(16722);const fe=["parentNode"],$t="form_item";function ie(we){return we===void 0||we===!1?[]:Array.isArray(we)?we:[we]}function ue(we,fn){if(!we.length)return;const Sn=we.join("_");return fn?`${fn}_${Sn}`:fe.includes(Sn)?`${$t}_${Sn}`:Sn}function ge(we,fn,Sn,ze,Le,cn){let wn=ze;return cn!==void 0?wn=cn:Sn.validating?wn="validating":we.length?wn="error":fn.length?wn="warning":(Sn.touched||Le&&Sn.validated)&&(wn="success"),wn}function he(we){return ie(we).join("_")}function De(we){const[fn]=(0,ae.useForm)(),Sn=kt.useRef({}),ze=kt.useMemo(()=>we!=null?we:Object.assign(Object.assign({},fn),{__INTERNAL__:{itemRef:Le=>cn=>{const wn=he(Le);cn?Sn.current[wn]=cn:delete Sn.current[wn]}},scrollToField:function(Le){let cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const wn=ie(Le),Nn=ue(wn,ze.__INTERNAL__.name),Hn=Nn?document.getElementById(Nn):null;Hn&&(0,He.Z)(Hn,Object.assign({scrollMode:"if-needed",block:"nearest"},cn))},getFieldInstance:Le=>{const cn=he(Le);return Sn.current[cn]}}),[we,fn]);return[ze]}var Ne=Kt(28726),$e=function(we,fn){var Sn={};for(var ze in we)Object.prototype.hasOwnProperty.call(we,ze)&&fn.indexOf(ze)<0&&(Sn[ze]=we[ze]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,ze=Object.getOwnPropertySymbols(we);Le<ze.length;Le++)fn.indexOf(ze[Le])<0&&Object.prototype.propertyIsEnumerable.call(we,ze[Le])&&(Sn[ze[Le]]=we[ze[Le]]);return Sn};const Re=(we,fn)=>{const Sn=kt.useContext(ye.Z),{getPrefixCls:ze,direction:Le,form:cn}=kt.useContext(xe.E_),{prefixCls:wn,className:Nn,rootClassName:Hn,size:Pe,disabled:We=Sn,form:pn,colon:On,labelAlign:Ke,labelWrap:nn,labelCol:_e,wrapperCol:en,hideRequiredMark:un,layout:sn="horizontal",scrollToFirstError:xn,requiredMark:gn,onFinishFailed:Ln,name:Mn,style:Qn,feedbackIcons:ln}=we,ti=$e(we,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),vi=(0,me.Z)(Pe),oi=kt.useContext(Ne.Z),dn=(0,kt.useMemo)(()=>gn!==void 0?gn:cn&&cn.requiredMark!==void 0?cn.requiredMark:!un,[un,gn,cn]),Rn=On!=null?On:cn==null?void 0:cn.colon,Xn=ze("form",wn),[hi,ei]=Ft(Xn),fi=Xt()(Xn,`${Xn}-${sn}`,{[`${Xn}-hide-required-mark`]:dn===!1,[`${Xn}-rtl`]:Le==="rtl",[`${Xn}-${vi}`]:vi},ei,cn==null?void 0:cn.className,Nn,Hn),[Ai]=De(pn),{__INTERNAL__:gi}=Ai;gi.name=Mn;const ii=(0,kt.useMemo)(()=>({name:Mn,labelAlign:Ke,labelCol:_e,labelWrap:nn,wrapperCol:en,vertical:sn==="vertical",colon:Rn,requiredMark:dn,itemRef:gi.itemRef,form:Ai,feedbackIcons:ln}),[Mn,Ke,_e,en,sn,Rn,dn,Ai,ln]);kt.useImperativeHandle(fn,()=>Ai);const Li=(er,En)=>{if(er){let Oi={block:"nearest"};typeof er=="object"&&(Oi=er),Ai.scrollToField(En,Oi)}},bn=er=>{if(Ln==null||Ln(er),er.errorFields.length){const En=er.errorFields[0].name;if(xn!==void 0){Li(xn,En);return}cn&&cn.scrollToFirstError!==void 0&&Li(cn.scrollToFirstError,En)}};return hi(kt.createElement(ye.n,{disabled:We},kt.createElement(Te.q,{size:vi},kt.createElement(xt.RV,Object.assign({},{validateMessages:oi}),kt.createElement(xt.q3.Provider,{value:ii},kt.createElement(ae.default,Object.assign({id:Mn},ti,{name:Mn,onFinishFailed:bn,form:Ai,style:Object.assign(Object.assign({},cn==null?void 0:cn.style),Qn),className:fi})))))))};var Me=kt.forwardRef(Re),Oe=Kt(41799),Fe=Kt(8654),le=Kt(92343),Tt=Kt(11592);function bt(we){if(typeof we=="function")return we;const fn=(0,Tt.Z)(we);return fn.length<=1?fn[0]:fn}const _t=()=>{const{status:we,errors:fn=[],warnings:Sn=[]}=(0,kt.useContext)(xt.aM);return{status:we,errors:fn,warnings:Sn}};_t.Context=xt.aM;var Yt=_t,Mt=Kt(16089);function Ut(we){const[fn,Sn]=kt.useState(we),ze=(0,kt.useRef)(null),Le=(0,kt.useRef)([]),cn=(0,kt.useRef)(!1);kt.useEffect(()=>(cn.current=!1,()=>{cn.current=!0,Mt.Z.cancel(ze.current),ze.current=null}),[]);function wn(Nn){cn.current||(ze.current===null&&(Le.current=[],ze.current=(0,Mt.Z)(()=>{ze.current=null,Sn(Hn=>{let Pe=Hn;return Le.current.forEach(We=>{Pe=We(Pe)}),Pe})})),Le.current.push(Nn))}return[fn,wn]}function St(){const{itemRef:we}=kt.useContext(xt.q3),fn=kt.useRef({});function Sn(ze,Le){const cn=Le&&typeof Le=="object"&&Le.ref,wn=ze.join("_");return(fn.current.name!==wn||fn.current.originRef!==cn)&&(fn.current.name=wn,fn.current.originRef=cn,fn.current.ref=(0,Fe.sQ)(we(ze),cn)),fn.current.ref}return Sn}var wt=Kt(29194),jt=Kt(34280),Wt=Kt(2738),Vt=Kt(27382),oe=Kt(37028);const de=we=>{const{formItemCls:fn}=we;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${fn}-control`]:{display:"flex"}}}};var Ge=(0,It.b)(["Form","item-item"],(we,fn)=>{let{rootPrefixCls:Sn}=fn;const ze=Zt(we,Sn);return[de(ze)]}),Ue=we=>{const{prefixCls:fn,status:Sn,wrapperCol:ze,children:Le,errors:cn,warnings:wn,_internalItemRender:Nn,extra:Hn,help:Pe,fieldId:We,marginBottom:pn,onErrorVisibleChanged:On}=we,Ke=`${fn}-item`,nn=kt.useContext(xt.q3),_e=ze||nn.wrapperCol||{},en=Xt()(`${Ke}-control`,_e.className),un=kt.useMemo(()=>Object.assign({},nn),[nn]);delete un.labelCol,delete un.wrapperCol;const sn=kt.createElement("div",{className:`${Ke}-control-input`},kt.createElement("div",{className:`${Ke}-control-input-content`},Le)),xn=kt.useMemo(()=>({prefixCls:fn,status:Sn}),[fn,Sn]),gn=pn!==null||cn.length||wn.length?kt.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},kt.createElement(xt.Rk.Provider,{value:xn},kt.createElement(ce,{fieldId:We,errors:cn,warnings:wn,help:Pe,helpStatus:Sn,className:`${Ke}-explain-connected`,onVisibleChanged:On})),!!pn&&kt.createElement("div",{style:{width:0,height:pn}})):null,Ln={};We&&(Ln.id=`${We}_extra`);const Mn=Hn?kt.createElement("div",Object.assign({},Ln,{className:`${Ke}-extra`}),Hn):null,Qn=Nn&&Nn.mark==="pro_table_render"&&Nn.render?Nn.render(we,{input:sn,errorList:gn,extra:Mn}):kt.createElement(kt.Fragment,null,sn,gn,Mn);return kt.createElement(xt.q3.Provider,{value:un},kt.createElement(oe.Z,Object.assign({},_e,{className:en}),Qn),kt.createElement(Ge,{prefixCls:fn}))},an=Kt(61485),vn=Kt(31724),ke=Kt(9763),Ze=Kt(6848),hn=function(we,fn){var Sn={};for(var ze in we)Object.prototype.hasOwnProperty.call(we,ze)&&fn.indexOf(ze)<0&&(Sn[ze]=we[ze]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,ze=Object.getOwnPropertySymbols(we);Le<ze.length;Le++)fn.indexOf(ze[Le])<0&&Object.prototype.propertyIsEnumerable.call(we,ze[Le])&&(Sn[ze[Le]]=we[ze[Le]]);return Sn};function Pn(we){return we?typeof we=="object"&&!kt.isValidElement(we)?we:{title:we}:null}var Bn=we=>{let{prefixCls:fn,label:Sn,htmlFor:ze,labelCol:Le,labelAlign:cn,colon:wn,required:Nn,requiredMark:Hn,tooltip:Pe}=we;var We;const[pn]=(0,ke.Z)("Form"),{vertical:On,labelAlign:Ke,labelCol:nn,labelWrap:_e,colon:en}=kt.useContext(xt.q3);if(!Sn)return null;const un=Le||nn||{},sn=cn||Ke,xn=`${fn}-item-label`,gn=Xt()(xn,sn==="left"&&`${xn}-left`,un.className,{[`${xn}-wrap`]:!!_e});let Ln=Sn;const Mn=wn===!0||en!==!1&&wn!==!1;Mn&&!On&&typeof Sn=="string"&&Sn.trim()!==""&&(Ln=Sn.replace(/[:|:]\s*$/,""));const ln=Pn(Pe);if(ln){const{icon:dn=kt.createElement(an.Z,null)}=ln,Rn=hn(ln,["icon"]),Xn=kt.createElement(Ze.Z,Object.assign({},Rn),kt.cloneElement(dn,{className:`${fn}-item-tooltip`,title:""}));Ln=kt.createElement(kt.Fragment,null,Ln,Xn)}const ti=Hn==="optional",vi=typeof Hn=="function";vi?Ln=Hn(Ln,{required:!!Nn}):ti&&!Nn&&(Ln=kt.createElement(kt.Fragment,null,Ln,kt.createElement("span",{className:`${fn}-item-optional`,title:""},(pn==null?void 0:pn.optional)||((We=vn.Z.Form)===null||We===void 0?void 0:We.optional))));const oi=Xt()({[`${fn}-item-required`]:Nn,[`${fn}-item-required-mark-optional`]:ti||vi,[`${fn}-item-no-colon`]:!Mn});return kt.createElement(oe.Z,Object.assign({},un,{className:gn}),kt.createElement("label",{htmlFor:ze,className:oi,title:typeof Sn=="string"?Sn:""},Ln))},Zn=Kt(29679),Gn=Kt(19248),ci=Kt(96512),pi=Kt(58617);const xi={success:Zn.Z,warning:ci.Z,error:Gn.Z,validating:pi.Z};function Ci(we){let{children:fn,errors:Sn,warnings:ze,hasFeedback:Le,validateStatus:cn,prefixCls:wn,meta:Nn,noStyle:Hn}=we;const Pe=`${wn}-item`,{feedbackIcons:We}=kt.useContext(xt.q3),pn=ge(Sn,ze,Nn,null,!!Le,cn),{isFormItemInput:On,status:Ke}=kt.useContext(xt.aM),nn=kt.useMemo(()=>{var _e;let en;if(Le){const xn=Le!==!0&&Le.icons||We,gn=pn&&((_e=xn==null?void 0:xn({status:pn,errors:Sn,warnings:ze}))===null||_e===void 0?void 0:_e[pn]),Ln=pn&&xi[pn];en=gn!==!1&&Ln?kt.createElement("span",{className:Xt()(`${Pe}-feedback-icon`,`${Pe}-feedback-icon-${pn}`)},gn||kt.createElement(Ln,null)):null}let un=!0,sn=pn||"";return Hn&&(un=On,sn=(pn!=null?pn:Ke)||""),{status:sn,errors:Sn,warnings:ze,hasFeedback:!!Le,feedbackIcon:en,isFormItemInput:un}},[pn,Le,Hn,On,Ke]);return kt.createElement(xt.aM.Provider,{value:nn},fn)}var Gi=function(we,fn){var Sn={};for(var ze in we)Object.prototype.hasOwnProperty.call(we,ze)&&fn.indexOf(ze)<0&&(Sn[ze]=we[ze]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,ze=Object.getOwnPropertySymbols(we);Le<ze.length;Le++)fn.indexOf(ze[Le])<0&&Object.prototype.propertyIsEnumerable.call(we,ze[Le])&&(Sn[ze[Le]]=we[ze[Le]]);return Sn};function qi(we){const{prefixCls:fn,className:Sn,rootClassName:ze,style:Le,help:cn,errors:wn,warnings:Nn,validateStatus:Hn,meta:Pe,hasFeedback:We,hidden:pn,children:On,fieldId:Ke,required:nn,isRequired:_e,onSubItemMetaChange:en}=we,un=Gi(we,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),sn=`${fn}-item`,{requiredMark:xn}=kt.useContext(xt.q3),gn=kt.useRef(null),Ln=Ot(wn),Mn=Ot(Nn),Qn=cn!=null,ln=!!(Qn||wn.length||Nn.length),ti=!!gn.current&&(0,wt.Z)(gn.current),[vi,oi]=kt.useState(null);(0,jt.Z)(()=>{if(ln&&gn.current){const ei=getComputedStyle(gn.current);oi(parseInt(ei.marginBottom,10))}},[ln,ti]);const dn=ei=>{ei||oi(null)},Xn=function(){let ei=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const fi=ei?Ln:Pe.errors,Ai=ei?Mn:Pe.warnings;return ge(fi,Ai,Pe,"",!!We,Hn)}(),hi=Xt()(sn,Sn,ze,{[`${sn}-with-help`]:Qn||Ln.length||Mn.length,[`${sn}-has-feedback`]:Xn&&We,[`${sn}-has-success`]:Xn==="success",[`${sn}-has-warning`]:Xn==="warning",[`${sn}-has-error`]:Xn==="error",[`${sn}-is-validating`]:Xn==="validating",[`${sn}-hidden`]:pn});return kt.createElement("div",{className:hi,style:Le,ref:gn},kt.createElement(Vt.Z,Object.assign({className:`${sn}-row`},(0,Wt.Z)(un,["_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"])),kt.createElement(Bn,Object.assign({htmlFor:Ke},we,{requiredMark:xn,required:nn!=null?nn:_e,prefixCls:fn})),kt.createElement(Ue,Object.assign({},we,Pe,{errors:Ln,warnings:Mn,prefixCls:fn,status:Xn,help:cn,marginBottom:vi,onErrorVisibleChanged:dn}),kt.createElement(xt.qI.Provider,{value:en},kt.createElement(Ci,{prefixCls:fn,meta:Pe,errors:Pe.errors,warnings:Pe.warnings,hasFeedback:We,validateStatus:Xn},On)))),!!vi&&kt.createElement("div",{className:`${sn}-margin-offset`,style:{marginBottom:-vi}}))}const bi="__SPLIT__",Yi=null,ui=kt.memo(we=>{let{children:fn}=we;return fn},(we,fn)=>we.value===fn.value&&we.update===fn.update&&we.childProps.length===fn.childProps.length&&we.childProps.every((Sn,ze)=>Sn===fn.childProps[ze]));function ne(we){return we!=null}function Wi(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Fi(we){const{name:fn,noStyle:Sn,className:ze,dependencies:Le,prefixCls:cn,shouldUpdate:wn,rules:Nn,children:Hn,required:Pe,label:We,messageVariables:pn,trigger:On="onChange",validateTrigger:Ke,hidden:nn,help:_e}=we,{getPrefixCls:en}=kt.useContext(xe.E_),{name:un}=kt.useContext(xt.q3),sn=bt(Hn),xn=typeof sn=="function",gn=kt.useContext(xt.qI),{validateTrigger:Ln}=kt.useContext(ae.FieldContext),Mn=Ke!==void 0?Ke:Ln,Qn=ne(fn),ln=en("form",cn),[ti,vi]=Ft(ln),oi=kt.useContext(ae.ListContext),dn=kt.useRef(),[Rn,Xn]=Ut({}),[hi,ei]=(0,Oe.Z)(()=>Wi()),fi=En=>{const Oi=oi==null?void 0:oi.getKey(En.name);if(ei(En.destroy?Wi():En,!0),Sn&&_e!==!1&&gn){let wr=En.name;if(En.destroy)wr=dn.current||wr;else if(Oi!==void 0){const[_i,kr]=Oi;wr=[_i].concat((0,zt.Z)(kr)),dn.current=wr}gn(En,wr)}},Ai=(En,Oi)=>{Xn(wr=>{const _i=Object.assign({},wr),gr=[].concat((0,zt.Z)(En.name.slice(0,-1)),(0,zt.Z)(Oi)).join(bi);return En.destroy?delete _i[gr]:_i[gr]=En,_i})},[gi,ii]=kt.useMemo(()=>{const En=(0,zt.Z)(hi.errors),Oi=(0,zt.Z)(hi.warnings);return Object.values(Rn).forEach(wr=>{En.push.apply(En,(0,zt.Z)(wr.errors||[])),Oi.push.apply(Oi,(0,zt.Z)(wr.warnings||[]))}),[En,Oi]},[Rn,hi.errors,hi.warnings]),Li=St();function bn(En,Oi,wr){return Sn&&!nn?kt.createElement(Ci,{prefixCls:ln,hasFeedback:we.hasFeedback,validateStatus:we.validateStatus,meta:hi,errors:gi,warnings:ii,noStyle:!0},En):kt.createElement(qi,Object.assign({key:"row"},we,{className:Xt()(ze,vi),prefixCls:ln,fieldId:Oi,isRequired:wr,errors:gi,warnings:ii,meta:hi,onSubItemMetaChange:Ai}),En)}if(!Qn&&!xn&&!Le)return ti(bn(sn));let er={};return typeof We=="string"?er.label=We:fn&&(er.label=String(fn)),pn&&(er=Object.assign(Object.assign({},er),pn)),ti(kt.createElement(ae.Field,Object.assign({},we,{messageVariables:er,trigger:On,validateTrigger:Mn,onMetaChange:fi}),(En,Oi,wr)=>{const _i=ie(fn).length&&Oi?Oi.name:[],kr=ue(_i,un),gr=Pe!==void 0?Pe:!!(Nn&&Nn.some(Zi=>{if(Zi&&typeof Zi=="object"&&Zi.required&&!Zi.warningOnly)return!0;if(typeof Zi=="function"){const Xi=Zi(wr);return Xi&&Xi.required&&!Xi.warningOnly}return!1})),wi=Object.assign({},En);let yi=null;if(Array.isArray(sn)&&Qn)yi=sn;else if(!(xn&&(!(wn||Le)||Qn))){if(!(Le&&!xn&&!Qn))if((0,le.l$)(sn)){const Zi=Object.assign(Object.assign({},sn.props),wi);if(Zi.id||(Zi.id=kr),_e||gi.length>0||ii.length>0||we.extra){const Se=[];(_e||gi.length>0)&&Se.push(`${kr}_help`),we.extra&&Se.push(`${kr}_extra`),Zi["aria-describedby"]=Se.join(" ")}gi.length>0&&(Zi["aria-invalid"]="true"),gr&&(Zi["aria-required"]="true"),(0,Fe.Yr)(sn)&&(Zi.ref=Li(_i,sn)),new Set([].concat((0,zt.Z)(ie(On)),(0,zt.Z)(ie(Mn)))).forEach(Se=>{Zi[Se]=function(){for(var ji,yr,Ki,rr,Tr,Ar=arguments.length,Bi=new Array(Ar),Di=0;Di<Ar;Di++)Bi[Di]=arguments[Di];(Ki=wi[Se])===null||Ki===void 0||(ji=Ki).call.apply(ji,[wi].concat(Bi)),(Tr=(rr=sn.props)[Se])===null||Tr===void 0||(yr=Tr).call.apply(yr,[rr].concat(Bi))}});const qn=[Zi["aria-required"],Zi["aria-invalid"],Zi["aria-describedby"]];yi=kt.createElement(ui,{value:wi[we.valuePropName||"value"],update:sn,childProps:qn},(0,le.Tm)(sn,Zi))}else xn&&(wn||Le)&&!Qn?yi=sn(wr):yi=sn}return bn(yi,kr,gr)}))}const nr=Fi;nr.useStatus=Yt;var sr=nr,xr=function(we,fn){var Sn={};for(var ze in we)Object.prototype.hasOwnProperty.call(we,ze)&&fn.indexOf(ze)<0&&(Sn[ze]=we[ze]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Le=0,ze=Object.getOwnPropertySymbols(we);Le<ze.length;Le++)fn.indexOf(ze[Le])<0&&Object.prototype.propertyIsEnumerable.call(we,ze[Le])&&(Sn[ze[Le]]=we[ze[Le]]);return Sn},Jn=we=>{var{prefixCls:fn,children:Sn}=we,ze=xr(we,["prefixCls","children"]);const{getPrefixCls:Le}=kt.useContext(xe.E_),cn=Le("form",fn),wn=kt.useMemo(()=>({prefixCls:cn,status:"error"}),[cn]);return kt.createElement(ae.List,Object.assign({},ze),(Nn,Hn,Pe)=>kt.createElement(xt.Rk.Provider,{value:wn},Sn(Nn.map(We=>Object.assign(Object.assign({},We),{fieldKey:We.key})),Hn,{errors:Pe.errors,warnings:Pe.warnings})))};function _n(){const{form:we}=(0,kt.useContext)(xt.q3);return we}const qe=Me;qe.Item=sr,qe.List=Jn,qe.ErrorList=ce,qe.useForm=De,qe.useFormInstance=_n,qe.useWatch=ae.useWatch,qe.Provider=xt.RV,qe.create=()=>{};var Qe=qe},8628:function(Tn,Cn,Kt){"use strict";var zt=Kt(59301),gt=Kt(34280),Xt=Kt(56762),Qt=Kt(69507);function kt(){let Bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const xt=(0,zt.useRef)({}),Ot=(0,Xt.Z)(),Rt=(0,Qt.ZP)();return(0,gt.Z)(()=>{const Ct=Rt.subscribe(Lt=>{xt.current=Lt,Bt&&Ot()});return()=>Rt.unsubscribe(Ct)},[]),xt.current}Cn.Z=kt},9432:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return ut},n:function(){return st}});var zt=Kt(19248),gt=Kt(92310),Xt=Kt.n(gt),Qt=Kt(93681),kt=Kt(8654),Bt=Kt(59301),xt=Kt(19080),Ot=Kt(36355),Rt=Kt(1684),Ct=Kt(19716),Lt=Kt(32441),At=Kt(33234),It=Kt(59412),mt=Kt(9937);function et(ct){return!!(ct.prefix||ct.suffix||ct.allowClear)}var tt=function(ct,ft){var pt={};for(var Pt in ct)Object.prototype.hasOwnProperty.call(ct,Pt)&&ft.indexOf(Pt)<0&&(pt[Pt]=ct[Pt]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,Pt=Object.getOwnPropertySymbols(ct);Dt<Pt.length;Dt++)ft.indexOf(Pt[Dt])<0&&Object.prototype.propertyIsEnumerable.call(ct,Pt[Dt])&&(pt[Pt[Dt]]=ct[Pt[Dt]]);return pt};function st(ct,ft){if(!ct)return;ct.focus(ft);const{cursor:pt}=ft||{};if(pt){const Pt=ct.value.length;switch(pt){case"start":ct.setSelectionRange(0,0);break;case"end":ct.setSelectionRange(Pt,Pt);break;default:ct.setSelectionRange(0,Pt);break}}}var ut=(0,Bt.forwardRef)((ct,ft)=>{var pt;const{prefixCls:Pt,bordered:Dt=!0,status:Zt,size:Ft,disabled:qt,onBlur:te,onFocus:Gt,suffix:ce,allowClear:ae,addonAfter:xe,addonBefore:ye,className:Te,style:me,styles:He,rootClassName:fe,onChange:$t,classNames:ie}=ct,ue=tt(ct,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:ge,direction:he,input:De}=Bt.useContext(Ot.E_),Ne=ge("input",Pt),$e=(0,Bt.useRef)(null),[Re,tn]=(0,mt.ZP)(Ne),{compactSize:Me,compactItemClassnames:Oe}=(0,At.ri)(Ne,he),Fe=(0,Ct.Z)(Ge=>{var Ye;return(Ye=Ft!=null?Ft:Me)!==null&&Ye!==void 0?Ye:Ge}),le=Bt.useContext(Rt.Z),Tt=qt!=null?qt:le,{status:bt,hasFeedback:_t,feedbackIcon:Yt}=(0,Bt.useContext)(Lt.aM),Mt=(0,xt.F)(bt,Zt),Ut=et(ct)||!!_t,St=(0,Bt.useRef)(Ut);(0,Bt.useEffect)(()=>{var Ge;Ut&&St.current,St.current=Ut},[Ut]);const wt=(0,It.Z)($e,!0),jt=Ge=>{wt(),te==null||te(Ge)},Wt=Ge=>{wt(),Gt==null||Gt(Ge)},Vt=Ge=>{wt(),$t==null||$t(Ge)},oe=(_t||ce)&&Bt.createElement(Bt.Fragment,null,ce,_t&&Yt);let de;return typeof ae=="object"&&(ae!=null&&ae.clearIcon)?de=ae:ae&&(de={clearIcon:Bt.createElement(zt.Z,null)}),Re(Bt.createElement(Qt.default,Object.assign({ref:(0,kt.sQ)(ft,$e),prefixCls:Ne,autoComplete:De==null?void 0:De.autoComplete},ue,{disabled:Tt,onBlur:jt,onFocus:Wt,style:Object.assign(Object.assign({},De==null?void 0:De.style),me),styles:Object.assign(Object.assign({},De==null?void 0:De.styles),He),suffix:oe,allowClear:de,className:Xt()(Te,fe,Oe,De==null?void 0:De.className),onChange:Vt,addonAfter:xe&&Bt.createElement(At.BR,null,Bt.createElement(Lt.Ux,{override:!0,status:!0},xe)),addonBefore:ye&&Bt.createElement(At.BR,null,Bt.createElement(Lt.Ux,{override:!0,status:!0},ye)),classNames:Object.assign(Object.assign(Object.assign({},ie),De==null?void 0:De.classNames),{input:Xt()({[`${Ne}-sm`]:Fe==="small",[`${Ne}-lg`]:Fe==="large",[`${Ne}-rtl`]:he==="rtl",[`${Ne}-borderless`]:!Dt},!Ut&&(0,xt.Z)(Ne,Mt),ie==null?void 0:ie.input,(pt=De==null?void 0:De.classNames)===null||pt===void 0?void 0:pt.input,tn)}),classes:{affixWrapper:Xt()({[`${Ne}-affix-wrapper-sm`]:Fe==="small",[`${Ne}-affix-wrapper-lg`]:Fe==="large",[`${Ne}-affix-wrapper-rtl`]:he==="rtl",[`${Ne}-affix-wrapper-borderless`]:!Dt},(0,xt.Z)(`${Ne}-affix-wrapper`,Mt,_t),tn),wrapper:Xt()({[`${Ne}-group-rtl`]:he==="rtl"},tn),group:Xt()({[`${Ne}-group-wrapper-sm`]:Fe==="small",[`${Ne}-group-wrapper-lg`]:Fe==="large",[`${Ne}-group-wrapper-rtl`]:he==="rtl",[`${Ne}-group-wrapper-disabled`]:Tt},(0,xt.Z)(`${Ne}-group-wrapper`,Mt,_t),tn)}})))})},1643:function(Tn,Cn,Kt){"use strict";var zt=Kt(19248),gt=Kt(92310),Xt=Kt.n(gt),Qt=Kt(9296),kt=Kt(59301),Bt=Kt(19080),xt=Kt(36355),Ot=Kt(1684),Rt=Kt(19716),Ct=Kt(32441),Lt=Kt(9432),At=Kt(9937),It=function(et,tt){var st={};for(var rt in et)Object.prototype.hasOwnProperty.call(et,rt)&&tt.indexOf(rt)<0&&(st[rt]=et[rt]);if(et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,rt=Object.getOwnPropertySymbols(et);ut<rt.length;ut++)tt.indexOf(rt[ut])<0&&Object.prototype.propertyIsEnumerable.call(et,rt[ut])&&(st[rt[ut]]=et[rt[ut]]);return st};const mt=(0,kt.forwardRef)((et,tt)=>{const{prefixCls:st,bordered:rt=!0,size:ut,disabled:ct,status:ft,allowClear:pt,showCount:Pt,classNames:Dt,rootClassName:Zt,className:Ft}=et,qt=It(et,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:te,direction:Gt}=kt.useContext(xt.E_),ce=(0,Rt.Z)(ut),ae=kt.useContext(Ot.Z),xe=ct!=null?ct:ae,{status:ye,hasFeedback:Te,feedbackIcon:me}=kt.useContext(Ct.aM),He=(0,Bt.F)(ye,ft),fe=kt.useRef(null);kt.useImperativeHandle(tt,()=>{var he;return{resizableTextArea:(he=fe.current)===null||he===void 0?void 0:he.resizableTextArea,focus:De=>{var Ne,$e;(0,Lt.n)(($e=(Ne=fe.current)===null||Ne===void 0?void 0:Ne.resizableTextArea)===null||$e===void 0?void 0:$e.textArea,De)},blur:()=>{var De;return(De=fe.current)===null||De===void 0?void 0:De.blur()}}});const $t=te("input",st);let ie;typeof pt=="object"&&(pt!=null&&pt.clearIcon)?ie=pt:pt&&(ie={clearIcon:kt.createElement(zt.Z,null)});const[ue,ge]=(0,At.ZP)($t);return ue(kt.createElement(Qt.default,Object.assign({},qt,{disabled:xe,allowClear:ie,className:Xt()(Ft,Zt),classes:{affixWrapper:Xt()(`${$t}-textarea-affix-wrapper`,{[`${$t}-affix-wrapper-rtl`]:Gt==="rtl",[`${$t}-affix-wrapper-borderless`]:!rt,[`${$t}-affix-wrapper-sm`]:ce==="small",[`${$t}-affix-wrapper-lg`]:ce==="large",[`${$t}-textarea-show-count`]:Pt},(0,Bt.Z)(`${$t}-affix-wrapper`,He),ge)},classNames:Object.assign(Object.assign({},Dt),{textarea:Xt()({[`${$t}-borderless`]:!rt,[`${$t}-sm`]:ce==="small",[`${$t}-lg`]:ce==="large"},(0,Bt.Z)($t,He),ge,Dt==null?void 0:Dt.textarea)}),prefixCls:$t,suffix:Te&&kt.createElement("span",{className:`${$t}-textarea-suffix`},me),showCount:Pt,ref:fe})))});Cn.Z=mt},59412:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return gt}});var zt=Kt(59301);function gt(Xt,Qt){const kt=(0,zt.useRef)([]),Bt=()=>{kt.current.push(setTimeout(()=>{var xt,Ot,Rt,Ct;!((xt=Xt.current)===null||xt===void 0)&&xt.input&&((Ot=Xt.current)===null||Ot===void 0?void 0:Ot.input.getAttribute("type"))==="password"&&(!((Rt=Xt.current)===null||Rt===void 0)&&Rt.input.hasAttribute("value"))&&((Ct=Xt.current)===null||Ct===void 0||Ct.input.removeAttribute("value"))}))};return(0,zt.useEffect)(()=>(Qt&&Bt(),()=>kt.current.forEach(xt=>{xt&&clearTimeout(xt)})),[]),Bt}},92832:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{default:function(){return ce}});var zt=Kt(92310),gt=Kt.n(zt),Xt=Kt(59301),Qt=Kt(36355),kt=Kt(32441),Bt=Kt(9937),Ot=ae=>{const{getPrefixCls:xe,direction:ye}=(0,Xt.useContext)(Qt.E_),{prefixCls:Te,className:me}=ae,He=xe("input-group",Te),fe=xe("input"),[$t,ie]=(0,Bt.ZP)(fe),ue=gt()(He,{[`${He}-lg`]:ae.size==="large",[`${He}-sm`]:ae.size==="small",[`${He}-compact`]:ae.compact,[`${He}-rtl`]:ye==="rtl"},ie,me),ge=(0,Xt.useContext)(kt.aM),he=(0,Xt.useMemo)(()=>Object.assign(Object.assign({},ge),{isFormItemInput:!1}),[ge]);return $t(Xt.createElement("span",{className:ue,style:ae.style,onMouseEnter:ae.onMouseEnter,onMouseLeave:ae.onMouseLeave,onFocus:ae.onFocus,onBlur:ae.onBlur},Xt.createElement(kt.aM.Provider,{value:he},ae.children)))},Rt=Kt(9432),Ct=Kt(73331),Lt=Kt(15277),At=Kt(2738),It=Kt(8654),mt=Kt(59412),et=function(ae,xe){var ye={};for(var Te in ae)Object.prototype.hasOwnProperty.call(ae,Te)&&xe.indexOf(Te)<0&&(ye[Te]=ae[Te]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,Te=Object.getOwnPropertySymbols(ae);me<Te.length;me++)xe.indexOf(Te[me])<0&&Object.prototype.propertyIsEnumerable.call(ae,Te[me])&&(ye[Te[me]]=ae[Te[me]]);return ye};const tt=ae=>ae?Xt.createElement(Lt.Z,null):Xt.createElement(Ct.Z,null),st={click:"onClick",hover:"onMouseOver"};var ut=Xt.forwardRef((ae,xe)=>{const{visibilityToggle:ye=!0}=ae,Te=typeof ye=="object"&&ye.visible!==void 0,[me,He]=(0,Xt.useState)(()=>Te?ye.visible:!1),fe=(0,Xt.useRef)(null);Xt.useEffect(()=>{Te&&He(ye.visible)},[Te,ye]);const $t=(0,mt.Z)(fe),ie=()=>{const{disabled:Tt}=ae;Tt||(me&&$t(),He(bt=>{var _t;const Yt=!bt;return typeof ye=="object"&&((_t=ye.onVisibleChange)===null||_t===void 0||_t.call(ye,Yt)),Yt}))},ue=Tt=>{const{action:bt="click",iconRender:_t=tt}=ae,Yt=st[bt]||"",Mt=_t(me),Ut={[Yt]:ie,className:`${Tt}-icon`,key:"passwordIcon",onMouseDown:St=>{St.preventDefault()},onMouseUp:St=>{St.preventDefault()}};return Xt.cloneElement(Xt.isValidElement(Mt)?Mt:Xt.createElement("span",null,Mt),Ut)},{className:ge,prefixCls:he,inputPrefixCls:De,size:Ne}=ae,$e=et(ae,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Re}=Xt.useContext(Qt.E_),tn=Re("input",De),Me=Re("input-password",he),Oe=ye&&ue(Me),Fe=gt()(Me,ge,{[`${Me}-${Ne}`]:!!Ne}),le=Object.assign(Object.assign({},(0,At.Z)($e,["suffix","iconRender","visibilityToggle"])),{type:me?"text":"password",className:Fe,prefixCls:tn,suffix:Oe});return Ne&&(le.size=Ne),Xt.createElement(Rt.Z,Object.assign({ref:(0,It.sQ)(xe,fe)},le))}),ct=Kt(47472),ft=Kt(92343),pt=Kt(3113),Pt=Kt(19716),Dt=Kt(33234),Zt=function(ae,xe){var ye={};for(var Te in ae)Object.prototype.hasOwnProperty.call(ae,Te)&&xe.indexOf(Te)<0&&(ye[Te]=ae[Te]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,Te=Object.getOwnPropertySymbols(ae);me<Te.length;me++)xe.indexOf(Te[me])<0&&Object.prototype.propertyIsEnumerable.call(ae,Te[me])&&(ye[Te[me]]=ae[Te[me]]);return ye},qt=Xt.forwardRef((ae,xe)=>{const{prefixCls:ye,inputPrefixCls:Te,className:me,size:He,suffix:fe,enterButton:$t=!1,addonAfter:ie,loading:ue,disabled:ge,onSearch:he,onChange:De,onCompositionStart:Ne,onCompositionEnd:$e}=ae,Re=Zt(ae,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:tn,direction:Me}=Xt.useContext(Qt.E_),Oe=Xt.useRef(!1),Fe=tn("input-search",ye),le=tn("input",Te),{compactSize:Tt}=(0,Dt.ri)(Fe,Me),bt=(0,Pt.Z)(Ue=>{var an;return(an=He!=null?He:Tt)!==null&&an!==void 0?an:Ue}),_t=Xt.useRef(null),Yt=Ue=>{Ue&&Ue.target&&Ue.type==="click"&&he&&he(Ue.target.value,Ue,{source:"clear"}),De&&De(Ue)},Mt=Ue=>{var an;document.activeElement===((an=_t.current)===null||an===void 0?void 0:an.input)&&Ue.preventDefault()},Ut=Ue=>{var an,vn;he&&he((vn=(an=_t.current)===null||an===void 0?void 0:an.input)===null||vn===void 0?void 0:vn.value,Ue,{source:"input"})},St=Ue=>{Oe.current||ue||Ut(Ue)},wt=typeof $t=="boolean"?Xt.createElement(ct.Z,null):null,jt=`${Fe}-button`;let Wt;const Vt=$t||{},oe=Vt.type&&Vt.type.__ANT_BUTTON===!0;oe||Vt.type==="button"?Wt=(0,ft.Tm)(Vt,Object.assign({onMouseDown:Mt,onClick:Ue=>{var an,vn;(vn=(an=Vt==null?void 0:Vt.props)===null||an===void 0?void 0:an.onClick)===null||vn===void 0||vn.call(an,Ue),Ut(Ue)},key:"enterButton"},oe?{className:jt,size:bt}:{})):Wt=Xt.createElement(pt.ZP,{className:jt,type:$t?"primary":void 0,size:bt,disabled:ge,key:"enterButton",onMouseDown:Mt,onClick:Ut,loading:ue,icon:wt},$t),ie&&(Wt=[Wt,(0,ft.Tm)(ie,{key:"addonAfter"})]);const de=gt()(Fe,{[`${Fe}-rtl`]:Me==="rtl",[`${Fe}-${bt}`]:!!bt,[`${Fe}-with-button`]:!!$t},me),Ge=Ue=>{Oe.current=!0,Ne==null||Ne(Ue)},Ye=Ue=>{Oe.current=!1,$e==null||$e(Ue)};return Xt.createElement(Rt.Z,Object.assign({ref:(0,It.sQ)(_t,xe),onPressEnter:St},Re,{size:bt,onCompositionStart:Ge,onCompositionEnd:Ye,prefixCls:le,addonAfter:Wt,suffix:fe,onChange:Yt,className:de,disabled:ge}))}),te=Kt(1643);const Gt=Rt.Z;Gt.Group=Ot,Gt.Search=qt,Gt.TextArea=te.Z,Gt.Password=ut;var ce=Gt},45818:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{D:function(){return ct},Z:function(){return Pt}});var zt=Kt(92413),gt=Kt(59301),Xt={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"},Qt=Xt,kt=Kt(7657),Bt=function(Zt,Ft){return gt.createElement(kt.Z,(0,zt.Z)({},Zt,{ref:Ft,icon:Qt}))},xt=gt.forwardRef(Bt),Ot=xt,Rt=Kt(33853),Ct=Kt(38819),Lt=Kt(92310),At=Kt.n(Lt),It=Kt(2738),et=Dt=>!isNaN(parseFloat(Dt))&&isFinite(Dt),tt=Kt(36355),st=Kt(84966),rt=function(Dt,Zt){var Ft={};for(var qt in Dt)Object.prototype.hasOwnProperty.call(Dt,qt)&&Zt.indexOf(qt)<0&&(Ft[qt]=Dt[qt]);if(Dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var te=0,qt=Object.getOwnPropertySymbols(Dt);te<qt.length;te++)Zt.indexOf(qt[te])<0&&Object.prototype.propertyIsEnumerable.call(Dt,qt[te])&&(Ft[qt[te]]=Dt[qt[te]]);return Ft};const ut={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ct=gt.createContext({}),ft=(()=>{let Dt=0;return function(){let Zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Dt+=1,`${Zt}${Dt}`}})();var Pt=gt.forwardRef((Dt,Zt)=>{const{prefixCls:Ft,className:qt,trigger:te,children:Gt,defaultCollapsed:ce=!1,theme:ae="dark",style:xe={},collapsible:ye=!1,reverseArrow:Te=!1,width:me=200,collapsedWidth:He=80,zeroWidthTriggerStyle:fe,breakpoint:$t,onCollapse:ie,onBreakpoint:ue}=Dt,ge=rt(Dt,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:he}=(0,gt.useContext)(st.Gs),[De,Ne]=(0,gt.useState)("collapsed"in Dt?Dt.collapsed:ce),[$e,Re]=(0,gt.useState)(!1);(0,gt.useEffect)(()=>{"collapsed"in Dt&&Ne(Dt.collapsed)},[Dt.collapsed]);const tn=(bt,_t)=>{"collapsed"in Dt||Ne(bt),ie==null||ie(bt,_t)},Me=(0,gt.useRef)();Me.current=bt=>{Re(bt.matches),ue==null||ue(bt.matches),De!==bt.matches&&tn(bt.matches,"responsive")},(0,gt.useEffect)(()=>{function bt(Yt){return Me.current(Yt)}let _t;if(typeof window!="undefined"){const{matchMedia:Yt}=window;if(Yt&&$t&&$t in ut){_t=Yt(`(max-width: ${ut[$t]})`);try{_t.addEventListener("change",bt)}catch(Mt){_t.addListener(bt)}bt(_t)}}return()=>{try{_t==null||_t.removeEventListener("change",bt)}catch(Yt){_t==null||_t.removeListener(bt)}}},[$t]),(0,gt.useEffect)(()=>{const bt=ft("ant-sider-");return he.addSider(bt),()=>he.removeSider(bt)},[]);const Oe=()=>{tn(!De,"clickTrigger")},{getPrefixCls:Fe}=(0,gt.useContext)(tt.E_),le=()=>{const bt=Fe("layout-sider",Ft),_t=(0,It.Z)(ge,["collapsed"]),Yt=De?He:me,Mt=et(Yt)?`${Yt}px`:String(Yt),Ut=parseFloat(String(He||0))===0?gt.createElement("span",{onClick:Oe,className:At()(`${bt}-zero-width-trigger`,`${bt}-zero-width-trigger-${Te?"right":"left"}`),style:fe},te||gt.createElement(Ot,null)):null,jt={expanded:Te?gt.createElement(Ct.Z,null):gt.createElement(Rt.Z,null),collapsed:Te?gt.createElement(Rt.Z,null):gt.createElement(Ct.Z,null)}[De?"collapsed":"expanded"],Wt=te!==null?Ut||gt.createElement("div",{className:`${bt}-trigger`,onClick:Oe,style:{width:Mt}},te||jt):null,Vt=Object.assign(Object.assign({},xe),{flex:`0 0 ${Mt}`,maxWidth:Mt,minWidth:Mt,width:Mt}),oe=At()(bt,`${bt}-${ae}`,{[`${bt}-collapsed`]:!!De,[`${bt}-has-trigger`]:ye&&te!==null&&!Ut,[`${bt}-below`]:!!$e,[`${bt}-zero-width`]:parseFloat(Mt)===0},qt);return gt.createElement("aside",Object.assign({className:oe},_t,{style:Vt,ref:Zt}),gt.createElement("div",{className:`${bt}-children`},Gt),ye||$e&&Ut?Wt:null)},Tt=gt.useMemo(()=>({siderCollapsed:De}),[De]);return gt.createElement(ct.Provider,{value:Tt},le())})},84966:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{VY:function(){return ct},$_:function(){return ut},h4:function(){return rt},Gs:function(){return It},ZP:function(){return ft}});var zt=Kt(26407),gt=Kt(92310),Xt=Kt.n(gt),Qt=Kt(2738),kt=Kt(59301),Bt=Kt(36355),xt=Kt(83116),Rt=pt=>{const{componentCls:Pt,bodyBg:Dt,lightSiderBg:Zt,lightTriggerBg:Ft,lightTriggerColor:qt}=pt;return{[`${Pt}-sider-light`]:{background:Zt,[`${Pt}-sider-trigger`]:{color:qt,background:Ft},[`${Pt}-sider-zero-width-trigger`]:{color:qt,background:Ft,border:`1px solid ${Dt}`,borderInlineStart:0}}}};const Ct=pt=>{const{antCls:Pt,componentCls:Dt,colorText:Zt,triggerColor:Ft,footerBg:qt,triggerBg:te,headerHeight:Gt,headerPadding:ce,headerColor:ae,footerPadding:xe,triggerHeight:ye,zeroTriggerHeight:Te,zeroTriggerWidth:me,motionDurationMid:He,motionDurationSlow:fe,fontSize:$t,borderRadius:ie,bodyBg:ue,headerBg:ge,siderBg:he}=pt;return{[Dt]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:ue,"&, *":{boxSizing:"border-box"},[`&${Dt}-has-sider`]:{flexDirection:"row",[`> ${Dt}, > ${Dt}-content`]:{width:0}},[`${Dt}-header, &${Dt}-footer`]:{flex:"0 0 auto"},[`${Dt}-sider`]:{position:"relative",minWidth:0,background:he,transition:`all ${He}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Pt}-menu${Pt}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:ye},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:ye,color:Ft,lineHeight:`${ye}px`,textAlign:"center",background:te,cursor:"pointer",transition:`all ${He}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Gt,insetInlineEnd:-me,zIndex:1,width:me,height:Te,color:Ft,fontSize:pt.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:he,borderStartStartRadius:0,borderStartEndRadius:ie,borderEndEndRadius:ie,borderEndStartRadius:0,cursor:"pointer",transition:`background ${fe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${fe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-me,borderStartStartRadius:ie,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:ie}}}}},Rt(pt)),{"&-rtl":{direction:"rtl"}}),[`${Dt}-header`]:{height:Gt,padding:ce,color:ae,lineHeight:`${Gt}px`,background:ge,[`${Pt}-menu`]:{lineHeight:"inherit"}},[`${Dt}-footer`]:{padding:xe,color:Zt,fontSize:$t,background:qt},[`${Dt}-content`]:{flex:"auto",minHeight:0}}};var Lt=(0,xt.Z)("Layout",pt=>[Ct(pt)],pt=>{const{colorBgLayout:Pt,controlHeight:Dt,controlHeightLG:Zt,colorText:Ft,controlHeightSM:qt,marginXXS:te,colorTextLightSolid:Gt,colorBgContainer:ce}=pt,ae=Zt*1.25;return{colorBgHeader:"#001529",colorBgBody:Pt,colorBgTrigger:"#002140",bodyBg:Pt,headerBg:"#001529",headerHeight:Dt*2,headerPadding:`0 ${ae}px`,headerColor:Ft,footerPadding:`${qt}px ${ae}px`,footerBg:Pt,siderBg:"#001529",triggerHeight:Zt+te*2,triggerBg:"#002140",triggerColor:Gt,zeroTriggerWidth:Zt,zeroTriggerHeight:Zt,lightSiderBg:ce,lightTriggerBg:ce,lightTriggerColor:Ft}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),At=function(pt,Pt){var Dt={};for(var Zt in pt)Object.prototype.hasOwnProperty.call(pt,Zt)&&Pt.indexOf(Zt)<0&&(Dt[Zt]=pt[Zt]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,Zt=Object.getOwnPropertySymbols(pt);Ft<Zt.length;Ft++)Pt.indexOf(Zt[Ft])<0&&Object.prototype.propertyIsEnumerable.call(pt,Zt[Ft])&&(Dt[Zt[Ft]]=pt[Zt[Ft]]);return Dt};const It=kt.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function mt(pt){let{suffixCls:Pt,tagName:Dt,displayName:Zt}=pt;return Ft=>kt.forwardRef((te,Gt)=>kt.createElement(Ft,Object.assign({ref:Gt,suffixCls:Pt,tagName:Dt},te)))}const et=kt.forwardRef((pt,Pt)=>{const{prefixCls:Dt,suffixCls:Zt,className:Ft,tagName:qt}=pt,te=At(pt,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Gt}=kt.useContext(Bt.E_),ce=Gt("layout",Dt),[ae,xe]=Lt(ce),ye=Zt?`${ce}-${Zt}`:ce;return ae(kt.createElement(qt,Object.assign({className:Xt()(Dt||ye,Ft,xe),ref:Pt},te)))}),tt=kt.forwardRef((pt,Pt)=>{const{direction:Dt}=kt.useContext(Bt.E_),[Zt,Ft]=kt.useState([]),{prefixCls:qt,className:te,rootClassName:Gt,children:ce,hasSider:ae,tagName:xe,style:ye}=pt,Te=At(pt,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),me=(0,Qt.Z)(Te,["suffixCls"]),{getPrefixCls:He,layout:fe}=kt.useContext(Bt.E_),$t=He("layout",qt),[ie,ue]=Lt($t),ge=Xt()($t,{[`${$t}-has-sider`]:typeof ae=="boolean"?ae:Zt.length>0,[`${$t}-rtl`]:Dt==="rtl"},fe==null?void 0:fe.className,te,Gt,ue),he=kt.useMemo(()=>({siderHook:{addSider:De=>{Ft(Ne=>[].concat((0,zt.Z)(Ne),[De]))},removeSider:De=>{Ft(Ne=>Ne.filter($e=>$e!==De))}}}),[]);return ie(kt.createElement(It.Provider,{value:he},kt.createElement(xe,Object.assign({ref:Pt,className:ge,style:Object.assign(Object.assign({},fe==null?void 0:fe.style),ye)},me),ce)))}),st=mt({tagName:"div",displayName:"Layout"})(tt),rt=mt({suffixCls:"header",tagName:"header",displayName:"Header"})(et),ut=mt({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(et),ct=mt({suffixCls:"content",tagName:"main",displayName:"Content"})(et);var ft=st},40875:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{J:function(){return Bt}});var zt=Kt(59301),gt=Kt(33234),Xt=Kt(70425),Qt=function(xt,Ot){var Rt={};for(var Ct in xt)Object.prototype.hasOwnProperty.call(xt,Ct)&&Ot.indexOf(Ct)<0&&(Rt[Ct]=xt[Ct]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,Ct=Object.getOwnPropertySymbols(xt);Lt<Ct.length;Lt++)Ot.indexOf(Ct[Lt])<0&&Object.prototype.propertyIsEnumerable.call(xt,Ct[Lt])&&(Rt[Ct[Lt]]=xt[Ct[Lt]]);return Rt};const kt=zt.createContext(null),Bt=zt.forwardRef((xt,Ot)=>{const{children:Rt}=xt,Ct=Qt(xt,["children"]),Lt=zt.useContext(kt),At=zt.useMemo(()=>Object.assign(Object.assign({},Lt),Ct),[Lt,Ct.prefixCls,Ct.mode,Ct.selectable]);return zt.createElement(kt.Provider,{value:At},zt.createElement(gt.BR,null,(0,Xt.supportNodeRef)(Rt)?zt.cloneElement(Rt,{ref:Ot}):Rt))});Cn.Z=kt},20834:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{default:function(){return Tt}});var zt=Kt(15285),gt=Kt(59301),Xt=Kt(45818),Qt=Kt(92310),kt=Kt.n(Qt),Bt=Kt(36355),xt=function(bt,_t){var Yt={};for(var Mt in bt)Object.prototype.hasOwnProperty.call(bt,Mt)&&_t.indexOf(Mt)<0&&(Yt[Mt]=bt[Mt]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,Mt=Object.getOwnPropertySymbols(bt);Ut<Mt.length;Ut++)_t.indexOf(Mt[Ut])<0&&Object.prototype.propertyIsEnumerable.call(bt,Mt[Ut])&&(Yt[Mt[Ut]]=bt[Mt[Ut]]);return Yt},Rt=bt=>{const{prefixCls:_t,className:Yt,dashed:Mt}=bt,Ut=xt(bt,["prefixCls","className","dashed"]),{getPrefixCls:St}=gt.useContext(Bt.E_),wt=St("menu",_t),jt=kt()({[`${wt}-item-divider-dashed`]:!!Mt},Yt);return gt.createElement(zt.iz,Object.assign({className:jt},Ut))},Ct=Kt(11592),Lt=Kt(2738),At=Kt(6848),It=Kt(92343),et=(0,gt.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),st=bt=>{var _t;const{className:Yt,children:Mt,icon:Ut,title:St,danger:wt}=bt,{prefixCls:jt,firstLevel:Wt,direction:Vt,disableMenuItemTitleTooltip:oe,inlineCollapsed:de}=gt.useContext(et),Ge=Ze=>{const hn=gt.createElement("span",{className:`${jt}-title-content`},Mt);return(!Ut||(0,It.l$)(Mt)&&Mt.type==="span")&&Mt&&Ze&&Wt&&typeof Mt=="string"?gt.createElement("div",{className:`${jt}-inline-collapsed-noicon`},Mt.charAt(0)):hn},{siderCollapsed:Ye}=gt.useContext(Xt.D);let Ue=St;typeof St=="undefined"?Ue=Wt?Mt:"":St===!1&&(Ue="");const an={title:Ue};!Ye&&!de&&(an.title=null,an.open=!1);const vn=(0,Ct.Z)(Mt).length;let ke=gt.createElement(zt.ck,Object.assign({},(0,Lt.Z)(bt,["title","icon","danger"]),{className:kt()({[`${jt}-item-danger`]:wt,[`${jt}-item-only-child`]:(Ut?vn+1:vn)===1},Yt),title:typeof St=="string"?St:void 0}),(0,It.Tm)(Ut,{className:kt()((0,It.l$)(Ut)?(_t=Ut.props)===null||_t===void 0?void 0:_t.className:"",`${jt}-item-icon`)}),Ge(de));return oe||(ke=gt.createElement(At.Z,Object.assign({},an,{placement:Vt==="rtl"?"left":"right",overlayClassName:`${jt}-inline-collapsed-tooltip`}),ke)),ke},ut=bt=>{var _t;const{popupClassName:Yt,icon:Mt,title:Ut,theme:St}=bt,wt=gt.useContext(et),{prefixCls:jt,inlineCollapsed:Wt,theme:Vt}=wt,oe=(0,zt.Xl)();let de;if(!Mt)de=Wt&&!oe.length&&Ut&&typeof Ut=="string"?gt.createElement("div",{className:`${jt}-inline-collapsed-noicon`},Ut.charAt(0)):gt.createElement("span",{className:`${jt}-title-content`},Ut);else{const Ye=(0,It.l$)(Ut)&&Ut.type==="span";de=gt.createElement(gt.Fragment,null,(0,It.Tm)(Mt,{className:kt()((0,It.l$)(Mt)?(_t=Mt.props)===null||_t===void 0?void 0:_t.className:"",`${jt}-item-icon`)}),Ye?Ut:gt.createElement("span",{className:`${jt}-title-content`},Ut))}const Ge=gt.useMemo(()=>Object.assign(Object.assign({},wt),{firstLevel:!1}),[wt]);return gt.createElement(et.Provider,{value:Ge},gt.createElement(zt.Wd,Object.assign({},(0,Lt.Z)(bt,["icon"]),{title:de,popupClassName:kt()(jt,Yt,`${jt}-${St||Vt}`)})))},ct=Kt(18785),ft=Kt(70425),pt=Kt(62892),Pt=Kt(40875),Dt=function(bt,_t){var Yt={};for(var Mt in bt)Object.prototype.hasOwnProperty.call(bt,Mt)&&_t.indexOf(Mt)<0&&(Yt[Mt]=bt[Mt]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,Mt=Object.getOwnPropertySymbols(bt);Ut<Mt.length;Ut++)_t.indexOf(Mt[Ut])<0&&Object.prototype.propertyIsEnumerable.call(bt,Mt[Ut])&&(Yt[Mt[Ut]]=bt[Mt[Ut]]);return Yt};function Zt(bt){return(bt||[]).map((_t,Yt)=>{if(_t&&typeof _t=="object"){const Mt=_t,{label:Ut,children:St,key:wt,type:jt}=Mt,Wt=Dt(Mt,["label","children","key","type"]),Vt=wt!=null?wt:`tmp-${Yt}`;return St||jt==="group"?jt==="group"?gt.createElement(zt.BW,Object.assign({key:Vt},Wt,{title:Ut}),Zt(St)):gt.createElement(ut,Object.assign({key:Vt},Wt,{title:Ut}),Zt(St)):jt==="divider"?gt.createElement(Rt,Object.assign({key:Vt},Wt)):gt.createElement(st,Object.assign({key:Vt},Wt),Ut)}return null}).filter(_t=>_t)}function Ft(bt){return gt.useMemo(()=>bt&&Zt(bt),[bt])}var qt=Kt(64993),te=Kt(17313),Gt=Kt(8378),ce=Kt(13826),ae=Kt(29878),xe=Kt(83116),ye=Kt(37613),me=bt=>{const{componentCls:_t,motionDurationSlow:Yt,horizontalLineHeight:Mt,colorSplit:Ut,lineWidth:St,lineType:wt,itemPaddingInline:jt}=bt;return{[`${_t}-horizontal`]:{lineHeight:Mt,border:0,borderBottom:`${St}px ${wt} ${Ut}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${_t}-item, ${_t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:jt},[`> ${_t}-item:hover,
|
|
|
> ${_t}-item-active,
|
|
|
> ${_t}-submenu ${_t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${_t}-item, ${_t}-submenu-title`]:{transition:[`border-color ${Yt}`,`background ${Yt}`].join(",")},[`${_t}-submenu-arrow`]:{display:"none"}}}},fe=bt=>{let{componentCls:_t,menuArrowOffset:Yt}=bt;return{[`${_t}-rtl`]:{direction:"rtl"},[`${_t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${_t}-rtl${_t}-vertical,
|
|
|
${_t}-submenu-rtl ${_t}-vertical`]:{[`${_t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${Yt})`},"&::after":{transform:`rotate(45deg) translateY(${Yt})`}}}}};const $t=bt=>Object.assign({},(0,te.oN)(bt));var ue=(bt,_t)=>{const{componentCls:Yt,itemColor:Mt,itemSelectedColor:Ut,groupTitleColor:St,itemBg:wt,subMenuItemBg:jt,itemSelectedBg:Wt,activeBarHeight:Vt,activeBarWidth:oe,activeBarBorderWidth:de,motionDurationSlow:Ge,motionEaseInOut:Ye,motionEaseOut:Ue,itemPaddingInline:an,motionDurationMid:vn,itemHoverColor:ke,lineType:Ze,colorSplit:hn,itemDisabledColor:Pn,dangerItemColor:In,dangerItemHoverColor:Bn,dangerItemSelectedColor:Zn,dangerItemActiveBg:Gn,dangerItemSelectedBg:ci,itemHoverBg:pi,itemActiveBg:xi,menuSubMenuBg:Ci,horizontalItemSelectedColor:Gi,horizontalItemSelectedBg:qi,horizontalItemBorderRadius:bi,horizontalItemHoverBg:Yi,popupBg:ui}=bt;return{[`${Yt}-${_t}, ${Yt}-${_t} > ${Yt}`]:{color:Mt,background:wt,[`&${Yt}-root:focus-visible`]:Object.assign({},$t(bt)),[`${Yt}-item-group-title`]:{color:St},[`${Yt}-submenu-selected`]:{[`> ${Yt}-submenu-title`]:{color:Ut}},[`${Yt}-item-disabled, ${Yt}-submenu-disabled`]:{color:`${Pn} !important`},[`${Yt}-item:not(${Yt}-item-selected):not(${Yt}-submenu-selected)`]:{[`&:hover, > ${Yt}-submenu-title:hover`]:{color:ke}},[`&:not(${Yt}-horizontal)`]:{[`${Yt}-item:not(${Yt}-item-selected)`]:{"&:hover":{backgroundColor:pi},"&:active":{backgroundColor:xi}},[`${Yt}-submenu-title`]:{"&:hover":{backgroundColor:pi},"&:active":{backgroundColor:xi}}},[`${Yt}-item-danger`]:{color:In,[`&${Yt}-item:hover`]:{[`&:not(${Yt}-item-selected):not(${Yt}-submenu-selected)`]:{color:Bn}},[`&${Yt}-item:active`]:{background:Gn}},[`${Yt}-item a`]:{"&, &:hover":{color:"inherit"}},[`${Yt}-item-selected`]:{color:Ut,[`&${Yt}-item-danger`]:{color:Zn},"a, a:hover":{color:"inherit"}},[`& ${Yt}-item-selected`]:{backgroundColor:Wt,[`&${Yt}-item-danger`]:{backgroundColor:ci}},[`${Yt}-item, ${Yt}-submenu-title`]:{[`&:not(${Yt}-item-disabled):focus-visible`]:Object.assign({},$t(bt))},[`&${Yt}-submenu > ${Yt}`]:{backgroundColor:Ci},[`&${Yt}-popup > ${Yt}`]:{backgroundColor:ui},[`&${Yt}-horizontal`]:Object.assign(Object.assign({},_t==="dark"?{borderBottom:0}:{}),{[`> ${Yt}-item, > ${Yt}-submenu`]:{top:de,marginTop:-de,marginBottom:0,borderRadius:bi,"&::after":{position:"absolute",insetInline:an,bottom:0,borderBottom:`${Vt}px solid transparent`,transition:`border-color ${Ge} ${Ye}`,content:'""'},"&:hover, &-active, &-open":{background:Yi,"&::after":{borderBottomWidth:Vt,borderBottomColor:Gi}},"&-selected":{color:Gi,backgroundColor:qi,"&:hover":{backgroundColor:qi},"&::after":{borderBottomWidth:Vt,borderBottomColor:Gi}}}}),[`&${Yt}-root`]:{[`&${Yt}-inline, &${Yt}-vertical`]:{borderInlineEnd:`${de}px ${Ze} ${hn}`}},[`&${Yt}-inline`]:{[`${Yt}-sub${Yt}-inline`]:{background:jt},[`${Yt}-item, ${Yt}-submenu-title`]:de&&oe?{width:`calc(100% + ${de}px)`}:{},[`${Yt}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${oe}px solid ${Ut}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${vn} ${Ue}`,`opacity ${vn} ${Ue}`].join(","),content:'""'},[`&${Yt}-item-danger`]:{"&::after":{borderInlineEndColor:Zn}}},[`${Yt}-selected, ${Yt}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${vn} ${Ye}`,`opacity ${vn} ${Ye}`].join(",")}}}}}};const ge=bt=>{const{componentCls:_t,itemHeight:Yt,itemMarginInline:Mt,padding:Ut,menuArrowSize:St,marginXS:wt,itemMarginBlock:jt}=bt,Wt=Ut+St+wt;return{[`${_t}-item`]:{position:"relative",overflow:"hidden"},[`${_t}-item, ${_t}-submenu-title`]:{height:Yt,lineHeight:`${Yt}px`,paddingInline:Ut,overflow:"hidden",textOverflow:"ellipsis",marginInline:Mt,marginBlock:jt,width:`calc(100% - ${Mt*2}px)`},[`> ${_t}-item,
|
|
|
> ${_t}-submenu > ${_t}-submenu-title`]:{height:Yt,lineHeight:`${Yt}px`},[`${_t}-item-group-list ${_t}-submenu-title,
|
|
|
${_t}-submenu-title`]:{paddingInlineEnd:Wt}}};var De=bt=>{const{componentCls:_t,iconCls:Yt,itemHeight:Mt,colorTextLightSolid:Ut,dropdownWidth:St,controlHeightLG:wt,motionDurationMid:jt,motionEaseOut:Wt,paddingXL:Vt,itemMarginInline:oe,fontSizeLG:de,motionDurationSlow:Ge,paddingXS:Ye,boxShadowSecondary:Ue,collapsedWidth:an,collapsedIconSize:vn}=bt,ke={height:Mt,lineHeight:`${Mt}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[_t]:{"&-inline, &-vertical":Object.assign({[`&${_t}-root`]:{boxShadow:"none"}},ge(bt))},[`${_t}-submenu-popup`]:{[`${_t}-vertical`]:Object.assign(Object.assign({},ge(bt)),{boxShadow:Ue})}},{[`${_t}-submenu-popup ${_t}-vertical${_t}-sub`]:{minWidth:St,maxHeight:`calc(100vh - ${wt*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${_t}-inline`]:{width:"100%",[`&${_t}-root`]:{[`${_t}-item, ${_t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Ge}`,`background ${Ge}`,`padding ${jt} ${Wt}`].join(","),[`> ${_t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${_t}-sub${_t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${_t}-submenu > ${_t}-submenu-title`]:ke,[`& ${_t}-item-group-title`]:{paddingInlineStart:Vt}},[`${_t}-item`]:ke}},{[`${_t}-inline-collapsed`]:{width:an,[`&${_t}-root`]:{[`${_t}-item, ${_t}-submenu ${_t}-submenu-title`]:{[`> ${_t}-inline-collapsed-noicon`]:{fontSize:de,textAlign:"center"}}},[`> ${_t}-item,
|
|
|
> ${_t}-item-group > ${_t}-item-group-list > ${_t}-item,
|
|
|
> ${_t}-item-group > ${_t}-item-group-list > ${_t}-submenu > ${_t}-submenu-title,
|
|
|
> ${_t}-submenu > ${_t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${de/2}px - ${oe}px)`,textOverflow:"clip",[`
|
|
|
${_t}-submenu-arrow,
|
|
|
${_t}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${_t}-item-icon, ${Yt}`]:{margin:0,fontSize:vn,lineHeight:`${Mt}px`,"+ span":{display:"inline-block",opacity:0}}},[`${_t}-item-icon, ${Yt}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${_t}-item-icon, ${Yt}`]:{display:"none"},"a, a:hover":{color:Ut}},[`${_t}-item-group-title`]:Object.assign(Object.assign({},te.vS),{paddingInline:Ye})}}]};const Ne=bt=>{const{componentCls:_t,motionDurationSlow:Yt,motionDurationMid:Mt,motionEaseInOut:Ut,motionEaseOut:St,iconCls:wt,iconSize:jt,iconMarginInlineEnd:Wt}=bt;return{[`${_t}-item, ${_t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${Yt}`,`background ${Yt}`,`padding ${Yt} ${Ut}`].join(","),[`${_t}-item-icon, ${wt}`]:{minWidth:jt,fontSize:jt,transition:[`font-size ${Mt} ${St}`,`margin ${Yt} ${Ut}`,`color ${Yt}`].join(","),"+ span":{marginInlineStart:Wt,opacity:1,transition:[`opacity ${Yt} ${Ut}`,`margin ${Yt}`,`color ${Yt}`].join(",")}},[`${_t}-item-icon`]:Object.assign({},(0,te.Ro)()),[`&${_t}-item-only-child`]:{[`> ${wt}, > ${_t}-item-icon`]:{marginInlineEnd:0}}},[`${_t}-item-disabled, ${_t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${_t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},$e=bt=>{const{componentCls:_t,motionDurationSlow:Yt,motionEaseInOut:Mt,borderRadius:Ut,menuArrowSize:St,menuArrowOffset:wt}=bt;return{[`${_t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:bt.margin,width:St,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${Yt} ${Mt}, opacity ${Yt}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:St*.6,height:St*.15,backgroundColor:"currentcolor",borderRadius:Ut,transition:[`background ${Yt} ${Mt}`,`transform ${Yt} ${Mt}`,`top ${Yt} ${Mt}`,`color ${Yt} ${Mt}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${wt})`},"&::after":{transform:`rotate(-45deg) translateY(${wt})`}}}}},Re=bt=>{const{antCls:_t,componentCls:Yt,fontSize:Mt,motionDurationSlow:Ut,motionDurationMid:St,motionEaseInOut:wt,paddingXS:jt,padding:Wt,colorSplit:Vt,lineWidth:oe,zIndexPopup:de,borderRadiusLG:Ge,subMenuItemBorderRadius:Ye,menuArrowSize:Ue,menuArrowOffset:an,lineType:vn,menuPanelMaskInset:ke,groupTitleLineHeight:Ze,groupTitleFontSize:hn}=bt;return[{"":{[`${Yt}`]:Object.assign(Object.assign({},(0,te.dF)()),{"&-hidden":{display:"none"}})},[`${Yt}-submenu-hidden`]:{display:"none"}},{[Yt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,te.Wf)(bt)),(0,te.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:Mt,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Ut} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${Yt}-item`]:{flex:"none"}},[`${Yt}-item, ${Yt}-submenu, ${Yt}-submenu-title`]:{borderRadius:bt.itemBorderRadius},[`${Yt}-item-group-title`]:{padding:`${jt}px ${Wt}px`,fontSize:hn,lineHeight:Ze,transition:`all ${Ut}`},[`&-horizontal ${Yt}-submenu`]:{transition:[`border-color ${Ut} ${wt}`,`background ${Ut} ${wt}`].join(",")},[`${Yt}-submenu, ${Yt}-submenu-inline`]:{transition:[`border-color ${Ut} ${wt}`,`background ${Ut} ${wt}`,`padding ${St} ${wt}`].join(",")},[`${Yt}-submenu ${Yt}-sub`]:{cursor:"initial",transition:[`background ${Ut} ${wt}`,`padding ${Ut} ${wt}`].join(",")},[`${Yt}-title-content`]:{transition:`color ${Ut}`},[`${Yt}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${Yt}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Vt,borderStyle:vn,borderWidth:0,borderTopWidth:oe,marginBlock:oe,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Ne(bt)),{[`${Yt}-item-group`]:{[`${Yt}-item-group-list`]:{margin:0,padding:0,[`${Yt}-item, ${Yt}-submenu-title`]:{paddingInline:`${Mt*2}px ${Wt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:de,borderRadius:Ge,boxShadow:"none",transformOrigin:"0 0",[`&${Yt}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${ke}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:ke},"\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:bt.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:bt.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:bt.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:bt.paddingXS},[`> ${Yt}`]:Object.assign(Object.assign(Object.assign({borderRadius:Ge},Ne(bt)),$e(bt)),{[`${Yt}-item, ${Yt}-submenu > ${Yt}-submenu-title`]:{borderRadius:Ye},[`${Yt}-submenu-title::after`]:{transition:`transform ${Ut} ${wt}`}})}}),$e(bt)),{[`&-inline-collapsed ${Yt}-submenu-arrow,
|
|
|
&-inline ${Yt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${an})`},"&::after":{transform:`rotate(45deg) translateX(-${an})`}},[`${Yt}-submenu-open${Yt}-submenu-inline > ${Yt}-submenu-title > ${Yt}-submenu-arrow`]:{transform:`translateY(-${Ue*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${an})`},"&::before":{transform:`rotate(45deg) translateX(${an})`}}})},{[`${_t}-layout-header`]:{[Yt]:{lineHeight:"inherit"}}}]};var tn=(bt,_t)=>(0,xe.Z)("Menu",Mt=>{if(_t===!1)return[];const{colorBgElevated:Ut,colorPrimary:St,colorTextLightSolid:wt,controlHeightLG:jt,fontSize:Wt,darkItemColor:Vt,darkDangerItemColor:oe,darkItemBg:de,darkSubMenuItemBg:Ge,darkItemSelectedColor:Ye,darkItemSelectedBg:Ue,darkDangerItemSelectedBg:an,darkItemHoverBg:vn,darkGroupTitleColor:ke,darkItemHoverColor:Ze,darkItemDisabledColor:hn,darkDangerItemHoverColor:Pn,darkDangerItemSelectedColor:In,darkDangerItemActiveBg:Bn}=Mt,Zn=Wt/7*5,Gn=(0,ye.TS)(Mt,{menuArrowSize:Zn,menuHorizontalHeight:jt*1.15,menuArrowOffset:`${Zn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Ut}),ci=(0,ye.TS)(Gn,{itemColor:Vt,itemHoverColor:Ze,groupTitleColor:ke,itemSelectedColor:Ye,itemBg:de,popupBg:de,subMenuItemBg:Ge,itemActiveBg:"transparent",itemSelectedBg:Ue,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:vn,itemDisabledColor:hn,dangerItemColor:oe,dangerItemHoverColor:Pn,dangerItemSelectedColor:In,dangerItemActiveBg:Bn,dangerItemSelectedBg:an,menuSubMenuBg:Ge,horizontalItemSelectedColor:wt,horizontalItemSelectedBg:St});return[Re(Gn),me(Gn),De(Gn),ue(Gn,"light"),ue(ci,"dark"),fe(Gn),(0,Gt.Z)(Gn),(0,ce.oN)(Gn,"slide-up"),(0,ce.oN)(Gn,"slide-down"),(0,ae._y)(Gn,"zoom-big")]},Mt=>{const{colorPrimary:Ut,colorError:St,colorTextDisabled:wt,colorErrorBg:jt,colorText:Wt,colorTextDescription:Vt,colorBgContainer:oe,colorFillAlter:de,colorFillContent:Ge,lineWidth:Ye,lineWidthBold:Ue,controlItemBgActive:an,colorBgTextHover:vn,controlHeightLG:ke,lineHeight:Ze,colorBgElevated:hn,marginXXS:Pn,padding:In,fontSize:Bn,controlHeightSM:Zn,fontSizeLG:Gn,colorTextLightSolid:ci,colorErrorHover:pi}=Mt,xi=new qt.C(ci).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:Mt.zIndexPopupBase+50,radiusItem:Mt.borderRadiusLG,itemBorderRadius:Mt.borderRadiusLG,radiusSubMenuItem:Mt.borderRadiusSM,subMenuItemBorderRadius:Mt.borderRadiusSM,colorItemText:Wt,itemColor:Wt,colorItemTextHover:Wt,itemHoverColor:Wt,colorItemTextHoverHorizontal:Ut,horizontalItemHoverColor:Ut,colorGroupTitle:Vt,groupTitleColor:Vt,colorItemTextSelected:Ut,itemSelectedColor:Ut,colorItemTextSelectedHorizontal:Ut,horizontalItemSelectedColor:Ut,colorItemBg:oe,itemBg:oe,colorItemBgHover:vn,itemHoverBg:vn,colorItemBgActive:Ge,itemActiveBg:an,colorSubItemBg:de,subMenuItemBg:de,colorItemBgSelected:an,itemSelectedBg:an,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Ue,activeBarHeight:Ue,colorActiveBarBorderSize:Ye,activeBarBorderWidth:Ye,colorItemTextDisabled:wt,itemDisabledColor:wt,colorDangerItemText:St,dangerItemColor:St,colorDangerItemTextHover:St,dangerItemHoverColor:St,colorDangerItemTextSelected:St,dangerItemSelectedColor:St,colorDangerItemBgActive:jt,dangerItemActiveBg:jt,colorDangerItemBgSelected:jt,dangerItemSelectedBg:jt,itemMarginInline:Mt.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:ke,groupTitleLineHeight:Ze,collapsedWidth:ke*2,popupBg:hn,itemMarginBlock:Pn,itemPaddingInline:In,horizontalLineHeight:`${ke*1.15}px`,iconSize:Bn,iconMarginInlineEnd:Zn-Bn,collapsedIconSize:Gn,groupTitleFontSize:Bn,darkItemDisabledColor:new qt.C(ci).setAlpha(.25).toRgbString(),darkItemColor:xi,darkDangerItemColor:St,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:ci,darkItemSelectedBg:Ut,darkDangerItemSelectedBg:St,darkItemHoverBg:"transparent",darkGroupTitleColor:xi,darkItemHoverColor:ci,darkDangerItemHoverColor:pi,darkDangerItemSelectedColor:ci,darkDangerItemActiveBg:St}},{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"]]})(bt),Me=function(bt,_t){var Yt={};for(var Mt in bt)Object.prototype.hasOwnProperty.call(bt,Mt)&&_t.indexOf(Mt)<0&&(Yt[Mt]=bt[Mt]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,Mt=Object.getOwnPropertySymbols(bt);Ut<Mt.length;Ut++)_t.indexOf(Mt[Ut])<0&&Object.prototype.propertyIsEnumerable.call(bt,Mt[Ut])&&(Yt[Mt[Ut]]=bt[Mt[Ut]]);return Yt},Fe=(0,gt.forwardRef)((bt,_t)=>{var Yt,Mt;const Ut=gt.useContext(Pt.Z),St=Ut||{},{getPrefixCls:wt,getPopupContainer:jt,direction:Wt,menu:Vt}=gt.useContext(Bt.E_),oe=wt(),{prefixCls:de,className:Ge,style:Ye,theme:Ue="light",expandIcon:an,_internalDisableMenuItemTitleTooltip:vn,inlineCollapsed:ke,siderCollapsed:Ze,items:hn,children:Pn,rootClassName:In,mode:Bn,selectable:Zn,onClick:Gn,overflowedIndicatorPopupClassName:ci}=bt,pi=Me(bt,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),xi=(0,Lt.Z)(pi,["collapsedWidth"]),Ci=Ft(hn)||Pn;(Yt=St.validator)===null||Yt===void 0||Yt.call(St,{mode:Bn});const Gi=(0,ft.useEvent)(function(){var vr;Gn==null||Gn.apply(void 0,arguments),(vr=St.onClick)===null||vr===void 0||vr.call(St)}),qi=St.mode||Bn,bi=Zn!=null?Zn:St.selectable,Yi=gt.useMemo(()=>Ze!==void 0?Ze:ke,[ke,Ze]),ui={horizontal:{motionName:`${oe}-slide-up`},inline:(0,pt.Z)(oe),other:{motionName:`${oe}-zoom-big`}},ne=wt("menu",de||St.prefixCls),[Wi,Fi]=tn(ne,!Ut),nr=kt()(`${ne}-${Ue}`,Vt==null?void 0:Vt.className,Ge);let sr;if(typeof an=="function")sr=an;else if(an===null||an===!1)sr=null;else if(St.expandIcon===null||St.expandIcon===!1)sr=null;else{const vr=an!=null?an:St.expandIcon;sr=(0,It.Tm)(vr,{className:kt()(`${ne}-submenu-expand-icon`,(0,It.l$)(vr)?(Mt=vr.props)===null||Mt===void 0?void 0:Mt.className:"")})}const xr=gt.useMemo(()=>({prefixCls:ne,inlineCollapsed:Yi||!1,direction:Wt,firstLevel:!0,theme:Ue,mode:qi,disableMenuItemTitleTooltip:vn}),[ne,Yi,Wt,vn,Ue]);return Wi(gt.createElement(Pt.Z.Provider,{value:null},gt.createElement(et.Provider,{value:xr},gt.createElement(zt.ZP,Object.assign({getPopupContainer:jt,overflowedIndicator:gt.createElement(ct.Z,null),overflowedIndicatorPopupClassName:kt()(ne,`${ne}-${Ue}`,ci),mode:qi,selectable:bi,onClick:Gi},xi,{inlineCollapsed:Yi,style:Object.assign(Object.assign({},Vt==null?void 0:Vt.style),Ye),className:nr,prefixCls:ne,direction:Wt,defaultMotions:ui,expandIcon:sr,ref:_t,rootClassName:kt()(In,Fi)}),Ci))))});const le=(0,gt.forwardRef)((bt,_t)=>{const Yt=(0,gt.useRef)(null),Mt=gt.useContext(Xt.D);return(0,gt.useImperativeHandle)(_t,()=>({menu:Yt.current,focus:Ut=>{var St;(St=Yt.current)===null||St===void 0||St.focus(Ut)}})),gt.createElement(Fe,Object.assign({ref:Yt},bt,Mt))});le.Item=st,le.SubMenu=ut,le.Divider=Rt,le.ItemGroup=zt.BW;var Tt=le},58421:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return St}});var zt=Kt(92413),gt=Kt(59301),Xt={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"},Qt=Xt,kt=Kt(7657),Bt=function(jt,Wt){return gt.createElement(kt.Z,(0,zt.Z)({},jt,{ref:Wt,icon:Qt}))},xt=gt.forwardRef(Bt),Ot=xt,Rt=Kt(49198),Ct=Kt(33853),Lt=Kt(38819),At=Kt(92310),It=Kt.n(At),mt=Kt(400),et=Kt(33708),tt=Kt(6909),st=Kt(4771),rt=Kt(9427),ut=Kt(25440),ct=Kt(26112),ft={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},pt=ft,Pt=Kt(91735),Dt=function(wt){(0,rt.Z)(Wt,wt);var jt=(0,ut.Z)(Wt);function Wt(){var Vt;(0,tt.Z)(this,Wt);for(var oe=arguments.length,de=new Array(oe),Ge=0;Ge<oe;Ge++)de[Ge]=arguments[Ge];return Vt=jt.call.apply(jt,[this].concat(de)),Vt.state={goInputText:""},Vt.getValidValue=function(){var Ye=Vt.state.goInputText;return!Ye||Number.isNaN(Ye)?void 0:Number(Ye)},Vt.buildOptionText=function(Ye){return"".concat(Ye," ").concat(Vt.props.locale.items_per_page)},Vt.changeSize=function(Ye){Vt.props.changeSize(Number(Ye))},Vt.handleChange=function(Ye){Vt.setState({goInputText:Ye.target.value})},Vt.handleBlur=function(Ye){var Ue=Vt.props,an=Ue.goButton,vn=Ue.quickGo,ke=Ue.rootPrefixCls,Ze=Vt.state.goInputText;an||Ze===""||(Vt.setState({goInputText:""}),!(Ye.relatedTarget&&(Ye.relatedTarget.className.indexOf("".concat(ke,"-item-link"))>=0||Ye.relatedTarget.className.indexOf("".concat(ke,"-item"))>=0))&&vn(Vt.getValidValue()))},Vt.go=function(Ye){var Ue=Vt.state.goInputText;Ue!==""&&(Ye.keyCode===pt.ENTER||Ye.type==="click")&&(Vt.setState({goInputText:""}),Vt.props.quickGo(Vt.getValidValue()))},Vt}return(0,st.Z)(Wt,[{key:"getPageSizeOptions",value:function(){var oe=this.props,de=oe.pageSize,Ge=oe.pageSizeOptions;return Ge.some(function(Ye){return Ye.toString()===de.toString()})?Ge:Ge.concat([de.toString()]).sort(function(Ye,Ue){var an=Number.isNaN(Number(Ye))?0:Number(Ye),vn=Number.isNaN(Number(Ue))?0:Number(Ue);return an-vn})}},{key:"render",value:function(){var oe=this,de=this.props,Ge=de.pageSize,Ye=de.locale,Ue=de.rootPrefixCls,an=de.changeSize,vn=de.quickGo,ke=de.goButton,Ze=de.selectComponentClass,hn=de.buildOptionText,Pn=de.selectPrefixCls,In=de.disabled,Bn=this.state.goInputText,Zn="".concat(Ue,"-options"),Gn=Ze,ci=null,pi=null,xi=null;if(!an&&!vn)return null;var Ci=this.getPageSizeOptions();if(an&&Gn){var Gi=Ci.map(function(qi,bi){return gt.createElement(Gn.Option,{key:bi,value:qi.toString()},(hn||oe.buildOptionText)(qi))});ci=gt.createElement(Gn,{disabled:In,prefixCls:Pn,showSearch:!1,className:"".concat(Zn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Ge||Ci[0]).toString(),onChange:this.changeSize,getPopupContainer:function(bi){return bi.parentNode},"aria-label":Ye.page_size,defaultOpen:!1},Gi)}return vn&&(ke&&(xi=typeof ke=="boolean"?gt.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:In,className:"".concat(Zn,"-quick-jumper-button")},Ye.jump_to_confirm):gt.createElement("span",{onClick:this.go,onKeyUp:this.go},ke)),pi=gt.createElement("div",{className:"".concat(Zn,"-quick-jumper")},Ye.jump_to,gt.createElement("input",{disabled:In,type:"text",value:Bn,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Ye.page}),Ye.page,xi)),gt.createElement("li",{className:"".concat(Zn)},ci,pi)}}]),Wt}(gt.Component);Dt.defaultProps={pageSizeOptions:["10","20","50","100"]};var Zt=Dt,Ft=function(jt){var Wt,Vt=jt.rootPrefixCls,oe=jt.page,de=jt.active,Ge=jt.className,Ye=jt.showTitle,Ue=jt.onClick,an=jt.onKeyPress,vn=jt.itemRender,ke="".concat(Vt,"-item"),Ze=It()(ke,"".concat(ke,"-").concat(oe),(Wt={},(0,mt.Z)(Wt,"".concat(ke,"-active"),de),(0,mt.Z)(Wt,"".concat(ke,"-disabled"),!oe),(0,mt.Z)(Wt,jt.className,Ge),Wt)),hn=function(){Ue(oe)},Pn=function(Zn){an(Zn,Ue,oe)},In=vn(oe,"page",gt.createElement("a",{rel:"nofollow"},oe));return In?gt.createElement("li",{title:Ye?oe.toString():null,className:Ze,onClick:hn,onKeyPress:Pn,tabIndex:0},In):null},qt=Ft;function te(){}function Gt(wt){var jt=Number(wt);return typeof jt=="number"&&!Number.isNaN(jt)&&isFinite(jt)&&Math.floor(jt)===jt}var ce=function(jt,Wt,Vt){return Vt};function ae(wt,jt,Wt){var Vt=typeof wt=="undefined"?jt.pageSize:wt;return Math.floor((Wt.total-1)/Vt)+1}var xe=function(wt){(0,rt.Z)(Wt,wt);var jt=(0,ut.Z)(Wt);function Wt(Vt){var oe;(0,tt.Z)(this,Wt),oe=jt.call(this,Vt),oe.paginationNode=gt.createRef(),oe.getJumpPrevPage=function(){return Math.max(1,oe.state.current-(oe.props.showLessItems?3:5))},oe.getJumpNextPage=function(){return Math.min(ae(void 0,oe.state,oe.props),oe.state.current+(oe.props.showLessItems?3:5))},oe.getItemIcon=function(an,vn){var ke=oe.props.prefixCls,Ze=an||gt.createElement("button",{type:"button","aria-label":vn,className:"".concat(ke,"-item-link")});return typeof an=="function"&&(Ze=gt.createElement(an,(0,et.Z)({},oe.props))),Ze},oe.isValid=function(an){var vn=oe.props.total;return Gt(an)&&an!==oe.state.current&&Gt(vn)&&vn>0},oe.shouldDisplayQuickJumper=function(){var an=oe.props,vn=an.showQuickJumper,ke=an.total,Ze=oe.state.pageSize;return ke<=Ze?!1:vn},oe.handleKeyDown=function(an){(an.keyCode===pt.ARROW_UP||an.keyCode===pt.ARROW_DOWN)&&an.preventDefault()},oe.handleKeyUp=function(an){var vn=oe.getValidValue(an),ke=oe.state.currentInputValue;vn!==ke&&oe.setState({currentInputValue:vn}),an.keyCode===pt.ENTER?oe.handleChange(vn):an.keyCode===pt.ARROW_UP?oe.handleChange(vn-1):an.keyCode===pt.ARROW_DOWN&&oe.handleChange(vn+1)},oe.handleBlur=function(an){var vn=oe.getValidValue(an);oe.handleChange(vn)},oe.changePageSize=function(an){var vn=oe.state.current,ke=ae(an,oe.state,oe.props);vn=vn>ke?ke:vn,ke===0&&(vn=oe.state.current),typeof an=="number"&&("pageSize"in oe.props||oe.setState({pageSize:an}),"current"in oe.props||oe.setState({current:vn,currentInputValue:vn})),oe.props.onShowSizeChange(vn,an),"onChange"in oe.props&&oe.props.onChange&&oe.props.onChange(vn,an)},oe.handleChange=function(an){var vn=oe.props,ke=vn.disabled,Ze=vn.onChange,hn=oe.state,Pn=hn.pageSize,In=hn.current,Bn=hn.currentInputValue;if(oe.isValid(an)&&!ke){var Zn=ae(void 0,oe.state,oe.props),Gn=an;return an>Zn?Gn=Zn:an<1&&(Gn=1),"current"in oe.props||oe.setState({current:Gn}),Gn!==Bn&&oe.setState({currentInputValue:Gn}),Ze(Gn,Pn),Gn}return In},oe.prev=function(){oe.hasPrev()&&oe.handleChange(oe.state.current-1)},oe.next=function(){oe.hasNext()&&oe.handleChange(oe.state.current+1)},oe.jumpPrev=function(){oe.handleChange(oe.getJumpPrevPage())},oe.jumpNext=function(){oe.handleChange(oe.getJumpNextPage())},oe.hasPrev=function(){return oe.state.current>1},oe.hasNext=function(){return oe.state.current<ae(void 0,oe.state,oe.props)},oe.runIfEnter=function(an,vn){if(an.key==="Enter"||an.charCode===13){for(var ke=arguments.length,Ze=new Array(ke>2?ke-2:0),hn=2;hn<ke;hn++)Ze[hn-2]=arguments[hn];vn.apply(void 0,Ze)}},oe.runIfEnterPrev=function(an){oe.runIfEnter(an,oe.prev)},oe.runIfEnterNext=function(an){oe.runIfEnter(an,oe.next)},oe.runIfEnterJumpPrev=function(an){oe.runIfEnter(an,oe.jumpPrev)},oe.runIfEnterJumpNext=function(an){oe.runIfEnter(an,oe.jumpNext)},oe.handleGoTO=function(an){(an.keyCode===pt.ENTER||an.type==="click")&&oe.handleChange(oe.state.currentInputValue)},oe.renderPrev=function(an){var vn=oe.props,ke=vn.prevIcon,Ze=vn.itemRender,hn=Ze(an,"prev",oe.getItemIcon(ke,"prev page")),Pn=!oe.hasPrev();return(0,gt.isValidElement)(hn)?(0,gt.cloneElement)(hn,{disabled:Pn}):hn},oe.renderNext=function(an){var vn=oe.props,ke=vn.nextIcon,Ze=vn.itemRender,hn=Ze(an,"next",oe.getItemIcon(ke,"next page")),Pn=!oe.hasNext();return(0,gt.isValidElement)(hn)?(0,gt.cloneElement)(hn,{disabled:Pn}):hn};var de=Vt.onChange!==te,Ge="current"in Vt;Ge&&!de&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Ye=Vt.defaultCurrent;"current"in Vt&&(Ye=Vt.current);var Ue=Vt.defaultPageSize;return"pageSize"in Vt&&(Ue=Vt.pageSize),Ye=Math.min(Ye,ae(Ue,void 0,Vt)),oe.state={current:Ye,currentInputValue:Ye,pageSize:Ue},oe}return(0,st.Z)(Wt,[{key:"componentDidUpdate",value:function(oe,de){var Ge=this.props.prefixCls;if(de.current!==this.state.current&&this.paginationNode.current){var Ye=this.paginationNode.current.querySelector(".".concat(Ge,"-item-").concat(de.current));if(Ye&&document.activeElement===Ye){var Ue;Ye==null||(Ue=Ye.blur)===null||Ue===void 0||Ue.call(Ye)}}}},{key:"getValidValue",value:function(oe){var de=oe.target.value,Ge=ae(void 0,this.state,this.props),Ye=this.state.currentInputValue,Ue;return de===""?Ue=de:Number.isNaN(Number(de))?Ue=Ye:de>=Ge?Ue=Ge:Ue=Number(de),Ue}},{key:"getShowSizeChanger",value:function(){var oe=this.props,de=oe.showSizeChanger,Ge=oe.total,Ye=oe.totalBoundaryShowSizeChanger;return typeof de!="undefined"?de:Ge>Ye}},{key:"render",value:function(){var oe=this.props,de=oe.prefixCls,Ge=oe.className,Ye=oe.style,Ue=oe.disabled,an=oe.hideOnSinglePage,vn=oe.total,ke=oe.locale,Ze=oe.showQuickJumper,hn=oe.showLessItems,Pn=oe.showTitle,In=oe.showTotal,Bn=oe.simple,Zn=oe.itemRender,Gn=oe.showPrevNextJumpers,ci=oe.jumpPrevIcon,pi=oe.jumpNextIcon,xi=oe.selectComponentClass,Ci=oe.selectPrefixCls,Gi=oe.pageSizeOptions,qi=this.state,bi=qi.current,Yi=qi.pageSize,ui=qi.currentInputValue;if(an===!0&&vn<=Yi)return null;var ne=ae(void 0,this.state,this.props),Wi=[],Fi=null,nr=null,sr=null,xr=null,vr=null,Jn=Ze&&Ze.goButton,_n=hn?1:2,qe=bi-1>0?bi-1:0,Qe=bi+1<ne?bi+1:ne,we=(0,ct.Z)(this.props,{aria:!0,data:!0}),fn=In&>.createElement("li",{className:"".concat(de,"-total-text")},In(vn,[vn===0?0:(bi-1)*Yi+1,bi*Yi>vn?vn:bi*Yi]));if(Bn){Jn&&(typeof Jn=="boolean"?vr=gt.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},ke.jump_to_confirm):vr=gt.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Jn),vr=gt.createElement("li",{title:Pn?"".concat(ke.jump_to).concat(bi,"/").concat(ne):null,className:"".concat(de,"-simple-pager")},vr));var Sn=this.renderPrev(qe);return gt.createElement("ul",(0,zt.Z)({className:It()(de,"".concat(de,"-simple"),(0,mt.Z)({},"".concat(de,"-disabled"),Ue),Ge),style:Ye,ref:this.paginationNode},we),fn,Sn?gt.createElement("li",{title:Pn?ke.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:It()("".concat(de,"-prev"),(0,mt.Z)({},"".concat(de,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Sn):null,gt.createElement("li",{title:Pn?"".concat(bi,"/").concat(ne):null,className:"".concat(de,"-simple-pager")},gt.createElement("input",{type:"text",value:ui,disabled:Ue,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),gt.createElement("span",{className:"".concat(de,"-slash")},"/"),ne),gt.createElement("li",{title:Pn?ke.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:It()("".concat(de,"-next"),(0,mt.Z)({},"".concat(de,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Qe)),vr)}if(ne<=3+_n*2){var ze={locale:ke,rootPrefixCls:de,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Pn,itemRender:Zn};ne||Wi.push(gt.createElement(qt,(0,zt.Z)({},ze,{key:"noPager",page:1,className:"".concat(de,"-item-disabled")})));for(var Le=1;Le<=ne;Le+=1){var cn=bi===Le;Wi.push(gt.createElement(qt,(0,zt.Z)({},ze,{key:Le,page:Le,active:cn})))}}else{var wn=hn?ke.prev_3:ke.prev_5,Nn=hn?ke.next_3:ke.next_5,Hn=Zn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(ci,"prev page")),Pe=Zn(this.getJumpNextPage(),"jump-next",this.getItemIcon(pi,"next page"));Gn&&(Fi=Hn?gt.createElement("li",{title:Pn?wn:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:It()("".concat(de,"-jump-prev"),(0,mt.Z)({},"".concat(de,"-jump-prev-custom-icon"),!!ci))},Hn):null,nr=Pe?gt.createElement("li",{title:Pn?Nn:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:It()("".concat(de,"-jump-next"),(0,mt.Z)({},"".concat(de,"-jump-next-custom-icon"),!!pi))},Pe):null),xr=gt.createElement(qt,{locale:ke,last:!0,rootPrefixCls:de,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:ne,page:ne,active:!1,showTitle:Pn,itemRender:Zn}),sr=gt.createElement(qt,{locale:ke,rootPrefixCls:de,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Pn,itemRender:Zn});var We=Math.max(1,bi-_n),pn=Math.min(bi+_n,ne);bi-1<=_n&&(pn=1+_n*2),ne-bi<=_n&&(We=ne-_n*2);for(var On=We;On<=pn;On+=1){var Ke=bi===On;Wi.push(gt.createElement(qt,{locale:ke,rootPrefixCls:de,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:On,page:On,active:Ke,showTitle:Pn,itemRender:Zn}))}bi-1>=_n*2&&bi!==3&&(Wi[0]=(0,gt.cloneElement)(Wi[0],{className:"".concat(de,"-item-after-jump-prev")}),Wi.unshift(Fi)),ne-bi>=_n*2&&bi!==ne-2&&(Wi[Wi.length-1]=(0,gt.cloneElement)(Wi[Wi.length-1],{className:"".concat(de,"-item-before-jump-next")}),Wi.push(nr)),We!==1&&Wi.unshift(sr),pn!==ne&&Wi.push(xr)}var nn=!this.hasPrev()||!ne,_e=!this.hasNext()||!ne,en=this.renderPrev(qe),un=this.renderNext(Qe);return gt.createElement("ul",(0,zt.Z)({className:It()(de,Ge,(0,mt.Z)({},"".concat(de,"-disabled"),Ue)),style:Ye,ref:this.paginationNode},we),fn,en?gt.createElement("li",{title:Pn?ke.prev_page:null,onClick:this.prev,tabIndex:nn?null:0,onKeyPress:this.runIfEnterPrev,className:It()("".concat(de,"-prev"),(0,mt.Z)({},"".concat(de,"-disabled"),nn)),"aria-disabled":nn},en):null,Wi,un?gt.createElement("li",{title:Pn?ke.next_page:null,onClick:this.next,tabIndex:_e?null:0,onKeyPress:this.runIfEnterNext,className:It()("".concat(de,"-next"),(0,mt.Z)({},"".concat(de,"-disabled"),_e)),"aria-disabled":_e},un):null,gt.createElement(Zt,{disabled:Ue,locale:ke,rootPrefixCls:de,selectComponentClass:xi,selectPrefixCls:Ci,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:bi,pageSize:Yi,pageSizeOptions:Gi,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Jn}))}}],[{key:"getDerivedStateFromProps",value:function(oe,de){var Ge={};if("current"in oe&&(Ge.current=oe.current,oe.current!==de.current&&(Ge.currentInputValue=Ge.current)),"pageSize"in oe&&oe.pageSize!==de.pageSize){var Ye=de.current,Ue=ae(oe.pageSize,de,oe);Ye=Ye>Ue?Ue:Ye,"current"in oe||(Ge.current=Ye,Ge.currentInputValue=Ye),Ge.pageSize=oe.pageSize}return Ge}}]),Wt}(gt.Component);xe.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:te,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:te,locale:Pt.Z,style:{},itemRender:ce,totalBoundaryShowSizeChanger:50};var ye=xe,Te=Kt(22075),me=Kt(36355),He=Kt(19716),fe=Kt(8628),$t=Kt(9763),ie=Kt(57809);const ue=wt=>gt.createElement(ie.default,Object.assign({},wt,{showSearch:!0,size:"small"})),ge=wt=>gt.createElement(ie.default,Object.assign({},wt,{showSearch:!0,size:"middle"}));ue.Option=ie.default.Option,ge.Option=ie.default.Option;var he=Kt(9937),De=Kt(17313),Ne=Kt(83116),$e=Kt(37613);const Re=wt=>{const{componentCls:jt}=wt;return{[`${jt}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${jt}-item-link`]:{color:wt.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${jt}-item-link`]:{color:wt.colorTextDisabled,cursor:"not-allowed"}}},[`&${jt}-disabled`]:{cursor:"not-allowed",[`${jt}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:wt.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:wt.colorBorder,backgroundColor:wt.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:wt.itemActiveBgDisabled},a:{color:wt.itemActiveColorDisabled}}},[`${jt}-item-link`]:{color:wt.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${jt}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${jt}-simple-pager`]:{color:wt.colorTextDisabled},[`${jt}-jump-prev, ${jt}-jump-next`]:{[`${jt}-item-link-icon`]:{opacity:0},[`${jt}-item-ellipsis`]:{opacity:1}}},[`&${jt}-simple`]:{[`${jt}-prev, ${jt}-next`]:{[`&${jt}-disabled ${jt}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},tn=wt=>{const{componentCls:jt}=wt;return{[`&${jt}-mini ${jt}-total-text, &${jt}-mini ${jt}-simple-pager`]:{height:wt.itemSizeSM,lineHeight:`${wt.itemSizeSM}px`},[`&${jt}-mini ${jt}-item`]:{minWidth:wt.itemSizeSM,height:wt.itemSizeSM,margin:0,lineHeight:`${wt.itemSizeSM-2}px`},[`&${jt}-mini:not(${jt}-disabled) ${jt}-item:not(${jt}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:wt.colorBgTextHover},"&:active":{backgroundColor:wt.colorBgTextActive}},[`&${jt}-mini ${jt}-prev, &${jt}-mini ${jt}-next`]:{minWidth:wt.itemSizeSM,height:wt.itemSizeSM,margin:0,lineHeight:`${wt.itemSizeSM}px`},[`&${jt}-mini:not(${jt}-disabled)`]:{[`${jt}-prev, ${jt}-next`]:{[`&:hover ${jt}-item-link`]:{backgroundColor:wt.colorBgTextHover},[`&:active ${jt}-item-link`]:{backgroundColor:wt.colorBgTextActive},[`&${jt}-disabled:hover ${jt}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${jt}-mini ${jt}-prev ${jt}-item-link,
|
|
|
&${jt}-mini ${jt}-next ${jt}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:wt.itemSizeSM,lineHeight:`${wt.itemSizeSM}px`}},[`&${jt}-mini ${jt}-jump-prev, &${jt}-mini ${jt}-jump-next`]:{height:wt.itemSizeSM,marginInlineEnd:0,lineHeight:`${wt.itemSizeSM}px`},[`&${jt}-mini ${jt}-options`]:{marginInlineStart:wt.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:wt.miniOptionsSizeChangerTop},"&-quick-jumper":{height:wt.itemSizeSM,lineHeight:`${wt.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,he.x0)(wt)),{width:wt.paginationMiniQuickJumperInputWidth,height:wt.controlHeightSM})}}}},Me=wt=>{const{componentCls:jt}=wt;return{[`
|
|
|
&${jt}-simple ${jt}-prev,
|
|
|
&${jt}-simple ${jt}-next
|
|
|
`]:{height:wt.itemSizeSM,lineHeight:`${wt.itemSizeSM}px`,verticalAlign:"top",[`${jt}-item-link`]:{height:wt.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:wt.colorBgTextHover},"&:active":{backgroundColor:wt.colorBgTextActive},"&::after":{height:wt.itemSizeSM,lineHeight:`${wt.itemSizeSM}px`}}},[`&${jt}-simple ${jt}-simple-pager`]:{display:"inline-block",height:wt.itemSizeSM,marginInlineEnd:wt.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:wt.marginXS,padding:`0 ${wt.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:wt.itemInputBg,border:`${wt.lineWidth}px ${wt.lineType} ${wt.colorBorder}`,borderRadius:wt.borderRadius,outline:"none",transition:`border-color ${wt.motionDurationMid}`,color:"inherit","&:hover":{borderColor:wt.colorPrimary},"&:focus":{borderColor:wt.colorPrimaryHover,boxShadow:`${wt.inputOutlineOffset}px 0 ${wt.controlOutlineWidth}px ${wt.controlOutline}`},"&[disabled]":{color:wt.colorTextDisabled,backgroundColor:wt.colorBgContainerDisabled,borderColor:wt.colorBorder,cursor:"not-allowed"}}}}},Oe=wt=>{const{componentCls:jt}=wt;return{[`${jt}-jump-prev, ${jt}-jump-next`]:{outline:0,[`${jt}-item-container`]:{position:"relative",[`${jt}-item-link-icon`]:{color:wt.colorPrimary,fontSize:wt.fontSizeSM,opacity:0,transition:`all ${wt.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${jt}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:wt.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:wt.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:wt.paginationEllipsisTextIndent,opacity:1,transition:`all ${wt.motionDurationMid}`}},"&:hover":{[`${jt}-item-link-icon`]:{opacity:1},[`${jt}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${jt}-prev,
|
|
|
${jt}-jump-prev,
|
|
|
${jt}-jump-next
|
|
|
`]:{marginInlineEnd:wt.marginXS},[`
|
|
|
${jt}-prev,
|
|
|
${jt}-next,
|
|
|
${jt}-jump-prev,
|
|
|
${jt}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:wt.itemSize,height:wt.itemSize,color:wt.colorText,fontFamily:wt.fontFamily,lineHeight:`${wt.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:wt.borderRadius,cursor:"pointer",transition:`all ${wt.motionDurationMid}`},[`${jt}-prev, ${jt}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:wt.colorText,cursor:"pointer",userSelect:"none"},[`${jt}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:wt.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${wt.lineWidth}px ${wt.lineType} transparent`,borderRadius:wt.borderRadius,outline:"none",transition:`all ${wt.motionDurationMid}`},[`&:hover ${jt}-item-link`]:{backgroundColor:wt.colorBgTextHover},[`&:active ${jt}-item-link`]:{backgroundColor:wt.colorBgTextActive},[`&${jt}-disabled:hover`]:{[`${jt}-item-link`]:{backgroundColor:"transparent"}}},[`${jt}-slash`]:{marginInlineEnd:wt.paginationSlashMarginInlineEnd,marginInlineStart:wt.paginationSlashMarginInlineStart},[`${jt}-options`]:{display:"inline-block",marginInlineStart:wt.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:wt.controlHeight,marginInlineStart:wt.marginXS,lineHeight:`${wt.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,he.ik)(wt)),{width:wt.controlHeightLG*1.25,height:wt.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:wt.marginXS,marginInlineEnd:wt.marginXS})}}}},Fe=wt=>{const{componentCls:jt}=wt;return{[`${jt}-item`]:{display:"inline-block",minWidth:wt.itemSize,height:wt.itemSize,marginInlineEnd:wt.marginXS,fontFamily:wt.fontFamily,lineHeight:`${wt.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${wt.lineWidth}px ${wt.lineType} transparent`,borderRadius:wt.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${wt.paginationItemPaddingInline}px`,color:wt.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${jt}-item-active)`]:{"&:hover":{transition:`all ${wt.motionDurationMid}`,backgroundColor:wt.colorBgTextHover},"&:active":{backgroundColor:wt.colorBgTextActive}},"&-active":{fontWeight:wt.fontWeightStrong,backgroundColor:wt.itemActiveBg,borderColor:wt.colorPrimary,a:{color:wt.colorPrimary},"&:hover":{borderColor:wt.colorPrimaryHover},"&:hover a":{color:wt.colorPrimaryHover}}}}},le=wt=>{const{componentCls:jt}=wt;return{[jt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,De.Wf)(wt)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${jt}-total-text`]:{display:"inline-block",height:wt.itemSize,marginInlineEnd:wt.marginXS,lineHeight:`${wt.itemSize-2}px`,verticalAlign:"middle"}}),Fe(wt)),Oe(wt)),Me(wt)),tn(wt)),Re(wt)),{[`@media only screen and (max-width: ${wt.screenLG}px)`]:{[`${jt}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${wt.screenSM}px)`]:{[`${jt}-options`]:{display:"none"}}}),[`&${wt.componentCls}-rtl`]:{direction:"rtl"}}},Tt=wt=>{const{componentCls:jt}=wt;return{[`${jt}${jt}-disabled:not(${jt}-mini)`]:{"&, &:hover":{[`${jt}-item-link`]:{borderColor:wt.colorBorder}},"&:focus-visible":{[`${jt}-item-link`]:{borderColor:wt.colorBorder}},[`${jt}-item, ${jt}-item-link`]:{backgroundColor:wt.colorBgContainerDisabled,borderColor:wt.colorBorder,[`&:hover:not(${jt}-item-active)`]:{backgroundColor:wt.colorBgContainerDisabled,borderColor:wt.colorBorder,a:{color:wt.colorTextDisabled}},[`&${jt}-item-active`]:{backgroundColor:wt.itemActiveBgDisabled}},[`${jt}-prev, ${jt}-next`]:{"&:hover button":{backgroundColor:wt.colorBgContainerDisabled,borderColor:wt.colorBorder,color:wt.colorTextDisabled},[`${jt}-item-link`]:{backgroundColor:wt.colorBgContainerDisabled,borderColor:wt.colorBorder}}},[`${jt}:not(${jt}-mini)`]:{[`${jt}-prev, ${jt}-next`]:{"&:hover button":{borderColor:wt.colorPrimaryHover,backgroundColor:wt.itemBg},[`${jt}-item-link`]:{backgroundColor:wt.itemLinkBg,borderColor:wt.colorBorder},[`&:hover ${jt}-item-link`]:{borderColor:wt.colorPrimary,backgroundColor:wt.itemBg,color:wt.colorPrimary},[`&${jt}-disabled`]:{[`${jt}-item-link`]:{borderColor:wt.colorBorder,color:wt.colorTextDisabled}}},[`${jt}-item`]:{backgroundColor:wt.itemBg,border:`${wt.lineWidth}px ${wt.lineType} ${wt.colorBorder}`,[`&:hover:not(${jt}-item-active)`]:{borderColor:wt.colorPrimary,backgroundColor:wt.itemBg,a:{color:wt.colorPrimary}},"&-active":{borderColor:wt.colorPrimary}}}}},bt=wt=>{const{componentCls:jt}=wt;return{[`${jt}:not(${jt}-disabled)`]:{[`${jt}-item`]:Object.assign({},(0,De.Qy)(wt)),[`${jt}-jump-prev, ${jt}-jump-next`]:{"&:focus-visible":Object.assign({[`${jt}-item-link-icon`]:{opacity:1},[`${jt}-item-ellipsis`]:{opacity:0}},(0,De.oN)(wt))},[`${jt}-prev, ${jt}-next`]:{[`&:focus-visible ${jt}-item-link`]:Object.assign({},(0,De.oN)(wt))}}}};var _t=(0,Ne.Z)("Pagination",wt=>{const jt=(0,$e.TS)(wt,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:wt.marginXXS/2,paginationMiniQuickJumperInputWidth:wt.controlHeightLG*1.1,paginationItemPaddingInline:wt.marginXXS*1.5,paginationEllipsisLetterSpacing:wt.marginXXS/2,paginationSlashMarginInlineStart:wt.marginXXS,paginationSlashMarginInlineEnd:wt.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,he.e5)(wt),(0,he.TM)(wt));return[le(jt),bt(jt),wt.wireframe&&Tt(jt)]},wt=>({itemBg:wt.colorBgContainer,itemSize:wt.controlHeight,itemSizeSM:wt.controlHeightSM,itemActiveBg:wt.colorBgContainer,itemLinkBg:wt.colorBgContainer,itemActiveColorDisabled:wt.colorTextDisabled,itemActiveBgDisabled:wt.controlItemBgActiveDisabled,itemInputBg:wt.colorBgContainer,miniOptionsSizeChangerTop:0})),Yt=function(wt,jt){var Wt={};for(var Vt in wt)Object.prototype.hasOwnProperty.call(wt,Vt)&&jt.indexOf(Vt)<0&&(Wt[Vt]=wt[Vt]);if(wt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,Vt=Object.getOwnPropertySymbols(wt);oe<Vt.length;oe++)jt.indexOf(Vt[oe])<0&&Object.prototype.propertyIsEnumerable.call(wt,Vt[oe])&&(Wt[Vt[oe]]=wt[Vt[oe]]);return Wt},Ut=wt=>{const{prefixCls:jt,selectPrefixCls:Wt,className:Vt,rootClassName:oe,style:de,size:Ge,locale:Ye,selectComponentClass:Ue,responsive:an,showSizeChanger:vn}=wt,ke=Yt(wt,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Ze}=(0,fe.Z)(an),{getPrefixCls:hn,direction:Pn,pagination:In={}}=gt.useContext(me.E_),Bn=hn("pagination",jt),[Zn,Gn]=_t(Bn),ci=vn!=null?vn:In.showSizeChanger,pi=gt.useMemo(()=>{const ne=gt.createElement("span",{className:`${Bn}-item-ellipsis`},"\u2022\u2022\u2022"),Wi=gt.createElement("button",{className:`${Bn}-item-link`,type:"button",tabIndex:-1},Pn==="rtl"?gt.createElement(Lt.Z,null):gt.createElement(Ct.Z,null)),Fi=gt.createElement("button",{className:`${Bn}-item-link`,type:"button",tabIndex:-1},Pn==="rtl"?gt.createElement(Ct.Z,null):gt.createElement(Lt.Z,null)),nr=gt.createElement("a",{className:`${Bn}-item-link`},gt.createElement("div",{className:`${Bn}-item-container`},Pn==="rtl"?gt.createElement(Rt.Z,{className:`${Bn}-item-link-icon`}):gt.createElement(Ot,{className:`${Bn}-item-link-icon`}),ne)),sr=gt.createElement("a",{className:`${Bn}-item-link`},gt.createElement("div",{className:`${Bn}-item-container`},Pn==="rtl"?gt.createElement(Ot,{className:`${Bn}-item-link-icon`}):gt.createElement(Rt.Z,{className:`${Bn}-item-link-icon`}),ne));return{prevIcon:Wi,nextIcon:Fi,jumpPrevIcon:nr,jumpNextIcon:sr}},[Pn,Bn]),[xi]=(0,$t.Z)("Pagination",Te.Z),Ci=Object.assign(Object.assign({},xi),Ye),Gi=(0,He.Z)(Ge),qi=Gi==="small"||!!(Ze&&!Gi&&an),bi=hn("select",Wt),Yi=It()({[`${Bn}-mini`]:qi,[`${Bn}-rtl`]:Pn==="rtl"},In==null?void 0:In.className,Vt,oe,Gn),ui=Object.assign(Object.assign({},In==null?void 0:In.style),de);return Zn(gt.createElement(ye,Object.assign({},pi,ke,{style:ui,prefixCls:Bn,selectPrefixCls:bi,className:Yi,selectComponentClass:Ue||(qi?ue:ge),locale:Ci,showSizeChanger:ci})))},St=Ut},93948:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return vn}});var zt=Kt(59301),gt=Kt(29679),Xt=Kt(40001),Qt=Kt(19248),kt=Kt(99267),Bt=Kt(92310),xt=Kt.n(Bt),Ot=Kt(2738),Rt=Kt(36355),Ct=Kt(92413),Lt=Kt(33708),At=Kt(37061),It={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},mt=function(){var Ze=(0,zt.useRef)([]),hn=(0,zt.useRef)(null);return(0,zt.useEffect)(function(){var Pn=Date.now(),In=!1;Ze.current.forEach(function(Bn){if(Bn){In=!0;var Zn=Bn.style;Zn.transitionDuration=".3s, .3s, .3s, .06s",hn.current&&Pn-hn.current<100&&(Zn.transitionDuration="0s, 0s")}}),In&&(hn.current=Date.now())}),Ze.current},et=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],tt=function(Ze){var hn=(0,Lt.Z)((0,Lt.Z)({},It),Ze),Pn=hn.className,In=hn.percent,Bn=hn.prefixCls,Zn=hn.strokeColor,Gn=hn.strokeLinecap,ci=hn.strokeWidth,pi=hn.style,xi=hn.trailColor,Ci=hn.trailWidth,Gi=hn.transition,qi=(0,At.Z)(hn,et);delete qi.gapPosition;var bi=Array.isArray(In)?In:[In],Yi=Array.isArray(Zn)?Zn:[Zn],ui=mt(),ne=ci/2,Wi=100-ci/2,Fi="M ".concat(Gn==="round"?ne:0,",").concat(ne,`
|
|
|
L `).concat(Gn==="round"?Wi:100,",").concat(ne),nr="0 0 100 ".concat(ci),sr=0;return zt.createElement("svg",(0,Ct.Z)({className:xt()("".concat(Bn,"-line"),Pn),viewBox:nr,preserveAspectRatio:"none",style:pi},qi),zt.createElement("path",{className:"".concat(Bn,"-line-trail"),d:Fi,strokeLinecap:Gn,stroke:xi,strokeWidth:Ci||ci,fillOpacity:"0"}),bi.map(function(xr,vr){var Jn=1;switch(Gn){case"round":Jn=1-ci/100;break;case"square":Jn=1-ci/2/100;break;default:Jn=1;break}var _n={strokeDasharray:"".concat(xr*Jn,"px, 100px"),strokeDashoffset:"-".concat(sr,"px"),transition:Gi||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},qe=Yi[vr]||Yi[Yi.length-1];return sr+=xr,zt.createElement("path",{key:vr,className:"".concat(Bn,"-line-path"),d:Fi,strokeLinecap:Gn,stroke:qe,strokeWidth:ci,fillOpacity:"0",ref:function(we){ui[vr]=we},style:_n})}))},st=tt,rt=Kt(39559),ut=Kt(33606),ct=Kt(47273),ft=0,pt=(0,ct.Z)();function Pt(){var ke;return pt?(ke=ft,ft+=1):ke="TEST_OR_SSR",ke}var Dt=function(ke){var Ze=zt.useState(),hn=(0,ut.Z)(Ze,2),Pn=hn[0],In=hn[1];return zt.useEffect(function(){In("rc_progress_".concat(Pt()))},[]),ke||Pn},Zt=function(Ze){var hn=Ze.bg,Pn=Ze.children;return zt.createElement("div",{style:{width:"100%",height:"100%",background:hn}},Pn)};function Ft(ke,Ze){return Object.keys(ke).map(function(hn){var Pn=parseFloat(hn),In="".concat(Math.floor(Pn*Ze),"%");return"".concat(ke[hn]," ").concat(In)})}var qt=zt.forwardRef(function(ke,Ze){var hn=ke.prefixCls,Pn=ke.color,In=ke.gradientId,Bn=ke.radius,Zn=ke.style,Gn=ke.ptg,ci=ke.strokeLinecap,pi=ke.strokeWidth,xi=ke.size,Ci=ke.gapDegree,Gi=Pn&&(0,rt.Z)(Pn)==="object",qi=Gi?"#FFF":void 0,bi=xi/2,Yi=zt.createElement("circle",{className:"".concat(hn,"-circle-path"),r:Bn,cx:bi,cy:bi,stroke:qi,strokeLinecap:ci,strokeWidth:pi,opacity:Gn===0?0:1,style:Zn,ref:Ze});if(!Gi)return Yi;var ui="".concat(In,"-conic"),ne=Ci?"".concat(180+Ci/2,"deg"):"0deg",Wi=Ft(Pn,(360-Ci)/360),Fi=Ft(Pn,1),nr="conic-gradient(from ".concat(ne,", ").concat(Wi.join(", "),")"),sr="linear-gradient(to ".concat(Ci?"bottom":"top",", ").concat(Fi.join(", "),")");return zt.createElement(zt.Fragment,null,zt.createElement("mask",{id:ui},Yi),zt.createElement("foreignObject",{x:0,y:0,width:xi,height:xi,mask:"url(#".concat(ui,")")},zt.createElement(Zt,{bg:sr},zt.createElement(Zt,{bg:nr}))))}),te=qt,Gt=100,ce=function(Ze,hn,Pn,In,Bn,Zn,Gn,ci,pi,xi){var Ci=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Gi=Pn/100*360*((360-Zn)/360),qi=Zn===0?0:{bottom:0,top:180,left:90,right:-90}[Gn],bi=(100-In)/100*hn;pi==="round"&&In!==100&&(bi+=xi/2,bi>=hn&&(bi=hn-.01));var Yi=Gt/2;return{stroke:typeof ci=="string"?ci:void 0,strokeDasharray:"".concat(hn,"px ").concat(Ze),strokeDashoffset:bi+Ci,transform:"rotate(".concat(Bn+Gi+qi,"deg)"),transformOrigin:"".concat(Yi,"px ").concat(Yi,"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}},ae=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function xe(ke){var Ze=ke!=null?ke:[];return Array.isArray(Ze)?Ze:[Ze]}var ye=function(Ze){var hn=(0,Lt.Z)((0,Lt.Z)({},It),Ze),Pn=hn.id,In=hn.prefixCls,Bn=hn.steps,Zn=hn.strokeWidth,Gn=hn.trailWidth,ci=hn.gapDegree,pi=ci===void 0?0:ci,xi=hn.gapPosition,Ci=hn.trailColor,Gi=hn.strokeLinecap,qi=hn.style,bi=hn.className,Yi=hn.strokeColor,ui=hn.percent,ne=(0,At.Z)(hn,ae),Wi=Gt/2,Fi=Dt(Pn),nr="".concat(Fi,"-gradient"),sr=Wi-Zn/2,xr=Math.PI*2*sr,vr=pi>0?90+pi/2:-90,Jn=xr*((360-pi)/360),_n=(0,rt.Z)(Bn)==="object"?Bn:{count:Bn,space:2},qe=_n.count,Qe=_n.space,we=xe(ui),fn=xe(Yi),Sn=fn.find(function(Pe){return Pe&&(0,rt.Z)(Pe)==="object"}),ze=Sn&&(0,rt.Z)(Sn)==="object",Le=ze?"butt":Gi,cn=ce(xr,Jn,0,100,vr,pi,xi,Ci,Le,Zn),wn=mt(),Nn=function(){var We=0;return we.map(function(pn,On){var Ke=fn[On]||fn[fn.length-1],nn=ce(xr,Jn,We,pn,vr,pi,xi,Ke,Le,Zn);return We+=pn,zt.createElement(te,{key:On,color:Ke,ptg:pn,radius:sr,prefixCls:In,gradientId:nr,style:nn,strokeLinecap:Le,strokeWidth:Zn,gapDegree:pi,ref:function(en){wn[On]=en},size:Gt})}).reverse()},Hn=function(){var We=Math.round(qe*(we[0]/100)),pn=100/qe,On=0;return new Array(qe).fill(null).map(function(Ke,nn){var _e=nn<=We-1?fn[0]:Ci,en=_e&&(0,rt.Z)(_e)==="object"?"url(#".concat(nr,")"):void 0,un=ce(xr,Jn,On,pn,vr,pi,xi,_e,"butt",Zn,Qe);return On+=(Jn-un.strokeDashoffset+Qe)*100/Jn,zt.createElement("circle",{key:nn,className:"".concat(In,"-circle-path"),r:sr,cx:Wi,cy:Wi,stroke:en,strokeWidth:Zn,opacity:1,style:un,ref:function(xn){wn[nn]=xn}})})};return zt.createElement("svg",(0,Ct.Z)({className:xt()("".concat(In,"-circle"),bi),viewBox:"0 0 ".concat(Gt," ").concat(Gt),style:qi,id:Pn,role:"presentation"},ne),!qe&&zt.createElement("circle",{className:"".concat(In,"-circle-trail"),r:sr,cx:Wi,cy:Wi,stroke:Ci,strokeLinecap:Le,strokeWidth:Gn||Zn,style:cn}),qe?Hn():Nn())},Te=ye,me={Line:st,Circle:Te},He=Kt(6848),fe=Kt(93398);function $t(ke){return!ke||ke<0?0:ke>100?100:ke}function ie(ke){let{success:Ze,successPercent:hn}=ke,Pn=hn;return Ze&&"progress"in Ze&&(Pn=Ze.progress),Ze&&"percent"in Ze&&(Pn=Ze.percent),Pn}const ue=ke=>{let{percent:Ze,success:hn,successPercent:Pn}=ke;const In=$t(ie({success:hn,successPercent:Pn}));return[In,$t($t(Ze)-In)]},ge=ke=>{let{success:Ze={},strokeColor:hn}=ke;const{strokeColor:Pn}=Ze;return[Pn||fe.presetPrimaryColors.green,hn||null]},he=(ke,Ze,hn)=>{var Pn,In,Bn,Zn;let Gn=-1,ci=-1;if(Ze==="step"){const pi=hn.steps,xi=hn.strokeWidth;typeof ke=="string"||typeof ke=="undefined"?(Gn=ke==="small"?2:14,ci=xi!=null?xi:8):typeof ke=="number"?[Gn,ci]=[ke,ke]:[Gn=14,ci=8]=ke,Gn*=pi}else if(Ze==="line"){const pi=hn==null?void 0:hn.strokeWidth;typeof ke=="string"||typeof ke=="undefined"?ci=pi||(ke==="small"?6:8):typeof ke=="number"?[Gn,ci]=[ke,ke]:[Gn=-1,ci=8]=ke}else(Ze==="circle"||Ze==="dashboard")&&(typeof ke=="string"||typeof ke=="undefined"?[Gn,ci]=ke==="small"?[60,60]:[120,120]:typeof ke=="number"?[Gn,ci]=[ke,ke]:(Gn=(In=(Pn=ke[0])!==null&&Pn!==void 0?Pn:ke[1])!==null&&In!==void 0?In:120,ci=(Zn=(Bn=ke[0])!==null&&Bn!==void 0?Bn:ke[1])!==null&&Zn!==void 0?Zn:120));return[Gn,ci]},De=3,Ne=ke=>De/ke*100;var Re=ke=>{const{prefixCls:Ze,trailColor:hn=null,strokeLinecap:Pn="round",gapPosition:In,gapDegree:Bn,width:Zn=120,type:Gn,children:ci,success:pi,size:xi=Zn}=ke,[Ci,Gi]=he(xi,"circle");let{strokeWidth:qi}=ke;qi===void 0&&(qi=Math.max(Ne(Ci),6));const bi={width:Ci,height:Gi,fontSize:Ci*.15+6},Yi=zt.useMemo(()=>{if(Bn||Bn===0)return Bn;if(Gn==="dashboard")return 75},[Bn,Gn]),ui=In||Gn==="dashboard"&&"bottom"||void 0,ne=Object.prototype.toString.call(ke.strokeColor)==="[object Object]",Wi=ge({success:pi,strokeColor:ke.strokeColor}),Fi=xt()(`${Ze}-inner`,{[`${Ze}-circle-gradient`]:ne}),nr=zt.createElement(Te,{percent:ue(ke),strokeWidth:qi,trailWidth:qi,strokeColor:Wi,strokeLinecap:Pn,trailColor:hn,prefixCls:Ze,gapDegree:Yi,gapPosition:ui});return zt.createElement("div",{className:Fi,style:bi},Ci<=20?zt.createElement(He.Z,{title:ci},zt.createElement("span",null,nr)):zt.createElement(zt.Fragment,null,nr,ci))},tn=function(ke,Ze){var hn={};for(var Pn in ke)Object.prototype.hasOwnProperty.call(ke,Pn)&&Ze.indexOf(Pn)<0&&(hn[Pn]=ke[Pn]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var In=0,Pn=Object.getOwnPropertySymbols(ke);In<Pn.length;In++)Ze.indexOf(Pn[In])<0&&Object.prototype.propertyIsEnumerable.call(ke,Pn[In])&&(hn[Pn[In]]=ke[Pn[In]]);return hn};const Me=ke=>{let Ze=[];return Object.keys(ke).forEach(hn=>{const Pn=parseFloat(hn.replace(/%/g,""));isNaN(Pn)||Ze.push({key:Pn,value:ke[hn]})}),Ze=Ze.sort((hn,Pn)=>hn.key-Pn.key),Ze.map(hn=>{let{key:Pn,value:In}=hn;return`${In} ${Pn}%`}).join(", ")},Oe=(ke,Ze)=>{const{from:hn=fe.presetPrimaryColors.blue,to:Pn=fe.presetPrimaryColors.blue,direction:In=Ze==="rtl"?"to left":"to right"}=ke,Bn=tn(ke,["from","to","direction"]);if(Object.keys(Bn).length!==0){const Zn=Me(Bn);return{backgroundImage:`linear-gradient(${In}, ${Zn})`}}return{backgroundImage:`linear-gradient(${In}, ${hn}, ${Pn})`}};var le=ke=>{const{prefixCls:Ze,direction:hn,percent:Pn,size:In,strokeWidth:Bn,strokeColor:Zn,strokeLinecap:Gn="round",children:ci,trailColor:pi=null,success:xi}=ke,Ci=Zn&&typeof Zn!="string"?Oe(Zn,hn):{backgroundColor:Zn},Gi=Gn==="square"||Gn==="butt"?0:void 0,qi={backgroundColor:pi||void 0,borderRadius:Gi},bi=In!=null?In:[-1,Bn||(In==="small"?6:8)],[Yi,ui]=he(bi,"line",{strokeWidth:Bn}),ne=Object.assign({width:`${$t(Pn)}%`,height:ui,borderRadius:Gi},Ci),Wi=ie(ke),Fi={width:`${$t(Wi)}%`,height:ui,borderRadius:Gi,backgroundColor:xi==null?void 0:xi.strokeColor},nr={width:Yi<0?"100%":Yi,height:ui};return zt.createElement(zt.Fragment,null,zt.createElement("div",{className:`${Ze}-outer`,style:nr},zt.createElement("div",{className:`${Ze}-inner`,style:qi},zt.createElement("div",{className:`${Ze}-bg`,style:ne}),Wi!==void 0?zt.createElement("div",{className:`${Ze}-success-bg`,style:Fi}):null)),ci)},bt=ke=>{const{size:Ze,steps:hn,percent:Pn=0,strokeWidth:In=8,strokeColor:Bn,trailColor:Zn=null,prefixCls:Gn,children:ci}=ke,pi=Math.round(hn*(Pn/100)),xi=Ze==="small"?2:14,Ci=Ze!=null?Ze:[xi,In],[Gi,qi]=he(Ci,"step",{steps:hn,strokeWidth:In}),bi=Gi/hn,Yi=new Array(hn);for(let ui=0;ui<hn;ui++){const ne=Array.isArray(Bn)?Bn[ui]:Bn;Yi[ui]=zt.createElement("div",{key:ui,className:xt()(`${Gn}-steps-item`,{[`${Gn}-steps-item-active`]:ui<=pi-1}),style:{backgroundColor:ui<=pi-1?ne:Zn,width:bi,height:qi}})}return zt.createElement("div",{className:`${Gn}-steps-outer`},Yi,ci)},_t=Kt(93083),Yt=Kt(17313),Mt=Kt(83116),Ut=Kt(37613);const St=ke=>{const Ze=ke?"100%":"-100%";return new _t.Keyframes(`antProgress${ke?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Ze}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Ze}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},wt=ke=>{const{componentCls:Ze,iconCls:hn}=ke;return{[Ze]:Object.assign(Object.assign({},(0,Yt.Wf)(ke)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:ke.fontSize,marginInlineEnd:ke.marginXS,marginBottom:ke.marginXS},[`${Ze}-outer`]:{display:"inline-block",width:"100%"},[`&${Ze}-show-info`]:{[`${Ze}-outer`]:{marginInlineEnd:`calc(-2em - ${ke.marginXS}px)`,paddingInlineEnd:`calc(2em + ${ke.paddingXS}px)`}},[`${Ze}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:ke.remainingColor,borderRadius:ke.lineBorderRadius},[`${Ze}-inner:not(${Ze}-circle-gradient)`]:{[`${Ze}-circle-path`]:{stroke:ke.defaultColor}},[`${Ze}-success-bg, ${Ze}-bg`]:{position:"relative",backgroundColor:ke.defaultColor,borderRadius:ke.lineBorderRadius,transition:`all ${ke.motionDurationSlow} ${ke.motionEaseInOutCirc}`},[`${Ze}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:ke.colorSuccess},[`${Ze}-text`]:{display:"inline-block",width:"2em",marginInlineStart:ke.marginXS,color:ke.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[hn]:{fontSize:ke.fontSize}},[`&${Ze}-status-active`]:{[`${Ze}-bg::before`]:{position:"absolute",inset:0,backgroundColor:ke.colorBgContainer,borderRadius:ke.lineBorderRadius,opacity:0,animationName:St(),animationDuration:ke.progressActiveMotionDuration,animationTimingFunction:ke.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Ze}-rtl${Ze}-status-active`]:{[`${Ze}-bg::before`]:{animationName:St(!0)}},[`&${Ze}-status-exception`]:{[`${Ze}-bg`]:{backgroundColor:ke.colorError},[`${Ze}-text`]:{color:ke.colorError}},[`&${Ze}-status-exception ${Ze}-inner:not(${Ze}-circle-gradient)`]:{[`${Ze}-circle-path`]:{stroke:ke.colorError}},[`&${Ze}-status-success`]:{[`${Ze}-bg`]:{backgroundColor:ke.colorSuccess},[`${Ze}-text`]:{color:ke.colorSuccess}},[`&${Ze}-status-success ${Ze}-inner:not(${Ze}-circle-gradient)`]:{[`${Ze}-circle-path`]:{stroke:ke.colorSuccess}}})}},jt=ke=>{const{componentCls:Ze,iconCls:hn}=ke;return{[Ze]:{[`${Ze}-circle-trail`]:{stroke:ke.remainingColor},[`&${Ze}-circle ${Ze}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Ze}-circle ${Ze}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:ke.circleTextColor,fontSize:ke.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[hn]:{fontSize:`${ke.fontSize/ke.fontSizeSM}em`}},[`${Ze}-circle&-status-exception`]:{[`${Ze}-text`]:{color:ke.colorError}},[`${Ze}-circle&-status-success`]:{[`${Ze}-text`]:{color:ke.colorSuccess}}},[`${Ze}-inline-circle`]:{lineHeight:1,[`${Ze}-inner`]:{verticalAlign:"bottom"}}}},Wt=ke=>{const{componentCls:Ze}=ke;return{[Ze]:{[`${Ze}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:ke.progressStepMinWidth,marginInlineEnd:ke.progressStepMarginInlineEnd,backgroundColor:ke.remainingColor,transition:`all ${ke.motionDurationSlow}`,"&-active":{backgroundColor:ke.defaultColor}}}}}},Vt=ke=>{const{componentCls:Ze,iconCls:hn}=ke;return{[Ze]:{[`${Ze}-small&-line, ${Ze}-small&-line ${Ze}-text ${hn}`]:{fontSize:ke.fontSizeSM}}}};var oe=(0,Mt.Z)("Progress",ke=>{const Ze=ke.marginXXS/2,hn=(0,Ut.TS)(ke,{progressStepMarginInlineEnd:Ze,progressStepMinWidth:Ze,progressActiveMotionDuration:"2.4s"});return[wt(hn),jt(hn),Wt(hn),Vt(hn)]},ke=>({circleTextColor:ke.colorText,defaultColor:ke.colorInfo,remainingColor:ke.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),de=function(ke,Ze){var hn={};for(var Pn in ke)Object.prototype.hasOwnProperty.call(ke,Pn)&&Ze.indexOf(Pn)<0&&(hn[Pn]=ke[Pn]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var In=0,Pn=Object.getOwnPropertySymbols(ke);In<Pn.length;In++)Ze.indexOf(Pn[In])<0&&Object.prototype.propertyIsEnumerable.call(ke,Pn[In])&&(hn[Pn[In]]=ke[Pn[In]]);return hn};const Ge=null,Ye=["normal","exception","active","success"];var an=zt.forwardRef((ke,Ze)=>{const{prefixCls:hn,className:Pn,rootClassName:In,steps:Bn,strokeColor:Zn,percent:Gn=0,size:ci="default",showInfo:pi=!0,type:xi="line",status:Ci,format:Gi,style:qi}=ke,bi=de(ke,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Yi=zt.useMemo(()=>{var we,fn;const Sn=ie(ke);return parseInt(Sn!==void 0?(we=Sn!=null?Sn:0)===null||we===void 0?void 0:we.toString():(fn=Gn!=null?Gn:0)===null||fn===void 0?void 0:fn.toString(),10)},[Gn,ke.success,ke.successPercent]),ui=zt.useMemo(()=>!Ye.includes(Ci)&&Yi>=100?"success":Ci||"normal",[Ci,Yi]),{getPrefixCls:ne,direction:Wi,progress:Fi}=zt.useContext(Rt.E_),nr=ne("progress",hn),[sr,xr]=oe(nr),vr=zt.useMemo(()=>{if(!pi)return null;const we=ie(ke);let fn;const Sn=Gi||(Le=>`${Le}%`),ze=xi==="line";return Gi||ui!=="exception"&&ui!=="success"?fn=Sn($t(Gn),$t(we)):ui==="exception"?fn=ze?zt.createElement(Qt.Z,null):zt.createElement(kt.Z,null):ui==="success"&&(fn=ze?zt.createElement(gt.Z,null):zt.createElement(Xt.Z,null)),zt.createElement("span",{className:`${nr}-text`,title:typeof fn=="string"?fn:void 0},fn)},[pi,Gn,Yi,ui,xi,nr,Gi]),Jn=Array.isArray(Zn)?Zn[0]:Zn,_n=typeof Zn=="string"||Array.isArray(Zn)?Zn:void 0;let qe;xi==="line"?qe=Bn?zt.createElement(bt,Object.assign({},ke,{strokeColor:_n,prefixCls:nr,steps:Bn}),vr):zt.createElement(le,Object.assign({},ke,{strokeColor:Jn,prefixCls:nr,direction:Wi}),vr):(xi==="circle"||xi==="dashboard")&&(qe=zt.createElement(Re,Object.assign({},ke,{strokeColor:Jn,prefixCls:nr,progressStatus:ui}),vr));const Qe=xt()(nr,`${nr}-status-${ui}`,`${nr}-${xi==="dashboard"&&"circle"||Bn&&"steps"||xi}`,{[`${nr}-inline-circle`]:xi==="circle"&&he(ci,"circle")[0]<=20,[`${nr}-show-info`]:pi,[`${nr}-${ci}`]:typeof ci=="string",[`${nr}-rtl`]:Wi==="rtl"},Fi==null?void 0:Fi.className,Pn,In,xr);return sr(zt.createElement("div",Object.assign({ref:Ze,style:Object.assign(Object.assign({},Fi==null?void 0:Fi.style),qi),className:Qe,role:"progressbar","aria-valuenow":Yi},(0,Ot.Z)(bi,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),qe))}),vn=an},13570:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return $t}});var zt=Kt(92413),gt=Kt(59301),Xt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Qt=Xt,kt=Kt(7657),Bt=function(ue,ge){return gt.createElement(kt.Z,(0,zt.Z)({},ue,{ref:ge,icon:Qt}))},xt=gt.forwardRef(Bt),Ot=xt,Rt=Kt(92310),Ct=Kt.n(Rt),Lt=Kt(400),At=Kt(33606),It=Kt(37061),mt=Kt(18929),et=Kt(10228),tt=Kt(26112);function st(ie,ue){var ge=ie.disabled,he=ie.prefixCls,De=ie.character,Ne=ie.characterRender,$e=ie.index,Re=ie.count,tn=ie.value,Me=ie.allowHalf,Oe=ie.focused,Fe=ie.onHover,le=ie.onClick,Tt=function(jt){Fe(jt,$e)},bt=function(jt){le(jt,$e)},_t=function(jt){jt.keyCode===et.Z.ENTER&&le(jt,$e)},Yt=$e+1,Mt=new Set([he]);tn===0&&$e===0&&Oe?Mt.add("".concat(he,"-focused")):Me&&tn+.5>=Yt&&tn<Yt?(Mt.add("".concat(he,"-half")),Mt.add("".concat(he,"-active")),Oe&&Mt.add("".concat(he,"-focused"))):(Yt<=tn?Mt.add("".concat(he,"-full")):Mt.add("".concat(he,"-zero")),Yt===tn&&Oe&&Mt.add("".concat(he,"-focused")));var Ut=typeof De=="function"?De(ie):De,St=gt.createElement("li",{className:Ct()(Array.from(Mt)),ref:ue},gt.createElement("div",{onClick:ge?null:bt,onKeyDown:ge?null:_t,onMouseMove:ge?null:Tt,role:"radio","aria-checked":tn>$e?"true":"false","aria-posinset":$e+1,"aria-setsize":Re,tabIndex:ge?-1:0},gt.createElement("div",{className:"".concat(he,"-first")},Ut),gt.createElement("div",{className:"".concat(he,"-second")},Ut)));return Ne&&(St=Ne(St,ie)),St}var rt=gt.forwardRef(st);function ut(){var ie=gt.useRef({});function ue(he){return ie.current[he]}function ge(he){return function(De){ie.current[he]=De}}return[ue,ge]}function ct(ie){var ue=ie.pageXOffset,ge="scrollLeft";if(typeof ue!="number"){var he=ie.document;ue=he.documentElement[ge],typeof ue!="number"&&(ue=he.body[ge])}return ue}function ft(ie){var ue,ge,he=ie.ownerDocument,De=he.body,Ne=he&&he.documentElement,$e=ie.getBoundingClientRect();return ue=$e.left,ge=$e.top,ue-=Ne.clientLeft||De.clientLeft||0,ge-=Ne.clientTop||De.clientTop||0,{left:ue,top:ge}}function pt(ie){var ue=ft(ie),ge=ie.ownerDocument,he=ge.defaultView||ge.parentWindow;return ue.left+=ct(he),ue.left}var Pt=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Dt(ie,ue){var ge,he=ie.prefixCls,De=he===void 0?"rc-rate":he,Ne=ie.className,$e=ie.defaultValue,Re=ie.value,tn=ie.count,Me=tn===void 0?5:tn,Oe=ie.allowHalf,Fe=Oe===void 0?!1:Oe,le=ie.allowClear,Tt=le===void 0?!0:le,bt=ie.character,_t=bt===void 0?"\u2605":bt,Yt=ie.characterRender,Mt=ie.disabled,Ut=ie.direction,St=Ut===void 0?"ltr":Ut,wt=ie.tabIndex,jt=wt===void 0?0:wt,Wt=ie.autoFocus,Vt=ie.onHoverChange,oe=ie.onChange,de=ie.onFocus,Ge=ie.onBlur,Ye=ie.onKeyDown,Ue=ie.onMouseLeave,an=(0,It.Z)(ie,Pt),vn=ut(),ke=(0,At.Z)(vn,2),Ze=ke[0],hn=ke[1],Pn=gt.useRef(null),In=function(){if(!Mt){var Le;(Le=Pn.current)===null||Le===void 0||Le.focus()}};gt.useImperativeHandle(ue,function(){return{focus:In,blur:function(){if(!Mt){var Le;(Le=Pn.current)===null||Le===void 0||Le.blur()}}}});var Bn=(0,mt.Z)($e||0,{value:Re}),Zn=(0,At.Z)(Bn,2),Gn=Zn[0],ci=Zn[1],pi=(0,mt.Z)(null),xi=(0,At.Z)(pi,2),Ci=xi[0],Gi=xi[1],qi=function(Le,cn){var wn=St==="rtl",Nn=Le+1;if(Fe){var Hn=Ze(Le),Pe=pt(Hn),We=Hn.clientWidth;(wn&&cn-Pe>We/2||!wn&&cn-Pe<We/2)&&(Nn-=.5)}return Nn},bi=function(Le){ci(Le),oe==null||oe(Le)},Yi=gt.useState(!1),ui=(0,At.Z)(Yi,2),ne=ui[0],Wi=ui[1],Fi=function(){Wi(!0),de==null||de()},nr=function(){Wi(!1),Ge==null||Ge()},sr=gt.useState(null),xr=(0,At.Z)(sr,2),vr=xr[0],Jn=xr[1],_n=function(Le,cn){var wn=qi(cn,Le.pageX);wn!==Ci&&(Jn(wn),Gi(null)),Vt==null||Vt(wn)},qe=function(Le){Mt||(Jn(null),Gi(null),Vt==null||Vt(void 0)),Le&&(Ue==null||Ue(Le))},Qe=function(Le,cn){var wn=qi(cn,Le.pageX),Nn=!1;Tt&&(Nn=wn===Gn),qe(),bi(Nn?0:wn),Gi(Nn?wn:null)},we=function(Le){var cn=Le.keyCode,wn=St==="rtl",Nn=Gn;cn===et.Z.RIGHT&&Nn<Me&&!wn?(Fe?Nn+=.5:Nn+=1,bi(Nn),Le.preventDefault()):cn===et.Z.LEFT&&Nn>0&&!wn||cn===et.Z.RIGHT&&Nn>0&&wn?(Fe?Nn-=.5:Nn-=1,bi(Nn),Le.preventDefault()):cn===et.Z.LEFT&&Nn<Me&&wn&&(Fe?Nn+=.5:Nn+=1,bi(Nn),Le.preventDefault()),Ye==null||Ye(Le)};gt.useEffect(function(){Wt&&!Mt&&In()},[]);var fn=new Array(Me).fill(0).map(function(ze,Le){return gt.createElement(rt,{ref:hn(Le),index:Le,count:Me,disabled:Mt,prefixCls:"".concat(De,"-star"),allowHalf:Fe,value:vr===null?Gn:vr,onClick:Qe,onHover:_n,key:ze||Le,character:_t,characterRender:Yt,focused:ne})}),Sn=Ct()(De,Ne,(ge={},(0,Lt.Z)(ge,"".concat(De,"-disabled"),Mt),(0,Lt.Z)(ge,"".concat(De,"-rtl"),St==="rtl"),ge));return gt.createElement("ul",(0,zt.Z)({className:Sn,onMouseLeave:qe,tabIndex:Mt?-1:jt,onFocus:Mt?null:Fi,onBlur:Mt?null:nr,onKeyDown:Mt?null:we,ref:Pn,role:"radiogroup"},(0,tt.Z)(an,{aria:!0,data:!0,attr:!0})),fn)}var Zt=gt.forwardRef(Dt),Ft=Zt,qt=Kt(36355),te=Kt(6848),Gt=Kt(17313),ce=Kt(83116),ae=Kt(37613);const xe=ie=>{const{componentCls:ue}=ie;return{[`${ue}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:ie.marginXS},"> div":{transition:`all ${ie.motionDurationMid}, outline 0s`,"&:hover":{transform:ie.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${ie.lineWidth}px dashed ${ie.starColor}`,transform:ie.starHoverScale}},"&-first, &-second":{color:ie.starBg,transition:`all ${ie.motionDurationMid}`,userSelect:"none",[ie.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${ue}-star-first, &-half ${ue}-star-second`]:{opacity:1},[`&-half ${ue}-star-first, &-full ${ue}-star-second`]:{color:"inherit"}}}},ye=ie=>({[`&-rtl${ie.componentCls}`]:{direction:"rtl"}}),Te=ie=>{const{componentCls:ue}=ie;return{[ue]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Gt.Wf)(ie)),{display:"inline-block",margin:0,padding:0,color:ie.starColor,fontSize:ie.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${ue} ${ue}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),xe(ie)),{[`+ ${ue}-text`]:{display:"inline-block",marginInlineStart:ie.marginXS,fontSize:ie.fontSize}}),ye(ie))}};var me=(0,ce.Z)("Rate",ie=>{const ue=(0,ae.TS)(ie,{});return[Te(ue)]},ie=>({starColor:ie.yellow6,starSize:ie.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:ie.colorFillContent})),He=function(ie,ue){var ge={};for(var he in ie)Object.prototype.hasOwnProperty.call(ie,he)&&ue.indexOf(he)<0&&(ge[he]=ie[he]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,he=Object.getOwnPropertySymbols(ie);De<he.length;De++)ue.indexOf(he[De])<0&&Object.prototype.propertyIsEnumerable.call(ie,he[De])&&(ge[he[De]]=ie[he[De]]);return ge},$t=gt.forwardRef((ie,ue)=>{const{prefixCls:ge,className:he,rootClassName:De,style:Ne,tooltips:$e,character:Re=gt.createElement(Ot,null)}=ie,tn=He(ie,["prefixCls","className","rootClassName","style","tooltips","character"]),Me=(Mt,Ut)=>{let{index:St}=Ut;return $e?gt.createElement(te.Z,{title:$e[St]},Mt):Mt},{getPrefixCls:Oe,direction:Fe,rate:le}=gt.useContext(qt.E_),Tt=Oe("rate",ge),[bt,_t]=me(Tt),Yt=Object.assign(Object.assign({},le==null?void 0:le.style),Ne);return bt(gt.createElement(Ft,Object.assign({ref:ue,character:Re,characterRender:Me},tn,{className:Ct()(he,De,_t,le==null?void 0:le.className),style:Yt,prefixCls:Tt,direction:Fe})))})},57809:function(Tn,Cn,Kt){"use strict";var zt=Kt(92310),gt=Kt.n(zt),Xt=Kt(77861),Qt=Kt(2738),kt=Kt(59301),Bt=Kt(53487),xt=Kt(62892),Ot=Kt(19080),Rt=Kt(36355),Ct=Kt(1684),Lt=Kt(93891),At=Kt(19716),It=Kt(32441),mt=Kt(33234),et=Kt(14154),tt=Kt(58582),st=Kt(84443),rt=Kt(66339),ut=function(Dt,Zt){var Ft={};for(var qt in Dt)Object.prototype.hasOwnProperty.call(Dt,qt)&&Zt.indexOf(qt)<0&&(Ft[qt]=Dt[qt]);if(Dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var te=0,qt=Object.getOwnPropertySymbols(Dt);te<qt.length;te++)Zt.indexOf(qt[te])<0&&Object.prototype.propertyIsEnumerable.call(Dt,qt[te])&&(Ft[qt[te]]=Dt[qt[te]]);return Ft};const ct="SECRET_COMBOBOX_MODE_DO_NOT_USE",ft=(Dt,Zt)=>{var Ft,{prefixCls:qt,bordered:te=!0,className:Gt,rootClassName:ce,getPopupContainer:ae,popupClassName:xe,dropdownClassName:ye,listHeight:Te=256,placement:me,listItemHeight:He=24,size:fe,disabled:$t,notFoundContent:ie,status:ue,builtinPlacements:ge,dropdownMatchSelectWidth:he,popupMatchSelectWidth:De,direction:Ne,style:$e,allowClear:Re}=Dt,tn=ut(Dt,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:Me,getPrefixCls:Oe,renderEmpty:Fe,direction:le,virtual:Tt,popupMatchSelectWidth:bt,popupOverflow:_t,select:Yt}=kt.useContext(Rt.E_),Mt=Oe("select",qt),Ut=Oe(),St=Ne!=null?Ne:le,{compactSize:wt,compactItemClassnames:jt}=(0,mt.ri)(Mt,St),[Wt,Vt]=(0,et.Z)(Mt),oe=kt.useMemo(()=>{const{mode:ui}=tn;if(ui!=="combobox")return ui===ct?"combobox":ui},[tn.mode]),de=oe==="multiple"||oe==="tags",Ge=(0,st.Z)(tn.suffixIcon,tn.showArrow),Ye=(Ft=De!=null?De:he)!==null&&Ft!==void 0?Ft:bt,{status:Ue,hasFeedback:an,isFormItemInput:vn,feedbackIcon:ke}=kt.useContext(It.aM),Ze=(0,Ot.F)(Ue,ue);let hn;ie!==void 0?hn=ie:oe==="combobox"?hn=null:hn=(Fe==null?void 0:Fe("Select"))||kt.createElement(Lt.Z,{componentName:"Select"});const{suffixIcon:Pn,itemIcon:In,removeIcon:Bn,clearIcon:Zn}=(0,rt.Z)(Object.assign(Object.assign({},tn),{multiple:de,hasFeedback:an,feedbackIcon:ke,showSuffixIcon:Ge,prefixCls:Mt,showArrow:tn.showArrow,componentName:"Select"})),Gn=Re===!0?{clearIcon:Zn}:Re,ci=(0,Qt.Z)(tn,["suffixIcon","itemIcon"]),pi=gt()(xe||ye,{[`${Mt}-dropdown-${St}`]:St==="rtl"},ce,Vt),xi=(0,At.Z)(ui=>{var ne;return(ne=fe!=null?fe:wt)!==null&&ne!==void 0?ne:ui}),Ci=kt.useContext(Ct.Z),Gi=$t!=null?$t:Ci,qi=gt()({[`${Mt}-lg`]:xi==="large",[`${Mt}-sm`]:xi==="small",[`${Mt}-rtl`]:St==="rtl",[`${Mt}-borderless`]:!te,[`${Mt}-in-form-item`]:vn},(0,Ot.Z)(Mt,Ze,an),jt,Yt==null?void 0:Yt.className,Gt,ce,Vt),bi=kt.useMemo(()=>me!==void 0?me:St==="rtl"?"bottomRight":"bottomLeft",[me,St]),Yi=(0,tt.Z)(ge,_t);return Wt(kt.createElement(Xt.ZP,Object.assign({ref:Zt,virtual:Tt,showSearch:Yt==null?void 0:Yt.showSearch},ci,{style:Object.assign(Object.assign({},Yt==null?void 0:Yt.style),$e),dropdownMatchSelectWidth:Ye,builtinPlacements:Yi,transitionName:(0,xt.m)(Ut,"slide-up",tn.transitionName),listHeight:Te,listItemHeight:He,mode:oe,prefixCls:Mt,placement:bi,direction:St,suffixIcon:Pn,menuItemSelectedIcon:In,removeIcon:Bn,allowClear:Gn,notFoundContent:hn,className:qi,getPopupContainer:ae||Me,dropdownClassName:pi,disabled:Gi})))},pt=kt.forwardRef(ft),Pt=(0,Bt.Z)(pt);pt.SECRET_COMBOBOX_MODE_DO_NOT_USE=ct,pt.Option=Xt.Wx,pt.OptGroup=Xt.Xo,pt._InternalPanelDoNotUseOrYouWillBeFired=Pt,Cn.default=pt},14154:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return pt}});var zt=Kt(17313),gt=Kt(74207),Xt=Kt(37613),Qt=Kt(83116),kt=Kt(13826),Bt=Kt(92899);const xt=Pt=>{const{optionHeight:Dt,optionFontSize:Zt,optionLineHeight:Ft,optionPadding:qt}=Pt;return{position:"relative",display:"block",minHeight:Dt,padding:qt,color:Pt.colorText,fontWeight:"normal",fontSize:Zt,lineHeight:Ft,boxSizing:"border-box"}};var Rt=Pt=>{const{antCls:Dt,componentCls:Zt}=Pt,Ft=`${Zt}-item`,qt=`&${Dt}-slide-up-enter${Dt}-slide-up-enter-active`,te=`&${Dt}-slide-up-appear${Dt}-slide-up-appear-active`,Gt=`&${Dt}-slide-up-leave${Dt}-slide-up-leave-active`,ce=`${Zt}-dropdown-placement-`;return[{[`${Zt}-dropdown`]:Object.assign(Object.assign({},(0,zt.Wf)(Pt)),{position:"absolute",top:-9999,zIndex:Pt.zIndexPopup,boxSizing:"border-box",padding:Pt.paddingXXS,overflow:"hidden",fontSize:Pt.fontSize,fontVariant:"initial",backgroundColor:Pt.colorBgElevated,borderRadius:Pt.borderRadiusLG,outline:"none",boxShadow:Pt.boxShadowSecondary,[`
|
|
|
${qt}${ce}bottomLeft,
|
|
|
${te}${ce}bottomLeft
|
|
|
`]:{animationName:kt.fJ},[`
|
|
|
${qt}${ce}topLeft,
|
|
|
${te}${ce}topLeft,
|
|
|
${qt}${ce}topRight,
|
|
|
${te}${ce}topRight
|
|
|
`]:{animationName:kt.Qt},[`${Gt}${ce}bottomLeft`]:{animationName:kt.Uw},[`
|
|
|
${Gt}${ce}topLeft,
|
|
|
${Gt}${ce}topRight
|
|
|
`]:{animationName:kt.ly},"&-hidden":{display:"none"},[`${Ft}`]:Object.assign(Object.assign({},xt(Pt)),{cursor:"pointer",transition:`background ${Pt.motionDurationSlow} ease`,borderRadius:Pt.borderRadiusSM,"&-group":{color:Pt.colorTextDescription,fontSize:Pt.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},zt.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Ft}-option-disabled)`]:{backgroundColor:Pt.optionActiveBg},[`&-selected:not(${Ft}-option-disabled)`]:{color:Pt.optionSelectedColor,fontWeight:Pt.optionSelectedFontWeight,backgroundColor:Pt.optionSelectedBg,[`${Ft}-option-state`]:{color:Pt.colorPrimary}},"&-disabled":{[`&${Ft}-option-selected`]:{backgroundColor:Pt.colorBgContainerDisabled},color:Pt.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Pt.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,kt.oN)(Pt,"slide-up"),(0,kt.oN)(Pt,"slide-down"),(0,Bt.Fm)(Pt,"move-up"),(0,Bt.Fm)(Pt,"move-down")]};const Ct=2,Lt=Pt=>{let{controlHeightSM:Dt,controlHeight:Zt,lineWidth:Ft}=Pt;const qt=(Zt-Dt)/2-Ft,te=Math.ceil(qt/2);return[qt,te]};function At(Pt,Dt){const{componentCls:Zt,iconCls:Ft}=Pt,qt=`${Zt}-selection-overflow`,te=Pt.multipleSelectItemHeight,[Gt]=Lt(Pt),ce=Dt?`${Zt}-${Dt}`:"";return{[`${Zt}-multiple${ce}`]:{fontSize:Pt.fontSize,[qt]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Zt}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Gt-Ct}px ${Ct*2}px`,borderRadius:Pt.borderRadius,[`${Zt}-show-search&`]:{cursor:"text"},[`${Zt}-disabled&`]:{background:Pt.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Ct}px 0`,lineHeight:`${te}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${Zt}-show-arrow ${Zt}-selector,
|
|
|
&${Zt}-allow-clear ${Zt}-selector
|
|
|
`]:{paddingInlineEnd:Pt.fontSizeIcon+Pt.controlPaddingHorizontal},[`${Zt}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:te,marginTop:Ct,marginBottom:Ct,lineHeight:`${te-Pt.lineWidth*2}px`,background:Pt.multipleItemBg,border:`${Pt.lineWidth}px ${Pt.lineType} ${Pt.multipleItemBorderColor}`,borderRadius:Pt.borderRadiusSM,cursor:"default",transition:`font-size ${Pt.motionDurationSlow}, line-height ${Pt.motionDurationSlow}, height ${Pt.motionDurationSlow}`,userSelect:"none",marginInlineEnd:Ct*2,paddingInlineStart:Pt.paddingXS,paddingInlineEnd:Pt.paddingXS/2,[`${Zt}-disabled&`]:{color:Pt.multipleItemColorDisabled,borderColor:Pt.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Pt.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,zt.Ro)()),{display:"inline-flex",alignItems:"center",color:Pt.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Ft}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Pt.colorIconHover}})},[`${qt}-item + ${qt}-item`]:{[`${Zt}-selection-search`]:{marginInlineStart:0}},[`${Zt}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Pt.inputPaddingHorizontalBase-Gt,"\n &-input,\n &-mirror\n ":{height:te,fontFamily:Pt.fontFamily,lineHeight:`${te}px`,transition:`all ${Pt.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Zt}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Pt.inputPaddingHorizontalBase,insetInlineEnd:Pt.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Pt.motionDurationSlow}`}}}}var mt=Pt=>{const{componentCls:Dt}=Pt,Zt=(0,Xt.TS)(Pt,{controlHeight:Pt.controlHeightSM,multipleSelectItemHeight:Pt.controlHeightXS,borderRadius:Pt.borderRadiusSM,borderRadiusSM:Pt.borderRadiusXS}),Ft=(0,Xt.TS)(Pt,{fontSize:Pt.fontSizeLG,controlHeight:Pt.controlHeightLG,multipleSelectItemHeight:Pt.multipleItemHeightLG,borderRadius:Pt.borderRadiusLG,borderRadiusSM:Pt.borderRadius}),[,qt]=Lt(Pt);return[At(Pt),At(Zt,"sm"),{[`${Dt}-multiple${Dt}-sm`]:{[`${Dt}-selection-placeholder`]:{insetInline:Pt.controlPaddingHorizontalSM-Pt.lineWidth},[`${Dt}-selection-search`]:{marginInlineStart:qt}}},At(Ft,"lg")]};function et(Pt,Dt){const{componentCls:Zt,inputPaddingHorizontalBase:Ft,borderRadius:qt}=Pt,te=Pt.controlHeight-Pt.lineWidth*2,Gt=Math.ceil(Pt.fontSize*1.25),ce=Dt?`${Zt}-${Dt}`:"";return{[`${Zt}-single${ce}`]:{fontSize:Pt.fontSize,[`${Zt}-selector`]:Object.assign(Object.assign({},(0,zt.Wf)(Pt)),{display:"flex",borderRadius:qt,[`${Zt}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Ft,insetInlineEnd:Ft,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${Zt}-selection-item,
|
|
|
${Zt}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${te}px`,transition:`all ${Pt.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${te}px`}},[`${Zt}-selection-item`]:{position:"relative",userSelect:"none"},[`${Zt}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Zt}-selection-item:after`,`${Zt}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Zt}-show-arrow ${Zt}-selection-item,
|
|
|
&${Zt}-show-arrow ${Zt}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Gt},[`&${Zt}-open ${Zt}-selection-item`]:{color:Pt.colorTextPlaceholder},[`&:not(${Zt}-customize-input)`]:{[`${Zt}-selector`]:{width:"100%",height:Pt.controlHeight,padding:`0 ${Ft}px`,[`${Zt}-selection-search-input`]:{height:te},"&:after":{lineHeight:`${te}px`}}},[`&${Zt}-customize-input`]:{[`${Zt}-selector`]:{"&:after":{display:"none"},[`${Zt}-selection-search`]:{position:"static",width:"100%"},[`${Zt}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Ft}px`,"&:after":{display:"none"}}}}}}}function tt(Pt){const{componentCls:Dt}=Pt,Zt=Pt.controlPaddingHorizontalSM-Pt.lineWidth;return[et(Pt),et((0,Xt.TS)(Pt,{controlHeight:Pt.controlHeightSM,borderRadius:Pt.borderRadiusSM}),"sm"),{[`${Dt}-single${Dt}-sm`]:{[`&:not(${Dt}-customize-input)`]:{[`${Dt}-selection-search`]:{insetInlineStart:Zt,insetInlineEnd:Zt},[`${Dt}-selector`]:{padding:`0 ${Zt}px`},[`&${Dt}-show-arrow ${Dt}-selection-search`]:{insetInlineEnd:Zt+Pt.fontSize*1.5},[`
|
|
|
&${Dt}-show-arrow ${Dt}-selection-item,
|
|
|
&${Dt}-show-arrow ${Dt}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Pt.fontSize*1.5}}}},et((0,Xt.TS)(Pt,{controlHeight:Pt.singleItemHeightLG,fontSize:Pt.fontSizeLG,borderRadius:Pt.borderRadiusLG}),"lg")]}const st=Pt=>{const{componentCls:Dt,selectorBg:Zt}=Pt;return{position:"relative",backgroundColor:Zt,border:`${Pt.lineWidth}px ${Pt.lineType} ${Pt.colorBorder}`,transition:`all ${Pt.motionDurationMid} ${Pt.motionEaseInOut}`,input:{cursor:"pointer"},[`${Dt}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Dt}-disabled&`]:{color:Pt.colorTextDisabled,background:Pt.colorBgContainerDisabled,cursor:"not-allowed",[`${Dt}-multiple&`]:{background:Pt.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},rt=function(Pt,Dt){let Zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Ft,borderHoverColor:qt,outlineColor:te,antCls:Gt}=Dt,ce=Zt?{[`${Ft}-selector`]:{borderColor:qt}}:{};return{[Pt]:{[`&:not(${Ft}-disabled):not(${Ft}-customize-input):not(${Gt}-pagination-size-changer)`]:Object.assign(Object.assign({},ce),{[`${Ft}-focused& ${Ft}-selector`]:{borderColor:qt,boxShadow:`0 0 0 ${Dt.controlOutlineWidth}px ${te}`,outline:0},[`&:hover ${Ft}-selector`]:{borderColor:qt}})}}},ut=Pt=>{const{componentCls:Dt}=Pt;return{[`${Dt}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},ct=Pt=>{const{componentCls:Dt,inputPaddingHorizontalBase:Zt,iconCls:Ft}=Pt;return{[Dt]:Object.assign(Object.assign({},(0,zt.Wf)(Pt)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Dt}-customize-input) ${Dt}-selector`]:Object.assign(Object.assign({},st(Pt)),ut(Pt)),[`${Dt}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},zt.vS),[`${Dt}-selection-placeholder`]:Object.assign(Object.assign({},zt.vS),{flex:1,color:Pt.colorTextPlaceholder,pointerEvents:"none"}),[`${Dt}-arrow`]:Object.assign(Object.assign({},(0,zt.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Zt,height:Pt.fontSizeIcon,marginTop:-Pt.fontSizeIcon/2,color:Pt.colorTextQuaternary,fontSize:Pt.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Ft]:{verticalAlign:"top",transition:`transform ${Pt.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Dt}-suffix)`]:{pointerEvents:"auto"}},[`${Dt}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Dt}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Zt,zIndex:1,display:"inline-block",width:Pt.fontSizeIcon,height:Pt.fontSizeIcon,marginTop:-Pt.fontSizeIcon/2,color:Pt.colorTextQuaternary,fontSize:Pt.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Pt.clearBg,cursor:"pointer",opacity:0,transition:`color ${Pt.motionDurationMid} ease, opacity ${Pt.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Pt.colorTextTertiary}},"&:hover":{[`${Dt}-clear`]:{opacity:1}}}),[`${Dt}-has-feedback`]:{[`${Dt}-clear`]:{insetInlineEnd:Zt+Pt.fontSize+Pt.paddingXS}}}},ft=Pt=>{const{componentCls:Dt}=Pt;return[{[Dt]:{[`&-borderless ${Dt}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Dt}-in-form-item`]:{width:"100%"}}},ct(Pt),tt(Pt),mt(Pt),Rt(Pt),{[`${Dt}-rtl`]:{direction:"rtl"}},rt(Dt,(0,Xt.TS)(Pt,{borderHoverColor:Pt.colorPrimaryHover,outlineColor:Pt.controlOutline})),rt(`${Dt}-status-error`,(0,Xt.TS)(Pt,{borderHoverColor:Pt.colorErrorHover,outlineColor:Pt.colorErrorOutline}),!0),rt(`${Dt}-status-warning`,(0,Xt.TS)(Pt,{borderHoverColor:Pt.colorWarningHover,outlineColor:Pt.colorWarningOutline}),!0),(0,gt.c)(Pt,{borderElCls:`${Dt}-selector`,focusElCls:`${Dt}-focused`})]};var pt=(0,Qt.Z)("Select",(Pt,Dt)=>{let{rootPrefixCls:Zt}=Dt;const Ft=(0,Xt.TS)(Pt,{rootPrefixCls:Zt,inputPaddingHorizontalBase:Pt.paddingSM-1,multipleSelectItemHeight:Pt.multipleItemHeight});return[ft(Ft)]},Pt=>{const{fontSize:Dt,lineHeight:Zt,controlHeight:Ft,controlPaddingHorizontal:qt,zIndexPopupBase:te,colorText:Gt,fontWeightStrong:ce,controlItemBgActive:ae,controlItemBgHover:xe,colorBgContainer:ye,colorFillSecondary:Te,controlHeightLG:me,controlHeightSM:He,colorBgContainerDisabled:fe,colorTextDisabled:$t}=Pt;return{zIndexPopup:te+50,optionSelectedColor:Gt,optionSelectedFontWeight:ce,optionSelectedBg:ae,optionActiveBg:xe,optionPadding:`${(Ft-Dt*Zt)/2}px ${qt}px`,optionFontSize:Dt,optionLineHeight:Zt,optionHeight:Ft,selectorBg:ye,clearBg:ye,singleItemHeightLG:me,multipleItemBg:Te,multipleItemBorderColor:"transparent",multipleItemHeight:He,multipleItemHeightLG:Ft,multipleSelectorBgDisabled:fe,multipleItemColorDisabled:$t,multipleItemBorderColorDisabled:"transparent"}})},58582:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return gt}});const zt=Xt=>{const kt={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Xt==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},kt),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},kt),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},kt),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},kt),{points:["br","tr"],offset:[0,-4]})}};function gt(Xt,Qt){return Xt||zt(Qt)}},84443:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return zt}});function zt(gt,Xt){return Xt!==void 0?Xt:gt!==null}},66339:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return Ot}});var zt=Kt(40001),gt=Kt(19248),Xt=Kt(99267),Qt=Kt(84105),kt=Kt(58617),Bt=Kt(47472),xt=Kt(59301);function Ot(Rt){let{suffixIcon:Ct,clearIcon:Lt,menuItemSelectedIcon:At,removeIcon:It,loading:mt,multiple:et,hasFeedback:tt,prefixCls:st,showSuffixIcon:rt,feedbackIcon:ut,showArrow:ct,componentName:ft}=Rt;const pt=Lt!=null?Lt:xt.createElement(gt.Z,null),Pt=qt=>Ct===null&&!tt&&!ct?null:xt.createElement(xt.Fragment,null,rt!==!1&&qt,tt&&ut);let Dt=null;if(Ct!==void 0)Dt=Pt(Ct);else if(mt)Dt=Pt(xt.createElement(kt.Z,{spin:!0}));else{const qt=`${st}-suffix`;Dt=te=>{let{open:Gt,showSearch:ce}=te;return Pt(Gt&&ce?xt.createElement(Bt.Z,{className:qt}):xt.createElement(Qt.Z,{className:qt}))}}let Zt=null;At!==void 0?Zt=At:et?Zt=xt.createElement(zt.Z,null):Zt=null;let Ft=null;return It!==void 0?Ft=It:Ft=xt.createElement(Xt.Z,null),{clearIcon:pt,suffixIcon:Dt,itemIcon:Zt,removeIcon:Ft}}},61621:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return _t}});var zt=Kt(92310),gt=Kt.n(zt),Xt=Kt(59301),Qt=Kt(36355),kt=Kt(2738),xt=Yt=>{const{prefixCls:Mt,className:Ut,style:St,size:wt,shape:jt}=Yt,Wt=gt()({[`${Mt}-lg`]:wt==="large",[`${Mt}-sm`]:wt==="small"}),Vt=gt()({[`${Mt}-circle`]:jt==="circle",[`${Mt}-square`]:jt==="square",[`${Mt}-round`]:jt==="round"}),oe=Xt.useMemo(()=>typeof wt=="number"?{width:wt,height:wt,lineHeight:`${wt}px`}:{},[wt]);return Xt.createElement("span",{className:gt()(Mt,Wt,Vt,Ut),style:Object.assign(Object.assign({},oe),St)})},Ot=Kt(93083),Rt=Kt(83116),Ct=Kt(37613);const Lt=new Ot.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),At=Yt=>({height:Yt,lineHeight:`${Yt}px`}),It=Yt=>Object.assign({width:Yt},At(Yt)),mt=Yt=>({background:Yt.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:Lt,animationDuration:Yt.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),et=Yt=>Object.assign({width:Yt*5,minWidth:Yt*5},At(Yt)),tt=Yt=>{const{skeletonAvatarCls:Mt,gradientFromColor:Ut,controlHeight:St,controlHeightLG:wt,controlHeightSM:jt}=Yt;return{[`${Mt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ut},It(St)),[`${Mt}${Mt}-circle`]:{borderRadius:"50%"},[`${Mt}${Mt}-lg`]:Object.assign({},It(wt)),[`${Mt}${Mt}-sm`]:Object.assign({},It(jt))}},st=Yt=>{const{controlHeight:Mt,borderRadiusSM:Ut,skeletonInputCls:St,controlHeightLG:wt,controlHeightSM:jt,gradientFromColor:Wt}=Yt;return{[`${St}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Wt,borderRadius:Ut},et(Mt)),[`${St}-lg`]:Object.assign({},et(wt)),[`${St}-sm`]:Object.assign({},et(jt))}},rt=Yt=>Object.assign({width:Yt},At(Yt)),ut=Yt=>{const{skeletonImageCls:Mt,imageSizeBase:Ut,gradientFromColor:St,borderRadiusSM:wt}=Yt;return{[`${Mt}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:St,borderRadius:wt},rt(Ut*2)),{[`${Mt}-path`]:{fill:"#bfbfbf"},[`${Mt}-svg`]:Object.assign(Object.assign({},rt(Ut)),{maxWidth:Ut*4,maxHeight:Ut*4}),[`${Mt}-svg${Mt}-svg-circle`]:{borderRadius:"50%"}}),[`${Mt}${Mt}-circle`]:{borderRadius:"50%"}}},ct=(Yt,Mt,Ut)=>{const{skeletonButtonCls:St}=Yt;return{[`${Ut}${St}-circle`]:{width:Mt,minWidth:Mt,borderRadius:"50%"},[`${Ut}${St}-round`]:{borderRadius:Mt}}},ft=Yt=>Object.assign({width:Yt*2,minWidth:Yt*2},At(Yt)),pt=Yt=>{const{borderRadiusSM:Mt,skeletonButtonCls:Ut,controlHeight:St,controlHeightLG:wt,controlHeightSM:jt,gradientFromColor:Wt}=Yt;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Ut}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Wt,borderRadius:Mt,width:St*2,minWidth:St*2},ft(St))},ct(Yt,St,Ut)),{[`${Ut}-lg`]:Object.assign({},ft(wt))}),ct(Yt,wt,`${Ut}-lg`)),{[`${Ut}-sm`]:Object.assign({},ft(jt))}),ct(Yt,jt,`${Ut}-sm`))},Pt=Yt=>{const{componentCls:Mt,skeletonAvatarCls:Ut,skeletonTitleCls:St,skeletonParagraphCls:wt,skeletonButtonCls:jt,skeletonInputCls:Wt,skeletonImageCls:Vt,controlHeight:oe,controlHeightLG:de,controlHeightSM:Ge,gradientFromColor:Ye,padding:Ue,marginSM:an,borderRadius:vn,titleHeight:ke,blockRadius:Ze,paragraphLiHeight:hn,controlHeightXS:Pn,paragraphMarginTop:In}=Yt;return{[`${Mt}`]:{display:"table",width:"100%",[`${Mt}-header`]:{display:"table-cell",paddingInlineEnd:Ue,verticalAlign:"top",[`${Ut}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Ye},It(oe)),[`${Ut}-circle`]:{borderRadius:"50%"},[`${Ut}-lg`]:Object.assign({},It(de)),[`${Ut}-sm`]:Object.assign({},It(Ge))},[`${Mt}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${St}`]:{width:"100%",height:ke,background:Ye,borderRadius:Ze,[`+ ${wt}`]:{marginBlockStart:Ge}},[`${wt}`]:{padding:0,"> li":{width:"100%",height:hn,listStyle:"none",background:Ye,borderRadius:Ze,"+ li":{marginBlockStart:Pn}}},[`${wt}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${Mt}-content`]:{[`${St}, ${wt} > li`]:{borderRadius:vn}}},[`${Mt}-with-avatar ${Mt}-content`]:{[`${St}`]:{marginBlockStart:an,[`+ ${wt}`]:{marginBlockStart:In}}},[`${Mt}${Mt}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},pt(Yt)),tt(Yt)),st(Yt)),ut(Yt)),[`${Mt}${Mt}-block`]:{width:"100%",[`${jt}`]:{width:"100%"},[`${Wt}`]:{width:"100%"}},[`${Mt}${Mt}-active`]:{[`
|
|
|
${St},
|
|
|
${wt} > li,
|
|
|
${Ut},
|
|
|
${jt},
|
|
|
${Wt},
|
|
|
${Vt}
|
|
|
`]:Object.assign({},mt(Yt))}}};var Dt=(0,Rt.Z)("Skeleton",Yt=>{const{componentCls:Mt}=Yt,Ut=(0,Ct.TS)(Yt,{skeletonAvatarCls:`${Mt}-avatar`,skeletonTitleCls:`${Mt}-title`,skeletonParagraphCls:`${Mt}-paragraph`,skeletonButtonCls:`${Mt}-button`,skeletonInputCls:`${Mt}-input`,skeletonImageCls:`${Mt}-image`,imageSizeBase:Yt.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${Yt.gradientFromColor} 25%, ${Yt.gradientToColor} 37%, ${Yt.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Pt(Ut)]},Yt=>{const{colorFillContent:Mt,colorFill:Ut}=Yt,St=Mt,wt=Ut;return{color:St,colorGradientEnd:wt,gradientFromColor:St,gradientToColor:wt,titleHeight:Yt.controlHeight/2,blockRadius:Yt.borderRadiusSM,paragraphMarginTop:Yt.marginLG+Yt.marginXXS,paragraphLiHeight:Yt.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Ft=Yt=>{const{prefixCls:Mt,className:Ut,rootClassName:St,active:wt,shape:jt="circle",size:Wt="default"}=Yt,{getPrefixCls:Vt}=Xt.useContext(Qt.E_),oe=Vt("skeleton",Mt),[de,Ge]=Dt(oe),Ye=(0,kt.Z)(Yt,["prefixCls","className"]),Ue=gt()(oe,`${oe}-element`,{[`${oe}-active`]:wt},Ut,St,Ge);return de(Xt.createElement("div",{className:Ue},Xt.createElement(xt,Object.assign({prefixCls:`${oe}-avatar`,shape:jt,size:Wt},Ye))))},te=Yt=>{const{prefixCls:Mt,className:Ut,rootClassName:St,active:wt,block:jt=!1,size:Wt="default"}=Yt,{getPrefixCls:Vt}=Xt.useContext(Qt.E_),oe=Vt("skeleton",Mt),[de,Ge]=Dt(oe),Ye=(0,kt.Z)(Yt,["prefixCls"]),Ue=gt()(oe,`${oe}-element`,{[`${oe}-active`]:wt,[`${oe}-block`]:jt},Ut,St,Ge);return de(Xt.createElement("div",{className:Ue},Xt.createElement(xt,Object.assign({prefixCls:`${oe}-button`,size:Wt},Ye))))};const Gt="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var ae=Yt=>{const{prefixCls:Mt,className:Ut,rootClassName:St,style:wt,active:jt}=Yt,{getPrefixCls:Wt}=Xt.useContext(Qt.E_),Vt=Wt("skeleton",Mt),[oe,de]=Dt(Vt),Ge=gt()(Vt,`${Vt}-element`,{[`${Vt}-active`]:jt},Ut,St,de);return oe(Xt.createElement("div",{className:Ge},Xt.createElement("div",{className:gt()(`${Vt}-image`,Ut),style:wt},Xt.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${Vt}-image-svg`},Xt.createElement("path",{d:Gt,className:`${Vt}-image-path`})))))},ye=Yt=>{const{prefixCls:Mt,className:Ut,rootClassName:St,active:wt,block:jt,size:Wt="default"}=Yt,{getPrefixCls:Vt}=Xt.useContext(Qt.E_),oe=Vt("skeleton",Mt),[de,Ge]=Dt(oe),Ye=(0,kt.Z)(Yt,["prefixCls"]),Ue=gt()(oe,`${oe}-element`,{[`${oe}-active`]:wt,[`${oe}-block`]:jt},Ut,St,Ge);return de(Xt.createElement("div",{className:Ue},Xt.createElement(xt,Object.assign({prefixCls:`${oe}-input`,size:Wt},Ye))))},Te=Kt(92413),me={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},He=me,fe=Kt(7657),$t=function(Mt,Ut){return Xt.createElement(fe.Z,(0,Te.Z)({},Mt,{ref:Ut,icon:He}))},ie=Xt.forwardRef($t),ue=ie,he=Yt=>{const{prefixCls:Mt,className:Ut,rootClassName:St,style:wt,active:jt,children:Wt}=Yt,{getPrefixCls:Vt}=Xt.useContext(Qt.E_),oe=Vt("skeleton",Mt),[de,Ge]=Dt(oe),Ye=gt()(oe,`${oe}-element`,{[`${oe}-active`]:jt},Ge,Ut,St),Ue=Wt!=null?Wt:Xt.createElement(ue,null);return de(Xt.createElement("div",{className:Ye},Xt.createElement("div",{className:gt()(`${oe}-image`,Ut),style:wt},Ue)))},De=Kt(26407),$e=Yt=>{const Mt=Vt=>{const{width:oe,rows:de=2}=Yt;if(Array.isArray(oe))return oe[Vt];if(de-1===Vt)return oe},{prefixCls:Ut,className:St,style:wt,rows:jt}=Yt,Wt=(0,De.Z)(Array(jt)).map((Vt,oe)=>Xt.createElement("li",{key:oe,style:{width:Mt(oe)}}));return Xt.createElement("ul",{className:gt()(Ut,St),style:wt},Wt)},tn=Yt=>{let{prefixCls:Mt,className:Ut,width:St,style:wt}=Yt;return Xt.createElement("h3",{className:gt()(Mt,Ut),style:Object.assign({width:St},wt)})};function Me(Yt){return Yt&&typeof Yt=="object"?Yt:{}}function Oe(Yt,Mt){return Yt&&!Mt?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function Fe(Yt,Mt){return!Yt&&Mt?{width:"38%"}:Yt&&Mt?{width:"50%"}:{}}function le(Yt,Mt){const Ut={};return(!Yt||!Mt)&&(Ut.width="61%"),!Yt&&Mt?Ut.rows=3:Ut.rows=2,Ut}const Tt=Yt=>{const{prefixCls:Mt,loading:Ut,className:St,rootClassName:wt,style:jt,children:Wt,avatar:Vt=!1,title:oe=!0,paragraph:de=!0,active:Ge,round:Ye}=Yt,{getPrefixCls:Ue,direction:an,skeleton:vn}=Xt.useContext(Qt.E_),ke=Ue("skeleton",Mt),[Ze,hn]=Dt(ke);if(Ut||!("loading"in Yt)){const Pn=!!Vt,In=!!oe,Bn=!!de;let Zn;if(Pn){const pi=Object.assign(Object.assign({prefixCls:`${ke}-avatar`},Oe(In,Bn)),Me(Vt));Zn=Xt.createElement("div",{className:`${ke}-header`},Xt.createElement(xt,Object.assign({},pi)))}let Gn;if(In||Bn){let pi;if(In){const Ci=Object.assign(Object.assign({prefixCls:`${ke}-title`},Fe(Pn,Bn)),Me(oe));pi=Xt.createElement(tn,Object.assign({},Ci))}let xi;if(Bn){const Ci=Object.assign(Object.assign({prefixCls:`${ke}-paragraph`},le(Pn,In)),Me(de));xi=Xt.createElement($e,Object.assign({},Ci))}Gn=Xt.createElement("div",{className:`${ke}-content`},pi,xi)}const ci=gt()(ke,{[`${ke}-with-avatar`]:Pn,[`${ke}-active`]:Ge,[`${ke}-rtl`]:an==="rtl",[`${ke}-round`]:Ye},vn==null?void 0:vn.className,St,wt,hn);return Ze(Xt.createElement("div",{className:ci,style:Object.assign(Object.assign({},vn==null?void 0:vn.style),jt)},Zn,Gn))}return typeof Wt!="undefined"?Wt:null};Tt.Button=te,Tt.Avatar=Ft,Tt.Input=ye,Tt.Image=ae,Tt.Node=he;var bt=Tt,_t=bt},81327:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return st}});var zt=Kt(59301),gt=Kt(92310),Xt=Kt.n(gt),Qt=Kt(11592),kt=Kt(36355),Bt=Kt(33234);const xt=zt.createContext({latestIndex:0}),Ot=xt.Provider;var Ct=rt=>{let{className:ut,index:ct,children:ft,split:pt,style:Pt}=rt;const{latestIndex:Dt}=zt.useContext(xt);return ft==null?null:zt.createElement(zt.Fragment,null,zt.createElement("div",{className:ut,style:Pt},ft),ct<Dt&&pt&&zt.createElement("span",{className:`${ut}-split`},pt))},Lt=Kt(2856);function At(rt){return["small","middle","large"].includes(rt)}function It(rt){return rt?typeof rt=="number"&&!Number.isNaN(rt):!1}var mt=function(rt,ut){var ct={};for(var ft in rt)Object.prototype.hasOwnProperty.call(rt,ft)&&ut.indexOf(ft)<0&&(ct[ft]=rt[ft]);if(rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,ft=Object.getOwnPropertySymbols(rt);pt<ft.length;pt++)ut.indexOf(ft[pt])<0&&Object.prototype.propertyIsEnumerable.call(rt,ft[pt])&&(ct[ft[pt]]=rt[ft[pt]]);return ct};const tt=zt.forwardRef((rt,ut)=>{var ct,ft;const{getPrefixCls:pt,space:Pt,direction:Dt}=zt.useContext(kt.E_),{size:Zt=(Pt==null?void 0:Pt.size)||"small",align:Ft,className:qt,rootClassName:te,children:Gt,direction:ce="horizontal",prefixCls:ae,split:xe,style:ye,wrap:Te=!1,classNames:me,styles:He}=rt,fe=mt(rt,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[$t,ie]=Array.isArray(Zt)?Zt:[Zt,Zt],ue=At(ie),ge=At($t),he=It(ie),De=It($t),Ne=(0,Qt.Z)(Gt,{keepEmpty:!0}),$e=Ft===void 0&&ce==="horizontal"?"center":Ft,Re=pt("space",ae),[tn,Me]=(0,Lt.Z)(Re),Oe=Xt()(Re,Pt==null?void 0:Pt.className,Me,`${Re}-${ce}`,{[`${Re}-rtl`]:Dt==="rtl",[`${Re}-align-${$e}`]:$e,[`${Re}-gap-row-${ie}`]:ue,[`${Re}-gap-col-${$t}`]:ge},qt,te),Fe=Xt()(`${Re}-item`,(ct=me==null?void 0:me.item)!==null&&ct!==void 0?ct:(ft=Pt==null?void 0:Pt.classNames)===null||ft===void 0?void 0:ft.item);let le=0;const Tt=Ne.map((Yt,Mt)=>{var Ut,St;Yt!=null&&(le=Mt);const wt=Yt&&Yt.key||`${Fe}-${Mt}`;return zt.createElement(Ct,{className:Fe,key:wt,index:Mt,split:xe,style:(Ut=He==null?void 0:He.item)!==null&&Ut!==void 0?Ut:(St=Pt==null?void 0:Pt.styles)===null||St===void 0?void 0:St.item},Yt)}),bt=zt.useMemo(()=>({latestIndex:le}),[le]);if(Ne.length===0)return null;const _t={};return Te&&(_t.flexWrap="wrap"),!ge&&De&&(_t.columnGap=$t),!ue&&he&&(_t.rowGap=ie),tn(zt.createElement("div",Object.assign({ref:ut,className:Oe,style:Object.assign(Object.assign(Object.assign({},_t),Pt==null?void 0:Pt.style),ye)},fe),zt.createElement(Ot,{value:bt},Tt)))});tt.Compact=Bt.ZP;var st=tt},31797:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{default:function(){return Dt}});var zt=Kt(59301),gt=Kt(56762),Xt=Kt(92343),Qt=Kt(92310),kt=Kt.n(Qt),Bt=Kt(36355),xt=Kt(61621),Rt=Zt=>{const{value:Ft,formatter:qt,precision:te,decimalSeparator:Gt,groupSeparator:ce="",prefixCls:ae}=Zt;let xe;if(typeof qt=="function")xe=qt(Ft);else{const ye=String(Ft),Te=ye.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Te||ye==="-")xe=ye;else{const me=Te[1];let He=Te[2]||"0",fe=Te[4]||"";He=He.replace(/\B(?=(\d{3})+(?!\d))/g,ce),typeof te=="number"&&(fe=fe.padEnd(te,"0").slice(0,te>0?te:0)),fe&&(fe=`${Gt}${fe}`),xe=[zt.createElement("span",{key:"int",className:`${ae}-content-value-int`},me,He),fe&&zt.createElement("span",{key:"decimal",className:`${ae}-content-value-decimal`},fe)]}}return zt.createElement("span",{className:`${ae}-content-value`},xe)},Ct=Kt(17313),Lt=Kt(83116),At=Kt(37613);const It=Zt=>{const{componentCls:Ft,marginXXS:qt,padding:te,colorTextDescription:Gt,titleFontSize:ce,colorTextHeading:ae,contentFontSize:xe,fontFamily:ye}=Zt;return{[`${Ft}`]:Object.assign(Object.assign({},(0,Ct.Wf)(Zt)),{[`${Ft}-title`]:{marginBottom:qt,color:Gt,fontSize:ce},[`${Ft}-skeleton`]:{paddingTop:te},[`${Ft}-content`]:{color:ae,fontSize:xe,fontFamily:ye,[`${Ft}-content-value`]:{display:"inline-block",direction:"ltr"},[`${Ft}-content-prefix, ${Ft}-content-suffix`]:{display:"inline-block"},[`${Ft}-content-prefix`]:{marginInlineEnd:qt},[`${Ft}-content-suffix`]:{marginInlineStart:qt}}})}};var mt=(0,Lt.Z)("Statistic",Zt=>{const Ft=(0,At.TS)(Zt,{});return[It(Ft)]},Zt=>{const{fontSizeHeading3:Ft,fontSize:qt}=Zt;return{titleFontSize:qt,contentFontSize:Ft}}),tt=Zt=>{const{prefixCls:Ft,className:qt,rootClassName:te,style:Gt,valueStyle:ce,value:ae=0,title:xe,valueRender:ye,prefix:Te,suffix:me,loading:He=!1,onMouseEnter:fe,onMouseLeave:$t,decimalSeparator:ie=".",groupSeparator:ue=","}=Zt,{getPrefixCls:ge,direction:he,statistic:De}=zt.useContext(Bt.E_),Ne=ge("statistic",Ft),[$e,Re]=mt(Ne),tn=zt.createElement(Rt,Object.assign({decimalSeparator:ie,groupSeparator:ue,prefixCls:Ne},Zt,{value:ae})),Me=kt()(Ne,{[`${Ne}-rtl`]:he==="rtl"},De==null?void 0:De.className,qt,te,Re);return $e(zt.createElement("div",{className:Me,style:Object.assign(Object.assign({},De==null?void 0:De.style),Gt),onMouseEnter:fe,onMouseLeave:$t},xe&&zt.createElement("div",{className:`${Ne}-title`},xe),zt.createElement(xt.Z,{paragraph:!1,loading:He,className:`${Ne}-skeleton`},zt.createElement("div",{style:ce,className:`${Ne}-content`},Te&&zt.createElement("span",{className:`${Ne}-content-prefix`},Te),ye?ye(tn):tn,me&&zt.createElement("span",{className:`${Ne}-content-suffix`},me)))))};const st=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function rt(Zt,Ft){let qt=Zt;const te=/\[[^\]]*]/g,Gt=(Ft.match(te)||[]).map(ye=>ye.slice(1,-1)),ce=Ft.replace(te,"[]"),ae=st.reduce((ye,Te)=>{let[me,He]=Te;if(ye.includes(me)){const fe=Math.floor(qt/He);return qt-=fe*He,ye.replace(new RegExp(`${me}+`,"g"),$t=>{const ie=$t.length;return fe.toString().padStart(ie,"0")})}return ye},ce);let xe=0;return ae.replace(te,()=>{const ye=Gt[xe];return xe+=1,ye})}function ut(Zt,Ft){const{format:qt=""}=Ft,te=new Date(Zt).getTime(),Gt=Date.now(),ce=Math.max(te-Gt,0);return rt(ce,qt)}const ct=1e3/30;function ft(Zt){return new Date(Zt).getTime()}const pt=Zt=>{const{value:Ft,format:qt="HH:mm:ss",onChange:te,onFinish:Gt}=Zt,ce=(0,gt.Z)(),ae=zt.useRef(null),xe=()=>{Gt==null||Gt(),ae.current&&(clearInterval(ae.current),ae.current=null)},ye=()=>{const He=ft(Ft);He>=Date.now()&&(ae.current=setInterval(()=>{ce(),te==null||te(He-Date.now()),He<Date.now()&&xe()},ct))};zt.useEffect(()=>(ye(),()=>{ae.current&&(clearInterval(ae.current),ae.current=null)}),[Ft]);const Te=(He,fe)=>ut(He,Object.assign(Object.assign({},fe),{format:qt})),me=He=>(0,Xt.Tm)(He,{title:void 0});return zt.createElement(tt,Object.assign({},Zt,{valueRender:me,formatter:Te}))};var Pt=zt.memo(pt);tt.Countdown=Pt;var Dt=tt},78673:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return ce}});var zt=Kt(58617),gt=Kt(92310),Xt=Kt.n(gt),Qt=Kt(92413),kt=Kt(400),Bt=Kt(33606),xt=Kt(37061),Ot=Kt(59301),Rt=Kt(18929),Ct=Kt(10228),Lt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],At=Ot.forwardRef(function(ae,xe){var ye,Te=ae.prefixCls,me=Te===void 0?"rc-switch":Te,He=ae.className,fe=ae.checked,$t=ae.defaultChecked,ie=ae.disabled,ue=ae.loadingIcon,ge=ae.checkedChildren,he=ae.unCheckedChildren,De=ae.onClick,Ne=ae.onChange,$e=ae.onKeyDown,Re=(0,xt.Z)(ae,Lt),tn=(0,Rt.Z)(!1,{value:fe,defaultValue:$t}),Me=(0,Bt.Z)(tn,2),Oe=Me[0],Fe=Me[1];function le(Yt,Mt){var Ut=Oe;return ie||(Ut=Yt,Fe(Ut),Ne==null||Ne(Ut,Mt)),Ut}function Tt(Yt){Yt.which===Ct.Z.LEFT?le(!1,Yt):Yt.which===Ct.Z.RIGHT&&le(!0,Yt),$e==null||$e(Yt)}function bt(Yt){var Mt=le(!Oe,Yt);De==null||De(Mt,Yt)}var _t=Xt()(me,He,(ye={},(0,kt.Z)(ye,"".concat(me,"-checked"),Oe),(0,kt.Z)(ye,"".concat(me,"-disabled"),ie),ye));return Ot.createElement("button",(0,Qt.Z)({},Re,{type:"button",role:"switch","aria-checked":Oe,disabled:ie,className:_t,ref:xe,onKeyDown:Tt,onClick:bt}),ue,Ot.createElement("span",{className:"".concat(me,"-inner")},Ot.createElement("span",{className:"".concat(me,"-inner-checked")},ge),Ot.createElement("span",{className:"".concat(me,"-inner-unchecked")},he)))});At.displayName="Switch";var It=At,mt=Kt(14088),et=Kt(36355),tt=Kt(1684),st=Kt(19716),rt=Kt(64993),ut=Kt(17313),ct=Kt(83116),ft=Kt(37613);const pt=ae=>{const{componentCls:xe,trackHeightSM:ye,trackPadding:Te,trackMinWidthSM:me,innerMinMarginSM:He,innerMaxMarginSM:fe,handleSizeSM:$t}=ae,ie=`${xe}-inner`;return{[xe]:{[`&${xe}-small`]:{minWidth:me,height:ye,lineHeight:`${ye}px`,[`${xe}-inner`]:{paddingInlineStart:fe,paddingInlineEnd:He,[`${ie}-checked`]:{marginInlineStart:`calc(-100% + ${$t+Te*2}px - ${fe*2}px)`,marginInlineEnd:`calc(100% - ${$t+Te*2}px + ${fe*2}px)`},[`${ie}-unchecked`]:{marginTop:-ye,marginInlineStart:0,marginInlineEnd:0}},[`${xe}-handle`]:{width:$t,height:$t},[`${xe}-loading-icon`]:{top:($t-ae.switchLoadingIconSize)/2,fontSize:ae.switchLoadingIconSize},[`&${xe}-checked`]:{[`${xe}-inner`]:{paddingInlineStart:He,paddingInlineEnd:fe,[`${ie}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ie}-unchecked`]:{marginInlineStart:`calc(100% - ${$t+Te*2}px + ${fe*2}px)`,marginInlineEnd:`calc(-100% + ${$t+Te*2}px - ${fe*2}px)`}},[`${xe}-handle`]:{insetInlineStart:`calc(100% - ${$t+Te}px)`}},[`&:not(${xe}-disabled):active`]:{[`&:not(${xe}-checked) ${ie}`]:{[`${ie}-unchecked`]:{marginInlineStart:ae.marginXXS/2,marginInlineEnd:-ae.marginXXS/2}},[`&${xe}-checked ${ie}`]:{[`${ie}-checked`]:{marginInlineStart:-ae.marginXXS/2,marginInlineEnd:ae.marginXXS/2}}}}}}},Pt=ae=>{const{componentCls:xe,handleSize:ye}=ae;return{[xe]:{[`${xe}-loading-icon${ae.iconCls}`]:{position:"relative",top:(ye-ae.fontSize)/2,color:ae.switchLoadingIconColor,verticalAlign:"top"},[`&${xe}-checked ${xe}-loading-icon`]:{color:ae.switchColor}}}},Dt=ae=>{const{componentCls:xe,motion:ye,trackPadding:Te,handleBg:me,handleShadow:He,handleSize:fe}=ae,$t=`${xe}-handle`;return{[xe]:{[$t]:{position:"absolute",top:Te,insetInlineStart:Te,width:fe,height:fe,transition:`all ${ae.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:me,borderRadius:fe/2,boxShadow:He,transition:`all ${ae.switchDuration} ease-in-out`,content:'""'}},[`&${xe}-checked ${$t}`]:{insetInlineStart:`calc(100% - ${fe+Te}px)`},[`&:not(${xe}-disabled):active`]:ye?{[`${$t}::before`]:{insetInlineEnd:ae.switchHandleActiveInset,insetInlineStart:0},[`&${xe}-checked ${$t}::before`]:{insetInlineEnd:0,insetInlineStart:ae.switchHandleActiveInset}}:{}}}},Zt=ae=>{const{componentCls:xe,trackHeight:ye,trackPadding:Te,innerMinMargin:me,innerMaxMargin:He,handleSize:fe}=ae,$t=`${xe}-inner`;return{[xe]:{[$t]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:He,paddingInlineEnd:me,transition:`padding-inline-start ${ae.switchDuration} ease-in-out, padding-inline-end ${ae.switchDuration} ease-in-out`,[`${$t}-checked, ${$t}-unchecked`]:{display:"block",color:ae.colorTextLightSolid,fontSize:ae.fontSizeSM,transition:`margin-inline-start ${ae.switchDuration} ease-in-out, margin-inline-end ${ae.switchDuration} ease-in-out`,pointerEvents:"none"},[`${$t}-checked`]:{marginInlineStart:`calc(-100% + ${fe+Te*2}px - ${He*2}px)`,marginInlineEnd:`calc(100% - ${fe+Te*2}px + ${He*2}px)`},[`${$t}-unchecked`]:{marginTop:-ye,marginInlineStart:0,marginInlineEnd:0}},[`&${xe}-checked ${$t}`]:{paddingInlineStart:me,paddingInlineEnd:He,[`${$t}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${$t}-unchecked`]:{marginInlineStart:`calc(100% - ${fe+Te*2}px + ${He*2}px)`,marginInlineEnd:`calc(-100% + ${fe+Te*2}px - ${He*2}px)`}},[`&:not(${xe}-disabled):active`]:{[`&:not(${xe}-checked) ${$t}`]:{[`${$t}-unchecked`]:{marginInlineStart:Te*2,marginInlineEnd:-Te*2}},[`&${xe}-checked ${$t}`]:{[`${$t}-checked`]:{marginInlineStart:-Te*2,marginInlineEnd:Te*2}}}}}},Ft=ae=>{const{componentCls:xe,trackHeight:ye,trackMinWidth:Te}=ae;return{[xe]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ut.Wf)(ae)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Te,height:ye,lineHeight:`${ye}px`,verticalAlign:"middle",background:ae.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${ae.motionDurationMid}`,userSelect:"none",[`&:hover:not(${xe}-disabled)`]:{background:ae.colorTextTertiary}}),(0,ut.Qy)(ae)),{[`&${xe}-checked`]:{background:ae.switchColor,[`&:hover:not(${xe}-disabled)`]:{background:ae.colorPrimaryHover}},[`&${xe}-loading, &${xe}-disabled`]:{cursor:"not-allowed",opacity:ae.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${xe}-rtl`]:{direction:"rtl"}})}};var qt=(0,ct.Z)("Switch",ae=>{const xe=(0,ft.TS)(ae,{switchDuration:ae.motionDurationMid,switchColor:ae.colorPrimary,switchDisabledOpacity:ae.opacityLoading,switchLoadingIconSize:ae.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${ae.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Ft(xe),Zt(xe),Dt(xe),Pt(xe),pt(xe)]},ae=>{const{fontSize:xe,lineHeight:ye,controlHeight:Te,colorWhite:me}=ae,He=xe*ye,fe=Te/2,$t=2,ie=He-$t*2,ue=fe-$t*2;return{trackHeight:He,trackHeightSM:fe,trackMinWidth:ie*2+$t*4,trackMinWidthSM:ue*2+$t*2,trackPadding:$t,handleBg:me,handleSize:ie,handleSizeSM:ue,handleShadow:`0 2px 4px 0 ${new rt.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:ie/2,innerMaxMargin:ie+$t+$t*2,innerMinMarginSM:ue/2,innerMaxMarginSM:ue+$t+$t*2}}),te=function(ae,xe){var ye={};for(var Te in ae)Object.prototype.hasOwnProperty.call(ae,Te)&&xe.indexOf(Te)<0&&(ye[Te]=ae[Te]);if(ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,Te=Object.getOwnPropertySymbols(ae);me<Te.length;me++)xe.indexOf(Te[me])<0&&Object.prototype.propertyIsEnumerable.call(ae,Te[me])&&(ye[Te[me]]=ae[Te[me]]);return ye};const Gt=Ot.forwardRef((ae,xe)=>{const{prefixCls:ye,size:Te,disabled:me,loading:He,className:fe,rootClassName:$t,style:ie}=ae,ue=te(ae,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:ge,direction:he,switch:De}=Ot.useContext(et.E_),Ne=Ot.useContext(tt.Z),$e=(me!=null?me:Ne)||He,Re=ge("switch",ye),tn=Ot.createElement("div",{className:`${Re}-handle`},He&&Ot.createElement(zt.Z,{className:`${Re}-loading-icon`})),[Me,Oe]=qt(Re),Fe=(0,st.Z)(Te),le=Xt()(De==null?void 0:De.className,{[`${Re}-small`]:Fe==="small",[`${Re}-loading`]:He,[`${Re}-rtl`]:he==="rtl"},fe,$t,Oe),Tt=Object.assign(Object.assign({},De==null?void 0:De.style),ie);return Me(Ot.createElement(mt.Z,{component:"Switch"},Ot.createElement(It,Object.assign({},ue,{prefixCls:Re,className:le,style:Tt,disabled:$e,ref:xe,loadingIcon:tn}))))});Gt.__ANT_SWITCH=!0;var ce=Gt},12563:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{default:function(){return te}});var zt=Kt(59301),gt=Kt(99267),Xt=Kt(92310),Qt=Kt.n(Xt),kt=Kt(36785),Bt=Kt(47729),xt=Kt(14088),Ot=Kt(36355),Rt=Kt(17313),Ct=Kt(37613),Lt=Kt(83116);const At=Gt=>{const{paddingXXS:ce,lineWidth:ae,tagPaddingHorizontal:xe,componentCls:ye}=Gt,Te=xe-ae,me=ce-ae;return{[ye]:Object.assign(Object.assign({},(0,Rt.Wf)(Gt)),{display:"inline-block",height:"auto",marginInlineEnd:Gt.marginXS,paddingInline:Te,fontSize:Gt.tagFontSize,lineHeight:Gt.tagLineHeight,whiteSpace:"nowrap",background:Gt.defaultBg,border:`${Gt.lineWidth}px ${Gt.lineType} ${Gt.colorBorder}`,borderRadius:Gt.borderRadiusSM,opacity:1,transition:`all ${Gt.motionDurationMid}`,textAlign:"start",position:"relative",[`&${ye}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:Gt.defaultColor},[`${ye}-close-icon`]:{marginInlineStart:me,color:Gt.colorTextDescription,fontSize:Gt.tagIconSize,cursor:"pointer",transition:`all ${Gt.motionDurationMid}`,"&:hover":{color:Gt.colorTextHeading}},[`&${ye}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${Gt.iconCls}-close, ${Gt.iconCls}-close:hover`]:{color:Gt.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${ye}-checkable-checked):hover`]:{color:Gt.colorPrimary,backgroundColor:Gt.colorFillSecondary},"&:active, &-checked":{color:Gt.colorTextLightSolid},"&-checked":{backgroundColor:Gt.colorPrimary,"&:hover":{backgroundColor:Gt.colorPrimaryHover}},"&:active":{backgroundColor:Gt.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${Gt.iconCls} + span, > span + ${Gt.iconCls}`]:{marginInlineStart:Te}}),[`${ye}-borderless`]:{borderColor:"transparent",background:Gt.tagBorderlessBg}}},It=Gt=>{const{lineWidth:ce,fontSizeIcon:ae}=Gt,xe=Gt.fontSizeSM,ye=`${Gt.lineHeightSM*xe}px`;return(0,Ct.TS)(Gt,{tagFontSize:xe,tagLineHeight:ye,tagIconSize:ae-2*ce,tagPaddingHorizontal:8,tagBorderlessBg:Gt.colorFillTertiary})},mt=Gt=>({defaultBg:Gt.colorFillQuaternary,defaultColor:Gt.colorText});var et=(0,Lt.Z)("Tag",Gt=>{const ce=It(Gt);return At(ce)},mt),tt=function(Gt,ce){var ae={};for(var xe in Gt)Object.prototype.hasOwnProperty.call(Gt,xe)&&ce.indexOf(xe)<0&&(ae[xe]=Gt[xe]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,xe=Object.getOwnPropertySymbols(Gt);ye<xe.length;ye++)ce.indexOf(xe[ye])<0&&Object.prototype.propertyIsEnumerable.call(Gt,xe[ye])&&(ae[xe[ye]]=Gt[xe[ye]]);return ae},rt=Gt=>{const{prefixCls:ce,style:ae,className:xe,checked:ye,onChange:Te,onClick:me}=Gt,He=tt(Gt,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:fe,tag:$t}=zt.useContext(Ot.E_),ie=Ne=>{Te==null||Te(!ye),me==null||me(Ne)},ue=fe("tag",ce),[ge,he]=et(ue),De=Qt()(ue,`${ue}-checkable`,{[`${ue}-checkable-checked`]:ye},$t==null?void 0:$t.className,xe,he);return ge(zt.createElement("span",Object.assign({},He,{style:Object.assign(Object.assign({},ae),$t==null?void 0:$t.style),className:De,onClick:ie})))},ut=Kt(45157);const ct=Gt=>(0,ut.Z)(Gt,(ce,ae)=>{let{textColor:xe,lightBorderColor:ye,lightColor:Te,darkColor:me}=ae;return{[`${Gt.componentCls}-${ce}`]:{color:xe,background:Te,borderColor:ye,"&-inverse":{color:Gt.colorTextLightSolid,background:me,borderColor:me},[`&${Gt.componentCls}-borderless`]:{borderColor:"transparent"}}}});var ft=(0,Lt.b)(["Tag","preset"],Gt=>{const ce=It(Gt);return ct(ce)},mt);function pt(Gt){return typeof Gt!="string"?Gt:Gt.charAt(0).toUpperCase()+Gt.slice(1)}const Pt=(Gt,ce,ae)=>{const xe=pt(ae);return{[`${Gt.componentCls}-${ce}`]:{color:Gt[`color${ae}`],background:Gt[`color${xe}Bg`],borderColor:Gt[`color${xe}Border`],[`&${Gt.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Dt=(0,Lt.b)(["Tag","status"],Gt=>{const ce=It(Gt);return[Pt(ce,"success","Success"),Pt(ce,"processing","Info"),Pt(ce,"error","Error"),Pt(ce,"warning","Warning")]},mt),Zt=function(Gt,ce){var ae={};for(var xe in Gt)Object.prototype.hasOwnProperty.call(Gt,xe)&&ce.indexOf(xe)<0&&(ae[xe]=Gt[xe]);if(Gt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,xe=Object.getOwnPropertySymbols(Gt);ye<xe.length;ye++)ce.indexOf(xe[ye])<0&&Object.prototype.propertyIsEnumerable.call(Gt,xe[ye])&&(ae[xe[ye]]=Gt[xe[ye]]);return ae};const Ft=(Gt,ce)=>{const{prefixCls:ae,className:xe,rootClassName:ye,style:Te,children:me,icon:He,color:fe,onClose:$t,closeIcon:ie,closable:ue,bordered:ge=!0}=Gt,he=Zt(Gt,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:De,direction:Ne,tag:$e}=zt.useContext(Ot.E_),[Re,tn]=zt.useState(!0);zt.useEffect(()=>{"visible"in he&&tn(he.visible)},[he.visible]);const Me=(0,kt.o2)(fe),Oe=(0,kt.yT)(fe),Fe=Me||Oe,le=Object.assign(Object.assign({backgroundColor:fe&&!Fe?fe:void 0},$e==null?void 0:$e.style),Te),Tt=De("tag",ae),[bt,_t]=et(Tt),Yt=Qt()(Tt,$e==null?void 0:$e.className,{[`${Tt}-${fe}`]:Fe,[`${Tt}-has-color`]:fe&&!Fe,[`${Tt}-hidden`]:!Re,[`${Tt}-rtl`]:Ne==="rtl",[`${Tt}-borderless`]:!ge},xe,ye,_t),Mt=Vt=>{Vt.stopPropagation(),$t==null||$t(Vt),!Vt.defaultPrevented&&tn(!1)},[,Ut]=(0,Bt.Z)(ue,ie,Vt=>Vt===null?zt.createElement(gt.Z,{className:`${Tt}-close-icon`,onClick:Mt}):zt.createElement("span",{className:`${Tt}-close-icon`,onClick:Mt},Vt),null,!1),St=typeof he.onClick=="function"||me&&me.type==="a",wt=He||null,jt=wt?zt.createElement(zt.Fragment,null,wt,me&&zt.createElement("span",null,me)):me,Wt=zt.createElement("span",Object.assign({},he,{ref:ce,className:Yt,style:le}),jt,Ut,Me&&zt.createElement(ft,{key:"preset",prefixCls:Tt}),Oe&&zt.createElement(Dt,{key:"status",prefixCls:Tt}));return bt(St?zt.createElement(xt.Z,{component:"Tag"},Wt):Wt)},qt=zt.forwardRef(Ft);qt.CheckableTag=rt;var te=qt},17574:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{default:function(){return fe}});var zt=Kt(23130),gt=Kt(26407),Xt=Kt(52671),Qt=Kt(8657),kt=Kt(92413),Bt=Kt(59301),xt={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"},Ot=xt,Rt=Kt(7657),Ct=function(ie,ue){return Bt.createElement(Rt.Z,(0,kt.Z)({},ie,{ref:ue,icon:Ot}))},Lt=Bt.forwardRef(Ct),At=Lt,It=Kt(92310),mt=Kt.n(It),et=Kt(35654),tt=Kt(71430),st=Kt(36355),rt=Kt(56082),ut=Kt(62892),ct=Kt(20648);const ft=4;function pt($t){const{dropPosition:ie,dropLevelOffset:ue,prefixCls:ge,indent:he,direction:De="ltr"}=$t,Ne=De==="ltr"?"left":"right",$e=De==="ltr"?"right":"left",Re={[Ne]:-ue*he+ft,[$e]:0};switch(ie){case-1:Re.top=-3;break;case 1:Re.bottom=-3;break;default:Re.bottom=-3,Re[Ne]=he+ft;break}return Bt.createElement("div",{style:Re,className:`${ge}-drop-indicator`})}var Pt=Kt(71997),Zt=Bt.forwardRef(($t,ie)=>{const{getPrefixCls:ue,direction:ge,virtual:he,tree:De}=Bt.useContext(st.E_),{prefixCls:Ne,className:$e,showIcon:Re=!1,showLine:tn,switcherIcon:Me,blockNode:Oe=!1,children:Fe,checkable:le=!1,selectable:Tt=!0,draggable:bt,motion:_t,style:Yt}=$t,Mt=ue("tree",Ne),Ut=ue(),St=_t!=null?_t:Object.assign(Object.assign({},(0,ut.Z)(Ut)),{motionAppear:!1}),wt=Object.assign(Object.assign({},$t),{checkable:le,selectable:Tt,showIcon:Re,motion:St,blockNode:Oe,showLine:!!tn,dropIndicatorRender:pt}),[jt,Wt]=(0,ct.ZP)(Mt),Vt=Bt.useMemo(()=>{if(!bt)return!1;let de={};switch(typeof bt){case"function":de.nodeDraggable=bt;break;case"object":de=Object.assign({},bt);break;default:break}return de.icon!==!1&&(de.icon=de.icon||Bt.createElement(rt.Z,null)),de},[bt]),oe=de=>Bt.createElement(Pt.Z,{prefixCls:Mt,switcherIcon:Me,treeNodeProps:de,showLine:tn});return jt(Bt.createElement(zt.Z,Object.assign({itemHeight:20,ref:ie,virtual:he},wt,{style:Object.assign(Object.assign({},De==null?void 0:De.style),Yt),prefixCls:Mt,className:mt()({[`${Mt}-icon-hide`]:!Re,[`${Mt}-block-node`]:Oe,[`${Mt}-unselectable`]:!Tt,[`${Mt}-rtl`]:ge==="rtl"},De==null?void 0:De.className,$e,Wt),direction:ge,checkable:le&&Bt.createElement("span",{className:`${Mt}-checkbox-inner`}),selectable:Tt,switcherIcon:oe,draggable:Vt}),Fe))}),Ft;(function($t){$t[$t.None=0]="None",$t[$t.Start=1]="Start",$t[$t.End=2]="End"})(Ft||(Ft={}));function qt($t,ie){function ue(ge){const{key:he,children:De}=ge;ie(he,ge)!==!1&&qt(De||[],ie)}$t.forEach(ue)}function te($t){let{treeData:ie,expandedKeys:ue,startKey:ge,endKey:he}=$t;const De=[];let Ne=Ft.None;if(ge&&ge===he)return[ge];if(!ge||!he)return[];function $e(Re){return Re===ge||Re===he}return qt(ie,Re=>{if(Ne===Ft.End)return!1;if($e(Re)){if(De.push(Re),Ne===Ft.None)Ne=Ft.Start;else if(Ne===Ft.Start)return Ne=Ft.End,!1}else Ne===Ft.Start&&De.push(Re);return ue.includes(Re)}),De}function Gt($t,ie){const ue=(0,gt.Z)(ie),ge=[];return qt($t,(he,De)=>{const Ne=ue.indexOf(he);return Ne!==-1&&(ge.push(De),ue.splice(Ne,1)),!!ue.length}),ge}var ce=function($t,ie){var ue={};for(var ge in $t)Object.prototype.hasOwnProperty.call($t,ge)&&ie.indexOf(ge)<0&&(ue[ge]=$t[ge]);if($t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,ge=Object.getOwnPropertySymbols($t);he<ge.length;he++)ie.indexOf(ge[he])<0&&Object.prototype.propertyIsEnumerable.call($t,ge[he])&&(ue[ge[he]]=$t[ge[he]]);return ue};function ae($t){const{isLeaf:ie,expanded:ue}=$t;return ie?Bt.createElement(Xt.Z,null):ue?Bt.createElement(Qt.Z,null):Bt.createElement(At,null)}function xe($t){let{treeData:ie,children:ue}=$t;return ie||(0,tt.zn)(ue)}const ye=($t,ie)=>{var{defaultExpandAll:ue,defaultExpandParent:ge,defaultExpandedKeys:he}=$t,De=ce($t,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Ne=Bt.useRef(),$e=Bt.useRef(),Re=()=>{const{keyEntities:Vt}=(0,tt.I8)(xe(De));let oe;return ue?oe=Object.keys(Vt):ge?oe=(0,et.r7)(De.expandedKeys||he||[],Vt):oe=De.expandedKeys||he,oe},[tn,Me]=Bt.useState(De.selectedKeys||De.defaultSelectedKeys||[]),[Oe,Fe]=Bt.useState(()=>Re());Bt.useEffect(()=>{"selectedKeys"in De&&Me(De.selectedKeys)},[De.selectedKeys]),Bt.useEffect(()=>{"expandedKeys"in De&&Fe(De.expandedKeys)},[De.expandedKeys]);const le=(Vt,oe)=>{var de;return"expandedKeys"in De||Fe(Vt),(de=De.onExpand)===null||de===void 0?void 0:de.call(De,Vt,oe)},Tt=(Vt,oe)=>{var de;const{multiple:Ge}=De,{node:Ye,nativeEvent:Ue}=oe,{key:an=""}=Ye,vn=xe(De),ke=Object.assign(Object.assign({},oe),{selected:!0}),Ze=(Ue==null?void 0:Ue.ctrlKey)||(Ue==null?void 0:Ue.metaKey),hn=Ue==null?void 0:Ue.shiftKey;let Pn;Ge&&Ze?(Pn=Vt,Ne.current=an,$e.current=Pn,ke.selectedNodes=Gt(vn,Pn)):Ge&&hn?(Pn=Array.from(new Set([].concat((0,gt.Z)($e.current||[]),(0,gt.Z)(te({treeData:vn,expandedKeys:Oe,startKey:an,endKey:Ne.current}))))),ke.selectedNodes=Gt(vn,Pn)):(Pn=[an],Ne.current=an,$e.current=Pn,ke.selectedNodes=Gt(vn,Pn)),(de=De.onSelect)===null||de===void 0||de.call(De,Pn,ke),"selectedKeys"in De||Me(Pn)},{getPrefixCls:bt,direction:_t}=Bt.useContext(st.E_),{prefixCls:Yt,className:Mt,showIcon:Ut=!0,expandAction:St="click"}=De,wt=ce(De,["prefixCls","className","showIcon","expandAction"]),jt=bt("tree",Yt),Wt=mt()(`${jt}-directory`,{[`${jt}-directory-rtl`]:_t==="rtl"},Mt);return Bt.createElement(Zt,Object.assign({icon:ae,ref:ie,blockNode:!0},wt,{showIcon:Ut,expandAction:St,prefixCls:jt,className:Wt,expandedKeys:Oe,selectedKeys:tn,onSelect:Tt,onExpand:le}))};var me=Bt.forwardRef(ye);const He=Zt;He.DirectoryTree=me,He.TreeNode=zt.O;var fe=He},20648:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{TM:function(){return It},Yk:function(){return At}});var zt=Kt(93083),gt=Kt(98447),Xt=Kt(17313),Qt=Kt(8378),kt=Kt(37613),Bt=Kt(83116);const xt=new zt.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Ot=(mt,et)=>({[`.${mt}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${et.motionDurationSlow}`}}}),Rt=(mt,et)=>({[`.${mt}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:et.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${et.lineWidthBold}px solid ${et.colorPrimary}`,borderRadius:"50%",content:'""'}}}),Ct=(mt,et)=>{const{treeCls:tt,treeNodeCls:st,treeNodePadding:rt,titleHeight:ut,nodeSelectedBg:ct,nodeHoverBg:ft}=et,pt=et.paddingXS;return{[tt]:Object.assign(Object.assign({},(0,Xt.Wf)(et)),{background:et.colorBgContainer,borderRadius:et.borderRadius,transition:`background-color ${et.motionDurationSlow}`,[`&${tt}-rtl`]:{[`${tt}-switcher`]:{"&_close":{[`${tt}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${tt}-active-focused)`]:Object.assign({},(0,Xt.oN)(et)),[`${tt}-list-holder-inner`]:{alignItems:"flex-start"},[`&${tt}-block-node`]:{[`${tt}-list-holder-inner`]:{alignItems:"stretch",[`${tt}-node-content-wrapper`]:{flex:"auto"},[`${st}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:rt,insetInlineStart:0,border:`1px solid ${et.colorPrimary}`,opacity:0,animationName:xt,animationDuration:et.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${st}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${rt}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${tt}-node-content-wrapper`]:{color:et.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${tt}-node-content-wrapper`]:Object.assign({},(0,Xt.oN)(et)),[`&:not(${st}-disabled).filter-node ${tt}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${tt}-draggable-icon`]:{flexShrink:0,width:ut,lineHeight:`${ut}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${et.motionDurationSlow}`,[`${st}:hover &`]:{opacity:.45}},[`&${st}-disabled`]:{[`${tt}-draggable-icon`]:{visibility:"hidden"}}}},[`${tt}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:ut}},[`${tt}-draggable-icon`]:{visibility:"hidden"},[`${tt}-switcher`]:Object.assign(Object.assign({},Ot(mt,et)),{position:"relative",flex:"none",alignSelf:"stretch",width:ut,margin:0,lineHeight:`${ut}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${tt}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:et.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ut/2,bottom:-rt,marginInlineStart:-1,borderInlineEnd:`1px solid ${et.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:ut/2*.8,height:ut/2,borderBottom:`1px solid ${et.colorBorder}`,content:'""'}}}),[`${tt}-checkbox`]:{top:"initial",marginInlineEnd:pt},[`${tt}-node-content-wrapper, ${tt}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:ut,margin:0,padding:`0 ${et.paddingXS/2}px`,color:"inherit",lineHeight:`${ut}px`,background:"transparent",borderRadius:et.borderRadius,cursor:"pointer",transition:`all ${et.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:ft},[`&${tt}-node-selected`]:{backgroundColor:ct},[`${tt}-iconEle`]:{display:"inline-block",width:ut,height:ut,lineHeight:`${ut}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${tt}-unselectable ${tt}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${tt}-node-content-wrapper`]:Object.assign({lineHeight:`${ut}px`,userSelect:"none"},Rt(mt,et)),[`${st}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${et.colorPrimary}`}},"&-show-line":{[`${tt}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ut/2,bottom:-rt,borderInlineEnd:`1px solid ${et.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${tt}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${st}-leaf-last`]:{[`${tt}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${ut/2}px !important`}}}}})}},Lt=mt=>{const{treeCls:et,treeNodeCls:tt,treeNodePadding:st,directoryNodeSelectedBg:rt,directoryNodeSelectedColor:ut}=mt;return{[`${et}${et}-directory`]:{[tt]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:st,insetInlineStart:0,transition:`background-color ${mt.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:mt.controlItemBgHover}},"> *":{zIndex:1},[`${et}-switcher`]:{transition:`color ${mt.motionDurationMid}`},[`${et}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${et}-node-selected`]:{color:ut,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:rt},[`${et}-switcher`]:{color:ut},[`${et}-node-content-wrapper`]:{color:ut,background:"transparent"}}}}}},At=(mt,et)=>{const tt=`.${mt}`,st=`${tt}-treenode`,rt=et.paddingXS/2,ut=(0,kt.TS)(et,{treeCls:tt,treeNodeCls:st,treeNodePadding:rt});return[Ct(mt,ut),Lt(ut)]},It=mt=>{const{controlHeightSM:et}=mt;return{titleHeight:et,nodeHoverBg:mt.controlItemBgHover,nodeSelectedBg:mt.controlItemBgActive}};Cn.ZP=(0,Bt.Z)("Tree",(mt,et)=>{let{prefixCls:tt}=et;return[{[mt.componentCls]:(0,gt.C2)(`${tt}-checkbox`,mt)},At(tt,mt),(0,Qt.Z)(mt)]},mt=>{const{colorTextLightSolid:et,colorPrimary:tt}=mt;return Object.assign(Object.assign({},It(mt)),{directoryNodeSelectedColor:et,directoryNodeSelectedBg:tt})})},71997:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return st}});var zt=Kt(92413),gt=Kt(59301),Xt={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"},Qt=Xt,kt=Kt(7657),Bt=function(ut,ct){return gt.createElement(kt.Z,(0,zt.Z)({},ut,{ref:ct,icon:Qt}))},xt=gt.forwardRef(Bt),Ot=xt,Rt=Kt(52671),Ct=Kt(58617),Lt=Kt(15075),At=Kt(43531),It=Kt(92310),mt=Kt.n(It),et=Kt(92343),st=rt=>{const{prefixCls:ut,switcherIcon:ct,treeNodeProps:ft,showLine:pt}=rt,{isLeaf:Pt,expanded:Dt,loading:Zt}=ft;if(Zt)return gt.createElement(Ct.Z,{className:`${ut}-switcher-loading-icon`});let Ft;if(pt&&typeof pt=="object"&&(Ft=pt.showLeafIcon),Pt){if(!pt)return null;if(typeof Ft!="boolean"&&Ft){const Gt=typeof Ft=="function"?Ft(ft):Ft,ce=`${ut}-switcher-line-custom-icon`;return(0,et.l$)(Gt)?(0,et.Tm)(Gt,{className:mt()(Gt.props.className||"",ce)}):Gt}return Ft?gt.createElement(Rt.Z,{className:`${ut}-switcher-line-icon`}):gt.createElement("span",{className:`${ut}-switcher-leaf-line`})}const qt=`${ut}-switcher-icon`,te=typeof ct=="function"?ct(ft):ct;return(0,et.l$)(te)?(0,et.Tm)(te,{className:mt()(te.props.className||"",qt)}):te!==void 0?te:pt?Dt?gt.createElement(Lt.Z,{className:`${ut}-switcher-line-icon`}):gt.createElement(At.Z,{className:`${ut}-switcher-line-icon`}):gt.createElement(Ot,{className:qt})}},54580:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{default:function(){return nn}});var zt=Kt(59301),gt=Kt(26407),Xt=Kt(92310),Qt=Kt.n(Xt),kt=Kt(92413),Bt=Kt(6909),xt=Kt(4771),Ot=Kt(9427),Rt=Kt(25440),Ct=Kt(400),Lt=Kt(37061),At=Kt(85195),It=Kt(39559),mt=Kt(20569),et=Kt(26112);function tt(_e,en){var un="cannot ".concat(_e.method," ").concat(_e.action," ").concat(en.status,"'"),sn=new Error(un);return sn.status=en.status,sn.method=_e.method,sn.url=_e.action,sn}function st(_e){var en=_e.responseText||_e.response;if(!en)return en;try{return JSON.parse(en)}catch(un){return en}}function rt(_e){var en=new XMLHttpRequest;_e.onProgress&&en.upload&&(en.upload.onprogress=function(gn){gn.total>0&&(gn.percent=gn.loaded/gn.total*100),_e.onProgress(gn)});var un=new FormData;_e.data&&Object.keys(_e.data).forEach(function(xn){var gn=_e.data[xn];if(Array.isArray(gn)){gn.forEach(function(Ln){un.append("".concat(xn,"[]"),Ln)});return}un.append(xn,gn)}),_e.file instanceof Blob?un.append(_e.filename,_e.file,_e.file.name):un.append(_e.filename,_e.file),en.onerror=function(gn){_e.onError(gn)},en.onload=function(){return en.status<200||en.status>=300?_e.onError(tt(_e,en),st(en)):_e.onSuccess(st(en),en)},en.open(_e.method,_e.action,!0),_e.withCredentials&&"withCredentials"in en&&(en.withCredentials=!0);var sn=_e.headers||{};return sn["X-Requested-With"]!==null&&en.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(sn).forEach(function(xn){sn[xn]!==null&&en.setRequestHeader(xn,sn[xn])}),en.send(un),{abort:function(){en.abort()}}}var ut=+new Date,ct=0;function ft(){return"rc-upload-".concat(ut,"-").concat(++ct)}var pt=Kt(48736),Pt=function(_e,en){if(_e&&en){var un=Array.isArray(en)?en:en.split(","),sn=_e.name||"",xn=_e.type||"",gn=xn.replace(/\/.*$/,"");return un.some(function(Ln){var Mn=Ln.trim();if(/^\*(\/\*)?$/.test(Ln))return!0;if(Mn.charAt(0)==="."){var Qn=sn.toLowerCase(),ln=Mn.toLowerCase(),ti=[ln];return(ln===".jpg"||ln===".jpeg")&&(ti=[".jpg",".jpeg"]),ti.some(function(vi){return Qn.endsWith(vi)})}return/\/\*$/.test(Mn)?gn===Mn.replace(/\/.*$/,""):xn===Mn?!0:/^\w+$/.test(Mn)?((0,pt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Mn,"'.Skip for check.")),!0):!1})}return!0};function Dt(_e,en){var un=_e.createReader(),sn=[];function xn(){un.readEntries(function(gn){var Ln=Array.prototype.slice.apply(gn);sn=sn.concat(Ln);var Mn=!Ln.length;Mn?en(sn):xn()})}xn()}var Zt=function(en,un,sn){var xn=function gn(Ln,Mn){Ln&&(Ln.path=Mn||"",Ln.isFile?Ln.file(function(Qn){sn(Qn)&&(Ln.fullPath&&!Qn.webkitRelativePath&&(Object.defineProperties(Qn,{webkitRelativePath:{writable:!0}}),Qn.webkitRelativePath=Ln.fullPath.replace(/^\//,""),Object.defineProperties(Qn,{webkitRelativePath:{writable:!1}})),un([Qn]))}):Ln.isDirectory&&Dt(Ln,function(Qn){Qn.forEach(function(ln){gn(ln,"".concat(Mn).concat(Ln.name,"/"))})}))};en.forEach(function(gn){xn(gn.webkitGetAsEntry())})},Ft=Zt,qt=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],te=function(_e){(0,Ot.Z)(un,_e);var en=(0,Rt.Z)(un);function un(){var sn;(0,Bt.Z)(this,un);for(var xn=arguments.length,gn=new Array(xn),Ln=0;Ln<xn;Ln++)gn[Ln]=arguments[Ln];return sn=en.call.apply(en,[this].concat(gn)),sn.state={uid:ft()},sn.reqs={},sn.fileInput=void 0,sn._isMounted=void 0,sn.onChange=function(Mn){var Qn=sn.props,ln=Qn.accept,ti=Qn.directory,vi=Mn.target.files,oi=(0,gt.Z)(vi).filter(function(dn){return!ti||Pt(dn,ln)});sn.uploadFiles(oi),sn.reset()},sn.onClick=function(Mn){var Qn=sn.fileInput;if(Qn){var ln=Mn.target,ti=sn.props.onClick;if(ln&&ln.tagName==="BUTTON"){var vi=Qn.parentNode;vi.focus(),ln.blur()}Qn.click(),ti&&ti(Mn)}},sn.onKeyDown=function(Mn){Mn.key==="Enter"&&sn.onClick(Mn)},sn.onFileDrop=function(Mn){var Qn=sn.props.multiple;if(Mn.preventDefault(),Mn.type!=="dragover")if(sn.props.directory)Ft(Array.prototype.slice.call(Mn.dataTransfer.items),sn.uploadFiles,function(ti){return Pt(ti,sn.props.accept)});else{var ln=(0,gt.Z)(Mn.dataTransfer.files).filter(function(ti){return Pt(ti,sn.props.accept)});Qn===!1&&(ln=ln.slice(0,1)),sn.uploadFiles(ln)}},sn.uploadFiles=function(Mn){var Qn=(0,gt.Z)(Mn),ln=Qn.map(function(ti){return ti.uid=ft(),sn.processFile(ti,Qn)});Promise.all(ln).then(function(ti){var vi=sn.props.onBatchStart;vi==null||vi(ti.map(function(oi){var dn=oi.origin,Rn=oi.parsedFile;return{file:dn,parsedFile:Rn}})),ti.filter(function(oi){return oi.parsedFile!==null}).forEach(function(oi){sn.post(oi)})})},sn.processFile=function(){var Mn=(0,mt.Z)((0,At.Z)().mark(function Qn(ln,ti){var vi,oi,dn,Rn,Xn,hi,ei,fi,Ai;return(0,At.Z)().wrap(function(ii){for(;;)switch(ii.prev=ii.next){case 0:if(vi=sn.props.beforeUpload,oi=ln,!vi){ii.next=14;break}return ii.prev=3,ii.next=6,vi(ln,ti);case 6:oi=ii.sent,ii.next=12;break;case 9:ii.prev=9,ii.t0=ii.catch(3),oi=!1;case 12:if(oi!==!1){ii.next=14;break}return ii.abrupt("return",{origin:ln,parsedFile:null,action:null,data:null});case 14:if(dn=sn.props.action,typeof dn!="function"){ii.next=21;break}return ii.next=18,dn(ln);case 18:Rn=ii.sent,ii.next=22;break;case 21:Rn=dn;case 22:if(Xn=sn.props.data,typeof Xn!="function"){ii.next=29;break}return ii.next=26,Xn(ln);case 26:hi=ii.sent,ii.next=30;break;case 29:hi=Xn;case 30:return ei=((0,It.Z)(oi)==="object"||typeof oi=="string")&&oi?oi:ln,ei instanceof File?fi=ei:fi=new File([ei],ln.name,{type:ln.type}),Ai=fi,Ai.uid=ln.uid,ii.abrupt("return",{origin:ln,data:hi,parsedFile:Ai,action:Rn});case 35:case"end":return ii.stop()}},Qn,null,[[3,9]])}));return function(Qn,ln){return Mn.apply(this,arguments)}}(),sn.saveFileInput=function(Mn){sn.fileInput=Mn},sn}return(0,xt.Z)(un,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(xn){var gn=this,Ln=xn.data,Mn=xn.origin,Qn=xn.action,ln=xn.parsedFile;if(this._isMounted){var ti=this.props,vi=ti.onStart,oi=ti.customRequest,dn=ti.name,Rn=ti.headers,Xn=ti.withCredentials,hi=ti.method,ei=Mn.uid,fi=oi||rt,Ai={action:Qn,filename:dn,data:Ln,file:ln,headers:Rn,withCredentials:Xn,method:hi||"post",onProgress:function(ii){var Li=gn.props.onProgress;Li==null||Li(ii,ln)},onSuccess:function(ii,Li){var bn=gn.props.onSuccess;bn==null||bn(ii,ln,Li),delete gn.reqs[ei]},onError:function(ii,Li){var bn=gn.props.onError;bn==null||bn(ii,Li,ln),delete gn.reqs[ei]}};vi(Mn),this.reqs[ei]=fi(Ai)}}},{key:"reset",value:function(){this.setState({uid:ft()})}},{key:"abort",value:function(xn){var gn=this.reqs;if(xn){var Ln=xn.uid?xn.uid:xn;gn[Ln]&&gn[Ln].abort&&gn[Ln].abort(),delete gn[Ln]}else Object.keys(gn).forEach(function(Mn){gn[Mn]&&gn[Mn].abort&&gn[Mn].abort(),delete gn[Mn]})}},{key:"render",value:function(){var xn=this.props,gn=xn.component,Ln=xn.prefixCls,Mn=xn.className,Qn=xn.disabled,ln=xn.id,ti=xn.style,vi=xn.multiple,oi=xn.accept,dn=xn.capture,Rn=xn.children,Xn=xn.directory,hi=xn.openFileDialogOnClick,ei=xn.onMouseEnter,fi=xn.onMouseLeave,Ai=(0,Lt.Z)(xn,qt),gi=Qt()((0,Ct.Z)((0,Ct.Z)((0,Ct.Z)({},Ln,!0),"".concat(Ln,"-disabled"),Qn),Mn,Mn)),ii=Xn?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Li=Qn?{}:{onClick:hi?this.onClick:function(){},onKeyDown:hi?this.onKeyDown:function(){},onMouseEnter:ei,onMouseLeave:fi,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return zt.createElement(gn,(0,kt.Z)({},Li,{className:gi,role:"button",style:ti}),zt.createElement("input",(0,kt.Z)({},(0,et.Z)(Ai,{aria:!0,data:!0}),{id:ln,disabled:Qn,type:"file",ref:this.saveFileInput,onClick:function(er){return er.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:oi},ii,{multiple:vi,onChange:this.onChange},dn!=null?{capture:dn}:{})),Rn)}}]),un}(zt.Component),Gt=te;function ce(){}var ae=function(_e){(0,Ot.Z)(un,_e);var en=(0,Rt.Z)(un);function un(){var sn;(0,Bt.Z)(this,un);for(var xn=arguments.length,gn=new Array(xn),Ln=0;Ln<xn;Ln++)gn[Ln]=arguments[Ln];return sn=en.call.apply(en,[this].concat(gn)),sn.uploader=void 0,sn.saveUploader=function(Mn){sn.uploader=Mn},sn}return(0,xt.Z)(un,[{key:"abort",value:function(xn){this.uploader.abort(xn)}},{key:"render",value:function(){return zt.createElement(Gt,(0,kt.Z)({},this.props,{ref:this.saveUploader}))}}]),un}(zt.Component);ae.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:ce,onError:ce,onSuccess:ce,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var xe=ae,ye=xe,Te=Kt(18929),me=Kt(4676),He=Kt(36355),fe=Kt(1684),$t=Kt(9763),ie=Kt(31724),ue={icon:function(en,un){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:un}},{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:en}}]}},name:"file",theme:"twotone"},ge=ue,he=Kt(7657),De=function(en,un){return zt.createElement(he.Z,(0,kt.Z)({},en,{ref:un,icon:ge}))},Ne=zt.forwardRef(De),$e=Ne,Re=Kt(58617),tn={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"},Me=tn,Oe=function(en,un){return zt.createElement(he.Z,(0,kt.Z)({},en,{ref:un,icon:Me}))},Fe=zt.forwardRef(Oe),le=Fe,Tt={icon:function(en,un){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:en}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:un}},{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:un}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:un}},{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:en}}]}},name:"picture",theme:"twotone"},bt=Tt,_t=function(en,un){return zt.createElement(he.Z,(0,kt.Z)({},en,{ref:un,icon:bt}))},Yt=zt.forwardRef(_t),Mt=Yt,Ut=Kt(77900),St=Kt(56762),wt=Kt(62892),jt=Kt(92343),Wt=Kt(3113);function Vt(_e){return Object.assign(Object.assign({},_e),{lastModified:_e.lastModified,lastModifiedDate:_e.lastModifiedDate,name:_e.name,size:_e.size,type:_e.type,uid:_e.uid,percent:0,originFileObj:_e})}function oe(_e,en){const un=(0,gt.Z)(en),sn=un.findIndex(xn=>{let{uid:gn}=xn;return gn===_e.uid});return sn===-1?un.push(_e):un[sn]=_e,un}function de(_e,en){const un=_e.uid!==void 0?"uid":"name";return en.filter(sn=>sn[un]===_e[un])[0]}function Ge(_e,en){const un=_e.uid!==void 0?"uid":"name",sn=en.filter(xn=>xn[un]!==_e[un]);return sn.length===en.length?null:sn}const Ye=function(){const en=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),sn=en[en.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(sn)||[""])[0]},Ue=_e=>_e.indexOf("image/")===0,an=_e=>{if(_e.type&&!_e.thumbUrl)return Ue(_e.type);const en=_e.thumbUrl||_e.url||"",un=Ye(en);return/^data:image\//.test(en)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(un)?!0:!(/^data:/.test(en)||un)},vn=200;function ke(_e){return new Promise(en=>{if(!_e.type||!Ue(_e.type)){en("");return}const un=document.createElement("canvas");un.width=vn,un.height=vn,un.style.cssText=`position: fixed; left: 0; top: 0; width: ${vn}px; height: ${vn}px; z-index: 9999; display: none;`,document.body.appendChild(un);const sn=un.getContext("2d"),xn=new Image;if(xn.onload=()=>{const{width:gn,height:Ln}=xn;let Mn=vn,Qn=vn,ln=0,ti=0;gn>Ln?(Qn=Ln*(vn/gn),ti=-(Qn-Mn)/2):(Mn=gn*(vn/Ln),ln=-(Mn-Qn)/2),sn.drawImage(xn,ln,ti,Mn,Qn);const vi=un.toDataURL();document.body.removeChild(un),window.URL.revokeObjectURL(xn.src),en(vi)},xn.crossOrigin="anonymous",_e.type.startsWith("image/svg+xml")){const gn=new FileReader;gn.onload=()=>{gn.result&&(xn.src=gn.result)},gn.readAsDataURL(_e)}else if(_e.type.startsWith("image/gif")){const gn=new FileReader;gn.onload=()=>{gn.result&&en(gn.result)},gn.readAsDataURL(_e)}else xn.src=window.URL.createObjectURL(_e)})}var Ze=Kt(26227),hn=Kt(41464),Pn=Kt(15277),In=Kt(93948),Bn=Kt(6848),Gn=zt.forwardRef((_e,en)=>{let{prefixCls:un,className:sn,style:xn,locale:gn,listType:Ln,file:Mn,items:Qn,progress:ln,iconRender:ti,actionIconRender:vi,itemRender:oi,isImgUrl:dn,showPreviewIcon:Rn,showRemoveIcon:Xn,showDownloadIcon:hi,previewIcon:ei,removeIcon:fi,downloadIcon:Ai,onPreview:gi,onDownload:ii,onClose:Li}=_e;var bn,er;const{status:En}=Mn,[Oi,wr]=zt.useState(En);zt.useEffect(()=>{En!=="removed"&&wr(En)},[En]);const[_i,kr]=zt.useState(!1);zt.useEffect(()=>{const ar=setTimeout(()=>{kr(!0)},300);return()=>{clearTimeout(ar)}},[]);const gr=ti(Mn);let wi=zt.createElement("div",{className:`${un}-icon`},gr);if(Ln==="picture"||Ln==="picture-card"||Ln==="picture-circle")if(Oi==="uploading"||!Mn.thumbUrl&&!Mn.url){const ar=Qt()(`${un}-list-item-thumbnail`,{[`${un}-list-item-file`]:Oi!=="uploading"});wi=zt.createElement("div",{className:ar},gr)}else{const ar=dn!=null&&dn(Mn)?zt.createElement("img",{src:Mn.thumbUrl||Mn.url,alt:Mn.name,className:`${un}-list-item-image`,crossOrigin:Mn.crossOrigin}):gr,Pi=Qt()(`${un}-list-item-thumbnail`,{[`${un}-list-item-file`]:dn&&!dn(Mn)});wi=zt.createElement("a",{className:Pi,onClick:mi=>gi(Mn,mi),href:Mn.url||Mn.thumbUrl,target:"_blank",rel:"noopener noreferrer"},ar)}const yi=Qt()(`${un}-list-item`,`${un}-list-item-${Oi}`),Zi=typeof Mn.linkProps=="string"?JSON.parse(Mn.linkProps):Mn.linkProps,Xi=Xn?vi((typeof fi=="function"?fi(Mn):fi)||zt.createElement(Ze.Z,null),()=>Li(Mn),un,gn.removeFile):null,qn=hi&&Oi==="done"?vi((typeof Ai=="function"?Ai(Mn):Ai)||zt.createElement(hn.Z,null),()=>ii(Mn),un,gn.downloadFile):null,Se=Ln!=="picture-card"&&Ln!=="picture-circle"&&zt.createElement("span",{key:"download-delete",className:Qt()(`${un}-list-item-actions`,{picture:Ln==="picture"})},qn,Xi),ji=Qt()(`${un}-list-item-name`),yr=Mn.url?[zt.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:ji,title:Mn.name},Zi,{href:Mn.url,onClick:ar=>gi(Mn,ar)}),Mn.name),Se]:[zt.createElement("span",{key:"view",className:ji,onClick:ar=>gi(Mn,ar),title:Mn.name},Mn.name),Se],Ki={pointerEvents:"none",opacity:.5},rr=Rn?zt.createElement("a",{href:Mn.url||Mn.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Mn.url||Mn.thumbUrl?void 0:Ki,onClick:ar=>gi(Mn,ar),title:gn.previewFile},typeof ei=="function"?ei(Mn):ei||zt.createElement(Pn.Z,null)):null,Tr=(Ln==="picture-card"||Ln==="picture-circle")&&Oi!=="uploading"&&zt.createElement("span",{className:`${un}-list-item-actions`},rr,Oi==="done"&&qn,Xi),{getPrefixCls:Ar}=zt.useContext(He.E_),Bi=Ar(),Di=zt.createElement("div",{className:yi},wi,yr,Tr,_i&&zt.createElement(Ut.default,{motionName:`${Bi}-fade`,visible:Oi==="uploading",motionDeadline:2e3},ar=>{let{className:Pi}=ar;const mi="percent"in Mn?zt.createElement(In.Z,Object.assign({},ln,{type:"line",percent:Mn.percent,"aria-label":Mn["aria-label"],"aria-labelledby":Mn["aria-labelledby"]})):null;return zt.createElement("div",{className:Qt()(`${un}-list-item-progress`,Pi)},mi)})),Mi=Mn.response&&typeof Mn.response=="string"?Mn.response:((bn=Mn.error)===null||bn===void 0?void 0:bn.statusText)||((er=Mn.error)===null||er===void 0?void 0:er.message)||gn.uploadError,lr=Oi==="error"?zt.createElement(Bn.Z,{title:Mi,getPopupContainer:ar=>ar.parentNode},Di):Di;return zt.createElement("div",{className:Qt()(`${un}-list-item-container`,sn),style:xn,ref:en},oi?oi(lr,Mn,Qn,{download:ii.bind(null,Mn),preview:gi.bind(null,Mn),remove:Li.bind(null,Mn)}):lr)});const ci=(_e,en)=>{const{listType:un="text",previewFile:sn=ke,onPreview:xn,onDownload:gn,onRemove:Ln,locale:Mn,iconRender:Qn,isImageUrl:ln=an,prefixCls:ti,items:vi=[],showPreviewIcon:oi=!0,showRemoveIcon:dn=!0,showDownloadIcon:Rn=!1,removeIcon:Xn,previewIcon:hi,downloadIcon:ei,progress:fi={size:[-1,2],showInfo:!1},appendAction:Ai,appendActionVisible:gi=!0,itemRender:ii,disabled:Li}=_e,bn=(0,St.Z)(),[er,En]=zt.useState(!1);zt.useEffect(()=>{un!=="picture"&&un!=="picture-card"&&un!=="picture-circle"||(vi||[]).forEach(Ki=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Ki.originFileObj instanceof File||Ki.originFileObj instanceof Blob)||Ki.thumbUrl!==void 0||(Ki.thumbUrl="",sn&&sn(Ki.originFileObj).then(rr=>{Ki.thumbUrl=rr||"",bn()}))})},[un,vi,sn]),zt.useEffect(()=>{En(!0)},[]);const Oi=(Ki,rr)=>{if(xn)return rr==null||rr.preventDefault(),xn(Ki)},wr=Ki=>{typeof gn=="function"?gn(Ki):Ki.url&&window.open(Ki.url)},_i=Ki=>{Ln==null||Ln(Ki)},kr=Ki=>{if(Qn)return Qn(Ki,un);const rr=Ki.status==="uploading",Tr=ln&&ln(Ki)?zt.createElement(Mt,null):zt.createElement($e,null);let Ar=rr?zt.createElement(Re.Z,null):zt.createElement(le,null);return un==="picture"?Ar=rr?zt.createElement(Re.Z,null):Tr:(un==="picture-card"||un==="picture-circle")&&(Ar=rr?Mn.uploading:Tr),Ar},gr=(Ki,rr,Tr,Ar)=>{const Bi={type:"text",size:"small",title:Ar,onClick:Di=>{rr(),(0,jt.l$)(Ki)&&Ki.props.onClick&&Ki.props.onClick(Di)},className:`${Tr}-list-item-action`,disabled:Li};if((0,jt.l$)(Ki)){const Di=(0,jt.Tm)(Ki,Object.assign(Object.assign({},Ki.props),{onClick:()=>{}}));return zt.createElement(Wt.ZP,Object.assign({},Bi,{icon:Di}))}return zt.createElement(Wt.ZP,Object.assign({},Bi),zt.createElement("span",null,Ki))};zt.useImperativeHandle(en,()=>({handlePreview:Oi,handleDownload:wr}));const{getPrefixCls:wi}=zt.useContext(He.E_),yi=wi("upload",ti),Zi=wi(),Xi=Qt()(`${yi}-list`,`${yi}-list-${un}`),qn=(0,gt.Z)(vi.map(Ki=>({key:Ki.uid,file:Ki})));let ji={motionDeadline:2e3,motionName:`${yi}-${un==="picture-card"||un==="picture-circle"?"animate-inline":"animate"}`,keys:qn,motionAppear:er};const yr=zt.useMemo(()=>{const Ki=Object.assign({},(0,wt.Z)(Zi));return delete Ki.onAppearEnd,delete Ki.onEnterEnd,delete Ki.onLeaveEnd,Ki},[Zi]);return un!=="picture-card"&&un!=="picture-circle"&&(ji=Object.assign(Object.assign({},yr),ji)),zt.createElement("div",{className:Xi},zt.createElement(Ut.CSSMotionList,Object.assign({},ji,{component:!1}),Ki=>{let{key:rr,file:Tr,className:Ar,style:Bi}=Ki;return zt.createElement(Gn,{key:rr,locale:Mn,prefixCls:yi,className:Ar,style:Bi,file:Tr,items:vi,progress:fi,listType:un,isImgUrl:ln,showPreviewIcon:oi,showRemoveIcon:dn,showDownloadIcon:Rn,removeIcon:Xn,previewIcon:hi,downloadIcon:ei,iconRender:kr,actionIconRender:gr,itemRender:ii,onPreview:Oi,onDownload:wr,onClose:_i})}),Ai&&zt.createElement(Ut.default,Object.assign({},ji,{visible:gi,forceRender:!0}),Ki=>{let{className:rr,style:Tr}=Ki;return(0,jt.Tm)(Ai,Ar=>({className:Qt()(Ar.className,rr),style:Object.assign(Object.assign(Object.assign({},Tr),{pointerEvents:rr?"none":void 0}),Ar.style)}))}))};var xi=zt.forwardRef(ci),Ci=Kt(17313),Gi=Kt(8378),qi=Kt(83116),bi=Kt(37613),ui=_e=>{const{componentCls:en,iconCls:un}=_e;return{[`${en}-wrapper`]:{[`${en}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:_e.colorFillAlter,border:`${_e.lineWidth}px dashed ${_e.colorBorder}`,borderRadius:_e.borderRadiusLG,cursor:"pointer",transition:`border-color ${_e.motionDurationSlow}`,[en]:{padding:`${_e.padding}px 0`},[`${en}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${en}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${en}-disabled):hover`]:{borderColor:_e.colorPrimaryHover},[`p${en}-drag-icon`]:{marginBottom:_e.margin,[un]:{color:_e.colorPrimary,fontSize:_e.uploadThumbnailSize}},[`p${en}-text`]:{margin:`0 0 ${_e.marginXXS}px`,color:_e.colorTextHeading,fontSize:_e.fontSizeLG},[`p${en}-hint`]:{color:_e.colorTextDescription,fontSize:_e.fontSize},[`&${en}-disabled`]:{cursor:"not-allowed",[`p${en}-drag-icon ${un},
|
|
|
p${en}-text,
|
|
|
p${en}-hint
|
|
|
`]:{color:_e.colorTextDisabled}}}}}},Wi=_e=>{const{componentCls:en,antCls:un,iconCls:sn,fontSize:xn,lineHeight:gn}=_e,Ln=`${en}-list-item`,Mn=`${Ln}-actions`,Qn=`${Ln}-action`,ln=Math.round(xn*gn);return{[`${en}-wrapper`]:{[`${en}-list`]:Object.assign(Object.assign({},(0,Ci.dF)()),{lineHeight:_e.lineHeight,[Ln]:{position:"relative",height:_e.lineHeight*xn,marginTop:_e.marginXS,fontSize:xn,display:"flex",alignItems:"center",transition:`background-color ${_e.motionDurationSlow}`,"&:hover":{backgroundColor:_e.controlItemBgHover},[`${Ln}-name`]:Object.assign(Object.assign({},Ci.vS),{padding:`0 ${_e.paddingXS}px`,lineHeight:gn,flex:"auto",transition:`all ${_e.motionDurationSlow}`}),[Mn]:{[Qn]:{opacity:0},[`${Qn}${un}-btn-sm`]:{height:ln,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
|
${Qn}:focus-visible,
|
|
|
&.picture ${Qn}
|
|
|
`]:{opacity:1},[sn]:{color:_e.actionsColor,transition:`all ${_e.motionDurationSlow}`},[`&:hover ${sn}`]:{color:_e.colorText}},[`${en}-icon ${sn}`]:{color:_e.colorTextDescription,fontSize:xn},[`${Ln}-progress`]:{position:"absolute",bottom:-_e.uploadProgressOffset,width:"100%",paddingInlineStart:xn+_e.paddingXS,fontSize:xn,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Ln}:hover ${Qn}`]:{opacity:1,color:_e.colorText},[`${Ln}-error`]:{color:_e.colorError,[`${Ln}-name, ${en}-icon ${sn}`]:{color:_e.colorError},[Mn]:{[`${sn}, ${sn}:hover`]:{color:_e.colorError},[Qn]:{opacity:1}}},[`${en}-list-item-container`]:{transition:`opacity ${_e.motionDurationSlow}, height ${_e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Fi=Kt(93083),nr=Kt(1950);const sr=new Fi.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),xr=new Fi.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Jn=_e=>{const{componentCls:en}=_e,un=`${en}-animate-inline`;return[{[`${en}-wrapper`]:{[`${un}-appear, ${un}-enter, ${un}-leave`]:{animationDuration:_e.motionDurationSlow,animationTimingFunction:_e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${un}-appear, ${un}-enter`]:{animationName:sr},[`${un}-leave`]:{animationName:xr}}},{[`${en}-wrapper`]:(0,nr.J$)(_e)},sr,xr]},_n=Kt(93398),qe=Kt(64993);const Qe=_e=>{const{componentCls:en,iconCls:un,uploadThumbnailSize:sn,uploadProgressOffset:xn}=_e,gn=`${en}-list`,Ln=`${gn}-item`;return{[`${en}-wrapper`]:{[`
|
|
|
${gn}${gn}-picture,
|
|
|
${gn}${gn}-picture-card,
|
|
|
${gn}${gn}-picture-circle
|
|
|
`]:{[Ln]:{position:"relative",height:sn+_e.lineWidth*2+_e.paddingXS*2,padding:_e.paddingXS,border:`${_e.lineWidth}px ${_e.lineType} ${_e.colorBorder}`,borderRadius:_e.borderRadiusLG,"&:hover":{background:"transparent"},[`${Ln}-thumbnail`]:Object.assign(Object.assign({},Ci.vS),{width:sn,height:sn,lineHeight:`${sn+_e.paddingSM}px`,textAlign:"center",flex:"none",[un]:{fontSize:_e.fontSizeHeading2,color:_e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Ln}-progress`]:{bottom:xn,width:`calc(100% - ${_e.paddingSM*2}px)`,marginTop:0,paddingInlineStart:sn+_e.paddingXS}},[`${Ln}-error`]:{borderColor:_e.colorError,[`${Ln}-thumbnail ${un}`]:{[`svg path[fill='${_n.blue[0]}']`]:{fill:_e.colorErrorBg},[`svg path[fill='${_n.blue.primary}']`]:{fill:_e.colorError}}},[`${Ln}-uploading`]:{borderStyle:"dashed",[`${Ln}-name`]:{marginBottom:xn}}},[`${gn}${gn}-picture-circle ${Ln}`]:{[`&, &::before, ${Ln}-thumbnail`]:{borderRadius:"50%"}}}}},we=_e=>{const{componentCls:en,iconCls:un,fontSizeLG:sn,colorTextLightSolid:xn}=_e,gn=`${en}-list`,Ln=`${gn}-item`,Mn=_e.uploadPicCardSize;return{[`
|
|
|
${en}-wrapper${en}-picture-card-wrapper,
|
|
|
${en}-wrapper${en}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,Ci.dF)()),{display:"inline-block",width:"100%",[`${en}${en}-select`]:{width:Mn,height:Mn,marginInlineEnd:_e.marginXS,marginBottom:_e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:_e.colorFillAlter,border:`${_e.lineWidth}px dashed ${_e.colorBorder}`,borderRadius:_e.borderRadiusLG,cursor:"pointer",transition:`border-color ${_e.motionDurationSlow}`,[`> ${en}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${en}-disabled):hover`]:{borderColor:_e.colorPrimary}},[`${gn}${gn}-picture-card, ${gn}${gn}-picture-circle`]:{[`${gn}-item-container`]:{display:"inline-block",width:Mn,height:Mn,marginBlock:`0 ${_e.marginXS}px`,marginInline:`0 ${_e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Ln]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${_e.paddingXS*2}px)`,height:`calc(100% - ${_e.paddingXS*2}px)`,backgroundColor:_e.colorBgMask,opacity:0,transition:`all ${_e.motionDurationSlow}`,content:'" "'}},[`${Ln}:hover`]:{[`&::before, ${Ln}-actions`]:{opacity:1}},[`${Ln}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${_e.motionDurationSlow}`,[`${un}-eye, ${un}-download, ${un}-delete`]:{zIndex:10,width:sn,margin:`0 ${_e.marginXXS}px`,fontSize:sn,cursor:"pointer",transition:`all ${_e.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Ln}-actions, ${Ln}-actions:hover`]:{[`${un}-eye, ${un}-download, ${un}-delete`]:{color:new qe.C(xn).setAlpha(.65).toRgbString(),"&:hover":{color:xn}}},[`${Ln}-thumbnail, ${Ln}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Ln}-name`]:{display:"none",textAlign:"center"},[`${Ln}-file + ${Ln}-name`]:{position:"absolute",bottom:_e.margin,display:"block",width:`calc(100% - ${_e.paddingXS*2}px)`},[`${Ln}-uploading`]:{[`&${Ln}`]:{backgroundColor:_e.colorFillAlter},[`&::before, ${un}-eye, ${un}-download, ${un}-delete`]:{display:"none"}},[`${Ln}-progress`]:{bottom:_e.marginXL,width:`calc(100% - ${_e.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${en}-wrapper${en}-picture-circle-wrapper`]:{[`${en}${en}-select`]:{borderRadius:"50%"}}}};var Sn=_e=>{const{componentCls:en}=_e;return{[`${en}-rtl`]:{direction:"rtl"}}};const ze=_e=>{const{componentCls:en,colorTextDisabled:un}=_e;return{[`${en}-wrapper`]:Object.assign(Object.assign({},(0,Ci.Wf)(_e)),{[en]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${en}-select`]:{display:"inline-block"},[`${en}-disabled`]:{color:un,cursor:"not-allowed"}})}};var Le=(0,qi.Z)("Upload",_e=>{const{fontSizeHeading3:en,fontSize:un,lineHeight:sn,lineWidth:xn,controlHeightLG:gn}=_e,Ln=Math.round(un*sn),Mn=(0,bi.TS)(_e,{uploadThumbnailSize:en*2,uploadProgressOffset:Ln/2+xn,uploadPicCardSize:gn*2.55});return[ze(Mn),ui(Mn),Qe(Mn),we(Mn),Wi(Mn),Jn(Mn),Sn(Mn),(0,Gi.Z)(Mn)]},_e=>({actionsColor:_e.colorTextDescription})),cn=function(_e,en,un,sn){function xn(gn){return gn instanceof un?gn:new un(function(Ln){Ln(gn)})}return new(un||(un=Promise))(function(gn,Ln){function Mn(ti){try{ln(sn.next(ti))}catch(vi){Ln(vi)}}function Qn(ti){try{ln(sn.throw(ti))}catch(vi){Ln(vi)}}function ln(ti){ti.done?gn(ti.value):xn(ti.value).then(Mn,Qn)}ln((sn=sn.apply(_e,en||[])).next())})};const wn=`__LIST_IGNORE_${Date.now()}__`,Nn=(_e,en)=>{const{fileList:un,defaultFileList:sn,onRemove:xn,showUploadList:gn=!0,listType:Ln="text",onPreview:Mn,onDownload:Qn,onChange:ln,onDrop:ti,previewFile:vi,disabled:oi,locale:dn,iconRender:Rn,isImageUrl:Xn,progress:hi,prefixCls:ei,className:fi,type:Ai="select",children:gi,style:ii,itemRender:Li,maxCount:bn,data:er={},multiple:En=!1,action:Oi="",accept:wr="",supportServerRender:_i=!0,rootClassName:kr}=_e,gr=zt.useContext(fe.Z),wi=oi!=null?oi:gr,[yi,Zi]=(0,Te.Z)(sn||[],{value:un,postState:Nr=>Nr!=null?Nr:[]}),[Xi,qn]=zt.useState("drop"),Se=zt.useRef(null);zt.useMemo(()=>{const Nr=Date.now();(un||[]).forEach((Pr,uo)=>{!Pr.uid&&!Object.isFrozen(Pr)&&(Pr.uid=`__AUTO__${Nr}_${uo}__`)})},[un]);const ji=(Nr,Pr,uo)=>{let Wr=(0,gt.Z)(Pr),Ji=!1;bn===1?Wr=Wr.slice(-1):bn&&(Ji=Wr.length>bn,Wr=Wr.slice(0,bn)),(0,me.flushSync)(()=>{Zi(Wr)});const $i={file:Nr,fileList:Wr};uo&&($i.event=uo),(!Ji||Wr.some(Uo=>Uo.uid===Nr.uid))&&(0,me.flushSync)(()=>{ln==null||ln($i)})},yr=(Nr,Pr)=>cn(void 0,void 0,void 0,function*(){const{beforeUpload:uo,transformFile:Wr}=_e;let Ji=Nr;if(uo){const $i=yield uo(Nr,Pr);if($i===!1)return!1;if(delete Nr[wn],$i===wn)return Object.defineProperty(Nr,wn,{value:!0,configurable:!0}),!1;typeof $i=="object"&&$i&&(Ji=$i)}return Wr&&(Ji=yield Wr(Ji)),Ji}),Ki=Nr=>{const Pr=Nr.filter(Ji=>!Ji.file[wn]);if(!Pr.length)return;const uo=Pr.map(Ji=>Vt(Ji.file));let Wr=(0,gt.Z)(yi);uo.forEach(Ji=>{Wr=oe(Ji,Wr)}),uo.forEach((Ji,$i)=>{let Uo=Ji;if(Pr[$i].parsedFile)Ji.status="uploading";else{const{originFileObj:zi}=Ji;let dr;try{dr=new File([zi],zi.name,{type:zi.type})}catch(pr){dr=new Blob([zi],{type:zi.type}),dr.name=zi.name,dr.lastModifiedDate=new Date,dr.lastModified=new Date().getTime()}dr.uid=Ji.uid,Uo=dr}ji(Uo,Wr)})},rr=(Nr,Pr,uo)=>{try{typeof Nr=="string"&&(Nr=JSON.parse(Nr))}catch($i){}if(!de(Pr,yi))return;const Wr=Vt(Pr);Wr.status="done",Wr.percent=100,Wr.response=Nr,Wr.xhr=uo;const Ji=oe(Wr,yi);ji(Wr,Ji)},Tr=(Nr,Pr)=>{if(!de(Pr,yi))return;const uo=Vt(Pr);uo.status="uploading",uo.percent=Nr.percent;const Wr=oe(uo,yi);ji(uo,Wr,Nr)},Ar=(Nr,Pr,uo)=>{if(!de(uo,yi))return;const Wr=Vt(uo);Wr.error=Nr,Wr.response=Pr,Wr.status="error";const Ji=oe(Wr,yi);ji(Wr,Ji)},Bi=Nr=>{let Pr;Promise.resolve(typeof xn=="function"?xn(Nr):xn).then(uo=>{var Wr;if(uo===!1)return;const Ji=Ge(Nr,yi);Ji&&(Pr=Object.assign(Object.assign({},Nr),{status:"removed"}),yi==null||yi.forEach($i=>{const Uo=Pr.uid!==void 0?"uid":"name";$i[Uo]===Pr[Uo]&&!Object.isFrozen($i)&&($i.status="removed")}),(Wr=Se.current)===null||Wr===void 0||Wr.abort(Pr),ji(Pr,Ji))})},Di=Nr=>{qn(Nr.type),Nr.type==="drop"&&(ti==null||ti(Nr))};zt.useImperativeHandle(en,()=>({onBatchStart:Ki,onSuccess:rr,onProgress:Tr,onError:Ar,fileList:yi,upload:Se.current}));const{getPrefixCls:Mi,direction:lr,upload:ar}=zt.useContext(He.E_),Pi=Mi("upload",ei),mi=Object.assign(Object.assign({onBatchStart:Ki,onError:Ar,onProgress:Tr,onSuccess:rr},_e),{data:er,multiple:En,action:Oi,accept:wr,supportServerRender:_i,prefixCls:Pi,disabled:wi,beforeUpload:yr,onChange:void 0});delete mi.className,delete mi.style,(!gi||wi)&&delete mi.id;const[Wn,Ti]=Le(Pi),[Sr]=(0,$t.Z)("Upload",ie.Z.Upload),{showRemoveIcon:Br,showPreviewIcon:Rr,showDownloadIcon:Vr,removeIcon:io,previewIcon:ro,downloadIcon:To}=typeof gn=="boolean"?{}:gn,oo=(Nr,Pr)=>gn?zt.createElement(xi,{prefixCls:Pi,listType:Ln,items:yi,previewFile:vi,onPreview:Mn,onDownload:Qn,onRemove:Bi,showRemoveIcon:!wi&&Br,showPreviewIcon:Rr,showDownloadIcon:Vr,removeIcon:io,previewIcon:ro,downloadIcon:To,iconRender:Rn,locale:Object.assign(Object.assign({},Sr),dn),isImageUrl:Xn,progress:hi,appendAction:Nr,appendActionVisible:Pr,itemRender:Li,disabled:wi}):Nr,ko=Qt()(`${Pi}-wrapper`,fi,kr,Ti,ar==null?void 0:ar.className,{[`${Pi}-rtl`]:lr==="rtl",[`${Pi}-picture-card-wrapper`]:Ln==="picture-card",[`${Pi}-picture-circle-wrapper`]:Ln==="picture-circle"}),yn=Object.assign(Object.assign({},ar==null?void 0:ar.style),ii);if(Ai==="drag"){const Nr=Qt()(Ti,Pi,`${Pi}-drag`,{[`${Pi}-drag-uploading`]:yi.some(Pr=>Pr.status==="uploading"),[`${Pi}-drag-hover`]:Xi==="dragover",[`${Pi}-disabled`]:wi,[`${Pi}-rtl`]:lr==="rtl"});return Wn(zt.createElement("span",{className:ko},zt.createElement("div",{className:Nr,style:yn,onDrop:Di,onDragOver:Di,onDragLeave:Di},zt.createElement(ye,Object.assign({},mi,{ref:Se,className:`${Pi}-btn`}),zt.createElement("div",{className:`${Pi}-drag-container`},gi))),oo()))}const so=Qt()(Pi,`${Pi}-select`,{[`${Pi}-disabled`]:wi}),vs=(Nr=>zt.createElement("div",{className:so,style:Nr},zt.createElement(ye,Object.assign({},mi,{ref:Se}))))(gi?void 0:{display:"none"});return Wn(Ln==="picture-card"||Ln==="picture-circle"?zt.createElement("span",{className:ko},oo(vs,!!gi)):zt.createElement("span",{className:ko},vs,oo()))};var Pe=zt.forwardRef(Nn),We=function(_e,en){var un={};for(var sn in _e)Object.prototype.hasOwnProperty.call(_e,sn)&&en.indexOf(sn)<0&&(un[sn]=_e[sn]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xn=0,sn=Object.getOwnPropertySymbols(_e);xn<sn.length;xn++)en.indexOf(sn[xn])<0&&Object.prototype.propertyIsEnumerable.call(_e,sn[xn])&&(un[sn[xn]]=_e[sn[xn]]);return un},On=zt.forwardRef((_e,en)=>{var{style:un,height:sn}=_e,xn=We(_e,["style","height"]);return zt.createElement(Pe,Object.assign({ref:en},xn,{type:"drag",style:Object.assign(Object.assign({},un),{height:sn})}))});const Ke=Pe;Ke.Dragger=On,Ke.LIST_IGNORE=wn;var nn=Ke},99498:function(Tn,Cn,Kt){(function(zt){zt(Kt(89780))})(function(zt){zt.defineOption("placeholder","",function(Ot,Rt,Ct){var Lt=Ct&&Ct!=zt.Init;if(Rt&&!Lt)Ot.on("blur",kt),Ot.on("change",Bt),Ot.on("swapDoc",Bt),zt.on(Ot.getInputField(),"compositionupdate",Ot.state.placeholderCompose=function(){Qt(Ot)}),Bt(Ot);else if(!Rt&&Lt){Ot.off("blur",kt),Ot.off("change",Bt),Ot.off("swapDoc",Bt),zt.off(Ot.getInputField(),"compositionupdate",Ot.state.placeholderCompose),gt(Ot);var At=Ot.getWrapperElement();At.className=At.className.replace(" CodeMirror-empty","")}Rt&&!Ot.hasFocus()&&kt(Ot)});function gt(Ot){Ot.state.placeholder&&(Ot.state.placeholder.parentNode.removeChild(Ot.state.placeholder),Ot.state.placeholder=null)}function Xt(Ot){gt(Ot);var Rt=Ot.state.placeholder=document.createElement("pre");Rt.style.cssText="height: 0; overflow: visible",Rt.style.direction=Ot.getOption("direction"),Rt.className="CodeMirror-placeholder CodeMirror-line-like";var Ct=Ot.getOption("placeholder");typeof Ct=="string"&&(Ct=document.createTextNode(Ct)),Rt.appendChild(Ct),Ot.display.lineSpace.insertBefore(Rt,Ot.display.lineSpace.firstChild)}function Qt(Ot){setTimeout(function(){var Rt=!1,Ct=Ot.getInputField();Ct.nodeName=="TEXTAREA"?Rt=!Ct.value:Ot.lineCount()==1&&(Rt=!/[^\u200b]/.test(Ct.querySelector(".CodeMirror-line").textContent)),Rt?Xt(Ot):gt(Ot)},20)}function kt(Ot){xt(Ot)&&Xt(Ot)}function Bt(Ot){var Rt=Ot.getWrapperElement(),Ct=xt(Ot);Rt.className=Rt.className.replace(" CodeMirror-empty","")+(Ct?" CodeMirror-empty":""),Ct?Xt(Ot):gt(Ot)}function xt(Ot){return Ot.lineCount()===1&&Ot.getLine(0)===""}})},25717:function(Tn,Cn,Kt){(function(zt){zt(Kt(89780))})(function(zt){var gt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Xt=zt.Pos;zt.defineOption("autoCloseBrackets",!1,function(et,tt,st){st&&st!=zt.Init&&(et.removeKeyMap(kt),et.state.closeBrackets=null),tt&&(Bt(Qt(tt,"pairs")),et.state.closeBrackets=tt,et.addKeyMap(kt))});function Qt(et,tt){return tt=="pairs"&&typeof et=="string"?et:typeof et=="object"&&et[tt]!=null?et[tt]:gt[tt]}var kt={Backspace:Rt,Enter:Ct};function Bt(et){for(var tt=0;tt<et.length;tt++){var st=et.charAt(tt),rt="'"+st+"'";kt[rt]||(kt[rt]=xt(st))}}Bt(gt.pairs+"`");function xt(et){return function(tt){return At(tt,et)}}function Ot(et){var tt=et.state.closeBrackets;if(!tt||tt.override)return tt;var st=et.getModeAt(et.getCursor());return st.closeBrackets||tt}function Rt(et){var tt=Ot(et);if(!tt||et.getOption("disableInput"))return zt.Pass;for(var st=Qt(tt,"pairs"),rt=et.listSelections(),ut=0;ut<rt.length;ut++){if(!rt[ut].empty())return zt.Pass;var ct=It(et,rt[ut].head);if(!ct||st.indexOf(ct)%2!=0)return zt.Pass}for(var ut=rt.length-1;ut>=0;ut--){var ft=rt[ut].head;et.replaceRange("",Xt(ft.line,ft.ch-1),Xt(ft.line,ft.ch+1),"+delete")}}function Ct(et){var tt=Ot(et),st=tt&&Qt(tt,"explode");if(!st||et.getOption("disableInput"))return zt.Pass;for(var rt=et.listSelections(),ut=0;ut<rt.length;ut++){if(!rt[ut].empty())return zt.Pass;var ct=It(et,rt[ut].head);if(!ct||st.indexOf(ct)%2!=0)return zt.Pass}et.operation(function(){var ft=et.lineSeparator()||`
|
|
|
`;et.replaceSelection(ft+ft,null),et.execCommand("goCharLeft"),rt=et.listSelections();for(var pt=0;pt<rt.length;pt++){var Pt=rt[pt].head.line;et.indentLine(Pt,null,!0),et.indentLine(Pt+1,null,!0)}})}function Lt(et){var tt=zt.cmpPos(et.anchor,et.head)>0;return{anchor:new Xt(et.anchor.line,et.anchor.ch+(tt?-1:1)),head:new Xt(et.head.line,et.head.ch+(tt?1:-1))}}function At(et,tt){var st=Ot(et);if(!st||et.getOption("disableInput"))return zt.Pass;var rt=Qt(st,"pairs"),ut=rt.indexOf(tt);if(ut==-1)return zt.Pass;for(var ct=Qt(st,"closeBefore"),ft=Qt(st,"triples"),pt=rt.charAt(ut+1)==tt,Pt=et.listSelections(),Dt=ut%2==0,Zt,Ft=0;Ft<Pt.length;Ft++){var qt=Pt[Ft],te=qt.head,Gt,ce=et.getRange(te,Xt(te.line,te.ch+1));if(Dt&&!qt.empty())Gt="surround";else if((pt||!Dt)&&ce==tt)pt&&mt(et,te)?Gt="both":ft.indexOf(tt)>=0&&et.getRange(te,Xt(te.line,te.ch+3))==tt+tt+tt?Gt="skipThree":Gt="skip";else if(pt&&te.ch>1&&ft.indexOf(tt)>=0&&et.getRange(Xt(te.line,te.ch-2),te)==tt+tt){if(te.ch>2&&/\bstring/.test(et.getTokenTypeAt(Xt(te.line,te.ch-2))))return zt.Pass;Gt="addFour"}else if(pt){var ae=te.ch==0?" ":et.getRange(Xt(te.line,te.ch-1),te);if(!zt.isWordChar(ce)&&ae!=tt&&!zt.isWordChar(ae))Gt="both";else return zt.Pass}else if(Dt&&(ce.length===0||/\s/.test(ce)||ct.indexOf(ce)>-1))Gt="both";else return zt.Pass;if(!Zt)Zt=Gt;else if(Zt!=Gt)return zt.Pass}var xe=ut%2?rt.charAt(ut-1):tt,ye=ut%2?tt:rt.charAt(ut+1);et.operation(function(){if(Zt=="skip")et.execCommand("goCharRight");else if(Zt=="skipThree")for(var Te=0;Te<3;Te++)et.execCommand("goCharRight");else if(Zt=="surround"){for(var me=et.getSelections(),Te=0;Te<me.length;Te++)me[Te]=xe+me[Te]+ye;et.replaceSelections(me,"around"),me=et.listSelections().slice();for(var Te=0;Te<me.length;Te++)me[Te]=Lt(me[Te]);et.setSelections(me)}else Zt=="both"?(et.replaceSelection(xe+ye,null),et.triggerElectric(xe+ye),et.execCommand("goCharLeft")):Zt=="addFour"&&(et.replaceSelection(xe+xe+xe+xe,"before"),et.execCommand("goCharRight"))})}function It(et,tt){var st=et.getRange(Xt(tt.line,tt.ch-1),Xt(tt.line,tt.ch+1));return st.length==2?st:null}function mt(et,tt){var st=et.getTokenAt(Xt(tt.line,tt.ch+1));return/\bstring/.test(st.type)&&st.start==tt.ch&&(tt.ch==0||!/\bstring/.test(et.getTokenTypeAt(tt)))}})},6313:function(Tn,Cn,Kt){(function(zt){zt(Kt(89780),Kt(32855))})(function(zt){zt.defineOption("autoCloseTags",!1,function(Rt,Ct,Lt){if(Lt!=zt.Init&&Lt&&Rt.removeKeyMap("autoCloseTags"),!!Ct){var At={name:"autoCloseTags"};(typeof Ct!="object"||Ct.whenClosing!==!1)&&(At["'/'"]=function(It){return Bt(It)}),(typeof Ct!="object"||Ct.whenOpening!==!1)&&(At["'>'"]=function(It){return Qt(It)}),Rt.addKeyMap(At)}});var gt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Xt=["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 Qt(Rt){if(Rt.getOption("disableInput"))return zt.Pass;for(var Ct=Rt.listSelections(),Lt=[],At=Rt.getOption("autoCloseTags"),It=0;It<Ct.length;It++){if(!Ct[It].empty())return zt.Pass;var mt=Ct[It].head,et=Rt.getTokenAt(mt),tt=zt.innerMode(Rt.getMode(),et.state),st=tt.state,rt=tt.mode.xmlCurrentTag&&tt.mode.xmlCurrentTag(st),ut=rt&&rt.name;if(!ut)return zt.Pass;var ct=tt.mode.configuration=="html",ft=typeof At=="object"&&At.dontCloseTags||ct&>,pt=typeof At=="object"&&At.indentTags||ct&&Xt;et.end>mt.ch&&(ut=ut.slice(0,ut.length-et.end+mt.ch));var Pt=ut.toLowerCase();if(!ut||et.type=="string"&&(et.end!=mt.ch||!/[\"\']/.test(et.string.charAt(et.string.length-1))||et.string.length==1)||et.type=="tag"&&rt.close||et.string.indexOf("/")==mt.ch-et.start-1||ft&&xt(ft,Pt)>-1||Ot(Rt,tt.mode.xmlCurrentContext&&tt.mode.xmlCurrentContext(st)||[],ut,mt,!0))return zt.Pass;var Dt=typeof At=="object"&&At.emptyTags;if(Dt&&xt(Dt,ut)>-1){Lt[It]={text:"/>",newPos:zt.Pos(mt.line,mt.ch+2)};continue}var Zt=pt&&xt(pt,Pt)>-1;Lt[It]={indent:Zt,text:">"+(Zt?`
|
|
|
|
|
|
`:"")+"</"+ut+">",newPos:Zt?zt.Pos(mt.line+1,0):zt.Pos(mt.line,mt.ch+1)}}for(var Ft=typeof At=="object"&&At.dontIndentOnAutoClose,It=Ct.length-1;It>=0;It--){var qt=Lt[It];Rt.replaceRange(qt.text,Ct[It].head,Ct[It].anchor,"+insert");var te=Rt.listSelections().slice(0);te[It]={head:qt.newPos,anchor:qt.newPos},Rt.setSelections(te),!Ft&&qt.indent&&(Rt.indentLine(qt.newPos.line,null,!0),Rt.indentLine(qt.newPos.line+1,null,!0))}}function kt(Rt,Ct){for(var Lt=Rt.listSelections(),At=[],It=Ct?"/":"</",mt=Rt.getOption("autoCloseTags"),et=typeof mt=="object"&&mt.dontIndentOnSlash,tt=0;tt<Lt.length;tt++){if(!Lt[tt].empty())return zt.Pass;var st=Lt[tt].head,rt=Rt.getTokenAt(st),ut=zt.innerMode(Rt.getMode(),rt.state),ct=ut.state;if(Ct&&(rt.type=="string"||rt.string.charAt(0)!="<"||rt.start!=st.ch-1))return zt.Pass;var ft,pt=ut.mode.name!="xml"&&Rt.getMode().name=="htmlmixed";if(pt&&ut.mode.name=="javascript")ft=It+"script";else if(pt&&ut.mode.name=="css")ft=It+"style";else{var Pt=ut.mode.xmlCurrentContext&&ut.mode.xmlCurrentContext(ct);if(!Pt||Pt.length&&Ot(Rt,Pt,Pt[Pt.length-1],st))return zt.Pass;ft=It+Pt[Pt.length-1]}Rt.getLine(st.line).charAt(rt.end)!=">"&&(ft+=">"),At[tt]=ft}if(Rt.replaceSelections(At),Lt=Rt.listSelections(),!et)for(var tt=0;tt<Lt.length;tt++)(tt==Lt.length-1||Lt[tt].head.line<Lt[tt+1].head.line)&&Rt.indentLine(Lt[tt].head.line)}function Bt(Rt){return Rt.getOption("disableInput")?zt.Pass:kt(Rt,!0)}zt.commands.closeTag=function(Rt){return kt(Rt)};function xt(Rt,Ct){if(Rt.indexOf)return Rt.indexOf(Ct);for(var Lt=0,At=Rt.length;Lt<At;++Lt)if(Rt[Lt]==Ct)return Lt;return-1}function Ot(Rt,Ct,Lt,At,It){if(!zt.scanForClosingTag)return!1;var mt=Math.min(Rt.lastLine()+1,At.line+500),et=zt.scanForClosingTag(Rt,At,null,mt);if(!et||et.tag!=Lt)return!1;for(var tt=It?1:0,st=Ct.length-1;st>=0&&Ct[st]==Lt;st--)++tt;At=et.to;for(var st=1;st<tt;st++){var rt=zt.scanForClosingTag(Rt,At,null,mt);if(!rt||rt.tag!=Lt)return!1;At=rt.to}return!0}})},32855:function(Tn,Cn,Kt){(function(zt){zt(Kt(89780))})(function(zt){"use strict";var gt=zt.Pos;function Xt(st,rt){return st.line-rt.line||st.ch-rt.ch}var Qt="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",kt=Qt+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Bt=new RegExp("<(/?)(["+Qt+"]["+kt+"]*)","g");function xt(st,rt,ut,ct){this.line=rt,this.ch=ut,this.cm=st,this.text=st.getLine(rt),this.min=ct?Math.max(ct.from,st.firstLine()):st.firstLine(),this.max=ct?Math.min(ct.to-1,st.lastLine()):st.lastLine()}function Ot(st,rt){var ut=st.cm.getTokenTypeAt(gt(st.line,rt));return ut&&/\btag\b/.test(ut)}function Rt(st){if(!(st.line>=st.max))return st.ch=0,st.text=st.cm.getLine(++st.line),!0}function Ct(st){if(!(st.line<=st.min))return st.text=st.cm.getLine(--st.line),st.ch=st.text.length,!0}function Lt(st){for(;;){var rt=st.text.indexOf(">",st.ch);if(rt==-1){if(Rt(st))continue;return}if(!Ot(st,rt+1)){st.ch=rt+1;continue}var ut=st.text.lastIndexOf("/",rt),ct=ut>-1&&!/\S/.test(st.text.slice(ut+1,rt));return st.ch=rt+1,ct?"selfClose":"regular"}}function At(st){for(;;){var rt=st.ch?st.text.lastIndexOf("<",st.ch-1):-1;if(rt==-1){if(Ct(st))continue;return}if(!Ot(st,rt+1)){st.ch=rt;continue}Bt.lastIndex=rt,st.ch=rt;var ut=Bt.exec(st.text);if(ut&&ut.index==rt)return ut}}function It(st){for(;;){Bt.lastIndex=st.ch;var rt=Bt.exec(st.text);if(!rt){if(Rt(st))continue;return}if(!Ot(st,rt.index+1)){st.ch=rt.index+1;continue}return st.ch=rt.index+rt[0].length,rt}}function mt(st){for(;;){var rt=st.ch?st.text.lastIndexOf(">",st.ch-1):-1;if(rt==-1){if(Ct(st))continue;return}if(!Ot(st,rt+1)){st.ch=rt;continue}var ut=st.text.lastIndexOf("/",rt),ct=ut>-1&&!/\S/.test(st.text.slice(ut+1,rt));return st.ch=rt+1,ct?"selfClose":"regular"}}function et(st,rt){for(var ut=[];;){var ct=It(st),ft,pt=st.line,Pt=st.ch-(ct?ct[0].length:0);if(!ct||!(ft=Lt(st)))return;if(ft!="selfClose")if(ct[1]){for(var Dt=ut.length-1;Dt>=0;--Dt)if(ut[Dt]==ct[2]){ut.length=Dt;break}if(Dt<0&&(!rt||rt==ct[2]))return{tag:ct[2],from:gt(pt,Pt),to:gt(st.line,st.ch)}}else ut.push(ct[2])}}function tt(st,rt){for(var ut=[];;){var ct=mt(st);if(!ct)return;if(ct=="selfClose"){At(st);continue}var ft=st.line,pt=st.ch,Pt=At(st);if(!Pt)return;if(Pt[1])ut.push(Pt[2]);else{for(var Dt=ut.length-1;Dt>=0;--Dt)if(ut[Dt]==Pt[2]){ut.length=Dt;break}if(Dt<0&&(!rt||rt==Pt[2]))return{tag:Pt[2],from:gt(st.line,st.ch),to:gt(ft,pt)}}}}zt.registerHelper("fold","xml",function(st,rt){for(var ut=new xt(st,rt.line,0);;){var ct=It(ut);if(!ct||ut.line!=rt.line)return;var ft=Lt(ut);if(!ft)return;if(!ct[1]&&ft!="selfClose"){var pt=gt(ut.line,ut.ch),Pt=et(ut,ct[2]);return Pt&&Xt(Pt.from,pt)>0?{from:pt,to:Pt.from}:null}}}),zt.findMatchingTag=function(st,rt,ut){var ct=new xt(st,rt.line,rt.ch,ut);if(!(ct.text.indexOf(">")==-1&&ct.text.indexOf("<")==-1)){var ft=Lt(ct),pt=ft&>(ct.line,ct.ch),Pt=ft&&At(ct);if(!(!ft||!Pt||Xt(ct,rt)>0)){var Dt={from:gt(ct.line,ct.ch),to:pt,tag:Pt[2]};return ft=="selfClose"?{open:Dt,close:null,at:"open"}:Pt[1]?{open:tt(ct,Pt[2]),close:Dt,at:"close"}:(ct=new xt(st,pt.line,pt.ch,ut),{open:Dt,close:et(ct,Pt[2]),at:"open"})}}},zt.findEnclosingTag=function(st,rt,ut,ct){for(var ft=new xt(st,rt.line,rt.ch,ut);;){var pt=tt(ft,ct);if(!pt)break;var Pt=new xt(st,rt.line,rt.ch,ut),Dt=et(Pt,pt.tag);if(Dt)return{open:pt,close:Dt}}},zt.scanForClosingTag=function(st,rt,ut,ct){var ft=new xt(st,rt.line,rt.ch,ct?{from:0,to:ct}:null);return et(ft,ut)}})},89780:function(Tn){(function(Cn,Kt){Tn.exports=Kt()})(this,function(){"use strict";var Cn=navigator.userAgent,Kt=navigator.platform,zt=/gecko\/\d/i.test(Cn),gt=/MSIE \d/.test(Cn),Xt=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Cn),Qt=/Edge\/(\d+)/.exec(Cn),kt=gt||Xt||Qt,Bt=kt&&(gt?document.documentMode||6:+(Qt||Xt)[1]),xt=!Qt&&/WebKit\//.test(Cn),Ot=xt&&/Qt\/\d+\.\d+/.test(Cn),Rt=!Qt&&/Chrome\//.test(Cn),Ct=/Opera\//.test(Cn),Lt=/Apple Computer/.test(navigator.vendor),At=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Cn),It=/PhantomJS/.test(Cn),mt=!Qt&&/AppleWebKit/.test(Cn)&&/Mobile\/\w+/.test(Cn),et=/Android/.test(Cn),tt=mt||et||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Cn),st=mt||/Mac/.test(Kt),rt=/\bCrOS\b/.test(Cn),ut=/win/i.test(Kt),ct=Ct&&Cn.match(/Version\/(\d*\.\d*)/);ct&&(ct=Number(ct[1])),ct&&ct>=15&&(Ct=!1,xt=!0);var ft=st&&(Ot||Ct&&(ct==null||ct<12.11)),pt=zt||kt&&Bt>=9;function Pt(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var Dt=function(it,lt){var yt=it.className,vt=Pt(lt).exec(yt);if(vt){var Nt=yt.slice(vt.index+vt[0].length);it.className=yt.slice(0,vt.index)+(Nt?vt[1]+Nt:"")}};function Zt(it){for(var lt=it.childNodes.length;lt>0;--lt)it.removeChild(it.firstChild);return it}function Ft(it,lt){return Zt(it).appendChild(lt)}function qt(it,lt,yt,vt){var Nt=document.createElement(it);if(yt&&(Nt.className=yt),vt&&(Nt.style.cssText=vt),typeof lt=="string")Nt.appendChild(document.createTextNode(lt));else if(lt)for(var re=0;re<lt.length;++re)Nt.appendChild(lt[re]);return Nt}function te(it,lt,yt,vt){var Nt=qt(it,lt,yt,vt);return Nt.setAttribute("role","presentation"),Nt}var Gt;document.createRange?Gt=function(it,lt,yt,vt){var Nt=document.createRange();return Nt.setEnd(vt||it,yt),Nt.setStart(it,lt),Nt}:Gt=function(it,lt,yt){var vt=document.body.createTextRange();try{vt.moveToElementText(it.parentNode)}catch(Nt){return vt}return vt.collapse(!0),vt.moveEnd("character",yt),vt.moveStart("character",lt),vt};function ce(it,lt){if(lt.nodeType==3&&(lt=lt.parentNode),it.contains)return it.contains(lt);do if(lt.nodeType==11&&(lt=lt.host),lt==it)return!0;while(lt=lt.parentNode)}function ae(){var it;try{it=document.activeElement}catch(lt){it=document.body||null}for(;it&&it.shadowRoot&&it.shadowRoot.activeElement;)it=it.shadowRoot.activeElement;return it}function xe(it,lt){var yt=it.className;Pt(lt).test(yt)||(it.className+=(yt?" ":"")+lt)}function ye(it,lt){for(var yt=it.split(" "),vt=0;vt<yt.length;vt++)yt[vt]&&!Pt(yt[vt]).test(lt)&&(lt+=" "+yt[vt]);return lt}var Te=function(it){it.select()};mt?Te=function(it){it.selectionStart=0,it.selectionEnd=it.value.length}:kt&&(Te=function(it){try{it.select()}catch(lt){}});function me(it){var lt=Array.prototype.slice.call(arguments,1);return function(){return it.apply(null,lt)}}function He(it,lt,yt){lt||(lt={});for(var vt in it)it.hasOwnProperty(vt)&&(yt!==!1||!lt.hasOwnProperty(vt))&&(lt[vt]=it[vt]);return lt}function fe(it,lt,yt,vt,Nt){lt==null&&(lt=it.search(/[^\s\u00a0]/),lt==-1&&(lt=it.length));for(var re=vt||0,pe=Nt||0;;){var Ee=it.indexOf(" ",re);if(Ee<0||Ee>=lt)return pe+(lt-re);pe+=Ee-re,pe+=yt-pe%yt,re=Ee+1}}var $t=function(){this.id=null,this.f=null,this.time=0,this.handler=me(this.onTimeout,this)};$t.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},$t.prototype.set=function(it,lt){this.f=lt;var yt=+new Date+it;(!this.id||yt<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,it),this.time=yt)};function ie(it,lt){for(var yt=0;yt<it.length;++yt)if(it[yt]==lt)return yt;return-1}var ue=50,ge={toString:function(){return"CodeMirror.Pass"}},he={scroll:!1},De={origin:"*mouse"},Ne={origin:"+move"};function $e(it,lt,yt){for(var vt=0,Nt=0;;){var re=it.indexOf(" ",vt);re==-1&&(re=it.length);var pe=re-vt;if(re==it.length||Nt+pe>=lt)return vt+Math.min(pe,lt-Nt);if(Nt+=re-vt,Nt+=yt-Nt%yt,vt=re+1,Nt>=lt)return vt}}var Re=[""];function tn(it){for(;Re.length<=it;)Re.push(Me(Re)+" ");return Re[it]}function Me(it){return it[it.length-1]}function Oe(it,lt){for(var yt=[],vt=0;vt<it.length;vt++)yt[vt]=lt(it[vt],vt);return yt}function Fe(it,lt,yt){for(var vt=0,Nt=yt(lt);vt<it.length&&yt(it[vt])<=Nt;)vt++;it.splice(vt,0,lt)}function le(){}function Tt(it,lt){var yt;return Object.create?yt=Object.create(it):(le.prototype=it,yt=new le),lt&&He(lt,yt),yt}var bt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function _t(it){return/\w/.test(it)||it>"\x80"&&(it.toUpperCase()!=it.toLowerCase()||bt.test(it))}function Yt(it,lt){return lt?lt.source.indexOf("\\w")>-1&&_t(it)?!0:lt.test(it):_t(it)}function Mt(it){for(var lt in it)if(it.hasOwnProperty(lt)&&it[lt])return!1;return!0}var Ut=/[\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 St(it){return it.charCodeAt(0)>=768&&Ut.test(it)}function wt(it,lt,yt){for(;(yt<0?lt>0:lt<it.length)&&St(it.charAt(lt));)lt+=yt;return lt}function jt(it,lt,yt){for(var vt=lt>yt?-1:1;;){if(lt==yt)return lt;var Nt=(lt+yt)/2,re=vt<0?Math.ceil(Nt):Math.floor(Nt);if(re==lt)return it(re)?lt:yt;it(re)?yt=re:lt=re+vt}}function Wt(it,lt,yt,vt){if(!it)return vt(lt,yt,"ltr",0);for(var Nt=!1,re=0;re<it.length;++re){var pe=it[re];(pe.from<yt&&pe.to>lt||lt==yt&&pe.to==lt)&&(vt(Math.max(pe.from,lt),Math.min(pe.to,yt),pe.level==1?"rtl":"ltr",re),Nt=!0)}Nt||vt(lt,yt,"ltr")}var Vt=null;function oe(it,lt,yt){var vt;Vt=null;for(var Nt=0;Nt<it.length;++Nt){var re=it[Nt];if(re.from<lt&&re.to>lt)return Nt;re.to==lt&&(re.from!=re.to&&yt=="before"?vt=Nt:Vt=Nt),re.from==lt&&(re.from!=re.to&&yt!="before"?vt=Nt:Vt=Nt)}return vt!=null?vt:Vt}var de=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",lt="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function yt(je){return je<=247?it.charAt(je):1424<=je&&je<=1524?"R":1536<=je&&je<=1785?lt.charAt(je-1536):1774<=je&&je<=2220?"r":8192<=je&&je<=8203?"w":je==8204?"b":"L"}var vt=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,Nt=/[stwN]/,re=/[LRr]/,pe=/[Lb1n]/,Ee=/[1n]/;function be(je,mn,Xe){this.level=je,this.from=mn,this.to=Xe}return function(je,mn){var Xe=mn=="ltr"?"L":"R";if(je.length==0||mn=="ltr"&&!vt.test(je))return!1;for(var Dn=je.length,kn=[],ni=0;ni<Dn;++ni)kn.push(yt(je.charCodeAt(ni)));for(var ai=0,Si=Xe;ai<Dn;++ai){var Ii=kn[ai];Ii=="m"?kn[ai]=Si:Si=Ii}for(var tr=0,Ui=Xe;tr<Dn;++tr){var or=kn[tr];or=="1"&&Ui=="r"?kn[tr]="n":re.test(or)&&(Ui=or,or=="r"&&(kn[tr]="R"))}for(var Mr=1,Hi=kn[0];Mr<Dn-1;++Mr){var Hr=kn[Mr];Hr=="+"&&Hi=="1"&&kn[Mr+1]=="1"?kn[Mr]="1":Hr==","&&Hi==kn[Mr+1]&&(Hi=="1"||Hi=="n")&&(kn[Mr]=Hi),Hi=Hr}for(var Fo=0;Fo<Dn;++Fo){var fs=kn[Fo];if(fs==",")kn[Fo]="N";else if(fs=="%"){var Zo=void 0;for(Zo=Fo+1;Zo<Dn&&kn[Zo]=="%";++Zo);for(var pa=Fo&&kn[Fo-1]=="!"||Zo<Dn&&kn[Zo]=="1"?"1":"N",Ks=Fo;Ks<Zo;++Ks)kn[Ks]=pa;Fo=Zo-1}}for(var as=0,Ma=Xe;as<Dn;++as){var Rs=kn[as];Ma=="L"&&Rs=="1"?kn[as]="L":re.test(Rs)&&(Ma=Rs)}for(var ls=0;ls<Dn;++ls)if(Nt.test(kn[ls])){var $r=void 0;for($r=ls+1;$r<Dn&&Nt.test(kn[$r]);++$r);for(var _o=(ls?kn[ls-1]:Xe)=="L",Es=($r<Dn?kn[$r]:Xe)=="L",js=_o==Es?_o?"L":"R":Xe,dl=ls;dl<$r;++dl)kn[dl]=js;ls=$r-1}for(var Xo=[],nl,qo=0;qo<Dn;)if(pe.test(kn[qo])){var fd=qo;for(++qo;qo<Dn&&pe.test(kn[qo]);++qo);Xo.push(new be(0,fd,qo))}else{var Ka=qo,Ta=Xo.length,ma=mn=="rtl"?1:0;for(++qo;qo<Dn&&kn[qo]!="L";++qo);for(var xo=Ka;xo<qo;)if(Ee.test(kn[xo])){Ka<xo&&(Xo.splice(Ta,0,new be(1,Ka,xo)),Ta+=ma);var Ls=xo;for(++xo;xo<qo&&Ee.test(kn[xo]);++xo);Xo.splice(Ta,0,new be(2,Ls,xo)),Ta+=ma,Ka=xo}else++xo;Ka<qo&&Xo.splice(Ta,0,new be(1,Ka,qo))}return mn=="ltr"&&(Xo[0].level==1&&(nl=je.match(/^\s+/))&&(Xo[0].from=nl[0].length,Xo.unshift(new be(0,0,nl[0].length))),Me(Xo).level==1&&(nl=je.match(/\s+$/))&&(Me(Xo).to-=nl[0].length,Xo.push(new be(0,Dn-nl[0].length,Dn)))),mn=="rtl"?Xo.reverse():Xo}}();function Ge(it,lt){var yt=it.order;return yt==null&&(yt=it.order=de(it.text,lt)),yt}var Ye=[],Ue=function(it,lt,yt){if(it.addEventListener)it.addEventListener(lt,yt,!1);else if(it.attachEvent)it.attachEvent("on"+lt,yt);else{var vt=it._handlers||(it._handlers={});vt[lt]=(vt[lt]||Ye).concat(yt)}};function an(it,lt){return it._handlers&&it._handlers[lt]||Ye}function vn(it,lt,yt){if(it.removeEventListener)it.removeEventListener(lt,yt,!1);else if(it.detachEvent)it.detachEvent("on"+lt,yt);else{var vt=it._handlers,Nt=vt&&vt[lt];if(Nt){var re=ie(Nt,yt);re>-1&&(vt[lt]=Nt.slice(0,re).concat(Nt.slice(re+1)))}}}function ke(it,lt){var yt=an(it,lt);if(yt.length)for(var vt=Array.prototype.slice.call(arguments,2),Nt=0;Nt<yt.length;++Nt)yt[Nt].apply(null,vt)}function Ze(it,lt,yt){return typeof lt=="string"&&(lt={type:lt,preventDefault:function(){this.defaultPrevented=!0}}),ke(it,yt||lt.type,it,lt),Gn(lt)||lt.codemirrorIgnore}function hn(it){var lt=it._handlers&&it._handlers.cursorActivity;if(lt)for(var yt=it.curOp.cursorActivityHandlers||(it.curOp.cursorActivityHandlers=[]),vt=0;vt<lt.length;++vt)ie(yt,lt[vt])==-1&&yt.push(lt[vt])}function Pn(it,lt){return an(it,lt).length>0}function In(it){it.prototype.on=function(lt,yt){Ue(this,lt,yt)},it.prototype.off=function(lt,yt){vn(this,lt,yt)}}function Bn(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function Zn(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function Gn(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function ci(it){Bn(it),Zn(it)}function pi(it){return it.target||it.srcElement}function xi(it){var lt=it.which;return lt==null&&(it.button&1?lt=1:it.button&2?lt=3:it.button&4&&(lt=2)),st&&it.ctrlKey&<==1&&(lt=3),lt}var Ci=function(){if(kt&&Bt<9)return!1;var it=qt("div");return"draggable"in it||"dragDrop"in it}(),Gi;function qi(it){if(Gi==null){var lt=qt("span","\u200B");Ft(it,qt("span",[lt,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(Gi=lt.offsetWidth<=1&<.offsetHeight>2&&!(kt&&Bt<8))}var yt=Gi?qt("span","\u200B"):qt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return yt.setAttribute("cm-text",""),yt}var bi;function Yi(it){if(bi!=null)return bi;var lt=Ft(it,document.createTextNode("A\u062EA")),yt=Gt(lt,0,1).getBoundingClientRect(),vt=Gt(lt,1,2).getBoundingClientRect();return Zt(it),!yt||yt.left==yt.right?!1:bi=vt.right-yt.right<3}var ui=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(it){for(var lt=0,yt=[],vt=it.length;lt<=vt;){var Nt=it.indexOf(`
|
|
|
`,lt);Nt==-1&&(Nt=it.length);var re=it.slice(lt,it.charAt(Nt-1)=="\r"?Nt-1:Nt),pe=re.indexOf("\r");pe!=-1?(yt.push(re.slice(0,pe)),lt+=pe+1):(yt.push(re),lt=Nt+1)}return yt}:function(it){return it.split(/\r\n?|\n/)},ne=window.getSelection?function(it){try{return it.selectionStart!=it.selectionEnd}catch(lt){return!1}}:function(it){var lt;try{lt=it.ownerDocument.selection.createRange()}catch(yt){}return!lt||lt.parentElement()!=it?!1:lt.compareEndPoints("StartToEnd",lt)!=0},Wi=function(){var it=qt("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),Fi=null;function nr(it){if(Fi!=null)return Fi;var lt=Ft(it,qt("span","x")),yt=lt.getBoundingClientRect(),vt=Gt(lt,0,1).getBoundingClientRect();return Fi=Math.abs(yt.left-vt.left)>1}var sr={},xr={};function vr(it,lt){arguments.length>2&&(lt.dependencies=Array.prototype.slice.call(arguments,2)),sr[it]=lt}function Jn(it,lt){xr[it]=lt}function _n(it){if(typeof it=="string"&&xr.hasOwnProperty(it))it=xr[it];else if(it&&typeof it.name=="string"&&xr.hasOwnProperty(it.name)){var lt=xr[it.name];typeof lt=="string"&&(lt={name:lt}),it=Tt(lt,it),it.name=lt.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return _n("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return _n("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function qe(it,lt){lt=_n(lt);var yt=sr[lt.name];if(!yt)return qe(it,"text/plain");var vt=yt(it,lt);if(Qe.hasOwnProperty(lt.name)){var Nt=Qe[lt.name];for(var re in Nt)Nt.hasOwnProperty(re)&&(vt.hasOwnProperty(re)&&(vt["_"+re]=vt[re]),vt[re]=Nt[re])}if(vt.name=lt.name,lt.helperType&&(vt.helperType=lt.helperType),lt.modeProps)for(var pe in lt.modeProps)vt[pe]=lt.modeProps[pe];return vt}var Qe={};function we(it,lt){var yt=Qe.hasOwnProperty(it)?Qe[it]:Qe[it]={};He(lt,yt)}function fn(it,lt){if(lt===!0)return lt;if(it.copyState)return it.copyState(lt);var yt={};for(var vt in lt){var Nt=lt[vt];Nt instanceof Array&&(Nt=Nt.concat([])),yt[vt]=Nt}return yt}function Sn(it,lt){for(var yt;it.innerMode&&(yt=it.innerMode(lt),!(!yt||yt.mode==it));)lt=yt.state,it=yt.mode;return yt||{mode:it,state:lt}}function ze(it,lt,yt){return it.startState?it.startState(lt,yt):!0}var Le=function(it,lt,yt){this.pos=this.start=0,this.string=it,this.tabSize=lt||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=yt};Le.prototype.eol=function(){return this.pos>=this.string.length},Le.prototype.sol=function(){return this.pos==this.lineStart},Le.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Le.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Le.prototype.eat=function(it){var lt=this.string.charAt(this.pos),yt;if(typeof it=="string"?yt=lt==it:yt=lt&&(it.test?it.test(lt):it(lt)),yt)return++this.pos,lt},Le.prototype.eatWhile=function(it){for(var lt=this.pos;this.eat(it););return this.pos>lt},Le.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},Le.prototype.skipToEnd=function(){this.pos=this.string.length},Le.prototype.skipTo=function(it){var lt=this.string.indexOf(it,this.pos);if(lt>-1)return this.pos=lt,!0},Le.prototype.backUp=function(it){this.pos-=it},Le.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=fe(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?fe(this.string,this.lineStart,this.tabSize):0)},Le.prototype.indentation=function(){return fe(this.string,null,this.tabSize)-(this.lineStart?fe(this.string,this.lineStart,this.tabSize):0)},Le.prototype.match=function(it,lt,yt){if(typeof it=="string"){var vt=function(pe){return yt?pe.toLowerCase():pe},Nt=this.string.substr(this.pos,it.length);if(vt(Nt)==vt(it))return lt!==!1&&(this.pos+=it.length),!0}else{var re=this.string.slice(this.pos).match(it);return re&&re.index>0?null:(re&<!==!1&&(this.pos+=re[0].length),re)}},Le.prototype.current=function(){return this.string.slice(this.start,this.pos)},Le.prototype.hideFirstChars=function(it,lt){this.lineStart+=it;try{return lt()}finally{this.lineStart-=it}},Le.prototype.lookAhead=function(it){var lt=this.lineOracle;return lt&<.lookAhead(it)},Le.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function cn(it,lt){if(lt-=it.first,lt<0||lt>=it.size)throw new Error("There is no line "+(lt+it.first)+" in the document.");for(var yt=it;!yt.lines;)for(var vt=0;;++vt){var Nt=yt.children[vt],re=Nt.chunkSize();if(lt<re){yt=Nt;break}lt-=re}return yt.lines[lt]}function wn(it,lt,yt){var vt=[],Nt=lt.line;return it.iter(lt.line,yt.line+1,function(re){var pe=re.text;Nt==yt.line&&(pe=pe.slice(0,yt.ch)),Nt==lt.line&&(pe=pe.slice(lt.ch)),vt.push(pe),++Nt}),vt}function Nn(it,lt,yt){var vt=[];return it.iter(lt,yt,function(Nt){vt.push(Nt.text)}),vt}function Hn(it,lt){var yt=lt-it.height;if(yt)for(var vt=it;vt;vt=vt.parent)vt.height+=yt}function Pe(it){if(it.parent==null)return null;for(var lt=it.parent,yt=ie(lt.lines,it),vt=lt.parent;vt;lt=vt,vt=vt.parent)for(var Nt=0;vt.children[Nt]!=lt;++Nt)yt+=vt.children[Nt].chunkSize();return yt+lt.first}function We(it,lt){var yt=it.first;t:do{for(var vt=0;vt<it.children.length;++vt){var Nt=it.children[vt],re=Nt.height;if(lt<re){it=Nt;continue t}lt-=re,yt+=Nt.chunkSize()}return yt}while(!it.lines);for(var pe=0;pe<it.lines.length;++pe){var Ee=it.lines[pe],be=Ee.height;if(lt<be)break;lt-=be}return yt+pe}function pn(it,lt){return lt>=it.first&<<it.first+it.size}function On(it,lt){return String(it.lineNumberFormatter(lt+it.firstLineNumber))}function Ke(it,lt,yt){if(yt===void 0&&(yt=null),!(this instanceof Ke))return new Ke(it,lt,yt);this.line=it,this.ch=lt,this.sticky=yt}function nn(it,lt){return it.line-lt.line||it.ch-lt.ch}function _e(it,lt){return it.sticky==lt.sticky&&nn(it,lt)==0}function en(it){return Ke(it.line,it.ch)}function un(it,lt){return nn(it,lt)<0?lt:it}function sn(it,lt){return nn(it,lt)<0?it:lt}function xn(it,lt){return Math.max(it.first,Math.min(lt,it.first+it.size-1))}function gn(it,lt){if(lt.line<it.first)return Ke(it.first,0);var yt=it.first+it.size-1;return lt.line>yt?Ke(yt,cn(it,yt).text.length):Ln(lt,cn(it,lt.line).text.length)}function Ln(it,lt){var yt=it.ch;return yt==null||yt>lt?Ke(it.line,lt):yt<0?Ke(it.line,0):it}function Mn(it,lt){for(var yt=[],vt=0;vt<lt.length;vt++)yt[vt]=gn(it,lt[vt]);return yt}var Qn=function(it,lt){this.state=it,this.lookAhead=lt},ln=function(it,lt,yt,vt){this.state=lt,this.doc=it,this.line=yt,this.maxLookAhead=vt||0,this.baseTokens=null,this.baseTokenPos=1};ln.prototype.lookAhead=function(it){var lt=this.doc.getLine(this.line+it);return lt!=null&&it>this.maxLookAhead&&(this.maxLookAhead=it),lt},ln.prototype.baseToken=function(it){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=it;)this.baseTokenPos+=2;var lt=this.baseTokens[this.baseTokenPos+1];return{type:lt&<.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-it}},ln.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ln.fromSaved=function(it,lt,yt){return lt instanceof Qn?new ln(it,fn(it.mode,lt.state),yt,lt.lookAhead):new ln(it,fn(it.mode,lt),yt)},ln.prototype.save=function(it){var lt=it!==!1?fn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Qn(lt,this.maxLookAhead):lt};function ti(it,lt,yt,vt){var Nt=[it.state.modeGen],re={};Ai(it,lt.text,it.doc.mode,yt,function(je,mn){return Nt.push(je,mn)},re,vt);for(var pe=yt.state,Ee=function(je){yt.baseTokens=Nt;var mn=it.state.overlays[je],Xe=1,Dn=0;yt.state=!0,Ai(it,lt.text,mn.mode,yt,function(kn,ni){for(var ai=Xe;Dn<kn;){var Si=Nt[Xe];Si>kn&&Nt.splice(Xe,1,kn,Nt[Xe+1],Si),Xe+=2,Dn=Math.min(kn,Si)}if(ni)if(mn.opaque)Nt.splice(ai,Xe-ai,kn,"overlay "+ni),Xe=ai+2;else for(;ai<Xe;ai+=2){var Ii=Nt[ai+1];Nt[ai+1]=(Ii?Ii+" ":"")+"overlay "+ni}},re),yt.state=pe,yt.baseTokens=null,yt.baseTokenPos=1},be=0;be<it.state.overlays.length;++be)Ee(be);return{styles:Nt,classes:re.bgClass||re.textClass?re:null}}function vi(it,lt,yt){if(!lt.styles||lt.styles[0]!=it.state.modeGen){var vt=oi(it,Pe(lt)),Nt=lt.text.length>it.options.maxHighlightLength&&fn(it.doc.mode,vt.state),re=ti(it,lt,vt);Nt&&(vt.state=Nt),lt.stateAfter=vt.save(!Nt),lt.styles=re.styles,re.classes?lt.styleClasses=re.classes:lt.styleClasses&&(lt.styleClasses=null),yt===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return lt.styles}function oi(it,lt,yt){var vt=it.doc,Nt=it.display;if(!vt.mode.startState)return new ln(vt,!0,lt);var re=gi(it,lt,yt),pe=re>vt.first&&cn(vt,re-1).stateAfter,Ee=pe?ln.fromSaved(vt,pe,re):new ln(vt,ze(vt.mode),re);return vt.iter(re,lt,function(be){dn(it,be.text,Ee);var je=Ee.line;be.stateAfter=je==lt-1||je%5==0||je>=Nt.viewFrom&&je<Nt.viewTo?Ee.save():null,Ee.nextLine()}),yt&&(vt.modeFrontier=Ee.line),Ee}function dn(it,lt,yt,vt){var Nt=it.doc.mode,re=new Le(lt,it.options.tabSize,yt);for(re.start=re.pos=vt||0,lt==""&&Rn(Nt,yt.state);!re.eol();)Xn(Nt,re,yt.state),re.start=re.pos}function Rn(it,lt){if(it.blankLine)return it.blankLine(lt);if(it.innerMode){var yt=Sn(it,lt);if(yt.mode.blankLine)return yt.mode.blankLine(yt.state)}}function Xn(it,lt,yt,vt){for(var Nt=0;Nt<10;Nt++){vt&&(vt[0]=Sn(it,yt).mode);var re=it.token(lt,yt);if(lt.pos>lt.start)return re}throw new Error("Mode "+it.name+" failed to advance stream.")}var hi=function(it,lt,yt){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=lt||null,this.state=yt};function ei(it,lt,yt,vt){var Nt=it.doc,re=Nt.mode,pe;lt=gn(Nt,lt);var Ee=cn(Nt,lt.line),be=oi(it,lt.line,yt),je=new Le(Ee.text,it.options.tabSize,be),mn;for(vt&&(mn=[]);(vt||je.pos<lt.ch)&&!je.eol();)je.start=je.pos,pe=Xn(re,je,be.state),vt&&mn.push(new hi(je,pe,fn(Nt.mode,be.state)));return vt?mn:new hi(je,pe,be.state)}function fi(it,lt){if(it)for(;;){var yt=it.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!yt)break;it=it.slice(0,yt.index)+it.slice(yt.index+yt[0].length);var vt=yt[1]?"bgClass":"textClass";lt[vt]==null?lt[vt]=yt[2]:new RegExp("(?:^|\\s)"+yt[2]+"(?:$|\\s)").test(lt[vt])||(lt[vt]+=" "+yt[2])}return it}function Ai(it,lt,yt,vt,Nt,re,pe){var Ee=yt.flattenSpans;Ee==null&&(Ee=it.options.flattenSpans);var be=0,je=null,mn=new Le(lt,it.options.tabSize,vt),Xe,Dn=it.options.addModeClass&&[null];for(lt==""&&fi(Rn(yt,vt.state),re);!mn.eol();){if(mn.pos>it.options.maxHighlightLength?(Ee=!1,pe&&dn(it,lt,vt,mn.pos),mn.pos=lt.length,Xe=null):Xe=fi(Xn(yt,mn,vt.state,Dn),re),Dn){var kn=Dn[0].name;kn&&(Xe="m-"+(Xe?kn+" "+Xe:kn))}if(!Ee||je!=Xe){for(;be<mn.start;)be=Math.min(mn.start,be+5e3),Nt(be,je);je=Xe}mn.start=mn.pos}for(;be<mn.pos;){var ni=Math.min(mn.pos,be+5e3);Nt(ni,je),be=ni}}function gi(it,lt,yt){for(var vt,Nt,re=it.doc,pe=yt?-1:lt-(it.doc.mode.innerMode?1e3:100),Ee=lt;Ee>pe;--Ee){if(Ee<=re.first)return re.first;var be=cn(re,Ee-1),je=be.stateAfter;if(je&&(!yt||Ee+(je instanceof Qn?je.lookAhead:0)<=re.modeFrontier))return Ee;var mn=fe(be.text,null,it.options.tabSize);(Nt==null||vt>mn)&&(Nt=Ee-1,vt=mn)}return Nt}function ii(it,lt){if(it.modeFrontier=Math.min(it.modeFrontier,lt),!(it.highlightFrontier<lt-10)){for(var yt=it.first,vt=lt-1;vt>yt;vt--){var Nt=cn(it,vt).stateAfter;if(Nt&&(!(Nt instanceof Qn)||vt+Nt.lookAhead<lt)){yt=vt+1;break}}it.highlightFrontier=Math.min(it.highlightFrontier,yt)}}var Li=!1,bn=!1;function er(){Li=!0}function En(){bn=!0}function Oi(it,lt,yt){this.marker=it,this.from=lt,this.to=yt}function wr(it,lt){if(it)for(var yt=0;yt<it.length;++yt){var vt=it[yt];if(vt.marker==lt)return vt}}function _i(it,lt){for(var yt,vt=0;vt<it.length;++vt)it[vt]!=lt&&(yt||(yt=[])).push(it[vt]);return yt}function kr(it,lt){it.markedSpans=it.markedSpans?it.markedSpans.concat([lt]):[lt],lt.marker.attachLine(it)}function gr(it,lt,yt){var vt;if(it)for(var Nt=0;Nt<it.length;++Nt){var re=it[Nt],pe=re.marker,Ee=re.from==null||(pe.inclusiveLeft?re.from<=lt:re.from<lt);if(Ee||re.from==lt&&pe.type=="bookmark"&&(!yt||!re.marker.insertLeft)){var be=re.to==null||(pe.inclusiveRight?re.to>=lt:re.to>lt);(vt||(vt=[])).push(new Oi(pe,re.from,be?null:re.to))}}return vt}function wi(it,lt,yt){var vt;if(it)for(var Nt=0;Nt<it.length;++Nt){var re=it[Nt],pe=re.marker,Ee=re.to==null||(pe.inclusiveRight?re.to>=lt:re.to>lt);if(Ee||re.from==lt&&pe.type=="bookmark"&&(!yt||re.marker.insertLeft)){var be=re.from==null||(pe.inclusiveLeft?re.from<=lt:re.from<lt);(vt||(vt=[])).push(new Oi(pe,be?null:re.from-lt,re.to==null?null:re.to-lt))}}return vt}function yi(it,lt){if(lt.full)return null;var yt=pn(it,lt.from.line)&&cn(it,lt.from.line).markedSpans,vt=pn(it,lt.to.line)&&cn(it,lt.to.line).markedSpans;if(!yt&&!vt)return null;var Nt=lt.from.ch,re=lt.to.ch,pe=nn(lt.from,lt.to)==0,Ee=gr(yt,Nt,pe),be=wi(vt,re,pe),je=lt.text.length==1,mn=Me(lt.text).length+(je?Nt:0);if(Ee)for(var Xe=0;Xe<Ee.length;++Xe){var Dn=Ee[Xe];if(Dn.to==null){var kn=wr(be,Dn.marker);kn?je&&(Dn.to=kn.to==null?null:kn.to+mn):Dn.to=Nt}}if(be)for(var ni=0;ni<be.length;++ni){var ai=be[ni];if(ai.to!=null&&(ai.to+=mn),ai.from==null){var Si=wr(Ee,ai.marker);Si||(ai.from=mn,je&&(Ee||(Ee=[])).push(ai))}else ai.from+=mn,je&&(Ee||(Ee=[])).push(ai)}Ee&&(Ee=Zi(Ee)),be&&be!=Ee&&(be=Zi(be));var Ii=[Ee];if(!je){var tr=lt.text.length-2,Ui;if(tr>0&&Ee)for(var or=0;or<Ee.length;++or)Ee[or].to==null&&(Ui||(Ui=[])).push(new Oi(Ee[or].marker,null,null));for(var Mr=0;Mr<tr;++Mr)Ii.push(Ui);Ii.push(be)}return Ii}function Zi(it){for(var lt=0;lt<it.length;++lt){var yt=it[lt];yt.from!=null&&yt.from==yt.to&&yt.marker.clearWhenEmpty!==!1&&it.splice(lt--,1)}return it.length?it:null}function Xi(it,lt,yt){var vt=null;if(it.iter(lt.line,yt.line+1,function(kn){if(kn.markedSpans)for(var ni=0;ni<kn.markedSpans.length;++ni){var ai=kn.markedSpans[ni].marker;ai.readOnly&&(!vt||ie(vt,ai)==-1)&&(vt||(vt=[])).push(ai)}}),!vt)return null;for(var Nt=[{from:lt,to:yt}],re=0;re<vt.length;++re)for(var pe=vt[re],Ee=pe.find(0),be=0;be<Nt.length;++be){var je=Nt[be];if(!(nn(je.to,Ee.from)<0||nn(je.from,Ee.to)>0)){var mn=[be,1],Xe=nn(je.from,Ee.from),Dn=nn(je.to,Ee.to);(Xe<0||!pe.inclusiveLeft&&!Xe)&&mn.push({from:je.from,to:Ee.from}),(Dn>0||!pe.inclusiveRight&&!Dn)&&mn.push({from:Ee.to,to:je.to}),Nt.splice.apply(Nt,mn),be+=mn.length-3}}return Nt}function qn(it){var lt=it.markedSpans;if(lt){for(var yt=0;yt<lt.length;++yt)lt[yt].marker.detachLine(it);it.markedSpans=null}}function Se(it,lt){if(lt){for(var yt=0;yt<lt.length;++yt)lt[yt].marker.attachLine(it);it.markedSpans=lt}}function ji(it){return it.inclusiveLeft?-1:0}function yr(it){return it.inclusiveRight?1:0}function Ki(it,lt){var yt=it.lines.length-lt.lines.length;if(yt!=0)return yt;var vt=it.find(),Nt=lt.find(),re=nn(vt.from,Nt.from)||ji(it)-ji(lt);if(re)return-re;var pe=nn(vt.to,Nt.to)||yr(it)-yr(lt);return pe||lt.id-it.id}function rr(it,lt){var yt=bn&&it.markedSpans,vt;if(yt)for(var Nt=void 0,re=0;re<yt.length;++re)Nt=yt[re],Nt.marker.collapsed&&(lt?Nt.from:Nt.to)==null&&(!vt||Ki(vt,Nt.marker)<0)&&(vt=Nt.marker);return vt}function Tr(it){return rr(it,!0)}function Ar(it){return rr(it,!1)}function Bi(it,lt){var yt=bn&&it.markedSpans,vt;if(yt)for(var Nt=0;Nt<yt.length;++Nt){var re=yt[Nt];re.marker.collapsed&&(re.from==null||re.from<lt)&&(re.to==null||re.to>lt)&&(!vt||Ki(vt,re.marker)<0)&&(vt=re.marker)}return vt}function Di(it,lt,yt,vt,Nt){var re=cn(it,lt),pe=bn&&re.markedSpans;if(pe)for(var Ee=0;Ee<pe.length;++Ee){var be=pe[Ee];if(be.marker.collapsed){var je=be.marker.find(0),mn=nn(je.from,yt)||ji(be.marker)-ji(Nt),Xe=nn(je.to,vt)||yr(be.marker)-yr(Nt);if(!(mn>=0&&Xe<=0||mn<=0&&Xe>=0)&&(mn<=0&&(be.marker.inclusiveRight&&Nt.inclusiveLeft?nn(je.to,yt)>=0:nn(je.to,yt)>0)||mn>=0&&(be.marker.inclusiveRight&&Nt.inclusiveLeft?nn(je.from,vt)<=0:nn(je.from,vt)<0)))return!0}}}function Mi(it){for(var lt;lt=Tr(it);)it=lt.find(-1,!0).line;return it}function lr(it){for(var lt;lt=Ar(it);)it=lt.find(1,!0).line;return it}function ar(it){for(var lt,yt;lt=Ar(it);)it=lt.find(1,!0).line,(yt||(yt=[])).push(it);return yt}function Pi(it,lt){var yt=cn(it,lt),vt=Mi(yt);return yt==vt?lt:Pe(vt)}function mi(it,lt){if(lt>it.lastLine())return lt;var yt=cn(it,lt),vt;if(!Wn(it,yt))return lt;for(;vt=Ar(yt);)yt=vt.find(1,!0).line;return Pe(yt)+1}function Wn(it,lt){var yt=bn&<.markedSpans;if(yt){for(var vt=void 0,Nt=0;Nt<yt.length;++Nt)if(vt=yt[Nt],!!vt.marker.collapsed){if(vt.from==null)return!0;if(!vt.marker.widgetNode&&vt.from==0&&vt.marker.inclusiveLeft&&Ti(it,lt,vt))return!0}}}function Ti(it,lt,yt){if(yt.to==null){var vt=yt.marker.find(1,!0);return Ti(it,vt.line,wr(vt.line.markedSpans,yt.marker))}if(yt.marker.inclusiveRight&&yt.to==lt.text.length)return!0;for(var Nt=void 0,re=0;re<lt.markedSpans.length;++re)if(Nt=lt.markedSpans[re],Nt.marker.collapsed&&!Nt.marker.widgetNode&&Nt.from==yt.to&&(Nt.to==null||Nt.to!=yt.from)&&(Nt.marker.inclusiveLeft||yt.marker.inclusiveRight)&&Ti(it,lt,Nt))return!0}function Sr(it){it=Mi(it);for(var lt=0,yt=it.parent,vt=0;vt<yt.lines.length;++vt){var Nt=yt.lines[vt];if(Nt==it)break;lt+=Nt.height}for(var re=yt.parent;re;yt=re,re=yt.parent)for(var pe=0;pe<re.children.length;++pe){var Ee=re.children[pe];if(Ee==yt)break;lt+=Ee.height}return lt}function Br(it){if(it.height==0)return 0;for(var lt=it.text.length,yt,vt=it;yt=Tr(vt);){var Nt=yt.find(0,!0);vt=Nt.from.line,lt+=Nt.from.ch-Nt.to.ch}for(vt=it;yt=Ar(vt);){var re=yt.find(0,!0);lt-=vt.text.length-re.from.ch,vt=re.to.line,lt+=vt.text.length-re.to.ch}return lt}function Rr(it){var lt=it.display,yt=it.doc;lt.maxLine=cn(yt,yt.first),lt.maxLineLength=Br(lt.maxLine),lt.maxLineChanged=!0,yt.iter(function(vt){var Nt=Br(vt);Nt>lt.maxLineLength&&(lt.maxLineLength=Nt,lt.maxLine=vt)})}var Vr=function(it,lt,yt){this.text=it,Se(this,lt),this.height=yt?yt(this):1};Vr.prototype.lineNo=function(){return Pe(this)},In(Vr);function io(it,lt,yt,vt){it.text=lt,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),qn(it),Se(it,yt);var Nt=vt?vt(it):1;Nt!=it.height&&Hn(it,Nt)}function ro(it){it.parent=null,qn(it)}var To={},oo={};function ko(it,lt){if(!it||/^\s*$/.test(it))return null;var yt=lt.addModeClass?oo:To;return yt[it]||(yt[it]=it.replace(/\S+/g,"cm-$&"))}function yn(it,lt){var yt=te("span",null,null,xt?"padding-right: .1px":null),vt={pre:te("pre",[yt],"CodeMirror-line"),content:yt,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};lt.measure={};for(var Nt=0;Nt<=(lt.rest?lt.rest.length:0);Nt++){var re=Nt?lt.rest[Nt-1]:lt.line,pe=void 0;vt.pos=0,vt.addToken=Pl,Yi(it.display.measure)&&(pe=Ge(re,it.doc.direction))&&(vt.addToken=Nr(vt.addToken,pe)),vt.map=[];var Ee=lt!=it.display.externalMeasured&&Pe(re);uo(re,vt,vi(it,re,Ee)),re.styleClasses&&(re.styleClasses.bgClass&&(vt.bgClass=ye(re.styleClasses.bgClass,vt.bgClass||"")),re.styleClasses.textClass&&(vt.textClass=ye(re.styleClasses.textClass,vt.textClass||""))),vt.map.length==0&&vt.map.push(0,0,vt.content.appendChild(qi(it.display.measure))),Nt==0?(lt.measure.map=vt.map,lt.measure.cache={}):((lt.measure.maps||(lt.measure.maps=[])).push(vt.map),(lt.measure.caches||(lt.measure.caches=[])).push({}))}if(xt){var be=vt.content.lastChild;(/\bcm-tab\b/.test(be.className)||be.querySelector&&be.querySelector(".cm-tab"))&&(vt.content.className="cm-tab-wrap-hack")}return ke(it,"renderLine",it,lt.line,vt.pre),vt.pre.className&&(vt.textClass=ye(vt.pre.className,vt.textClass||"")),vt}function so(it){var lt=qt("span","\u2022","cm-invalidchar");return lt.title="\\u"+it.charCodeAt(0).toString(16),lt.setAttribute("aria-label",lt.title),lt}function Pl(it,lt,yt,vt,Nt,re,pe){if(lt){var Ee=it.splitSpaces?vs(lt,it.trailingSpace):lt,be=it.cm.state.specialChars,je=!1,mn;if(!be.test(lt))it.col+=lt.length,mn=document.createTextNode(Ee),it.map.push(it.pos,it.pos+lt.length,mn),kt&&Bt<9&&(je=!0),it.pos+=lt.length;else{mn=document.createDocumentFragment();for(var Xe=0;;){be.lastIndex=Xe;var Dn=be.exec(lt),kn=Dn?Dn.index-Xe:lt.length-Xe;if(kn){var ni=document.createTextNode(Ee.slice(Xe,Xe+kn));kt&&Bt<9?mn.appendChild(qt("span",[ni])):mn.appendChild(ni),it.map.push(it.pos,it.pos+kn,ni),it.col+=kn,it.pos+=kn}if(!Dn)break;Xe+=kn+1;var ai=void 0;if(Dn[0]==" "){var Si=it.cm.options.tabSize,Ii=Si-it.col%Si;ai=mn.appendChild(qt("span",tn(Ii),"cm-tab")),ai.setAttribute("role","presentation"),ai.setAttribute("cm-text"," "),it.col+=Ii}else Dn[0]=="\r"||Dn[0]==`
|
|
|
`?(ai=mn.appendChild(qt("span",Dn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ai.setAttribute("cm-text",Dn[0]),it.col+=1):(ai=it.cm.options.specialCharPlaceholder(Dn[0]),ai.setAttribute("cm-text",Dn[0]),kt&&Bt<9?mn.appendChild(qt("span",[ai])):mn.appendChild(ai),it.col+=1);it.map.push(it.pos,it.pos+1,ai),it.pos++}}if(it.trailingSpace=Ee.charCodeAt(lt.length-1)==32,yt||vt||Nt||je||re||pe){var tr=yt||"";vt&&(tr+=vt),Nt&&(tr+=Nt);var Ui=qt("span",[mn],tr,re);if(pe)for(var or in pe)pe.hasOwnProperty(or)&&or!="style"&&or!="class"&&Ui.setAttribute(or,pe[or]);return it.content.appendChild(Ui)}it.content.appendChild(mn)}}function vs(it,lt){if(it.length>1&&!/ /.test(it))return it;for(var yt=lt,vt="",Nt=0;Nt<it.length;Nt++){var re=it.charAt(Nt);re==" "&&yt&&(Nt==it.length-1||it.charCodeAt(Nt+1)==32)&&(re="\xA0"),vt+=re,yt=re==" "}return vt}function Nr(it,lt){return function(yt,vt,Nt,re,pe,Ee,be){Nt=Nt?Nt+" cm-force-border":"cm-force-border";for(var je=yt.pos,mn=je+vt.length;;){for(var Xe=void 0,Dn=0;Dn<lt.length&&(Xe=lt[Dn],!(Xe.to>je&&Xe.from<=je));Dn++);if(Xe.to>=mn)return it(yt,vt,Nt,re,pe,Ee,be);it(yt,vt.slice(0,Xe.to-je),Nt,re,null,Ee,be),re=null,vt=vt.slice(Xe.to-je),je=Xe.to}}}function Pr(it,lt,yt,vt){var Nt=!vt&&yt.widgetNode;Nt&&it.map.push(it.pos,it.pos+lt,Nt),!vt&&it.cm.display.input.needsContentAttribute&&(Nt||(Nt=it.content.appendChild(document.createElement("span"))),Nt.setAttribute("cm-marker",yt.id)),Nt&&(it.cm.display.input.setUneditable(Nt),it.content.appendChild(Nt)),it.pos+=lt,it.trailingSpace=!1}function uo(it,lt,yt){var vt=it.markedSpans,Nt=it.text,re=0;if(!vt){for(var pe=1;pe<yt.length;pe+=2)lt.addToken(lt,Nt.slice(re,re=yt[pe]),ko(yt[pe+1],lt.cm.options));return}for(var Ee=Nt.length,be=0,je=1,mn="",Xe,Dn,kn=0,ni,ai,Si,Ii,tr;;){if(kn==be){ni=ai=Si=Dn="",tr=null,Ii=null,kn=1/0;for(var Ui=[],or=void 0,Mr=0;Mr<vt.length;++Mr){var Hi=vt[Mr],Hr=Hi.marker;if(Hr.type=="bookmark"&&Hi.from==be&&Hr.widgetNode)Ui.push(Hr);else if(Hi.from<=be&&(Hi.to==null||Hi.to>be||Hr.collapsed&&Hi.to==be&&Hi.from==be)){if(Hi.to!=null&&Hi.to!=be&&kn>Hi.to&&(kn=Hi.to,ai=""),Hr.className&&(ni+=" "+Hr.className),Hr.css&&(Dn=(Dn?Dn+";":"")+Hr.css),Hr.startStyle&&Hi.from==be&&(Si+=" "+Hr.startStyle),Hr.endStyle&&Hi.to==kn&&(or||(or=[])).push(Hr.endStyle,Hi.to),Hr.title&&((tr||(tr={})).title=Hr.title),Hr.attributes)for(var Fo in Hr.attributes)(tr||(tr={}))[Fo]=Hr.attributes[Fo];Hr.collapsed&&(!Ii||Ki(Ii.marker,Hr)<0)&&(Ii=Hi)}else Hi.from>be&&kn>Hi.from&&(kn=Hi.from)}if(or)for(var fs=0;fs<or.length;fs+=2)or[fs+1]==kn&&(ai+=" "+or[fs]);if(!Ii||Ii.from==be)for(var Zo=0;Zo<Ui.length;++Zo)Pr(lt,0,Ui[Zo]);if(Ii&&(Ii.from||0)==be){if(Pr(lt,(Ii.to==null?Ee+1:Ii.to)-be,Ii.marker,Ii.from==null),Ii.to==null)return;Ii.to==be&&(Ii=!1)}}if(be>=Ee)break;for(var pa=Math.min(Ee,kn);;){if(mn){var Ks=be+mn.length;if(!Ii){var as=Ks>pa?mn.slice(0,pa-be):mn;lt.addToken(lt,as,Xe?Xe+ni:ni,Si,be+as.length==kn?ai:"",Dn,tr)}if(Ks>=pa){mn=mn.slice(pa-be),be=pa;break}be=Ks,Si=""}mn=Nt.slice(re,re=yt[je++]),Xe=ko(yt[je++],lt.cm.options)}}}function Wr(it,lt,yt){this.line=lt,this.rest=ar(lt),this.size=this.rest?Pe(Me(this.rest))-yt+1:1,this.node=this.text=null,this.hidden=Wn(it,lt)}function Ji(it,lt,yt){for(var vt=[],Nt,re=lt;re<yt;re=Nt){var pe=new Wr(it.doc,cn(it.doc,re),re);Nt=re+pe.size,vt.push(pe)}return vt}var $i=null;function Uo(it){$i?$i.ops.push(it):it.ownsGroup=$i={ops:[it],delayedCallbacks:[]}}function zi(it){var lt=it.delayedCallbacks,yt=0;do{for(;yt<lt.length;yt++)lt[yt].call(null);for(var vt=0;vt<it.ops.length;vt++){var Nt=it.ops[vt];if(Nt.cursorActivityHandlers)for(;Nt.cursorActivityCalled<Nt.cursorActivityHandlers.length;)Nt.cursorActivityHandlers[Nt.cursorActivityCalled++].call(null,Nt.cm)}}while(yt<lt.length)}function dr(it,lt){var yt=it.ownsGroup;if(yt)try{zi(yt)}finally{$i=null,lt(yt)}}var pr=null;function li(it,lt){var yt=an(it,lt);if(yt.length){var vt=Array.prototype.slice.call(arguments,2),Nt;$i?Nt=$i.delayedCallbacks:pr?Nt=pr:(Nt=pr=[],setTimeout(no,0));for(var re=function(Ee){Nt.push(function(){return yt[Ee].apply(null,vt)})},pe=0;pe<yt.length;++pe)re(pe)}}function no(){var it=pr;pr=null;for(var lt=0;lt<it.length;++lt)it[lt]()}function bo(it,lt,yt,vt){for(var Nt=0;Nt<lt.changes.length;Nt++){var re=lt.changes[Nt];re=="text"?si(it,lt):re=="gutter"?No(it,lt,yt,vt):re=="class"?ao(it,lt):re=="widget"&&Pa(it,lt,vt)}lt.changes=null}function os(it){return it.node==it.text&&(it.node=qt("div",null,null,"position: relative"),it.text.parentNode&&it.text.parentNode.replaceChild(it.node,it.text),it.node.appendChild(it.text),kt&&Bt<8&&(it.node.style.zIndex=2)),it.node}function Js(it,lt){var yt=lt.bgClass?lt.bgClass+" "+(lt.line.bgClass||""):lt.line.bgClass;if(yt&&(yt+=" CodeMirror-linebackground"),lt.background)yt?lt.background.className=yt:(lt.background.parentNode.removeChild(lt.background),lt.background=null);else if(yt){var vt=os(lt);lt.background=vt.insertBefore(qt("div",null,yt),vt.firstChild),it.display.input.setUneditable(lt.background)}}function wa(it,lt){var yt=it.display.externalMeasured;return yt&&yt.line==lt.line?(it.display.externalMeasured=null,lt.measure=yt.measure,yt.built):yn(it,lt)}function si(it,lt){var yt=lt.text.className,vt=wa(it,lt);lt.text==lt.node&&(lt.node=vt.pre),lt.text.parentNode.replaceChild(vt.pre,lt.text),lt.text=vt.pre,vt.bgClass!=lt.bgClass||vt.textClass!=lt.textClass?(lt.bgClass=vt.bgClass,lt.textClass=vt.textClass,ao(it,lt)):yt&&(lt.text.className=yt)}function ao(it,lt){Js(it,lt),lt.line.wrapClass?os(lt).className=lt.line.wrapClass:lt.node!=lt.text&&(lt.node.className="");var yt=lt.textClass?lt.textClass+" "+(lt.line.textClass||""):lt.line.textClass;lt.text.className=yt||""}function No(it,lt,yt,vt){if(lt.gutter&&(lt.node.removeChild(lt.gutter),lt.gutter=null),lt.gutterBackground&&(lt.node.removeChild(lt.gutterBackground),lt.gutterBackground=null),lt.line.gutterClass){var Nt=os(lt);lt.gutterBackground=qt("div",null,"CodeMirror-gutter-background "+lt.line.gutterClass,"left: "+(it.options.fixedGutter?vt.fixedPos:-vt.gutterTotalWidth)+"px; width: "+vt.gutterTotalWidth+"px"),it.display.input.setUneditable(lt.gutterBackground),Nt.insertBefore(lt.gutterBackground,lt.text)}var re=lt.line.gutterMarkers;if(it.options.lineNumbers||re){var pe=os(lt),Ee=lt.gutter=qt("div",null,"CodeMirror-gutter-wrapper","left: "+(it.options.fixedGutter?vt.fixedPos:-vt.gutterTotalWidth)+"px");if(it.display.input.setUneditable(Ee),pe.insertBefore(Ee,lt.text),lt.line.gutterClass&&(Ee.className+=" "+lt.line.gutterClass),it.options.lineNumbers&&(!re||!re["CodeMirror-linenumbers"])&&(lt.lineNumber=Ee.appendChild(qt("div",On(it.options,yt),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+vt.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+it.display.lineNumInnerWidth+"px"))),re)for(var be=0;be<it.display.gutterSpecs.length;++be){var je=it.display.gutterSpecs[be].className,mn=re.hasOwnProperty(je)&&re[je];mn&&Ee.appendChild(qt("div",[mn],"CodeMirror-gutter-elt","left: "+vt.gutterLeft[je]+"px; width: "+vt.gutterWidth[je]+"px"))}}}function Pa(it,lt,yt){lt.alignable&&(lt.alignable=null);for(var vt=Pt("CodeMirror-linewidget"),Nt=lt.node.firstChild,re=void 0;Nt;Nt=re)re=Nt.nextSibling,vt.test(Nt.className)&<.node.removeChild(Nt);Ra(it,lt,yt)}function iu(it,lt,yt,vt){var Nt=wa(it,lt);return lt.text=lt.node=Nt.pre,Nt.bgClass&&(lt.bgClass=Nt.bgClass),Nt.textClass&&(lt.textClass=Nt.textClass),ao(it,lt),No(it,lt,yt,vt),Ra(it,lt,vt),lt.node}function Ra(it,lt,yt){if(ur(it,lt.line,lt,yt,!0),lt.rest)for(var vt=0;vt<lt.rest.length;vt++)ur(it,lt.rest[vt],lt,yt,!1)}function ur(it,lt,yt,vt,Nt){if(lt.widgets)for(var re=os(yt),pe=0,Ee=lt.widgets;pe<Ee.length;++pe){var be=Ee[pe],je=qt("div",[be.node],"CodeMirror-linewidget"+(be.className?" "+be.className:""));be.handleMouseEvents||je.setAttribute("cm-ignore-events","true"),ch(be,je,yt,vt),it.display.input.setUneditable(je),Nt&&be.above?re.insertBefore(je,yt.gutter||yt.text):re.appendChild(je),li(be,"redraw")}}function ch(it,lt,yt,vt){if(it.noHScroll){(yt.alignable||(yt.alignable=[])).push(lt);var Nt=vt.wrapperWidth;lt.style.left=vt.fixedPos+"px",it.coverGutter||(Nt-=vt.gutterTotalWidth,lt.style.paddingLeft=vt.gutterTotalWidth+"px"),lt.style.width=Nt+"px"}it.coverGutter&&(lt.style.zIndex=5,lt.style.position="relative",it.noHScroll||(lt.style.marginLeft=-vt.gutterTotalWidth+"px"))}function Qs(it){if(it.height!=null)return it.height;var lt=it.doc.cm;if(!lt)return 0;if(!ce(document.body,it.node)){var yt="position: relative;";it.coverGutter&&(yt+="margin-left: -"+lt.display.gutters.offsetWidth+"px;"),it.noHScroll&&(yt+="width: "+lt.display.wrapper.clientWidth+"px;"),Ft(lt.display.measure,qt("div",[it.node],null,yt))}return it.height=it.node.parentNode.offsetHeight}function $s(it,lt){for(var yt=pi(lt);yt!=it.wrapper;yt=yt.parentNode)if(!yt||yt.nodeType==1&&yt.getAttribute("cm-ignore-events")=="true"||yt.parentNode==it.sizer&&yt!=it.mover)return!0}function ta(it){return it.lineSpace.offsetTop}function Bl(it){return it.mover.offsetHeight-it.lineSpace.offsetHeight}function ru(it){if(it.cachedPaddingH)return it.cachedPaddingH;var lt=Ft(it.measure,qt("pre","x","CodeMirror-line-like")),yt=window.getComputedStyle?window.getComputedStyle(lt):lt.currentStyle,vt={left:parseInt(yt.paddingLeft),right:parseInt(yt.paddingRight)};return!isNaN(vt.left)&&!isNaN(vt.right)&&(it.cachedPaddingH=vt),vt}function ea(it){return ue-it.display.nativeBarWidth}function ba(it){return it.display.scroller.clientWidth-ea(it)-it.display.barWidth}function dh(it){return it.display.scroller.clientHeight-ea(it)-it.display.barHeight}function oc(it,lt,yt){var vt=it.options.lineWrapping,Nt=vt&&ba(it);if(!lt.measure.heights||vt&<.measure.width!=Nt){var re=lt.measure.heights=[];if(vt){lt.measure.width=Nt;for(var pe=lt.text.firstChild.getClientRects(),Ee=0;Ee<pe.length-1;Ee++){var be=pe[Ee],je=pe[Ee+1];Math.abs(be.bottom-je.bottom)>2&&re.push((be.bottom+je.top)/2-yt.top)}}re.push(yt.bottom-yt.top)}}function fh(it,lt,yt){if(it.line==lt)return{map:it.measure.map,cache:it.measure.cache};for(var vt=0;vt<it.rest.length;vt++)if(it.rest[vt]==lt)return{map:it.measure.maps[vt],cache:it.measure.caches[vt]};for(var Nt=0;Nt<it.rest.length;Nt++)if(Pe(it.rest[Nt])>yt)return{map:it.measure.maps[Nt],cache:it.measure.caches[Nt],before:!0}}function Gc(it,lt){lt=Mi(lt);var yt=Pe(lt),vt=it.display.externalMeasured=new Wr(it.doc,lt,yt);vt.lineN=yt;var Nt=vt.built=yn(it,vt);return vt.text=Nt.pre,Ft(it.display.lineMeasure,Nt.pre),vt}function gh(it,lt,yt,vt){return ja(it,Rl(it,lt),yt,vt)}function ph(it,lt){if(lt>=it.display.viewFrom&<<it.display.viewTo)return it.display.view[Ha(it,lt)];var yt=it.display.externalMeasured;if(yt&<>=yt.lineN&<<yt.lineN+yt.size)return yt}function Rl(it,lt){var yt=Pe(lt),vt=ph(it,yt);vt&&!vt.text?vt=null:vt&&vt.changes&&(bo(it,vt,yt,zd(it)),it.curOp.forceUpdate=!0),vt||(vt=Gc(it,lt));var Nt=fh(vt,lt,yt);return{line:lt,view:vt,rect:null,map:Nt.map,cache:Nt.cache,before:Nt.before,hasHeights:!1}}function ja(it,lt,yt,vt,Nt){lt.before&&(yt=-1);var re=yt+(vt||""),pe;return lt.cache.hasOwnProperty(re)?pe=lt.cache[re]:(lt.rect||(lt.rect=lt.view.text.getBoundingClientRect()),lt.hasHeights||(oc(it,lt.view,lt.rect),lt.hasHeights=!0),pe=Cr(it,lt,yt,vt),pe.bogus||(lt.cache[re]=pe)),{left:pe.left,right:pe.right,top:Nt?pe.rtop:pe.top,bottom:Nt?pe.rbottom:pe.bottom}}var sc={left:0,right:0,top:0,bottom:0};function mh(it,lt,yt){for(var vt,Nt,re,pe,Ee,be,je=0;je<it.length;je+=3)if(Ee=it[je],be=it[je+1],lt<Ee?(Nt=0,re=1,pe="left"):lt<be?(Nt=lt-Ee,re=Nt+1):(je==it.length-3||lt==be&&it[je+3]>lt)&&(re=be-Ee,Nt=re-1,lt>=be&&(pe="right")),Nt!=null){if(vt=it[je+2],Ee==be&&yt==(vt.insertLeft?"left":"right")&&(pe=yt),yt=="left"&&Nt==0)for(;je&&it[je-2]==it[je-3]&&it[je-1].insertLeft;)vt=it[(je-=3)+2],pe="left";if(yt=="right"&&Nt==be-Ee)for(;je<it.length-3&&it[je+3]==it[je+4]&&!it[je+5].insertLeft;)vt=it[(je+=3)+2],pe="right";break}return{node:vt,start:Nt,end:re,collapse:pe,coverStart:Ee,coverEnd:be}}function vh(it,lt){var yt=sc;if(lt=="left")for(var vt=0;vt<it.length&&(yt=it[vt]).left==yt.right;vt++);else for(var Nt=it.length-1;Nt>=0&&(yt=it[Nt]).left==yt.right;Nt--);return yt}function Cr(it,lt,yt,vt){var Nt=mh(lt.map,yt,vt),re=Nt.node,pe=Nt.start,Ee=Nt.end,be=Nt.collapse,je;if(re.nodeType==3){for(var mn=0;mn<4;mn++){for(;pe&&St(lt.line.text.charAt(Nt.coverStart+pe));)--pe;for(;Nt.coverStart+Ee<Nt.coverEnd&&St(lt.line.text.charAt(Nt.coverStart+Ee));)++Ee;if(kt&&Bt<9&&pe==0&&Ee==Nt.coverEnd-Nt.coverStart?je=re.parentNode.getBoundingClientRect():je=vh(Gt(re,pe,Ee).getClientRects(),vt),je.left||je.right||pe==0)break;Ee=pe,pe=pe-1,be="right"}kt&&Bt<11&&(je=Zr(it.display.measure,je))}else{pe>0&&(be=vt="right");var Xe;it.options.lineWrapping&&(Xe=re.getClientRects()).length>1?je=Xe[vt=="right"?Xe.length-1:0]:je=re.getBoundingClientRect()}if(kt&&Bt<9&&!pe&&(!je||!je.left&&!je.right)){var Dn=re.parentNode.getClientRects()[0];Dn?je={left:Dn.left,right:Dn.left+yh(it.display),top:Dn.top,bottom:Dn.bottom}:je=sc}for(var kn=je.top-lt.rect.top,ni=je.bottom-lt.rect.top,ai=(kn+ni)/2,Si=lt.view.measure.heights,Ii=0;Ii<Si.length-1&&!(ai<Si[Ii]);Ii++);var tr=Ii?Si[Ii-1]:0,Ui=Si[Ii],or={left:(be=="right"?je.right:je.left)-lt.rect.left,right:(be=="left"?je.left:je.right)-lt.rect.left,top:tr,bottom:Ui};return!je.left&&!je.right&&(or.bogus=!0),it.options.singleCursorHeightPerLine||(or.rtop=kn,or.rbottom=ni),or}function Zr(it,lt){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!nr(it))return lt;var yt=screen.logicalXDPI/screen.deviceXDPI,vt=screen.logicalYDPI/screen.deviceYDPI;return{left:lt.left*yt,right:lt.right*yt,top:lt.top*vt,bottom:lt.bottom*vt}}function ys(it){if(it.measure&&(it.measure.cache={},it.measure.heights=null,it.rest))for(var lt=0;lt<it.rest.length;lt++)it.measure.caches[lt]={}}function Ss(it){it.display.externalMeasure=null,Zt(it.display.lineMeasure);for(var lt=0;lt<it.display.view.length;lt++)ys(it.display.view[lt])}function Go(it){Ss(it),it.display.cachedCharWidth=it.display.cachedTextHeight=it.display.cachedPaddingH=null,it.options.lineWrapping||(it.display.maxLineChanged=!0),it.display.lineNumChars=null}function Co(){return Rt&&et?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Oo(){return Rt&&et?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Ko(it){var lt=0;if(it.widgets)for(var yt=0;yt<it.widgets.length;++yt)it.widgets[yt].above&&(lt+=Qs(it.widgets[yt]));return lt}function jo(it,lt,yt,vt,Nt){if(!Nt){var re=Ko(lt);yt.top+=re,yt.bottom+=re}if(vt=="line")return yt;vt||(vt="local");var pe=Sr(lt);if(vt=="local"?pe+=ta(it.display):pe-=it.display.viewOffset,vt=="page"||vt=="window"){var Ee=it.display.lineSpace.getBoundingClientRect();pe+=Ee.top+(vt=="window"?0:Oo());var be=Ee.left+(vt=="window"?0:Co());yt.left+=be,yt.right+=be}return yt.top+=pe,yt.bottom+=pe,yt}function bl(it,lt,yt){if(yt=="div")return lt;var vt=lt.left,Nt=lt.top;if(yt=="page")vt-=Co(),Nt-=Oo();else if(yt=="local"||!yt){var re=it.display.sizer.getBoundingClientRect();vt+=re.left,Nt+=re.top}var pe=it.display.lineSpace.getBoundingClientRect();return{left:vt-pe.left,top:Nt-pe.top}}function za(it,lt,yt,vt,Nt){return vt||(vt=cn(it.doc,lt.line)),jo(it,vt,gh(it,vt,lt.ch,Nt),yt)}function Mo(it,lt,yt,vt,Nt,re){vt=vt||cn(it.doc,lt.line),Nt||(Nt=Rl(it,vt));function pe(ni,ai){var Si=ja(it,Nt,ni,ai?"right":"left",re);return ai?Si.left=Si.right:Si.right=Si.left,jo(it,vt,Si,yt)}var Ee=Ge(vt,it.doc.direction),be=lt.ch,je=lt.sticky;if(be>=vt.text.length?(be=vt.text.length,je="before"):be<=0&&(be=0,je="after"),!Ee)return pe(je=="before"?be-1:be,je=="before");function mn(ni,ai,Si){var Ii=Ee[ai],tr=Ii.level==1;return pe(Si?ni-1:ni,tr!=Si)}var Xe=oe(Ee,be,je),Dn=Vt,kn=mn(be,Xe,je=="before");return Dn!=null&&(kn.other=mn(be,Dn,je!="before")),kn}function Bd(it,lt){var yt=0;lt=gn(it.doc,lt),it.options.lineWrapping||(yt=yh(it.display)*lt.ch);var vt=cn(it.doc,lt.line),Nt=Sr(vt)+ta(it.display);return{left:yt,right:yt,top:Nt,bottom:Nt+vt.height}}function Rd(it,lt,yt,vt,Nt){var re=Ke(it,lt,yt);return re.xRel=Nt,vt&&(re.outside=vt),re}function jd(it,lt,yt){var vt=it.doc;if(yt+=it.display.viewOffset,yt<0)return Rd(vt.first,0,null,-1,-1);var Nt=We(vt,yt),re=vt.first+vt.size-1;if(Nt>re)return Rd(vt.first+vt.size-1,cn(vt,re).text.length,null,1,1);lt<0&&(lt=0);for(var pe=cn(vt,Nt);;){var Ee=Un(it,pe,Nt,lt,yt),be=Bi(pe,Ee.ch+(Ee.xRel>0||Ee.outside>0?1:0));if(!be)return Ee;var je=be.find(1);if(je.line==Nt)return je;pe=cn(vt,Nt=je.line)}}function Vi(it,lt,yt,vt){vt-=Ko(lt);var Nt=lt.text.length,re=jt(function(pe){return ja(it,yt,pe-1).bottom<=vt},Nt,0);return Nt=jt(function(pe){return ja(it,yt,pe).top>vt},re,Nt),{begin:re,end:Nt}}function qf(it,lt,yt,vt){yt||(yt=Rl(it,lt));var Nt=jo(it,lt,ja(it,yt,vt),"line").top;return Vi(it,lt,yt,Nt)}function Je(it,lt,yt,vt){return it.bottom<=yt?!1:it.top>yt?!0:(vt?it.left:it.right)>lt}function Un(it,lt,yt,vt,Nt){Nt-=Sr(lt);var re=Rl(it,lt),pe=Ko(lt),Ee=0,be=lt.text.length,je=!0,mn=Ge(lt,it.doc.direction);if(mn){var Xe=(it.options.lineWrapping?Dp:Ip)(it,lt,yt,re,mn,vt,Nt);je=Xe.level!=1,Ee=je?Xe.from:Xe.to-1,be=je?Xe.to:Xe.from-1}var Dn=null,kn=null,ni=jt(function(Mr){var Hi=ja(it,re,Mr);return Hi.top+=pe,Hi.bottom+=pe,Je(Hi,vt,Nt,!1)?(Hi.top<=Nt&&Hi.left<=vt&&(Dn=Mr,kn=Hi),!0):!1},Ee,be),ai,Si,Ii=!1;if(kn){var tr=vt-kn.left<kn.right-vt,Ui=tr==je;ni=Dn+(Ui?0:1),Si=Ui?"after":"before",ai=tr?kn.left:kn.right}else{!je&&(ni==be||ni==Ee)&&ni++,Si=ni==0?"after":ni==lt.text.length?"before":ja(it,re,ni-(je?1:0)).bottom+pe<=Nt==je?"after":"before";var or=Mo(it,Ke(yt,ni,Si),"line",lt,re);ai=or.left,Ii=Nt<or.top?-1:Nt>=or.bottom?1:0}return ni=wt(lt.text,ni,1),Rd(yt,ni,Si,Ii,vt-ai)}function Ip(it,lt,yt,vt,Nt,re,pe){var Ee=jt(function(Xe){var Dn=Nt[Xe],kn=Dn.level!=1;return Je(Mo(it,Ke(yt,kn?Dn.to:Dn.from,kn?"before":"after"),"line",lt,vt),re,pe,!0)},0,Nt.length-1),be=Nt[Ee];if(Ee>0){var je=be.level!=1,mn=Mo(it,Ke(yt,je?be.from:be.to,je?"after":"before"),"line",lt,vt);Je(mn,re,pe,!0)&&mn.top>pe&&(be=Nt[Ee-1])}return be}function Dp(it,lt,yt,vt,Nt,re,pe){var Ee=Vi(it,lt,vt,pe),be=Ee.begin,je=Ee.end;/\s/.test(lt.text.charAt(je-1))&&je--;for(var mn=null,Xe=null,Dn=0;Dn<Nt.length;Dn++){var kn=Nt[Dn];if(!(kn.from>=je||kn.to<=be)){var ni=kn.level!=1,ai=ja(it,vt,ni?Math.min(je,kn.to)-1:Math.max(be,kn.from)).right,Si=ai<re?re-ai+1e9:ai-re;(!mn||Xe>Si)&&(mn=kn,Xe=Si)}}return mn||(mn=Nt[Nt.length-1]),mn.from<be&&(mn={from:be,to:mn.to,level:mn.level}),mn.to>je&&(mn={from:mn.from,to:je,level:mn.level}),mn}var ou;function su(it){if(it.cachedTextHeight!=null)return it.cachedTextHeight;if(ou==null){ou=qt("pre",null,"CodeMirror-line-like");for(var lt=0;lt<49;++lt)ou.appendChild(document.createTextNode("x")),ou.appendChild(qt("br"));ou.appendChild(document.createTextNode("x"))}Ft(it.measure,ou);var yt=ou.offsetHeight/50;return yt>3&&(it.cachedTextHeight=yt),Zt(it.measure),yt||1}function yh(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var lt=qt("span","xxxxxxxxxx"),yt=qt("pre",[lt],"CodeMirror-line-like");Ft(it.measure,yt);var vt=lt.getBoundingClientRect(),Nt=(vt.right-vt.left)/10;return Nt>2&&(it.cachedCharWidth=Nt),Nt||10}function zd(it){for(var lt=it.display,yt={},vt={},Nt=lt.gutters.clientLeft,re=lt.gutters.firstChild,pe=0;re;re=re.nextSibling,++pe){var Ee=it.display.gutterSpecs[pe].className;yt[Ee]=re.offsetLeft+re.clientLeft+Nt,vt[Ee]=re.clientWidth}return{fixedPos:Kc(lt),gutterTotalWidth:lt.gutters.offsetWidth,gutterLeft:yt,gutterWidth:vt,wrapperWidth:lt.wrapper.clientWidth}}function Kc(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function Io(it){var lt=su(it.display),yt=it.options.lineWrapping,vt=yt&&Math.max(5,it.display.scroller.clientWidth/yh(it.display)-3);return function(Nt){if(Wn(it.doc,Nt))return 0;var re=0;if(Nt.widgets)for(var pe=0;pe<Nt.widgets.length;pe++)Nt.widgets[pe].height&&(re+=Nt.widgets[pe].height);return yt?re+(Math.ceil(Nt.text.length/vt)||1)*lt:re+lt}}function fr(it){var lt=it.doc,yt=Io(it);lt.iter(function(vt){var Nt=yt(vt);Nt!=vt.height&&Hn(vt,Nt)})}function na(it,lt,yt,vt){var Nt=it.display;if(!yt&&pi(lt).getAttribute("cm-not-content")=="true")return null;var re,pe,Ee=Nt.lineSpace.getBoundingClientRect();try{re=lt.clientX-Ee.left,pe=lt.clientY-Ee.top}catch(Xe){return null}var be=jd(it,re,pe),je;if(vt&&be.xRel>0&&(je=cn(it.doc,be.line).text).length==be.ch){var mn=fe(je,je.length,it.options.tabSize)-je.length;be=Ke(be.line,Math.max(0,Math.round((re-ru(it.display).left)/yh(it.display))-mn))}return be}function Ha(it,lt){if(lt>=it.display.viewTo||(lt-=it.display.viewFrom,lt<0))return null;for(var yt=it.display.view,vt=0;vt<yt.length;vt++)if(lt-=yt[vt].size,lt<0)return vt}function Do(it,lt,yt,vt){lt==null&&(lt=it.doc.first),yt==null&&(yt=it.doc.first+it.doc.size),vt||(vt=0);var Nt=it.display;if(vt&&yt<Nt.viewTo&&(Nt.updateLineNumbers==null||Nt.updateLineNumbers>lt)&&(Nt.updateLineNumbers=lt),it.curOp.viewChanged=!0,lt>=Nt.viewTo)bn&&Pi(it.doc,lt)<Nt.viewTo&&$o(it);else if(yt<=Nt.viewFrom)bn&&mi(it.doc,yt+vt)>Nt.viewFrom?$o(it):(Nt.viewFrom+=vt,Nt.viewTo+=vt);else if(lt<=Nt.viewFrom&&yt>=Nt.viewTo)$o(it);else if(lt<=Nt.viewFrom){var re=da(it,yt,yt+vt,1);re?(Nt.view=Nt.view.slice(re.index),Nt.viewFrom=re.lineN,Nt.viewTo+=vt):$o(it)}else if(yt>=Nt.viewTo){var pe=da(it,lt,lt,-1);pe?(Nt.view=Nt.view.slice(0,pe.index),Nt.viewTo=pe.lineN):$o(it)}else{var Ee=da(it,lt,lt,-1),be=da(it,yt,yt+vt,1);Ee&&be?(Nt.view=Nt.view.slice(0,Ee.index).concat(Ji(it,Ee.lineN,be.lineN)).concat(Nt.view.slice(be.index)),Nt.viewTo+=vt):$o(it)}var je=Nt.externalMeasured;je&&(yt<je.lineN?je.lineN+=vt:lt<je.lineN+je.size&&(Nt.externalMeasured=null))}function jr(it,lt,yt){it.curOp.viewChanged=!0;var vt=it.display,Nt=it.display.externalMeasured;if(Nt&<>=Nt.lineN&<<Nt.lineN+Nt.size&&(vt.externalMeasured=null),!(lt<vt.viewFrom||lt>=vt.viewTo)){var re=vt.view[Ha(it,lt)];if(re.node!=null){var pe=re.changes||(re.changes=[]);ie(pe,yt)==-1&&pe.push(yt)}}}function $o(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function da(it,lt,yt,vt){var Nt=Ha(it,lt),re,pe=it.display.view;if(!bn||yt==it.doc.first+it.doc.size)return{index:Nt,lineN:yt};for(var Ee=it.display.viewFrom,be=0;be<Nt;be++)Ee+=pe[be].size;if(Ee!=lt){if(vt>0){if(Nt==pe.length-1)return null;re=Ee+pe[Nt].size-lt,Nt++}else re=Ee-lt;lt+=re,yt+=re}for(;Pi(it.doc,yt)!=yt;){if(Nt==(vt<0?0:pe.length-1))return null;yt+=vt*pe[Nt-(vt<0?1:0)].size,Nt+=vt}return{index:Nt,lineN:yt}}function yo(it,lt,yt){var vt=it.display,Nt=vt.view;Nt.length==0||lt>=vt.viewTo||yt<=vt.viewFrom?(vt.view=Ji(it,lt,yt),vt.viewFrom=lt):(vt.viewFrom>lt?vt.view=Ji(it,lt,vt.viewFrom).concat(vt.view):vt.viewFrom<lt&&(vt.view=vt.view.slice(Ha(it,lt))),vt.viewFrom=lt,vt.viewTo<yt?vt.view=vt.view.concat(Ji(it,vt.viewTo,yt)):vt.viewTo>yt&&(vt.view=vt.view.slice(0,Ha(it,yt)))),vt.viewTo=yt}function Ca(it){for(var lt=it.display.view,yt=0,vt=0;vt<lt.length;vt++){var Nt=lt[vt];!Nt.hidden&&(!Nt.node||Nt.changes)&&++yt}return yt}function hs(it){it.display.input.showSelection(it.display.input.prepareSelection())}function Lu(it,lt){lt===void 0&&(lt=!0);for(var yt=it.doc,vt={},Nt=vt.cursors=document.createDocumentFragment(),re=vt.selection=document.createDocumentFragment(),pe=0;pe<yt.sel.ranges.length;pe++)if(!(!lt&&pe==yt.sel.primIndex)){var Ee=yt.sel.ranges[pe];if(!(Ee.from().line>=it.display.viewTo||Ee.to().line<it.display.viewFrom)){var be=Ee.empty();(be||it.options.showCursorWhenSelecting)&&Yr(it,Ee.head,Nt),be||Xr(it,Ee,re)}}return vt}function Yr(it,lt,yt){var vt=Mo(it,lt,"div",null,null,!it.options.singleCursorHeightPerLine),Nt=yt.appendChild(qt("div","\xA0","CodeMirror-cursor"));if(Nt.style.left=vt.left+"px",Nt.style.top=vt.top+"px",Nt.style.height=Math.max(0,vt.bottom-vt.top)*it.options.cursorHeight+"px",vt.other){var re=yt.appendChild(qt("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));re.style.display="",re.style.left=vt.other.left+"px",re.style.top=vt.other.top+"px",re.style.height=(vt.other.bottom-vt.other.top)*.85+"px"}}function ia(it,lt){return it.top-lt.top||it.left-lt.left}function Xr(it,lt,yt){var vt=it.display,Nt=it.doc,re=document.createDocumentFragment(),pe=ru(it.display),Ee=pe.left,be=Math.max(vt.sizerWidth,ba(it)-vt.sizer.offsetLeft)-pe.right,je=Nt.direction=="ltr";function mn(Ui,or,Mr,Hi){or<0&&(or=0),or=Math.round(or),Hi=Math.round(Hi),re.appendChild(qt("div",null,"CodeMirror-selected","position: absolute; left: "+Ui+`px;
|
|
|
top: `+or+"px; width: "+(Mr==null?be-Ui:Mr)+`px;
|
|
|
height: `+(Hi-or)+"px"))}function Xe(Ui,or,Mr){var Hi=cn(Nt,Ui),Hr=Hi.text.length,Fo,fs;function Zo(as,Ma){return za(it,Ke(Ui,as),"div",Hi,Ma)}function pa(as,Ma,Rs){var ls=qf(it,Hi,null,as),$r=Ma=="ltr"==(Rs=="after")?"left":"right",_o=Rs=="after"?ls.begin:ls.end-(/\s/.test(Hi.text.charAt(ls.end-1))?2:1);return Zo(_o,$r)[$r]}var Ks=Ge(Hi,Nt.direction);return Wt(Ks,or||0,Mr==null?Hr:Mr,function(as,Ma,Rs,ls){var $r=Rs=="ltr",_o=Zo(as,$r?"left":"right"),Es=Zo(Ma-1,$r?"right":"left"),js=or==null&&as==0,dl=Mr==null&&Ma==Hr,Xo=ls==0,nl=!Ks||ls==Ks.length-1;if(Es.top-_o.top<=3){var qo=(je?js:dl)&&Xo,fd=(je?dl:js)&&nl,Ka=qo?Ee:($r?_o:Es).left,Ta=fd?be:($r?Es:_o).right;mn(Ka,_o.top,Ta-Ka,_o.bottom)}else{var ma,xo,Ls,Gl;$r?(ma=je&&js&&Xo?Ee:_o.left,xo=je?be:pa(as,Rs,"before"),Ls=je?Ee:pa(Ma,Rs,"after"),Gl=je&&dl&&nl?be:Es.right):(ma=je?pa(as,Rs,"before"):Ee,xo=!je&&js&&Xo?be:_o.right,Ls=!je&&dl&&nl?Ee:Es.left,Gl=je?pa(Ma,Rs,"after"):be),mn(ma,_o.top,xo-ma,_o.bottom),_o.bottom<Es.top&&mn(Ee,_o.bottom,null,Es.top),mn(Ls,Es.top,Gl-Ls,Es.bottom)}(!Fo||ia(_o,Fo)<0)&&(Fo=_o),ia(Es,Fo)<0&&(Fo=Es),(!fs||ia(_o,fs)<0)&&(fs=_o),ia(Es,fs)<0&&(fs=Es)}),{start:Fo,end:fs}}var Dn=lt.from(),kn=lt.to();if(Dn.line==kn.line)Xe(Dn.line,Dn.ch,kn.ch);else{var ni=cn(Nt,Dn.line),ai=cn(Nt,kn.line),Si=Mi(ni)==Mi(ai),Ii=Xe(Dn.line,Dn.ch,Si?ni.text.length+1:null).end,tr=Xe(kn.line,Si?0:null,kn.ch).start;Si&&(Ii.top<tr.top-2?(mn(Ii.right,Ii.top,null,Ii.bottom),mn(Ee,tr.top,tr.left,tr.bottom)):mn(Ii.right,Ii.top,tr.left-Ii.right,Ii.bottom)),Ii.bottom<tr.top&&mn(Ee,Ii.bottom,null,tr.top)}yt.appendChild(re)}function ho(it){if(it.state.focused){var lt=it.display;clearInterval(lt.blinker);var yt=!0;lt.cursorDiv.style.visibility="",it.options.cursorBlinkRate>0?lt.blinker=setInterval(function(){it.hasFocus()||Sh(it),lt.cursorDiv.style.visibility=(yt=!yt)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(lt.cursorDiv.style.visibility="hidden")}}function Eo(it){it.state.focused||(it.display.input.focus(),_r(it))}function zo(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,Sh(it))},100)}function _r(it,lt){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(ke(it,"focus",it,lt),it.state.focused=!0,xe(it.display.wrapper,"CodeMirror-focused"),!it.curOp&&it.display.selForContextMenu!=it.doc.sel&&(it.display.input.reset(),xt&&setTimeout(function(){return it.display.input.reset(!0)},20)),it.display.input.receivedFocus()),ho(it))}function Sh(it,lt){it.state.delayingBlurEvent||(it.state.focused&&(ke(it,"blur",it,lt),it.state.focused=!1,Dt(it.display.wrapper,"CodeMirror-focused")),clearInterval(it.display.blinker),setTimeout(function(){it.state.focused||(it.display.shift=!1)},150))}function hr(it){for(var lt=it.display,yt=lt.lineDiv.offsetTop,vt=0;vt<lt.view.length;vt++){var Nt=lt.view[vt],re=it.options.lineWrapping,pe=void 0,Ee=0;if(!Nt.hidden){if(kt&&Bt<8){var be=Nt.node.offsetTop+Nt.node.offsetHeight;pe=be-yt,yt=be}else{var je=Nt.node.getBoundingClientRect();pe=je.bottom-je.top,!re&&Nt.text.firstChild&&(Ee=Nt.text.firstChild.getBoundingClientRect().right-je.left-1)}var mn=Nt.line.height-pe;if((mn>.005||mn<-.005)&&(Hn(Nt.line,pe),Fp(Nt.line),Nt.rest))for(var Xe=0;Xe<Nt.rest.length;Xe++)Fp(Nt.rest[Xe]);if(Ee>it.display.sizerWidth){var Dn=Math.ceil(Ee/yh(it.display));Dn>it.display.maxLineLength&&(it.display.maxLineLength=Dn,it.display.maxLine=Nt.line,it.display.maxLineChanged=!0)}}}}function Fp(it){if(it.widgets)for(var lt=0;lt<it.widgets.length;++lt){var yt=it.widgets[lt],vt=yt.node.parentNode;vt&&(yt.height=vt.offsetHeight)}}function Kr(it,lt,yt){var vt=yt&&yt.top!=null?Math.max(0,yt.top):it.scroller.scrollTop;vt=Math.floor(vt-ta(it));var Nt=yt&&yt.bottom!=null?yt.bottom:vt+it.wrapper.clientHeight,re=We(lt,vt),pe=We(lt,Nt);if(yt&&yt.ensure){var Ee=yt.ensure.from.line,be=yt.ensure.to.line;Ee<re?(re=Ee,pe=We(lt,Sr(cn(lt,Ee))+it.wrapper.clientHeight)):Math.min(be,lt.lastLine())>=pe&&(re=We(lt,Sr(cn(lt,be))-it.wrapper.clientHeight),pe=be)}return{from:re,to:Math.max(pe,re+1)}}function Bp(it,lt){if(!Ze(it,"scrollCursorIntoView")){var yt=it.display,vt=yt.sizer.getBoundingClientRect(),Nt=null;if(lt.top+vt.top<0?Nt=!0:lt.bottom+vt.top>(window.innerHeight||document.documentElement.clientHeight)&&(Nt=!1),Nt!=null&&!It){var re=qt("div","\u200B",null,`position: absolute;
|
|
|
top: `+(lt.top-yt.viewOffset-ta(it.display))+`px;
|
|
|
height: `+(lt.bottom-lt.top+ea(it)+yt.barHeight)+`px;
|
|
|
left: `+lt.left+"px; width: "+Math.max(2,lt.right-lt.left)+"px;");it.display.lineSpace.appendChild(re),re.scrollIntoView(Nt),it.display.lineSpace.removeChild(re)}}}function ac(it,lt,yt,vt){vt==null&&(vt=0);var Nt;!it.options.lineWrapping&<==yt&&(lt=lt.ch?Ke(lt.line,lt.sticky=="before"?lt.ch-1:lt.ch,"after"):lt,yt=lt.sticky=="before"?Ke(lt.line,lt.ch+1,"before"):lt);for(var re=0;re<5;re++){var pe=!1,Ee=Mo(it,lt),be=!yt||yt==lt?Ee:Mo(it,yt);Nt={left:Math.min(Ee.left,be.left),top:Math.min(Ee.top,be.top)-vt,right:Math.max(Ee.left,be.left),bottom:Math.max(Ee.bottom,be.bottom)+vt};var je=$f(it,Nt),mn=it.doc.scrollTop,Xe=it.doc.scrollLeft;if(je.scrollTop!=null&&(wh(it,je.scrollTop),Math.abs(it.doc.scrollTop-mn)>1&&(pe=!0)),je.scrollLeft!=null&&(lu(it,je.scrollLeft),Math.abs(it.doc.scrollLeft-Xe)>1&&(pe=!0)),!pe)break}return Nt}function Vc(it,lt){var yt=$f(it,lt);yt.scrollTop!=null&&wh(it,yt.scrollTop),yt.scrollLeft!=null&&lu(it,yt.scrollLeft)}function $f(it,lt){var yt=it.display,vt=su(it.display);lt.top<0&&(lt.top=0);var Nt=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:yt.scroller.scrollTop,re=dh(it),pe={};lt.bottom-lt.top>re&&(lt.bottom=lt.top+re);var Ee=it.doc.height+Bl(yt),be=lt.top<vt,je=lt.bottom>Ee-vt;if(lt.top<Nt)pe.scrollTop=be?0:lt.top;else if(lt.bottom>Nt+re){var mn=Math.min(lt.top,(je?Ee:lt.bottom)-re);mn!=Nt&&(pe.scrollTop=mn)}var Xe=it.options.fixedGutter?0:yt.gutters.offsetWidth,Dn=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:yt.scroller.scrollLeft-Xe,kn=ba(it)-yt.gutters.offsetWidth,ni=lt.right-lt.left>kn;return ni&&(lt.right=lt.left+kn),lt.left<10?pe.scrollLeft=0:lt.left<Dn?pe.scrollLeft=Math.max(0,lt.left+Xe-(ni?0:10)):lt.right>kn+Dn-3&&(pe.scrollLeft=lt.right+(ni?0:10)-kn),pe}function Hd(it,lt){lt!=null&&(jl(it),it.curOp.scrollTop=(it.curOp.scrollTop==null?it.doc.scrollTop:it.curOp.scrollTop)+lt)}function au(it){jl(it);var lt=it.getCursor();it.curOp.scrollToPos={from:lt,to:lt,margin:it.options.cursorScrollMargin}}function xh(it,lt,yt){(lt!=null||yt!=null)&&jl(it),lt!=null&&(it.curOp.scrollLeft=lt),yt!=null&&(it.curOp.scrollTop=yt)}function Jr(it,lt){jl(it),it.curOp.scrollToPos=lt}function jl(it){var lt=it.curOp.scrollToPos;if(lt){it.curOp.scrollToPos=null;var yt=Bd(it,lt.from),vt=Bd(it,lt.to);Wd(it,yt,vt,lt.margin)}}function Wd(it,lt,yt,vt){var Nt=$f(it,{left:Math.min(lt.left,yt.left),top:Math.min(lt.top,yt.top)-vt,right:Math.max(lt.right,yt.right),bottom:Math.max(lt.bottom,yt.bottom)+vt});xh(it,Nt.scrollLeft,Nt.scrollTop)}function wh(it,lt){Math.abs(it.doc.scrollTop-lt)<2||(zt||Ou(it,{top:lt}),tg(it,lt,!0),zt&&Ou(it),lc(it,100))}function tg(it,lt,yt){lt=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,lt)),!(it.display.scroller.scrollTop==lt&&!yt)&&(it.doc.scrollTop=lt,it.display.scrollbars.setScrollTop(lt),it.display.scroller.scrollTop!=lt&&(it.display.scroller.scrollTop=lt))}function lu(it,lt,yt,vt){lt=Math.max(0,Math.min(lt,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((yt?lt==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-lt)<2)&&!vt)&&(it.doc.scrollLeft=lt,Kd(it),it.display.scroller.scrollLeft!=lt&&(it.display.scroller.scrollLeft=lt),it.display.scrollbars.setScrollLeft(lt))}function qa(it){var lt=it.display,yt=lt.gutters.offsetWidth,vt=Math.round(it.doc.height+Bl(it.display));return{clientHeight:lt.scroller.clientHeight,viewHeight:lt.wrapper.clientHeight,scrollWidth:lt.scroller.scrollWidth,clientWidth:lt.scroller.clientWidth,viewWidth:lt.wrapper.clientWidth,barLeft:it.options.fixedGutter?yt:0,docHeight:vt,scrollHeight:vt+ea(it)+lt.barHeight,nativeBarWidth:lt.nativeBarWidth,gutterWidth:yt}}var Au=function(it,lt,yt){this.cm=yt;var vt=this.vert=qt("div",[qt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),Nt=this.horiz=qt("div",[qt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");vt.tabIndex=Nt.tabIndex=-1,it(vt),it(Nt),Ue(vt,"scroll",function(){vt.clientHeight&<(vt.scrollTop,"vertical")}),Ue(Nt,"scroll",function(){Nt.clientWidth&<(Nt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,kt&&Bt<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Au.prototype.update=function(it){var lt=it.scrollWidth>it.clientWidth+1,yt=it.scrollHeight>it.clientHeight+1,vt=it.nativeBarWidth;if(yt){this.vert.style.display="block",this.vert.style.bottom=lt?vt+"px":"0";var Nt=it.viewHeight-(lt?vt:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+Nt)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(lt){this.horiz.style.display="block",this.horiz.style.right=yt?vt+"px":"0",this.horiz.style.left=it.barLeft+"px";var re=it.viewWidth-it.barLeft-(yt?vt:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+re)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(vt==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:yt?vt:0,bottom:lt?vt:0}},Au.prototype.setScrollLeft=function(it){this.horiz.scrollLeft!=it&&(this.horiz.scrollLeft=it),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Au.prototype.setScrollTop=function(it){this.vert.scrollTop!=it&&(this.vert.scrollTop=it),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Au.prototype.zeroWidthHack=function(){var it=st&&!At?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new $t,this.disableVert=new $t},Au.prototype.enableZeroWidthBar=function(it,lt,yt){it.style.pointerEvents="auto";function vt(){var Nt=it.getBoundingClientRect(),re=yt=="vert"?document.elementFromPoint(Nt.right-1,(Nt.top+Nt.bottom)/2):document.elementFromPoint((Nt.right+Nt.left)/2,Nt.bottom-1);re!=it?it.style.pointerEvents="none":lt.set(1e3,vt)}lt.set(1e3,vt)},Au.prototype.clear=function(){var it=this.horiz.parentNode;it.removeChild(this.horiz),it.removeChild(this.vert)};var Cl=function(){};Cl.prototype.update=function(){return{bottom:0,right:0}},Cl.prototype.setScrollLeft=function(){},Cl.prototype.setScrollTop=function(){},Cl.prototype.clear=function(){};function Mu(it,lt){lt||(lt=qa(it));var yt=it.display.barWidth,vt=it.display.barHeight;Ud(it,lt);for(var Nt=0;Nt<4&&yt!=it.display.barWidth||vt!=it.display.barHeight;Nt++)yt!=it.display.barWidth&&it.options.lineWrapping&&hr(it),Ud(it,qa(it)),yt=it.display.barWidth,vt=it.display.barHeight}function Ud(it,lt){var yt=it.display,vt=yt.scrollbars.update(lt);yt.sizer.style.paddingRight=(yt.barWidth=vt.right)+"px",yt.sizer.style.paddingBottom=(yt.barHeight=vt.bottom)+"px",yt.heightForcer.style.borderBottom=vt.bottom+"px solid transparent",vt.right&&vt.bottom?(yt.scrollbarFiller.style.display="block",yt.scrollbarFiller.style.height=vt.bottom+"px",yt.scrollbarFiller.style.width=vt.right+"px"):yt.scrollbarFiller.style.display="",vt.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(yt.gutterFiller.style.display="block",yt.gutterFiller.style.height=vt.bottom+"px",yt.gutterFiller.style.width=lt.gutterWidth+"px"):yt.gutterFiller.style.display=""}var eg={native:Au,null:Cl};function ng(it){it.display.scrollbars&&(it.display.scrollbars.clear(),it.display.scrollbars.addClass&&Dt(it.display.wrapper,it.display.scrollbars.addClass)),it.display.scrollbars=new eg[it.options.scrollbarStyle](function(lt){it.display.wrapper.insertBefore(lt,it.display.scrollbarFiller),Ue(lt,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),lt.setAttribute("cm-not-content","true")},function(lt,yt){yt=="horizontal"?lu(it,lt):wh(it,lt)},it),it.display.scrollbars.addClass&&xe(it.display.wrapper,it.display.scrollbars.addClass)}var Rp=0;function Tu(it){it.curOp={cm:it,viewChanged:!1,startHeight:it.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:++Rp},Uo(it.curOp)}function ku(it){var lt=it.curOp;lt&&dr(lt,function(yt){for(var vt=0;vt<yt.ops.length;vt++)yt.ops[vt].cm.curOp=null;Q0(yt)})}function Q0(it){for(var lt=it.ops,yt=0;yt<lt.length;yt++)q0(lt[yt]);for(var vt=0;vt<lt.length;vt++)$0(lt[vt]);for(var Nt=0;Nt<lt.length;Nt++)jp(lt[Nt]);for(var re=0;re<lt.length;re++)Yo(lt[re]);for(var pe=0;pe<lt.length;pe++)Nu(lt[pe])}function q0(it){var lt=it.cm,yt=lt.display;zp(lt),it.updateMaxLine&&Rr(lt),it.mustUpdate=it.viewChanged||it.forceUpdate||it.scrollTop!=null||it.scrollToPos&&(it.scrollToPos.from.line<yt.viewFrom||it.scrollToPos.to.line>=yt.viewTo)||yt.maxLineChanged&<.options.lineWrapping,it.update=it.mustUpdate&&new Ph(lt,it.mustUpdate&&{top:it.scrollTop,ensure:it.scrollToPos},it.forceUpdate)}function $0(it){it.updatedDisplay=it.mustUpdate&&Gd(it.cm,it.update)}function jp(it){var lt=it.cm,yt=lt.display;it.updatedDisplay&&hr(lt),it.barMeasure=qa(lt),yt.maxLineChanged&&!lt.options.lineWrapping&&(it.adjustWidthTo=gh(lt,yt.maxLine,yt.maxLine.text.length).left+3,lt.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(yt.scroller.clientWidth,yt.sizer.offsetLeft+it.adjustWidthTo+ea(lt)+lt.display.barWidth),it.maxScrollLeft=Math.max(0,yt.sizer.offsetLeft+it.adjustWidthTo-ba(lt))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=yt.input.prepareSelection())}function Yo(it){var lt=it.cm;it.adjustWidthTo!=null&&(lt.display.sizer.style.minWidth=it.adjustWidthTo+"px",it.maxScrollLeft<lt.doc.scrollLeft&&lu(lt,Math.min(lt.display.scroller.scrollLeft,it.maxScrollLeft),!0),lt.display.maxLineChanged=!1);var yt=it.focus&&it.focus==ae();it.preparedSelection&<.display.input.showSelection(it.preparedSelection,yt),(it.updatedDisplay||it.startHeight!=lt.doc.height)&&Mu(lt,it.barMeasure),it.updatedDisplay&&Du(lt,it.barMeasure),it.selectionChanged&&ho(lt),lt.state.focused&&it.updateInput&<.display.input.reset(it.typing),yt&&Eo(it.cm)}function Nu(it){var lt=it.cm,yt=lt.display,vt=lt.doc;if(it.updatedDisplay&&co(lt,it.update),yt.wheelStartX!=null&&(it.scrollTop!=null||it.scrollLeft!=null||it.scrollToPos)&&(yt.wheelStartX=yt.wheelStartY=null),it.scrollTop!=null&&tg(lt,it.scrollTop,it.forceScroll),it.scrollLeft!=null&&lu(lt,it.scrollLeft,!0,!0),it.scrollToPos){var Nt=ac(lt,gn(vt,it.scrollToPos.from),gn(vt,it.scrollToPos.to),it.scrollToPos.margin);Bp(lt,Nt)}var re=it.maybeHiddenMarkers,pe=it.maybeUnhiddenMarkers;if(re)for(var Ee=0;Ee<re.length;++Ee)re[Ee].lines.length||ke(re[Ee],"hide");if(pe)for(var be=0;be<pe.length;++be)pe[be].lines.length&&ke(pe[be],"unhide");yt.wrapper.offsetHeight&&(vt.scrollTop=lt.display.scroller.scrollTop),it.changeObjs&&ke(lt,"changes",lt,it.changeObjs),it.update&&it.update.finish()}function to(it,lt){if(it.curOp)return lt();Tu(it);try{return lt()}finally{ku(it)}}function cs(it,lt){return function(){if(it.curOp)return lt.apply(it,arguments);Tu(it);try{return lt.apply(it,arguments)}finally{ku(it)}}}function xs(it){return function(){if(this.curOp)return it.apply(this,arguments);Tu(this);try{return it.apply(this,arguments)}finally{ku(this)}}}function ws(it){return function(){var lt=this.cm;if(!lt||lt.curOp)return it.apply(this,arguments);Tu(lt);try{return it.apply(this,arguments)}finally{ku(lt)}}}function lc(it,lt){it.doc.highlightFrontier<it.display.viewTo&&it.state.highlight.set(lt,me(Ps,it))}function Ps(it){var lt=it.doc;if(!(lt.highlightFrontier>=it.display.viewTo)){var yt=+new Date+it.options.workTime,vt=oi(it,lt.highlightFrontier),Nt=[];lt.iter(vt.line,Math.min(lt.first+lt.size,it.display.viewTo+500),function(re){if(vt.line>=it.display.viewFrom){var pe=re.styles,Ee=re.text.length>it.options.maxHighlightLength?fn(lt.mode,vt.state):null,be=ti(it,re,vt,!0);Ee&&(vt.state=Ee),re.styles=be.styles;var je=re.styleClasses,mn=be.classes;mn?re.styleClasses=mn:je&&(re.styleClasses=null);for(var Xe=!pe||pe.length!=re.styles.length||je!=mn&&(!je||!mn||je.bgClass!=mn.bgClass||je.textClass!=mn.textClass),Dn=0;!Xe&&Dn<pe.length;++Dn)Xe=pe[Dn]!=re.styles[Dn];Xe&&Nt.push(vt.line),re.stateAfter=vt.save(),vt.nextLine()}else re.text.length<=it.options.maxHighlightLength&&dn(it,re.text,vt),re.stateAfter=vt.line%5==0?vt.save():null,vt.nextLine();if(+new Date>yt)return lc(it,it.options.workDelay),!0}),lt.highlightFrontier=vt.line,lt.modeFrontier=Math.max(lt.modeFrontier,vt.line),Nt.length&&to(it,function(){for(var re=0;re<Nt.length;re++)jr(it,Nt[re],"text")})}}var Ph=function(it,lt,yt){var vt=it.display;this.viewport=lt,this.visible=Kr(vt,it.doc,lt),this.editorIsHidden=!vt.wrapper.offsetWidth,this.wrapperHeight=vt.wrapper.clientHeight,this.wrapperWidth=vt.wrapper.clientWidth,this.oldDisplayWidth=ba(it),this.force=yt,this.dims=zd(it),this.events=[]};Ph.prototype.signal=function(it,lt){Pn(it,lt)&&this.events.push(arguments)},Ph.prototype.finish=function(){for(var it=0;it<this.events.length;it++)ke.apply(null,this.events[it])};function zp(it){var lt=it.display;!lt.scrollbarsClipped&<.scroller.offsetWidth&&(lt.nativeBarWidth=lt.scroller.offsetWidth-lt.scroller.clientWidth,lt.heightForcer.style.height=ea(it)+"px",lt.sizer.style.marginBottom=-lt.nativeBarWidth+"px",lt.sizer.style.borderRightWidth=ea(it)+"px",lt.scrollbarsClipped=!0)}function Hp(it){if(it.hasFocus())return null;var lt=ae();if(!lt||!ce(it.display.lineDiv,lt))return null;var yt={activeElt:lt};if(window.getSelection){var vt=window.getSelection();vt.anchorNode&&vt.extend&&ce(it.display.lineDiv,vt.anchorNode)&&(yt.anchorNode=vt.anchorNode,yt.anchorOffset=vt.anchorOffset,yt.focusNode=vt.focusNode,yt.focusOffset=vt.focusOffset)}return yt}function fa(it){if(!(!it||!it.activeElt||it.activeElt==ae())&&(it.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(it.activeElt.nodeName)&&it.anchorNode&&ce(document.body,it.anchorNode)&&ce(document.body,it.focusNode))){var lt=window.getSelection(),yt=document.createRange();yt.setEnd(it.anchorNode,it.anchorOffset),yt.collapse(!1),lt.removeAllRanges(),lt.addRange(yt),lt.extend(it.focusNode,it.focusOffset)}}function Gd(it,lt){var yt=it.display,vt=it.doc;if(lt.editorIsHidden)return $o(it),!1;if(!lt.force&<.visible.from>=yt.viewFrom&<.visible.to<=yt.viewTo&&(yt.updateLineNumbers==null||yt.updateLineNumbers>=yt.viewTo)&&yt.renderedView==yt.view&&Ca(it)==0)return!1;rs(it)&&($o(it),lt.dims=zd(it));var Nt=vt.first+vt.size,re=Math.max(lt.visible.from-it.options.viewportMargin,vt.first),pe=Math.min(Nt,lt.visible.to+it.options.viewportMargin);yt.viewFrom<re&&re-yt.viewFrom<20&&(re=Math.max(vt.first,yt.viewFrom)),yt.viewTo>pe&&yt.viewTo-pe<20&&(pe=Math.min(Nt,yt.viewTo)),bn&&(re=Pi(it.doc,re),pe=mi(it.doc,pe));var Ee=re!=yt.viewFrom||pe!=yt.viewTo||yt.lastWrapHeight!=lt.wrapperHeight||yt.lastWrapWidth!=lt.wrapperWidth;yo(it,re,pe),yt.viewOffset=Sr(cn(it.doc,yt.viewFrom)),it.display.mover.style.top=yt.viewOffset+"px";var be=Ca(it);if(!Ee&&be==0&&!lt.force&&yt.renderedView==yt.view&&(yt.updateLineNumbers==null||yt.updateLineNumbers>=yt.viewTo))return!1;var je=Hp(it);return be>4&&(yt.lineDiv.style.display="none"),ig(it,yt.updateLineNumbers,lt.dims),be>4&&(yt.lineDiv.style.display=""),yt.renderedView=yt.view,fa(je),Zt(yt.cursorDiv),Zt(yt.selectionDiv),yt.gutters.style.height=yt.sizer.style.minHeight=0,Ee&&(yt.lastWrapHeight=lt.wrapperHeight,yt.lastWrapWidth=lt.wrapperWidth,lc(it,400)),yt.updateLineNumbers=null,!0}function co(it,lt){for(var yt=lt.viewport,vt=!0;;vt=!1){if(!vt||!it.options.lineWrapping||lt.oldDisplayWidth==ba(it)){if(yt&&yt.top!=null&&(yt={top:Math.min(it.doc.height+Bl(it.display)-dh(it),yt.top)}),lt.visible=Kr(it.display,it.doc,yt),lt.visible.from>=it.display.viewFrom&<.visible.to<=it.display.viewTo)break}else vt&&(lt.visible=Kr(it.display,it.doc,yt));if(!Gd(it,lt))break;hr(it);var Nt=qa(it);hs(it),Mu(it,Nt),Du(it,Nt),lt.force=!1}lt.signal(it,"update",it),(it.display.viewFrom!=it.display.reportedViewFrom||it.display.viewTo!=it.display.reportedViewTo)&&(lt.signal(it,"viewportChange",it,it.display.viewFrom,it.display.viewTo),it.display.reportedViewFrom=it.display.viewFrom,it.display.reportedViewTo=it.display.viewTo)}function Ou(it,lt){var yt=new Ph(it,lt);if(Gd(it,yt)){hr(it),co(it,yt);var vt=qa(it);hs(it),Mu(it,vt),Du(it,vt),yt.finish()}}function ig(it,lt,yt){var vt=it.display,Nt=it.options.lineNumbers,re=vt.lineDiv,pe=re.firstChild;function Ee(ni){var ai=ni.nextSibling;return xt&&st&&it.display.currentWheelTarget==ni?ni.style.display="none":ni.parentNode.removeChild(ni),ai}for(var be=vt.view,je=vt.viewFrom,mn=0;mn<be.length;mn++){var Xe=be[mn];if(!Xe.hidden)if(!Xe.node||Xe.node.parentNode!=re){var Dn=iu(it,Xe,je,yt);re.insertBefore(Dn,pe)}else{for(;pe!=Xe.node;)pe=Ee(pe);var kn=Nt&<!=null&<<=je&&Xe.lineNumber;Xe.changes&&(ie(Xe.changes,"gutter")>-1&&(kn=!1),bo(it,Xe,je,yt)),kn&&(Zt(Xe.lineNumber),Xe.lineNumber.appendChild(document.createTextNode(On(it.options,je)))),pe=Xe.node.nextSibling}je+=Xe.size}for(;pe;)pe=Ee(pe)}function Iu(it){var lt=it.gutters.offsetWidth;it.sizer.style.marginLeft=lt+"px"}function Du(it,lt){it.display.sizer.style.minHeight=lt.docHeight+"px",it.display.heightForcer.style.top=lt.docHeight+"px",it.display.gutters.style.height=lt.docHeight+it.display.barHeight+ea(it)+"px"}function Kd(it){var lt=it.display,yt=lt.view;if(!(!lt.alignWidgets&&(!lt.gutters.firstChild||!it.options.fixedGutter))){for(var vt=Kc(lt)-lt.scroller.scrollLeft+it.doc.scrollLeft,Nt=lt.gutters.offsetWidth,re=vt+"px",pe=0;pe<yt.length;pe++)if(!yt[pe].hidden){it.options.fixedGutter&&(yt[pe].gutter&&(yt[pe].gutter.style.left=re),yt[pe].gutterBackground&&(yt[pe].gutterBackground.style.left=re));var Ee=yt[pe].alignable;if(Ee)for(var be=0;be<Ee.length;be++)Ee[be].style.left=re}it.options.fixedGutter&&(lt.gutters.style.left=vt+Nt+"px")}}function rs(it){if(!it.options.lineNumbers)return!1;var lt=it.doc,yt=On(it.options,lt.first+lt.size-1),vt=it.display;if(yt.length!=vt.lineNumChars){var Nt=vt.measure.appendChild(qt("div",[qt("div",yt)],"CodeMirror-linenumber CodeMirror-gutter-elt")),re=Nt.firstChild.offsetWidth,pe=Nt.offsetWidth-re;return vt.lineGutter.style.width="",vt.lineNumInnerWidth=Math.max(re,vt.lineGutter.offsetWidth-pe)+1,vt.lineNumWidth=vt.lineNumInnerWidth+pe,vt.lineNumChars=vt.lineNumInnerWidth?yt.length:-1,vt.lineGutter.style.width=vt.lineNumWidth+"px",Iu(it.display),!0}return!1}function bs(it,lt){for(var yt=[],vt=!1,Nt=0;Nt<it.length;Nt++){var re=it[Nt],pe=null;if(typeof re!="string"&&(pe=re.style,re=re.className),re=="CodeMirror-linenumbers")if(lt)vt=!0;else continue;yt.push({className:re,style:pe})}return lt&&!vt&&yt.push({className:"CodeMirror-linenumbers",style:null}),yt}function bh(it){var lt=it.gutters,yt=it.gutterSpecs;Zt(lt),it.lineGutter=null;for(var vt=0;vt<yt.length;++vt){var Nt=yt[vt],re=Nt.className,pe=Nt.style,Ee=lt.appendChild(qt("div",null,"CodeMirror-gutter "+re));pe&&(Ee.style.cssText=pe),re=="CodeMirror-linenumbers"&&(it.lineGutter=Ee,Ee.style.width=(it.lineNumWidth||1)+"px")}lt.style.display=yt.length?"":"none",Iu(it)}function Wa(it){bh(it.display),Do(it),Kd(it)}function Fu(it,lt,yt,vt){var Nt=this;this.input=yt,Nt.scrollbarFiller=qt("div",null,"CodeMirror-scrollbar-filler"),Nt.scrollbarFiller.setAttribute("cm-not-content","true"),Nt.gutterFiller=qt("div",null,"CodeMirror-gutter-filler"),Nt.gutterFiller.setAttribute("cm-not-content","true"),Nt.lineDiv=te("div",null,"CodeMirror-code"),Nt.selectionDiv=qt("div",null,null,"position: relative; z-index: 1"),Nt.cursorDiv=qt("div",null,"CodeMirror-cursors"),Nt.measure=qt("div",null,"CodeMirror-measure"),Nt.lineMeasure=qt("div",null,"CodeMirror-measure"),Nt.lineSpace=te("div",[Nt.measure,Nt.lineMeasure,Nt.selectionDiv,Nt.cursorDiv,Nt.lineDiv],null,"position: relative; outline: none");var re=te("div",[Nt.lineSpace],"CodeMirror-lines");Nt.mover=qt("div",[re],null,"position: relative"),Nt.sizer=qt("div",[Nt.mover],"CodeMirror-sizer"),Nt.sizerWidth=null,Nt.heightForcer=qt("div",null,null,"position: absolute; height: "+ue+"px; width: 1px;"),Nt.gutters=qt("div",null,"CodeMirror-gutters"),Nt.lineGutter=null,Nt.scroller=qt("div",[Nt.sizer,Nt.heightForcer,Nt.gutters],"CodeMirror-scroll"),Nt.scroller.setAttribute("tabIndex","-1"),Nt.wrapper=qt("div",[Nt.scrollbarFiller,Nt.gutterFiller,Nt.scroller],"CodeMirror"),kt&&Bt<8&&(Nt.gutters.style.zIndex=-1,Nt.scroller.style.paddingRight=0),!xt&&!(zt&&tt)&&(Nt.scroller.draggable=!0),it&&(it.appendChild?it.appendChild(Nt.wrapper):it(Nt.wrapper)),Nt.viewFrom=Nt.viewTo=lt.first,Nt.reportedViewFrom=Nt.reportedViewTo=lt.first,Nt.view=[],Nt.renderedView=null,Nt.externalMeasured=null,Nt.viewOffset=0,Nt.lastWrapHeight=Nt.lastWrapWidth=0,Nt.updateLineNumbers=null,Nt.nativeBarWidth=Nt.barHeight=Nt.barWidth=0,Nt.scrollbarsClipped=!1,Nt.lineNumWidth=Nt.lineNumInnerWidth=Nt.lineNumChars=null,Nt.alignWidgets=!1,Nt.cachedCharWidth=Nt.cachedTextHeight=Nt.cachedPaddingH=null,Nt.maxLine=null,Nt.maxLineLength=0,Nt.maxLineChanged=!1,Nt.wheelDX=Nt.wheelDY=Nt.wheelStartX=Nt.wheelStartY=null,Nt.shift=!1,Nt.selForContextMenu=null,Nt.activeTouch=null,Nt.gutterSpecs=bs(vt.gutters,vt.lineNumbers),bh(Nt),yt.init(Nt)}var Ea=0,ts=null;kt?ts=-.53:zt?ts=15:Rt?ts=-.7:Lt&&(ts=-1/3);function El(it){var lt=it.wheelDeltaX,yt=it.wheelDeltaY;return lt==null&&it.detail&&it.axis==it.HORIZONTAL_AXIS&&(lt=it.detail),yt==null&&it.detail&&it.axis==it.VERTICAL_AXIS?yt=it.detail:yt==null&&(yt=it.wheelDelta),{x:lt,y:yt}}function Ua(it){var lt=El(it);return lt.x*=ts,lt.y*=ts,lt}function Cs(it,lt){var yt=El(lt),vt=yt.x,Nt=yt.y,re=it.display,pe=re.scroller,Ee=pe.scrollWidth>pe.clientWidth,be=pe.scrollHeight>pe.clientHeight;if(vt&&Ee||Nt&&be){if(Nt&&st&&xt){t:for(var je=lt.target,mn=re.view;je!=pe;je=je.parentNode)for(var Xe=0;Xe<mn.length;Xe++)if(mn[Xe].node==je){it.display.currentWheelTarget=je;break t}}if(vt&&!zt&&!Ct&&ts!=null){Nt&&be&&wh(it,Math.max(0,pe.scrollTop+Nt*ts)),lu(it,Math.max(0,pe.scrollLeft+vt*ts)),(!Nt||Nt&&be)&&Bn(lt),re.wheelStartX=null;return}if(Nt&&ts!=null){var Dn=Nt*ts,kn=it.doc.scrollTop,ni=kn+re.wrapper.clientHeight;Dn<0?kn=Math.max(0,kn+Dn-50):ni=Math.min(it.doc.height,ni+Dn+50),Ou(it,{top:kn,bottom:ni})}Ea<20&&(re.wheelStartX==null?(re.wheelStartX=pe.scrollLeft,re.wheelStartY=pe.scrollTop,re.wheelDX=vt,re.wheelDY=Nt,setTimeout(function(){if(re.wheelStartX!=null){var ai=pe.scrollLeft-re.wheelStartX,Si=pe.scrollTop-re.wheelStartY,Ii=Si&&re.wheelDY&&Si/re.wheelDY||ai&&re.wheelDX&&ai/re.wheelDX;re.wheelStartX=re.wheelStartY=null,Ii&&(ts=(ts*Ea+Ii)/(Ea+1),++Ea)}},200)):(re.wheelDX+=vt,re.wheelDY+=Nt))}}var $a=function(it,lt){this.ranges=it,this.primIndex=lt};$a.prototype.primary=function(){return this.ranges[this.primIndex]},$a.prototype.equals=function(it){if(it==this)return!0;if(it.primIndex!=this.primIndex||it.ranges.length!=this.ranges.length)return!1;for(var lt=0;lt<this.ranges.length;lt++){var yt=this.ranges[lt],vt=it.ranges[lt];if(!_e(yt.anchor,vt.anchor)||!_e(yt.head,vt.head))return!1}return!0},$a.prototype.deepCopy=function(){for(var it=[],lt=0;lt<this.ranges.length;lt++)it[lt]=new fo(en(this.ranges[lt].anchor),en(this.ranges[lt].head));return new $a(it,this.primIndex)},$a.prototype.somethingSelected=function(){for(var it=0;it<this.ranges.length;it++)if(!this.ranges[it].empty())return!0;return!1},$a.prototype.contains=function(it,lt){lt||(lt=it);for(var yt=0;yt<this.ranges.length;yt++){var vt=this.ranges[yt];if(nn(lt,vt.from())>=0&&nn(it,vt.to())<=0)return yt}return-1};var fo=function(it,lt){this.anchor=it,this.head=lt};fo.prototype.from=function(){return sn(this.anchor,this.head)},fo.prototype.to=function(){return un(this.anchor,this.head)},fo.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function cl(it,lt,yt){var vt=it&&it.options.selectionsMayTouch,Nt=lt[yt];lt.sort(function(Dn,kn){return nn(Dn.from(),kn.from())}),yt=ie(lt,Nt);for(var re=1;re<lt.length;re++){var pe=lt[re],Ee=lt[re-1],be=nn(Ee.to(),pe.from());if(vt&&!pe.empty()?be>0:be>=0){var je=sn(Ee.from(),pe.from()),mn=un(Ee.to(),pe.to()),Xe=Ee.empty()?pe.from()==pe.head:Ee.from()==Ee.head;re<=yt&&--yt,lt.splice(--re,2,new fo(Xe?mn:je,Xe?je:mn))}}return new $a(lt,yt)}function uu(it,lt){return new $a([new fo(it,lt||it)],0)}function Bu(it){return it.text?Ke(it.from.line+it.text.length-1,Me(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function Ch(it,lt){if(nn(it,lt.from)<0)return it;if(nn(it,lt.to)<=0)return Bu(lt);var yt=it.line+lt.text.length-(lt.to.line-lt.from.line)-1,vt=it.ch;return it.line==lt.to.line&&(vt+=Bu(lt).ch-lt.to.ch),Ke(yt,vt)}function Zc(it,lt){for(var yt=[],vt=0;vt<it.sel.ranges.length;vt++){var Nt=it.sel.ranges[vt];yt.push(new fo(Ch(Nt.anchor,lt),Ch(Nt.head,lt)))}return cl(it.cm,yt,it.sel.primIndex)}function uc(it,lt,yt){return it.line==lt.line?Ke(yt.line,it.ch-lt.ch+yt.ch):Ke(yt.line+(it.line-lt.line),it.ch)}function Xc(it,lt,yt){for(var vt=[],Nt=Ke(it.first,0),re=Nt,pe=0;pe<lt.length;pe++){var Ee=lt[pe],be=uc(Ee.from,Nt,re),je=uc(Bu(Ee),Nt,re);if(Nt=Ee.to,re=je,yt=="around"){var mn=it.sel.ranges[pe],Xe=nn(mn.head,mn.anchor)<0;vt[pe]=new fo(Xe?je:be,Xe?be:je)}else vt[pe]=new fo(be,be)}return new $a(vt,it.sel.primIndex)}function zr(it){it.doc.mode=qe(it.options,it.doc.modeOption),Yc(it)}function Yc(it){it.doc.iter(function(lt){lt.stateAfter&&(lt.stateAfter=null),lt.styles&&(lt.styles=null)}),it.doc.modeFrontier=it.doc.highlightFrontier=it.doc.first,lc(it,100),it.state.modeGen++,it.curOp&&Do(it)}function rg(it,lt){return lt.from.ch==0&<.to.ch==0&&Me(lt.text)==""&&(!it.cm||it.cm.options.wholeLineUpdateBefore)}function Vd(it,lt,yt,vt){function Nt(tr){return yt?yt[tr]:null}function re(tr,Ui,or){io(tr,Ui,or,vt),li(tr,"change",tr,lt)}function pe(tr,Ui){for(var or=[],Mr=tr;Mr<Ui;++Mr)or.push(new Vr(je[Mr],Nt(Mr),vt));return or}var Ee=lt.from,be=lt.to,je=lt.text,mn=cn(it,Ee.line),Xe=cn(it,be.line),Dn=Me(je),kn=Nt(je.length-1),ni=be.line-Ee.line;if(lt.full)it.insert(0,pe(0,je.length)),it.remove(je.length,it.size-je.length);else if(rg(it,lt)){var ai=pe(0,je.length-1);re(Xe,Xe.text,kn),ni&&it.remove(Ee.line,ni),ai.length&&it.insert(Ee.line,ai)}else if(mn==Xe)if(je.length==1)re(mn,mn.text.slice(0,Ee.ch)+Dn+mn.text.slice(be.ch),kn);else{var Si=pe(1,je.length-1);Si.push(new Vr(Dn+mn.text.slice(be.ch),kn,vt)),re(mn,mn.text.slice(0,Ee.ch)+je[0],Nt(0)),it.insert(Ee.line+1,Si)}else if(je.length==1)re(mn,mn.text.slice(0,Ee.ch)+je[0]+Xe.text.slice(be.ch),Nt(0)),it.remove(Ee.line+1,ni);else{re(mn,mn.text.slice(0,Ee.ch)+je[0],Nt(0)),re(Xe,Dn+Xe.text.slice(be.ch),kn);var Ii=pe(1,je.length-1);ni>1&&it.remove(Ee.line+1,ni-1),it.insert(Ee.line+1,Ii)}li(it,"change",it,lt)}function Ll(it,lt,yt){function vt(Nt,re,pe){if(Nt.linked)for(var Ee=0;Ee<Nt.linked.length;++Ee){var be=Nt.linked[Ee];if(be.doc!=re){var je=pe&&be.sharedHist;yt&&!je||(lt(be.doc,je),vt(be.doc,Nt,je))}}}vt(it,null,!0)}function Zd(it,lt){if(lt.cm)throw new Error("This document is already in use.");it.doc=lt,lt.cm=it,fr(it),zr(it),_c(it),it.options.lineWrapping||Rr(it),it.options.mode=lt.modeOption,Do(it)}function _c(it){(it.doc.direction=="rtl"?xe:Dt)(it.display.lineDiv,"CodeMirror-rtl")}function tv(it){to(it,function(){_c(it),Do(it)})}function hc(it){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=it||1}function Xd(it,lt){var yt={from:en(lt.from),to:Bu(lt),text:wn(it,lt.from,lt.to)};return Ru(it,yt,lt.from.line,lt.to.line+1),Ll(it,function(vt){return Ru(vt,yt,lt.from.line,lt.to.line+1)},!0),yt}function cc(it){for(;it.length;){var lt=Me(it);if(lt.ranges)it.pop();else break}}function Jc(it,lt){if(lt)return cc(it.done),Me(it.done);if(it.done.length&&!Me(it.done).ranges)return Me(it.done);if(it.done.length>1&&!it.done[it.done.length-2].ranges)return it.done.pop(),Me(it.done)}function Qc(it,lt,yt,vt){var Nt=it.history;Nt.undone.length=0;var re=+new Date,pe,Ee;if((Nt.lastOp==vt||Nt.lastOrigin==lt.origin&<.origin&&(lt.origin.charAt(0)=="+"&&Nt.lastModTime>re-(it.cm?it.cm.options.historyEventDelay:500)||lt.origin.charAt(0)=="*"))&&(pe=Jc(Nt,Nt.lastOp==vt)))Ee=Me(pe.changes),nn(lt.from,lt.to)==0&&nn(lt.from,Ee.to)==0?Ee.to=Bu(lt):pe.changes.push(Xd(it,lt));else{var be=Me(Nt.done);for((!be||!be.ranges)&&dc(it.sel,Nt.done),pe={changes:[Xd(it,lt)],generation:Nt.generation},Nt.done.push(pe);Nt.done.length>Nt.undoDepth;)Nt.done.shift(),Nt.done[0].ranges||Nt.done.shift()}Nt.done.push(yt),Nt.generation=++Nt.maxGeneration,Nt.lastModTime=Nt.lastSelTime=re,Nt.lastOp=Nt.lastSelOp=vt,Nt.lastOrigin=Nt.lastSelOrigin=lt.origin,Ee||ke(it,"historyAdded")}function og(it,lt,yt,vt){var Nt=lt.charAt(0);return Nt=="*"||Nt=="+"&&yt.ranges.length==vt.ranges.length&&yt.somethingSelected()==vt.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function qc(it,lt,yt,vt){var Nt=it.history,re=vt&&vt.origin;yt==Nt.lastSelOp||re&&Nt.lastSelOrigin==re&&(Nt.lastModTime==Nt.lastSelTime&&Nt.lastOrigin==re||og(it,re,Me(Nt.done),lt))?Nt.done[Nt.done.length-1]=lt:dc(lt,Nt.done),Nt.lastSelTime=+new Date,Nt.lastSelOrigin=re,Nt.lastSelOp=yt,vt&&vt.clearRedo!==!1&&cc(Nt.undone)}function dc(it,lt){var yt=Me(lt);yt&&yt.ranges&&yt.equals(it)||lt.push(it)}function Ru(it,lt,yt,vt){var Nt=lt["spans_"+it.id],re=0;it.iter(Math.max(it.first,yt),Math.min(it.first+it.size,vt),function(pe){pe.markedSpans&&((Nt||(Nt=lt["spans_"+it.id]={}))[re]=pe.markedSpans),++re})}function ra(it){if(!it)return null;for(var lt,yt=0;yt<it.length;++yt)it[yt].marker.explicitlyCleared?lt||(lt=it.slice(0,yt)):lt&<.push(it[yt]);return lt?lt.length?lt:null:it}function zl(it,lt){var yt=lt["spans_"+it.id];if(!yt)return null;for(var vt=[],Nt=0;Nt<lt.text.length;++Nt)vt.push(ra(yt[Nt]));return vt}function Yd(it,lt){var yt=zl(it,lt),vt=yi(it,lt);if(!yt)return vt;if(!vt)return yt;for(var Nt=0;Nt<yt.length;++Nt){var re=yt[Nt],pe=vt[Nt];if(re&&pe)t:for(var Ee=0;Ee<pe.length;++Ee){for(var be=pe[Ee],je=0;je<re.length;++je)if(re[je].marker==be.marker)continue t;re.push(be)}else pe&&(yt[Nt]=pe)}return yt}function hu(it,lt,yt){for(var vt=[],Nt=0;Nt<it.length;++Nt){var re=it[Nt];if(re.ranges){vt.push(yt?$a.prototype.deepCopy.call(re):re);continue}var pe=re.changes,Ee=[];vt.push({changes:Ee});for(var be=0;be<pe.length;++be){var je=pe[be],mn=void 0;if(Ee.push({from:je.from,to:je.to,text:je.text}),lt)for(var Xe in je)(mn=Xe.match(/^spans_(\d+)$/))&&ie(lt,Number(mn[1]))>-1&&(Me(Ee)[Xe]=je[Xe],delete je[Xe])}}return vt}function _d(it,lt,yt,vt){if(vt){var Nt=it.anchor;if(yt){var re=nn(lt,Nt)<0;re!=nn(yt,Nt)<0?(Nt=lt,lt=yt):re!=nn(lt,yt)<0&&(lt=yt)}return new fo(Nt,lt)}else return new fo(yt||lt,lt)}function Jd(it,lt,yt,vt,Nt){Nt==null&&(Nt=it.cm&&(it.cm.display.shift||it.extend)),Gs(it,new $a([_d(it.sel.primary(),lt,yt,Nt)],0),vt)}function Wp(it,lt,yt){for(var vt=[],Nt=it.cm&&(it.cm.display.shift||it.extend),re=0;re<it.sel.ranges.length;re++)vt[re]=_d(it.sel.ranges[re],lt[re],null,Nt);var pe=cl(it.cm,vt,it.sel.primIndex);Gs(it,pe,yt)}function ju(it,lt,yt,vt){var Nt=it.sel.ranges.slice(0);Nt[lt]=yt,Gs(it,cl(it.cm,Nt,it.sel.primIndex),vt)}function Eh(it,lt,yt,vt){Gs(it,uu(lt,yt),vt)}function Up(it,lt,yt){var vt={ranges:lt.ranges,update:function(Nt){this.ranges=[];for(var re=0;re<Nt.length;re++)this.ranges[re]=new fo(gn(it,Nt[re].anchor),gn(it,Nt[re].head))},origin:yt&&yt.origin};return ke(it,"beforeSelectionChange",it,vt),it.cm&&ke(it.cm,"beforeSelectionChange",it.cm,vt),vt.ranges!=lt.ranges?cl(it.cm,vt.ranges,vt.ranges.length-1):lt}function Qd(it,lt,yt){var vt=it.history.done,Nt=Me(vt);Nt&&Nt.ranges?(vt[vt.length-1]=lt,Lh(it,lt,yt)):Gs(it,lt,yt)}function Gs(it,lt,yt){Lh(it,lt,yt),qc(it,it.sel,it.cm?it.cm.curOp.id:NaN,yt)}function Lh(it,lt,yt){(Pn(it,"beforeSelectionChange")||it.cm&&Pn(it.cm,"beforeSelectionChange"))&&(lt=Up(it,lt,yt));var vt=yt&&yt.bias||(nn(lt.primary().head,it.sel.primary().head)<0?-1:1);sg(it,td(it,lt,vt,!0)),!(yt&&yt.scroll===!1)&&it.cm&&au(it.cm)}function sg(it,lt){lt.equals(it.sel)||(it.sel=lt,it.cm&&(it.cm.curOp.updateInput=1,it.cm.curOp.selectionChanged=!0,hn(it.cm)),li(it,"cursorActivity",it))}function $c(it){sg(it,td(it,it.sel,null,!1))}function td(it,lt,yt,vt){for(var Nt,re=0;re<lt.ranges.length;re++){var pe=lt.ranges[re],Ee=lt.ranges.length==it.sel.ranges.length&&it.sel.ranges[re],be=ed(it,pe.anchor,Ee&&Ee.anchor,yt,vt),je=ed(it,pe.head,Ee&&Ee.head,yt,vt);(Nt||be!=pe.anchor||je!=pe.head)&&(Nt||(Nt=lt.ranges.slice(0,re)),Nt[re]=new fo(be,je))}return Nt?cl(it.cm,Nt,lt.primIndex):lt}function cu(it,lt,yt,vt,Nt){var re=cn(it,lt.line);if(re.markedSpans)for(var pe=0;pe<re.markedSpans.length;++pe){var Ee=re.markedSpans[pe],be=Ee.marker,je="selectLeft"in be?!be.selectLeft:be.inclusiveLeft,mn="selectRight"in be?!be.selectRight:be.inclusiveRight;if((Ee.from==null||(je?Ee.from<=lt.ch:Ee.from<lt.ch))&&(Ee.to==null||(mn?Ee.to>=lt.ch:Ee.to>lt.ch))){if(Nt&&(ke(be,"beforeCursorEnter"),be.explicitlyCleared))if(re.markedSpans){--pe;continue}else break;if(!be.atomic)continue;if(yt){var Xe=be.find(vt<0?1:-1),Dn=void 0;if((vt<0?mn:je)&&(Xe=ag(it,Xe,-vt,Xe&&Xe.line==lt.line?re:null)),Xe&&Xe.line==lt.line&&(Dn=nn(Xe,yt))&&(vt<0?Dn<0:Dn>0))return cu(it,Xe,lt,vt,Nt)}var kn=be.find(vt<0?-1:1);return(vt<0?je:mn)&&(kn=ag(it,kn,vt,kn.line==lt.line?re:null)),kn?cu(it,kn,lt,vt,Nt):null}}return lt}function ed(it,lt,yt,vt,Nt){var re=vt||1,pe=cu(it,lt,yt,re,Nt)||!Nt&&cu(it,lt,yt,re,!0)||cu(it,lt,yt,-re,Nt)||!Nt&&cu(it,lt,yt,-re,!0);return pe||(it.cantEdit=!0,Ke(it.first,0))}function ag(it,lt,yt,vt){return yt<0&<.ch==0?lt.line>it.first?gn(it,Ke(lt.line-1)):null:yt>0&<.ch==(vt||cn(it,lt.line)).text.length?lt.line<it.first+it.size-1?Ke(lt.line+1,0):null:new Ke(lt.line,lt.ch+yt)}function es(it){it.setSelection(Ke(it.firstLine(),0),Ke(it.lastLine()),he)}function nd(it,lt,yt){var vt={canceled:!1,from:lt.from,to:lt.to,text:lt.text,origin:lt.origin,cancel:function(){return vt.canceled=!0}};return yt&&(vt.update=function(Nt,re,pe,Ee){Nt&&(vt.from=gn(it,Nt)),re&&(vt.to=gn(it,re)),pe&&(vt.text=pe),Ee!==void 0&&(vt.origin=Ee)}),ke(it,"beforeChange",it,vt),it.cm&&ke(it.cm,"beforeChange",it.cm,vt),vt.canceled?(it.cm&&(it.cm.curOp.updateInput=2),null):{from:vt.from,to:vt.to,text:vt.text,origin:vt.origin}}function zu(it,lt,yt){if(it.cm){if(!it.cm.curOp)return cs(it.cm,zu)(it,lt,yt);if(it.cm.state.suppressEdits)return}if(!((Pn(it,"beforeChange")||it.cm&&Pn(it.cm,"beforeChange"))&&(lt=nd(it,lt,!0),!lt))){var vt=Li&&!yt&&Xi(it,lt.from,lt.to);if(vt)for(var Nt=vt.length-1;Nt>=0;--Nt)Ah(it,{from:vt[Nt].from,to:vt[Nt].to,text:Nt?[""]:lt.text,origin:lt.origin});else Ah(it,lt)}}function Ah(it,lt){if(!(lt.text.length==1&<.text[0]==""&&nn(lt.from,lt.to)==0)){var yt=Zc(it,lt);Qc(it,lt,yt,it.cm?it.cm.curOp.id:NaN),fc(it,lt,yt,yi(it,lt));var vt=[];Ll(it,function(Nt,re){!re&&ie(vt,Nt.history)==-1&&(ug(Nt.history,lt),vt.push(Nt.history)),fc(Nt,lt,null,yi(Nt,lt))})}}function id(it,lt,yt){var vt=it.cm&&it.cm.state.suppressEdits;if(!(vt&&!yt)){for(var Nt=it.history,re,pe=it.sel,Ee=lt=="undo"?Nt.done:Nt.undone,be=lt=="undo"?Nt.undone:Nt.done,je=0;je<Ee.length&&(re=Ee[je],!(yt?re.ranges&&!re.equals(it.sel):!re.ranges));je++);if(je!=Ee.length){for(Nt.lastOrigin=Nt.lastSelOrigin=null;;)if(re=Ee.pop(),re.ranges){if(dc(re,be),yt&&!re.equals(it.sel)){Gs(it,re,{clearRedo:!1});return}pe=re}else if(vt){Ee.push(re);return}else break;var mn=[];dc(pe,be),be.push({changes:mn,generation:Nt.generation}),Nt.generation=re.generation||++Nt.maxGeneration;for(var Xe=Pn(it,"beforeChange")||it.cm&&Pn(it.cm,"beforeChange"),Dn=function(ai){var Si=re.changes[ai];if(Si.origin=lt,Xe&&!nd(it,Si,!1))return Ee.length=0,{};mn.push(Xd(it,Si));var Ii=ai?Zc(it,Si):Me(Ee);fc(it,Si,Ii,Yd(it,Si)),!ai&&it.cm&&it.cm.scrollIntoView({from:Si.from,to:Bu(Si)});var tr=[];Ll(it,function(Ui,or){!or&&ie(tr,Ui.history)==-1&&(ug(Ui.history,Si),tr.push(Ui.history)),fc(Ui,Si,null,Yd(Ui,Si))})},kn=re.changes.length-1;kn>=0;--kn){var ni=Dn(kn);if(ni)return ni.v}}}}function lg(it,lt){if(lt!=0&&(it.first+=lt,it.sel=new $a(Oe(it.sel.ranges,function(Nt){return new fo(Ke(Nt.anchor.line+lt,Nt.anchor.ch),Ke(Nt.head.line+lt,Nt.head.ch))}),it.sel.primIndex),it.cm)){Do(it.cm,it.first,it.first-lt,lt);for(var yt=it.cm.display,vt=yt.viewFrom;vt<yt.viewTo;vt++)jr(it.cm,vt,"gutter")}}function fc(it,lt,yt,vt){if(it.cm&&!it.cm.curOp)return cs(it.cm,fc)(it,lt,yt,vt);if(lt.to.line<it.first){lg(it,lt.text.length-1-(lt.to.line-lt.from.line));return}if(!(lt.from.line>it.lastLine())){if(lt.from.line<it.first){var Nt=lt.text.length-1-(it.first-lt.from.line);lg(it,Nt),lt={from:Ke(it.first,0),to:Ke(lt.to.line+Nt,lt.to.ch),text:[Me(lt.text)],origin:lt.origin}}var re=it.lastLine();lt.to.line>re&&(lt={from:lt.from,to:Ke(re,cn(it,re).text.length),text:[lt.text[0]],origin:lt.origin}),lt.removed=wn(it,lt.from,lt.to),yt||(yt=Zc(it,lt)),it.cm?Gp(it.cm,lt,vt):Vd(it,lt,vt),Lh(it,yt,he),it.cantEdit&&ed(it,Ke(it.firstLine(),0))&&(it.cantEdit=!1)}}function Gp(it,lt,yt){var vt=it.doc,Nt=it.display,re=lt.from,pe=lt.to,Ee=!1,be=re.line;it.options.lineWrapping||(be=Pe(Mi(cn(vt,re.line))),vt.iter(be,pe.line+1,function(kn){if(kn==Nt.maxLine)return Ee=!0,!0})),vt.sel.contains(lt.from,lt.to)>-1&&hn(it),Vd(vt,lt,yt,Io(it)),it.options.lineWrapping||(vt.iter(be,re.line+lt.text.length,function(kn){var ni=Br(kn);ni>Nt.maxLineLength&&(Nt.maxLine=kn,Nt.maxLineLength=ni,Nt.maxLineChanged=!0,Ee=!1)}),Ee&&(it.curOp.updateMaxLine=!0)),ii(vt,re.line),lc(it,400);var je=lt.text.length-(pe.line-re.line)-1;lt.full?Do(it):re.line==pe.line&<.text.length==1&&!rg(it.doc,lt)?jr(it,re.line,"text"):Do(it,re.line,pe.line+1,je);var mn=Pn(it,"changes"),Xe=Pn(it,"change");if(Xe||mn){var Dn={from:re,to:pe,text:lt.text,removed:lt.removed,origin:lt.origin};Xe&&li(it,"change",it,Dn),mn&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(Dn)}it.display.selForContextMenu=null}function Mh(it,lt,yt,vt,Nt){var re;vt||(vt=yt),nn(vt,yt)<0&&(re=[vt,yt],yt=re[0],vt=re[1]),typeof lt=="string"&&(lt=it.splitLines(lt)),zu(it,{from:yt,to:vt,text:lt,origin:Nt})}function tl(it,lt,yt,vt){yt<it.line?it.line+=vt:lt<it.line&&(it.line=lt,it.ch=0)}function Kp(it,lt,yt,vt){for(var Nt=0;Nt<it.length;++Nt){var re=it[Nt],pe=!0;if(re.ranges){re.copied||(re=it[Nt]=re.deepCopy(),re.copied=!0);for(var Ee=0;Ee<re.ranges.length;Ee++)tl(re.ranges[Ee].anchor,lt,yt,vt),tl(re.ranges[Ee].head,lt,yt,vt);continue}for(var be=0;be<re.changes.length;++be){var je=re.changes[be];if(yt<je.from.line)je.from=Ke(je.from.line+vt,je.from.ch),je.to=Ke(je.to.line+vt,je.to.ch);else if(lt<=je.to.line){pe=!1;break}}pe||(it.splice(0,Nt+1),Nt=0)}}function ug(it,lt){var yt=lt.from.line,vt=lt.to.line,Nt=lt.text.length-(vt-yt)-1;Kp(it.done,yt,vt,Nt),Kp(it.undone,yt,vt,Nt)}function Th(it,lt,yt,vt){var Nt=lt,re=lt;return typeof lt=="number"?re=cn(it,xn(it,lt)):Nt=Pe(lt),Nt==null?null:(vt(re,Nt)&&it.cm&&jr(it.cm,Nt,yt),re)}function gc(it){this.lines=it,this.parent=null;for(var lt=0,yt=0;yt<it.length;++yt)it[yt].parent=this,lt+=it[yt].height;this.height=lt}gc.prototype={chunkSize:function(){return this.lines.length},removeInner:function(it,lt){for(var yt=it,vt=it+lt;yt<vt;++yt){var Nt=this.lines[yt];this.height-=Nt.height,ro(Nt),li(Nt,"delete")}this.lines.splice(it,lt)},collapse:function(it){it.push.apply(it,this.lines)},insertInner:function(it,lt,yt){this.height+=yt,this.lines=this.lines.slice(0,it).concat(lt).concat(this.lines.slice(it));for(var vt=0;vt<lt.length;++vt)lt[vt].parent=this},iterN:function(it,lt,yt){for(var vt=it+lt;it<vt;++it)if(yt(this.lines[it]))return!0}};function Vo(it){this.children=it;for(var lt=0,yt=0,vt=0;vt<it.length;++vt){var Nt=it[vt];lt+=Nt.chunkSize(),yt+=Nt.height,Nt.parent=this}this.size=lt,this.height=yt,this.parent=null}Vo.prototype={chunkSize:function(){return this.size},removeInner:function(it,lt){this.size-=lt;for(var yt=0;yt<this.children.length;++yt){var vt=this.children[yt],Nt=vt.chunkSize();if(it<Nt){var re=Math.min(lt,Nt-it),pe=vt.height;if(vt.removeInner(it,re),this.height-=pe-vt.height,Nt==re&&(this.children.splice(yt--,1),vt.parent=null),(lt-=re)==0)break;it=0}else it-=Nt}if(this.size-lt<25&&(this.children.length>1||!(this.children[0]instanceof gc))){var Ee=[];this.collapse(Ee),this.children=[new gc(Ee)],this.children[0].parent=this}},collapse:function(it){for(var lt=0;lt<this.children.length;++lt)this.children[lt].collapse(it)},insertInner:function(it,lt,yt){this.size+=lt.length,this.height+=yt;for(var vt=0;vt<this.children.length;++vt){var Nt=this.children[vt],re=Nt.chunkSize();if(it<=re){if(Nt.insertInner(it,lt,yt),Nt.lines&&Nt.lines.length>50){for(var pe=Nt.lines.length%25+25,Ee=pe;Ee<Nt.lines.length;){var be=new gc(Nt.lines.slice(Ee,Ee+=25));Nt.height-=be.height,this.children.splice(++vt,0,be),be.parent=this}Nt.lines=Nt.lines.slice(0,pe),this.maybeSpill()}break}it-=re}},maybeSpill:function(){if(!(this.children.length<=10)){var it=this;do{var lt=it.children.splice(it.children.length-5,5),yt=new Vo(lt);if(it.parent){it.size-=yt.size,it.height-=yt.height;var Nt=ie(it.parent.children,it);it.parent.children.splice(Nt+1,0,yt)}else{var vt=new Vo(it.children);vt.parent=it,it.children=[vt,yt],it=vt}yt.parent=it.parent}while(it.children.length>10);it.parent.maybeSpill()}},iterN:function(it,lt,yt){for(var vt=0;vt<this.children.length;++vt){var Nt=this.children[vt],re=Nt.chunkSize();if(it<re){var pe=Math.min(lt,re-it);if(Nt.iterN(it,pe,yt))return!0;if((lt-=pe)==0)break;it=0}else it-=re}}};var du=function(it,lt,yt){if(yt)for(var vt in yt)yt.hasOwnProperty(vt)&&(this[vt]=yt[vt]);this.doc=it,this.node=lt};du.prototype.clear=function(){var it=this.doc.cm,lt=this.line.widgets,yt=this.line,vt=Pe(yt);if(!(vt==null||!lt)){for(var Nt=0;Nt<lt.length;++Nt)lt[Nt]==this&<.splice(Nt--,1);lt.length||(yt.widgets=null);var re=Qs(this);Hn(yt,Math.max(0,yt.height-re)),it&&(to(it,function(){Vp(it,yt,-re),jr(it,vt,"widget")}),li(it,"lineWidgetCleared",it,this,vt))}},du.prototype.changed=function(){var it=this,lt=this.height,yt=this.doc.cm,vt=this.line;this.height=null;var Nt=Qs(this)-lt;Nt&&(Wn(this.doc,vt)||Hn(vt,vt.height+Nt),yt&&to(yt,function(){yt.curOp.forceUpdate=!0,Vp(yt,vt,Nt),li(yt,"lineWidgetChanged",yt,it,Pe(vt))}))},In(du);function Vp(it,lt,yt){Sr(lt)<(it.curOp&&it.curOp.scrollTop||it.doc.scrollTop)&&Hd(it,yt)}function qd(it,lt,yt,vt){var Nt=new du(it,yt,vt),re=it.cm;return re&&Nt.noHScroll&&(re.display.alignWidgets=!0),Th(it,lt,"widget",function(pe){var Ee=pe.widgets||(pe.widgets=[]);if(Nt.insertAt==null?Ee.push(Nt):Ee.splice(Math.min(Ee.length-1,Math.max(0,Nt.insertAt)),0,Nt),Nt.line=pe,re&&!Wn(it,pe)){var be=Sr(pe)<it.scrollTop;Hn(pe,pe.height+Qs(Nt)),be&&Hd(re,Nt.height),re.curOp.forceUpdate=!0}return!0}),re&&li(re,"lineWidgetAdded",re,Nt,typeof lt=="number"?lt:Pe(lt)),Nt}var Zp=0,on=function(it,lt){this.lines=[],this.type=lt,this.doc=it,this.id=++Zp};on.prototype.clear=function(){if(!this.explicitlyCleared){var it=this.doc.cm,lt=it&&!it.curOp;if(lt&&Tu(it),Pn(this,"clear")){var yt=this.find();yt&&li(this,"clear",yt.from,yt.to)}for(var vt=null,Nt=null,re=0;re<this.lines.length;++re){var pe=this.lines[re],Ee=wr(pe.markedSpans,this);it&&!this.collapsed?jr(it,Pe(pe),"text"):it&&(Ee.to!=null&&(Nt=Pe(pe)),Ee.from!=null&&(vt=Pe(pe))),pe.markedSpans=_i(pe.markedSpans,Ee),Ee.from==null&&this.collapsed&&!Wn(this.doc,pe)&&it&&Hn(pe,su(it.display))}if(it&&this.collapsed&&!it.options.lineWrapping)for(var be=0;be<this.lines.length;++be){var je=Mi(this.lines[be]),mn=Br(je);mn>it.display.maxLineLength&&(it.display.maxLine=je,it.display.maxLineLength=mn,it.display.maxLineChanged=!0)}vt!=null&&it&&this.collapsed&&Do(it,vt,Nt+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&$c(it.doc)),it&&li(it,"markerCleared",it,this,vt,Nt),lt&&ku(it),this.parent&&this.parent.clear()}},on.prototype.find=function(it,lt){it==null&&this.type=="bookmark"&&(it=1);for(var yt,vt,Nt=0;Nt<this.lines.length;++Nt){var re=this.lines[Nt],pe=wr(re.markedSpans,this);if(pe.from!=null&&(yt=Ke(lt?re:Pe(re),pe.from),it==-1))return yt;if(pe.to!=null&&(vt=Ke(lt?re:Pe(re),pe.to),it==1))return vt}return yt&&{from:yt,to:vt}},on.prototype.changed=function(){var it=this,lt=this.find(-1,!0),yt=this,vt=this.doc.cm;!lt||!vt||to(vt,function(){var Nt=lt.line,re=Pe(lt.line),pe=ph(vt,re);if(pe&&(ys(pe),vt.curOp.selectionChanged=vt.curOp.forceUpdate=!0),vt.curOp.updateMaxLine=!0,!Wn(yt.doc,Nt)&&yt.height!=null){var Ee=yt.height;yt.height=null;var be=Qs(yt)-Ee;be&&Hn(Nt,Nt.height+be)}li(vt,"markerChanged",vt,it)})},on.prototype.attachLine=function(it){if(!this.lines.length&&this.doc.cm){var lt=this.doc.cm.curOp;(!lt.maybeHiddenMarkers||ie(lt.maybeHiddenMarkers,this)==-1)&&(lt.maybeUnhiddenMarkers||(lt.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(it)},on.prototype.detachLine=function(it){if(this.lines.splice(ie(this.lines,it),1),!this.lines.length&&this.doc.cm){var lt=this.doc.cm.curOp;(lt.maybeHiddenMarkers||(lt.maybeHiddenMarkers=[])).push(this)}},In(on);function kh(it,lt,yt,vt,Nt){if(vt&&vt.shared)return Xp(it,lt,yt,vt,Nt);if(it.cm&&!it.cm.curOp)return cs(it.cm,kh)(it,lt,yt,vt,Nt);var re=new on(it,Nt),pe=nn(lt,yt);if(vt&&He(vt,re,!1),pe>0||pe==0&&re.clearWhenEmpty!==!1)return re;if(re.replacedWith&&(re.collapsed=!0,re.widgetNode=te("span",[re.replacedWith],"CodeMirror-widget"),vt.handleMouseEvents||re.widgetNode.setAttribute("cm-ignore-events","true"),vt.insertLeft&&(re.widgetNode.insertLeft=!0)),re.collapsed){if(Di(it,lt.line,lt,yt,re)||lt.line!=yt.line&&Di(it,yt.line,lt,yt,re))throw new Error("Inserting collapsed marker partially overlapping an existing one");En()}re.addToHistory&&Qc(it,{from:lt,to:yt,origin:"markText"},it.sel,NaN);var Ee=lt.line,be=it.cm,je;if(it.iter(Ee,yt.line+1,function(Xe){be&&re.collapsed&&!be.options.lineWrapping&&Mi(Xe)==be.display.maxLine&&(je=!0),re.collapsed&&Ee!=lt.line&&Hn(Xe,0),kr(Xe,new Oi(re,Ee==lt.line?lt.ch:null,Ee==yt.line?yt.ch:null)),++Ee}),re.collapsed&&it.iter(lt.line,yt.line+1,function(Xe){Wn(it,Xe)&&Hn(Xe,0)}),re.clearOnEnter&&Ue(re,"beforeCursorEnter",function(){return re.clear()}),re.readOnly&&(er(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),re.collapsed&&(re.id=++Zp,re.atomic=!0),be){if(je&&(be.curOp.updateMaxLine=!0),re.collapsed)Do(be,lt.line,yt.line+1);else if(re.className||re.startStyle||re.endStyle||re.css||re.attributes||re.title)for(var mn=lt.line;mn<=yt.line;mn++)jr(be,mn,"text");re.atomic&&$c(be.doc),li(be,"markerAdded",be,re)}return re}var Hl=function(it,lt){this.markers=it,this.primary=lt;for(var yt=0;yt<it.length;++yt)it[yt].parent=this};Hl.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var it=0;it<this.markers.length;++it)this.markers[it].clear();li(this,"clear")}},Hl.prototype.find=function(it,lt){return this.primary.find(it,lt)},In(Hl);function Xp(it,lt,yt,vt,Nt){vt=He(vt),vt.shared=!1;var re=[kh(it,lt,yt,vt,Nt)],pe=re[0],Ee=vt.widgetNode;return Ll(it,function(be){Ee&&(vt.widgetNode=Ee.cloneNode(!0)),re.push(kh(be,gn(be,lt),gn(be,yt),vt,Nt));for(var je=0;je<be.linked.length;++je)if(be.linked[je].isParent)return;pe=Me(re)}),new Hl(re,pe)}function hg(it){return it.findMarks(Ke(it.first,0),it.clipPos(Ke(it.lastLine())),function(lt){return lt.parent})}function Yp(it,lt){for(var yt=0;yt<lt.length;yt++){var vt=lt[yt],Nt=vt.find(),re=it.clipPos(Nt.from),pe=it.clipPos(Nt.to);if(nn(re,pe)){var Ee=kh(it,re,pe,vt.primary,vt.primary.type);vt.markers.push(Ee),Ee.parent=vt}}}function cg(it){for(var lt=function(vt){var Nt=it[vt],re=[Nt.primary.doc];Ll(Nt.primary.doc,function(be){return re.push(be)});for(var pe=0;pe<Nt.markers.length;pe++){var Ee=Nt.markers[pe];ie(re,Ee.doc)==-1&&(Ee.parent=null,Nt.markers.splice(pe--,1))}},yt=0;yt<it.length;yt++)lt(yt)}var ev=0,Bs=function(it,lt,yt,vt,Nt){if(!(this instanceof Bs))return new Bs(it,lt,yt,vt,Nt);yt==null&&(yt=0),Vo.call(this,[new gc([new Vr("",null)])]),this.first=yt,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=yt;var re=Ke(yt,0);this.sel=uu(re),this.history=new hc(null),this.id=++ev,this.modeOption=lt,this.lineSep=vt,this.direction=Nt=="rtl"?"rtl":"ltr",this.extend=!1,typeof it=="string"&&(it=this.splitLines(it)),Vd(this,{from:re,to:re,text:it}),Gs(this,uu(re),he)};Bs.prototype=Tt(Vo.prototype,{constructor:Bs,iter:function(it,lt,yt){yt?this.iterN(it-this.first,lt-it,yt):this.iterN(this.first,this.first+this.size,it)},insert:function(it,lt){for(var yt=0,vt=0;vt<lt.length;++vt)yt+=lt[vt].height;this.insertInner(it-this.first,lt,yt)},remove:function(it,lt){this.removeInner(it-this.first,lt)},getValue:function(it){var lt=Nn(this,this.first,this.first+this.size);return it===!1?lt:lt.join(it||this.lineSeparator())},setValue:ws(function(it){var lt=Ke(this.first,0),yt=this.first+this.size-1;zu(this,{from:lt,to:Ke(yt,cn(this,yt).text.length),text:this.splitLines(it),origin:"setValue",full:!0},!0),this.cm&&xh(this.cm,0,0),Gs(this,uu(lt),he)}),replaceRange:function(it,lt,yt,vt){lt=gn(this,lt),yt=yt?gn(this,yt):lt,Mh(this,it,lt,yt,vt)},getRange:function(it,lt,yt){var vt=wn(this,gn(this,it),gn(this,lt));return yt===!1?vt:vt.join(yt||this.lineSeparator())},getLine:function(it){var lt=this.getLineHandle(it);return lt&<.text},getLineHandle:function(it){if(pn(this,it))return cn(this,it)},getLineNumber:function(it){return Pe(it)},getLineHandleVisualStart:function(it){return typeof it=="number"&&(it=cn(this,it)),Mi(it)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(it){return gn(this,it)},getCursor:function(it){var lt=this.sel.primary(),yt;return it==null||it=="head"?yt=lt.head:it=="anchor"?yt=lt.anchor:it=="end"||it=="to"||it===!1?yt=lt.to():yt=lt.from(),yt},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ws(function(it,lt,yt){Eh(this,gn(this,typeof it=="number"?Ke(it,lt||0):it),null,yt)}),setSelection:ws(function(it,lt,yt){Eh(this,gn(this,it),gn(this,lt||it),yt)}),extendSelection:ws(function(it,lt,yt){Jd(this,gn(this,it),lt&&gn(this,lt),yt)}),extendSelections:ws(function(it,lt){Wp(this,Mn(this,it),lt)}),extendSelectionsBy:ws(function(it,lt){var yt=Oe(this.sel.ranges,it);Wp(this,Mn(this,yt),lt)}),setSelections:ws(function(it,lt,yt){if(it.length){for(var vt=[],Nt=0;Nt<it.length;Nt++)vt[Nt]=new fo(gn(this,it[Nt].anchor),gn(this,it[Nt].head));lt==null&&(lt=Math.min(it.length-1,this.sel.primIndex)),Gs(this,cl(this.cm,vt,lt),yt)}}),addSelection:ws(function(it,lt,yt){var vt=this.sel.ranges.slice(0);vt.push(new fo(gn(this,it),gn(this,lt||it))),Gs(this,cl(this.cm,vt,vt.length-1),yt)}),getSelection:function(it){for(var lt=this.sel.ranges,yt,vt=0;vt<lt.length;vt++){var Nt=wn(this,lt[vt].from(),lt[vt].to());yt=yt?yt.concat(Nt):Nt}return it===!1?yt:yt.join(it||this.lineSeparator())},getSelections:function(it){for(var lt=[],yt=this.sel.ranges,vt=0;vt<yt.length;vt++){var Nt=wn(this,yt[vt].from(),yt[vt].to());it!==!1&&(Nt=Nt.join(it||this.lineSeparator())),lt[vt]=Nt}return lt},replaceSelection:function(it,lt,yt){for(var vt=[],Nt=0;Nt<this.sel.ranges.length;Nt++)vt[Nt]=it;this.replaceSelections(vt,lt,yt||"+input")},replaceSelections:ws(function(it,lt,yt){for(var vt=[],Nt=this.sel,re=0;re<Nt.ranges.length;re++){var pe=Nt.ranges[re];vt[re]={from:pe.from(),to:pe.to(),text:this.splitLines(it[re]),origin:yt}}for(var Ee=lt&<!="end"&&Xc(this,vt,lt),be=vt.length-1;be>=0;be--)zu(this,vt[be]);Ee?Qd(this,Ee):this.cm&&au(this.cm)}),undo:ws(function(){id(this,"undo")}),redo:ws(function(){id(this,"redo")}),undoSelection:ws(function(){id(this,"undo",!0)}),redoSelection:ws(function(){id(this,"redo",!0)}),setExtending:function(it){this.extend=it},getExtending:function(){return this.extend},historySize:function(){for(var it=this.history,lt=0,yt=0,vt=0;vt<it.done.length;vt++)it.done[vt].ranges||++lt;for(var Nt=0;Nt<it.undone.length;Nt++)it.undone[Nt].ranges||++yt;return{undo:lt,redo:yt}},clearHistory:function(){var it=this;this.history=new hc(this.history.maxGeneration),Ll(this,function(lt){return lt.history=it.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(it){return it&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(it){return this.history.generation==(it||this.cleanGeneration)},getHistory:function(){return{done:hu(this.history.done),undone:hu(this.history.undone)}},setHistory:function(it){var lt=this.history=new hc(this.history.maxGeneration);lt.done=hu(it.done.slice(0),null,!0),lt.undone=hu(it.undone.slice(0),null,!0)},setGutterMarker:ws(function(it,lt,yt){return Th(this,it,"gutter",function(vt){var Nt=vt.gutterMarkers||(vt.gutterMarkers={});return Nt[lt]=yt,!yt&&Mt(Nt)&&(vt.gutterMarkers=null),!0})}),clearGutter:ws(function(it){var lt=this;this.iter(function(yt){yt.gutterMarkers&&yt.gutterMarkers[it]&&Th(lt,yt,"gutter",function(){return yt.gutterMarkers[it]=null,Mt(yt.gutterMarkers)&&(yt.gutterMarkers=null),!0})})}),lineInfo:function(it){var lt;if(typeof it=="number"){if(!pn(this,it)||(lt=it,it=cn(this,it),!it))return null}else if(lt=Pe(it),lt==null)return null;return{line:lt,handle:it,text:it.text,gutterMarkers:it.gutterMarkers,textClass:it.textClass,bgClass:it.bgClass,wrapClass:it.wrapClass,widgets:it.widgets}},addLineClass:ws(function(it,lt,yt){return Th(this,it,lt=="gutter"?"gutter":"class",function(vt){var Nt=lt=="text"?"textClass":lt=="background"?"bgClass":lt=="gutter"?"gutterClass":"wrapClass";if(!vt[Nt])vt[Nt]=yt;else{if(Pt(yt).test(vt[Nt]))return!1;vt[Nt]+=" "+yt}return!0})}),removeLineClass:ws(function(it,lt,yt){return Th(this,it,lt=="gutter"?"gutter":"class",function(vt){var Nt=lt=="text"?"textClass":lt=="background"?"bgClass":lt=="gutter"?"gutterClass":"wrapClass",re=vt[Nt];if(re)if(yt==null)vt[Nt]=null;else{var pe=re.match(Pt(yt));if(!pe)return!1;var Ee=pe.index+pe[0].length;vt[Nt]=re.slice(0,pe.index)+(!pe.index||Ee==re.length?"":" ")+re.slice(Ee)||null}else return!1;return!0})}),addLineWidget:ws(function(it,lt,yt){return qd(this,it,lt,yt)}),removeLineWidget:function(it){it.clear()},markText:function(it,lt,yt){return kh(this,gn(this,it),gn(this,lt),yt,yt&&yt.type||"range")},setBookmark:function(it,lt){var yt={replacedWith:lt&&(lt.nodeType==null?lt.widget:lt),insertLeft:lt&<.insertLeft,clearWhenEmpty:!1,shared:lt&<.shared,handleMouseEvents:lt&<.handleMouseEvents};return it=gn(this,it),kh(this,it,it,yt,"bookmark")},findMarksAt:function(it){it=gn(this,it);var lt=[],yt=cn(this,it.line).markedSpans;if(yt)for(var vt=0;vt<yt.length;++vt){var Nt=yt[vt];(Nt.from==null||Nt.from<=it.ch)&&(Nt.to==null||Nt.to>=it.ch)&<.push(Nt.marker.parent||Nt.marker)}return lt},findMarks:function(it,lt,yt){it=gn(this,it),lt=gn(this,lt);var vt=[],Nt=it.line;return this.iter(it.line,lt.line+1,function(re){var pe=re.markedSpans;if(pe)for(var Ee=0;Ee<pe.length;Ee++){var be=pe[Ee];!(be.to!=null&&Nt==it.line&&it.ch>=be.to||be.from==null&&Nt!=it.line||be.from!=null&&Nt==lt.line&&be.from>=lt.ch)&&(!yt||yt(be.marker))&&vt.push(be.marker.parent||be.marker)}++Nt}),vt},getAllMarks:function(){var it=[];return this.iter(function(lt){var yt=lt.markedSpans;if(yt)for(var vt=0;vt<yt.length;++vt)yt[vt].from!=null&&it.push(yt[vt].marker)}),it},posFromIndex:function(it){var lt,yt=this.first,vt=this.lineSeparator().length;return this.iter(function(Nt){var re=Nt.text.length+vt;if(re>it)return lt=it,!0;it-=re,++yt}),gn(this,Ke(yt,lt))},indexFromPos:function(it){it=gn(this,it);var lt=it.ch;if(it.line<this.first||it.ch<0)return 0;var yt=this.lineSeparator().length;return this.iter(this.first,it.line,function(vt){lt+=vt.text.length+yt}),lt},copy:function(it){var lt=new Bs(Nn(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return lt.scrollTop=this.scrollTop,lt.scrollLeft=this.scrollLeft,lt.sel=this.sel,lt.extend=!1,it&&(lt.history.undoDepth=this.history.undoDepth,lt.setHistory(this.getHistory())),lt},linkedDoc:function(it){it||(it={});var lt=this.first,yt=this.first+this.size;it.from!=null&&it.from>lt&&(lt=it.from),it.to!=null&&it.to<yt&&(yt=it.to);var vt=new Bs(Nn(this,lt,yt),it.mode||this.modeOption,lt,this.lineSep,this.direction);return it.sharedHist&&(vt.history=this.history),(this.linked||(this.linked=[])).push({doc:vt,sharedHist:it.sharedHist}),vt.linked=[{doc:this,isParent:!0,sharedHist:it.sharedHist}],Yp(vt,hg(this)),vt},unlinkDoc:function(it){if(it instanceof qr&&(it=it.doc),this.linked)for(var lt=0;lt<this.linked.length;++lt){var yt=this.linked[lt];if(yt.doc==it){this.linked.splice(lt,1),it.unlinkDoc(this),cg(hg(this));break}}if(it.history==this.history){var vt=[it.id];Ll(it,function(Nt){return vt.push(Nt.id)},!0),it.history=new hc(null),it.history.done=hu(this.history.done,vt),it.history.undone=hu(this.history.undone,vt)}},iterLinkedDocs:function(it){Ll(this,it)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(it){return this.lineSep?it.split(this.lineSep):ui(it)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:ws(function(it){it!="rtl"&&(it="ltr"),it!=this.direction&&(this.direction=it,this.iter(function(lt){return lt.order=null}),this.cm&&tv(this.cm))})}),Bs.prototype.eachLine=Bs.prototype.iter;var rd=0;function dg(it){var lt=this;if(Qp(lt),!(Ze(lt,it)||$s(lt.display,it))){Bn(it),kt&&(rd=+new Date);var yt=na(lt,it,!0),vt=it.dataTransfer.files;if(!(!yt||lt.isReadOnly()))if(vt&&vt.length&&window.FileReader&&window.File)for(var Nt=vt.length,re=Array(Nt),pe=0,Ee=function(){++pe==Nt&&cs(lt,function(){yt=gn(lt.doc,yt);var kn={from:yt,to:yt,text:lt.doc.splitLines(re.filter(function(ni){return ni!=null}).join(lt.doc.lineSeparator())),origin:"paste"};zu(lt.doc,kn),Qd(lt.doc,uu(gn(lt.doc,yt),gn(lt.doc,Bu(kn))))})()},be=function(kn,ni){if(lt.options.allowDropFileTypes&&ie(lt.options.allowDropFileTypes,kn.type)==-1){Ee();return}var ai=new FileReader;ai.onerror=function(){return Ee()},ai.onload=function(){var Si=ai.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Si)){Ee();return}re[ni]=Si,Ee()},ai.readAsText(kn)},je=0;je<vt.length;je++)be(vt[je],je);else{if(lt.state.draggingText&<.doc.sel.contains(yt)>-1){lt.state.draggingText(it),setTimeout(function(){return lt.display.input.focus()},20);return}try{var mn=it.dataTransfer.getData("Text");if(mn){var Xe;if(lt.state.draggingText&&!lt.state.draggingText.copy&&(Xe=lt.listSelections()),Lh(lt.doc,uu(yt,yt)),Xe)for(var Dn=0;Dn<Xe.length;++Dn)Mh(lt.doc,"",Xe[Dn].anchor,Xe[Dn].head,"drag");lt.replaceSelection(mn,"around","paste"),lt.display.input.focus()}}catch(kn){}}}}function _p(it,lt){if(kt&&(!it.state.draggingText||+new Date-rd<100)){ci(lt);return}if(!(Ze(it,lt)||$s(it.display,lt))&&(lt.dataTransfer.setData("Text",it.getSelection()),lt.dataTransfer.effectAllowed="copyMove",lt.dataTransfer.setDragImage&&!Lt)){var yt=qt("img",null,null,"position: fixed; left: 0; top: 0;");yt.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Ct&&(yt.width=yt.height=1,it.display.wrapper.appendChild(yt),yt._top=yt.offsetTop),lt.dataTransfer.setDragImage(yt,0,0),Ct&&yt.parentNode.removeChild(yt)}}function Jp(it,lt){var yt=na(it,lt);if(yt){var vt=document.createDocumentFragment();Yr(it,yt,vt),it.display.dragCursor||(it.display.dragCursor=qt("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),it.display.lineSpace.insertBefore(it.display.dragCursor,it.display.cursorDiv)),Ft(it.display.dragCursor,vt)}}function Qp(it){it.display.dragCursor&&(it.display.lineSpace.removeChild(it.display.dragCursor),it.display.dragCursor=null)}function qp(it){if(document.getElementsByClassName){for(var lt=document.getElementsByClassName("CodeMirror"),yt=[],vt=0;vt<lt.length;vt++){var Nt=lt[vt].CodeMirror;Nt&&yt.push(Nt)}yt.length&&yt[0].operation(function(){for(var re=0;re<yt.length;re++)it(yt[re])})}}var fg=!1;function Ga(){fg||(pc(),fg=!0)}function pc(){var it;Ue(window,"resize",function(){it==null&&(it=setTimeout(function(){it=null,qp(gg)},100))}),Ue(window,"blur",function(){return qp(Sh)})}function gg(it){var lt=it.display;lt.cachedCharWidth=lt.cachedTextHeight=lt.cachedPaddingH=null,lt.scrollbarsClipped=!1,it.setSize()}for(var Wl={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},od=0;od<10;od++)Wl[od+48]=Wl[od+96]=String(od);for(var $d=65;$d<=90;$d++)Wl[$d]=String.fromCharCode($d);for(var sd=1;sd<=12;sd++)Wl[sd+111]=Wl[sd+63235]="F"+sd;var La={};La.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"},La.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"},La.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"},La.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"]},La.default=st?La.macDefault:La.pcDefault;function pg(it){var lt=it.split(/-(?!$)/);it=lt[lt.length-1];for(var yt,vt,Nt,re,pe=0;pe<lt.length-1;pe++){var Ee=lt[pe];if(/^(cmd|meta|m)$/i.test(Ee))re=!0;else if(/^a(lt)?$/i.test(Ee))yt=!0;else if(/^(c|ctrl|control)$/i.test(Ee))vt=!0;else if(/^s(hift)?$/i.test(Ee))Nt=!0;else throw new Error("Unrecognized modifier name: "+Ee)}return yt&&(it="Alt-"+it),vt&&(it="Ctrl-"+it),re&&(it="Cmd-"+it),Nt&&(it="Shift-"+it),it}function mg(it){var lt={};for(var yt in it)if(it.hasOwnProperty(yt)){var vt=it[yt];if(/^(name|fallthrough|(de|at)tach)$/.test(yt))continue;if(vt=="..."){delete it[yt];continue}for(var Nt=Oe(yt.split(" "),pg),re=0;re<Nt.length;re++){var pe=void 0,Ee=void 0;re==Nt.length-1?(Ee=Nt.join(" "),pe=vt):(Ee=Nt.slice(0,re+1).join(" "),pe="...");var be=lt[Ee];if(!be)lt[Ee]=pe;else if(be!=pe)throw new Error("Inconsistent bindings for "+Ee)}delete it[yt]}for(var je in lt)it[je]=lt[je];return it}function el(it,lt,yt,vt){lt=Nh(lt);var Nt=lt.call?lt.call(it,vt):lt[it];if(Nt===!1)return"nothing";if(Nt==="...")return"multi";if(Nt!=null&&yt(Nt))return"handled";if(lt.fallthrough){if(Object.prototype.toString.call(lt.fallthrough)!="[object Array]")return el(it,lt.fallthrough,yt,vt);for(var re=0;re<lt.fallthrough.length;re++){var pe=el(it,lt.fallthrough[re],yt,vt);if(pe)return pe}}}function mc(it){var lt=typeof it=="string"?it:Wl[it.keyCode];return lt=="Ctrl"||lt=="Alt"||lt=="Shift"||lt=="Mod"}function vg(it,lt,yt){var vt=it;return lt.altKey&&vt!="Alt"&&(it="Alt-"+it),(ft?lt.metaKey:lt.ctrlKey)&&vt!="Ctrl"&&(it="Ctrl-"+it),(ft?lt.ctrlKey:lt.metaKey)&&vt!="Mod"&&(it="Cmd-"+it),!yt&<.shiftKey&&vt!="Shift"&&(it="Shift-"+it),it}function $p(it,lt){if(Ct&&it.keyCode==34&&it.char)return!1;var yt=Wl[it.keyCode];return yt==null||it.altGraphKey?!1:(it.keyCode==3&&it.code&&(yt=it.code),vg(yt,it,lt))}function Nh(it){return typeof it=="string"?La[it]:it}function Aa(it,lt){for(var yt=it.doc.sel.ranges,vt=[],Nt=0;Nt<yt.length;Nt++){for(var re=lt(yt[Nt]);vt.length&&nn(re.from,Me(vt).to)<=0;){var pe=vt.pop();if(nn(pe.from,re.from)<0){re.from=pe.from;break}}vt.push(re)}to(it,function(){for(var Ee=vt.length-1;Ee>=0;Ee--)Mh(it.doc,"",vt[Ee].from,vt[Ee].to,"+delete");au(it)})}function yg(it,lt,yt){var vt=wt(it.text,lt+yt,yt);return vt<0||vt>it.text.length?null:vt}function ns(it,lt,yt){var vt=yg(it,lt.ch,yt);return vt==null?null:new Ke(lt.line,vt,yt<0?"after":"before")}function ad(it,lt,yt,vt,Nt){if(it){lt.doc.direction=="rtl"&&(Nt=-Nt);var re=Ge(yt,lt.doc.direction);if(re){var pe=Nt<0?Me(re):re[0],Ee=Nt<0==(pe.level==1),be=Ee?"after":"before",je;if(pe.level>0||lt.doc.direction=="rtl"){var mn=Rl(lt,yt);je=Nt<0?yt.text.length-1:0;var Xe=ja(lt,mn,je).top;je=jt(function(Dn){return ja(lt,mn,Dn).top==Xe},Nt<0==(pe.level==1)?pe.from:pe.to-1,je),be=="before"&&(je=yg(yt,je,1))}else je=Nt<0?pe.to:pe.from;return new Ke(vt,je,be)}}return new Ke(vt,Nt<0?yt.text.length:0,Nt<0?"before":"after")}function tf(it,lt,yt,vt){var Nt=Ge(lt,it.doc.direction);if(!Nt)return ns(lt,yt,vt);yt.ch>=lt.text.length?(yt.ch=lt.text.length,yt.sticky="before"):yt.ch<=0&&(yt.ch=0,yt.sticky="after");var re=oe(Nt,yt.ch,yt.sticky),pe=Nt[re];if(it.doc.direction=="ltr"&&pe.level%2==0&&(vt>0?pe.to>yt.ch:pe.from<yt.ch))return ns(lt,yt,vt);var Ee=function(Ii,tr){return yg(lt,Ii instanceof Ke?Ii.ch:Ii,tr)},be,je=function(Ii){return it.options.lineWrapping?(be=be||Rl(it,lt),qf(it,lt,be,Ii)):{begin:0,end:lt.text.length}},mn=je(yt.sticky=="before"?Ee(yt,-1):yt.ch);if(it.doc.direction=="rtl"||pe.level==1){var Xe=pe.level==1==vt<0,Dn=Ee(yt,Xe?1:-1);if(Dn!=null&&(Xe?Dn<=pe.to&&Dn<=mn.end:Dn>=pe.from&&Dn>=mn.begin)){var kn=Xe?"before":"after";return new Ke(yt.line,Dn,kn)}}var ni=function(Ii,tr,Ui){for(var or=function(Fo,fs){return fs?new Ke(yt.line,Ee(Fo,1),"before"):new Ke(yt.line,Fo,"after")};Ii>=0&&Ii<Nt.length;Ii+=tr){var Mr=Nt[Ii],Hi=tr>0==(Mr.level!=1),Hr=Hi?Ui.begin:Ee(Ui.end,-1);if(Mr.from<=Hr&&Hr<Mr.to||(Hr=Hi?Mr.from:Ee(Mr.to,-1),Ui.begin<=Hr&&Hr<Ui.end))return or(Hr,Hi)}},ai=ni(re+vt,vt,mn);if(ai)return ai;var Si=vt>0?mn.end:Ee(mn.begin,-1);return Si!=null&&!(vt>0&&Si==lt.text.length)&&(ai=ni(vt>0?0:Nt.length-1,vt,je(Si)),ai)?ai:null}var Hu={selectAll:es,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),he)},killLine:function(it){return Aa(it,function(lt){if(lt.empty()){var yt=cn(it.doc,lt.head.line).text.length;return lt.head.ch==yt&<.head.line<it.lastLine()?{from:lt.head,to:Ke(lt.head.line+1,0)}:{from:lt.head,to:Ke(lt.head.line,yt)}}else return{from:lt.from(),to:lt.to()}})},deleteLine:function(it){return Aa(it,function(lt){return{from:Ke(lt.from().line,0),to:gn(it.doc,Ke(lt.to().line+1,0))}})},delLineLeft:function(it){return Aa(it,function(lt){return{from:Ke(lt.from().line,0),to:lt.from()}})},delWrappedLineLeft:function(it){return Aa(it,function(lt){var yt=it.charCoords(lt.head,"div").top+5,vt=it.coordsChar({left:0,top:yt},"div");return{from:vt,to:lt.from()}})},delWrappedLineRight:function(it){return Aa(it,function(lt){var yt=it.charCoords(lt.head,"div").top+5,vt=it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:yt},"div");return{from:lt.from(),to:vt}})},undo:function(it){return it.undo()},redo:function(it){return it.redo()},undoSelection:function(it){return it.undoSelection()},redoSelection:function(it){return it.redoSelection()},goDocStart:function(it){return it.extendSelection(Ke(it.firstLine(),0))},goDocEnd:function(it){return it.extendSelection(Ke(it.lastLine()))},goLineStart:function(it){return it.extendSelectionsBy(function(lt){return vc(it,lt.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(it){return it.extendSelectionsBy(function(lt){return Sg(it,lt.head)},{origin:"+move",bias:1})},goLineEnd:function(it){return it.extendSelectionsBy(function(lt){return yc(it,lt.head.line)},{origin:"+move",bias:-1})},goLineRight:function(it){return it.extendSelectionsBy(function(lt){var yt=it.cursorCoords(lt.head,"div").top+5;return it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:yt},"div")},Ne)},goLineLeft:function(it){return it.extendSelectionsBy(function(lt){var yt=it.cursorCoords(lt.head,"div").top+5;return it.coordsChar({left:0,top:yt},"div")},Ne)},goLineLeftSmart:function(it){return it.extendSelectionsBy(function(lt){var yt=it.cursorCoords(lt.head,"div").top+5,vt=it.coordsChar({left:0,top:yt},"div");return vt.ch<it.getLine(vt.line).search(/\S/)?Sg(it,lt.head):vt},Ne)},goLineUp:function(it){return it.moveV(-1,"line")},goLineDown:function(it){return it.moveV(1,"line")},goPageUp:function(it){return it.moveV(-1,"page")},goPageDown:function(it){return it.moveV(1,"page")},goCharLeft:function(it){return it.moveH(-1,"char")},goCharRight:function(it){return it.moveH(1,"char")},goColumnLeft:function(it){return it.moveH(-1,"column")},goColumnRight:function(it){return it.moveH(1,"column")},goWordLeft:function(it){return it.moveH(-1,"word")},goGroupRight:function(it){return it.moveH(1,"group")},goGroupLeft:function(it){return it.moveH(-1,"group")},goWordRight:function(it){return it.moveH(1,"word")},delCharBefore:function(it){return it.deleteH(-1,"codepoint")},delCharAfter:function(it){return it.deleteH(1,"char")},delWordBefore:function(it){return it.deleteH(-1,"word")},delWordAfter:function(it){return it.deleteH(1,"word")},delGroupBefore:function(it){return it.deleteH(-1,"group")},delGroupAfter:function(it){return it.deleteH(1,"group")},indentAuto:function(it){return it.indentSelection("smart")},indentMore:function(it){return it.indentSelection("add")},indentLess:function(it){return it.indentSelection("subtract")},insertTab:function(it){return it.replaceSelection(" ")},insertSoftTab:function(it){for(var lt=[],yt=it.listSelections(),vt=it.options.tabSize,Nt=0;Nt<yt.length;Nt++){var re=yt[Nt].from(),pe=fe(it.getLine(re.line),re.ch,vt);lt.push(tn(vt-pe%vt))}it.replaceSelections(lt)},defaultTab:function(it){it.somethingSelected()?it.indentSelection("add"):it.execCommand("insertTab")},transposeChars:function(it){return to(it,function(){for(var lt=it.listSelections(),yt=[],vt=0;vt<lt.length;vt++)if(lt[vt].empty()){var Nt=lt[vt].head,re=cn(it.doc,Nt.line).text;if(re){if(Nt.ch==re.length&&(Nt=new Ke(Nt.line,Nt.ch-1)),Nt.ch>0)Nt=new Ke(Nt.line,Nt.ch+1),it.replaceRange(re.charAt(Nt.ch-1)+re.charAt(Nt.ch-2),Ke(Nt.line,Nt.ch-2),Nt,"+transpose");else if(Nt.line>it.doc.first){var pe=cn(it.doc,Nt.line-1).text;pe&&(Nt=new Ke(Nt.line,1),it.replaceRange(re.charAt(0)+it.doc.lineSeparator()+pe.charAt(pe.length-1),Ke(Nt.line-1,pe.length-1),Nt,"+transpose"))}}yt.push(new fo(Nt,Nt))}it.setSelections(yt)})},newlineAndIndent:function(it){return to(it,function(){for(var lt=it.listSelections(),yt=lt.length-1;yt>=0;yt--)it.replaceRange(it.doc.lineSeparator(),lt[yt].anchor,lt[yt].head,"+input");lt=it.listSelections();for(var vt=0;vt<lt.length;vt++)it.indentLine(lt[vt].from().line,null,!0);au(it)})},openLine:function(it){return it.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(it){return it.toggleOverwrite()}};function vc(it,lt){var yt=cn(it.doc,lt),vt=Mi(yt);return vt!=yt&&(lt=Pe(vt)),ad(!0,it,vt,lt,1)}function yc(it,lt){var yt=cn(it.doc,lt),vt=lr(yt);return vt!=yt&&(lt=Pe(vt)),ad(!0,it,yt,lt,-1)}function Sg(it,lt){var yt=vc(it,lt.line),vt=cn(it.doc,yt.line),Nt=Ge(vt,it.doc.direction);if(!Nt||Nt[0].level==0){var re=Math.max(yt.ch,vt.text.search(/\S/)),pe=lt.line==yt.line&<.ch<=re&<.ch;return Ke(yt.line,pe?0:re,yt.sticky)}return yt}function Sc(it,lt,yt){if(typeof lt=="string"&&(lt=Hu[lt],!lt))return!1;it.display.input.ensurePolled();var vt=it.display.shift,Nt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),yt&&(it.display.shift=!1),Nt=lt(it)!=ge}finally{it.display.shift=vt,it.state.suppressEdits=!1}return Nt}function xg(it,lt,yt){for(var vt=0;vt<it.state.keyMaps.length;vt++){var Nt=el(lt,it.state.keyMaps[vt],yt,it);if(Nt)return Nt}return it.options.extraKeys&&el(lt,it.options.extraKeys,yt,it)||el(lt,it.options.keyMap,yt,it)}var Ul=new $t;function Oh(it,lt,yt,vt){var Nt=it.state.keySeq;if(Nt){if(mc(lt))return"handled";if(/\'$/.test(lt)?it.state.keySeq=null:Ul.set(50,function(){it.state.keySeq==Nt&&(it.state.keySeq=null,it.display.input.reset())}),ef(it,Nt+" "+lt,yt,vt))return!0}return ef(it,lt,yt,vt)}function ef(it,lt,yt,vt){var Nt=xg(it,lt,vt);return Nt=="multi"&&(it.state.keySeq=lt),Nt=="handled"&&li(it,"keyHandled",it,lt,yt),(Nt=="handled"||Nt=="multi")&&(Bn(yt),ho(it)),!!Nt}function nf(it,lt){var yt=$p(lt,!0);return yt?lt.shiftKey&&!it.state.keySeq?Oh(it,"Shift-"+yt,lt,function(vt){return Sc(it,vt,!0)})||Oh(it,yt,lt,function(vt){if(typeof vt=="string"?/^go[A-Z]/.test(vt):vt.motion)return Sc(it,vt)}):Oh(it,yt,lt,function(vt){return Sc(it,vt)}):!1}function rf(it,lt,yt){return Oh(it,"'"+yt+"'",lt,function(vt){return Sc(it,vt,!0)})}var Ih=null;function wg(it){var lt=this;if(!(it.target&&it.target!=lt.display.input.getField())&&(lt.curOp.focus=ae(),!Ze(lt,it))){kt&&Bt<11&&it.keyCode==27&&(it.returnValue=!1);var yt=it.keyCode;lt.display.shift=yt==16||it.shiftKey;var vt=nf(lt,it);Ct&&(Ih=vt?yt:null,!vt&&yt==88&&!Wi&&(st?it.metaKey:it.ctrlKey)&<.replaceSelection("",null,"cut")),zt&&!st&&!vt&&yt==46&&it.shiftKey&&!it.ctrlKey&&document.execCommand&&document.execCommand("cut"),yt==18&&!/\bCodeMirror-crosshair\b/.test(lt.display.lineDiv.className)&&Pg(lt)}}function Pg(it){var lt=it.display.lineDiv;xe(lt,"CodeMirror-crosshair");function yt(vt){(vt.keyCode==18||!vt.altKey)&&(Dt(lt,"CodeMirror-crosshair"),vn(document,"keyup",yt),vn(document,"mouseover",yt))}Ue(document,"keyup",yt),Ue(document,"mouseover",yt)}function bg(it){it.keyCode==16&&(this.doc.sel.shift=!1),Ze(this,it)}function Al(it){var lt=this;if(!(it.target&&it.target!=lt.display.input.getField())&&!($s(lt.display,it)||Ze(lt,it)||it.ctrlKey&&!it.altKey||st&&it.metaKey)){var yt=it.keyCode,vt=it.charCode;if(Ct&&yt==Ih){Ih=null,Bn(it);return}if(!(Ct&&(!it.which||it.which<10)&&nf(lt,it))){var Nt=String.fromCharCode(vt==null?yt:vt);Nt!="\b"&&(rf(lt,it,Nt)||lt.display.input.onKeyPress(it))}}}var tm=400,Cg=function(it,lt,yt){this.time=it,this.pos=lt,this.button=yt};Cg.prototype.compare=function(it,lt,yt){return this.time+tm>it&&nn(lt,this.pos)==0&&yt==this.button};var xc,Dh;function Eg(it,lt){var yt=+new Date;return Dh&&Dh.compare(yt,it,lt)?(xc=Dh=null,"triple"):xc&&xc.compare(yt,it,lt)?(Dh=new Cg(yt,it,lt),xc=null,"double"):(xc=new Cg(yt,it,lt),Dh=null,"single")}function Ml(it){var lt=this,yt=lt.display;if(!(Ze(lt,it)||yt.activeTouch&&yt.input.supportsTouch())){if(yt.input.ensurePolled(),yt.shift=it.shiftKey,$s(yt,it)){xt||(yt.scroller.draggable=!1,setTimeout(function(){return yt.scroller.draggable=!0},100));return}if(!af(lt,it)){var vt=na(lt,it),Nt=xi(it),re=vt?Eg(vt,Nt):"single";window.focus(),Nt==1&<.state.selectingText&<.state.selectingText(it),!(vt&&Lg(lt,Nt,vt,re,it))&&(Nt==1?vt?em(lt,vt,re,it):pi(it)==yt.scroller&&Bn(it):Nt==2?(vt&&Jd(lt.doc,vt),setTimeout(function(){return yt.input.focus()},20)):Nt==3&&(pt?lt.display.input.onContextMenu(it):zo(lt)))}}}function Lg(it,lt,yt,vt,Nt){var re="Click";return vt=="double"?re="Double"+re:vt=="triple"&&(re="Triple"+re),re=(lt==1?"Left":lt==2?"Middle":"Right")+re,Oh(it,vg(re,Nt),Nt,function(pe){if(typeof pe=="string"&&(pe=Hu[pe]),!pe)return!1;var Ee=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),Ee=pe(it,yt)!=ge}finally{it.state.suppressEdits=!1}return Ee})}function of(it,lt,yt){var vt=it.getOption("configureMouse"),Nt=vt?vt(it,lt,yt):{};if(Nt.unit==null){var re=rt?yt.shiftKey&&yt.metaKey:yt.altKey;Nt.unit=re?"rectangle":lt=="single"?"char":lt=="double"?"word":"line"}return(Nt.extend==null||it.doc.extend)&&(Nt.extend=it.doc.extend||yt.shiftKey),Nt.addNew==null&&(Nt.addNew=st?yt.metaKey:yt.ctrlKey),Nt.moveOnDrag==null&&(Nt.moveOnDrag=!(st?yt.altKey:yt.ctrlKey)),Nt}function em(it,lt,yt,vt){kt?setTimeout(me(Eo,it),0):it.curOp.focus=ae();var Nt=of(it,yt,vt),re=it.doc.sel,pe;it.options.dragDrop&&Ci&&!it.isReadOnly()&&yt=="single"&&(pe=re.contains(lt))>-1&&(nn((pe=re.ranges[pe]).from(),lt)<0||lt.xRel>0)&&(nn(pe.to(),lt)>0||lt.xRel<0)?Ag(it,vt,lt,Nt):nv(it,vt,lt,Nt)}function Ag(it,lt,yt,vt){var Nt=it.display,re=!1,pe=cs(it,function(je){xt&&(Nt.scroller.draggable=!1),it.state.draggingText=!1,vn(Nt.wrapper.ownerDocument,"mouseup",pe),vn(Nt.wrapper.ownerDocument,"mousemove",Ee),vn(Nt.scroller,"dragstart",be),vn(Nt.scroller,"drop",pe),re||(Bn(je),vt.addNew||Jd(it.doc,yt,null,null,vt.extend),xt&&!Lt||kt&&Bt==9?setTimeout(function(){Nt.wrapper.ownerDocument.body.focus({preventScroll:!0}),Nt.input.focus()},20):Nt.input.focus())}),Ee=function(je){re=re||Math.abs(lt.clientX-je.clientX)+Math.abs(lt.clientY-je.clientY)>=10},be=function(){return re=!0};xt&&(Nt.scroller.draggable=!0),it.state.draggingText=pe,pe.copy=!vt.moveOnDrag,Nt.scroller.dragDrop&&Nt.scroller.dragDrop(),Ue(Nt.wrapper.ownerDocument,"mouseup",pe),Ue(Nt.wrapper.ownerDocument,"mousemove",Ee),Ue(Nt.scroller,"dragstart",be),Ue(Nt.scroller,"drop",pe),zo(it),setTimeout(function(){return Nt.input.focus()},20)}function Mg(it,lt,yt){if(yt=="char")return new fo(lt,lt);if(yt=="word")return it.findWordAt(lt);if(yt=="line")return new fo(Ke(lt.line,0),gn(it.doc,Ke(lt.line+1,0)));var vt=yt(it,lt);return new fo(vt.from,vt.to)}function nv(it,lt,yt,vt){var Nt=it.display,re=it.doc;Bn(lt);var pe,Ee,be=re.sel,je=be.ranges;if(vt.addNew&&!vt.extend?(Ee=re.sel.contains(yt),Ee>-1?pe=je[Ee]:pe=new fo(yt,yt)):(pe=re.sel.primary(),Ee=re.sel.primIndex),vt.unit=="rectangle")vt.addNew||(pe=new fo(yt,yt)),yt=na(it,lt,!0,!0),Ee=-1;else{var mn=Mg(it,yt,vt.unit);vt.extend?pe=_d(pe,mn.anchor,mn.head,vt.extend):pe=mn}vt.addNew?Ee==-1?(Ee=je.length,Gs(re,cl(it,je.concat([pe]),Ee),{scroll:!1,origin:"*mouse"})):je.length>1&&je[Ee].empty()&&vt.unit=="char"&&!vt.extend?(Gs(re,cl(it,je.slice(0,Ee).concat(je.slice(Ee+1)),0),{scroll:!1,origin:"*mouse"}),be=re.sel):ju(re,Ee,pe,De):(Ee=0,Gs(re,new $a([pe],0),De),be=re.sel);var Xe=yt;function Dn(Ui){if(nn(Xe,Ui)!=0)if(Xe=Ui,vt.unit=="rectangle"){for(var or=[],Mr=it.options.tabSize,Hi=fe(cn(re,yt.line).text,yt.ch,Mr),Hr=fe(cn(re,Ui.line).text,Ui.ch,Mr),Fo=Math.min(Hi,Hr),fs=Math.max(Hi,Hr),Zo=Math.min(yt.line,Ui.line),pa=Math.min(it.lastLine(),Math.max(yt.line,Ui.line));Zo<=pa;Zo++){var Ks=cn(re,Zo).text,as=$e(Ks,Fo,Mr);Fo==fs?or.push(new fo(Ke(Zo,as),Ke(Zo,as))):Ks.length>as&&or.push(new fo(Ke(Zo,as),Ke(Zo,$e(Ks,fs,Mr))))}or.length||or.push(new fo(yt,yt)),Gs(re,cl(it,be.ranges.slice(0,Ee).concat(or),Ee),{origin:"*mouse",scroll:!1}),it.scrollIntoView(Ui)}else{var Ma=pe,Rs=Mg(it,Ui,vt.unit),ls=Ma.anchor,$r;nn(Rs.anchor,ls)>0?($r=Rs.head,ls=sn(Ma.from(),Rs.anchor)):($r=Rs.anchor,ls=un(Ma.to(),Rs.head));var _o=be.ranges.slice(0);_o[Ee]=nm(it,new fo(gn(re,ls),$r)),Gs(re,cl(it,_o,Ee),De)}}var kn=Nt.wrapper.getBoundingClientRect(),ni=0;function ai(Ui){var or=++ni,Mr=na(it,Ui,!0,vt.unit=="rectangle");if(Mr)if(nn(Mr,Xe)!=0){it.curOp.focus=ae(),Dn(Mr);var Hi=Kr(Nt,re);(Mr.line>=Hi.to||Mr.line<Hi.from)&&setTimeout(cs(it,function(){ni==or&&ai(Ui)}),150)}else{var Hr=Ui.clientY<kn.top?-20:Ui.clientY>kn.bottom?20:0;Hr&&setTimeout(cs(it,function(){ni==or&&(Nt.scroller.scrollTop+=Hr,ai(Ui))}),50)}}function Si(Ui){it.state.selectingText=!1,ni=1/0,Ui&&(Bn(Ui),Nt.input.focus()),vn(Nt.wrapper.ownerDocument,"mousemove",Ii),vn(Nt.wrapper.ownerDocument,"mouseup",tr),re.history.lastSelOrigin=null}var Ii=cs(it,function(Ui){Ui.buttons===0||!xi(Ui)?Si(Ui):ai(Ui)}),tr=cs(it,Si);it.state.selectingText=tr,Ue(Nt.wrapper.ownerDocument,"mousemove",Ii),Ue(Nt.wrapper.ownerDocument,"mouseup",tr)}function nm(it,lt){var yt=lt.anchor,vt=lt.head,Nt=cn(it.doc,yt.line);if(nn(yt,vt)==0&&yt.sticky==vt.sticky)return lt;var re=Ge(Nt);if(!re)return lt;var pe=oe(re,yt.ch,yt.sticky),Ee=re[pe];if(Ee.from!=yt.ch&&Ee.to!=yt.ch)return lt;var be=pe+(Ee.from==yt.ch==(Ee.level!=1)?0:1);if(be==0||be==re.length)return lt;var je;if(vt.line!=yt.line)je=(vt.line-yt.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var mn=oe(re,vt.ch,vt.sticky),Xe=mn-pe||(vt.ch-yt.ch)*(Ee.level==1?-1:1);mn==be-1||mn==be?je=Xe<0:je=Xe>0}var Dn=re[be+(je?-1:0)],kn=je==(Dn.level==1),ni=kn?Dn.from:Dn.to,ai=kn?"after":"before";return yt.ch==ni&&yt.sticky==ai?lt:new fo(new Ke(yt.line,ni,ai),vt)}function sf(it,lt,yt,vt){var Nt,re;if(lt.touches)Nt=lt.touches[0].clientX,re=lt.touches[0].clientY;else try{Nt=lt.clientX,re=lt.clientY}catch(Dn){return!1}if(Nt>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;vt&&Bn(lt);var pe=it.display,Ee=pe.lineDiv.getBoundingClientRect();if(re>Ee.bottom||!Pn(it,yt))return Gn(lt);re-=Ee.top-pe.viewOffset;for(var be=0;be<it.display.gutterSpecs.length;++be){var je=pe.gutters.childNodes[be];if(je&&je.getBoundingClientRect().right>=Nt){var mn=We(it.doc,re),Xe=it.display.gutterSpecs[be];return ke(it,yt,it,mn,Xe.className,lt),Gn(lt)}}}function af(it,lt){return sf(it,lt,"gutterClick",!0)}function lf(it,lt){$s(it.display,lt)||im(it,lt)||Ze(it,lt,"contextmenu")||pt||it.display.input.onContextMenu(lt)}function im(it,lt){return Pn(it,"gutterContextMenu")?sf(it,lt,"gutterContextMenu",!1):!1}function uf(it){it.display.wrapper.className=it.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+it.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Go(it)}var Wu={toString:function(){return"CodeMirror.Init"}},Tg={},ld={};function rm(it){var lt=it.optionHandlers;function yt(vt,Nt,re,pe){it.defaults[vt]=Nt,re&&(lt[vt]=pe?function(Ee,be,je){je!=Wu&&re(Ee,be,je)}:re)}it.defineOption=yt,it.Init=Wu,yt("value","",function(vt,Nt){return vt.setValue(Nt)},!0),yt("mode",null,function(vt,Nt){vt.doc.modeOption=Nt,zr(vt)},!0),yt("indentUnit",2,zr,!0),yt("indentWithTabs",!1),yt("smartIndent",!0),yt("tabSize",4,function(vt){Yc(vt),Go(vt),Do(vt)},!0),yt("lineSeparator",null,function(vt,Nt){if(vt.doc.lineSep=Nt,!!Nt){var re=[],pe=vt.doc.first;vt.doc.iter(function(be){for(var je=0;;){var mn=be.text.indexOf(Nt,je);if(mn==-1)break;je=mn+Nt.length,re.push(Ke(pe,mn))}pe++});for(var Ee=re.length-1;Ee>=0;Ee--)Mh(vt.doc,Nt,re[Ee],Ke(re[Ee].line,re[Ee].ch+Nt.length))}}),yt("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(vt,Nt,re){vt.state.specialChars=new RegExp(Nt.source+(Nt.test(" ")?"":"| "),"g"),re!=Wu&&vt.refresh()}),yt("specialCharPlaceholder",so,function(vt){return vt.refresh()},!0),yt("electricChars",!0),yt("inputStyle",tt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),yt("spellcheck",!1,function(vt,Nt){return vt.getInputField().spellcheck=Nt},!0),yt("autocorrect",!1,function(vt,Nt){return vt.getInputField().autocorrect=Nt},!0),yt("autocapitalize",!1,function(vt,Nt){return vt.getInputField().autocapitalize=Nt},!0),yt("rtlMoveVisually",!ut),yt("wholeLineUpdateBefore",!0),yt("theme","default",function(vt){uf(vt),Wa(vt)},!0),yt("keyMap","default",function(vt,Nt,re){var pe=Nh(Nt),Ee=re!=Wu&&Nh(re);Ee&&Ee.detach&&Ee.detach(vt,pe),pe.attach&&pe.attach(vt,Ee||null)}),yt("extraKeys",null),yt("configureMouse",null),yt("lineWrapping",!1,om,!0),yt("gutters",[],function(vt,Nt){vt.display.gutterSpecs=bs(Nt,vt.options.lineNumbers),Wa(vt)},!0),yt("fixedGutter",!0,function(vt,Nt){vt.display.gutters.style.left=Nt?Kc(vt.display)+"px":"0",vt.refresh()},!0),yt("coverGutterNextToScrollbar",!1,function(vt){return Mu(vt)},!0),yt("scrollbarStyle","native",function(vt){ng(vt),Mu(vt),vt.display.scrollbars.setScrollTop(vt.doc.scrollTop),vt.display.scrollbars.setScrollLeft(vt.doc.scrollLeft)},!0),yt("lineNumbers",!1,function(vt,Nt){vt.display.gutterSpecs=bs(vt.options.gutters,Nt),Wa(vt)},!0),yt("firstLineNumber",1,Wa,!0),yt("lineNumberFormatter",function(vt){return vt},Wa,!0),yt("showCursorWhenSelecting",!1,hs,!0),yt("resetSelectionOnContextMenu",!0),yt("lineWiseCopyCut",!0),yt("pasteLinesPerSelection",!0),yt("selectionsMayTouch",!1),yt("readOnly",!1,function(vt,Nt){Nt=="nocursor"&&(Sh(vt),vt.display.input.blur()),vt.display.input.readOnlyChanged(Nt)}),yt("screenReaderLabel",null,function(vt,Nt){Nt=Nt===""?null:Nt,vt.display.input.screenReaderLabelChanged(Nt)}),yt("disableInput",!1,function(vt,Nt){Nt||vt.display.input.reset()},!0),yt("dragDrop",!0,hf),yt("allowDropFileTypes",null),yt("cursorBlinkRate",530),yt("cursorScrollMargin",0),yt("cursorHeight",1,hs,!0),yt("singleCursorHeightPerLine",!0,hs,!0),yt("workTime",100),yt("workDelay",100),yt("flattenSpans",!0,Yc,!0),yt("addModeClass",!1,Yc,!0),yt("pollInterval",100),yt("undoDepth",200,function(vt,Nt){return vt.doc.history.undoDepth=Nt}),yt("historyEventDelay",1250),yt("viewportMargin",10,function(vt){return vt.refresh()},!0),yt("maxHighlightLength",1e4,Yc,!0),yt("moveInputWithCursor",!0,function(vt,Nt){Nt||vt.display.input.resetPosition()}),yt("tabindex",null,function(vt,Nt){return vt.display.input.getField().tabIndex=Nt||""}),yt("autofocus",null),yt("direction","ltr",function(vt,Nt){return vt.doc.setDirection(Nt)},!0),yt("phrases",null)}function hf(it,lt,yt){var vt=yt&&yt!=Wu;if(!lt!=!vt){var Nt=it.display.dragFunctions,re=lt?Ue:vn;re(it.display.scroller,"dragstart",Nt.start),re(it.display.scroller,"dragenter",Nt.enter),re(it.display.scroller,"dragover",Nt.over),re(it.display.scroller,"dragleave",Nt.leave),re(it.display.scroller,"drop",Nt.drop)}}function om(it){it.options.lineWrapping?(xe(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(Dt(it.display.wrapper,"CodeMirror-wrap"),Rr(it)),fr(it),Do(it),Go(it),setTimeout(function(){return Mu(it)},100)}function qr(it,lt){var yt=this;if(!(this instanceof qr))return new qr(it,lt);this.options=lt=lt?He(lt):{},He(Tg,lt,!1);var vt=lt.value;typeof vt=="string"?vt=new Bs(vt,lt.mode,null,lt.lineSeparator,lt.direction):lt.mode&&(vt.modeOption=lt.mode),this.doc=vt;var Nt=new qr.inputStyles[lt.inputStyle](this),re=this.display=new Fu(it,vt,Nt,lt);re.wrapper.CodeMirror=this,uf(this),lt.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ng(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 $t,keySeq:null,specialChars:null},lt.autofocus&&!tt&&re.input.focus(),kt&&Bt<11&&setTimeout(function(){return yt.display.input.reset(!0)},20),wc(this),Ga(),Tu(this),this.curOp.forceUpdate=!0,Zd(this,vt),lt.autofocus&&!tt||this.hasFocus()?setTimeout(function(){yt.hasFocus()&&!yt.state.focused&&_r(yt)},20):Sh(this);for(var pe in ld)ld.hasOwnProperty(pe)&&ld[pe](this,lt[pe],Wu);rs(this),lt.finishInit&<.finishInit(this);for(var Ee=0;Ee<Fh.length;++Ee)Fh[Ee](this);ku(this),xt&<.lineWrapping&&getComputedStyle(re.lineDiv).textRendering=="optimizelegibility"&&(re.lineDiv.style.textRendering="auto")}qr.defaults=Tg,qr.optionHandlers=ld;function wc(it){var lt=it.display;Ue(lt.scroller,"mousedown",cs(it,Ml)),kt&&Bt<11?Ue(lt.scroller,"dblclick",cs(it,function(be){if(!Ze(it,be)){var je=na(it,be);if(!(!je||af(it,be)||$s(it.display,be))){Bn(be);var mn=it.findWordAt(je);Jd(it.doc,mn.anchor,mn.head)}}})):Ue(lt.scroller,"dblclick",function(be){return Ze(it,be)||Bn(be)}),Ue(lt.scroller,"contextmenu",function(be){return lf(it,be)}),Ue(lt.input.getField(),"contextmenu",function(be){lt.scroller.contains(be.target)||lf(it,be)});var yt,vt={end:0};function Nt(){lt.activeTouch&&(yt=setTimeout(function(){return lt.activeTouch=null},1e3),vt=lt.activeTouch,vt.end=+new Date)}function re(be){if(be.touches.length!=1)return!1;var je=be.touches[0];return je.radiusX<=1&&je.radiusY<=1}function pe(be,je){if(je.left==null)return!0;var mn=je.left-be.left,Xe=je.top-be.top;return mn*mn+Xe*Xe>20*20}Ue(lt.scroller,"touchstart",function(be){if(!Ze(it,be)&&!re(be)&&!af(it,be)){lt.input.ensurePolled(),clearTimeout(yt);var je=+new Date;lt.activeTouch={start:je,moved:!1,prev:je-vt.end<=300?vt:null},be.touches.length==1&&(lt.activeTouch.left=be.touches[0].pageX,lt.activeTouch.top=be.touches[0].pageY)}}),Ue(lt.scroller,"touchmove",function(){lt.activeTouch&&(lt.activeTouch.moved=!0)}),Ue(lt.scroller,"touchend",function(be){var je=lt.activeTouch;if(je&&!$s(lt,be)&&je.left!=null&&!je.moved&&new Date-je.start<300){var mn=it.coordsChar(lt.activeTouch,"page"),Xe;!je.prev||pe(je,je.prev)?Xe=new fo(mn,mn):!je.prev.prev||pe(je,je.prev.prev)?Xe=it.findWordAt(mn):Xe=new fo(Ke(mn.line,0),gn(it.doc,Ke(mn.line+1,0))),it.setSelection(Xe.anchor,Xe.head),it.focus(),Bn(be)}Nt()}),Ue(lt.scroller,"touchcancel",Nt),Ue(lt.scroller,"scroll",function(){lt.scroller.clientHeight&&(wh(it,lt.scroller.scrollTop),lu(it,lt.scroller.scrollLeft,!0),ke(it,"scroll",it))}),Ue(lt.scroller,"mousewheel",function(be){return Cs(it,be)}),Ue(lt.scroller,"DOMMouseScroll",function(be){return Cs(it,be)}),Ue(lt.wrapper,"scroll",function(){return lt.wrapper.scrollTop=lt.wrapper.scrollLeft=0}),lt.dragFunctions={enter:function(be){Ze(it,be)||ci(be)},over:function(be){Ze(it,be)||(Jp(it,be),ci(be))},start:function(be){return _p(it,be)},drop:cs(it,dg),leave:function(be){Ze(it,be)||Qp(it)}};var Ee=lt.input.getField();Ue(Ee,"keyup",function(be){return bg.call(it,be)}),Ue(Ee,"keydown",cs(it,wg)),Ue(Ee,"keypress",cs(it,Al)),Ue(Ee,"focus",function(be){return _r(it,be)}),Ue(Ee,"blur",function(be){return Sh(it,be)})}var Fh=[];qr.defineInitHook=function(it){return Fh.push(it)};function ds(it,lt,yt,vt){var Nt=it.doc,re;yt==null&&(yt="add"),yt=="smart"&&(Nt.mode.indent?re=oi(it,lt).state:yt="prev");var pe=it.options.tabSize,Ee=cn(Nt,lt),be=fe(Ee.text,null,pe);Ee.stateAfter&&(Ee.stateAfter=null);var je=Ee.text.match(/^\s*/)[0],mn;if(!vt&&!/\S/.test(Ee.text))mn=0,yt="not";else if(yt=="smart"&&(mn=Nt.mode.indent(re,Ee.text.slice(je.length),Ee.text),mn==ge||mn>150)){if(!vt)return;yt="prev"}yt=="prev"?lt>Nt.first?mn=fe(cn(Nt,lt-1).text,null,pe):mn=0:yt=="add"?mn=be+it.options.indentUnit:yt=="subtract"?mn=be-it.options.indentUnit:typeof yt=="number"&&(mn=be+yt),mn=Math.max(0,mn);var Xe="",Dn=0;if(it.options.indentWithTabs)for(var kn=Math.floor(mn/pe);kn;--kn)Dn+=pe,Xe+=" ";if(Dn<mn&&(Xe+=tn(mn-Dn)),Xe!=je)return Mh(Nt,Xe,Ke(lt,0),Ke(lt,je.length),"+input"),Ee.stateAfter=null,!0;for(var ni=0;ni<Nt.sel.ranges.length;ni++){var ai=Nt.sel.ranges[ni];if(ai.head.line==lt&&ai.head.ch<je.length){var Si=Ke(lt,je.length);ju(Nt,ni,new fo(Si,Si));break}}}var ga=null;function Bh(it){ga=it}function ud(it,lt,yt,vt,Nt){var re=it.doc;it.display.shift=!1,vt||(vt=re.sel);var pe=+new Date-200,Ee=Nt=="paste"||it.state.pasteIncoming>pe,be=ui(lt),je=null;if(Ee&&vt.ranges.length>1)if(ga&&ga.text.join(`
|
|
|
`)==lt){if(vt.ranges.length%ga.text.length==0){je=[];for(var mn=0;mn<ga.text.length;mn++)je.push(re.splitLines(ga.text[mn]))}}else be.length==vt.ranges.length&&it.options.pasteLinesPerSelection&&(je=Oe(be,function(Ii){return[Ii]}));for(var Xe=it.curOp.updateInput,Dn=vt.ranges.length-1;Dn>=0;Dn--){var kn=vt.ranges[Dn],ni=kn.from(),ai=kn.to();kn.empty()&&(yt&&yt>0?ni=Ke(ni.line,ni.ch-yt):it.state.overwrite&&!Ee?ai=Ke(ai.line,Math.min(cn(re,ai.line).text.length,ai.ch+Me(be).length)):Ee&&ga&&ga.lineWise&&ga.text.join(`
|
|
|
`)==be.join(`
|
|
|
`)&&(ni=ai=Ke(ni.line,0)));var Si={from:ni,to:ai,text:je?je[Dn%je.length]:be,origin:Nt||(Ee?"paste":it.state.cutIncoming>pe?"cut":"+input")};zu(it.doc,Si),li(it,"inputRead",it,Si)}lt&&!Ee&&Ng(it,lt),au(it),it.curOp.updateInput<2&&(it.curOp.updateInput=Xe),it.curOp.typing=!0,it.state.pasteIncoming=it.state.cutIncoming=-1}function kg(it,lt){var yt=it.clipboardData&&it.clipboardData.getData("Text");if(yt)return it.preventDefault(),!lt.isReadOnly()&&!lt.options.disableInput&&to(lt,function(){return ud(lt,yt,0,null,"paste")}),!0}function Ng(it,lt){if(!(!it.options.electricChars||!it.options.smartIndent))for(var yt=it.doc.sel,vt=yt.ranges.length-1;vt>=0;vt--){var Nt=yt.ranges[vt];if(!(Nt.head.ch>100||vt&&yt.ranges[vt-1].head.line==Nt.head.line)){var re=it.getModeAt(Nt.head),pe=!1;if(re.electricChars){for(var Ee=0;Ee<re.electricChars.length;Ee++)if(lt.indexOf(re.electricChars.charAt(Ee))>-1){pe=ds(it,Nt.head.line,"smart");break}}else re.electricInput&&re.electricInput.test(cn(it.doc,Nt.head.line).text.slice(0,Nt.head.ch))&&(pe=ds(it,Nt.head.line,"smart"));pe&&li(it,"electricInput",it,Nt.head.line)}}}function Og(it){for(var lt=[],yt=[],vt=0;vt<it.doc.sel.ranges.length;vt++){var Nt=it.doc.sel.ranges[vt].head.line,re={anchor:Ke(Nt,0),head:Ke(Nt+1,0)};yt.push(re),lt.push(it.getRange(re.anchor,re.head))}return{text:lt,ranges:yt}}function Ig(it,lt,yt,vt){it.setAttribute("autocorrect",yt?"":"off"),it.setAttribute("autocapitalize",vt?"":"off"),it.setAttribute("spellcheck",!!lt)}function Dg(){var it=qt("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),lt=qt("div",[it],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return xt?it.style.width="1000px":it.setAttribute("wrap","off"),mt&&(it.style.border="1px solid black"),Ig(it),lt}function Uu(it){var lt=it.optionHandlers,yt=it.helpers={};it.prototype={constructor:it,focus:function(){window.focus(),this.display.input.focus()},setOption:function(vt,Nt){var re=this.options,pe=re[vt];re[vt]==Nt&&vt!="mode"||(re[vt]=Nt,lt.hasOwnProperty(vt)&&cs(this,lt[vt])(this,Nt,pe),ke(this,"optionChange",this,vt))},getOption:function(vt){return this.options[vt]},getDoc:function(){return this.doc},addKeyMap:function(vt,Nt){this.state.keyMaps[Nt?"push":"unshift"](Nh(vt))},removeKeyMap:function(vt){for(var Nt=this.state.keyMaps,re=0;re<Nt.length;++re)if(Nt[re]==vt||Nt[re].name==vt)return Nt.splice(re,1),!0},addOverlay:xs(function(vt,Nt){var re=vt.token?vt:it.getMode(this.options,vt);if(re.startState)throw new Error("Overlays may not be stateful.");Fe(this.state.overlays,{mode:re,modeSpec:vt,opaque:Nt&&Nt.opaque,priority:Nt&&Nt.priority||0},function(pe){return pe.priority}),this.state.modeGen++,Do(this)}),removeOverlay:xs(function(vt){for(var Nt=this.state.overlays,re=0;re<Nt.length;++re){var pe=Nt[re].modeSpec;if(pe==vt||typeof vt=="string"&&pe.name==vt){Nt.splice(re,1),this.state.modeGen++,Do(this);return}}}),indentLine:xs(function(vt,Nt,re){typeof Nt!="string"&&typeof Nt!="number"&&(Nt==null?Nt=this.options.smartIndent?"smart":"prev":Nt=Nt?"add":"subtract"),pn(this.doc,vt)&&ds(this,vt,Nt,re)}),indentSelection:xs(function(vt){for(var Nt=this.doc.sel.ranges,re=-1,pe=0;pe<Nt.length;pe++){var Ee=Nt[pe];if(Ee.empty())Ee.head.line>re&&(ds(this,Ee.head.line,vt,!0),re=Ee.head.line,pe==this.doc.sel.primIndex&&au(this));else{var be=Ee.from(),je=Ee.to(),mn=Math.max(re,be.line);re=Math.min(this.lastLine(),je.line-(je.ch?0:1))+1;for(var Xe=mn;Xe<re;++Xe)ds(this,Xe,vt);var Dn=this.doc.sel.ranges;be.ch==0&&Nt.length==Dn.length&&Dn[pe].from().ch>0&&ju(this.doc,pe,new fo(be,Dn[pe].to()),he)}}}),getTokenAt:function(vt,Nt){return ei(this,vt,Nt)},getLineTokens:function(vt,Nt){return ei(this,Ke(vt),Nt,!0)},getTokenTypeAt:function(vt){vt=gn(this.doc,vt);var Nt=vi(this,cn(this.doc,vt.line)),re=0,pe=(Nt.length-1)/2,Ee=vt.ch,be;if(Ee==0)be=Nt[2];else for(;;){var je=re+pe>>1;if((je?Nt[je*2-1]:0)>=Ee)pe=je;else if(Nt[je*2+1]<Ee)re=je+1;else{be=Nt[je*2+2];break}}var mn=be?be.indexOf("overlay "):-1;return mn<0?be:mn==0?null:be.slice(0,mn-1)},getModeAt:function(vt){var Nt=this.doc.mode;return Nt.innerMode?it.innerMode(Nt,this.getTokenAt(vt).state).mode:Nt},getHelper:function(vt,Nt){return this.getHelpers(vt,Nt)[0]},getHelpers:function(vt,Nt){var re=[];if(!yt.hasOwnProperty(Nt))return re;var pe=yt[Nt],Ee=this.getModeAt(vt);if(typeof Ee[Nt]=="string")pe[Ee[Nt]]&&re.push(pe[Ee[Nt]]);else if(Ee[Nt])for(var be=0;be<Ee[Nt].length;be++){var je=pe[Ee[Nt][be]];je&&re.push(je)}else Ee.helperType&&pe[Ee.helperType]?re.push(pe[Ee.helperType]):pe[Ee.name]&&re.push(pe[Ee.name]);for(var mn=0;mn<pe._global.length;mn++){var Xe=pe._global[mn];Xe.pred(Ee,this)&&ie(re,Xe.val)==-1&&re.push(Xe.val)}return re},getStateAfter:function(vt,Nt){var re=this.doc;return vt=xn(re,vt==null?re.first+re.size-1:vt),oi(this,vt+1,Nt).state},cursorCoords:function(vt,Nt){var re,pe=this.doc.sel.primary();return vt==null?re=pe.head:typeof vt=="object"?re=gn(this.doc,vt):re=vt?pe.from():pe.to(),Mo(this,re,Nt||"page")},charCoords:function(vt,Nt){return za(this,gn(this.doc,vt),Nt||"page")},coordsChar:function(vt,Nt){return vt=bl(this,vt,Nt||"page"),jd(this,vt.left,vt.top)},lineAtHeight:function(vt,Nt){return vt=bl(this,{top:vt,left:0},Nt||"page").top,We(this.doc,vt+this.display.viewOffset)},heightAtLine:function(vt,Nt,re){var pe=!1,Ee;if(typeof vt=="number"){var be=this.doc.first+this.doc.size-1;vt<this.doc.first?vt=this.doc.first:vt>be&&(vt=be,pe=!0),Ee=cn(this.doc,vt)}else Ee=vt;return jo(this,Ee,{top:0,left:0},Nt||"page",re||pe).top+(pe?this.doc.height-Sr(Ee):0)},defaultTextHeight:function(){return su(this.display)},defaultCharWidth:function(){return yh(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(vt,Nt,re,pe,Ee){var be=this.display;vt=Mo(this,gn(this.doc,vt));var je=vt.bottom,mn=vt.left;if(Nt.style.position="absolute",Nt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(Nt),be.sizer.appendChild(Nt),pe=="over")je=vt.top;else if(pe=="above"||pe=="near"){var Xe=Math.max(be.wrapper.clientHeight,this.doc.height),Dn=Math.max(be.sizer.clientWidth,be.lineSpace.clientWidth);(pe=="above"||vt.bottom+Nt.offsetHeight>Xe)&&vt.top>Nt.offsetHeight?je=vt.top-Nt.offsetHeight:vt.bottom+Nt.offsetHeight<=Xe&&(je=vt.bottom),mn+Nt.offsetWidth>Dn&&(mn=Dn-Nt.offsetWidth)}Nt.style.top=je+"px",Nt.style.left=Nt.style.right="",Ee=="right"?(mn=be.sizer.clientWidth-Nt.offsetWidth,Nt.style.right="0px"):(Ee=="left"?mn=0:Ee=="middle"&&(mn=(be.sizer.clientWidth-Nt.offsetWidth)/2),Nt.style.left=mn+"px"),re&&Vc(this,{left:mn,top:je,right:mn+Nt.offsetWidth,bottom:je+Nt.offsetHeight})},triggerOnKeyDown:xs(wg),triggerOnKeyPress:xs(Al),triggerOnKeyUp:bg,triggerOnMouseDown:xs(Ml),execCommand:function(vt){if(Hu.hasOwnProperty(vt))return Hu[vt].call(null,this)},triggerElectric:xs(function(vt){Ng(this,vt)}),findPosH:function(vt,Nt,re,pe){var Ee=1;Nt<0&&(Ee=-1,Nt=-Nt);for(var be=gn(this.doc,vt),je=0;je<Nt&&(be=hd(this.doc,be,Ee,re,pe),!be.hitSide);++je);return be},moveH:xs(function(vt,Nt){var re=this;this.extendSelectionsBy(function(pe){return re.display.shift||re.doc.extend||pe.empty()?hd(re.doc,pe.head,vt,Nt,re.options.rtlMoveVisually):vt<0?pe.from():pe.to()},Ne)}),deleteH:xs(function(vt,Nt){var re=this.doc.sel,pe=this.doc;re.somethingSelected()?pe.replaceSelection("",null,"+delete"):Aa(this,function(Ee){var be=hd(pe,Ee.head,vt,Nt,!1);return vt<0?{from:be,to:Ee.head}:{from:Ee.head,to:be}})}),findPosV:function(vt,Nt,re,pe){var Ee=1,be=pe;Nt<0&&(Ee=-1,Nt=-Nt);for(var je=gn(this.doc,vt),mn=0;mn<Nt;++mn){var Xe=Mo(this,je,"div");if(be==null?be=Xe.left:Xe.left=be,je=Gu(this,Xe,Ee,re),je.hitSide)break}return je},moveV:xs(function(vt,Nt){var re=this,pe=this.doc,Ee=[],be=!this.display.shift&&!pe.extend&&pe.sel.somethingSelected();if(pe.extendSelectionsBy(function(mn){if(be)return vt<0?mn.from():mn.to();var Xe=Mo(re,mn.head,"div");mn.goalColumn!=null&&(Xe.left=mn.goalColumn),Ee.push(Xe.left);var Dn=Gu(re,Xe,vt,Nt);return Nt=="page"&&mn==pe.sel.primary()&&Hd(re,za(re,Dn,"div").top-Xe.top),Dn},Ne),Ee.length)for(var je=0;je<pe.sel.ranges.length;je++)pe.sel.ranges[je].goalColumn=Ee[je]}),findWordAt:function(vt){var Nt=this.doc,re=cn(Nt,vt.line).text,pe=vt.ch,Ee=vt.ch;if(re){var be=this.getHelper(vt,"wordChars");(vt.sticky=="before"||Ee==re.length)&&pe?--pe:++Ee;for(var je=re.charAt(pe),mn=Yt(je,be)?function(Xe){return Yt(Xe,be)}:/\s/.test(je)?function(Xe){return/\s/.test(Xe)}:function(Xe){return!/\s/.test(Xe)&&!Yt(Xe)};pe>0&&mn(re.charAt(pe-1));)--pe;for(;Ee<re.length&&mn(re.charAt(Ee));)++Ee}return new fo(Ke(vt.line,pe),Ke(vt.line,Ee))},toggleOverwrite:function(vt){vt!=null&&vt==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?xe(this.display.cursorDiv,"CodeMirror-overwrite"):Dt(this.display.cursorDiv,"CodeMirror-overwrite"),ke(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ae()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:xs(function(vt,Nt){xh(this,vt,Nt)}),getScrollInfo:function(){var vt=this.display.scroller;return{left:vt.scrollLeft,top:vt.scrollTop,height:vt.scrollHeight-ea(this)-this.display.barHeight,width:vt.scrollWidth-ea(this)-this.display.barWidth,clientHeight:dh(this),clientWidth:ba(this)}},scrollIntoView:xs(function(vt,Nt){vt==null?(vt={from:this.doc.sel.primary().head,to:null},Nt==null&&(Nt=this.options.cursorScrollMargin)):typeof vt=="number"?vt={from:Ke(vt,0),to:null}:vt.from==null&&(vt={from:vt,to:null}),vt.to||(vt.to=vt.from),vt.margin=Nt||0,vt.from.line!=null?Jr(this,vt):Wd(this,vt.from,vt.to,vt.margin)}),setSize:xs(function(vt,Nt){var re=this,pe=function(be){return typeof be=="number"||/^\d+$/.test(String(be))?be+"px":be};vt!=null&&(this.display.wrapper.style.width=pe(vt)),Nt!=null&&(this.display.wrapper.style.height=pe(Nt)),this.options.lineWrapping&&Ss(this);var Ee=this.display.viewFrom;this.doc.iter(Ee,this.display.viewTo,function(be){if(be.widgets){for(var je=0;je<be.widgets.length;je++)if(be.widgets[je].noHScroll){jr(re,Ee,"widget");break}}++Ee}),this.curOp.forceUpdate=!0,ke(this,"refresh",this)}),operation:function(vt){return to(this,vt)},startOperation:function(){return Tu(this)},endOperation:function(){return ku(this)},refresh:xs(function(){var vt=this.display.cachedTextHeight;Do(this),this.curOp.forceUpdate=!0,Go(this),xh(this,this.doc.scrollLeft,this.doc.scrollTop),Iu(this.display),(vt==null||Math.abs(vt-su(this.display))>.5||this.options.lineWrapping)&&fr(this),ke(this,"refresh",this)}),swapDoc:xs(function(vt){var Nt=this.doc;return Nt.cm=null,this.state.selectingText&&this.state.selectingText(),Zd(this,vt),Go(this),this.display.input.reset(),xh(this,vt.scrollLeft,vt.scrollTop),this.curOp.forceScroll=!0,li(this,"swapDoc",this,Nt),Nt}),phrase:function(vt){var Nt=this.options.phrases;return Nt&&Object.prototype.hasOwnProperty.call(Nt,vt)?Nt[vt]:vt},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}},In(it),it.registerHelper=function(vt,Nt,re){yt.hasOwnProperty(vt)||(yt[vt]=it[vt]={_global:[]}),yt[vt][Nt]=re},it.registerGlobalHelper=function(vt,Nt,re,pe){it.registerHelper(vt,Nt,pe),yt[vt]._global.push({pred:re,val:pe})}}function hd(it,lt,yt,vt,Nt){var re=lt,pe=yt,Ee=cn(it,lt.line),be=Nt&&it.direction=="rtl"?-yt:yt;function je(){var tr=lt.line+be;return tr<it.first||tr>=it.first+it.size?!1:(lt=new Ke(tr,lt.ch,lt.sticky),Ee=cn(it,tr))}function mn(tr){var Ui;if(vt=="codepoint"){var or=Ee.text.charCodeAt(lt.ch+(vt>0?0:-1));isNaN(or)?Ui=null:Ui=new Ke(lt.line,Math.max(0,Math.min(Ee.text.length,lt.ch+yt*(or>=55296&&or<56320?2:1))),-yt)}else Nt?Ui=tf(it.cm,Ee,lt,yt):Ui=ns(Ee,lt,yt);if(Ui==null)if(!tr&&je())lt=ad(Nt,it.cm,Ee,lt.line,be);else return!1;else lt=Ui;return!0}if(vt=="char"||vt=="codepoint")mn();else if(vt=="column")mn(!0);else if(vt=="word"||vt=="group")for(var Xe=null,Dn=vt=="group",kn=it.cm&&it.cm.getHelper(lt,"wordChars"),ni=!0;!(yt<0&&!mn(!ni));ni=!1){var ai=Ee.text.charAt(lt.ch)||`
|
|
|
`,Si=Yt(ai,kn)?"w":Dn&&ai==`
|
|
|
`?"n":!Dn||/\s/.test(ai)?null:"p";if(Dn&&!ni&&!Si&&(Si="s"),Xe&&Xe!=Si){yt<0&&(yt=1,mn(),lt.sticky="after");break}if(Si&&(Xe=Si),yt>0&&!mn(!ni))break}var Ii=ed(it,lt,re,pe,!0);return _e(re,Ii)&&(Ii.hitSide=!0),Ii}function Gu(it,lt,yt,vt){var Nt=it.doc,re=lt.left,pe;if(vt=="page"){var Ee=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),be=Math.max(Ee-.5*su(it.display),3);pe=(yt>0?lt.bottom:lt.top)+yt*be}else vt=="line"&&(pe=yt>0?lt.bottom+3:lt.top-3);for(var je;je=jd(it,re,pe),!!je.outside;){if(yt<0?pe<=0:pe>=Nt.height){je.hitSide=!0;break}pe+=yt*5}return je}var So=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new $t,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};So.prototype.init=function(it){var lt=this,yt=this,vt=yt.cm,Nt=yt.div=it.lineDiv;Ig(Nt,vt.options.spellcheck,vt.options.autocorrect,vt.options.autocapitalize);function re(Ee){for(var be=Ee.target;be;be=be.parentNode){if(be==Nt)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(be.className))break}return!1}Ue(Nt,"paste",function(Ee){!re(Ee)||Ze(vt,Ee)||kg(Ee,vt)||Bt<=11&&setTimeout(cs(vt,function(){return lt.updateFromDOM()}),20)}),Ue(Nt,"compositionstart",function(Ee){lt.composing={data:Ee.data,done:!1}}),Ue(Nt,"compositionupdate",function(Ee){lt.composing||(lt.composing={data:Ee.data,done:!1})}),Ue(Nt,"compositionend",function(Ee){lt.composing&&(Ee.data!=lt.composing.data&<.readFromDOMSoon(),lt.composing.done=!0)}),Ue(Nt,"touchstart",function(){return yt.forceCompositionEnd()}),Ue(Nt,"input",function(){lt.composing||lt.readFromDOMSoon()});function pe(Ee){if(!(!re(Ee)||Ze(vt,Ee))){if(vt.somethingSelected())Bh({lineWise:!1,text:vt.getSelections()}),Ee.type=="cut"&&vt.replaceSelection("",null,"cut");else if(vt.options.lineWiseCopyCut){var be=Og(vt);Bh({lineWise:!0,text:be.text}),Ee.type=="cut"&&vt.operation(function(){vt.setSelections(be.ranges,0,he),vt.replaceSelection("",null,"cut")})}else return;if(Ee.clipboardData){Ee.clipboardData.clearData();var je=ga.text.join(`
|
|
|
`);if(Ee.clipboardData.setData("Text",je),Ee.clipboardData.getData("Text")==je){Ee.preventDefault();return}}var mn=Dg(),Xe=mn.firstChild;vt.display.lineSpace.insertBefore(mn,vt.display.lineSpace.firstChild),Xe.value=ga.text.join(`
|
|
|
`);var Dn=document.activeElement;Te(Xe),setTimeout(function(){vt.display.lineSpace.removeChild(mn),Dn.focus(),Dn==Nt&&yt.showPrimarySelection()},50)}}Ue(Nt,"copy",pe),Ue(Nt,"cut",pe)},So.prototype.screenReaderLabelChanged=function(it){it?this.div.setAttribute("aria-label",it):this.div.removeAttribute("aria-label")},So.prototype.prepareSelection=function(){var it=Lu(this.cm,!1);return it.focus=document.activeElement==this.div,it},So.prototype.showSelection=function(it,lt){!it||!this.cm.display.view.length||((it.focus||lt)&&this.showPrimarySelection(),this.showMultipleSelections(it))},So.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},So.prototype.showPrimarySelection=function(){var it=this.getSelection(),lt=this.cm,yt=lt.doc.sel.primary(),vt=yt.from(),Nt=yt.to();if(lt.display.viewTo==lt.display.viewFrom||vt.line>=lt.display.viewTo||Nt.line<lt.display.viewFrom){it.removeAllRanges();return}var re=cd(lt,it.anchorNode,it.anchorOffset),pe=cd(lt,it.focusNode,it.focusOffset);if(!(re&&!re.bad&&pe&&!pe.bad&&nn(sn(re,pe),vt)==0&&nn(un(re,pe),Nt)==0)){var Ee=lt.display.view,be=vt.line>=lt.display.viewFrom&&cf(lt,vt)||{node:Ee[0].measure.map[2],offset:0},je=Nt.line<lt.display.viewTo&&cf(lt,Nt);if(!je){var mn=Ee[Ee.length-1].measure,Xe=mn.maps?mn.maps[mn.maps.length-1]:mn.map;je={node:Xe[Xe.length-1],offset:Xe[Xe.length-2]-Xe[Xe.length-3]}}if(!be||!je){it.removeAllRanges();return}var Dn=it.rangeCount&&it.getRangeAt(0),kn;try{kn=Gt(be.node,be.offset,je.offset,je.node)}catch(ni){}kn&&(!zt&<.state.focused?(it.collapse(be.node,be.offset),kn.collapsed||(it.removeAllRanges(),it.addRange(kn))):(it.removeAllRanges(),it.addRange(kn)),Dn&&it.anchorNode==null?it.addRange(Dn):zt&&this.startGracePeriod()),this.rememberSelection()}},So.prototype.startGracePeriod=function(){var it=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){it.gracePeriod=!1,it.selectionChanged()&&it.cm.operation(function(){return it.cm.curOp.selectionChanged=!0})},20)},So.prototype.showMultipleSelections=function(it){Ft(this.cm.display.cursorDiv,it.cursors),Ft(this.cm.display.selectionDiv,it.selection)},So.prototype.rememberSelection=function(){var it=this.getSelection();this.lastAnchorNode=it.anchorNode,this.lastAnchorOffset=it.anchorOffset,this.lastFocusNode=it.focusNode,this.lastFocusOffset=it.focusOffset},So.prototype.selectionInEditor=function(){var it=this.getSelection();if(!it.rangeCount)return!1;var lt=it.getRangeAt(0).commonAncestorContainer;return ce(this.div,lt)},So.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},So.prototype.blur=function(){this.div.blur()},So.prototype.getField=function(){return this.div},So.prototype.supportsTouch=function(){return!0},So.prototype.receivedFocus=function(){var it=this;this.selectionInEditor()?this.pollSelection():to(this.cm,function(){return it.cm.curOp.selectionChanged=!0});function lt(){it.cm.state.focused&&(it.pollSelection(),it.polling.set(it.cm.options.pollInterval,lt))}this.polling.set(this.cm.options.pollInterval,lt)},So.prototype.selectionChanged=function(){var it=this.getSelection();return it.anchorNode!=this.lastAnchorNode||it.anchorOffset!=this.lastAnchorOffset||it.focusNode!=this.lastFocusNode||it.focusOffset!=this.lastFocusOffset},So.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var it=this.getSelection(),lt=this.cm;if(et&&Rt&&this.cm.display.gutterSpecs.length&&Fg(it.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var yt=cd(lt,it.anchorNode,it.anchorOffset),vt=cd(lt,it.focusNode,it.focusOffset);yt&&vt&&to(lt,function(){Gs(lt.doc,uu(yt,vt),he),(yt.bad||vt.bad)&&(lt.curOp.selectionChanged=!0)})}}},So.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var it=this.cm,lt=it.display,yt=it.doc.sel.primary(),vt=yt.from(),Nt=yt.to();if(vt.ch==0&&vt.line>it.firstLine()&&(vt=Ke(vt.line-1,cn(it.doc,vt.line-1).length)),Nt.ch==cn(it.doc,Nt.line).text.length&&Nt.line<it.lastLine()&&(Nt=Ke(Nt.line+1,0)),vt.line<lt.viewFrom||Nt.line>lt.viewTo-1)return!1;var re,pe,Ee;vt.line==lt.viewFrom||(re=Ha(it,vt.line))==0?(pe=Pe(lt.view[0].line),Ee=lt.view[0].node):(pe=Pe(lt.view[re].line),Ee=lt.view[re-1].node.nextSibling);var be=Ha(it,Nt.line),je,mn;if(be==lt.view.length-1?(je=lt.viewTo-1,mn=lt.lineDiv.lastChild):(je=Pe(lt.view[be+1].line)-1,mn=lt.view[be+1].node.previousSibling),!Ee)return!1;for(var Xe=it.doc.splitLines(bc(it,Ee,mn,pe,je)),Dn=wn(it.doc,Ke(pe,0),Ke(je,cn(it.doc,je).text.length));Xe.length>1&&Dn.length>1;)if(Me(Xe)==Me(Dn))Xe.pop(),Dn.pop(),je--;else if(Xe[0]==Dn[0])Xe.shift(),Dn.shift(),pe++;else break;for(var kn=0,ni=0,ai=Xe[0],Si=Dn[0],Ii=Math.min(ai.length,Si.length);kn<Ii&&ai.charCodeAt(kn)==Si.charCodeAt(kn);)++kn;for(var tr=Me(Xe),Ui=Me(Dn),or=Math.min(tr.length-(Xe.length==1?kn:0),Ui.length-(Dn.length==1?kn:0));ni<or&&tr.charCodeAt(tr.length-ni-1)==Ui.charCodeAt(Ui.length-ni-1);)++ni;if(Xe.length==1&&Dn.length==1&&pe==vt.line)for(;kn&&kn>vt.ch&&tr.charCodeAt(tr.length-ni-1)==Ui.charCodeAt(Ui.length-ni-1);)kn--,ni++;Xe[Xe.length-1]=tr.slice(0,tr.length-ni).replace(/^\u200b+/,""),Xe[0]=Xe[0].slice(kn).replace(/\u200b+$/,"");var Mr=Ke(pe,kn),Hi=Ke(je,Dn.length?Me(Dn).length-ni:0);if(Xe.length>1||Xe[0]||nn(Mr,Hi))return Mh(it.doc,Xe,Mr,Hi,"+input"),!0},So.prototype.ensurePolled=function(){this.forceCompositionEnd()},So.prototype.reset=function(){this.forceCompositionEnd()},So.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},So.prototype.readFromDOMSoon=function(){var it=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(it.readDOMTimeout=null,it.composing)if(it.composing.done)it.composing=null;else return;it.updateFromDOM()},80))},So.prototype.updateFromDOM=function(){var it=this;(this.cm.isReadOnly()||!this.pollContent())&&to(this.cm,function(){return Do(it.cm)})},So.prototype.setUneditable=function(it){it.contentEditable="false"},So.prototype.onKeyPress=function(it){it.charCode==0||this.composing||(it.preventDefault(),this.cm.isReadOnly()||cs(this.cm,ud)(this.cm,String.fromCharCode(it.charCode==null?it.keyCode:it.charCode),0))},So.prototype.readOnlyChanged=function(it){this.div.contentEditable=String(it!="nocursor")},So.prototype.onContextMenu=function(){},So.prototype.resetPosition=function(){},So.prototype.needsContentAttribute=!0;function cf(it,lt){var yt=ph(it,lt.line);if(!yt||yt.hidden)return null;var vt=cn(it.doc,lt.line),Nt=fh(yt,vt,lt.line),re=Ge(vt,it.doc.direction),pe="left";if(re){var Ee=oe(re,lt.ch);pe=Ee%2?"right":"left"}var be=mh(Nt.map,lt.ch,pe);return be.offset=be.collapse=="right"?be.end:be.start,be}function Fg(it){for(var lt=it;lt;lt=lt.parentNode)if(/CodeMirror-gutter-wrapper/.test(lt.className))return!0;return!1}function Pc(it,lt){return lt&&(it.bad=!0),it}function bc(it,lt,yt,vt,Nt){var re="",pe=!1,Ee=it.doc.lineSeparator(),be=!1;function je(kn){return function(ni){return ni.id==kn}}function mn(){pe&&(re+=Ee,be&&(re+=Ee),pe=be=!1)}function Xe(kn){kn&&(mn(),re+=kn)}function Dn(kn){if(kn.nodeType==1){var ni=kn.getAttribute("cm-text");if(ni){Xe(ni);return}var ai=kn.getAttribute("cm-marker"),Si;if(ai){var Ii=it.findMarks(Ke(vt,0),Ke(Nt+1,0),je(+ai));Ii.length&&(Si=Ii[0].find(0))&&Xe(wn(it.doc,Si.from,Si.to).join(Ee));return}if(kn.getAttribute("contenteditable")=="false")return;var tr=/^(pre|div|p|li|table|br)$/i.test(kn.nodeName);if(!/^br$/i.test(kn.nodeName)&&kn.textContent.length==0)return;tr&&mn();for(var Ui=0;Ui<kn.childNodes.length;Ui++)Dn(kn.childNodes[Ui]);/^(pre|p)$/i.test(kn.nodeName)&&(be=!0),tr&&(pe=!0)}else kn.nodeType==3&&Xe(kn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Dn(lt),lt!=yt;)lt=lt.nextSibling,be=!1;return re}function cd(it,lt,yt){var vt;if(lt==it.display.lineDiv){if(vt=it.display.lineDiv.childNodes[yt],!vt)return Pc(it.clipPos(Ke(it.display.viewTo-1)),!0);lt=null,yt=0}else for(vt=lt;;vt=vt.parentNode){if(!vt||vt==it.display.lineDiv)return null;if(vt.parentNode&&vt.parentNode==it.display.lineDiv)break}for(var Nt=0;Nt<it.display.view.length;Nt++){var re=it.display.view[Nt];if(re.node==vt)return sm(re,lt,yt)}}function sm(it,lt,yt){var vt=it.text.firstChild,Nt=!1;if(!lt||!ce(vt,lt))return Pc(Ke(Pe(it.line),0),!0);if(lt==vt&&(Nt=!0,lt=vt.childNodes[yt],yt=0,!lt)){var re=it.rest?Me(it.rest):it.line;return Pc(Ke(Pe(re),re.text.length),Nt)}var pe=lt.nodeType==3?lt:null,Ee=lt;for(!pe&<.childNodes.length==1&<.firstChild.nodeType==3&&(pe=lt.firstChild,yt&&(yt=pe.nodeValue.length));Ee.parentNode!=vt;)Ee=Ee.parentNode;var be=it.measure,je=be.maps;function mn(Si,Ii,tr){for(var Ui=-1;Ui<(je?je.length:0);Ui++)for(var or=Ui<0?be.map:je[Ui],Mr=0;Mr<or.length;Mr+=3){var Hi=or[Mr+2];if(Hi==Si||Hi==Ii){var Hr=Pe(Ui<0?it.line:it.rest[Ui]),Fo=or[Mr]+tr;return(tr<0||Hi!=Si)&&(Fo=or[Mr+(tr?1:0)]),Ke(Hr,Fo)}}}var Xe=mn(pe,Ee,yt);if(Xe)return Pc(Xe,Nt);for(var Dn=Ee.nextSibling,kn=pe?pe.nodeValue.length-yt:0;Dn;Dn=Dn.nextSibling){if(Xe=mn(Dn,Dn.firstChild,0),Xe)return Pc(Ke(Xe.line,Xe.ch-kn),Nt);kn+=Dn.textContent.length}for(var ni=Ee.previousSibling,ai=yt;ni;ni=ni.previousSibling){if(Xe=mn(ni,ni.firstChild,-1),Xe)return Pc(Ke(Xe.line,Xe.ch+ai),Nt);ai+=ni.textContent.length}}var ss=function(it){this.cm=it,this.prevInput="",this.pollingFast=!1,this.polling=new $t,this.hasSelection=!1,this.composing=null};ss.prototype.init=function(it){var lt=this,yt=this,vt=this.cm;this.createField(it);var Nt=this.textarea;it.wrapper.insertBefore(this.wrapper,it.wrapper.firstChild),mt&&(Nt.style.width="0px"),Ue(Nt,"input",function(){kt&&Bt>=9&<.hasSelection&&(lt.hasSelection=null),yt.poll()}),Ue(Nt,"paste",function(pe){Ze(vt,pe)||kg(pe,vt)||(vt.state.pasteIncoming=+new Date,yt.fastPoll())});function re(pe){if(!Ze(vt,pe)){if(vt.somethingSelected())Bh({lineWise:!1,text:vt.getSelections()});else if(vt.options.lineWiseCopyCut){var Ee=Og(vt);Bh({lineWise:!0,text:Ee.text}),pe.type=="cut"?vt.setSelections(Ee.ranges,null,he):(yt.prevInput="",Nt.value=Ee.text.join(`
|
|
|
`),Te(Nt))}else return;pe.type=="cut"&&(vt.state.cutIncoming=+new Date)}}Ue(Nt,"cut",re),Ue(Nt,"copy",re),Ue(it.scroller,"paste",function(pe){if(!($s(it,pe)||Ze(vt,pe))){if(!Nt.dispatchEvent){vt.state.pasteIncoming=+new Date,yt.focus();return}var Ee=new Event("paste");Ee.clipboardData=pe.clipboardData,Nt.dispatchEvent(Ee)}}),Ue(it.lineSpace,"selectstart",function(pe){$s(it,pe)||Bn(pe)}),Ue(Nt,"compositionstart",function(){var pe=vt.getCursor("from");yt.composing&&yt.composing.range.clear(),yt.composing={start:pe,range:vt.markText(pe,vt.getCursor("to"),{className:"CodeMirror-composing"})}}),Ue(Nt,"compositionend",function(){yt.composing&&(yt.poll(),yt.composing.range.clear(),yt.composing=null)})},ss.prototype.createField=function(it){this.wrapper=Dg(),this.textarea=this.wrapper.firstChild},ss.prototype.screenReaderLabelChanged=function(it){it?this.textarea.setAttribute("aria-label",it):this.textarea.removeAttribute("aria-label")},ss.prototype.prepareSelection=function(){var it=this.cm,lt=it.display,yt=it.doc,vt=Lu(it);if(it.options.moveInputWithCursor){var Nt=Mo(it,yt.sel.primary().head,"div"),re=lt.wrapper.getBoundingClientRect(),pe=lt.lineDiv.getBoundingClientRect();vt.teTop=Math.max(0,Math.min(lt.wrapper.clientHeight-10,Nt.top+pe.top-re.top)),vt.teLeft=Math.max(0,Math.min(lt.wrapper.clientWidth-10,Nt.left+pe.left-re.left))}return vt},ss.prototype.showSelection=function(it){var lt=this.cm,yt=lt.display;Ft(yt.cursorDiv,it.cursors),Ft(yt.selectionDiv,it.selection),it.teTop!=null&&(this.wrapper.style.top=it.teTop+"px",this.wrapper.style.left=it.teLeft+"px")},ss.prototype.reset=function(it){if(!(this.contextMenuPending||this.composing)){var lt=this.cm;if(lt.somethingSelected()){this.prevInput="";var yt=lt.getSelection();this.textarea.value=yt,lt.state.focused&&Te(this.textarea),kt&&Bt>=9&&(this.hasSelection=yt)}else it||(this.prevInput=this.textarea.value="",kt&&Bt>=9&&(this.hasSelection=null))}},ss.prototype.getField=function(){return this.textarea},ss.prototype.supportsTouch=function(){return!1},ss.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!tt||ae()!=this.textarea))try{this.textarea.focus()}catch(it){}},ss.prototype.blur=function(){this.textarea.blur()},ss.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},ss.prototype.receivedFocus=function(){this.slowPoll()},ss.prototype.slowPoll=function(){var it=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){it.poll(),it.cm.state.focused&&it.slowPoll()})},ss.prototype.fastPoll=function(){var it=!1,lt=this;lt.pollingFast=!0;function yt(){var vt=lt.poll();!vt&&!it?(it=!0,lt.polling.set(60,yt)):(lt.pollingFast=!1,lt.slowPoll())}lt.polling.set(20,yt)},ss.prototype.poll=function(){var it=this,lt=this.cm,yt=this.textarea,vt=this.prevInput;if(this.contextMenuPending||!lt.state.focused||ne(yt)&&!vt&&!this.composing||lt.isReadOnly()||lt.options.disableInput||lt.state.keySeq)return!1;var Nt=yt.value;if(Nt==vt&&!lt.somethingSelected())return!1;if(kt&&Bt>=9&&this.hasSelection===Nt||st&&/[\uf700-\uf7ff]/.test(Nt))return lt.display.input.reset(),!1;if(lt.doc.sel==lt.display.selForContextMenu){var re=Nt.charCodeAt(0);if(re==8203&&!vt&&(vt="\u200B"),re==8666)return this.reset(),this.cm.execCommand("undo")}for(var pe=0,Ee=Math.min(vt.length,Nt.length);pe<Ee&&vt.charCodeAt(pe)==Nt.charCodeAt(pe);)++pe;return to(lt,function(){ud(lt,Nt.slice(pe),vt.length-pe,null,it.composing?"*compose":null),Nt.length>1e3||Nt.indexOf(`
|
|
|
`)>-1?yt.value=it.prevInput="":it.prevInput=Nt,it.composing&&(it.composing.range.clear(),it.composing.range=lt.markText(it.composing.start,lt.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},ss.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},ss.prototype.onKeyPress=function(){kt&&Bt>=9&&(this.hasSelection=null),this.fastPoll()},ss.prototype.onContextMenu=function(it){var lt=this,yt=lt.cm,vt=yt.display,Nt=lt.textarea;lt.contextMenuPending&<.contextMenuPending();var re=na(yt,it),pe=vt.scroller.scrollTop;if(!re||Ct)return;var Ee=yt.options.resetSelectionOnContextMenu;Ee&&yt.doc.sel.contains(re)==-1&&cs(yt,Gs)(yt.doc,uu(re),he);var be=Nt.style.cssText,je=lt.wrapper.style.cssText,mn=lt.wrapper.offsetParent.getBoundingClientRect();lt.wrapper.style.cssText="position: static",Nt.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(it.clientY-mn.top-5)+"px; left: "+(it.clientX-mn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(kt?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Xe;xt&&(Xe=window.scrollY),vt.input.focus(),xt&&window.scrollTo(null,Xe),vt.input.reset(),yt.somethingSelected()||(Nt.value=lt.prevInput=" "),lt.contextMenuPending=kn,vt.selForContextMenu=yt.doc.sel,clearTimeout(vt.detectingSelectAll);function Dn(){if(Nt.selectionStart!=null){var ai=yt.somethingSelected(),Si="\u200B"+(ai?Nt.value:"");Nt.value="\u21DA",Nt.value=Si,lt.prevInput=ai?"":"\u200B",Nt.selectionStart=1,Nt.selectionEnd=Si.length,vt.selForContextMenu=yt.doc.sel}}function kn(){if(lt.contextMenuPending==kn&&(lt.contextMenuPending=!1,lt.wrapper.style.cssText=je,Nt.style.cssText=be,kt&&Bt<9&&vt.scrollbars.setScrollTop(vt.scroller.scrollTop=pe),Nt.selectionStart!=null)){(!kt||kt&&Bt<9)&&Dn();var ai=0,Si=function(){vt.selForContextMenu==yt.doc.sel&&Nt.selectionStart==0&&Nt.selectionEnd>0&<.prevInput=="\u200B"?cs(yt,es)(yt):ai++<10?vt.detectingSelectAll=setTimeout(Si,500):(vt.selForContextMenu=null,vt.input.reset())};vt.detectingSelectAll=setTimeout(Si,200)}}if(kt&&Bt>=9&&Dn(),pt){ci(it);var ni=function(){vn(window,"mouseup",ni),setTimeout(kn,20)};Ue(window,"mouseup",ni)}else setTimeout(kn,50)},ss.prototype.readOnlyChanged=function(it){it||this.reset(),this.textarea.disabled=it=="nocursor",this.textarea.readOnly=!!it},ss.prototype.setUneditable=function(){},ss.prototype.needsContentAttribute=!1;function am(it,lt){if(lt=lt?He(lt):{},lt.value=it.value,!lt.tabindex&&it.tabIndex&&(lt.tabindex=it.tabIndex),!lt.placeholder&&it.placeholder&&(lt.placeholder=it.placeholder),lt.autofocus==null){var yt=ae();lt.autofocus=yt==it||it.getAttribute("autofocus")!=null&&yt==document.body}function vt(){it.value=Ee.getValue()}var Nt;if(it.form&&(Ue(it.form,"submit",vt),!lt.leaveSubmitMethodAlone)){var re=it.form;Nt=re.submit;try{var pe=re.submit=function(){vt(),re.submit=Nt,re.submit(),re.submit=pe}}catch(be){}}lt.finishInit=function(be){be.save=vt,be.getTextArea=function(){return it},be.toTextArea=function(){be.toTextArea=isNaN,vt(),it.parentNode.removeChild(be.getWrapperElement()),it.style.display="",it.form&&(vn(it.form,"submit",vt),!lt.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=Nt))}},it.style.display="none";var Ee=qr(function(be){return it.parentNode.insertBefore(be,it.nextSibling)},lt);return Ee}function Cc(it){it.off=vn,it.on=Ue,it.wheelEventPixels=Ua,it.Doc=Bs,it.splitLines=ui,it.countColumn=fe,it.findColumn=$e,it.isWordChar=_t,it.Pass=ge,it.signal=ke,it.Line=Vr,it.changeEnd=Bu,it.scrollbarModel=eg,it.Pos=Ke,it.cmpPos=nn,it.modes=sr,it.mimeModes=xr,it.resolveMode=_n,it.getMode=qe,it.modeExtensions=Qe,it.extendMode=we,it.copyState=fn,it.startState=ze,it.innerMode=Sn,it.commands=Hu,it.keyMap=La,it.keyName=$p,it.isModifierKey=mc,it.lookupKey=el,it.normalizeKeyMap=mg,it.StringStream=Le,it.SharedTextMarker=Hl,it.TextMarker=on,it.LineWidget=du,it.e_preventDefault=Bn,it.e_stopPropagation=Zn,it.e_stop=ci,it.addClass=xe,it.contains=ce,it.rmClass=Dt,it.keyNames=Wl}rm(qr),Uu(qr);var fu="iter insert remove copy getEditor constructor".split(" ");for(var dd in Bs.prototype)Bs.prototype.hasOwnProperty(dd)&&ie(fu,dd)<0&&(qr.prototype[dd]=function(it){return function(){return it.apply(this.doc,arguments)}}(Bs.prototype[dd]));return In(Bs),qr.inputStyles={textarea:ss,contenteditable:So},qr.defineMode=function(it){!qr.defaults.mode&&it!="null"&&(qr.defaults.mode=it),vr.apply(this,arguments)},qr.defineMIME=Jn,qr.defineMode("null",function(){return{token:function(it){return it.skipToEnd()}}}),qr.defineMIME("text/plain","null"),qr.defineExtension=function(it,lt){qr.prototype[it]=lt},qr.defineDocExtension=function(it,lt){Bs.prototype[it]=lt},qr.fromTextArea=am,Cc(qr),qr.version="5.58.2",qr})},25419:function(Tn,Cn,Kt){(function(zt){zt(Kt(89780),Kt(15525),Kt(98101))})(function(zt){"use strict";zt.defineMode("markdown",function(gt,Xt){var Qt=zt.getMode(gt,"text/html"),kt=Qt.name=="null";function Bt(fe){if(zt.findModeByName){var $t=zt.findModeByName(fe);$t&&(fe=$t.mime||$t.mimes[0])}var ie=zt.getMode(gt,fe);return ie.name=="null"?null:ie}Xt.highlightFormatting===void 0&&(Xt.highlightFormatting=!1),Xt.maxBlockquoteDepth===void 0&&(Xt.maxBlockquoteDepth=0),Xt.taskLists===void 0&&(Xt.taskLists=!1),Xt.strikethrough===void 0&&(Xt.strikethrough=!1),Xt.emoji===void 0&&(Xt.emoji=!1),Xt.fencedCodeBlockHighlighting===void 0&&(Xt.fencedCodeBlockHighlighting=!0),Xt.fencedCodeBlockDefaultMode===void 0&&(Xt.fencedCodeBlockDefaultMode="text/plain"),Xt.xml===void 0&&(Xt.xml=!0),Xt.tokenTypeOverrides===void 0&&(Xt.tokenTypeOverrides={});var xt={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 Ot in xt)xt.hasOwnProperty(Ot)&&Xt.tokenTypeOverrides[Ot]&&(xt[Ot]=Xt.tokenTypeOverrides[Ot]);var Rt=/^([*\-_])(?:\s*\1){2,}\s*$/,Ct=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Lt=/^\[(x| )\](?=\s)/i,At=Xt.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,It=/^ {0,3}(?:\={1,}|-{2,})\s*$/,mt=/^[^#!\[\]*_\\<>` "'(~:]+/,et=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,tt=/^\s*\[[^\]]+?\]:.*$/,st=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,rt=" ";function ut(fe,$t,ie){return $t.f=$t.inline=ie,ie(fe,$t)}function ct(fe,$t,ie){return $t.f=$t.block=ie,ie(fe,$t)}function ft(fe){return!fe||!/\S/.test(fe.string)}function pt(fe){if(fe.linkTitle=!1,fe.linkHref=!1,fe.linkText=!1,fe.em=!1,fe.strong=!1,fe.strikethrough=!1,fe.quote=0,fe.indentedCode=!1,fe.f==Dt){var $t=kt;if(!$t){var ie=zt.innerMode(Qt,fe.htmlState);$t=ie.mode.name=="xml"&&ie.state.tagStart===null&&!ie.state.context&&ie.state.tokenize.isInText}$t&&(fe.f=te,fe.block=Pt,fe.htmlState=null)}return fe.trailingSpace=0,fe.trailingSpaceNewLine=!1,fe.prevLine=fe.thisLine,fe.thisLine={stream:null},null}function Pt(fe,$t){var ie=fe.column()===$t.indentation,ue=ft($t.prevLine.stream),ge=$t.indentedCode,he=$t.prevLine.hr,De=$t.list!==!1,Ne=($t.listStack[$t.listStack.length-1]||0)+3;$t.indentedCode=!1;var $e=$t.indentation;if($t.indentationDiff===null&&($t.indentationDiff=$t.indentation,De)){for($t.list=null;$e<$t.listStack[$t.listStack.length-1];)$t.listStack.pop(),$t.listStack.length?$t.indentation=$t.listStack[$t.listStack.length-1]:$t.list=!1;$t.list!==!1&&($t.indentationDiff=$e-$t.listStack[$t.listStack.length-1])}var Re=!ue&&!he&&!$t.prevLine.header&&(!De||!ge)&&!$t.prevLine.fencedCodeEnd,tn=($t.list===!1||he||ue)&&$t.indentation<=Ne&&fe.match(Rt),Me=null;if($t.indentationDiff>=4&&(ge||$t.prevLine.fencedCodeEnd||$t.prevLine.header||ue))return fe.skipToEnd(),$t.indentedCode=!0,xt.code;if(fe.eatSpace())return null;if(ie&&$t.indentation<=Ne&&(Me=fe.match(At))&&Me[1].length<=6)return $t.quote=0,$t.header=Me[1].length,$t.thisLine.header=!0,Xt.highlightFormatting&&($t.formatting="header"),$t.f=$t.inline,Ft($t);if($t.indentation<=Ne&&fe.eat(">"))return $t.quote=ie?1:$t.quote+1,Xt.highlightFormatting&&($t.formatting="quote"),fe.eatSpace(),Ft($t);if(!tn&&!$t.setext&&ie&&$t.indentation<=Ne&&(Me=fe.match(Ct))){var Oe=Me[1]?"ol":"ul";return $t.indentation=$e+fe.current().length,$t.list=!0,$t.quote=0,$t.listStack.push($t.indentation),$t.em=!1,$t.strong=!1,$t.code=!1,$t.strikethrough=!1,Xt.taskLists&&fe.match(Lt,!1)&&($t.taskList=!0),$t.f=$t.inline,Xt.highlightFormatting&&($t.formatting=["list","list-"+Oe]),Ft($t)}else{if(ie&&$t.indentation<=Ne&&(Me=fe.match(et,!0)))return $t.quote=0,$t.fencedEndRE=new RegExp(Me[1]+"+ *$"),$t.localMode=Xt.fencedCodeBlockHighlighting&&Bt(Me[2]||Xt.fencedCodeBlockDefaultMode),$t.localMode&&($t.localState=zt.startState($t.localMode)),$t.f=$t.block=Zt,Xt.highlightFormatting&&($t.formatting="code-block"),$t.code=-1,Ft($t);if($t.setext||(!Re||!De)&&!$t.quote&&$t.list===!1&&!$t.code&&!tn&&!tt.test(fe.string)&&(Me=fe.lookAhead(1))&&(Me=Me.match(It)))return $t.setext?($t.header=$t.setext,$t.setext=0,fe.skipToEnd(),Xt.highlightFormatting&&($t.formatting="header")):($t.header=Me[0].charAt(0)=="="?1:2,$t.setext=$t.header),$t.thisLine.header=!0,$t.f=$t.inline,Ft($t);if(tn)return fe.skipToEnd(),$t.hr=!0,$t.thisLine.hr=!0,xt.hr;if(fe.peek()==="[")return ut(fe,$t,ye)}return ut(fe,$t,$t.inline)}function Dt(fe,$t){var ie=Qt.token(fe,$t.htmlState);if(!kt){var ue=zt.innerMode(Qt,$t.htmlState);(ue.mode.name=="xml"&&ue.state.tagStart===null&&!ue.state.context&&ue.state.tokenize.isInText||$t.md_inside&&fe.current().indexOf(">")>-1)&&($t.f=te,$t.block=Pt,$t.htmlState=null)}return ie}function Zt(fe,$t){var ie=$t.listStack[$t.listStack.length-1]||0,ue=$t.indentation<ie,ge=ie+3;if($t.fencedEndRE&&$t.indentation<=ge&&(ue||fe.match($t.fencedEndRE))){Xt.highlightFormatting&&($t.formatting="code-block");var he;return ue||(he=Ft($t)),$t.localMode=$t.localState=null,$t.block=Pt,$t.f=te,$t.fencedEndRE=null,$t.code=0,$t.thisLine.fencedCodeEnd=!0,ue?ct(fe,$t,$t.block):he}else return $t.localMode?$t.localMode.token(fe,$t.localState):(fe.skipToEnd(),xt.code)}function Ft(fe){var $t=[];if(fe.formatting){$t.push(xt.formatting),typeof fe.formatting=="string"&&(fe.formatting=[fe.formatting]);for(var ie=0;ie<fe.formatting.length;ie++)$t.push(xt.formatting+"-"+fe.formatting[ie]),fe.formatting[ie]==="header"&&$t.push(xt.formatting+"-"+fe.formatting[ie]+"-"+fe.header),fe.formatting[ie]==="quote"&&(!Xt.maxBlockquoteDepth||Xt.maxBlockquoteDepth>=fe.quote?$t.push(xt.formatting+"-"+fe.formatting[ie]+"-"+fe.quote):$t.push("error"))}if(fe.taskOpen)return $t.push("meta"),$t.length?$t.join(" "):null;if(fe.taskClosed)return $t.push("property"),$t.length?$t.join(" "):null;if(fe.linkHref?$t.push(xt.linkHref,"url"):(fe.strong&&$t.push(xt.strong),fe.em&&$t.push(xt.em),fe.strikethrough&&$t.push(xt.strikethrough),fe.emoji&&$t.push(xt.emoji),fe.linkText&&$t.push(xt.linkText),fe.code&&$t.push(xt.code),fe.image&&$t.push(xt.image),fe.imageAltText&&$t.push(xt.imageAltText,"link"),fe.imageMarker&&$t.push(xt.imageMarker)),fe.header&&$t.push(xt.header,xt.header+"-"+fe.header),fe.quote&&($t.push(xt.quote),!Xt.maxBlockquoteDepth||Xt.maxBlockquoteDepth>=fe.quote?$t.push(xt.quote+"-"+fe.quote):$t.push(xt.quote+"-"+Xt.maxBlockquoteDepth)),fe.list!==!1){var ue=(fe.listStack.length-1)%3;ue?ue===1?$t.push(xt.list2):$t.push(xt.list3):$t.push(xt.list1)}return fe.trailingSpaceNewLine?$t.push("trailing-space-new-line"):fe.trailingSpace&&$t.push("trailing-space-"+(fe.trailingSpace%2?"a":"b")),$t.length?$t.join(" "):null}function qt(fe,$t){if(fe.match(mt,!0))return Ft($t)}function te(fe,$t){var ie=$t.text(fe,$t);if(typeof ie!="undefined")return ie;if($t.list)return $t.list=null,Ft($t);if($t.taskList){var ue=fe.match(Lt,!0)[1]===" ";return ue?$t.taskOpen=!0:$t.taskClosed=!0,Xt.highlightFormatting&&($t.formatting="task"),$t.taskList=!1,Ft($t)}if($t.taskOpen=!1,$t.taskClosed=!1,$t.header&&fe.match(/^#+$/,!0))return Xt.highlightFormatting&&($t.formatting="header"),Ft($t);var ge=fe.next();if($t.linkTitle){$t.linkTitle=!1;var he=ge;ge==="("&&(he=")"),he=(he+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var De="^\\s*(?:[^"+he+"\\\\]+|\\\\\\\\|\\\\.)"+he;if(fe.match(new RegExp(De),!0))return xt.linkHref}if(ge==="`"){var Ne=$t.formatting;Xt.highlightFormatting&&($t.formatting="code"),fe.eatWhile("`");var $e=fe.current().length;if($t.code==0&&(!$t.quote||$e==1))return $t.code=$e,Ft($t);if($e==$t.code){var Re=Ft($t);return $t.code=0,Re}else return $t.formatting=Ne,Ft($t)}else if($t.code)return Ft($t);if(ge==="\\"&&(fe.next(),Xt.highlightFormatting)){var tn=Ft($t),Me=xt.formatting+"-escape";return tn?tn+" "+Me:Me}if(ge==="!"&&fe.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return $t.imageMarker=!0,$t.image=!0,Xt.highlightFormatting&&($t.formatting="image"),Ft($t);if(ge==="["&&$t.imageMarker&&fe.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return $t.imageMarker=!1,$t.imageAltText=!0,Xt.highlightFormatting&&($t.formatting="image"),Ft($t);if(ge==="]"&&$t.imageAltText){Xt.highlightFormatting&&($t.formatting="image");var tn=Ft($t);return $t.imageAltText=!1,$t.image=!1,$t.inline=$t.f=ce,tn}if(ge==="["&&!$t.image)return $t.linkText&&fe.match(/^.*?\]/)||($t.linkText=!0,Xt.highlightFormatting&&($t.formatting="link")),Ft($t);if(ge==="]"&&$t.linkText){Xt.highlightFormatting&&($t.formatting="link");var tn=Ft($t);return $t.linkText=!1,$t.inline=$t.f=fe.match(/\(.*?\)| ?\[.*?\]/,!1)?ce:te,tn}if(ge==="<"&&fe.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){$t.f=$t.inline=Gt,Xt.highlightFormatting&&($t.formatting="link");var tn=Ft($t);return tn?tn+=" ":tn="",tn+xt.linkInline}if(ge==="<"&&fe.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){$t.f=$t.inline=Gt,Xt.highlightFormatting&&($t.formatting="link");var tn=Ft($t);return tn?tn+=" ":tn="",tn+xt.linkEmail}if(Xt.xml&&ge==="<"&&fe.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Oe=fe.string.indexOf(">",fe.pos);if(Oe!=-1){var Fe=fe.string.substring(fe.start,Oe);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Fe)&&($t.md_inside=!0)}return fe.backUp(1),$t.htmlState=zt.startState(Qt),ct(fe,$t,Dt)}if(Xt.xml&&ge==="<"&&fe.match(/^\/\w*?>/))return $t.md_inside=!1,"tag";if(ge==="*"||ge==="_"){for(var le=1,Tt=fe.pos==1?" ":fe.string.charAt(fe.pos-2);le<3&&fe.eat(ge);)le++;var bt=fe.peek()||" ",_t=!/\s/.test(bt)&&(!st.test(bt)||/\s/.test(Tt)||st.test(Tt)),Yt=!/\s/.test(Tt)&&(!st.test(Tt)||/\s/.test(bt)||st.test(bt)),Mt=null,Ut=null;if(le%2&&(!$t.em&&_t&&(ge==="*"||!Yt||st.test(Tt))?Mt=!0:$t.em==ge&&Yt&&(ge==="*"||!_t||st.test(bt))&&(Mt=!1)),le>1&&(!$t.strong&&_t&&(ge==="*"||!Yt||st.test(Tt))?Ut=!0:$t.strong==ge&&Yt&&(ge==="*"||!_t||st.test(bt))&&(Ut=!1)),Ut!=null||Mt!=null){Xt.highlightFormatting&&($t.formatting=Mt==null?"strong":Ut==null?"em":"strong em"),Mt===!0&&($t.em=ge),Ut===!0&&($t.strong=ge);var Re=Ft($t);return Mt===!1&&($t.em=!1),Ut===!1&&($t.strong=!1),Re}}else if(ge===" "&&(fe.eat("*")||fe.eat("_"))){if(fe.peek()===" ")return Ft($t);fe.backUp(1)}if(Xt.strikethrough){if(ge==="~"&&fe.eatWhile(ge)){if($t.strikethrough){Xt.highlightFormatting&&($t.formatting="strikethrough");var Re=Ft($t);return $t.strikethrough=!1,Re}else if(fe.match(/^[^\s]/,!1))return $t.strikethrough=!0,Xt.highlightFormatting&&($t.formatting="strikethrough"),Ft($t)}else if(ge===" "&&fe.match(/^~~/,!0)){if(fe.peek()===" ")return Ft($t);fe.backUp(2)}}if(Xt.emoji&&ge===":"&&fe.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){$t.emoji=!0,Xt.highlightFormatting&&($t.formatting="emoji");var St=Ft($t);return $t.emoji=!1,St}return ge===" "&&(fe.match(/^ +$/,!1)?$t.trailingSpace++:$t.trailingSpace&&($t.trailingSpaceNewLine=!0)),Ft($t)}function Gt(fe,$t){var ie=fe.next();if(ie===">"){$t.f=$t.inline=te,Xt.highlightFormatting&&($t.formatting="link");var ue=Ft($t);return ue?ue+=" ":ue="",ue+xt.linkInline}return fe.match(/^[^>]+/,!0),xt.linkInline}function ce(fe,$t){if(fe.eatSpace())return null;var ie=fe.next();return ie==="("||ie==="["?($t.f=$t.inline=xe(ie==="("?")":"]"),Xt.highlightFormatting&&($t.formatting="link-string"),$t.linkHref=!0,Ft($t)):"error"}var ae={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function xe(fe){return function($t,ie){var ue=$t.next();if(ue===fe){ie.f=ie.inline=te,Xt.highlightFormatting&&(ie.formatting="link-string");var ge=Ft(ie);return ie.linkHref=!1,ge}return $t.match(ae[fe]),ie.linkHref=!0,Ft(ie)}}function ye(fe,$t){return fe.match(/^([^\]\\]|\\.)*\]:/,!1)?($t.f=Te,fe.next(),Xt.highlightFormatting&&($t.formatting="link"),$t.linkText=!0,Ft($t)):ut(fe,$t,te)}function Te(fe,$t){if(fe.match(/^\]:/,!0)){$t.f=$t.inline=me,Xt.highlightFormatting&&($t.formatting="link");var ie=Ft($t);return $t.linkText=!1,ie}return fe.match(/^([^\]\\]|\\.)+/,!0),xt.linkText}function me(fe,$t){return fe.eatSpace()?null:(fe.match(/^[^\s]+/,!0),fe.peek()===void 0?$t.linkTitle=!0:fe.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),$t.f=$t.inline=te,xt.linkHref+" url")}var He={startState:function(){return{f:Pt,prevLine:{stream:null},thisLine:{stream:null},block:Pt,htmlState:null,indentation:0,inline:te,text:qt,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(fe){return{f:fe.f,prevLine:fe.prevLine,thisLine:fe.thisLine,block:fe.block,htmlState:fe.htmlState&&zt.copyState(Qt,fe.htmlState),indentation:fe.indentation,localMode:fe.localMode,localState:fe.localMode?zt.copyState(fe.localMode,fe.localState):null,inline:fe.inline,text:fe.text,formatting:!1,linkText:fe.linkText,linkTitle:fe.linkTitle,linkHref:fe.linkHref,code:fe.code,em:fe.em,strong:fe.strong,strikethrough:fe.strikethrough,emoji:fe.emoji,header:fe.header,setext:fe.setext,hr:fe.hr,taskList:fe.taskList,list:fe.list,listStack:fe.listStack.slice(0),quote:fe.quote,indentedCode:fe.indentedCode,trailingSpace:fe.trailingSpace,trailingSpaceNewLine:fe.trailingSpaceNewLine,md_inside:fe.md_inside,fencedEndRE:fe.fencedEndRE}},token:function(fe,$t){if($t.formatting=!1,fe!=$t.thisLine.stream){if($t.header=0,$t.hr=!1,fe.match(/^\s*$/,!0))return pt($t),null;if($t.prevLine=$t.thisLine,$t.thisLine={stream:fe},$t.taskList=!1,$t.trailingSpace=0,$t.trailingSpaceNewLine=!1,!$t.localState&&($t.f=$t.block,$t.f!=Dt)){var ie=fe.match(/^\s*/,!0)[0].replace(/\t/g,rt).length;if($t.indentation=ie,$t.indentationDiff=null,ie>0)return null}}return $t.f(fe,$t)},innerMode:function(fe){return fe.block==Dt?{state:fe.htmlState,mode:Qt}:fe.localState?{state:fe.localState,mode:fe.localMode}:{state:fe,mode:He}},indent:function(fe,$t,ie){return fe.block==Dt&&Qt.indent?Qt.indent(fe.htmlState,$t,ie):fe.localState&&fe.localMode.indent?fe.localMode.indent(fe.localState,$t,ie):zt.Pass},blankLine:pt,getType:Ft,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return He},"xml"),zt.defineMIME("text/markdown","markdown"),zt.defineMIME("text/x-markdown","markdown")})},98101:function(Tn,Cn,Kt){(function(zt){zt(Kt(89780))})(function(zt){"use strict";zt.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 gt=0;gt<zt.modeInfo.length;gt++){var Xt=zt.modeInfo[gt];Xt.mimes&&(Xt.mime=Xt.mimes[0])}zt.findModeByMIME=function(Qt){Qt=Qt.toLowerCase();for(var kt=0;kt<zt.modeInfo.length;kt++){var Bt=zt.modeInfo[kt];if(Bt.mime==Qt)return Bt;if(Bt.mimes){for(var xt=0;xt<Bt.mimes.length;xt++)if(Bt.mimes[xt]==Qt)return Bt}}if(/\+xml$/.test(Qt))return zt.findModeByMIME("application/xml");if(/\+json$/.test(Qt))return zt.findModeByMIME("application/json")},zt.findModeByExtension=function(Qt){Qt=Qt.toLowerCase();for(var kt=0;kt<zt.modeInfo.length;kt++){var Bt=zt.modeInfo[kt];if(Bt.ext){for(var xt=0;xt<Bt.ext.length;xt++)if(Bt.ext[xt]==Qt)return Bt}}},zt.findModeByFileName=function(Qt){for(var kt=0;kt<zt.modeInfo.length;kt++){var Bt=zt.modeInfo[kt];if(Bt.file&&Bt.file.test(Qt))return Bt}var xt=Qt.lastIndexOf("."),Ot=xt>-1&&Qt.substring(xt+1,Qt.length);if(Ot)return zt.findModeByExtension(Ot)},zt.findModeByName=function(Qt){Qt=Qt.toLowerCase();for(var kt=0;kt<zt.modeInfo.length;kt++){var Bt=zt.modeInfo[kt];if(Bt.name.toLowerCase()==Qt)return Bt;if(Bt.alias){for(var xt=0;xt<Bt.alias.length;xt++)if(Bt.alias[xt].toLowerCase()==Qt)return Bt}}}})},67549:function(Tn,Cn,Kt){(function(zt){zt(Kt(89780))})(function(zt){"use strict";zt.defineMode("stex",function(gt,Xt){"use strict";function Qt(mt,et){mt.cmdState.push(et)}function kt(mt){return mt.cmdState.length>0?mt.cmdState[mt.cmdState.length-1]:null}function Bt(mt){var et=mt.cmdState.pop();et&&et.closeBracket()}function xt(mt){for(var et=mt.cmdState,tt=et.length-1;tt>=0;tt--){var st=et[tt];if(st.name!="DEFAULT")return st}return{styleIdentifier:function(){return null}}}function Ot(mt,et,tt){return function(){this.name=mt,this.bracketNo=0,this.style=et,this.styles=tt,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Rt={};Rt.importmodule=Ot("importmodule","tag",["string","builtin"]),Rt.documentclass=Ot("documentclass","tag",["","atom"]),Rt.usepackage=Ot("usepackage","tag",["atom"]),Rt.begin=Ot("begin","tag",["atom"]),Rt.end=Ot("end","tag",["atom"]),Rt.label=Ot("label","tag",["atom"]),Rt.ref=Ot("ref","tag",["atom"]),Rt.eqref=Ot("eqref","tag",["atom"]),Rt.cite=Ot("cite","tag",["atom"]),Rt.bibitem=Ot("bibitem","tag",["atom"]),Rt.Bibitem=Ot("Bibitem","tag",["atom"]),Rt.RBibitem=Ot("RBibitem","tag",["atom"]),Rt.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Ct(mt,et){mt.f=et}function Lt(mt,et){var tt;if(mt.match(/^\\[a-zA-Z@]+/)){var st=mt.current().slice(1);return tt=Rt.hasOwnProperty(st)?Rt[st]:Rt.DEFAULT,tt=new tt,Qt(et,tt),Ct(et,It),tt.style}if(mt.match(/^\\[$&%#{}_]/)||mt.match(/^\\[,;!\/\\]/))return"tag";if(mt.match("\\["))return Ct(et,function(ut,ct){return At(ut,ct,"\\]")}),"keyword";if(mt.match("\\("))return Ct(et,function(ut,ct){return At(ut,ct,"\\)")}),"keyword";if(mt.match("$$"))return Ct(et,function(ut,ct){return At(ut,ct,"$$")}),"keyword";if(mt.match("$"))return Ct(et,function(ut,ct){return At(ut,ct,"$")}),"keyword";var rt=mt.next();if(rt=="%")return mt.skipToEnd(),"comment";if(rt=="}"||rt=="]"){if(tt=kt(et),tt)tt.closeBracket(rt),Ct(et,It);else return"error";return"bracket"}else return rt=="{"||rt=="["?(tt=Rt.DEFAULT,tt=new tt,Qt(et,tt),"bracket"):/\d/.test(rt)?(mt.eatWhile(/[\w.%]/),"atom"):(mt.eatWhile(/[\w\-_]/),tt=xt(et),tt.name=="begin"&&(tt.argument=mt.current()),tt.styleIdentifier())}function At(mt,et,tt){if(mt.eatSpace())return null;if(tt&&mt.match(tt))return Ct(et,Lt),"keyword";if(mt.match(/^\\[a-zA-Z@]+/))return"tag";if(mt.match(/^[a-zA-Z]+/))return"variable-2";if(mt.match(/^\\[$&%#{}_]/)||mt.match(/^\\[,;!\/]/)||mt.match(/^[\^_&]/))return"tag";if(mt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(mt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var st=mt.next();return st=="{"||st=="}"||st=="["||st=="]"||st=="("||st==")"?"bracket":st=="%"?(mt.skipToEnd(),"comment"):"error"}function It(mt,et){var tt=mt.peek(),st;return tt=="{"||tt=="["?(st=kt(et),st.openBracket(tt),mt.eat(tt),Ct(et,Lt),"bracket"):/[ \t\r]/.test(tt)?(mt.eat(tt),null):(Ct(et,Lt),Bt(et),Lt(mt,et))}return{startState:function(){var mt=Xt.inMathMode?function(et,tt){return At(et,tt)}:Lt;return{cmdState:[],f:mt}},copyState:function(mt){return{cmdState:mt.cmdState.slice(),f:mt.f}},token:function(mt,et){return et.f(mt,et)},blankLine:function(mt){mt.f=Lt,mt.cmdState.length=0},lineComment:"%"}}),zt.defineMIME("text/x-stex","stex"),zt.defineMIME("text/x-latex","stex")})},15525:function(Tn,Cn,Kt){(function(zt){zt(Kt(89780))})(function(zt){"use strict";var gt={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},Xt={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};zt.defineMode("xml",function(Qt,kt){var Bt=Qt.indentUnit,xt={},Ot=kt.htmlMode?gt:Xt;for(var Rt in Ot)xt[Rt]=Ot[Rt];for(var Rt in kt)xt[Rt]=kt[Rt];var Ct,Lt;function At(Gt,ce){function ae(Te){return ce.tokenize=Te,Te(Gt,ce)}var xe=Gt.next();if(xe=="<")return Gt.eat("!")?Gt.eat("[")?Gt.match("CDATA[")?ae(et("atom","]]>")):null:Gt.match("--")?ae(et("comment","-->")):Gt.match("DOCTYPE",!0,!0)?(Gt.eatWhile(/[\w\._\-]/),ae(tt(1))):null:Gt.eat("?")?(Gt.eatWhile(/[\w\._\-]/),ce.tokenize=et("meta","?>"),"meta"):(Ct=Gt.eat("/")?"closeTag":"openTag",ce.tokenize=It,"tag bracket");if(xe=="&"){var ye;return Gt.eat("#")?Gt.eat("x")?ye=Gt.eatWhile(/[a-fA-F\d]/)&&Gt.eat(";"):ye=Gt.eatWhile(/[\d]/)&&Gt.eat(";"):ye=Gt.eatWhile(/[\w\.\-:]/)&&Gt.eat(";"),ye?"atom":"error"}else return Gt.eatWhile(/[^&<]/),null}At.isInText=!0;function It(Gt,ce){var ae=Gt.next();if(ae==">"||ae=="/"&&Gt.eat(">"))return ce.tokenize=At,Ct=ae==">"?"endTag":"selfcloseTag","tag bracket";if(ae=="=")return Ct="equals",null;if(ae=="<"){ce.tokenize=At,ce.state=ct,ce.tagName=ce.tagStart=null;var xe=ce.tokenize(Gt,ce);return xe?xe+" tag error":"tag error"}else return/[\'\"]/.test(ae)?(ce.tokenize=mt(ae),ce.stringStartCol=Gt.column(),ce.tokenize(Gt,ce)):(Gt.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function mt(Gt){var ce=function(ae,xe){for(;!ae.eol();)if(ae.next()==Gt){xe.tokenize=It;break}return"string"};return ce.isInAttribute=!0,ce}function et(Gt,ce){return function(ae,xe){for(;!ae.eol();){if(ae.match(ce)){xe.tokenize=At;break}ae.next()}return Gt}}function tt(Gt){return function(ce,ae){for(var xe;(xe=ce.next())!=null;){if(xe=="<")return ae.tokenize=tt(Gt+1),ae.tokenize(ce,ae);if(xe==">")if(Gt==1){ae.tokenize=At;break}else return ae.tokenize=tt(Gt-1),ae.tokenize(ce,ae)}return"meta"}}function st(Gt,ce,ae){this.prev=Gt.context,this.tagName=ce,this.indent=Gt.indented,this.startOfLine=ae,(xt.doNotIndent.hasOwnProperty(ce)||Gt.context&&Gt.context.noIndent)&&(this.noIndent=!0)}function rt(Gt){Gt.context&&(Gt.context=Gt.context.prev)}function ut(Gt,ce){for(var ae;;){if(!Gt.context||(ae=Gt.context.tagName,!xt.contextGrabbers.hasOwnProperty(ae)||!xt.contextGrabbers[ae].hasOwnProperty(ce)))return;rt(Gt)}}function ct(Gt,ce,ae){return Gt=="openTag"?(ae.tagStart=ce.column(),ft):Gt=="closeTag"?pt:ct}function ft(Gt,ce,ae){return Gt=="word"?(ae.tagName=ce.current(),Lt="tag",Zt):xt.allowMissingTagName&&Gt=="endTag"?(Lt="tag bracket",Zt(Gt,ce,ae)):(Lt="error",ft)}function pt(Gt,ce,ae){if(Gt=="word"){var xe=ce.current();return ae.context&&ae.context.tagName!=xe&&xt.implicitlyClosed.hasOwnProperty(ae.context.tagName)&&rt(ae),ae.context&&ae.context.tagName==xe||xt.matchClosing===!1?(Lt="tag",Pt):(Lt="tag error",Dt)}else return xt.allowMissingTagName&&Gt=="endTag"?(Lt="tag bracket",Pt(Gt,ce,ae)):(Lt="error",Dt)}function Pt(Gt,ce,ae){return Gt!="endTag"?(Lt="error",Pt):(rt(ae),ct)}function Dt(Gt,ce,ae){return Lt="error",Pt(Gt,ce,ae)}function Zt(Gt,ce,ae){if(Gt=="word")return Lt="attribute",Ft;if(Gt=="endTag"||Gt=="selfcloseTag"){var xe=ae.tagName,ye=ae.tagStart;return ae.tagName=ae.tagStart=null,Gt=="selfcloseTag"||xt.autoSelfClosers.hasOwnProperty(xe)?ut(ae,xe):(ut(ae,xe),ae.context=new st(ae,xe,ye==ae.indented)),ct}return Lt="error",Zt}function Ft(Gt,ce,ae){return Gt=="equals"?qt:(xt.allowMissing||(Lt="error"),Zt(Gt,ce,ae))}function qt(Gt,ce,ae){return Gt=="string"?te:Gt=="word"&&xt.allowUnquoted?(Lt="string",Zt):(Lt="error",Zt(Gt,ce,ae))}function te(Gt,ce,ae){return Gt=="string"?te:Zt(Gt,ce,ae)}return{startState:function(Gt){var ce={tokenize:At,state:ct,indented:Gt||0,tagName:null,tagStart:null,context:null};return Gt!=null&&(ce.baseIndent=Gt),ce},token:function(Gt,ce){if(!ce.tagName&&Gt.sol()&&(ce.indented=Gt.indentation()),Gt.eatSpace())return null;Ct=null;var ae=ce.tokenize(Gt,ce);return(ae||Ct)&&ae!="comment"&&(Lt=null,ce.state=ce.state(Ct||ae,Gt,ce),Lt&&(ae=Lt=="error"?ae+" error":Lt)),ae},indent:function(Gt,ce,ae){var xe=Gt.context;if(Gt.tokenize.isInAttribute)return Gt.tagStart==Gt.indented?Gt.stringStartCol+1:Gt.indented+Bt;if(xe&&xe.noIndent)return zt.Pass;if(Gt.tokenize!=It&&Gt.tokenize!=At)return ae?ae.match(/^(\s*)/)[0].length:0;if(Gt.tagName)return xt.multilineTagIndentPastTag!==!1?Gt.tagStart+Gt.tagName.length+2:Gt.tagStart+Bt*(xt.multilineTagIndentFactor||1);if(xt.alignCDATA&&/<!\[CDATA\[/.test(ce))return 0;var ye=ce&&/^<(\/)?([\w_:\.-]*)/.exec(ce);if(ye&&ye[1])for(;xe;)if(xe.tagName==ye[2]){xe=xe.prev;break}else if(xt.implicitlyClosed.hasOwnProperty(xe.tagName))xe=xe.prev;else break;else if(ye)for(;xe;){var Te=xt.contextGrabbers[xe.tagName];if(Te&&Te.hasOwnProperty(ye[2]))xe=xe.prev;else break}for(;xe&&xe.prev&&!xe.startOfLine;)xe=xe.prev;return xe?xe.indent+Bt:Gt.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:xt.htmlMode?"html":"xml",helperType:xt.htmlMode?"html":"xml",skipAttribute:function(Gt){Gt.state==qt&&(Gt.state=Zt)},xmlCurrentTag:function(Gt){return Gt.tagName?{name:Gt.tagName,close:Gt.type=="closeTag"}:null},xmlCurrentContext:function(Gt){for(var ce=[],ae=Gt.context;ae;ae=ae.prev)ae.tagName&&ce.push(ae.tagName);return ce.reverse()}}}),zt.defineMIME("text/xml","xml"),zt.defineMIME("application/xml","xml"),zt.mimeModes.hasOwnProperty("text/html")||zt.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{$u:function(){return Rt},BD:function(){return le},E9:function(){return Ot},FF:function(){return Gi},FJ:function(){return ct},Hn:function(){return ut},KX:function(){return pt},NB:function(){return Wt},S0:function(){return Me},UL:function(){return Ct},Vk:function(){return rt},Vm:function(){return oe},YI:function(){return Oe},ZA:function(){return Xt},Zt:function(){return Lt},al:function(){return Mt},bn:function(){return Yt},bx:function(){return Tt},g2:function(){return Fe},h1:function(){return qt},hD:function(){return In},l4:function(){return Bt},rU:function(){return Vt},s_:function(){return bt},uz:function(){return jt},z6:function(){return At}}),Tn=Kt.hmd(Tn),function(){var ne;function Wi(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function Fi(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:Wi(a)}}function nr(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var sr=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},xr;if(typeof Object.setPrototypeOf=="function")xr=Object.setPrototypeOf;else{var vr;t:{var Jn={a:!0},_n={};try{_n.__proto__=Jn,vr=_n.a;break t}catch(a){}vr=!1}xr=vr?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var qe=xr;function Qe(a,y){if(a.prototype=sr(y.prototype),a.prototype.constructor=a,qe)qe(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 we=typeof Kt.g!="undefined"&&Kt.g!=null?Kt.g:self,fn=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},Sn=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function ze(a,y){if(y){var x=we;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&&Sn(x,a,{writable:!0,value:y})}}ze("Object.assign",function(a){return a||fn}),ze("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 Le=typeof globalThis=="object"&&globalThis||typeof Kt.g=="object"&&Kt.g.global===Kt.g&&Kt.g||typeof self=="object"&&self.self===self&&self||{};Le.requestAnimationFrame===void 0&&(Le.setImmediate===void 0?Le.requestAnimationFrame=function(a){Le.setTimeout(a,0)}:Le.requestAnimationFrame=Le.setImmediate);function cn(){}function wn(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&Le.clearTimeout(x),x=Nn(function(){x=-1,a.apply(b,E)},y)}}function Nn(a,y){return Le.setTimeout(a,y)}function Hn(a){return Le.document.createElement(a)}function Pe(a){throw Error(a)}function We(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),Pe(a)}function pn(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),Pe(x+" is not in the range "+y+": "+a)}function On(a){Le.console&&Le.console.log(a)}function Ke(a){return typeof a=="object"&&a!==null}function nn(a){return Array.isArray(a)||Le.NodeList&&a instanceof Le.NodeList||Le.HTMLCollection&&a instanceof Le.HTMLCollection}function _e(a){return Array.prototype.slice.call(a)}function en(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):Pe("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function un(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):Pe("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function sn(){var a=oi.pop();return a===void 0?[]:a}function xn(a){a.length=0,oi.push(a)}function gn(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(Ke(a)&&a.constructor)return gn(a.constructor);return typeof a}function Ln(a){var y=a;return Ke(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 Mn(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 Qn(a,y,x){Object.defineProperty(Kr.prototype,a,{get:y,set:x})}function ln(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="",nt=0;nt<a.length;nt++)x=(x+1)%256,b=(b+y[x])%256,E=y[x],y[x]=y[b],y[b]=E,z+=String.fromCharCode(a.charCodeAt(nt)^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 ti=Le.navigator!==void 0&&0<Le.navigator.userAgent.indexOf("Trident/7"),vi=Le.navigator!==void 0&&Le.navigator.platform!==void 0&&Le.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,oi=[];Object.freeze([]),cn.className="Util",cn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",cn.adym="gojs.net",cn.vfo="28e645fdb266",cn.className="Util";function dn(a,y,x){Oi(this),this.j=a,this.xa=y,this.o=x}dn.prototype.toString=function(){return"EnumValue."+this.xa};function Rn(a,y){return y==null||y===""?null:a[y]}we.Object.defineProperties(dn.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),dn.className="EnumValue";function Xn(){this.ew=[]}Xn.prototype.toString=function(){return this.ew.join("")},Xn.prototype.add=function(a){a!==""&&this.ew.push(a)},Xn.className="StringBuilder";function hi(){}hi.className="PropertyCollection";var ei={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Le.console&&Le.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(nt,ot){return function(){throw Error("Property "+nt.Zl[ot.Tj]+" of "+nt.x+" is read-only.")}}(y,E)})}}}y={Zl:y.Zl,x:y.x}}}};function fi(){}fi.prototype.reset=function(){},fi.prototype.next=function(){return!1},fi.prototype.Ad=function(){return!1},fi.prototype.first=function(){return null},fi.prototype.any=function(){return!1},fi.prototype.all=function(){return!0},fi.prototype.each=function(){return this},fi.prototype.map=function(){return this},fi.prototype.filter=function(){return this},fi.prototype.de=function(){},fi.prototype.toString=function(){return"EmptyIterator"},we.Object.defineProperties(fi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),fi.prototype.first=fi.prototype.first,fi.prototype.hasNext=fi.prototype.Ad,fi.prototype.next=fi.prototype.next,fi.prototype.reset=fi.prototype.reset;var Ai=null;fi.className="EmptyIterator",Ai=new fi;function gi(a){this.key=-1,this.value=a}gi.prototype.reset=function(){this.key=-1},gi.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},gi.prototype.Ad=function(){return this.next()},gi.prototype.first=function(){return this.key=0,this.value},gi.prototype.any=function(a){return this.key=-1,a(this.value)},gi.prototype.all=function(a){return this.key=-1,a(this.value)},gi.prototype.each=function(a){return this.key=-1,a(this.value),this},gi.prototype.map=function(a){return new gi(a(this.value))},gi.prototype.filter=function(a){return a(this.value)?new gi(this.value):Ai},gi.prototype.de=function(){this.value=null},gi.prototype.toString=function(){return"SingletonIterator("+this.value+")"},we.Object.defineProperties(gi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),gi.prototype.first=gi.prototype.first,gi.prototype.hasNext=gi.prototype.Ad,gi.prototype.next=gi.prototype.next,gi.prototype.reset=gi.prototype.reset,gi.className="SingletonIterator";function ii(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}ii.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},ii.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},ii.prototype.Ad=function(){return this.next()},ii.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},ii.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},ii.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},ii.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},ii.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 nt=y[z];(E===null||E(nt))&&x.push(a(nt))}return a=new bn,a.s=x,a.xb(),a.iterator},ii.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 nt=y[z];(E===null||E(nt))&&a(nt)&&x.push(nt)}return a=new bn,a.s=x,a.xb(),a.iterator},ii.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},ii.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},we.Object.defineProperties(ii.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}}}),ii.prototype.first=ii.prototype.first,ii.prototype.hasNext=ii.prototype.Ad,ii.prototype.next=ii.prototype.next,ii.prototype.reset=ii.prototype.reset,ii.className="ListIterator";function Li(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Li.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Li.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)},Li.prototype.Ad=function(){return this.next()},Li.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},Li.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},Li.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},Li.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},Li.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 bn,a.s=x,a.xb(),a.iterator},Li.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 bn,a.s=x,a.xb(),a.iterator},Li.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Li.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},we.Object.defineProperties(Li.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Li.prototype.first=Li.prototype.first,Li.prototype.hasNext=Li.prototype.Ad,Li.prototype.next=Li.prototype.next,Li.prototype.reset=Li.prototype.reset,Li.className="ListIteratorBackwards";function bn(a){Oi(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&Pe("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}ne=bn.prototype,ne.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},ne.freeze=function(){return this._isFrozen=!0,this},ne.ka=function(){return this._isFrozen=!1,this},ne.toString=function(){return"List()#"+_i(this)},ne.add=function(a){return a===null?this:(this._isFrozen&&We(this,a),this.s.push(a),this.xb(),this)},ne.push=function(a){this.add(a)},ne.addAll=function(a){if(a===null)return this;this._isFrozen&&We(this);var y=this.s;if(nn(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},ne.clear=function(){this._isFrozen&&We(this),this.s.length=0,this.xb()},ne.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},ne.has=function(a){return this.contains(a)},ne.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},ne.M=function(a){var y=this.s;return(0>a||a>=y.length)&&pn(a,"0 <= i < length",bn,"elt:i"),y[a]},ne.get=function(a){return this.M(a)},ne.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&pn(a,"0 <= i < length",bn,"setElt:i"),this._isFrozen&&We(this,a),x[a]=y},ne.set=function(a,y){this.cd(a,y)},ne.first=function(){var a=this.s;return a.length===0?null:a[0]},ne.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},ne.pop=function(){this._isFrozen&&We(this);var a=this.s;return 0<a.length?a.pop():null},bn.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},bn.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},bn.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},bn.prototype.map=function(a){for(var y=new bn,x=[],b=this.s,E=b.length,z=0;z<E;z++)x.push(a(b[z]));return y.s=x,y.xb(),y},bn.prototype.filter=function(a){for(var y=new bn,x=[],b=this.s,E=b.length,z=0;z<E;z++){var nt=b[z];a(nt)&&x.push(nt)}return y.s=x,y.xb(),y},ne=bn.prototype,ne.Gb=function(a,y){0>a&&pn(a,">= 0",bn,"insertAt:i"),this._isFrozen&&We(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},ne.remove=function(a){if(a===null)return!1;this._isFrozen&&We(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)},ne.delete=function(a){return this.remove(a)},ne.mb=function(a){var y=this.s;(0>a||a>=y.length)&&pn(a,"0 <= i < length",bn,"removeAt:i"),this._isFrozen&&We(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},ne.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&&We(this);for(var E=a,z=y+1;z<b;)x[E++]=x[z++];return x.length=b-(y-a+1),this.xb(),this},bn.prototype.copy=function(){var a=new bn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},ne=bn.prototype,ne.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},ne.Iv=function(){for(var a=new En,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},ne.sort=function(a){return this._isFrozen&&We(this),this.s.sort(a),this.xb(),this},ne.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&We(this);var z=x-y;if(1>=z)return this;if((0>y||y>=E-1)&&pn(y,"0 <= from < length",bn,"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},ne.reverse=function(){return this._isFrozen&&We(this),this.s.reverse(),this.xb(),this},we.Object.defineProperties(bn.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 Ai;var a=this.Sa;return a!==null?(a.reset(),a):new ii(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return Ai;var a=this.Hg;return a!==null?(a.reset(),a):new Li(this)}}}),bn.prototype.reverse=bn.prototype.reverse,bn.prototype.sortRange=bn.prototype.zi,bn.prototype.sort=bn.prototype.sort,bn.prototype.toSet=bn.prototype.Iv,bn.prototype.toArray=bn.prototype.Fa,bn.prototype.removeRange=bn.prototype.removeRange,bn.prototype.removeAt=bn.prototype.mb,bn.prototype.delete=bn.prototype.delete,bn.prototype.remove=bn.prototype.remove,bn.prototype.insertAt=bn.prototype.Gb,bn.prototype.pop=bn.prototype.pop,bn.prototype.last=bn.prototype.jc,bn.prototype.first=bn.prototype.first,bn.prototype.set=bn.prototype.set,bn.prototype.setElt=bn.prototype.cd,bn.prototype.get=bn.prototype.get,bn.prototype.elt=bn.prototype.M,bn.prototype.indexOf=bn.prototype.indexOf,bn.prototype.has=bn.prototype.has,bn.prototype.contains=bn.prototype.contains,bn.prototype.clear=bn.prototype.clear,bn.prototype.addAll=bn.prototype.addAll,bn.prototype.push=bn.prototype.push,bn.prototype.add=bn.prototype.add,bn.prototype.thaw=bn.prototype.ka,bn.prototype.freeze=bn.prototype.freeze,bn.className="List";function er(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}er.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},er.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)},er.prototype.Ad=function(){return this.next()},er.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},er.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},er.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},er.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},er.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new bn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},er.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new bn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},er.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},er.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},we.Object.defineProperties(er.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),er.prototype.first=er.prototype.first,er.prototype.hasNext=er.prototype.Ad,er.prototype.next=er.prototype.next,er.prototype.reset=er.prototype.reset,er.className="SetIterator";function En(a){Oi(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Pe("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}ne=En.prototype,ne.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},ne.freeze=function(){return this._isFrozen=!0,this},ne.ka=function(){return this._isFrozen=!1,this},ne.toString=function(){return"Set()#"+_i(this)},ne.add=function(a){if(a===null)return this;this._isFrozen&&We(this,a);var y=a;return Ke(a)&&(y=wr(a)),this.Tb[y]===void 0&&(this.Sb++,a=new Zi(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},ne.addAll=function(a){if(a===null)return this;if(this._isFrozen&&We(this),nn(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},ne.contains=function(a){if(a===null)return!1;var y=a;return Ke(a)&&(y=_i(a),y===void 0)?!1:this.Tb[y]!==void 0},ne.has=function(a){return this.contains(a)},ne.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},ne.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},ne.first=function(){var a=this.ea;return a===null?null:a.value},En.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},En.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},En.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},En.prototype.map=function(a){for(var y=new En,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},En.prototype.filter=function(a){for(var y=new En,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},ne=En.prototype,ne.remove=function(a){if(a===null)return!1;this._isFrozen&&We(this,a);var y=a;if(Ke(a)&&(y=_i(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},ne.delete=function(a){return this.remove(a)},ne.hp=function(a){if(a===null)return this;if(this._isFrozen&&We(this),nn(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},ne.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&We(this);var y=new En;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},ne.clear=function(){this._isFrozen&&We(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},En.prototype.copy=function(){var a=new En,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},En.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},En.prototype.Hv=function(){var a=new bn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function Oi(a){a.__gohashid=kr++}function wr(a){var y=a.__gohashid;return y===void 0&&(y=kr++,a.__gohashid=y),y}function _i(a){return a.__gohashid}we.Object.defineProperties(En.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return Ai;var a=this.Sa;return a!==null?(a.reset(),a):new er(this)}}}),En.prototype.toList=En.prototype.Hv,En.prototype.toArray=En.prototype.Fa,En.prototype.clear=En.prototype.clear,En.prototype.retainAll=En.prototype.pA,En.prototype.removeAll=En.prototype.hp,En.prototype.delete=En.prototype.delete,En.prototype.remove=En.prototype.remove,En.prototype.first=En.prototype.first,En.prototype.containsAny=En.prototype.Ty,En.prototype.containsAll=En.prototype.Sy,En.prototype.has=En.prototype.has,En.prototype.contains=En.prototype.contains,En.prototype.addAll=En.prototype.addAll,En.prototype.add=En.prototype.add,En.prototype.thaw=En.prototype.ka,En.prototype.freeze=En.prototype.freeze;var kr=1;En.className="Set",En.uniqueHash=Oi,En.hashIdUnique=wr,En.hashId=_i;function gr(a){this.ma=a,this.qa=a.Ja,this.sa=null}gr.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},gr.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)},gr.prototype.Ad=function(){return this.next()},gr.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},gr.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},gr.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},gr.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},gr.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new bn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},gr.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new bn;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},gr.prototype.de=function(){this.value=this.key=null,this.qa=-1},gr.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},we.Object.defineProperties(gr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),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="MapKeySetIterator";function wi(a){En.call(this),Oi(this),this._isFrozen=!0,this.ma=a}Qe(wi,En),ne=wi.prototype,ne.freeze=function(){return this},ne.ka=function(){return this},ne.toString=function(){return"MapKeySet("+this.ma.toString()+")"},ne.add=function(){Pe("This Set is read-only: "+this.toString())},ne.contains=function(a){return this.ma.contains(a)},ne.has=function(a){return this.contains(a)},ne.remove=function(){Pe("This Set is read-only: "+this.toString())},ne.delete=function(a){return this.remove(a)},ne.clear=function(){Pe("This Set is read-only: "+this.toString())},ne.first=function(){var a=this.ma.ea;return a!==null?a.key:null},wi.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},wi.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},wi.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},wi.prototype.map=function(a){for(var y=new En,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},wi.prototype.filter=function(a){for(var y=new En,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},wi.prototype.copy=function(){return new wi(this.ma)},wi.prototype.Iv=function(){var a=new En,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},wi.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},wi.prototype.Hv=function(){var a=new bn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},we.Object.defineProperties(wi.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?Ai:new gr(this.ma)}}}),wi.prototype.toList=wi.prototype.Hv,wi.prototype.toArray=wi.prototype.Fa,wi.prototype.toSet=wi.prototype.Iv,wi.prototype.first=wi.prototype.first,wi.prototype.clear=wi.prototype.clear,wi.prototype.delete=wi.prototype.delete,wi.prototype.remove=wi.prototype.remove,wi.prototype.has=wi.prototype.has,wi.prototype.contains=wi.prototype.contains,wi.prototype.add=wi.prototype.add,wi.prototype.thaw=wi.prototype.ka,wi.prototype.freeze=wi.prototype.freeze,wi.className="MapKeySet";function yi(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}yi.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},yi.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)},yi.prototype.Ad=function(){return this.next()},yi.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},yi.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},yi.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},yi.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},yi.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new bn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},yi.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new bn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},yi.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},yi.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},we.Object.defineProperties(yi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),yi.prototype.first=yi.prototype.first,yi.prototype.hasNext=yi.prototype.Ad,yi.prototype.next=yi.prototype.next,yi.prototype.reset=yi.prototype.reset,yi.className="MapValueSetIterator";function Zi(a,y){this.key=a,this.value=y,this.ll=this.va=null}Zi.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Zi.className="KeyValuePair";function Xi(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Xi.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Xi.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)},Xi.prototype.Ad=function(){return this.next()},Xi.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},Xi.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},Xi.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},Xi.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},Xi.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new bn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},Xi.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new bn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},Xi.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Xi.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},we.Object.defineProperties(Xi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Xi.prototype.first=Xi.prototype.first,Xi.prototype.hasNext=Xi.prototype.Ad,Xi.prototype.next=Xi.prototype.next,Xi.prototype.reset=Xi.prototype.reset,Xi.className="MapIterator";function qn(a){Oi(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"&&Pe("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}ne=qn.prototype,ne.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},ne.freeze=function(){return this._isFrozen=!0,this},ne.ka=function(){return this._isFrozen=!1,this},ne.toString=function(){return"Map()#"+_i(this)},ne.add=function(a,y){this._isFrozen&&We(this,a);var x=a;Ke(a)&&(x=wr(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new Zi(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},ne.set=function(a,y){return this.add(a,y)},ne.addAll=function(a){if(a===null)return this;if(nn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];this.add(b.key,b.value)}else if(a instanceof qn)for(a=a.iterator;a.next();)this.add(a.key,a.value);else for(a=a.iterator;a.next();)y=a.value,this.add(y.key,y.value);return this},ne.first=function(){return this.ea},qn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},qn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},qn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},qn.prototype.map=function(a){for(var y=new qn,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},qn.prototype.filter=function(a){for(var y=new qn,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},ne=qn.prototype,ne.contains=function(a){var y=a;return Ke(a)&&(y=_i(a),y===void 0)?!1:this.Tb[y]!==void 0},ne.has=function(a){return this.contains(a)},ne.I=function(a){var y=a;return Ke(a)&&(y=_i(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},ne.get=function(a){return this.I(a)},ne.remove=function(a){if(a===null)return!1;this._isFrozen&&We(this,a);var y=a;if(Ke(a)&&(y=_i(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},ne.delete=function(a){return this.remove(a)},ne.clear=function(){this._isFrozen&&We(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.jf!==null&&this.jf.reset(),this.kf=this.ea=null,this.xb()},qn.prototype.copy=function(){var a=new qn,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},qn.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),x=0,b;for(b in a){var E=a[b];y[x]=new Zi(E.key,E.value),x++}return y},qn.prototype.Lf=function(){return new wi(this)},we.Object.defineProperties(qn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return Ai;var a=this.Sa;return a!==null?(a.reset(),a):new Xi(this)}},iteratorKeys:{get:function(){return 0>=this.count?Ai:new gr(this)}},iteratorValues:{get:function(){if(0>=this.count)return Ai;var a=this.jf;return a!==null?(a.reset(),a):new yi(this)}}}),qn.prototype.toKeySet=qn.prototype.Lf,qn.prototype.toArray=qn.prototype.Fa,qn.prototype.clear=qn.prototype.clear,qn.prototype.delete=qn.prototype.delete,qn.prototype.remove=qn.prototype.remove,qn.prototype.get=qn.prototype.get,qn.prototype.getValue=qn.prototype.I,qn.prototype.has=qn.prototype.has,qn.prototype.contains=qn.prototype.contains,qn.prototype.first=qn.prototype.first,qn.prototype.addAll=qn.prototype.addAll,qn.prototype.set=qn.prototype.set,qn.prototype.add=qn.prototype.add,qn.prototype.thaw=qn.prototype.ka,qn.prototype.freeze=qn.prototype.freeze,qn.className="Map";function Se(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):Pe("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var ji,yr,Ki,rr,Tr;Se.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Se.prototype.h=function(a,y){return this.x=a,this.y=y,this},Se.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Se.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Se.prototype.copy=function(){var a=new Se;return a.x=this.x,a.y=this.y,a},ne=Se.prototype,ne.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ne.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ne.freeze=function(){return this._isFrozen=!0,this},ne.ka=function(){return Object.isFrozen(this)&&Pe("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ar(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 Se(x,E)}return new Se}function Bi(a){return a.x.toString()+" "+a.y.toString()}ne.toString=function(){return"Point("+this.x+","+this.y+")"},ne.D=function(a){return a instanceof Se?this.x===a.x&&this.y===a.y:!1},ne.hi=function(a,y){return this.x===a&&this.y===y},ne.Xa=function(a){return Je.B(this.x,a.x)&&Je.B(this.y,a.y)},ne.add=function(a){return this.x+=a.x,this.y+=a.y,this},ne.re=function(a){return this.x-=a.x,this.y-=a.y,this},ne.offset=function(a,y){return this.x+=a,this.y+=y,this},Se.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},ne=Se.prototype,ne.scale=function(a,y){return this.x*=a,this.y*=y,this},ne.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},ne.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},ne.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},ne.ab=function(a){return Di(a.x-this.x,a.y-this.y)},ne.direction=function(a,y){return Di(a-this.x,y-this.y)};function Di(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}ne.Ry=function(a,y){return Je.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},ne.fA=function(a,y,x,b){return Je.qh(a,y,x,b,this.x,this.y,this),this},ne.gA=function(a,y){return Je.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},ne.uA=function(a,y,x,b){return Je.No(this.x,this.y,a,y,x,b,this),this},ne.vA=function(a,y){return Je.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},ne.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},ne.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},ne.transform=function(a){return a.Ga(this),this};function Mi(a,y){return y.Cd(a),a}function lr(a,y,x,b,E,z){var nt=E-x,ot=z-b,at=nt*nt+ot*ot;x-=a,b-=y;var ht=-x*nt-b*ot;return 0>=ht||ht>=at?(nt=E-a,ot=z-y,Math.min(x*x+b*b,nt*nt+ot*ot)):(a=nt*b-ot*x,a*a/at)}function ar(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function Pi(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)}ne.w=function(){return isFinite(this.x)&&isFinite(this.y)},Se.alloc=function(){var a=mi.pop();return a===void 0?new Se:a},Se.allocAt=function(a,y){var x=mi.pop();return x===void 0?new Se(a,y):(x.x=a,x.y=y,x)},Se.free=function(a){mi.push(a)},Se.prototype.isReal=Se.prototype.w,Se.prototype.setSpot=Se.prototype.yi,Se.prototype.setRectSpot=Se.prototype.xi,Se.prototype.snapToGridPoint=Se.prototype.vA,Se.prototype.snapToGrid=Se.prototype.uA,Se.prototype.projectOntoLineSegmentPoint=Se.prototype.gA,Se.prototype.projectOntoLineSegment=Se.prototype.fA,Se.intersectingLineSegments=function(a,y,x,b,E,z,nt,ot){return Je.Rl(a,y,x,b,E,z,nt,ot)},Se.prototype.compareWithLineSegmentPoint=Se.prototype.Ry,Se.compareWithLineSegment=function(a,y,x,b,E,z){return Je.Fl(a,y,x,b,E,z)},Se.prototype.direction=Se.prototype.direction,Se.prototype.directionPoint=Se.prototype.ab,Se.prototype.normalize=Se.prototype.normalize,Se.prototype.distanceSquared=Se.prototype.zd,Se.prototype.distanceSquaredPoint=Se.prototype.Bf,Se.prototype.scale=Se.prototype.scale,Se.prototype.rotate=Se.prototype.rotate,Se.prototype.offset=Se.prototype.offset,Se.prototype.subtract=Se.prototype.re,Se.prototype.add=Se.prototype.add,Se.prototype.equalsApprox=Se.prototype.Xa,Se.prototype.equalTo=Se.prototype.hi,Se.prototype.equals=Se.prototype.D,Se.prototype.set=Se.prototype.set,Se.prototype.setTo=Se.prototype.sg;var mi=[];Se.className="Point",Se.parse=Ar,Se.stringify=Bi,Se.distanceLineSegmentSquared=lr,Se.distanceSquared=ar,Se.direction=Pi,Se.Origin=ji=new Se(0,0).ja(),Se.InfiniteTopLeft=yr=new Se(-1/0,-1/0).ja(),Se.InfiniteBottomRight=Ki=new Se(1/0,1/0).ja(),Se.SixPoint=rr=new Se(6,6).ja(),Se.NoPoint=Tr=new Se(NaN,NaN).ja(),Se.parse=Ar,Se.stringify=Bi,Se.distanceLineSegmentSquared=lr,Se.distanceSquared=ar,Se.direction=Pi;function Wn(a,y){a===void 0?this.height=this.width=0:typeof a=="number"&&(0<=a||isNaN(a))&&typeof y=="number"&&(0<=y||isNaN(y))?(this.width=a,this.height=y):Pe("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var Ti,Sr,Br,Rr,Vr,io,ro;Wn.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Wn.prototype.h=function(a,y){return this.width=a,this.height=y,this},Wn.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Wn.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Wn.prototype.copy=function(){var a=new Wn;return a.width=this.width,a.height=this.height,a},ne=Wn.prototype,ne.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ne.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ne.freeze=function(){return this._isFrozen=!0,this},ne.ka=function(){return Object.isFrozen(this)&&Pe("cannot thaw constant: "+this),this._isFrozen=!1,this};function To(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new Wn(x,E)}return new Wn}function oo(a){return a.width.toString()+" "+a.height.toString()}ne.toString=function(){return"Size("+this.width+","+this.height+")"},ne.D=function(a){return a instanceof Wn?this.width===a.width&&this.height===a.height:!1},ne.hi=function(a,y){return this.width===a&&this.height===y},ne.Xa=function(a){return Je.B(this.width,a.width)&&Je.B(this.height,a.height)},ne.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},ne.w=function(){return isFinite(this.width)&&isFinite(this.height)},Wn.alloc=function(){var a=ko.pop();return a===void 0?new Wn:a},Wn.free=function(a){ko.push(a)},Wn.prototype.isReal=Wn.prototype.w,Wn.prototype.inflate=Wn.prototype.Bc,Wn.prototype.equalsApprox=Wn.prototype.Xa,Wn.prototype.equalTo=Wn.prototype.hi,Wn.prototype.equals=Wn.prototype.D,Wn.prototype.set=Wn.prototype.set,Wn.prototype.setTo=Wn.prototype.sg;var ko=[];Wn.className="Size",Wn.parse=To,Wn.stringify=oo,Wn.ZeroSize=Ti=new Wn(0,0).ja(),Wn.OneSize=Sr=new Wn(1,1).ja(),Wn.SixSize=Br=new Wn(6,6).ja(),Wn.EightSize=Rr=new Wn(8,8).ja(),Wn.TenSize=Vr=new Wn(10,10).ja(),Wn.InfiniteSize=io=new Wn(1/0,1/0).ja(),Wn.NoSize=ro=new Wn(NaN,NaN).ja(),Wn.parse=To,Wn.stringify=oo;function yn(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 Se?(x=a.x,a=a.y,y instanceof Se?(b=y.x,y=y.y,this.x=Math.min(x,b),this.y=Math.min(a,y),this.width=Math.abs(x-b),this.height=Math.abs(a-y)):y instanceof Wn?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):Pe("Incorrect second argument supplied to Rect constructor "+y)):Pe("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}ne=yn.prototype,ne.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},ne.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function so(a,y,x){a.width=y,a.height=x}ne.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},ne.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},ne.dd=function(a){return this.x=a.x,this.y=a.y,this},ne.tA=function(a){return this.width=a.width,this.height=a.height,this},yn.prototype.copy=function(){var a=new yn;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},ne=yn.prototype,ne.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ne.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ne.freeze=function(){return this._isFrozen=!0,this},ne.ka=function(){return Object.isFrozen(this)&&Pe("cannot thaw constant: "+this),this._isFrozen=!1,this};function Pl(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 nt=0;a[y]==="";)y++;return(b=a[y++])&&(nt=parseFloat(b)),new yn(x,E,z,nt)}return new yn}function vs(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}ne.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},ne.D=function(a){return a instanceof yn?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},ne.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},ne.Xa=function(a){return Je.B(this.x,a.x)&&Je.B(this.y,a.y)&&Je.B(this.width,a.width)&&Je.B(this.height,a.height)};function Nr(a,y){return Je.$(a.x,y.x)&&Je.$(a.y,y.y)&&Je.$(a.width,y.width)&&Je.$(a.height,y.height)}ne.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},ne.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},ne.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},ne.offset=function(a,y){return this.x+=a,this.y+=y,this},ne.Bc=function(a,y){return Pr(this,y,a,y,a)},ne.Co=function(a){return Pr(this,a.top,a.right,a.bottom,a.left)},ne.Fv=function(a){return Pr(this,-a.top,-a.right,-a.bottom,-a.left)},ne.Hz=function(a,y,x,b){return Pr(this,a,y,x,b)};function Pr(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}ne.Ex=function(a){return uo(this,a.x,a.y,a.width,a.height)},ne.Uu=function(a,y,x,b){return uo(this,a,y,x,b)};function uo(a,y,x,b,E){var z=Math.max(a.x,y),nt=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=nt,a.width=Math.max(0,y-z),a.height=Math.max(0,x-nt),a}ne.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},ne.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 Wr(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))}ne.Ye=function(a){return Ji(this,a.x,a.y,0,0)},ne.ed=function(a){return Ji(this,a.x,a.y,a.width,a.height)},ne.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),Ji(this,a,y,x,b)};function Ji(a,y,x,b,E){var z=Math.min(a.x,y),nt=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=nt,a.width=y-z,a.height=x-nt,a}ne.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 $i(a,y,x,b,E,z,nt,ot){return nt===void 0&&(nt=0),ot===void 0&&(ot=0),a<=E&&E+nt<=a+x&&y<=z&&z+ot<=y+b}function Uo(a,y,x,b,E,z,nt,ot){return a>nt+E||E>x+a?!1:!(y>ot+z||z>b+y)}ne.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},ne.Mz=function(){return this.width===0&&this.height===0},yn.alloc=function(){var a=pr.pop();return a===void 0?new yn:a},yn.allocAt=function(a,y,x,b){var E=pr.pop();return E===void 0?new yn(a,y,x,b):E.h(a,y,x,b)},yn.free=function(a){pr.push(a)},we.Object.defineProperties(yn.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 Se(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Wn(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Se(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}}}),yn.prototype.isEmpty=yn.prototype.Mz,yn.prototype.isReal=yn.prototype.w,yn.intersectsLineSegment=function(a,y,x,b,E,z,nt,ot){return Je.Fx(a,y,x,b,E,z,nt,ot)},yn.prototype.setSpot=yn.prototype.yi,yn.prototype.union=yn.prototype.Kv,yn.prototype.unionRect=yn.prototype.ed,yn.prototype.unionPoint=yn.prototype.Ye,yn.prototype.intersects=yn.prototype.Vu,yn.prototype.intersectsRect=yn.prototype.Yc,yn.prototype.intersect=yn.prototype.Uu,yn.prototype.intersectRect=yn.prototype.Ex,yn.prototype.grow=yn.prototype.Hz,yn.prototype.subtractMargin=yn.prototype.Fv,yn.prototype.addMargin=yn.prototype.Co,yn.prototype.inflate=yn.prototype.Bc,yn.prototype.offset=yn.prototype.offset,yn.prototype.contains=yn.prototype.contains,yn.prototype.containsRect=yn.prototype.Re,yn.prototype.containsPoint=yn.prototype.ca,yn.prototype.equalsApprox=yn.prototype.Xa,yn.prototype.equalTo=yn.prototype.hi,yn.prototype.equals=yn.prototype.D,yn.prototype.setSize=yn.prototype.tA,yn.prototype.setPoint=yn.prototype.dd,yn.prototype.set=yn.prototype.set,yn.prototype.setTo=yn.prototype.sg;var zi=null,dr=null,pr=[];yn.className="Rect",yn.parse=Pl,yn.stringify=vs,yn.contains=$i,yn.intersects=Uo,yn.ZeroRect=zi=new yn(0,0,0,0).ja(),yn.NoRect=dr=new yn(NaN,NaN,NaN,NaN).ja(),yn.parse=Pl,yn.stringify=vs,yn.contains=$i,yn.intersects=Uo;function li(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):Pe("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}li.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},li.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},li.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},li.prototype.copy=function(){var a=new li;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},ne=li.prototype,ne.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ne.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ne.freeze=function(){return this._isFrozen=!0,this},ne.ka=function(){return Object.isFrozen(this)&&Pe("cannot thaw constant: "+this),this._isFrozen=!1,this};function no(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 li;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new li(x);for(var z=NaN;a[y]==="";)y++;if((b=a[y++])&&(z=parseFloat(b)),isNaN(z))return new li(x,E);for(var nt=NaN;a[y]==="";)y++;return(b=a[y++])&&(nt=parseFloat(b)),isNaN(nt)?new li(x,E):new li(x,E,z,nt)}return new li}function bo(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}ne.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},ne.D=function(a){return a instanceof li?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},ne.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},ne.Xa=function(a){return Je.B(this.top,a.top)&&Je.B(this.right,a.right)&&Je.B(this.bottom,a.bottom)&&Je.B(this.left,a.left)},ne.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},li.alloc=function(){var a=wa.pop();return a===void 0?new li:a},li.free=function(a){wa.push(a)},li.prototype.isReal=li.prototype.w,li.prototype.equalsApprox=li.prototype.Xa,li.prototype.equalTo=li.prototype.hi,li.prototype.equals=li.prototype.D,li.prototype.set=li.prototype.set,li.prototype.setTo=li.prototype.sg;var os=null,Js=null,wa=[];li.className="Margin",li.parse=no,li.stringify=bo,li.ZeroMargin=os=new li(0,0,0,0).ja(),li.TwoMargin=Js=new li(2,2,2,2).ja(),li.parse=no,li.stringify=bo;function si(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 ao,No,Pa,iu,Ra,ur,ch,Qs,$s,ta,Bl,ru,ea,ba,dh,oc,fh,Gc,gh,ph,Rl,ja,sc,mh,vh,Cr,Zr,ys,Ss,Go,Co,Oo,Ko,jo,bl,za;si.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},si.prototype.sg=function(a,y,x,b){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=b,this},si.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},si.prototype.copy=function(){var a=new si;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},ne=si.prototype,ne.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},ne.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},ne.freeze=function(){return this._isFrozen=!0,this},ne.ka=function(){return Object.isFrozen(this)&&Pe("cannot thaw constant: "+this),this._isFrozen=!1,this};function Mo(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function Bd(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return ao;if(a==="TopLeft")return No;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return Pa;if(a==="TopRight")return iu;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return Ra;if(a==="Center")return ur;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return ch;if(a==="BottomLeft")return Qs;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return $s;if(a==="BottomRight")return ta;if(a==="TopSide")return Bl;if(a==="LeftSide")return ru;if(a==="RightSide")return ea;if(a==="BottomSide")return ba;if(a==="TopBottomSides")return dh;if(a==="LeftRightSides")return oc;if(a==="TopLeftSides")return fh;if(a==="TopRightSides")return Gc;if(a==="BottomLeftSides")return gh;if(a==="BottomRightSides")return ph;if(a==="NotTopSide")return Rl;if(a==="NotLeftSide")return ja;if(a==="NotRightSide")return sc;if(a==="NotBottomSide")return mh;if(a==="AllSides")return vh;if(a==="Default")return Cr;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 nt=0;a[y]==="";)y++;return b=a[y++],b!==void 0&&0<b.length&&(nt=parseFloat(b)),new si(x,E,z,nt)}return new si}function Rd(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}ne.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(ao)?"None":this.D(No)?"TopLeft":this.D(Pa)?"Top":this.D(iu)?"TopRight":this.D(Ra)?"Left":this.D(ur)?"Center":this.D(ch)?"Right":this.D(Qs)?"BottomLeft":this.D($s)?"Bottom":this.D(ta)?"BottomRight":this.D(Bl)?"TopSide":this.D(ru)?"LeftSide":this.D(ea)?"RightSide":this.D(ba)?"BottomSide":this.D(dh)?"TopBottomSides":this.D(oc)?"LeftRightSides":this.D(fh)?"TopLeftSides":this.D(Gc)?"TopRightSides":this.D(gh)?"BottomLeftSides":this.D(ph)?"BottomRightSides":this.D(Rl)?"NotTopSide":this.D(ja)?"NotLeftSide":this.D(sc)?"NotRightSide":this.D(mh)?"NotBottomSide":this.D(vh)?"AllSides":this.D(Cr)?"Default":"None"},ne.D=function(a){return a instanceof si?(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},ne.gv=function(){return new si(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},ne.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(Zr))a=ru;else if(a.D(ys))a=ea;else if(a.D(Ss))a=Bl;else if(a.D(Go))a=ba;else return!1;return a=a.offsetY,(this.offsetY&a)===a},ne.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},ne.Mc=function(){return isNaN(this.x)||isNaN(this.y)},ne.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},ne.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},ne.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},si.alloc=function(){var a=jd.pop();return a===void 0?new si:a},si.free=function(a){jd.push(a)},si.prototype.isDefault=si.prototype.Xb,si.prototype.isNone=si.prototype.ys,si.prototype.isSide=si.prototype.$c,si.prototype.isNoSpot=si.prototype.Mc,si.prototype.isSpot=si.prototype.sb,si.prototype.includesSide=si.prototype.Hf,si.prototype.opposite=si.prototype.gv,si.prototype.equals=si.prototype.D,si.prototype.set=si.prototype.set,si.prototype.setTo=si.prototype.sg;var jd=[];si.className="Spot",si.parse=Bd,si.stringify=Rd,si.None=ao=Mo(new si(0,0,0,0),0).ja(),si.Default=Cr=Mo(new si(0,0,-1,0),-1).ja(),si.TopLeft=No=new si(0,0,0,0).ja(),si.TopCenter=Pa=new si(.5,0,0,0).ja(),si.TopRight=iu=new si(1,0,0,0).ja(),si.LeftCenter=Ra=new si(0,.5,0,0).ja(),si.Center=ur=new si(.5,.5,0,0).ja(),si.RightCenter=ch=new si(1,.5,0,0).ja(),si.BottomLeft=Qs=new si(0,1,0,0).ja(),si.BottomCenter=$s=new si(.5,1,0,0).ja(),si.BottomRight=ta=new si(1,1,0,0).ja(),si.MiddleTop=Co=Pa,si.MiddleLeft=Oo=Ra,si.MiddleRight=Ko=ch,si.MiddleBottom=jo=$s,si.Top=Ss=Pa,si.Left=Zr=Ra,si.Right=ys=ch,si.Bottom=Go=$s,si.TopSide=Bl=Mo(new si(0,0,1,1),1).ja(),si.LeftSide=ru=Mo(new si(0,0,1,2),1).ja(),si.RightSide=ea=Mo(new si(0,0,1,4),1).ja(),si.BottomSide=ba=Mo(new si(0,0,1,8),1).ja(),si.TopBottomSides=dh=Mo(new si(0,0,1,9),1).ja(),si.LeftRightSides=oc=Mo(new si(0,0,1,6),1).ja(),si.TopLeftSides=fh=Mo(new si(0,0,1,3),1).ja(),si.TopRightSides=Gc=Mo(new si(0,0,1,5),1).ja(),si.BottomLeftSides=gh=Mo(new si(0,0,1,10),1).ja(),si.BottomRightSides=ph=Mo(new si(0,0,1,12),1).ja(),si.NotTopSide=Rl=Mo(new si(0,0,1,14),1).ja(),si.NotLeftSide=ja=Mo(new si(0,0,1,13),1).ja(),si.NotRightSide=sc=Mo(new si(0,0,1,11),1).ja(),si.NotBottomSide=mh=Mo(new si(0,0,1,7),1).ja(),si.AllSides=vh=Mo(new si(0,0,1,15),1).ja(),bl=new si(.156,.156).ja(),za=new si(.844,.844).ja(),si.parse=Bd,si.stringify=Rd;function Vi(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}Vi.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},Vi.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},Vi.prototype.copy=function(){var a=new Vi;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},Vi.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},Vi.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},Vi.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},Vi.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},Vi.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},Vi.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,nt=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*nt+this.m21*a+this.dx,this.dy=this.m12*nt+this.m22*a+this.dy,this.m11=y,this.m12=x,this.m21=b,this.m22=E,this},Vi.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},Vi.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,nt=this.m12*-b+this.m22*a;return this.m11=this.m11*a+this.m21*b,this.m12=E,this.m21=z,this.m22=nt,this.translate(-y,-x),this},ne=Vi.prototype,ne.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},ne.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},ne.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)},ne.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))},ne.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))},ne.pp=function(a){var y=a.x,x=a.y,b=y+a.width,E=x+a.height,z=this.m11,nt=this.m12,ot=this.m21,at=this.m22,ht=this.dx,dt=this.dy,Et=y*z+x*ot+ht,Ht=y*nt+x*at+dt,Jt=b*z+x*ot+ht,ee=b*nt+x*at+dt;return x=y*z+E*ot+ht,y=y*nt+E*at+dt,z=b*z+E*ot+ht,b=b*nt+E*at+dt,E=Math.min(Et,Jt),Et=Math.max(Et,Jt),Jt=Math.min(Ht,ee),Ht=Math.max(Ht,ee),E=Math.min(E,x),Et=Math.max(Et,x),Jt=Math.min(Jt,y),Ht=Math.max(Ht,y),E=Math.min(E,z),Et=Math.max(Et,z),Jt=Math.min(Jt,b),Ht=Math.max(Ht,b),a.h(E,Jt,Et-E,Ht-Jt),a},Vi.alloc=function(){var a=qf.pop();return a===void 0?new Vi:a},Vi.free=function(a){qf.push(a)},Vi.prototype.transformRect=Vi.prototype.pp,Vi.prototype.transformPoint=Vi.prototype.Ga,Vi.prototype.scale=Vi.prototype.scale,Vi.prototype.translate=Vi.prototype.translate,Vi.prototype.rotate=Vi.prototype.rotate,Vi.prototype.invert=Vi.prototype.Vj,Vi.prototype.multiplyInverted=Vi.prototype.bv,Vi.prototype.multiply=Vi.prototype.multiply,Vi.prototype.reset=Vi.prototype.reset,Vi.prototype.isIdentity=Vi.prototype.ws,Vi.prototype.equals=Vi.prototype.D,Vi.prototype.setTransform=Vi.prototype.setTransform,Vi.prototype.set=Vi.prototype.set;var qf=[];Vi.className="Transform",Vi.xF="54a702f3e53909c447824c6706603faf4c";var Je={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=Je.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);Je.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,nt){if(0>=E&&(E=1e-6),a<x)var ot=a,at=x;else ot=x,at=a;if(y<b)var ht=y,dt=b;else ht=b,dt=y;if(a===x)return ht<=nt&&nt<=dt&&a-E<=z&&z<=a+E;if(y===b)return ot<=z&&z<=at&&y-E<=nt&&nt<=y+E;if(at+=E,ot-=E,ot<=z&&z<=at&&(dt+=E,ht-=E,ht<=nt&&nt<=dt))if(at-ot>dt-ht)if(a-x>E||x-a>E){if(z=(b-y)/(x-a)*(z-a)+y,z-E<=nt&&nt<=z+E)return!0}else return!0;else if(y-b>E||b-y>E){if(nt=(x-a)/(b-y)*(nt-y)+a,nt-E<=z&&z<=nt+E)return!0}else return!0;return!1},cs:function(a,y,x,b,E,z,nt,ot,at,ht,dt,Et){if(Je.Yb(a,y,nt,ot,Et,x,b)&&Je.Yb(a,y,nt,ot,Et,E,z))return Je.Yb(a,y,nt,ot,Et,ht,dt);var Ht=(a+x)/2,Jt=(y+b)/2,ee=(x+E)/2,se=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(Ht+ee)/2,x=(Jt+se)/2,ee=(ee+E)/2,se=(se+z)/2;var Ce=(b+ee)/2,ve=(x+se)/2;return Je.cs(a,y,Ht,Jt,b,x,Ce,ve,at,ht,dt,Et)||Je.cs(Ce,ve,ee,se,E,z,nt,ot,at,ht,dt,Et)},ax:function(a,y,x,b,E,z,nt,ot,at){var ht=(x+E)/2,dt=(b+z)/2;return at.h((((a+x)/2+ht)/2+(ht+(E+nt)/2)/2)/2,(((y+b)/2+dt)/2+(dt+(z+ot)/2)/2)/2),at},My:function(a,y,x,b,E,z,nt,ot){var at=(x+E)/2,ht=(b+z)/2;return Pi(((a+x)/2+at)/2,((y+b)/2+ht)/2,(at+(E+nt)/2)/2,(ht+(z+ot)/2)/2)},Dl:function(a,y,x,b,E,z,nt,ot,at,ht){if(Je.Yb(a,y,nt,ot,at,x,b)&&Je.Yb(a,y,nt,ot,at,E,z))Ji(ht,a,y,0,0),Ji(ht,nt,ot,0,0);else{var dt=(a+x)/2,Et=(y+b)/2,Ht=(x+E)/2,Jt=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(dt+Ht)/2,x=(Et+Jt)/2,Ht=(Ht+E)/2,Jt=(Jt+z)/2;var ee=(b+Ht)/2,se=(x+Jt)/2;Je.Dl(a,y,dt,Et,b,x,ee,se,at,ht),Je.Dl(ee,se,Ht,Jt,E,z,nt,ot,at,ht)}return ht},Qe:function(a,y,x,b,E,z,nt,ot,at,ht){if(Je.Yb(a,y,nt,ot,at,x,b)&&Je.Yb(a,y,nt,ot,at,E,z))ht.length===0&&(ht.push(a),ht.push(y)),ht.push(nt),ht.push(ot);else{var dt=(a+x)/2,Et=(y+b)/2,Ht=(x+E)/2,Jt=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(dt+Ht)/2,x=(Et+Jt)/2,Ht=(Ht+E)/2,Jt=(Jt+z)/2;var ee=(b+Ht)/2,se=(x+Jt)/2;Je.Qe(a,y,dt,Et,b,x,ee,se,at,ht),Je.Qe(ee,se,Ht,Jt,E,z,nt,ot,at,ht)}return ht},jv:function(a,y,x,b,E,z,nt,ot,at,ht){if(Je.Yb(a,y,E,z,ht,x,b))return Je.Yb(a,y,E,z,ht,ot,at);var dt=(a+x)/2,Et=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var Ht=(dt+x)/2,Jt=(Et+b)/2;return Je.jv(a,y,dt,Et,Ht,Jt,nt,ot,at,ht)||Je.jv(Ht,Jt,x,b,E,z,nt,ot,at,ht)},OA:function(a,y,x,b,E,z,nt){return nt.h(((a+x)/2+(x+E)/2)/2,((y+b)/2+(b+z)/2)/2),nt},iv:function(a,y,x,b,E,z,nt,ot){if(Je.Yb(a,y,E,z,nt,x,b))Ji(ot,a,y,0,0),Ji(ot,E,z,0,0);else{var at=(a+x)/2,ht=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var dt=(at+x)/2,Et=(ht+b)/2;Je.iv(a,y,at,ht,dt,Et,nt,ot),Je.iv(dt,Et,x,b,E,z,nt,ot)}return ot},ep:function(a,y,x,b,E,z,nt,ot){if(Je.Yb(a,y,E,z,nt,x,b))ot.length===0&&(ot.push(a),ot.push(y)),ot.push(E),ot.push(z);else{var at=(a+x)/2,ht=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var dt=(at+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at*Et-ht*dt))/Ht;if(ee>=dt)return Jt;if((at>dt?at-dt:dt-at)<(ht>Et?ht-Et:Et-ht)){if(y<ot?(at=y,a=ot):(at=ot,a=y),se<at||se>a)return Jt}else if(a<nt?(at=a,a=nt):at=nt,ee<at||ee>a)return Jt;0<Ht?Jt++:0>Ht&&Jt--}else{ee=(a+x)/2,se=(y+b)/2;var Ce=(x+E)/2,ve=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(ee+Ce)/2,x=(se+ve)/2,Ce=(Ce+E)/2,ve=(ve+z)/2;var Ae=(b+Ce)/2,Ie=(x+ve)/2;Jt+=Je.Fo(a,y,ee,se,b,x,Ae,Ie,at,ht,dt,Et,Ht),Jt+=Je.Fo(Ae,Ie,Ce,ve,E,z,nt,ot,at,ht,dt,Et,Ht)}return Jt},qh:function(a,y,x,b,E,z,nt){return Je.$(a,x)?(y<b?(x=y,y=b):x=b,z<x?(nt.h(a,x),!1):z>y?(nt.h(a,y),!1):(nt.h(a,z),!0)):Je.$(y,b)?(a<x?(b=a,a=x):b=x,E<b?(nt.h(b,y),!1):E>a?(nt.h(a,y),!1):(nt.h(E,y),!0)):(E=((a-E)*(a-x)+(y-z)*(y-b))/((x-a)*(x-a)+(b-y)*(b-y)),-5e-6>E?(nt.h(a,y),!1):1.000005<E?(nt.h(x,b),!1):(nt.h(a+E*(x-a),y+E*(b-y)),!0))},Ve:function(a,y,x,b,E,z,nt,ot,at){return Je.B(a,x)&&Je.B(y,b)?(at.h(a,y),!1):Je.$(E,nt)?Je.$(a,x)?(Je.qh(a,y,x,b,E,z,at),!1):Je.qh(a,y,x,b,E,(b-y)/(x-a)*(E-a)+y,at):(ot=(ot-z)/(nt-E),Je.$(a,x)?(x=ot*(a-E)+z,y<b?(E=y,y=b):E=b,x<E?(at.h(a,E),!1):x>y?(at.h(a,y),!1):(at.h(a,x),!0)):(nt=(b-y)/(x-a),Je.$(ot,nt)?(Je.qh(a,y,x,b,E,z,at),!1):(E=(nt*a-ot*E+z-y)/(nt-ot),Je.$(nt,0)?(a<x?(b=a,a=x):b=x,E<b?(at.h(b,y),!1):E>a?(at.h(a,y),!1):(at.h(E,y),!0)):Je.qh(a,y,x,b,E,nt*(E-a)+y,at))))},MA:function(a,y,x,b,E){return Je.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,nt,ot,at,ht){function dt(Ce,ve){var Ae=(Ce-a)*(Ce-a)+(ve-y)*(ve-y);Ae<Et&&(Et=Ae,at.h(Ce,ve))}var Et=1/0;dt(at.x,at.y);var Ht=0,Jt=0,ee=0,se=0;if(E<nt?(Ht=E,Jt=nt):(Ht=nt,Jt=E),z<ot?(ee=E,se=nt):(ee=nt,se=E),Ht=(Jt-Ht)/2+ht,ht=(se-ee)/2+ht,E=(E+nt)/2,z=(z+ot)/2,Ht===0||ht===0)return at;if(.5>(x>a?x-a:a-x)){if(Ht=1-(x-E)*(x-E)/(Ht*Ht),0>Ht)return at;Ht=Math.sqrt(Ht),b=-ht*Ht+z,dt(x,ht*Ht+z),dt(x,b)}else{if(x=(b-y)/(x-a),b=1/(Ht*Ht)+x*x/(ht*ht),ot=2*x*(y-x*a)/(ht*ht)-2*x*z/(ht*ht)-2*E/(Ht*Ht),Ht=ot*ot-4*b*(2*x*a*z/(ht*ht)-2*y*z/(ht*ht)+z*z/(ht*ht)+E*E/(Ht*Ht)-1+(y-x*a)*(y-x*a)/(ht*ht)),0>Ht)return at;Ht=Math.sqrt(Ht),ht=(-ot+Ht)/(2*b),dt(ht,x*ht-x*a+y),Ht=(-ot-Ht)/(2*b),dt(Ht,x*Ht-x*a+y)}return at},Ff:function(a,y,x,b,E,z,nt,ot,at){var ht=1e21,dt=a,Et=y;if(Je.Ve(a,y,a,b,E,z,nt,ot,at)){var Ht=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z);Ht<ht&&(ht=Ht,dt=at.x,Et=at.y)}return Je.Ve(x,y,x,b,E,z,nt,ot,at)&&(Ht=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z),Ht<ht&&(ht=Ht,dt=at.x,Et=at.y)),Je.Ve(a,y,x,y,E,z,nt,ot,at)&&(y=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z),y<ht&&(ht=y,dt=at.x,Et=at.y)),Je.Ve(a,b,x,b,E,z,nt,ot,at)&&(a=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z),a<ht&&(ht=a,dt=at.x,Et=at.y)),at.h(dt,Et),1e21>ht},us:function(a,y,x){return Je.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,nt,ot){var at=a+x,ht=y+b;return E===nt?(z<ot?(nt=z,z=ot):nt=ot,a<=E&&E<=at&&nt<=ht&&z>=y):z===ot?(E<nt?(ot=E,E=nt):ot=nt,y<=z&&z<=ht&&ot<=at&&E>=a):!!($i(a,y,x,b,E,z)||$i(a,y,x,b,nt,ot)||Je.Rl(a,y,at,y,E,z,nt,ot)||Je.Rl(at,y,at,ht,E,z,nt,ot)||Je.Rl(at,ht,a,ht,E,z,nt,ot)||Je.Rl(a,ht,a,y,E,z,nt,ot))},Rl:function(a,y,x,b,E,z,nt,ot){return a===x&&y===b&&E===nt&&z===ot?a===E&&y===z:0>=Je.Fl(a,y,x,b,E,z)*Je.Fl(a,y,x,b,nt,ot)&&0>=Je.Fl(E,z,nt,ot,a,y)*Je.Fl(E,z,nt,ot,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 nt=Math.PI;z||(b*=nt/180,E*=nt/180);var ot=b>E?-1:1;z=[];var at=nt/2,ht=b;if(b=Math.min(2*nt,Math.abs(E-b)),1e-5>b)return at=ht+ot*Math.min(b,at),ot=a+x*Math.cos(ht),ht=y+x*Math.sin(ht),a+=x*Math.cos(at),y+=x*Math.sin(at),x=(ot+a)/2,at=(ht+y)/2,z.push([ot,ht,x,at,x,at,a,y]),z;for(;1e-5<b;)E=ht+ot*Math.min(b,at),z.push(Je.Vy(x,ht,E,a,y)),b-=Math.abs(E-ht),ht=E;return z},Vy:function(a,y,x,b,E){var z=(x-y)/2,nt=a*Math.cos(z),ot=a*Math.sin(z),at=-ot,ht=nt*nt+at*at,dt=ht+nt*nt+at*ot;return ht=4/3*(Math.sqrt(2*ht*dt)-dt)/(nt*ot-at*nt),ot=nt-ht*at,nt=at+ht*nt,at=-nt,ht=z+y,z=Math.cos(ht),ht=Math.sin(ht),[b+a*Math.cos(y),E+a*Math.sin(y),b+ot*z-nt*ht,E+ot*ht+nt*z,b+ot*z-at*ht,E+ot*ht+at*z,b+a*Math.cos(x),E+a*Math.sin(x)]},No:function(a,y,x,b,E,z,nt){x=Math.floor((a-x)/E)*E+x,b=Math.floor((y-b)/z)*z+b;var ot=x;return x+E-a<E/2&&(ot=x+E),a=b,b+z-y<z/2&&(a=b+z),nt.h(ot,a),nt},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 nt=1,ot=0;else nt=0,ot=1;var at=nt===0?a:y,ht=nt===0?x:b;return(nt===0?E:z)&&(ht=-ht),nt=ot,x=nt===0?x:b,(nt===0?E:z)&&(x=-x),Je.az(at,nt===0?a:y,ht,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 nt=y*b,ot=-z+nt,at=-z+Math.sqrt(a*a+nt*nt);y=ot;for(var ht=0;9999999999>ht&&(y=.5*(ot+at),!(y===ot||y===at));++ht){var dt=a/(y+E),Et=nt/(y+z);if(dt=dt*dt+Et*Et-1,0<dt)ot=y;else if(0>dt)at=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 hi,um:new hi,Mf:new hi,Nf:0,vm:100};Je.za=Je.AA;function Un(a){Oi(this),this.l=2,a===void 0&&(a=Un.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Un.o?this.ee=new bn:(Un.V===null&&(Un.V=new bn().freeze()),this.ee=Un.V),this.aq=this.ee.Ja,this.Ip=new yn().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=No,this.gg=ta,this.Rk=this.Sk=NaN,this.Uf=Dn}Un.prototype.copy=function(){var a=new Un;if(a.l=this.l&-2,a.na=this.na,a.od=this.od,a.pd=this.pd,a.Dc=this.Dc,a.Ec=this.Ec,this.na===Un.o){for(var y=this.ee.s,x=a.ee,b=0;b<y.length;b++)x.add(y[b].copy());a.ee=x}else a.ee=this.ee;return a.aq=this.aq,a.Ip.assign(this.Ip),a.tk=this.tk,a.ym=this.ym,a.zm=this.zm,a.fg=this.fg.J(),a.gg=this.gg.J(),a.Sk=this.Sk,a.Rk=this.Rk,a.Uf=this.Uf,a},Un.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Un.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Un.o)return this;var a=this.figures;a.freeze(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].freeze();return this},Un.prototype.ka=function(){if(Object.isFrozen(this)&&Pe("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Un.o)return this;var a=this.figures;a.ka(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].ka();return this},Un.prototype.Xa=function(a){if(!(a instanceof Un))return!1;if(this.type!==a.type)return this.type===Un.j&&a.type===Un.o?Ip(this,a):a.type===Un.j&&this.type===Un.o?Ip(a,this):!1;if(this.type===Un.o){var y=this.figures.s;a=a.figures.s;var x=y.length;if(x!==a.length)return!1;for(var b=0;b<x;b++)if(!y[b].Xa(a[b]))return!1;return!0}return Je.B(this.startX,a.startX)&&Je.B(this.startY,a.startY)&&Je.B(this.endX,a.endX)&&Je.B(this.endY,a.endY)};function Ip(a,y){return a.type!==Un.j||y.type!==Un.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&Je.B(a.startX,y.startX)&&Je.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===jr&&Je.B(a.endX,y.endX)&&Je.B(a.endY,y.endY))))}Un.ia=function(a){return a.toString()},Un.prototype.qb=function(a){a.classType===Un&&(this.type=a)},Un.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Un.j:return 0>a?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a)+"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);case Un.u:var y=new yn(this.startX,this.startY,0,0);return y.Kv(this.endX,this.endY,0,0),0>a?"M"+y.x.toString()+" "+y.y.toString()+"H"+y.right.toString()+"V"+y.bottom.toString()+"H"+y.left.toString()+"z":"M"+y.x.toFixed(a)+" "+y.y.toFixed(a)+"H"+y.right.toFixed(a)+"V"+y.bottom.toFixed(a)+"H"+y.left.toFixed(a)+"z";case Un.F:if(y=new yn(this.startX,this.startY,0,0),y.Kv(this.endX,this.endY,0,0),0>a)return a=y.left.toString()+" "+(y.y+y.height/2).toString(),"M"+a+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+(y.right.toString()+" "+(y.y+y.height/2).toString())+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+a;var x=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+x+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+(y.right.toFixed(a)+" "+(y.y+y.height/2).toFixed(a))+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+x;case Un.o:y="",x=this.figures.s;for(var b=x.length,E=0;E<b;E++){var z=x[E];0<E&&(y+=" x "),z.isFilled&&(y+="F "),y+=z.toString(a)}return y;default:return this.type.toString()}},Un.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,x="",b=0;b<y;b++){var E=a[b];x=E.match(/[Ff]/)!==null?b===0?x+E:x+("X"+(E[0]===" "?"":" ")+E):x+((b===0?"":"X ")+"F"+(E[0]===" "?"":" ")+E)}return x},Un.parse=function(a,y){function x(){return se>=Be-1?!0:ht[se+1].match(Ve)!==null}function b(){return se++,ht[se]}function E(ki){var Ei=parseFloat(b()),mr=parseFloat(b());Ce===Ce.toLowerCase()&&(Ei=Ie.x+Ei,mr=Ie.y+mr),ki.h(Ei,mr)}function z(){return E(Ie),Ie}function nt(){return E(Ae),Ae}function ot(){var ki=ve.toLowerCase();return ki!=="c"&&ki!=="s"&&ki!=="q"&&ki!=="t"?Ie:new Se(2*Ie.x-Ae.x,2*Ie.y-Ae.y)}y===void 0&&(y=!1);var at=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(at,"$1 $2"),a=a.replace(at,"$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 ht=a.split(" ");for(a=0;a<ht.length;a++){var dt=ht[a];if(dt.match(/(\.[0-9]*)(\.)/gm)!==null){at=sn();for(var Et="",Ht=!1,Jt=0;Jt<dt.length;Jt++){var ee=dt[Jt];ee!=="."||Ht?ee==="."?(at.push(Et),Et="."):Et+=ee:(Ht=!0,Et+=ee)}for(at.push(Et),ht.splice(a,1),dt=0;dt<at.length;dt++)ht.splice(a+dt,0,at[dt]);a+=at.length-1,xn(at)}}var se=-1,Ce="",ve="";at=new Se(0,0);var Ae=new Se(0,0),Ie=new Se(0,0),Be=ht.length;a=N1(null),Ht=Et=dt=!1,Jt=!0,ee=null;for(var Ve=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(se>=Be-1);)if(ve=Ce,Ce=b(),Ce!=="")switch(Ce.toUpperCase()){case"X":Jt=!0,Et=dt=!1;break;case"M":for(ee=z(),a.mc===null||Jt===!0?(Ef(a,ee.x,ee.y,dt,!Et,Ht),Jt=!1):a.moveTo(ee.x,ee.y),at.assign(Ie);!x();)ee=z(),a.lineTo(ee.x,ee.y);break;case"L":for(;!x();)ee=z(),a.lineTo(ee.x,ee.y);break;case"H":for(;!x();)Ie=new Se((Ce===Ce.toLowerCase()?Ie.x:0)+parseFloat(b()),Ie.y),a.lineTo(Ie.x,Ie.y);break;case"V":for(;!x();)Ie=new Se(Ie.x,(Ce===Ce.toLowerCase()?Ie.y:0)+parseFloat(b())),a.lineTo(Ie.x,Ie.y);break;case"C":for(;!x();){ee=new Se,E(ee);var rn=nt(),Kn=z();Xu(a,ee.x,ee.y,rn.x,rn.y,Kn.x,Kn.y)}break;case"S":for(;!x();)ee=ot(),rn=nt(),Kn=z(),Xu(a,ee.x,ee.y,rn.x,rn.y,Kn.x,Kn.y);break;case"Q":for(;!x();)ee=nt(),rn=z(),Rm(a,ee.x,ee.y,rn.x,rn.y);break;case"T":for(;!x();)Ae=ee=ot(),rn=z(),Rm(a,ee.x,ee.y,rn.x,rn.y);break;case"B":for(;!x();){ee=parseFloat(b()),rn=parseFloat(b()),Kn=parseFloat(b());var $n=parseFloat(b()),Yn=parseFloat(b()),jn=Yn,An=!1;x()||(jn=parseFloat(b()),x()||(An=parseFloat(b())!==0)),Ce===Ce.toLowerCase()&&(Kn+=Ie.x,$n+=Ie.y),a.arcTo(ee,rn,Kn,$n,Yn,jn,An)}break;case"A":for(;!x();)ee=Math.abs(parseFloat(b())),rn=Math.abs(parseFloat(b())),Kn=parseFloat(b()),Yn=$n=!1,An=jn=0,jn=b(),jn.length===1?($n=!!parseFloat(jn),Yn=!!parseFloat(b()),jn=parseFloat(b())):jn.length===2?($n=!!parseFloat(jn[0]),Yn=!!parseFloat(jn[1]),jn=parseFloat(b())):($n=!!parseFloat(jn[0]),Yn=!!parseFloat(jn[1]),jn=parseFloat(jn.slice(2))),An=parseFloat(b()),Ce===Ce.toLowerCase()&&(jn=Ie.x+jn,An=Ie.y+An),Ie.h(jn,An),bx(a,ee,rn,Kn,$n,Yn,jn,An);break;case"Z":Px(a),Ie.assign(at);break;case"F":for(ee="",rn=1;ht[se+rn];)if(ht[se+rn]==="0")Ht=!0,rn++;else if(ht[se+rn].match(/[Uu]/)!==null)rn++;else if(ht[se+rn].match(Ve)===null)rn++;else{ee=ht[se+rn];break}ee.match(/[Mm]/)?dt=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(ee="",rn=1;ht[se+rn];)if(ht[se+rn].match(/[Ff]/)!==null)rn++;else if(ht[se+rn].match(Ve)===null)rn++;else{ee=ht[se+rn];break}ee.match(/[Mm]/)?Et=!0:a.mc.isShadowed=!1}if(at=a.os,jm=a,y)for(y=at.figures.iterator;y.next();)y.value.isFilled=!0;return at},Un.Ha=function(a,y){for(var x=a.length,b=Se.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}Se.free(b)},Un.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Un.o){if(this.aq!==this.figures.Ja)return!0;for(var a=this.figures.s,y=a.length,x=0;x<y;x++)if(a[x].Zu())return!0}return!1},Un.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Un.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,x=0;x<y;x++){var b=a[x];b._isInvalidBounds=!1;var E=b.segments;b.sr=E.Ja,b=E.s,E=b.length;for(var z=0;z<E;z++){var nt=b[z];nt._isInvalidBounds=!1,nt.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),Dp(this,a,!1),Ji(a,0,0,0,0),a.freeze()},Un.prototype.ix=function(){var a=new yn;return Dp(this,a,!0),a};function Dp(a,y,x){switch(a.type){case Un.j:case Un.u:case Un.F:x?y.h(a.od,a.pd,0,0):Ji(y,a.od,a.pd,0,0),Ji(y,a.Dc,a.Ec,0,0);break;case Un.o:var b=a.figures;a=b.s,b=b.length;for(var E=0;E<b;E++){var z=a[E];x&&E===0?y.h(z.startX,z.startY,0,0):Ji(y,z.startX,z.startY,0,0);for(var nt=z.segments.s,ot=nt.length,at=z.startX,ht=z.startY,dt=0;dt<ot;dt++){var Et=nt[dt];switch(Et.type){case jr:case Do:at=Et.endX,ht=Et.endY,Ji(y,at,ht,0,0);break;case $o:Je.Dl(at,ht,Et.point1X,Et.point1Y,Et.point2X,Et.point2Y,Et.endX,Et.endY,.5,y),at=Et.endX,ht=Et.endY;break;case da:Je.iv(at,ht,Et.point1X,Et.point1Y,Et.endX,Et.endY,.5,y),at=Et.endX,ht=Et.endY;break;case yo:case Ca:var Ht=Et.type===yo?na(Et,z):Ha(Et,z,at,ht),Jt=Ht.length;if(Jt===0){at=Et.type===yo?Et.centerX:Et.endX,ht=Et.type===yo?Et.centerY:Et.endY,Ji(y,at,ht,0,0);break}Et=null;for(var ee=0;ee<Jt;ee++)Et=Ht[ee],Je.Dl(Et[0],Et[1],Et[2],Et[3],Et[4],Et[5],Et[6],Et[7],.5,y);Et!==null&&(at=Et[6],ht=Et[7]);break;default:Pe("Unknown Segment type: "+Et.type)}}}break;default:Pe("Unknown Geometry type: "+a.type)}}Un.prototype.normalize=function(){this._isFrozen&&We(this);var a=this.ix();return this.offset(-a.x,-a.y),new Se(-a.x,-a.y)},Un.prototype.offset=function(a,y){return this._isFrozen&&We(this),this.transform(1,0,0,1,a,y),this},Un.prototype.scale=function(a,y){return this._isFrozen&&We(this),this.transform(a,0,0,y,0,0),this},Un.prototype.rotate=function(a,y,x){this._isFrozen&&We(this),y===void 0&&(y=0),x===void 0&&(x=0);var b=Vi.alloc();return b.reset(),b.rotate(a,y,x),this.transform(b.m11,b.m12,b.m21,b.m22,b.dx,b.dy),Vi.free(b),this},ne=Un.prototype,ne.transform=function(a,y,x,b,E,z){switch(this.type){case Un.j:case Un.u:case Un.F:var nt=this.od,ot=this.pd;this.od=nt*a+ot*x+E,this.pd=nt*y+ot*b+z,nt=this.Dc,ot=this.Ec,this.Dc=nt*a+ot*x+E,this.Ec=nt*y+ot*b+z;break;case Un.o:for(var at=this.figures.s,ht=at.length,dt=0;dt<ht;dt++){var Et=at[dt];nt=Et.startX,ot=Et.startY,Et.startX=nt*a+ot*x+E,Et.startY=nt*y+ot*b+z,Et=Et.segments.s;for(var Ht=Et.length,Jt=0;Jt<Ht;Jt++){var ee=Et[Jt];switch(ee.type){case jr:case Do:nt=ee.endX,ot=ee.endY,ee.endX=nt*a+ot*x+E,ee.endY=nt*y+ot*b+z;break;case $o:nt=ee.point1X,ot=ee.point1Y,ee.point1X=nt*a+ot*x+E,ee.point1Y=nt*y+ot*b+z,nt=ee.point2X,ot=ee.point2Y,ee.point2X=nt*a+ot*x+E,ee.point2Y=nt*y+ot*b+z,nt=ee.endX,ot=ee.endY,ee.endX=nt*a+ot*x+E,ee.endY=nt*y+ot*b+z;break;case da:nt=ee.point1X,ot=ee.point1Y,ee.point1X=nt*a+ot*x+E,ee.point1Y=nt*y+ot*b+z,nt=ee.endX,ot=ee.endY,ee.endX=nt*a+ot*x+E,ee.endY=nt*y+ot*b+z;break;case yo:nt=ee.centerX,ot=ee.centerY,ee.centerX=nt*a+ot*x+E,ee.centerY=nt*y+ot*b+z,y!==0&&(nt=180*Math.atan2(y,a)/Math.PI,0>nt&&(nt+=360),ee.startAngle+=nt),0>a&&(ee.startAngle=180-ee.startAngle,ee.sweepAngle=-ee.sweepAngle),0>b&&(ee.startAngle=-ee.startAngle,ee.sweepAngle=-ee.sweepAngle),ee.radiusX*=Math.sqrt(a*a+x*x),ee.radiusY!==void 0&&(ee.radiusY*=Math.sqrt(y*y+b*b));break;case Ca:if(nt=ee.endX,ot=ee.endY,ee.endX=nt*a+ot*x+E,ee.endY=nt*y+ot*b+z,ee.radiusX===0||ee.radiusY===0)break;y!==0&&(nt=180*Math.atan2(y,a)/Math.PI,0>nt&&(nt+=360),ee.xAxisRotation+=nt),0>a&&(ee.xAxisRotation=180-ee.xAxisRotation,ee.isClockwiseArc=!ee.isClockwiseArc),0>b&&(ee.xAxisRotation=-ee.xAxisRotation,ee.isClockwiseArc=!ee.isClockwiseArc),ee.radiusX*=Math.sqrt(a*a+x*x),ee.radiusY*=Math.sqrt(y*y+b*b);break;default:Pe("Unknown Segment type: "+ee.type)}}}}return this._isInvalidBounds=!0,this},ne.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 Un.j:return Je.Yb(x,b,E,z,y,a.x,a.y);case Un.u:var nt=yn.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=nt.ca(a),yn.free(nt),a;case Un.F:nt=Math.min(x,E)-y;var ot=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:(nt=a.x-(nt+x),ot=a.y-(ot+y),1>=nt*nt/(x*x)+ot*ot/(y*y));case Un.o:return ou(this,a,y,!0,!1);default:return!1}};function ou(a,y,x,b,E){var z=y.x;y=y.y;for(var nt=a.bounds.x-20,ot=0,at,ht,dt,Et,Ht=a.figures.s,Jt=Ht.length,ee=0;ee<Jt;ee++){var se=Ht[ee],Ce=!se.isEvenOdd;if(se.isFilled){if(b&&se.ca(z,y,x))return!0;var ve=se.segments;at=se.startX,ht=se.startY;for(var Ae=at,Ie=ht,Be=ve.s,Ve=0;Ve<=ve.length;Ve++){var rn=void 0;if(Ve!==ve.length){rn=Be[Ve];var Kn=rn.type;a=rn.endX,Et=rn.endY}else Kn=jr,a=Ae,Et=Ie;switch(Kn){case Do:if(Ae=su(z,y,nt,y,at,ht,Ae,Ie),isNaN(Ae))return!0;ot+=Ae,Ae=a,Ie=Et;break;case jr:if(at=su(z,y,nt,y,at,ht,a,Et),isNaN(at))return!0;ot+=at;break;case $o:dt=Je.Fo(at,ht,rn.point1X,rn.point1Y,rn.point2X,rn.point2Y,a,Et,nt,y,z,y,.5),ot+=dt;break;case da:dt=Je.Fo(at,ht,(at+2*rn.point1X)/3,(ht+2*rn.point1Y)/3,(2*rn.point1X+a)/3,(2*rn.point1Y+Et)/3,a,Et,nt,y,z,y,.5),ot+=dt;break;case yo:case Ca:Kn=rn.type===yo?na(rn,se):Ha(rn,se,at,ht);var $n=Kn.length;if($n===0){if(at=su(z,y,nt,y,at,ht,rn.type===yo?rn.centerX:rn.endX,rn.type===yo?rn.centerY:rn.endY),isNaN(at))return!0;ot+=at;break}rn=null;for(var Yn=0;Yn<$n;Yn++){if(rn=Kn[Yn],Yn===0){if(dt=su(z,y,nt,y,at,ht,rn[0],rn[1]),isNaN(dt))return!0;ot+=dt}dt=Je.Fo(rn[0],rn[1],rn[2],rn[3],rn[4],rn[5],rn[6],rn[7],nt,y,z,y,.5),ot+=dt}rn!==null&&(a=rn[6],Et=rn[7]);break;default:Pe("Unknown Segment type: "+rn.type)}at=a,ht=Et}if(Ce){if(ot!==0)return!0}else if(ot%2!==0)return!0;ot=0}else if(se.ca(z,y,E?x:x+2))return!0}return!1}function su(a,y,x,b,E,z,nt,ot){if(Je.Yb(E,z,nt,ot,.05,a,y))return NaN;var at=(a-x)*(z-ot);if(at===0)return 0;var ht=((a*b-y*x)*(E-nt)-(a-x)*(E*ot-z*nt))/at;if(y=(a*b-y*x)*(z-ot)/at,ht>=a)return 0;if((E>nt?E-nt:nt-E)<(z>ot?z-ot:ot-z)){if(z<ot){if(y<z||y>ot)return 0}else if(y<ot||y>z)return 0}else if(E<nt){if(ht<E||ht>nt)return 0}else if(ht<nt||ht>E)return 0;return 0<at?1:-1}function yh(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}ne.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Se),this.type===Un.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,z=this.flattenedTotalLength*a,nt=0,ot=0;ot<E;ot++){var at=b[ot],ht=at.length;for(a=0;a<ht;a++){var dt=at[a];if(nt+dt>=z)return b=z-nt,b=dt===0?0:b/dt,x=x[ot],ot=x[2*a],E=x[2*a+1],y.h(ot+(x[2*a+2]-ot)*b,E+(x[2*a+3]-E)*b),y;nt+=dt}}return y},ne.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===Un.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,x=this.flattenedLengths,b=y.length,E=this.flattenedTotalLength*a,z=0,nt=0;nt<b;nt++){var ot=x[nt],at=ot.length;for(a=0;a<at;a++){var ht=ot[a];if(z+ht>=E)return E=y[nt],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+=ht}}return NaN},ne.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===Un.j)return y[0]=this.startX+a*(this.endX-this.startX),y[1]=this.startY+a*(this.endY-this.startY),y[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,y;for(var x=this.flattenedSegments,b=this.flattenedLengths,E=x.length,z=this.flattenedTotalLength*a,nt=0,ot=0;ot<E;ot++){var at=b[ot],ht=at.length;for(a=0;a<ht;a++){var dt=at[a];if(nt+dt>=z)return b=z-nt,b=dt===0?0:b/dt,dt=x[ot],x=dt[2*a],ot=dt[2*a+1],E=dt[2*a+2],a=dt[2*a+3],y[0]=x+(E-x)*b,y[1]=ot+(a-ot)*b,y[2]=1>Math.abs(E-x)&&1>Math.abs(a-ot)?0:1>Math.abs(E-x)?0<=a-ot?90:270:1>Math.abs(a-ot)?0<=E-x?0:180:180*Math.atan2(a-ot,E-x)/Math.PI,y;nt+=dt}}return y},ne.xx=function(a){if(this.type===Un.j){var y=this.startX,x=this.startY,b=this.endX,E=this.endY;if(y!==b||x!==E){var z=a.x;if(a=a.y,y===b){if(x<E){var nt=x;b=E}else nt=E,b=x;return a<=nt?nt===x?0:1:a>=b?b===x?0:1:Math.abs(a-x)/(b-nt)}if(x===E)return y<b?nt=y:(nt=b,b=y),z<=nt?nt===y?0:1:z>=b?b===y?0:1:Math.abs(z-y)/(b-nt);nt=(b-y)*(b-y)+(E-x)*(E-x);var ot=Se.alloc();return Je.qh(y,x,b,E,z,a,ot),a=ot.x,z=ot.y,Se.free(ot),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/nt)}}else if(this.type===Un.u){nt=this.startX,ot=this.startY;var at=this.endX;if(E=this.endY,nt!==at||ot!==E){y=at-nt,x=E-ot,z=2*y+2*x,b=a.x,a=a.y,b=Math.min(Math.max(b,nt),at),a=Math.min(Math.max(a,ot),E),nt=Math.abs(b-nt),at=Math.abs(b-at),ot=Math.abs(a-ot),E=Math.abs(a-E);var ht=Math.min(nt,at,ot,E);if(ht===ot)return b/z;if(ht===at)return(y+a)/z;if(ht===E)return(2*y+x-b)/z;if(ht===nt)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,b=Se.alloc(),E=1/0,ot=nt=0,at=y.length;for(var dt=ht=0,Et=0;Et<at;Et++)for(var Ht=y[Et],Jt=x[Et],ee=Ht.length,se=0;se<ee;se+=2){var Ce=Ht[se],ve=Ht[se+1];if(se!==0){Je.qh(ht,dt,Ce,ve,a.x,a.y,b);var Ae=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);Ae<E&&(E=Ae,nt=ot,nt+=Math.sqrt((b.x-ht)*(b.x-ht)+(b.y-dt)*(b.y-dt))),ot+=Jt[(se-2)/2]}ht=Ce,dt=ve}return Se.free(b),a=nt/z,0>a?0:1<a?1:a}return 0};function zd(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],b=[],E=[];if(a.type===Un.j)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.endY),y.push(b),E.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),x.push(E);else if(a.type===Un.u)b.push(a.startX),b.push(a.startY),b.push(a.endX),b.push(a.startY),b.push(a.endX),b.push(a.endY),b.push(a.startX),b.push(a.endY),b.push(a.startX),b.push(a.startY),y.push(b),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),E.push(Math.abs(a.startX-a.endX)),E.push(Math.abs(a.startY-a.endY)),x.push(E);else if(a.type===Un.F){var z=new Io;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var nt=new fr(yo);if(nt.startAngle=0,nt.sweepAngle=360,nt.centerX=(a.startX+a.endX)/2,nt.centerY=(a.startY+a.endY)/2,nt.radiusX=Math.abs(a.startX-a.endX)/2,nt.radiusY=Math.abs(a.startY-a.endY)/2,z.add(nt),a=na(nt,z),E=a.length,E===0)b.push(nt.centerX),b.push(nt.centerY);else{nt=z.startX,z=z.startY;for(var ot=0;ot<E;ot++){var at=a[ot];Je.Qe(nt,z,at[2],at[3],at[4],at[5],at[6],at[7],.5,b),nt=at[6],z=at[7]}}y.push(b),x.push(Kc(b))}else for(a=a.figures.iterator;a.next();){E=a.value,b=[],b.push(E.startX),b.push(E.startY),nt=E.startX,z=E.startY,ot=nt,at=z;for(var ht=E.segments.s,dt=ht.length,Et=0;Et<dt;Et++){var Ht=ht[Et];switch(Ht.type){case Do:4<=b.length&&(y.push(b),x.push(Kc(b))),b=[],b.push(Ht.endX),b.push(Ht.endY),nt=Ht.endX,z=Ht.endY,ot=nt,at=z;break;case jr:b.push(Ht.endX),b.push(Ht.endY),nt=Ht.endX,z=Ht.endY;break;case $o:Je.Qe(nt,z,Ht.point1X,Ht.point1Y,Ht.point2X,Ht.point2Y,Ht.endX,Ht.endY,.5,b),nt=Ht.endX,z=Ht.endY;break;case da:Je.ep(nt,z,Ht.point1X,Ht.point1Y,Ht.endX,Ht.endY,.5,b),nt=Ht.endX,z=Ht.endY;break;case yo:var Jt=na(Ht,E),ee=Jt.length;if(ee===0){b.push(Ht.centerX),b.push(Ht.centerY),nt=Ht.centerX,z=Ht.centerY;break}for(var se=0;se<ee;se++){var Ce=Jt[se];Je.Qe(nt,z,Ce[2],Ce[3],Ce[4],Ce[5],Ce[6],Ce[7],.5,b),nt=Ce[6],z=Ce[7]}break;case Ca:if(Jt=Ha(Ht,E,nt,z),ee=Jt.length,se=Ht.endX,Ce=Ht.endY,ee===0){b.push(se),b.push(Ce),nt=se,z=Ce;break}for(se=0;se<ee;se++)Ce=Jt[se],Je.Qe(nt,z,Ce[2],Ce[3],Ce[4],Ce[5],Ce[6],Ce[7],.5,b),nt=Ce[6],z=Ce[7];break;default:Pe("Segment not of valid type: "+Ht.type)}Ht.isClosed&&(b.push(ot),b.push(at))}4<=b.length&&(y.push(b),x.push(Kc(b)))}}}function Kc(a){for(var y=[],x=0,b=0,E=a.length,z=0;z<E;z+=2){var nt=a[z],ot=a[z+1];z!==0&&y.push(Math.sqrt(ar(x,b,nt,ot))),x=nt,b=ot}return y}ne.add=function(a){return this.ee.add(a),this},ne.pm=function(a,y,x,b,E,z,nt,ot){return this._isFrozen&&We(this),this.fg=new si(a,y,E,z).freeze(),this.gg=new si(x,b,nt,ot).freeze(),this},we.Object.defineProperties(Un.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},flattenedSegments:{get:function(){return zd(this),this.tk}},flattenedLengths:{get:function(){return zd(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===Un.j){a=Math.abs(this.endX-this.startX);var y=Math.abs(this.endY-this.startY);a=Math.sqrt(a*a+y*y)}else if(this.type===Un.u)a=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{y=this.flattenedLengths;for(var x=y.length,b=a=0;b<x;b++)for(var E=y[b],z=E.length,nt=0;nt<z;nt++)a+=E[nt]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&We(this,a),this.na=a,a===Un.o?this.ee=new bn:(Un.V===null&&(Un.V=new bn().freeze()),this.ee=Un.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&We(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&We(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&We(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&We(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&We(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&We(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&We(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&We(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Un.prototype.setSpots=Un.prototype.pm,Un.prototype.add=Un.prototype.add,Un.prototype.getFractionForPoint=Un.prototype.xx,Un.prototype.getPointAndAngleAlongPath=Un.prototype.Qu,Un.prototype.getAngleAlongPath=Un.prototype.wx,Un.prototype.getPointAlongPath=Un.prototype.Pu,Un.prototype.containsPoint=Un.prototype.ca,Un.prototype.transform=Un.prototype.transform,Un.prototype.rotate=Un.prototype.rotate,Un.prototype.scale=Un.prototype.scale,Un.prototype.offset=Un.prototype.offset,Un.prototype.normalize=Un.prototype.normalize,Un.prototype.computeBoundsWithoutOrigin=Un.prototype.ix,Un.prototype.equalsApprox=Un.prototype.Xa,Un.className="Geometry",Un.j=new dn(Un,"Line",0),Un.u=new dn(Un,"Rectangle",1),Un.F=new dn(Un,"Ellipse",2),Un.o=new dn(Un,"Path",3),Un.V=null,Un.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Un.className="Geometry",Un.stringify=Un.ia,Un.fillPath=Un.nb,Un.parse=Un.parse,Un.Line=Un.j,Un.Rectangle=Un.u,Un.Ellipse=Un.F,Un.Path=Un.o;function Io(a,y,x,b,E){Oi(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 bn,this.sr=this.pl.Ja,this.fw=null}Io.prototype.copy=function(){var a=new Io;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},ne=Io.prototype,ne.Xa=function(a){if(!(a instanceof Io&&Je.B(this.startX,a.startX)&&Je.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},ne.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},ne.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},ne.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},ne.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},ne.add=function(a){return this.pl.add(a),this},ne.ca=function(a,y,x){for(var b=this.startX,E=this.startY,z=b,nt=E,ot=this.segments.s,at=ot.length,ht=0;ht<at;ht++){var dt=ot[ht];switch(dt.type){case Do:z=dt.endX,nt=dt.endY,b=dt.endX,E=dt.endY;break;case jr:if(Je.Yb(b,E,dt.endX,dt.endY,x,a,y))return!0;b=dt.endX,E=dt.endY;break;case $o:if(Je.cs(b,E,dt.point1X,dt.point1Y,dt.point2X,dt.point2Y,dt.endX,dt.endY,.5,a,y,x))return!0;b=dt.endX,E=dt.endY;break;case da:if(Je.jv(b,E,dt.point1X,dt.point1Y,dt.endX,dt.endY,.5,a,y,x))return!0;b=dt.endX,E=dt.endY;break;case yo:case Ca:var Et=dt.type===yo?na(dt,this):Ha(dt,this,b,E),Ht=Et.length,Jt=dt.type===yo?dt.centerX:dt.endX,ee=dt.type===yo?dt.centerY:dt.endY;if(Ht===0){if(Je.Yb(b,E,Jt,ee,x,a,y))return!0;b=Jt,E=ee;break}for(Jt=null,ee=0;ee<Ht;ee++)if(Jt=Et[ee],ee===0&&Je.Yb(b,E,Jt[0],Jt[1],x,a,y)||Je.cs(Jt[0],Jt[1],Jt[2],Jt[3],Jt[4],Jt[5],Jt[6],Jt[7],.5,a,y,x))return!0;Jt!==null&&(b=Jt[6],E=Jt[7]);break;default:Pe("Unknown Segment type: "+dt.type)}if(dt.isClosed&&(b!==z||E!==nt)&&Je.Yb(b,E,z,nt,x,a,y))return!0}return!1},we.Object.defineProperties(Io.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&&We(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&We(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&We(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&We(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&We(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&We(this,a),this.pl=a,this._isInvalidBounds=!0}}}),Io.prototype.add=Io.prototype.add,Io.prototype.equalsApprox=Io.prototype.Xa,Io.className="PathFigure";function fr(a,y,x,b,E,z,nt,ot){Oi(this),a===void 0&&(a=jr),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),nt===void 0&&(nt=0),a===Ca?(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 nt=="boolean"?nt&&(this.isLargeArc=!0):typeof nt=="number"&&nt&&(this.isLargeArc=!0),ot&&(this.isClockwiseArc=!0)):(this.Ne=b,this.Vh=E,a===yo&&(z=Math.max(z,0)),this.Wh=z,typeof nt=="number"?(a===yo&&(nt=Math.max(nt,0)),this.Pg=nt):this.Pg=0),this.ae=null}fr.prototype.copy=function(){var a=new fr;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},ne=fr.prototype,ne.Xa=function(a){if(!(a instanceof fr)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case Do:case jr:return Je.B(this.endX,a.endX)&&Je.B(this.endY,a.endY);case $o:return Je.B(this.endX,a.endX)&&Je.B(this.endY,a.endY)&&Je.B(this.point1X,a.point1X)&&Je.B(this.point1Y,a.point1Y)&&Je.B(this.point2X,a.point2X)&&Je.B(this.point2Y,a.point2Y);case da:return Je.B(this.endX,a.endX)&&Je.B(this.endY,a.endY)&&Je.B(this.point1X,a.point1X)&&Je.B(this.point1Y,a.point1Y);case yo:return Je.B(this.startAngle,a.startAngle)&&Je.B(this.sweepAngle,a.sweepAngle)&&Je.B(this.centerX,a.centerX)&&Je.B(this.centerY,a.centerY)&&Je.B(this.radiusX,a.radiusX)&&Je.B(this.radiusY,a.radiusY);case Ca:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&Je.B(this.xAxisRotation,a.xAxisRotation)&&Je.B(this.endX,a.endX)&&Je.B(this.endY,a.endY)&&Je.B(this.radiusX,a.radiusX)&&Je.B(this.radiusY,a.radiusY);default:return!1}},ne.qb=function(a){a.classType===fr&&(this.type=a)},ne.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Do:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case jr:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case $o: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 da: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 yo: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 Ca: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":"")},ne.freeze=function(){return this._isFrozen=!0,this},ne.ka=function(){return this._isFrozen=!1,this},ne.close=function(){return this.isClosed=!0,this};function na(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=Je.jx(0,0,x<b?x:b,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==b){var nt=Vi.alloc();nt.reset(),x<b?nt.scale(1,b/x):nt.scale(x/b,1),Un.Ha(z,nt),Vi.free(nt)}for(x=z.length,b=0;b<x;b++)nt=z[b],nt[0]+=y,nt[1]+=E,nt[2]+=y,nt[3]+=E,nt[4]+=y,nt[5]+=E,nt[6]+=y,nt[7]+=E;return a.ae=z,a.ae}function Ha(a,y,x,b){function E(se,Ce,ve,Ae){return(se*Ae<Ce*ve?-1:1)*Math.acos((se*ve+Ce*Ae)/(Math.sqrt(se*se+Ce*Ce)*Math.sqrt(ve*ve+Ae*Ae)))}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 nt=Math.PI/180*a.Ne,ot=a.isLargeArc,at=a.isClockwiseArc,ht=a.Dc,dt=a.Ec,Et=Math.cos(nt),Ht=Math.sin(nt),Jt=Et*(x-ht)/2+Ht*(b-dt)/2;nt=-Ht*(x-ht)/2+Et*(b-dt)/2;var ee=Jt*Jt/(y*y)+nt*nt/(z*z);return 1<ee&&(y*=Math.sqrt(ee),z*=Math.sqrt(ee)),ee=(ot===at?-1:1)*Math.sqrt((y*y*z*z-y*y*nt*nt-z*z*Jt*Jt)/(y*y*nt*nt+z*z*Jt*Jt)),isNaN(ee)&&(ee=0),ot=ee*y*nt/z,ee=ee*-z*Jt/y,isNaN(ot)&&(ot=0),isNaN(ee)&&(ee=0),x=(x+ht)/2+Et*ot-Ht*ee,b=(b+dt)/2+Ht*ot+Et*ee,dt=E(1,0,(Jt-ot)/y,(nt-ee)/z),Et=(Jt-ot)/y,ht=(nt-ee)/z,Jt=(-Jt-ot)/y,ot=(-nt-ee)/z,nt=E(Et,ht,Jt,ot),Jt=(Et*Jt+ht*ot)/(Math.sqrt(Et*Et+ht*ht)*Math.sqrt(Jt*Jt+ot*ot)),-1>=Jt?nt=Math.PI:1<=Jt&&(nt=0),!at&&0<nt&&(nt-=2*Math.PI),at&&0>nt&&(nt+=2*Math.PI),at=y>z?1:y/z,Jt=y>z?z/y:1,y=Je.jx(0,0,y>z?y:z,dt,dt+nt,!0),z=Vi.alloc(),z.reset(),z.translate(x,b),z.rotate(a.Ne,0,0),z.scale(at,Jt),Un.Ha(y,z),Vi.free(z),a.ae=y,a.ae}we.Object.defineProperties(fr.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&&We(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&We(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&We(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&We(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&We(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&We(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&We(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&We(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&We(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&pn(a,">= zero",fr,"radiusX"),this._isFrozen&&We(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&pn(a,">= zero",fr,"radiusY"),this._isFrozen&&We(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&We(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&&We(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&&We(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&&We(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&&We(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),fr.prototype.equalsApprox=fr.prototype.Xa;var Do=new dn(fr,"Move",0),jr=new dn(fr,"Line",1),$o=new dn(fr,"Bezier",2),da=new dn(fr,"QuadraticBezier",3),yo=new dn(fr,"Arc",4),Ca=new dn(fr,"SvgArc",4);fr.className="PathSegment",fr.Move=Do,fr.Line=jr,fr.Bezier=$o,fr.QuadraticBezier=da,fr.Arc=yo,fr.SvgArc=Ca;function hs(){this.H=null,this.xu=new Se(0,0).freeze(),this.mt=new Se(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}hs.prototype.copy=function(){var a=new hs;return this.clone(a)},hs.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},hs.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},hs.prototype.So=function(a,y){var x=this.diagram;return x===null||vg(x,a,y),y},hs.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(vg(x,a,y),y.assign(x.Ps(y))),y},we.Object.defineProperties(hs.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}}}),hs.prototype.getMultiTouchDocumentPoint=hs.prototype.Bz,hs.prototype.getMultiTouchViewPoint=hs.prototype.So,hs.className="InputEvent";function Lu(){this.H=null,this.xa="",this.ar=this.Lr=null}Lu.prototype.copy=function(){var a=new Lu;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Lu.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},we.Object.defineProperties(Lu.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}}}),Lu.className="DiagramEvent";function Yr(){this.Fm=Xr,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Yr.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Yr.prototype.copy=function(){var a=new Yr;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=Ke(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=Ke(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=Ke(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=Ke(y)&&typeof y.J=="function"?y.J():y,a},Yr.prototype.qb=function(a){a.classType===Yr&&(this.change=a)},Yr.prototype.toString=function(){var a="";return a=this.change===ia?a+"* ":this.change===Xr?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===ia?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=Ln(this.object)),this.oldValue!==null&&(a+=" old: "+Ln(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Ln(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Yr.prototype.I=function(a){return a?this.oldValue:this.newValue},Yr.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Yr.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Yr.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Yr.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Yr.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},we.Object.defineProperties(Yr.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===ia&&(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}}}),Yr.prototype.redo=Yr.prototype.redo,Yr.prototype.canRedo=Yr.prototype.canRedo,Yr.prototype.undo=Yr.prototype.undo,Yr.prototype.canUndo=Yr.prototype.canUndo,Yr.prototype.getParam=Yr.prototype.Dz,Yr.prototype.getValue=Yr.prototype.I,Yr.prototype.clear=Yr.prototype.clear;var ia=new dn(Yr,"Transaction",-1),Xr=new dn(Yr,"Property",0),ho=new dn(Yr,"Insert",1),Eo=new dn(Yr,"Remove",2);Yr.className="ChangedEvent",Yr.Transaction=ia,Yr.Property=Xr,Yr.Insert=ho,Yr.Remove=Eo;function zo(){this.o=new bn().freeze(),this.xa="",this.j=!1}zo.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},zo.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()},zo.prototype.canUndo=function(){return this.isComplete},zo.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()}},zo.prototype.canRedo=function(){return this.isComplete},zo.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()}},zo.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new qn,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===Xr&&b.object){var E=y.get(b.object);E||(E=new qn,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()}},we.Object.defineProperties(zo.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}}}),zo.prototype.optimize=zo.prototype.ak,zo.prototype.redo=zo.prototype.redo,zo.prototype.canRedo=zo.prototype.canRedo,zo.prototype.undo=zo.prototype.undo,zo.prototype.canUndo=zo.prototype.canUndo,zo.prototype.clear=zo.prototype.clear,zo.className="Transaction";function _r(){this.Pt=new En,this.Jd=!1,this.u=new bn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new bn().freeze(),this.hl=new bn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}_r.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},_r.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},_r.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},ne=_r.prototype,ne.Xw=function(a){this.Pt.add(a)},ne.Rx=function(a){this.Pt.remove(a)},ne.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},ne.eb=function(a){return a===void 0&&(a=""),Sh(this,!0,a)},ne.Kf=function(){return Sh(this,!1,"")};function Sh(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&On("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 nt=a.Ie.count;0<nt&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(nt-1),a.Ie.freeze()),nt=a.hl.count,0<nt&&(z=a.hl.M(nt-1),a.hl.mb(nt-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}ne.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()}},_r.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},_r.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){On("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},_r.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},_r.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){On("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},_r.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new Yr;for(b.change=ia,b.propertyName=a,b.object=x,b.oldValue=y,a=this.models;a.next();)y=a.value,b.model=y,y.ds(b)},_r.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new zo);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||On("Change not within a transaction: "+x.toString()))}},_r.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},we.Object.defineProperties(_r.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}}}),_r.prototype.handleChanged=_r.prototype.Tu,_r.prototype.redo=_r.prototype.redo,_r.prototype.undo=_r.prototype.undo,_r.prototype.canUndo=_r.prototype.canUndo,_r.prototype.discardHistoryAfterIndex=_r.prototype.lx,_r.prototype.rollbackTransaction=_r.prototype.Kf,_r.prototype.commitTransaction=_r.prototype.eb,_r.prototype.startTransaction=_r.prototype.Ea,_r.prototype.removeModel=_r.prototype.Rx,_r.prototype.addModel=_r.prototype.Xw,_r.prototype.clear=_r.prototype.clear,_r.className="UndoManager";function hr(){Oi(this),this.H=Hl,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new hs,this.Zr=-1}hr.prototype.toString=function(){return this.name!==""?this.name+" Tool":gn(this.constructor)},hr.prototype.updateAdornments=function(){},hr.prototype.canStart=function(){return this.isEnabled},hr.prototype.doStart=function(){},hr.prototype.doActivate=function(){this.isActive=!0},hr.prototype.doDeactivate=function(){this.isActive=!1},hr.prototype.doStop=function(){},hr.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},hr.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},hr.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},hr.prototype.doMouseMove=function(){},hr.prototype.doMouseUp=function(){this.stopTool()},hr.prototype.doMouseWheel=function(){},hr.prototype.canStartMultiTouch=function(){return!0},hr.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Se.allocAt(NaN,NaN)),b=y.So(1,Se.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}Se.free(x),Se.free(b)},hr.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Se.allocAt(NaN,NaN)),b=y.So(1,Se.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 Se((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 nt=a.commandHandler;if(z!==a.scale&&nt.canResetZoom(z)){var ot=a.zoomPoint;a.zoomPoint=E,nt.resetZoom(z),a.zoomPoint=ot}y.bubbles=!1}Se.free(x),Se.free(b)},hr.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},hr.prototype.doKeyUp=function(){},hr.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},hr.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},hr.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(vi?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||(vi?y.meta:y.control)||y.shift||a.clearSelection()}},hr.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,Fp(a,b,x),b.handled};function Fp(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)}}}hr.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,nt=z;for(a.Ck=b,this.doCurrentObjectChanged(z,b),y.handled=!1;z!==null;){var ot=z.mouseLeave;if(ot!==null&&(b===z||b!==null&&b.rg(z)||(ot(y,z,b),E=!0,y.handled)))break;z=z.panel}for(z=nt,y.handled=!1;b!==null&&(nt=b.mouseEnter,!(nt!==null&&(z===b||z!==null&&z.rg(b)||(nt(y,b,z),E=!0,y.handled))));)b=b.panel;b=a.Ck}if(b!==null){for(z=b,nt="";z!==null&&(nt=z.cursor,nt==="");)z=z.panel;for(a.currentCursor=nt,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}},hr.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},hr.prototype.doCurrentObjectChanged=function(){},hr.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===Vc&&!y.shift||E===ac&&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===Vc&&y.shift||E===ac&&!y.control){b=a.position.copy();var z=y.event;E=z.deltaMode;var nt=z.deltaX;z=z.deltaY;var ot="pixel";if(nt===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(ot,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(ot,0<x?"left":"right",Math.abs(x)));else{switch(E){case 0:ot="pixel";break;case 1:ot="line";break;case 2:ot="page"}nt!==0&&a.allowHorizontalScroll&&(nt*=a.scrollHorizontalLineChange/16,a.scroll(ot,0<nt?"right":"left",Math.abs(nt))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(ot,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,b,y)}}},hr.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},hr.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=Nn(function(){x.doWaitAfter(b)},a)},hr.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Le.clearTimeout(this.Zr),this.Zr=-1},hr.prototype.doWaitAfter=function(){},hr.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof cr);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},hr.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},we.Object.defineProperties(hr.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof on&&(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}}}),hr.prototype.startTransaction=hr.prototype.Ea,hr.className="Tool";function Kr(){hr.call(this),this.name="ToolManager",this.hb=new bn,this.ob=new bn,this.Hb=new bn,this.F=this.V=850,this.o=new Wn(2,2).ja(),this.Ha=5e3,this.ia=ac,this.u=Hd,this.Mp=this.j=null,this.zj=-1}Qe(Kr,hr),Kr.prototype.initializeStandardTools=function(){},Kr.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof cr&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Kr.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===au&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===xh){y.bubbles=!0;return}if(this.gestureBehavior===au)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===ac?this.mouseWheelBehavior=Vc:this.mouseWheelBehavior===Vc&&(this.mouseWheelBehavior=ac)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},Kr.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===xh){y.bubbles=!0;return}if(this.gestureBehavior===au)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}}Bp(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Bp(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}Kr.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof cr&&(y===a||y.rg(a))||this.hideToolTip()},Kr.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()))},Kr.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)},Kr.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 cr)||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()},Kr.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof cr){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionToolTip(a,y)}else a instanceof El&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(Le.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=Nn(function(){E.hideToolTip()},a)}},Kr.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}},Kr.prototype.hideToolTip=function(){this.zj!==-1&&(Le.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof cr?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof El&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},Kr.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()},Kr.prototype.doMouseWheel=function(){this.standardMouseWheel()},Kr.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Kr.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Kr.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},Kr.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},Kr.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)},we.Object.defineProperties(Kr.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 cr?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}}}),Kr.prototype.replaceStandardTool=Kr.prototype.gb;var ac=new dn(Kr,"WheelScroll",0),Vc=new dn(Kr,"WheelZoom",1),$f=new dn(Kr,"WheelNone",2),Hd=new dn(Kr,"GestureZoom",3),au=new dn(Kr,"GestureCancel",4),xh=new dn(Kr,"GestureNone",5);Kr.className="ToolManager",Kr.WheelScroll=ac,Kr.WheelZoom=Vc,Kr.WheelNone=$f,Kr.GestureZoom=Hd,Kr.GestureCancel=au,Kr.GestureNone=xh;function Jr(){hr.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 Se(NaN,NaN),this.Fr=new Se,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new En().freeze(),this.ia=new lt,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var jl;Qe(Jr,hr),Jr.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},Jr.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},Jr.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,(vi?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},Jr.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),Yo=null,this.isActive=!0,this.tl.set(a.position),Wd(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&&Bs(a),rf(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Yo=this,Nu=this.diagram,this.doSimulatedDragOut()))};function Wd(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof zn?(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 fa,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}Jr.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},Jr.prototype.Pd=function(a){return a===void 0?new fu(ji):this.isGridSnapEnabled?new fu(new Se(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new fu(a.copy())},Jr.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),wh(this),Ih(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<jl.count){for(var y=jl,x=y.length,b=0;b<x;b++){var E=y.M(b);Au(E),qa(E),wh(E),E.diagram.ug()}y.clear()}Au(this),this.tl.h(NaN,NaN),Nu!==null&&(Nu.currentCursor=""),Yo=Nu=null,qa(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),rd(a,!0)},Jr.prototype.stopTransaction=function(){var a=this.diagram,y=hr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function wh(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,eg(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function tg(){var a=Yo;qa(a),Mu(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Jr.prototype.doCancel=function(){qa(this),Mu(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},Jr.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},Jr.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function lu(a,y){if(a.copiedParts===null){var x=a.diagram;if((!y||!x.isReadOnly&&!x.isModelReadOnly)&&a.draggedParts!==null){var b=x.undoManager;for(b.isEnabled&&b.isInTransaction?b.currentTransaction!==null&&0<b.currentTransaction.changes.count&&(x.undoManager.Kf(),x.Ea("Drag")):Mu(a),x.skipsUndoManager=!y,x.partManager.addsToTemporaryLayer=!y,a.startPoint=x.firstInput.documentPoint,y=a.copiesEffectiveCollection?a.draggedParts.Lf():x.selection,y=x.Kj(y,x,!0),x=new qn,b=a.draggedParts.iterator;b.next();){var E=b.key;if(E.Zc()&&E.canCopy()){var 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 zn&&b.canCopy()&&x.add(b,a.Pd());a.copiedParts=x,Wd(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Ju(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function qa(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 zn&&(x.value.point=new Se(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function Au(a){if(a.draggedLink!==null){if(a.dragsLink&&a.Oe!==null){var y=a.Oe;y.diagram.remove(y.temporaryFromNode),y.diagram.remove(y.temporaryToNode),a.Oe.originalLink=null}a.draggedLink=null,a.Oe=null}}function Cl(a,y,x){var b=a.diagram,E=a.startPoint,z=Se.alloc();z.assign(b.lastInput.documentPoint),a.moveParts(y,z.re(E),x),Se.free(z),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(Bs(b),b.hk())}Jr.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var b=this.diagram;b!==null&&Oh(b,a,y,this.dragOptions,x)};function Mu(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 zn&&b.suspendsRouting){var E=x.value.point;a.draggedParts.add(b,a.Pd()),Ju(b,-E.x,-E.y)}y.bd()}}function Ud(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),Tu(a,!1));var b=a.findDragOverObject(y),E=x.lastInput;E.targetObject=b,a.doUpdateCursor(b);var z=x.skipsUndoManager,nt=!1;try{if(x.skipsUndoManager=!0,nt=eg(a,E,b),!a.isActive&&Yo===null)return;var ot=b!==null?b.part:null;if(ot===null||x.handlesDragDropForTopLevelParts&&ot.isTopLevel&&!(ot instanceof Ni)){var at=x.mouseDragOver;at!==null&&(at(E),nt=!0)}if(!a.isActive&&Yo===null||(a.doDragOver(y,b),!a.isActive&&Yo===null))return}finally{x.skipsUndoManager=z,nt&&x.bd()}a.Bn=b,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(E.viewPoint)}Jr.prototype.findDragOverObject=function(a){var y=this;return Wl(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof cr||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},Jr.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 eg(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 nt=0;nt<E;nt++){var ot=a.Cg[nt],at=ot.mouseDragLeave;if(at!==null&&(at(y,ot,x),b=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Yo===null||x===null)return b;for(y.handled=!1,E=x;E!==null;)a.Cg.push(E),E=ng(E);for(E=a.Cg.length,x=0;x<E&&(nt=a.Cg[x],ot=nt.mouseDragEnter,ot===null||(ot(y,nt,z),b=!0,!y.handled));x++);return b}function ng(a){var y=a.panel;return y!==null?y:a instanceof di&&!(a instanceof Ni)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Rp(a,y,x){var b=a.Oe;if(b===null)return null;var E=a.diagram.og(y,b.portGravity,function(ht){return b.findValidLinkablePort(ht,x)});a=Se.alloc();var z=1/0,nt=null;for(E=E.iterator;E.next();){var ot=E.value;if(ot.part!==null){var at=ot.ga(ur,a);at=y.Bf(at),at<z&&(nt=ot,z=at)}}return Se.free(a),nt}function Tu(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,nt=null;x.fromNode===null&&(z=Rp(a,x.i(0),!1),z!==null&&(nt=z.part));var ot=null,at=null;x.toNode===null&&(ot=Rp(a,x.i(x.pointsCount-1),!0),ot!==null&&(at=ot.part)),E.isValidLink(nt,z,at,ot)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=nt,z!==null&&(x.fromPortId=z.portId),x.toNode=at,ot!==null&&(x.toPortId=ot.portId),x.fromPort!==b.Mx&&b.R("LinkRelinked",x,b.Mx),x.toPort!==b.Nx&&b.R("LinkRelinked",x,b.Nx)):Gd(E,nt,z,at,ot):Gd(E,null,null,null,null)}}}}Jr.prototype.doDragOver=function(){};function ku(a,y){var x=a.diagram;a.dragsLink&&Tu(a,!0),wh(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 nt=z.mouseDrop;if(nt!==null&&(nt(E,z),E.handled))break;Q0(a,E,z),z=ng(z)}}else z=x.mouseDrop,z!==null&&z(E);if(a.isActive||Yo!==null){for(E=(a.copiedParts||a.draggedParts).iterator;E.next();)z=E.key,z instanceof Vn&&z.linksConnected.each(function(ot){ot.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||Yo!==null){for(a=yn.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof Vn&&q0(x,b,a);yn.free(a)}}}function Q0(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Ni||(x=a.mouseDrop,x!==null&&x(y))}function q0(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 zn},!0,function(E){return E instanceof zn},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}Jr.prototype.doDropOnto=function(){},Jr.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;this.simulatedMouseMove(y.event,y.documentPoint,y.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(lu(this,!1),rf(a,this.copiedParts),Cl(this,this.copiedParts,!1),Ih(a,this.copiedParts)):this.mayMove()?(qa(this),Cl(this,this.draggedParts,!0)):this.mayDragOut()?(lu(this,!1),Cl(this,this.copiedParts,!1)):qa(this),Ud(this,a.lastInput.documentPoint))}},Jr.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?(qa(this),lu(this,!0),rf(a,this.copiedParts),Cl(this,this.copiedParts,!1),Ih(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,qa(this),this.mayMove()&&(Cl(this,this.draggedParts,!0),Ud(this,a.lastInput.documentPoint))),this.Ym=!0,ku(this,a.lastInput.documentPoint),this.isActive){var b=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&$0(this),a.Ya(),Ih(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",b)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},Jr.prototype.simulatedMouseMove=function(a,y,x){if(Yo===null)return!1;var b=Yo.diagram;x instanceof on||(x=null);var E=Nu;return x!==E&&(E!==null&&E!==b&&(E.ug(),Yo.isDragOutStarted=!1,E=E.toolManager.findTool("Dragging"),E!==null&&E.doSimulatedDragLeave()),Nu=x,x!==null&&x!==b&&(tg(),E=x.toolManager.findTool("Dragging"),E!==null&&(jl.contains(E)||jl.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)},Jr.prototype.simulatedMouseUp=function(a,y,x){if(Yo===null)return!1;var b=Nu,E=Yo.diagram;if(x===null)return Yo.doCancel(),!0;if(x!==b){var z=b.toolManager.findTool("Dragging");if(b!==null&&b!==E&&z!==null)return b.ug(),Yo.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;Nu=x,b=x.toolManager.findTool("Dragging"),b!==null&&(tg(),jl.contains(b)||jl.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 Se),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=Yo,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function $0(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof Vn&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}Jr.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(vi?!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())},Jr.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())},Jr.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())},Jr.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},Jr.prototype.Az=function(){return Yo},Jr.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Yo;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},Jr.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),Aa(a),a.animationManager.Cc(),a=Yo,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Jr.prototype.doSimulatedDragLeave=function(){var a=Yo;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Jr.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Yo;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;jp(this,y.draggedParts.Lf(),!1,a.firstInput),Cl(this,this.copiedParts,!1),Ud(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},Jr.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Yo;if(y!==null){var x=y.diagram;if(y.Ym=!0,qa(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),jp(this,y.draggedParts.Lf(),!0,a.lastInput),Cl(this,this.copiedParts,!1);var b=new En;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(E){E.isSelected=!0,b.add(E)})),ku(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 jp(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=yn.alloc();E=b=1/0;for(var nt=-1/0,ot=-1/0,at=y.iterator;at.next();){var ht=at.value;if(ht.isVisible()){var dt=ht.location;ht=dt.x,dt=dt.y,isNaN(ht)||isNaN(dt)||(ht<b&&(b=ht),dt<E&&(E=dt),ht>nt&&(nt=ht),dt>ot&&(ot=dt))}}for(b===1/0?z.h(0,0,0,0):z.h(b,E,nt-b,ot-E),b=z.x+z.width/2,E=z.y+z.height/2,yn.free(z),z=a.Fr,nt=new qn,ot=Se.alloc(),at=y.iterator;at.next();)ht=at.value,ht instanceof zn&&ht.canCopy()&&(dt=x.I(ht),dt!==null&&(dt.points=ht.points,Ju(dt,z.x-b,z.y-E),dt.suspendsRouting=!0,nt.add(dt,a.Pd())));for(y=y.iterator;y.next();)ht=y.value,ht.Zc()&&ht.canCopy()&&(at=x.I(ht),at!==null&&(ht=ht.location,ot.h(z.x-(b-ht.x),z.y-(E-ht.y)),at.location=ot,at.Va(),nt.add(at,a.Pd(ot))));Se.free(ot),a.copiedParts=nt,Wd(a,nt.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Ju(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}Jr.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Jr.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new Se},we.Object.defineProperties(Jr.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}}}),Jr.prototype.getDraggingSource=Jr.prototype.Az;var Yo=null,Nu=null;Jr.className="DraggingTool",jl=new bn,Qn("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Kr.prototype.doCancel=function(){Yo!==null&&Yo.doCancel(),hr.prototype.doCancel.call(this)};function to(){hr.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new zn,y=new Ri;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Ri,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Vn,y=new Ri,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Sr,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Vn,y=new Ri,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Sr,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new qn,this.Of=this.gj=this.Pf=null}Qe(to,hr),to.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},to.prototype.copyPortProperties=function(a,y,x,b,E){if(a!==null&&y!==null&&x!==null&&b!==null){var z=y.Df(),nt=Wn.alloc();nt.width=y.naturalBounds.width*z,nt.height=y.naturalBounds.height*z,b.desiredSize=nt,Wn.free(nt),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=ur,z=Se.alloc(),x.location=y.ga(ur,z),Se.free(z),b.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,b,E)}},to.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=Sr,y.fromSpot=ao,y.toSpot=ao),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},to.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},to.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Vn){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)}},to.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Vn))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof Vn)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(b===!1)break;a=a.panel}return null},to.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(Et){return E.findValidLinkablePort(Et,a)},null,!0);for(b=1/0,y=null,z=z.iterator;z.next();){var nt=z.value,ot=nt.part;if(ot instanceof Vn){var at=nt.ga(ur,Se.alloc()),ht=x.x-at.x,dt=x.y-at.y;Se.free(at),at=ht*ht+dt*dt,at<b&&(ht=this.validPortsCache.I(nt),ht!==null?ht&&(y=nt,b=at):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,ot,nt)||!a&&this.isValidLink(ot,nt,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(nt,!0),y=nt,b=at):this.validPortsCache.add(nt,!1))}}return y!==null&&(x=y.part,x instanceof Vn&&(x.layer===null||x.layer.allowLink))?y:null},to.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},to.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},to.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},to.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof Vn))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof Vn))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},to.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)},to.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 En;return b.add(a),cs(this,x,y,b)};function cs(a,y,x,b){if(y===x)return!0;var E=y.fromNode;return E!==null&&E.isLinkLabel&&(b.add(E),cs(a,E.labeledLink,x,b))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(b.add(y),cs(a,y.labeledLink,x,b))))}to.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var b=this.diagram.validCycle;if(b!==ud){if(b===Ig){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!xs(this,a,y,x,!0)}if(b===Dg){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!xs(this,a,y,x,!0)}if(b===kg)return a===y?a=!0:(b=new En,b.add(y),a=ws(this,b,a,y,x)),!a;if(b===Ng)return!xs(this,a,y,x,!1);if(b===Og)return a===y?a=!0:(b=new En,b.add(y),a=lc(this,b,a,y,x)),!a}return!0};function xs(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 nt=z.value;if(nt!==b&&(!E||nt.isTreeLink)&&nt.toNode===y&&(nt=nt.fromNode,nt!==y&&xs(a,nt,x,b,E)))return!0}return!1}function ws(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 nt=z.value;if(nt!==E&&nt.toNode===x&&(nt=nt.fromNode,nt!==x&&ws(a,y,nt,b,E)))return!0}return!1}function lc(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 nt=z.value;if(nt!==E){var ot=nt.fromNode;if(nt=nt.toNode,ot=ot===x?nt:ot,ot!==x&&lc(a,y,ot,b,E))return!0}}return!1}we.Object.defineProperties(to.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}}}),to.className="LinkingBaseTool";function Ps(){to.call(this),this.name="Linking",this.V={},this.F=null,this.K=Ph,this.Xd=null}Qe(Ps,to),Ps.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},Ps.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 Vn)))return null;var x=this.direction;if(x===Ph||x===zp){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===Ph||x===Hp)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},Ps.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 Vn&&(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 Vn&&(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)},Ps.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()},Ps.prototype.doStop=function(){to.prototype.doStop.call(this),this.startObject=null},Ps.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,b=null,E=null,z=null;try{var nt=this.targetPort=this.findTargetPort(this.isForwards);if(nt!==null){var ot=nt.part;ot instanceof Vn&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),b=ot,E=nt):(y=ot,x=nt,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?(nt===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)}}},Ps.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof zn)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)},Ps.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},Ps.prototype.doNoLink=function(){},we.Object.defineProperties(Ps.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 Ph=new dn(Ps,"Either",0),zp=new dn(Ps,"ForwardsOnly",0),Hp=new dn(Ps,"BackwardsOnly",0);Ps.className="LinkingTool",Ps.Either=Ph,Ps.ForwardsOnly=zp,Ps.BackwardsOnly=Hp;function fa(){to.call(this),this.name="Relinking";var a=new Ri;a.figure="Diamond",a.desiredSize=Rr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Ri,a.figure="Diamond",a.desiredSize=Rr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new yn}Qe(fa,to),fa.prototype.updateAdornments=function(a){if(a!==null&&a instanceof zn){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)}},fa.prototype.makeAdornment=function(a,y){var x=new cr;return x.type=Fn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},fa.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},fa.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 cr&&x.adornedPart instanceof zn))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=Ti),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=Ti),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},fa.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===Mf||x===Qu)&&(x=Ts),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}},fa.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()},fa.prototype.doStop=function(){to.prototype.doStop.call(this),this.handle=null},fa.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 nt=this.targetPort.part;nt instanceof Vn&&(this.isForwards?(b=nt,E=this.targetPort):(y=nt,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()}}},fa.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},fa.prototype.doNoRelink=function(){};function Gd(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)}we.Object.defineProperties(fa.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 cr))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),fa.className="RelinkingTool",Qn("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Qn("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function co(){hr.call(this),this.name="LinkReshaping";var a=new Ri;a.figure="Rectangle",a.desiredSize=Br,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Ri,a.figure="Diamond",a.desiredSize=Rr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Se,this.Yq=new bn}Qe(co,hr),co.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:ig},co.prototype.om=function(a,y){a.reshapingBehavior=y},co.prototype.updateAdornments=function(a){if(a!==null&&a instanceof zn){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)}},co.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new cr,E.type=Fn.Link,x=y.firstPickIndex;var z=y.lastPickIndex,nt=b?1:0;if(y.resegmentable&&y.computeCurve()!==ya)for(var ot=x+nt;ot<z-nt;ot++){var at=this.makeResegmentHandle(a,ot);at!==null&&(at.segmentIndex=ot,at.segmentFraction=.5,at.fromMaxLinks=999,E.add(at))}for(nt=x+1;nt<z;nt++)if(ot=this.makeHandle(a,nt),ot!==null){if(ot.segmentIndex=nt,nt!==x)if(nt===x+1&&b){at=y.i(x);var ht=y.i(x+1);Je.B(at.x,ht.x)&&Je.B(at.y,ht.y)&&(ht=y.i(x-1)),Je.B(at.x,ht.x)?(this.om(ot,Du),ot.cursor="n-resize"):Je.B(at.y,ht.y)&&(this.om(ot,Iu),ot.cursor="w-resize")}else nt===z-1&&b?(at=y.i(z-1),ht=y.i(z),Je.B(at.x,ht.x)&&Je.B(at.y,ht.y)&&(at=y.i(z+1)),Je.B(at.x,ht.x)?(this.om(ot,Du),ot.cursor="n-resize"):Je.B(at.y,ht.y)&&(this.om(ot,Iu),ot.cursor="w-resize")):nt!==z&&(this.om(ot,Kd),ot.cursor="move");E.add(ot)}E.adornedObject=a}return E},co.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},co.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},co.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},co.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 zn){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}}},co.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},co.prototype.stopTransaction=function(){var a=this.diagram,y=hr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},co.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},co.prototype.getResegmentingPoint=function(){return this.handle.ga(ur)},co.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},co.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 nt=y.i(x-2);if(Math.abs(b.x-E.x)<this.resegmentingDistance&&Math.abs(b.y-E.y)<this.resegmentingDistance&&(Ou(this,nt,b,E,z,!0)||Ou(this,nt,b,E,z,!1))){var ot=y.points.copy();Ou(this,nt,b,E,z,!0)?(ot.cd(x-2,new Se(nt.x,(z.y+nt.y)/2)),ot.cd(x+1,new Se(z.x,(z.y+nt.y)/2))):(ot.cd(x-2,new Se((z.x+nt.x)/2,nt.y)),ot.cd(x+1,new Se((z.x+nt.x)/2,z.y))),ot.mb(x),ot.mb(x-1),y.points=ot,y.Wb()}else nt=y.i(x+2),Math.abs(E.x-z.x)<this.resegmentingDistance&&Math.abs(E.y-z.y)<this.resegmentingDistance&&(Ou(this,b,E,z,nt,!0)||Ou(this,b,E,z,nt,!1))&&(ot=y.points.copy(),Ou(this,b,E,z,nt,!0)?(ot.cd(x-1,new Se(b.x,(b.y+nt.y)/2)),ot.cd(x+2,new Se(nt.x,(b.y+nt.y)/2))):(ot.cd(x-1,new Se((b.x+nt.x)/2,b.y)),ot.cd(x+2,new Se((b.x+nt.x)/2,nt.y))),ot.mb(x+1),ot.mb(x),y.points=ot,y.Wb())}}else nt=Se.alloc(),Je.qh(b.x,b.y,z.x,z.y,E.x,E.y,nt)&&nt.Bf(E)<this.resegmentingDistance*this.resegmentingDistance&&(b=y.points.copy(),b.mb(x),y.points=b,y.Wb()),Se.free(nt)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function Ou(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}co.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===Du?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):b===Iu&&(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===Du?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):b===Iu&&(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),nt=y.i(b+1);Je.B(z.x,E.x)&&Je.B(E.y,nt.y)?(Je.B(z.x,y.i(b-2).x)&&!Je.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),Je.B(nt.y,y.i(b+2).y)&&!Je.B(nt.x,y.i(b+2).x)?y.m(b+1,nt.x,a.y):y.L(b+1,nt.x,a.y)):Je.B(z.y,E.y)&&Je.B(E.x,nt.x)?(Je.B(z.y,y.i(b-2).y)&&!Je.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),Je.B(nt.x,y.i(b+2).x)&&!Je.B(nt.y,y.i(b+2).y)?y.m(b+1,a.x,nt.y):y.L(b+1,a.x,nt.y)):Je.B(z.x,E.x)&&Je.B(E.x,nt.x)?(Je.B(z.x,y.i(b-2).x)&&!Je.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),Je.B(nt.x,y.i(b+2).x)&&!Je.B(nt.y,y.i(b+2).y)?y.m(b+1,a.x,nt.y):y.L(b+1,a.x,nt.y)):Je.B(z.y,E.y)&&Je.B(E.y,nt.y)&&(Je.B(z.y,y.i(b-2).y)&&!Je.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),Je.B(nt.y,y.i(b+2).y)&&!Je.B(nt.x,y.i(b+2).x)?y.m(b+1,nt.x,a.y):y.L(b+1,nt.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(ur,Se.alloc()),b=y.getLinkPointFromPoint(b,E,z,a,!0,Se.alloc()),y.L(0,b.x,b.y),Se.free(z),Se.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(ur,Se.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,Se.alloc()),y.L(y.pointsCount-1,a.x,a.y),Se.free(x),Se.free(a));y.zf()},co.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case Kd:return a;case Du:return new Se(y.i(x).x,a.y);case Iu:return new Se(a.x,y.i(x).y);default:case ig:return y.i(x)}},we.Object.defineProperties(co.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 cr))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}}}),co.prototype.setReshapingBehavior=co.prototype.om,co.prototype.getReshapingBehavior=co.prototype.Ru;var ig=new dn(co,"None",0),Iu=new dn(co,"Horizontal",1),Du=new dn(co,"Vertical",2),Kd=new dn(co,"All",3);co.className="LinkReshapingTool",co.None=ig,co.Horizontal=Iu,co.Vertical=Du,co.All=Kd,Qn("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function rs(){hr.call(this),this.name="Resizing",this.o=new Wn(1,1).freeze(),this.j=new Wn(9999,9999).freeze(),this.yg=new Wn(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Ri;a.alignmentFocus=ur,a.figure="Rectangle",a.desiredSize=Br,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Se,this.Dw=new Wn,this.Tn=new Se,this.rt=new Wn(0,0),this.qt=new Wn(1/0,1/0),this.pt=new Wn(1,1)}Qe(rs,hr),rs.prototype.updateAdornments=function(a){if(!(a===null||a instanceof zn)){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(),zh(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},rs.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new cr,y.type=Fn.Spot,y.locationSpot=ur;var x=new Ms;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,No)),y.add(this.makeHandle(a,iu)),y.add(this.makeHandle(a,ta)),y.add(this.makeHandle(a,Qs)),y.add(this.makeHandle(a,Co)),y.add(this.makeHandle(a,Ko)),y.add(this.makeHandle(a,jo)),y.add(this.makeHandle(a,Oo))}else if(Za(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},rs.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},rs.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))t:{var x=a.alignment;if(x.Mc()&&(x=ur),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 t;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 Fn)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},rs.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},rs.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))},rs.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},rs.prototype.stopTransaction=function(){var a=this.diagram,y=hr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},rs.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},rs.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,Se.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),a.bd(),Se.free(E)}},rs.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,Se.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),Se.free(E),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},rs.prototype.resize=function(a){var y=this.diagram,x=this.adornedObject;if(x!==null){if(x.desiredSize=a.size,a=x.part,a.Va(),x=x.ga(this.handle.alignment.gv()),a instanceof Ni){var b=new bn;if(b.add(a),!this.dragsMembers&&a.placeholder===null){var E=new lt;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()}},rs.prototype.computeResize=function(a,y,x,b,E,z){y.Mc()&&(y=ur);var nt=this.adornedObject.naturalBounds,ot=nt.x,at=nt.y,ht=nt.x+nt.width,dt=nt.y+nt.height,Et=1;if(!z){Et=nt.width;var Ht=nt.height;0>=Et&&(Et=1),0>=Ht&&(Ht=1),Et=Ht/Et}return Ht=Se.alloc(),Je.No(a.x,a.y,ot,at,E.width,E.height,Ht),a=nt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(Ht.x,ht-b.width),a.x=Math.min(a.x,ht-x.width),a.width=Math.max(ht-a.x,x.width),a.y=Math.max(Ht.y,dt-b.height),a.y=Math.min(a.y,dt-x.height),a.height=Math.max(dt-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Et*a.width,b.height),x.height),a.width=a.height/Et):(a.width=Math.max(Math.min(a.height/Et,b.width),x.width),a.height=Et*a.width),a.x=ht-a.width,a.y=dt-a.height)):1<=y.y?(a.x=Math.max(Ht.x,ht-b.width),a.x=Math.min(a.x,ht-x.width),a.width=Math.max(ht-a.x,x.width),a.height=Math.max(Math.min(Ht.y-at,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Et*a.width,b.height),x.height),a.width=a.height/Et):(a.width=Math.max(Math.min(a.height/Et,b.width),x.width),a.height=Et*a.width),a.x=ht-a.width)):(a.x=Math.max(Ht.x,ht-b.width),a.x=Math.min(a.x,ht-x.width),a.width=ht-a.x,z||(a.height=Math.max(Math.min(Et*a.width,b.height),x.height),a.width=a.height/Et,a.y=at+.5*(dt-at-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(Ht.x-ot,b.width),x.width),a.y=Math.max(Ht.y,dt-b.height),a.y=Math.min(a.y,dt-x.height),a.height=Math.max(dt-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Et*a.width,b.height),x.height),a.width=a.height/Et):(a.width=Math.max(Math.min(a.height/Et,b.width),x.width),a.height=Et*a.width),a.y=dt-a.height)):1<=y.y?(a.width=Math.max(Math.min(Ht.x-ot,b.width),x.width),a.height=Math.max(Math.min(Ht.y-at,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Et*a.width,b.height),x.height),a.width=a.height/Et):(a.width=Math.max(Math.min(a.height/Et,b.width),x.width),a.height=Et*a.width))):(a.width=Math.max(Math.min(Ht.x-ot,b.width),x.width),z||(a.height=Math.max(Math.min(Et*a.width,b.height),x.height),a.width=a.height/Et,a.y=at+.5*(dt-at-a.height))):0>=y.y?(a.y=Math.max(Ht.y,dt-b.height),a.y=Math.min(a.y,dt-x.height),a.height=dt-a.y,z||(a.width=Math.max(Math.min(a.height/Et,b.width),x.width),a.height=Et*a.width,a.x=ot+.5*(ht-ot-a.width))):1<=y.y&&(a.height=Math.max(Math.min(Ht.y-at,b.height),x.height),z||(a.width=Math.max(Math.min(a.height/Et,b.width),x.width),a.height=Et*a.width,a.x=ot+.5*(ht-ot-a.width))),Se.free(Ht),a},rs.prototype.computeReshape=function(){var a=kn;return this.adornedObject instanceof Ri&&(a=Ev(this.adornedObject)),!(a===ni||this.diagram.lastInput.shift)},rs.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},rs.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},rs.prototype.computeCellSize=function(){var a=new Wn(NaN,NaN),y=this.adornedObject.part;return y!==null&&(y=y.resizeCellSize,!isNaN(y.width)&&0<y.width&&(a.width=y.width),!isNaN(y.height)&&0<y.height&&(a.height=y.height)),y=this.cellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height),y=this.diagram,(isNaN(a.width)||isNaN(a.height))&&y&&(y=y.grid,y!==null&&y.visible&&this.isGridSnapEnabled&&(y=y.gridCellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height))),(isNaN(a.width)||a.width===0||a.width===1/0)&&(a.width=1),(isNaN(a.height)||a.height===0||a.height===1/0)&&(a.height=1),a},we.Object.defineProperties(rs.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 cr))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 cr)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}}}),rs.className="ResizingTool",Qn("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function bs(){hr.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Se,this.ue=null;var a=new Ri;a.figure="Ellipse",a.desiredSize=Rr,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Se(NaN,NaN),this.u=0,this.F=50}Qe(bs,hr),bs.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)}},bs.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new cr,y.type=Fn.Position,y.locationSpot=ur;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(Za(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},bs.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},bs.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)},bs.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(ur)},bs.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)},bs.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Se(NaN,NaN),this.isActive=a.isMouseCaptured=!1},bs.prototype.stopTransaction=function(){var a=this.diagram,y=hr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},bs.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},bs.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},bs.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()},bs.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()}},bs.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},we.Object.defineProperties(bs.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 cr))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 cr)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}}}),bs.className="RotatingTool",Qn("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function bh(){hr.call(this),this.name="ClickSelecting"}Qe(bh,hr),bh.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},bh.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},bh.className="ClickSelectingTool";function Wa(){hr.call(this),this.name="Action",this.pk=null}Qe(Wa,hr),Wa.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},Wa.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()},Wa.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))}},Wa.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()},Wa.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())},Wa.prototype.doStop=function(){this.pk=null},Wa.className="ActionTool";function Fu(){hr.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Se(0,0)}Qe(Fu,hr),Fu.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)},Fu.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},Fu.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 di)x.Zc()&&(Za(x),b=x.copy(),b!==null&&y.add(b));else if(x!==null){var E=y.model.copyNodeData(x);Ke(E)&&(y.model.xf(E),b=y.Lc(E))}if(b!==null){var z=Se.allocAt(a.x,a.y);this.isGridSnapEnabled&&nf(this.diagram,b,a,z),b.location=z,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),Se.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},we.Object.defineProperties(Fu.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}}}),Fu.className="ClickCreatingTool";function Ea(){hr.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new di;a.layerName="Tool",a.selectable=!1;var y=new Ri;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Qe(Ea,hr),Ea.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))},Ea.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},Ea.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},Ea.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive&&this.box!==null){var y=this.computeBoxBounds(),x=this.box.fb("SHAPE");x===null&&(x=this.box.Pb());var b=Wn.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),Wn.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},Ea.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()},Ea.prototype.computeBoxBounds=function(){var a=this.diagram;return new yn(a.firstInput.documentPoint,a.lastInput.documentPoint)},Ea.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),vi?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 bn,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)}},we.Object.defineProperties(Ea.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}}}),Ea.className="DragSelectingTool";function ts(){hr.call(this),this.name="Panning",this.Xt=new Se,this.xy=new Se,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Le.document,"scroll",a.Kw,!1),a.stopTool()}}Qe(ts,hr),ts.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())},ts.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(Le.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},ts.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},ts.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},ts.prototype.doMouseMove=function(){this.move()},ts.prototype.doMouseUp=function(){this.move(),this.stopTool()},ts.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)}},we.Object.defineProperties(ts.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),ts.className="PanningTool",Qn("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Qn("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Qn("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Qn("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Qn("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function El(){this.F=this.u=this.j=this.o=null}we.Object.defineProperties(El.prototype,{mainElement:{get:function(){return this.u},set:function(a){this.u=a}},show:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},hide:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},valueFunction:{get:function(){return this.F},set:function(a){this.F=a}}}),El.className="HTMLInfo";function Ua(a,y,x){this.text=a,this.hx=y,this.visible=x}Ua.className="ContextMenuButtonInfo";function Cs(){hr.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Se,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Qe(Cs,hr);function $a(a){var y=new El;y.show=function(E,z,nt){nt.showDefaultContextMenu()},y.hide=function(E,z){z.hideDefaultContextMenu()},Ch=y,a.tu=function(){a.stopTool()},y=Hn("div");var x=Hn("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=Hn("style");Le.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",fo,!1),b.addEventListener(y,"selectstart",fo,!1),b.addEventListener(x,"contextmenu",fo,!1)),y.className="goCXforeground",x.className="goCXbackground",Le.document.body&&(Le.document.body.appendChild(y),Le.document.body.appendChild(x)),Xc=y,uc=x,Zc=!0}function fo(a){return a.preventDefault(),!1}Cs.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)},Cs.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},Cs.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},Cs.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof on||(a instanceof Xe?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},Cs.prototype.doActivate=function(){},Cs.prototype.doMouseDown=function(){if(hr.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof cr){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&cl(this)},Cs.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof cr){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}cl(this)};function cl(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof El||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(uu(a,!0),a.isActive||a.stopTool())}Cs.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function uu(a,y,x){if(x===void 0&&(x=null),!a.Et&&(a.Et=!0,y&&a.standardMouseSelect(),y=a.standardMouseClick(),a.Et=!1,!y)){if(a.isActive=!0,y=Ch,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var b=x.contextMenu;b!==null?(a.currentObject=x instanceof Xe?x:null,a.showContextMenu(b,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof cr&&!a.currentContextMenu.visible&&a.stopTool()}}Cs.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},Cs.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof cr){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=x.scale);var b=a.diagram;b!==null&&b!==x&&b.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof El&&a.show(y,x,this);this.currentContextMenu=a},Cs.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}},Cs.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof cr?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof El&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Bu(a){var y=new bn;return y.add(new Ua("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new Ua("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new Ua("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new Ua("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Ua("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new Ua("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new Ua("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new Ua("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new Ua("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new Ua("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new Ua("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new Ua("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new Ua("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}Cs.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=Bu(this)),Xc.innerHTML="",uc.addEventListener("pointerdown",this.tu,!1);var y=this,x=Hn("ul");x.className="goCXul",Xc.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=Hn("li"),z.className="goCXli";var nt=Hn("a");nt.className="goCXa",nt.href="#",nt.ky=E.hx,nt.addEventListener("pointerdown",function(ot){return this.ky(a),y.stopTool(),ot.preventDefault(),!1},!1),nt.textContent=E.text,z.appendChild(nt),x.appendChild(z)}}Xc.style.display="block",uc.style.display="block"},Cs.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===Ch){Xc.style.display="none",uc.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(uc,"pointerdown",this.tu,!1),this.currentContextMenu=null}},we.Object.defineProperties(Cs.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof cr?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return Zc===!1&&Ch===null&&qr&&$a(this),Ch},set:function(a){a===null&&(Zc=!0),Ch=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var Ch=null,Zc=!1,uc=null,Xc=null;Cs.className="ContextMenuTool",Qn("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function zr(){hr.call(this),this.name="TextEditing",this.Zh=new Ir,this.ia=null,this.V=hc,this.vj=null,this.qa=cc,this.u=1,this.F=!0,this.o=null,this.j=new El,this.kt=null,Yc(this,this.j)}Qe(zr,hr);function Yc(a,y){if(qr){var x=Hn("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(_c)):E==="Tab"?(a.acceptText(Zd),b.preventDefault()):E==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==cc){var b=a.kt;a.qa===Jc&&(a.qa=Qc),typeof b.select=="function"&&a.selectsTextOnActivate&&(b.select(),b.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==cc){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 Ir&&z instanceof zr)if(z.state===qc)x.style.border="3px solid red",x.focus();else{var nt=b.ga(ur),ot=E.position,at=E.scale,ht=b.Df()*at;ht<z.minimumEditorScale&&(ht=z.minimumEditorScale);var dt=b.naturalBounds.width*ht+6,Et=b.naturalBounds.height*ht+2,Ht=(nt.x-ot.x)*at;nt=(nt.y-ot.y)*at,ot=b.verticalAlignment,at=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*ht,Et=ot.y*Et-ot.y*at+ot.offsetY-(.5*Et-.5*at)-at/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*ht+"%",x.style.lineHeight="normal",x.style.width=dt+"px",x.style.left=(Ht-dt/2|0)-1+"px",x.style.top=(nt+Et|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=ht,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)}}}zr.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||Ru&&Ru!==this&&(Ru.acceptText(Ll),Ru&&Ru!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof Ir&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===hc&&!y.isSelected||this.starting===Xd&&2>a.lastInput.clickCount)):!1},zr.prototype.doStart=function(){Ru=this,this.textBlock!==null&&this.doActivate()},zr.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 Ir&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=Jc;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var b=new yn(this.textBlock.ga(No),this.textBlock.ga(ta));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},zr.prototype.doCancel=function(){this.stopTool()},zr.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},zr.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Ll)},zr.prototype.acceptText=function(a){switch(a){case Ll:this.qa===dc?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Jc||this.qa===qc||this.qa===Qc)&&(this.qa=og,rg(this));break;case Vd:case _c:case Zd:(_c!==a||this.textBlock.isMultiline!==!0)&&(this.qa===Jc||this.qa===qc||this.qa===Qc)&&(this.qa=og,rg(this))}};function rg(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=dc,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=qc,a.doError(E,z))}}zr.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)},zr.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},zr.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=cc,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},zr.prototype.doStop=function(){Ru=null},zr.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)))},zr.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},we.Object.defineProperties(zr.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)}}}),zr.prototype.measureTemporaryTextBlock=zr.prototype.Lx;var Vd=new dn(zr,"LostFocus",0),Ll=new dn(zr,"MouseDown",1),Zd=new dn(zr,"Tab",2),_c=new dn(zr,"Enter",3),tv=new dn(zr,"SingleClick",0),hc=new dn(zr,"SingleClickSelected",1),Xd=new dn(zr,"DoubleClick",2),cc=new dn(zr,"StateNone",0),Jc=new dn(zr,"StateActive",1),Qc=new dn(zr,"StateEditing",2),og=new dn(zr,"StateValidating",3),qc=new dn(zr,"StateInvalid",4),dc=new dn(zr,"StateValidated",5),Ru=null;zr.className="TextEditingTool",zr.LostFocus=Vd,zr.MouseDown=Ll,zr.Tab=Zd,zr.Enter=_c,zr.SingleClick=tv,zr.SingleClickSelected=hc,zr.DoubleClick=Xd,zr.StateNone=cc,zr.StateActive=Jc,zr.StateEditing=Qc,zr.StateValidating=og,zr.StateInvalid=qc,zr.StateValidated=dc,Qn("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function ra(a){td||(sg(),td=!0),this.H=Hl,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=cu,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new En,this.ce=new es,this.ce.Yd=this,this.Ei=new En,this.pu=new En,this.Sr=new En,this.pr=new En,a&&Object.assign(this,a)}ra.prototype.Xe=function(a){this.H=a},ra.prototype.canStart=function(){return!0};function zl(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),ns(a.H),a.zb=!0)}function Yd(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,b=a.Zd.contains("Model");b&&(a.Ok=!0,a.Pk===cu?(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===ag&&y.vc.clear(),a.Qw=!!(a.Pk===ed&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),b&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),nd(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,b=y.vc.get(x),x.autoScale!==ds&&b!==null&&(delete b.start.scale,delete b.end.scale),Le.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Bs(x),dg(x),a.zb=!1,y.start(),y.bc&&(ju(a),x.Ya(),lg(y,0),Aa(x,!0),Eh(a),x.R("AnimationStarting",a)))}))}}function hu(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function _d(a,y,x,b){a.isTicking||hu(a)||y instanceof zn&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}ne=ra.prototype,ne.fv=function(a){return this.ce.fv(a)},ne.Xu=function(a){return this.ce.Xu(a)};function Jd(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 nt=z.value;if(nt.bc!==!1){t:if(0<nt.yl.count)var ot=!0;else{for(ot=nt.vc.iterator;ot.next();){var at=ot.key;if(at instanceof Xe&&at.diagram!==null||at instanceof on){ot=!0;break t}}ot=!1}ot?id(nt,!1):nt.Xk=!0}}E.pu.clear(),E.bc!==!1&&(ju(E),Aa(E.H),Eh(E)),Le.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),Le.requestAnimationFrame(function(){x()}))}function Wp(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function ju(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 Eh(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}ne.Cc=function(a){var y=this.ce;if(this.zb===!0&&(this.Ok=this.zb=!1,this.Zd.clear(),0<y.vc.count&&this.H.$b()),this.bc){if(y.Ml(!0),y.vc.clear(),nd(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),nd(y,this.H)},ne.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))},ne.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),Gs(this,a))},ne.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),zu(this.ce,y,"position",y.position,y.position),Gs(this,a))};function Up(a,y,x){!a.zb||y.D(x)||hu(a)||(a.H.pi||(y=x.copy()),zu(a.ce,a.H,"position",y,x))}function Qd(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function Gs(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function Lh(a,y,x,b,E){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],nt=a[1],ot=a[2];a=a[3];var at=y[0],ht=y[1],dt=y[2];return y=y[3],ot===0||ot===100?(z=at,nt=ht):(dt===0||dt===100)&&(at=z,ht=nt),180<Math.abs(at-z)&&(at>z?z+=360:at+=360),z=E(x,z,at-z,b)%360,nt=E(x,nt,ht-nt,b),ot=E(x,ot,dt-ot,b),x=E(x,a,y-a,b),"hsla("+z+", "+nt+"%, "+ot+"%, "+x+")"}function sg(){function a(x,b,E,z,nt,ot){x.position=new Se(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot))}var y=new qn;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,b,E,z,nt,ot){nt<ot?x.mm(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot),!1):x.position=new Se(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot))}),y.add("location",function(x,b,E,z,nt,ot){nt<ot?x.mm(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot),!0):x.location=new Se(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot))}),y.add("position:placeholder",function(x,b,E,z,nt,ot){nt<ot?x.mm(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot),!1):x.position=new Se(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot))}),y.add("position:nodeCollapse",function(x,b,E,z,nt,ot){var at=x.actualBounds,ht=E.actualBounds;E=ht.x+ht.width/2-at.width/2,at=ht.y+ht.height/2-at.height/2,nt<ot?x.mm(z(nt,b.x,E-b.x,ot),z(nt,b.y,at-b.y,ot),!1):x.position=new Se(z(nt,b.x,E-b.x,ot),z(nt,b.y,at-b.y,ot))}),y.add("desiredSize",function(x,b,E,z,nt,ot){x.desiredSize=new yn(z(nt,b.width,E.width-b.width,ot),z(nt,b.height,E.height-b.height,ot))}),y.add("width",function(x,b,E,z,nt,ot){x.width=z(nt,b,E-b,ot)}),y.add("height",function(x,b,E,z,nt,ot){x.height=z(nt,b,E-b,ot)}),y.add("fill",function(x,b,E,z,nt,ot){x.fill=Lh(b,E,nt,ot,z)}),y.add("stroke",function(x,b,E,z,nt,ot){x.stroke=Lh(b,E,nt,ot,z)}),y.add("strokeWidth",function(x,b,E,z,nt,ot){x.strokeWidth=z(nt,b,E-b,ot)}),y.add("strokeDashOffset",function(x,b,E,z,nt,ot){x.strokeDashOffset=z(nt,b,E-b,ot)}),y.add("background",function(x,b,E,z,nt,ot){x.background=Lh(b,E,nt,ot,z)}),y.add("areaBackground",function(x,b,E,z,nt,ot){x.areaBackground=Lh(b,E,nt,ot,z)}),y.add("opacity",function(x,b,E,z,nt,ot){x.opacity=z(nt,b,E-b,ot)}),y.add("scale",function(x,b,E,z,nt,ot){x.scale=z(nt,b,E-b,ot)}),y.add("angle",function(x,b,E,z,nt,ot){x.angle=z(nt,b,E-b,ot)}),$c=y}we.Object.defineProperties(ra.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&&pn(a,">= 1",ra,"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}}}),ra.prototype.stopAnimation=ra.prototype.Cc;var $c=null,td=!1,cu=new dn(ra,"Default",1),ed=new dn(ra,"AnimateLocations",2),ag=new dn(ra,"None",3);ra.className="AnimationManager",ra.defineAnimationEffect=function(a,y){td||(sg(),td=!0),$c.add(a,y)},ra.Default=cu,ra.AnimateLocations=ed,ra.None=ag;function es(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=fc,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=ji,this.vc=new qn,this.Tt=new qn,this.yl=new En,this.Ut=new En,this.dw=Uu,a&&Object.assign(this,a)}es.prototype.suspend=function(){this.Xk=!0},es.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,id(this,!0),ju(this.Yd),Aa(this.H),Eh(this.Yd),this.H.redraw()};function nd(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0<a.yl.count&&a.yl.clear(),0<a.Ut.count&&a.Ut.clear(),y!==null)for(a=y.links;a.next();)a.value.Tg=null}ne=es.prototype,ne.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 on?a=x:x instanceof Xe&&(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===cu&&this===y.defaultAnimation&&(this.Lp=Gp,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=hd),ju(y),this.yl.each(function(b){b.data=null,a.add(b)}),Eh(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,Jd(y,this),this)},ne.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},ne.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof on?this.H=a:a instanceof Xe&&a.diagram!==null&&(this.H=a.diagram)),a instanceof di){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return zu(this,a,y,x,b,E),this};function zu(a,y,x,b,E,z){var nt=a.vc;if(y instanceof on&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(pu(b),av(),b=[va.j,va.u,va.o,va.F],pu(E),av(),E=[va.j,va.u,va.o,va.F]),nt.contains(y)){var ot=nt.I(y),at=ot.start,ht=ot.end;at[x]===void 0&&(at[x]=Ah(b)),ht[x]=Ah(E)}else at={},ht={},at[x]=Ah(b),ht[x]=Ah(E),ot=at.position,y instanceof Xe&&ot instanceof Se&&!ot.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&ot.assign(ht.position),ot=new Mh(at,ht,z),nt.add(y,ot);nt=at[x],nt instanceof Se&&!nt.w()&&nt.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof di?ot.Ku.location=Ah(y.location):z&&(ot.Ku[x]=Ah(b))}function Ah(a){return a instanceof Se||a instanceof Wn?a.copy():a}ne.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},ne.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function id(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),ju(x),lg(a,E),Aa(a.H,!0),Eh(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 lg(a,y){for(var x=a.Gd,b=a.vc.iterator,E=a.Wk;b.next();){var z=b.key;if(!(z instanceof Xe&&z.diagram===null)){var nt=b.value,ot=E?nt.end:nt.start;nt=E?nt.start:nt.end;var at=$c,ht;for(ht in nt)ht==="position"&&(nt["position:placeholder"]||nt["position:nodeCollapse"])||at.get(ht)===null||at.get(ht)(z,ot[ht],nt[ht],a.Lp,y,x,a)}}}ne.stop=function(){return this.bc?(this.Ml(!0),this):this},ne.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,ju(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=$c;b.next();){var nt=b.key,ot=b.value,at=E?ot.end:ot.start,ht=E?ot.start:ot.end,dt=ot.Ku,Et;for(Et in ht)if(z.get(Et)!==null){var Ht=Et;!ot.Hu||Ht!=="position:nodeCollapse"&&Ht!=="position:placeholder"||(Ht="position"),z.get(Ht)(nt,at[Et],dt[Et]!==void 0?dt[Et]:ot.Hu?at[Et]:ht[Et],this.Lp,this.Gd,this.Gd,this)}ot.Hu&&dt.location!==void 0&&nt instanceof di&&(nt.location=dt.location),ot.nv&&nt instanceof di&&nt.Zb(!1)}if(y.As.clear(),rd(y,!1),y.Ya(),y.N(),Aa(y,!0),x.defaultAnimation===this){for(Et=x.pr.iterator;Et.next();)E=Et.value,E.Tg!==null&&(E.points=E.Tg,E.Tg=null);x.pr.clear()}Aa(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Eh(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),nd(this,null),x.Ml(this),y.$b())}},ne.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof Ni&&(b=y.placeholder),b!==null?(x=b.ga(No),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Se(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Ni)for(a=a.memberParts;a.next();)b=a.value,b instanceof Vn&&this.Cj(b,y)},ne.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Ni&&(x=y.placeholder),x!==null){var b=x.ga(No);x=x.padding,b.x+=x.left,b.y+=x.top,this.add(a,"position:placeholder",a.position,b,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),b=this.vc,b.contains(a)&&(b.I(a).nv=!0),a instanceof Ni)for(a=a.memberParts;a.next();)b=a.value,b instanceof Vn&&this.Aj(b,y)}},ne.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},we.Object.defineProperties(es.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&pn(a,">= 1",es,"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:Pe("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}}}),es.prototype.getTemporaryState=es.prototype.Ez,es.prototype.stop=es.prototype.stop,es.prototype.add=es.prototype.add,es.prototype.addTemporaryPart=es.prototype.Iy;function fc(a,y,x,b){return a/=b/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Gp(a,y,x,b){return a===b?y+x:x*(-Math.pow(2,-10*a/b)+1)+y}es.className="Animation",es.EaseLinear=function(a,y,x,b){return x*a/b+y},es.EaseInOutQuad=fc,es.EaseInQuad=function(a,y,x,b){return x*(a/=b)*a+y},es.EaseOutQuad=function(a,y,x,b){return-x*(a/=b)*(a-2)+y},es.EaseInExpo=function(a,y,x,b){return a===0?y:x*Math.pow(2,10*(a/b-1))+y},es.EaseOutExpo=Gp;function Mh(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}Mh.className="AnimationState";function tl(a,y,x){this.xd=null,this.rf=a,this.so=x||ug,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=Th))}tl.prototype.copy=function(){var a=new tl(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var x={};y.duration!==void 0&&(x.duration=y.duration),y.finished!==void 0&&(x.finished=y.finished),y.easing!==void 0&&(x.easing=y.easing),a.uk=x}return a};function Kp(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))}we.Object.defineProperties(tl.prototype,{propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},animationSettings:{get:function(){return this.uk},set:function(a){this.uk=a}},startCondition:{get:function(){return this.so},set:function(a){this.so=a}}});var ug=new dn(tl,"Default",1),Th=new dn(tl,"Immediate",2),gc=new dn(tl,"Bundled",3);tl.className="AnimationTrigger",tl.Default=ug,tl.Immediate=Th,tl.Bundled=gc;function Vo(a){Oi(this),this.H=null,this.Pa=new bn,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)}ne=Vo.prototype,ne.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,ls(x)}a.clear(),this.Zq.length=0},ne.Xe=function(a){this.H=a},ne.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,nt=0,ot=this.Pa.iterator;ot.next();){var at=ot.value;at instanceof Ni?E++:at instanceof Vn?b++:at instanceof zn?z++:at instanceof cr?nt++:x++}if(ot="",0<x&&(ot+=x+" Parts "),0<b&&(ot+=b+" Nodes "),0<E&&(ot+=E+" Groups "),0<z&&(ot+=z+" Links "),0<nt&&(ot+=nt+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,ot+=`
|
|
|
`+x.toString(),b=x.data,b!==null&&_i(b)&&(ot+=" #"+_i(b)),x instanceof Vn?ot+=" "+Ln(b):x instanceof zn&&(ot+=" "+Ln(x.fromNode)+" "+Ln(x.toNode));return y+" "+this.Pa.count+": "+ot},ne.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=Se.alloc(),z=this.Pa.s,nt=z.length;nt--;){var ot=z[nt];if((b!==!0||zh(ot)!==!1)&&ot.isVisible()&&(E.assign(a),Mi(E,ot.oe),ot=ot.ic(E,y,x),ot!==null&&(y!==null&&(ot=y(ot)),ot!==null&&(x===null||x(ot)))))return Se.free(E),ot}return Se.free(E),null},ne.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof bn||b instanceof En||(b=new En),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var z=Se.alloc(),nt=this.Pa.s,ot=nt.length;ot--;){var at=nt[ot];if((E!==!0||zh(at)!==!1)&&at.isVisible()){z.assign(a),Mi(z,at.oe);var ht=at;at.ji(z,y,x,b)&&(y!==null&&(ht=y(ht)),ht===null||x!==null&&!x(ht)||b.add(ht))}}return Se.free(z),b},ne.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 bn||E instanceof En||(E=new En),this.Uh===!1)return E;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var nt=this.Pa.s,ot=nt.length;ot--;){var at=nt[ot];if((z!==!0||zh(at)!==!1)&&at.isVisible()){var ht=at;at.Cf(a,y,x,b,E)&&(y!==null&&(ht=y(ht)),ht===null||x!==null&&!x(ht)||E.add(ht))}}return E},ne.Nu=function(a,y,x,b,E,z,nt){if(this.Uh===!1)return E;for(var ot=this.Pa.s,at=ot.length;at--;){var ht=ot[at];if((nt!==!0||zh(ht)!==!1)&&z(ht)&&ht.isVisible()){var dt=ht;ht.Cf(a,y,x,b,E)&&(y!==null&&(dt=y(dt)),dt===null||x!==null&&!x(dt)||E.add(dt))}}return E},ne.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 bn||E instanceof En)&&(z=E),E=!0),z instanceof bn||z instanceof En||(z=new En),this.Uh===!1)return z;var nt=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(nt=!0);for(var ot=Se.alloc(),at=Se.alloc(),ht=this.Pa.s,dt=ht.length;dt--;){var Et=ht[dt];if((nt!==!0||zh(Et)!==!1)&&Et.isVisible()){ot.assign(a),Mi(ot,Et.oe),at.h(a.x+y,a.y),Mi(at,Et.oe);var Ht=Et;Et.og(ot,at,x,b,E,z)&&(x!==null&&(Ht=x(Ht)),Ht===null||b!==null&&!b(Ht)||z.add(Ht))}}return Se.free(ot),Se.free(at),z},ne.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=sn();for(var E=sn(),z=0;z<b;z++){var nt=x[z];if(nt.vw=z,nt instanceof zn){if(nt.fd===!1)continue}else if(nt instanceof cr&&nt.adornedPart!==null)continue;var ot=nt.actualBounds;nt.isVisible()&&Wr(ot,y)?(nt.Fd(!0),a.push(nt)):(nt.Fd(!1),nt.adornments!==null&&0<nt.adornments.count&&E.push(nt))}for(y=0;y<a.length;y++)for(x=a[y],Bv(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++)Bv(E[y]);xn(a),xn(E)}}};function du(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}ne.gc=function(a,y,x){if(this.visible&&this.pb!==0&&(x===void 0&&(x=!0),x||!this.isTemporary)){x=this.Pa.s;var b=x.length;if(b!==0){if(a.isTemporary)for(var E=0;E<b;E++)x[E].Gj();E=du(this,a);var z=this.Zq;z.length=0;for(var nt=y.scale,ot=yn.alloc(),at=0;at<b;at++)this.Oj(a,x[at],y,z,nt,ot,!0);if(yn.free(ot),a.isTemporary)for(y=0;y<b;y++)x[y].Gj();a.globalAlpha=E}}};function Vp(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 nt=du(a,y),ot=a.Zq;ot.length=0;for(var at=x.scale,ht=yn.alloc(),dt=0;dt<z;dt++){var Et=E[dt];b.contains(Et)&&a.Oj(y,Et,x,ot,at,ht,!1)}yn.free(ht),y.globalAlpha=nt}}}ne.Oj=function(a,y,x,b,E,z,nt){if(nt&&!zh(y))a.Hs(y);else{if(b!==null&&y instanceof zn&&(y.isOrthogonal&&b.push(y),y.fd===!1)){a.Hs(y);return}for(nt=!1,b=y.containingGroup;b!==null;)nt?b.tb!==null&&z.Ex(b.tb):b.tb!==null&&(nt=!0,z.assign(b.tb)),b=b.containingGroup;var ot=y.actualBounds;if(b=!1,nt&&y.isVisible()){if(!z.Yc(ot)){a.Hs(y);return}b=!z.Re(ot)}b&&(a.save(),a instanceof oa?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),ot.width*E>x.Oq||ot.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&&($r(y,a,y.areaBackground,!0,!0,z,E),a.fillRect(E.x,E.y,E.width,E.height)),y.areaBackground===null&&y.background===null&&($r(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),$r(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))}},ne.g=function(a,y,x,b,E){var z=this.diagram;z!==null&&z.cb(Xr,a,this,y,x,b,E)},ne.oi=function(a,y,x){var b=this.Pa;if(y.Ig=this,this===null&&ls(y),a>=b.count)a=b.count;else if(b.M(a)===y)return-1;return b.Gb(a,y),y.Vo(x),b=this.diagram,b!==null&&(x?b.N():b.oi(y)),qd(this,a,y),a},ne.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,ls(y),a};function qd(a,y,x){if(y=Zp(a,y,x),x instanceof Ni&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var b=-1,E=a.Pa.s,z=E.length,nt=0;nt<z;nt++){var ot=E[nt];if(ot===x&&(y=nt,0<=b)||0>b&&ot.containingGroup===x&&(b=nt,0<=y))break}!(0>b)&&b<y&&(E=a.Pa,E.mb(y),E.Gb(b,x))}y=x.containingGroup,y!==null&&qd(a,-1,y)}x.svg!==null&&x.svg.remove()}function Zp(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,nt=NaN;0<=z&&(nt=a.M(z).zOrder,!!isNaN(nt));)z--;for(var ot=y+1,at=NaN;ot<E&&(at=a.M(ot).zOrder,!!isNaN(at));)ot++;if(!isNaN(nt)&&nt>b)for(;;){if(z===-1||nt<=b){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(nt=NaN;0<=--z&&(nt=a.M(z).zOrder,isNaN(nt)););}else if(!isNaN(at)&&at<b)for(;;){if(ot===E||at>=b){if(ot--,ot===y)break;return a.mb(y),a.Gb(ot,x),ot}for(at=NaN;++ot<E&&(at=a.M(ot).zOrder,isNaN(at)););}return y}we.Object.defineProperties(Vo.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===""&&Pe("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&Pe("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)&&pn(a,"0 <= value <= 1",Vo,"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))}}}),Vo.prototype.findObjectsNear=Vo.prototype.og,Vo.prototype.findObjectsIn=Vo.prototype.Cf,Vo.prototype.findObjectsAt=Vo.prototype.ji,Vo.prototype.findObjectAt=Vo.prototype.ic,Vo.className="Layer";function on(a,y){if(sm||(ss(),sm=!0),Oi(this),Hl=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,qr){var x=this,b=function(){x.removeEventListener(Le.document,"DOMContentLoaded",b,!1),x.setRTL()};Le.document.body!==null?this.setRTL():x.addEventListener(Le.document,"DOMContentLoaded",b,!1)}this.ol=null,hf.add("Model",Er);var E=this;return this.Hb=function(z){var nt=E.partManager;if(z.model===nt.diagram.model&&nt.diagram.aa){nt.diagram.aa=!1;try{var ot=z.change;z.modelChange===""&&ot===Xr&&nt.updateDataBindings(z.object,z.propertyName)}finally{nt.diagram.aa=!0}}},this.Oc=function(z){E.partManager.doModelChanged(z)},this.hu=this.ku=null,Xp(this),this.model=cy(),this.Wg=!0,_p(this),this.layout=new Gr,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 am,a!==void 0&&(typeof a=="string"||Le.Element&&a instanceof Element?cg(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var kh,Hl;function Xp(a){a.Yd=new ra,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new bn,a.pj=new qn,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Se(NaN,NaN).freeze(),a.du=new Se(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Se(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new Vi,a.zu=new Se(NaN,NaN).freeze(),a.ut=new yn(NaN,NaN,NaN,NaN).freeze(),a.rj=new li(0,0,0,0).freeze(),a.sj=Uu,a.nu=!1,a.Zt=null,a.fu=null,a.yh=ds,a.zk=Cr,a.Fg=ds,a.pq=Cr,a.yt=No,a.Bt=No,a.Fc=!0,a.pn=!1,a.De=new En,a.Eh=new qn,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new li(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new hs,a.bq.diagram=a,a.Qg=new hs,a.Qg.diagram=a,a.cj=new hs,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,nv(a),a.ai=new En,a.Ht=!0,a.uu=Gu,a.pw=!1,a.wu=ud,a.it="auto",a.Op="auto",a.zh=null,a.Fh=null,a.Bh=null,a.Qh=null,a.Oh=null,a.Nh=null,a.Qt=null,a.Lh=null,a.xt=!1,a.Mh=null,a.Ph=null,a.$h=null,a.Ch=null,a.Rt=!1,a.Yt={},a.oj=[null,null],a.Wg=!1,a.Iw=!1,a.ou=!1,a.lt=!1,a.rw=!0,a.ld=!1,a.$i=!1,a.Tw=!0,a.Ce=-2,a.Og=new qn,a.Xn=new bn,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 li(5).freeze(),a.Hw=new En().freeze(),a.Nt=999999999,a.nw=new En().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 En,a.ow=new En,a.Xh=null,a.aw=new Wn(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Se,bounds:new yn,Py:new Wn,bA:new Wn,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new yn(NaN,NaN,NaN,NaN).freeze(),a.wo=new Wn(NaN,NaN).freeze(),a.Sp=new yn(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new qn;var y=new Vn,x=new Ir;x.bind(new po("text","",Ln)),y.add(x),a.ny=y,a.Lg.add("",y),y=new Vn,x=new Ir,x.stroke="brown",x.bind(new po("text","",Ln)),y.add(x),a.Lg.add("Comment",y),y=new Vn,y.selectable=!1,y.avoidable=!1,x=new Ri,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new Wn(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new qn,y=new Ni,y.selectionObjectName="GROUPPANEL",y.type=Fn.Vertical,x=new Ir,x.font="bold 12pt sans-serif",x.bind(new po("text","",Ln)),y.add(x),x=new Fn(Fn.Auto),x.name="GROUPPANEL";var b=new Ri;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new Ms,b.padding=new li(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new qn,y=new zn,x=new Ri,x.isPanelMain=!0,y.add(x),x=new Ri,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new zn,x=new Ri,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new cr,y.type=Fn.Auto,x=new Ri,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new Ms,x.margin=new li(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new cr,y.type=Fn.Link,x=new Ri,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 Er,a.toolManager=new Kr,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new lt,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=Yp(),a.eq=null,a.fq=Tr,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 Se,a.zy=500,a.wp=new Se,a.wq=!1}on.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),wc=null,Fh="",hg(this,!1),this.Xn.clear(),bf(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function hg(a,y){a.animationManager.Cc(!0),a.Hw=new En().freeze(),a.nw=new En().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=[],nt=a.Wa.length;if(y){for(y=0;y<nt;y++)for(var ot=a.Wa.s[y].parts;ot.next();){var at=ot.value;at!==E&&at.data===null&&z.push(at)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<nt;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(),bf(),a.Og.clear(),oi=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),z}function Yp(){return null}on.prototype.reset=function(){this.clear(),this.vb=!0,Xp(this),Ml(this),this.Wg=!0,_p(this),this.layout=new Gr,this.Wg=!1,this.model=cy(),this.model.undoManager=new _r,this.vb=this.rn=!1,this.N()},on.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Le.document.body);var y=Hn("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},on.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Le.document.body);var y=0;if(qr){var x=om;y=kh,x===null&&(x=om=Hn("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=kh=Hn("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||vi||(y=11)}this.Db=y,this.Gw=!0},on.prototype.qb=function(a){a.classType===on&&(this.autoScale=a)},on.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 cg(a,y){if(qr){if(y!=null||Pe("Diagram setup requires an argument DIV."),a.Ka!==null&&Pe("Diagram has already completed setup."),typeof y=="string"?a.Ka=Le.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:Pe("No DIV or DIV id supplied: "+y),a.Ka===null&&Pe("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&Pe("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Le.ResizeObserver){var x=wn(function(){a.$b()},250);a.ol=new Le.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Le.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=Le.go;var E=new Va(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",Le.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),Sg(a,a.Aa,a.ya),a.Ka.insertBefore(E.Oa,a.Ka.firstChild),E=new Va(null),E.width=1,E.height=1,a.jw=E,a.oy=E.context,qr){E=Hn("div");var z=Hn("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=Qp,E.addEventListener("pointerdown",qp),E.H=a,E.uy=!0,E.vy=!0,a.ku=E,a.hu=z}a.hk=wn(function(){a.Yh=null,a.N()},300),a.Ov=wn(function(){dg(a)},250),a.preventDefault=function(nt){return nt.preventDefault(),!1},a.$j=function(nt){if(a.isEnabled){var ot=La(a,nt,!0);ot.bubbles=!0;var at=0,ht=0;ot.delta=0,nt.deltaX!==void 0?(nt.deltaX!==0&&(at=0<nt.deltaX?1:-1),nt.deltaY!==0&&(ht=0<nt.deltaY?1:-1),ot.delta=Math.abs(nt.deltaX)>Math.abs(nt.deltaY)?-at:-ht):nt.wheelDeltaX!==void 0?(nt.wheelDeltaX!==0&&(at=0<nt.wheelDeltaX?-1:1),nt.wheelDeltaY!==0&&(ht=0<nt.wheelDeltaY?-1:1),ot.delta=Math.abs(nt.wheelDeltaX)>Math.abs(nt.wheelDeltaY)?-at:-ht):nt.wheelDelta!==void 0&&nt.wheelDelta!==0&&(ot.delta=0<nt.wheelDelta?1:-1),a.doMouseWheel(),el(ot,nt)}},a.aA=function(nt){a.isEnabled&&(a.Vk=!1,La(a,nt,!0),nt=a.currentTool,nt.cancelWaitAfter(),nt.standardMouseOver())},a.ui=function(nt){if(a.isEnabled){a.Vk=!0;var ot=a.Yt;ot[nt.pointerId]===void 0&&(ot[nt.pointerId]=nt),ot=a.oj;var at=!1;if(ot[0]===null||ot[0].pointerId!==nt.pointerId&&ot[0].pointerType===nt.pointerType)if(ot[1]!==null&&ot[1].pointerId===nt.pointerId)ot[1]=nt,at=!0;else if(ot[0]===null)ot[0]=nt;else if(ot[1]===null)ot[1]=nt,at=!0;else{nt.preventDefault();return}else ot[0]=nt;(ot=nt.pointerType==="touch"||nt.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var ht=at;at=mg(a,nt,!0,!1,!0,ht),mc(a,nt,at),at.targetDiagram=pg(nt,nt.target),at.targetObject=null,ht||at.clone(a.bq),ht=a.uw,ot=ot?25:10,nt.timeStamp-a.tw<a.zy&&!(Math.abs(ht.x-nt.screenX)>ot||Math.abs(ht.y-nt.screenY)>ot)?a.yq++:a.yq=1,at.clickCount=a.yq,a.tw=nt.timeStamp,a.uw.sg(nt.screenX,nt.screenY),a.doMouseDown(),nt.button===1?nt.preventDefault():el(at,nt)}},a.dk=function(nt){if(a.isEnabled){a.Vk=!0;var ot=a.oj;if(ot[0]===null||ot[0].pointerId!==nt.pointerId&&ot[0].pointerType===nt.pointerType){if(ot[1]!==null&&ot[1].pointerId===nt.pointerId){ot[1]=nt;return}if(ot[0]===null)ot[0]=nt;else return}else ot[0]=nt;if(ot[0].pointerId===nt.pointerId){ot=mg(a,nt,!1,!1,!1,ot[1]!==null);var at=Le.document.elementFromPoint(nt.clientX,nt.clientY)||null;at!==null&&at.shadowRoot!==void 0&&at.shadowRoot!==null&&(at=at.shadowRoot.elementFromPoint(nt.clientX,nt.clientY));var ht=a,dt=nt;at&&at.H&&(dt=nt,ht=at.H),ot.targetDiagram=ht,mc(a,dt,ot),ot.targetObject=null,a.doMouseMove(),el(ot,nt)}}},a.fk=function(nt){if(a.isEnabled){a.Vk=!0;var ot=nt.pointerType==="touch"||nt.pointerType==="pen",at=a.Yt;if(ot&&a.qu)delete at[nt.pointerId],nt.preventDefault();else if(at=a.oj,at[0]===null||at[0].pointerId!==nt.pointerId&&at[0].pointerType===nt.pointerType)at[1]!==null&&at[1].pointerId===nt.pointerId&&(at[1]=null);else{at[0]=null,at=mg(a,nt,!1,!0,!0,!1);var ht=Le.document.elementFromPoint(nt.clientX,nt.clientY)||null;ht!==null&&ht.shadowRoot!==void 0&&ht.shadowRoot!==null&&(ht=ht.shadowRoot.elementFromPoint(nt.clientX,nt.clientY)),ht!==null&&ht.H instanceof on&&ht.H!==a&&mc(ht.H,nt,at),ht===null&&(ht=nt.target),mc(a,nt,at),at.clickCount=a.yq,at.targetDiagram=pg(nt,ht),at.targetObject=null,a.doMouseUp(),el(at,nt),ot&&(a.wq=!1)}}},a.ek=function(nt){if(a.isEnabled){a.Vk=!1;var ot=a.Yt;ot[nt.pointerId]&&delete ot[nt.pointerId],ot=a.oj,ot[0]!==null&&ot[0].pointerId===nt.pointerId&&(ot[0]=null),ot[1]!==null&&ot[1].pointerId===nt.pointerId&&(ot[1]=null),nt.pointerType!=="touch"&&nt.pointerType!=="pen"&&(nt=a.currentTool,nt.cancelWaitAfter(),nt.standardMouseOver())}},a.ck=function(nt){var ot=a.oj;ot[0]!==null&&ot[0].pointerId===nt.pointerId?(ot[0]=null,a.wq=!1):ot[1]!==null&&ot[1].pointerId===nt.pointerId&&(ot[1]=null)},a.Vp=b.Z["d"+dd[1]+dd[2]+"wI"+bc.slice(1,5)]["b"+Ix.slice(1,y)](b.Z,cd,y,y),b.Vc(!0),ev(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}on.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},on.prototype.removeEventListener=function(a,y,x,b){a.removeEventListener(y,x,{capture:b})};function ev(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(Le,"resize",a.Ov,!1)}function Bs(a){30<a.Sq&&(a.Yh=1)}function rd(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),ei&&ei.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}on.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Le.devicePixelRatio||1},on.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},on.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},on.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},on.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},on.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},on.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},on.prototype.doFocus=function(){this.focus()},on.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Le.scrollX||Le.pageXOffset,y=Le.scrollY||Le.pageYOffset;this.ta.focus(),Le.scrollTo(a,y)}},on.prototype.Oy=function(){this.H.R("GainedFocus")},on.prototype.Ny=function(){this.H.R("LostFocus")};function dg(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===ds&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function _p(a){var y=new Vo;y.name="Background",a.Al(y),y=new Vo,y.name="",a.Al(y),y=new Vo,y.name="Foreground",a.Al(y),y=new Vo,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Vo,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Vo,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function Jp(a){var y=new Fn(Fn.Grid);y.name="GRID";var x=new Ri;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Ri,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Ri,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Ri,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Ri,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Ri,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new di,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 Qp(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Sc(this.H)}function qp(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Sc(this.H)}on.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,nt=b.x-z.left,ot=b.y-z.top,at=b.width+z.left+z.right,ht=b.height+z.top+z.bottom,dt=b.right+z.right;z=b.bottom+z.bottom;var Et=E.x;b=E.y;var Ht=E.width,Jt=E.height,ee=E.right,se=E.bottom;E=this.scale;var Ce=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":Ce=Ce+a.scrollWidth-a.clientWidth;break;case"reverse":Ce=a.scrollWidth-Ce-a.clientWidth}var ve=Ce;Ht<at||Jt<ht?(Ce=Se.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==ve&&(Ce.x=ve/E+nt,this.ju=ve),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(Ce.y=a.scrollTop/E+ot,this.lu=a.scrollTop),this.position=Ce,Se.free(Ce),this.Ee=this.qr=!1):(Ce=Se.alloc(),a.uy&&this.allowHorizontalScroll&&(nt<Et&&(this.position=Ce.h(ve+nt,this.position.y)),dt>ee&&(this.position=Ce.h(-(y.scrollWidth-this.Aa)+ve-this.Aa/E+dt,this.position.y))),a.vy&&this.allowVerticalScroll&&(ot<b&&(this.position=Ce.h(this.position.x,a.scrollTop+ot)),z>se&&(this.position=Ce.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+z))),Se.free(Ce),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,dt=b.right,ee=E.right,z=b.bottom,se=E.bottom,nt=b.x,Et=E.x,ot=b.y,b=E.y,Ht>=at&&nt>=Et&&dt<=ee&&(x.style.width="1px"),Jt>=ht&&ot>=b&&z<=se&&(x.style.height="1px"))}},on.prototype.computeBounds=function(a){return a===void 0&&(a=new yn),ns(this),fg(this,a)};function fg(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 nt=b[z];if(nt.visible&&nt.isInDocumentBounds){nt=nt.Pa.s;for(var ot=nt.length,at=0;at<ot;at++){var ht=nt[at];ht.isInDocumentBounds&&ht.isVisible()&&(ht=ht.actualBounds,ht.w()&&(x?(x=!1,y.assign(ht)):y.ed(ht)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}on.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(nn(a))for(var b=0;b<a.length;b++){var E=a[b];!y&&E instanceof zn||(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 zn||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new yn(NaN,NaN,0,0):x};function Ga(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=Se.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=yn.allocAt(0,0,b.width,b.height);var E=Se.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,yn.free(b),Se.free(E),Se.free(x)}x=a.yh,y&&a.Fg!==ds&&(x=a.Fg);var z=x!==ds?pc(a,x):a.scale;x=a.pa.x,b=a.pa.y,E=a.Aa/z;var nt=a.ya/z,ot=a.zk,at=a.pq;y&&!ot.sb()&&(at.sb()||at.Xb())&&(ot=at.Xb()?ur:at),gg(a,a.documentBounds,E,nt,ot,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,Je.B(z.x,x)&&Je.B(z.y,b)&&Je.B(z.width,E)&&Je.B(z.height,nt)||a.onViewportBoundsChanged(new yn(x,b,E,nt),z,y,!1)}}function pc(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),nt=a.ya+(a.Be?a.Db:0),ot=z/E,at=nt/b;return y===ga?(y=Math.min(at,ot),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===Bh?(y=at>ot?(nt-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}on.prototype.zoomToFit=function(){var a=this.sj;this.sj=Uu,this.scale=pc(this,ga),a!==Uu&&(Ga(this,!1),gg(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},ne=on.prototype,ne.BA=function(a,y){y===void 0&&(y=ga);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===ga||y===Bh)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===Bh?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 Se(a.x,a.y)}},ne.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new Se(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))},ne.zz=function(a){if(a instanceof Xe){this.eq=a;var y=Se.alloc();this.fq=this.op(a.ga(No,y)),Se.free(y)}else this.eq=null,this.fq=Tr};function gg(a,y,x,b,E,z){var nt=Se.allocAt(a.pa.x,a.pa.y),ot=nt.x,at=nt.y;if(a.eq!==null){var ht=Se.alloc();ht=a.eq.ga(No,ht),ot=ht.x-a.fq.x/a.scale,at=ht.y-a.fq.y/a.scale,E=ao,Se.free(ht)}(z||a.scrollMode===Uu)&&(E.sb()&&(x>y.width&&(ot=y.x+(E.x*y.width+E.offsetX)-(E.x*x-E.offsetX)),b>y.height&&(at=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?(ot=Math.min(ot+x/2,y.right+Math.max(z,E.right)-x/2),ot=Math.max(ot,y.left-Math.max(z,E.left)+x/2),ot-=x/2):ot>y.left?ot=y.left:ot<y.right-x&&(ot=y.right-x),x=b-y.height,b<y.height+E.top+E.bottom?(at=Math.min(at+b/2,y.bottom+Math.max(x,E.bottom)-b/2),at=Math.max(at,y.top-Math.max(x,E.top)+b/2),at-=b/2):at>y.top?at=y.top:at<y.bottom-b&&(at=y.bottom-b)),nt.x=isFinite(ot)?ot:-a.yb.left,nt.y=isFinite(at)?at:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,nt),nt.x=y.x,nt.y=y.y),Up(a.Yd,a.pa,nt),a.pa.h(nt.x,nt.y),Ml(a),Se.free(nt)}ne.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Wl(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof di)return a}else if(a=Wl(this,a,function(x){return x.part}),a instanceof di)return a;return null},ne.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),ns(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 Wl(a,y,x,b){for(x===void 0&&(x=null),b===void 0&&(b=null),ns(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}ne.lz=function(a,y,x){return y===void 0&&(y=!0),od(this,a,function(b){return b.part},y?function(b){return b instanceof di&&b.canSelect()}:null,x)};function od(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof bn||E instanceof En||(E=new En),ns(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,b,E)}return E}ne.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof bn||b instanceof En||(b=new En),ns(this);for(var E=this.Wa.iteratorBackwards;E.next();){var z=E.value;z.visible&&z.ji(a,y,x,b)}return b},ne.ux=function(a,y,x,b){return y===void 0&&(y=!1),x===void 0&&(x=!0),$d(this,a,function(E){return E instanceof di&&(!x||E.canSelect())},y,b)},ne.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof bn||E instanceof En||(E=new En),ns(this);for(var z=this.Wa.iteratorBackwards;z.next();){var nt=z.value;nt.visible&&nt.Cf(a,y,x,b,E)}return E},ne.Nu=function(a,y,x,b,E,z){var nt=new En;ns(this);for(var ot=this.Wa.iteratorBackwards;ot.next();){var at=ot.value;at.visible&&at.Nu(a,y,x,b,nt,E,z)}return nt};function $d(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 bn||E instanceof En||(E=new En),ns(a),a=a.Wa.iteratorBackwards;a.next();){var nt=a.value;nt.visible&&!nt.isTemporary&&nt.Cf(y,z,x,b,E)}return E}ne.mz=function(a,y,x,b,E){return x===void 0&&(x=!0),b===void 0&&(b=!0),sd(this,a,y,function(z){return z instanceof di&&(!b||z.canSelect())},x,E)},ne.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 bn||E instanceof En)&&(z=E),E=!0),z instanceof bn||z instanceof En||(z=new En),ns(this);for(var nt=this.Wa.iteratorBackwards;nt.next();){var ot=nt.value;ot.visible&&ot.og(a,y,x,b,E,z)}return z};function sd(a,y,x,b,E,z){var nt=null;for(nt===void 0&&(nt=null),b===void 0&&(b=null),E===void 0&&(E=!0),E!==!1&&E!==!0&&((E instanceof bn||E instanceof En)&&(z=E),E=!0),z instanceof bn||z instanceof En||(z=new En),ns(a),a=a.Wa.iteratorBackwards;a.next();){var ot=a.value;ot.visible&&!ot.isTemporary&&ot.og(y,x,nt,b,E,z)}return z}on.prototype.acceptEvent=function(a){return La(this,a,a instanceof MouseEvent)};function La(a,y,x){var b=a.Qg;return a.Qg=a.cj,a.cj=b,b.diagram=a,b.event=y,x?mc(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),vi&&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=pg(y,y.target),b.targetObject=null,b}function pg(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 mg(a,y,x,b,E,z){var nt=a.Qg;return a.Qg=a.cj,a.cj=nt,nt.diagram=a,nt.clickCount=1,a=nt.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),nt.modifiers=a,nt.event=y,nt.timestamp=y.timeStamp,nt.button=y.button,nt.buttons=y.buttons,vi&&y.button===0&&y.ctrlKey&&(nt.button=2),nt.down=x,nt.up=b,nt.handled=!1,nt.bubbles=E,nt.isMultiTouch=z,nt}function el(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}on.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=La(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.down=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del";break;case 48:x.key="0";break;case 187:case 61:case 107:x.key="Add";break;case 189:case 173:case 109:x.key="Subtract";break;case 27:x.key="Esc"}return y.doKeyDown(),el(x,a)},on.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=La(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.up=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del"}return y.doKeyUp(),el(x,a)},on.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=La(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),el(x,a)},on.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=La(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),el(x,a)},on.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Se(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?Mi(new Se(y,a),this.Ab):new Se(y,a)};function mc(a,y,x){var b=a.ta,E=a.Aa,z=a.ya,nt=0,ot=0;b!==null&&(b=b.getBoundingClientRect(),nt=y.clientX-E/b.width*b.left,ot=y.clientY-z/b.height*b.top),x.viewPoint.h(nt,ot),a.Ab!==null?(y=Se.allocAt(nt,ot),a.Ab.Cd(y),x.documentPoint.assign(y),Se.free(y)):x.documentPoint.h(nt,ot)}function vg(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))}}on.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function $p(a){a.ld||ns(a),a.Va()}on.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},ne=on.prototype,ne.Pz=function(){return this.kg},ne.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,Aa(this),this.hf=!1,this.du=new Se(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&Nn(function(){b.ld=!1,zl(y,"Model"),a(b)},1)},ne.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;Le.requestAnimationFrame(function(){y.kg&&y.bd()})}},ne.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),Aa(this))};function Nh(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Sc(a)||(y&&ns(a),x&&Ga(a,!1))}function Aa(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,nt=0;nt<z;nt++){var ot=E[nt];xo(ot,!1),ot.v()}b.clear()}b=a.ow,0<b.count&&(b.each(function(at){at.Nv()}),b.clear()),E=b=!1,x.defaultAnimation.isAnimating&&(E=!0,b=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||dg(a),Nh(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(Al(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),ns(a),z=!1,(!a.hf||a.xh)&&(a.hf?Ag(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Ag(a,!1)),z=!0),a.Jk=!1,ns(a),a.ou||$p(a),Nh(a,!0,!1),nt=!1,z?(x=yn.alloc(),x.assign(a.viewportBounds),a.hf||(nt=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,yg(a)),a.R("LayoutCompleted"),Nh(a,!0,!1),yn.free(x)):x.Ok&&x.Qw&&(a.Fg!==ds?a.scale=pc(a,a.Fg):a.yh!==ds?a.scale=pc(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),Ga(a,!0)),z&&nt&&a.eb("Initial Layout"),ns(a),y||a.gc(a.ib),E&&(a.skipsUndoManager=b),a.ld=!1}}function yg(a){if(a.Fg!==ds)a.scale=pc(a,a.Fg);else if(a.yh!==ds)a.scale=pc(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}Ga(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),Al(a)}function ns(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 En,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof Ni&&b.U&65536&&(b.U=b.U^65536)})}}ne.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Ni||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Ni&&x.isVisible()&&ad(this,x);for(a.reset();a.next();)x=a.value,x instanceof zn&&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 cr&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function ad(a,y){for(var x=sn(),b=sn(),E=y.memberParts;E.next();){var z=E.value;z.isVisible()&&(z instanceof Ni?(ma(z)||Ls(z)||jh(z))&&ad(a,z):z instanceof zn?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(xn(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();xn(b)}ne.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},ne.gc=function(a){if(this.Ka!==null){if(this.ta===null&&Pe("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){yc(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,nt=Math.round(y.y*E)/E,ot=this.Ab;for(ot.reset(),E!==1&&ot.scale(E),y.x===0&&y.y===0||ot.translate(-z,-nt),a.ti=null,_y(a,ot.m11,ot.m12,ot.m21,ot.m22,ot.dx,ot.dy),this.pb!==1&&(a.globalAlpha=this.pb),Hu(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?Cc(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(Vi.prototype.Cd=Vi.prototype.Eu),this.Fc=this.vd=!1}}}}else t:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,yc(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 t;z=this.Ab,z.reset(),nt=this.Mb,ot=this.pa;var at=this.Ca,ht=Math.round(ot.x*at)/at,dt=Math.round(ot.y*at)/at;for(at!==1&&z.scale(at),ot.x===0&&ot.y===0||z.translate(-ht,-dt),a.setTransform(nt,0,0,nt,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),Hu(this,a),ot=0;ot<E;ot++)a.setTransform(nt,0,0,nt,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[ot].gc(a,this);if(y=!1,this.Yf?Cc(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(Vi.prototype.Cd=Vi.prototype.Eu),b?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,b=ei&&ei.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 tf(a,y,x,b,E,z,nt,ot,at,ht){if(a.Ka!==null){a.ta===null&&Pe("No canvas specified"),nt===void 0&&(nt=null),ot===void 0&&(ot=null),at===void 0&&(at=!1),ht===void 0&&(ht=!1),yc(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var dt=a.Ca;a.Ca=E;var Et=a.Wa.s,Ht=Et.length;try{var Jt=new yn(z.x,z.y,b.width/E,b.height/E),ee=Jt.copy();ee.Co(x),Al(a,ee),ns(a),a.Fd(Et,Ht,a,Jt),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,b.width,b.height),ot!==null&&ot!==""&&(y.fillStyle=ot,y.ox(0,0,b.width,b.height));var se=a.Mb;y.scale(se,se);var Ce=Vi.alloc();Ce.reset(),Ce.translate(x.left,x.top),Ce.scale(E),z.x===0&&z.y===0||Ce.translate(-z.x,-z.y),y.setTransform(Ce.m11,Ce.m12,Ce.m21,Ce.m22,Ce.dx,Ce.dy),y.yc(),y instanceof oa&&_y(y,Ce.m11,Ce.m12,Ce.m21,Ce.m22,Ce.dx,Ce.dy),Vi.free(Ce),Hu(a,y),y.globalAlpha=a.pb;var ve=a.Qj("Grid");if(nt){var Ae=new En,Ie=nt.iterator;for(Ie.reset();Ie.next();){var Be=Ie.value;Be instanceof di&&(ht||Be.layer!==ve)&&(Be.Gj(),Ae.add(Be))}for(ht=0;ht<Ht;ht++)Vp(Et[ht],y,a,Ae,at);Ae.each(function(rn){return rn.Gj()})}else for(Ae=0;Ae<Ht;Ae++){var Ve=Et[Ae];Ve===ve?ht&&Ve.gc(y,a,!0):Ve.gc(y,a,at)}a.$i=!1,a.Yf&&Cc(a.Yf,a)&&a.Vp()}finally{a.Ca=dt,a.ib.Vc(!0),a.vd=!0,a.Fd(Et,Ht,a,a.viewportBounds),Al(a),a.ib instanceof oa&&(a.ib.Nj.PA(),a.redraw())}}}ne.Gf=function(a){return this.Rg[a]},ne.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},ne.Tx=function(){this.Rg=new hi,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(vi||ti),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Hu(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}ne.Ql=function(a){return this.on[a]},ne.sA=function(a,y){this.on[a]=y},ne.Sx=function(){this.on=new hi,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},ne.set=function(a){return Object.assign(this,a),this},ne.Du=function(a){return this.nm(a)},ne.nm=function(a){return vc(this,a),this};function vc(a,y){var x=a instanceof Fn,b=a instanceof on,E;for(E in y){E===""&&Pe("Setting properties requires non-empty property names");var z=a,nt=E;if(x||b){var ot=E.indexOf(".");if(0<ot){var at=E.substring(0,ot);x?z=a.fb(at):(z=a[at],z==null&&(z=a.toolManager[at])),Ke(z)?nt=E.substr(ot+1):Pe("Unable to find object named: "+at+" in "+a.toString()+" when trying to set property: "+E)}}if(nt[0]!=="_"&&!Mn(z,nt))if(b&&nt==="ModelChanged"){a.Yw(y[nt]);continue}else if(b&&nt==="Changed"){a.Pe(y[nt]);continue}else if(b&&Mn(a.toolManager,nt))z=a.toolManager;else if(b&&nm(a,nt)){a.Bj(nt,y[nt]);continue}else if(a instanceof ri&&nt==="Changed"){a.Pe(y[nt]);continue}else Pe('Trying to set undefined property "'+nt+'" on object: '+z.toString());z[nt]=y[E],nt[0]==="_"&&z instanceof Xe&&z.Vw(nt)}}ne.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new qn,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},ne.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")},on.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!==hd&&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=yn.alloc(),Lg(this,this.computeBounds(b)),yn.free(b)),b=this.ta,b===null||b instanceof Tl)))){var nt=this.Mb;E=this.Aa*nt;var ot=this.ya*nt,at=this.scale*nt;z=Math.round(Math.round(y.x*at)-Math.round(a.x*at)),y=Math.round(Math.round(y.y*at)-Math.round(a.y*at)),at=this.jw,a=this.oy,at.width!==E&&(at.width=E),at.height!==ot&&(at.height=ot),a.clearRect(0,0,E,ot),at=190*nt;var ht=70*nt,dt=Math.max(z,0),Et=Math.max(y,0),Ht=Math.floor(E-dt),Jt=Math.floor(ot-Et);a.drawImage(b.Oa,dt,Et,Ht,Jt,0,0,Ht,Jt),Cc(this.Yf,this)&&a.clearRect(0,0,at,ht),b=sn(),a=sn(),Jt=Math.abs(z),Ht=Math.abs(y);var ee=dt===0?0:E-Jt;dt=Se.allocAt(ee,0),Jt=Se.allocAt(Jt+ee,ot),a.push(new yn(Math.min(dt.x,Jt.x),Math.min(dt.y,Jt.y),Math.abs(dt.x-Jt.x),Math.abs(dt.y-Jt.y)));var se=this.Ab;if(se.reset(),se.scale(nt,nt),this.Ca!==1&&se.scale(this.Ca),nt=this.pa,(nt.x!==0||nt.y!==0)&&isFinite(nt.x)&&isFinite(nt.y)&&se.translate(-nt.x,-nt.y),Mi(dt,se),Mi(Jt,se),b.push(new yn(Math.min(dt.x,Jt.x),Math.min(dt.y,Jt.y),Math.abs(dt.x-Jt.x),Math.abs(dt.y-Jt.y))),ee=Et===0?0:ot-Ht,dt.h(0,ee),Jt.h(E,Ht+ee),a.push(new yn(Math.min(dt.x,Jt.x),Math.min(dt.y,Jt.y),Math.abs(dt.x-Jt.x),Math.abs(dt.y-Jt.y))),Mi(dt,se),Mi(Jt,se),b.push(new yn(Math.min(dt.x,Jt.x),Math.min(dt.y,Jt.y),Math.abs(dt.x-Jt.x),Math.abs(dt.y-Jt.y))),Cc(this.Yf,this)&&(E=0<z?0:-z,ot=0<y?0:-y,dt.h(E,ot),Jt.h(at+E,ht+ot),a.push(new yn(Math.min(dt.x,Jt.x),Math.min(dt.y,Jt.y),Math.abs(dt.x-Jt.x),Math.abs(dt.y-Jt.y))),Mi(dt,se),Mi(Jt,se),b.push(new yn(Math.min(dt.x,Jt.x),Math.min(dt.y,Jt.y),Math.abs(dt.x-Jt.x),Math.abs(dt.y-Jt.y)))),Se.free(dt),Se.free(Jt),Nh(this,!1,!0),this.Ka===null&&Pe("No div specified"),this.ta===null&&Pe("No canvas specified"),!this.animationManager.zb&&(E=this.ib,this.Fc)){for(yc(this),ot=this.Mb,E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,this.Aa*ot,this.ya*ot),E.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,nt=this.Ca,at=Math.round(z.x*nt)/nt,ht=Math.round(z.y*nt)/nt,y=this.Ab,y.reset(),nt!==1&&y.scale(nt),z.x===0&&z.y===0||y.translate(-at,-ht),E.save(),E.beginPath(),z=a.length,nt=0;nt<z;nt++)at=a[nt],at.width!==0&&at.height!==0&&E.rect(Math.floor(at.x),Math.floor(at.y),Math.ceil(at.width),Math.ceil(at.height));for(E.clip(),E.setTransform(ot,0,0,ot,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),Hu(this,E),E.globalAlpha=this.pb,ot=0;ot<z;ot++)if(nt=y[ot],at=b,nt.visible&&nt.pb!==0){ht=du(nt,E),Et=nt.Zq,Et.length=0,dt=this.scale,Ht=yn.alloc(),Jt=nt.Pa.s,se=Jt.length,ee=at.length;for(var Ce=0;Ce<se;Ce++){var ve=Jt[Ce],Ae=Nc(ve,ve.actualBounds);t:{for(var Ie=2/dt,Be=4/dt,Ve=0;Ve<ee;Ve++){var rn=at[Ve];if(rn.width!==0&&rn.height!==0&&Ae.Vu(rn.x-Ie,rn.y-Ie,rn.width+Be,rn.height+Be)){Ae=!0;break t}}Ae=!1}Ae&&nt.Oj(E,ve,this,Et,dt,Ht,!0)}yn.free(Ht),E.globalAlpha=ht}E.restore(),E.Vc(!0),this.Yf&&Cc(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}xn(b),xn(a),this.ld=!1}}else this.bd();x&&(Bs(this),this.bd(),rd(this,!0))}else x?(Bs(this),this.bd(),rd(this,!0)):this.bd()}};function yc(a){a.pn!==!1&&(a.pn=!1,Sg(a,a.Aa,a.ya))}function Sg(a,y,x){Ml(a);var b=a.Mb;a.ta.resize(y*b,x*b,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Sc(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,nt=a.gf?a.Db:0,ot=a.Be?a.Db:0,at=E.clientWidth||x+nt,ht=E.clientHeight||b+ot,dt=a.viewportBounds;E=dt.x;var Et=dt.y,Ht=dt.width,Jt=dt.height;if((at!==x+nt||ht!==b+ot)&&(a.gf=!1,a.Be=!1,ot=nt=0,a.Aa=at,a.ya=ht,z=a.pn=!0,Ml(a)),!a.hf||!a.viewportBounds.w())return!0;var ee=a.ku,se=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var Ce=a.documentBounds,ve=0,Ae=0,Ie=0,Be=0,Ve=dt.width,rn=dt.height,Kn=a.rj;a.contentAlignment.sb()?(Ce.width>Ve&&(ve=Kn.left,Ae=Kn.right),Ce.height>rn&&(Ie=Kn.top,Be=Kn.bottom)):(ve=Kn.left,Ae=Kn.right,Ie=Kn.top,Be=Kn.bottom);var $n=Ce.width+ve+Ae,Yn=Ce.height+Ie+Be;Kn=a.scale;var jn=$n>at/Kn,An=Yn>ht/Kn;if(!(z||a.gf||a.Be||jn||An))return!0;ve=Ce.x-ve,at=dt.x,Ae=Ce.right+Ae,ht=dt.right+nt,Ie=Ce.y-Ie;var ki=dt.y;Ce=Ce.bottom+Be,dt=dt.bottom+ot;var Ei="1px";if(Be="1px",a.scrollMode===Uu&&(jn||An)&&(jn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(jn=1,ve+1<at&&(jn=Math.max((at-ve)*Kn+a.Aa,jn)),Ae>ht+1&&(jn=Math.max((Ae-ht)*Kn+a.Aa,jn)),Ve+nt+1<$n&&(jn=Math.max(($n-Ve)*Kn+a.Aa,jn)),Ei=jn.toString()+"px"),An&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(jn=1,Ie+1<ki&&(jn=Math.max((ki-Ie)*Kn+a.ya,jn)),Ce>dt+1&&(jn=Math.max((Ce-dt)*Kn+a.ya,jn)),rn+ot+1<Yn&&(jn=Math.max((Yn-rn)*Kn+a.ya,jn)),Be=jn.toString()+"px")),jn=Ei!=="1px",An=Be!=="1px",jn&&An||!jn&&!An||(An&&(ht-=a.Db),jn&&(dt-=a.Db),$n<Ve+nt||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(nt=1,ve+1<at&&(nt=Math.max((at-ve)*Kn+a.Aa,nt)),Ae>ht+1&&(nt=Math.max((Ae-ht)*Kn+a.Aa,nt)),Ve+1<$n&&(nt=Math.max(($n-Ve)*Kn+a.Aa,nt)),Ei=nt.toString()+"px"),jn=Ei!=="1px",nt=a.ya,jn!==a.Be&&(nt=jn?a.ya-a.Db:a.ya+a.Db),Yn<rn+ot||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(ot=1,Ie+1<ki&&(ot=Math.max((ki-Ie)*Kn+nt,ot)),Ce>dt+1&&(ot=Math.max((Ce-dt)*Kn+nt,ot)),rn+1<Yn&&(ot=Math.max((Yn-rn)*Kn+nt,ot)),Be=ot.toString()+"px"),An=Be!=="1px"),a.qr&&jn===a.Be&&An===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(jn!==a.Be&&(Ei==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=jn,se.style.width=Ei,An!==a.gf&&(Be==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(ot=Se.alloc(),An?(y.style.left=a.Db+"px",a.position=ot.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=ot.h(a.pa.x-a.Db/a.scale,a.pa.y)),Se.free(ot))),z&&Ml(a),a.gf=An,se.style.height=Be,a.gu=!0,z&&(a.pn=!0),y=ee.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Ve+1<$n?y=(a.position.x-ve)*Kn:ve+1<at?y=ee.scrollWidth-ee.clientWidth:Ae>ht+1&&(y=a.position.x*Kn)),a.tn)switch(a.bu){case"negative":y=-(ee.scrollWidth-y-ee.clientWidth);break;case"reverse":y=ee.scrollWidth-y-ee.clientWidth}return ee.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(rn+1<Yn?ee.scrollTop=(a.position.y-Ie)*Kn:Ie+1<ki?ee.scrollTop=ee.scrollHeight-ee.clientHeight:Ce>dt+1&&(ee.scrollTop=a.position.y*Kn)),at=a.Aa,ht=a.ya,ee.style.width=at+(a.gf?a.Db:0)+"px",ee.style.height=ht+(a.Be?a.Db:0)+"px",x!==at||b!==ht||a.animationManager.zb?(x=yn.allocAt(E,Et,Ht,Jt),a.onViewportBoundsChanged(x,a.viewportBounds,Kn,z),yn.free(x),!1):!0}ne=on.prototype,ne.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&Pe("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&&Pe('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(ho,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},ne.oi=function(a){this.partManager.oi(a);var y=this;Mc(a,function(x){xc(y,x)}),(a instanceof cr||a instanceof Ni&&a.placeholder!==null)&&a.v(),a.data!==null&&Mc(a,function(x){ly(y.partManager,x)}),Ls(a)!==!0&&jh(a)!==!0||this.De.add(a),j1(a,!0,this),H1(a)?(a.actualBounds.w()&&this.N(Nc(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Nc(a,a.actualBounds)),this.$b()},ne.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Mc(a,function(x){uy(y.partManager,x,y)}),this.De.remove(a),H1(a)?(a.actualBounds.w()&&this.N(Nc(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(Nc(a,a.actualBounds)),this.$b()},ne.remove=function(a){xg(this,a,!0)};function xg(a,y,x){var b=y.layer;b!==null&&b.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=b.pc(-1,y,!1),0<=x&&a.cb(Eo,"parts",b,y,null,x,null),a=y.layerChanged,a!==null&&a(y,b,null))}ne.Is=function(a,y){if(y===void 0&&(y=!1),nn(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 En,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},ne.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},on.prototype.moveParts=function(a,y,x,b){if(x===void 0&&(x=!1),b===void 0&&(b=ef(this)),this.toolManager!==null){var E=new qn;if(a!==null)if(nn(a))for(var z=0;z<a.length;z++)Ul(this,E,a[z],x,b);else for(a=a.iterator;a.next();)Ul(this,E,a.value,x,b);else{for(a=this.parts;a.next();)Ul(this,E,a.value,x,b);for(a=this.nodes;a.next();)Ul(this,E,a.value,x,b);for(a=this.links;a.next();)Ul(this,E,a.value,x,b)}Oh(this,E,y,b,x)}};function Ul(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=ef(a)),x instanceof Vn){if(y.add(x,a.Pd(E,x,x.location)),x instanceof Ni&&(x.placeholder!==null||E.dragsMembers))for(z=x.memberParts;z.next();)Ul(a,y,z.value,b,E,E.groupsAlwaysMove);for(z=x.linksConnected;z.next();){var nt=z.value;if(!y.contains(nt)){var ot=nt.fromNode,at=nt.toNode;ot!==null&&y.contains(ot)&&at!==null&&y.contains(at)&&Ul(a,y,nt,b,E)}}if(E.dragsTree)for(x=x.Ou();x.next();)Ul(a,y,x.value,b,E)}else if(x instanceof zn)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)Ul(a,y,x.value,b,E);else x instanceof cr||y.add(x,a.Pd(E,x,x.location))}function Oh(a,y,x,b,E){if(y!==null&&y.count!==0){var z=Se.alloc(),nt=Se.alloc();nt.assign(x),isNaN(nt.x)&&(nt.x=0),isNaN(nt.y)&&(nt.y=0),(x=a.Mr)||rf(a,y);for(var ot=sn(),at=sn(),ht=y.iterator,dt=Se.alloc();ht.next();){var Et=ht.key,Ht=ht.value;if(Et.Zc()){var Jt=wg(a,Et,y);Jt!==null?ot.push(new it(Et,Ht,Jt)):(!E||Et.canMove())&&(Jt=Ht.point,z.assign(Jt),a.computeMove(Et,z.add(nt),b,dt),Et.location=dt,Ht.shifted===void 0&&(Ht.shifted=new Se),Ht.shifted.assign(dt.re(Jt)))}else ht.key instanceof zn&&at.push(ht.sa)}for(Se.free(dt),E=ot.length,ht=0;ht<E;ht++)Et=ot[ht],z.assign(Et.info.point),Et.Su.shifted===void 0&&(Et.Su.shifted=new Se),Et.node.location=z.add(Et.Su.shifted);for(E=Se.alloc(),ht=Se.alloc(),Et=at.length,Ht=0;Ht<Et;Ht++){var ee=at[Ht];if(Jt=ee.key,Jt instanceof zn)if(Jt.suspendsRouting){Jt.Tg=null,dt=Jt.fromNode;var se=Jt.toNode;if(a.draggedLink!==null&&b.dragsLink)if(se=ee.value.point,Jt.dragComputation===null)y.add(Jt,a.Pd(b,Jt,nt)),Ju(Jt,nt.x-se.x,nt.y-se.y);else{ee=Se.allocAt(0,0),(dt=Jt.i(0))&&dt.w()&&ee.assign(dt);var Ce=dt=Se.alloc().assign(ee).add(nt);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(Ce=Se.alloc(),nf(a,Jt,dt,Ce,b)),dt.assign(Jt.dragComputation(Jt,dt,Ce)).re(ee),y.add(Jt,a.Pd(b,Jt,dt)),Ju(Jt,dt.x-se.x,dt.y-se.y),Se.free(ee),Se.free(dt),Ce!==dt&&Se.free(Ce)}else dt!==null&&(E.assign(dt.location),Ce=y.I(dt),Ce!==null&&E.re(Ce.point)),se!==null&&(ht.assign(se.location),Ce=y.I(se),Ce!==null&&ht.re(Ce.point)),dt!==null&&se!==null?E.Xa(ht)?(dt=ee.value.point,se=z,se.assign(E),se.re(dt),y.add(Jt,a.Pd(b,Jt,E)),Ju(Jt,se.x,se.y)):(Jt.suspendsRouting=!1,Jt.bb()):(ee=ee.value.point,dt=dt!==null?E:se!==null?ht:nt,y.add(Jt,a.Pd(b,Jt,dt)),Ju(Jt,dt.x-ee.x,dt.y-ee.y))}else(Jt.fromNode===null||Jt.toNode===null)&&(dt=ee.value.point,y.add(Jt,a.Pd(b,Jt,nt)),Ju(Jt,nt.x-dt.x,nt.y-dt.y))}Se.free(z),Se.free(nt),Se.free(E),Se.free(ht),xn(ot),xn(at),x||(ns(a),Ih(a,y))}}on.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new Se),b.assign(y),a===null)return b;var E=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=Se.alloc(),nf(this,a,y,E,x)),x=a.dragComputation!==null?a.dragComputation(a,y,E):E;var nt=a.minLocation,ot=nt.x;isNaN(ot)&&(ot=z?Math.round(1e3*a.location.x)/1e3:a.location.x),nt=nt.y,isNaN(nt)&&(nt=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var at=a.maxLocation,ht=at.x;return isNaN(ht)&&(ht=z?Math.round(1e3*a.location.x)/1e3:a.location.x),at=at.y,isNaN(at)&&(at=z?Math.round(1e3*a.location.y)/1e3:a.location.y),b.h(Math.max(ot,Math.min(x.x,ht)),Math.max(nt,Math.min(x.y,at))),E!==y&&Se.free(E),b};function ef(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function nf(a,y,x,b,E){if(E===void 0&&(E=ef(a)),b.assign(x),y!==null){var z=a.grid;y=E.gridSnapCellSize,a=y.width,y=y.height;var nt=E.gridSnapOrigin,ot=nt.x;if(nt=nt.y,E=E.gridSnapCellSpot,z!==null){var at=z.gridCellSize;isNaN(a)&&(a=at.width),isNaN(y)&&(y=at.height),z=z.gridOrigin,isNaN(ot)&&(ot=z.x),isNaN(nt)&&(nt=z.y)}z=Se.allocAt(0,0),z.yi(0,0,a,y,E),Je.No(x.x,x.y,ot+z.x,nt+z.y,a,y,b),Se.free(z)}}function rf(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof zn&&(y.suspendsRouting=!0)}function Ih(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof zn&&(x.suspendsRouting=!1,Yv(x)&&x.bb())}a.Mr=!1}}function wg(a,y,x){return y=y.containingGroup,y!==null&&(a=wg(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}ne=on.prototype,ne.Pd=function(a,y,x){if(x===void 0)return new fu(ji);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new fu(new Se(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new fu(x.copy())};function Pg(a,y,x){if(y.diagram!==null&&y.diagram!==a&&Pe("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&Pe("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&Pe("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&Pe("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&&Pe("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}ne.Al=function(a){Pg(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(ho,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},ne.Ww=function(a,y){Pg(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Eo,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;z<E;z++)if(x.M(z)===y){x.Gb(z,a);break}return this.cc!==null&&this.cb(ho,"layers",this,null,a,null,z),this.N(),0>b&&this.Ya(),this},ne.Cy=function(a,y){Pg(this,a,y),a.Xe(this);var x=this.Wa,b=x.indexOf(a);0<=b&&(x.remove(a),this.cc!==null&&this.cb(Eo,"layers",this,a,null,b,null));var E=x.count,z;for(z=0;z<E;z++)if(x.M(z)===y){x.Gb(z+1,a);break}return this.cc!==null&&this.cb(ho,"layers",this,null,a,null,z+1),this.N(),0>b&&this.Ya(),this},ne.kA=function(a){if(a.diagram!==this&&Pe("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var b=y.value,E=b.layerName;E!==a.name?b.layerName=E:b.layerName=""}this.cc!==null&&this.cb(Eo,"layers",this,a,null,x,null),this.N(),this.Ya()}}},ne.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},ne.Yw=function(a){return this.pf===null&&(this.pf=new bn),this.pf.add(a),this.model.Pe(a),this},ne.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},ne.Pe=function(a){return this.zg===null&&(this.zg=new bn),this.zg.add(a),this},ne.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},ne.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==ia&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,b=0;b<x;b++)y.M(b)(a)},ne.cb=function(a,y,x,b,E,z,nt){z===void 0&&(z=null),nt===void 0&&(nt=null);var ot=new Yr;ot.diagram=this,ot.change=a,ot.propertyName=y,ot.object=x,ot.oldValue=b,ot.oldParam=z,ot.newValue=E,ot.newParam=nt,this.ds(ot)},ne.g=function(a,y,x,b,E){this.cb(Xr,a,this,y,x,b,E)},on.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===Xr){var E=a.object;if(Ur(E,a.propertyName,a.I(y)),E instanceof Xe){var z=E.part;z!==null&&z.Wb()}this.isModified=!0}else if(b===ho){var nt=a.object,ot=a.newParam,at=a.newValue;if(nt instanceof Fn)if(typeof ot=="number"&&at instanceof Xe){y?nt.pc(ot):nt.Gb(ot,at);var ht=nt.part;ht!==null&&ht.Wb()}else typeof ot=="number"&&at instanceof wo&&(at.isRow?c1(nt,ot,y?void 0:at):d1(nt,ot,y?void 0:at));else if(nt instanceof Vo){var dt=a.oldParam===!0;typeof ot=="number"&&at instanceof di&&(y?(at.isSelected=!1,at.isHighlighted=!1,at.Wb(),nt.pc(dt?ot:-1,at,dt)):nt.oi(ot,at,dt))}else nt instanceof on?typeof ot=="number"&&at instanceof Vo&&(y?this.Wa.mb(ot):(at.Xe(this),this.Wa.Gb(ot,at))):Pe("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===Eo){var Et=a.object,Ht=a.oldParam,Jt=a.oldValue;if(Et instanceof Fn)typeof Ht=="number"&&Jt instanceof Xe?y?Et.Gb(Ht,Jt):Et.pc(Ht):typeof Ht=="number"&&Jt instanceof wo&&(Jt.isRow?c1(Et,Ht,y?Jt:void 0):d1(Et,Ht,y?Jt:void 0));else if(Et instanceof Vo){var ee=a.newParam===!0;typeof Ht=="number"&&Jt instanceof di&&(y?0>Et.Pa.indexOf(Jt)&&Et.oi(Ht,Jt,ee):(Jt.isSelected=!1,Jt.isHighlighted=!1,Jt.Wb(),Et.pc(ee?Ht:-1,Jt,ee)))}else Et instanceof on?typeof Ht=="number"&&Jt instanceof Vo&&(y?(Jt.Xe(this),this.Wa.Gb(Ht,Jt)):this.Wa.mb(Ht)):Pe("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==ia&&Pe("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},on.prototype.Ea=function(a){return this.undoManager.Ea(a)},on.prototype.eb=function(a){return this.undoManager.eb(a)},on.prototype.Kf=function(){return this.undoManager.Kf()},on.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}},on.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},on.prototype.rp=function(){this.partManager.rp()};function bg(a,y,x){var b=a.animationManager;if(a.vb||a.ld)a.Ca=x,Ml(a),a.N(),a.Ee=!0,b.zb&&(hu(b)||b.ce.add(b.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Ml(a);else{a.vb=!0;var E=a.viewportBounds.copy(),z=a.Aa,nt=a.ya,ot=a.zoomPoint.x,at=a.zoomPoint.y,ht=a.contentAlignment;isNaN(ot)&&(ht.$c()?ht.Hf(ru)?ot=0:ht.Hf(ea)&&(ot=z-1):ot=ht.sb()?ht.x*(z-1):z/2),isNaN(at)&&(ht.$c()?ht.Hf(Bl)?at=0:ht.Hf(ba)&&(at=nt-1):at=ht.sb()?ht.y*(nt-1):nt/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=Se.allocAt(a.pa.x+ot/y-ot/x,a.pa.y+at/y-at/x),a.position=z,Se.free(z),a.Ca=x,Ml(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),Ga(a,!1),b.zb&&(hu(b)||b.ce.add(b.H,"scale",y,a.Ca))}}on.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!==ds||a.width===y.width&&a.height===y.height||E.C(),E=this.currentTool,this.Vk===!0&&E instanceof Kr&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Bp(E,this)),this.vb||this.invalidateViewport(a,y),Al(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 Al(a,y){var x=a.fe;if(x!==null&&x.visible){for(var b=Wn.alloc(),E=1,z=1,nt=x.O.s,ot=nt.length,at=0;at<ot;at++){var ht=nt[at],dt=Math.abs(ht.interval);2>dt||(mv(ht.figure)?z=z*dt/Je.vx(z,dt):E=E*dt/Je.vx(E,dt))}if(nt=x.gridCellSize,b.h(z*nt.width,E*nt.height),y!==void 0)E=y.width,z=y.height,a=y.x,nt=y.y;else{if(y=yn.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){yn.free(y);return}E=y.width,z=y.height,a=y.x,nt=y.y,yn.free(y)}x.width=E+2*b.width,x.height=z+2*b.height,y=Se.alloc(),Je.No(a,nt,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),Wn.free(b),x.part.location=y,Se.free(y)}}on.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)}},on.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))},on.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),nn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof di||Pe("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 di||Pe("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},on.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()}},ne=on.prototype,ne.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},ne.Jz=function(a){a=new En().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 di||Pe("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},ne.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,z=Se.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)),Se.free(z);return}Pe("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):Pe("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Se.free(z)},ne.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)},ne.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},ne.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)},ne.zA=function(a){var y=this.Ab,x=a.x,b=a.y,E=x+a.width,z=b+a.height,nt=y.m11,ot=y.m12,at=y.m21,ht=y.m22,dt=y.dx,Et=y.dy,Ht=x*nt+b*at+dt;y=x*ot+b*ht+Et;var Jt=E*nt+b*at+dt;return a=E*ot+b*ht+Et,b=x*nt+z*at+dt,x=x*ot+z*ht+Et,nt=E*nt+z*at+dt,E=E*ot+z*ht+Et,z=Math.min(Ht,Jt),Ht=Math.max(Ht,Jt),Jt=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,b),Ht=Math.max(Ht,b),Jt=Math.min(Jt,x),y=Math.max(y,x),z=Math.min(z,nt),Ht=Math.max(Ht,nt),Jt=Math.min(Jt,E),y=Math.max(y,E),new yn(z,Jt,Ht-z,y-Jt)},ne.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),Mi(a.copy(),this.Ab)};function tm(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Cg(a){return a=hf.get(a),a!==null?new a:new Er}on.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,b=a.propertyName;if(x===ia&&b[0]==="S")if(b==="StartingFirstTransaction"){var E=this;a=this.toolManager,a.mouseDownTools.each(function(at){return at.diagram=E}),a.mouseMoveTools.each(function(at){return at.diagram=E}),a.mouseUpTools.each(function(at){return at.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===ia){(b==="FinishedUndo"||b==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),ns(this));var z=this.animationManager;b==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||Yd(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 nt=a.isTransactionFinished;if(nt&&(tm(this),this.As.clear(),Wp(this.animationManager)),!this.Rt&&nt&&this.lastInput.targetDiagram){this.Rt=!0;var ot=this;Nn(function(){ot.currentTool.standardMouseOver(),ot.Rt=!1},10)}}}finally{this.aa=!0}}}};function xc(a,y){y=y.O.s;for(var x=y.length,b=0;b<x;b++)Dh(a,y[b])}function Dh(a,y){if(y instanceof Hs){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof En&&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 Eg(a,y){if(y instanceof Hs){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 En&&x.Bg.remove(a),bf(b));break}}}}}on.prototype.Wd=function(){this.partManager.Wd()},on.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},on.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},on.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},on.prototype.Vb=function(a){return this.partManager.Vb(a)},on.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},ne=on.prototype,ne.Lc=function(a){return this.partManager.Lc(a)},ne.ii=function(a){return this.partManager.ii(a)},ne.Kc=function(a){return this.partManager.Kc(a)},ne.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:nr(Fi(y)))},ne.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:nr(Fi(y)))};function Ml(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 Lg(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),Ga(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}ne.Va=function(){if(this.Zi){var a=yn.alloc();Lg(this,this.computeBounds(a)),yn.free(a)}},ne.rz=function(){for(var a=new En,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},ne.qz=function(){return this.ai.iterator},ne.Uz=function(a){ns(this),a&&of(this,!0),this.ld?Ag(this,!1):(this.Jk=!0,Aa(this))};function of(a,y){for(var x=a.ai.iterator;x.next();)em(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function em(a,y,x){if(y!==null){for(var b=y.gl.iterator;b.next();)em(a,b.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function Ag(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||zl(z,"Layout")),a.xh=!1;for(var nt=a.ai.iterator;nt.next();)Mg(a,nt.value,y,b);E.isValidLayout||(!y||E.isRealtime||E.isRealtime===null||b===0?(E.doLayout(a),ns(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||Yd(z),a.aa=x}}}function Mg(a,y,x,b){if(y!==null){for(var E=y.gl.iterator;E.next();)Mg(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),ad(a,y),E.isValidLayout=!0):a.xh=!0)}}ne.yz=function(){for(var a=new bn,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function nv(a){function y(E){var z=E.toLowerCase(),nt=new bn;x.add(E,nt),x.add(z,nt),b.add(E,E),b.add(z,E)}var x=new qn,b=new qn;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=b}function nm(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function sf(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;Pe("Unknown DiagramEvent name: "+y)}ne.Bj=function(a,y){return a=sf(this,a),a!==null&&a.add(y),this},ne.am=function(a,y){a=sf(this,a),a!==null&&a.remove(y)},ne.R=function(a,y,x){var b=sf(this,a),E=new Lu;if(E.diagram=this,a=nm(this,a),a!==null&&(E.name=a),y!==void 0&&(E.subject=y),x!==void 0&&(E.parameter=x),y=b.length,y===1)b.M(0)(E);else if(y!==0)for(b=b.Fa(),x=0;x<y;x++)(0,b[x])(E)};function af(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}ne.Yj=function(a,y){return lf(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},on.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?fg(this,a):a.assign(this.documentBounds)};function lf(a,y,x,b){var E=a.Xh;if(E===null&&(a.Xh=E=new ip(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=im(a,x)),x===null){y=yn.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),E.initialize(y);for(var z=a.nodes;z.next();){var nt=z.value,ot=nt.layer;ot!==null&&ot.visible&&!ot.isTemporary&&uf(a,nt,b,y)}yn.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),E.initialize(y)),y=yn.alloc(),z=x.memberParts;z.next();)nt=z.value,nt instanceof Vn&&uf(a,nt,b,y);yn.free(y)}E.group=x,E.Yx=b,E.vs=!1}else y&&oS(E);return E}function im(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?im(a,y.containingGroup):null}function uf(a,y,x,b){if(y!==x&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(b),a=a.Xh;var E=y.x,z=y.y;if(Tf(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(qu,x,y+1);else for(var nt=x;nt<=y;nt++)z[nt]=qu}else if(y instanceof Ni)for(y=y.memberParts;y.next();)E=y.value,E instanceof Vn&&uf(a,E,x,b)}}function Wu(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}on.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():Tg(this)};function Tg(a){a.vk===-1&&(a.vk=Nn(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=yn.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Lg(a,y),yn.free(y),a.Fc=!0,a.bd(),Tg(a))}},a.vp))}on.prototype.ug=function(){this.vk!==-1&&(Le.clearTimeout(this.vk),this.vk=-1)},on.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=yn.allocAt(0,0,b.width*E,b.height*E);var z=Se.allocAt(0,0);if(a.x>=b.x&&a.x<b.x+x.left&&this.allowHorizontalScroll){var nt=Math.max(this.scrollHorizontalLineChange,1);nt|=0,z.x-=nt,a.x<b.x+x.left/2&&(z.x-=nt),a.x<b.x+x.left/4&&(z.x-=4*nt)}else a.x<=b.x+b.width&&a.x>b.x+b.width-x.right&&this.allowHorizontalScroll&&(nt=Math.max(this.scrollHorizontalLineChange,1),nt|=0,z.x+=nt,a.x>b.x+b.width-x.right/2&&(z.x+=nt),a.x>b.x+b.width-x.right/4&&(z.x+=4*nt));return a.y>=b.y&&a.y<b.y+x.top&&this.allowVerticalScroll?(nt=Math.max(this.scrollVerticalLineChange,1),nt|=0,z.y-=nt,a.y<b.y+x.top/2&&(z.y-=nt),a.y<b.y+x.top/4&&(z.y-=4*nt)):a.y<=b.y+b.height&&a.y>b.y+b.height-x.bottom&&this.allowVerticalScroll&&(nt=Math.max(this.scrollVerticalLineChange,1),nt|=0,z.y+=nt,a.y>b.y+b.height-x.bottom/2&&(z.y+=nt),a.y>b.y+b.height-x.bottom/4&&(z.y+=4*nt)),z.Xa(ji)||(y=new Se(y.x+z.x/E,y.y+z.y/E)),yn.free(b),Se.free(z),y},ne=on.prototype,ne.Cs=function(){return null},ne.av=function(){return null},ne.bs=function(a,y){this.pj.add(a,y)},ne.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Ni&&(y.$p=null)})};function ld(a,y,x){function b(){var dt=+new Date;for(z=!0,nt.reset();nt.next();)if(!nt.value[0].al){z=!1;break}z||dt-ht>at?y(x,E,ot):Le.requestAnimationFrame(b)}for(var E=x.callback,z=!0,nt=a.Og.iterator;nt.next();)if(!nt.value[0].al){z=!1;break}if(typeof E!="function"||z)return y(x,E,a);var ot=a,at=x.callbackTimeout||300,ht=+new Date;return Le.requestAnimationFrame(function(){b()}),null}ne.Wz=function(a){return qr?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},ne.Jx=function(a){return a===void 0&&(a={}),ld(this,this.Xz,a)},ne.Xz=function(a,y,x){var b=rm(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 bc+"data":E=b.getImageData(0,0,x.width,x.height);break;case bc:b=(a.document||document).createElement("img"),b.src=x.toDataURL(a.type,a.details),E=b;break;case"blob":return typeof y!="function"&&Pe('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 rm(a,y,x,b){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&Pe("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 nt=y.maxSize;y.maxSize===void 0&&(nt=x==="SVG"?new Wn(1/0,1/0):new Wn(2e3,2e3));var ot=y.position||null,at=y.parts||null,ht=y.padding===void 0?1:y.padding,dt=y.background||null,Et=y.omitTemporary;Et===void 0&&(Et=!0);var Ht=y.document||document,Jt=y.elementFinished||null,ee=y.showTemporary;ee===void 0&&(ee=!Et),y=y.showGrid,y===void 0&&(y=ee),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof ht=="number"?ht=new li(ht):ht instanceof li||Pe("MakeImage padding must be a Margin or a number."),ht.left=Math.max(ht.left,0),ht.right=Math.max(ht.right,0),ht.top=Math.max(ht.top,0),ht.bottom=Math.max(ht.bottom,0),a.ib.Vc(!0),Et=new Va(null,Ht,void 0,!0);var se=Et.context;if(!(E||z||at||ot))return Et.width=a.Aa+Math.ceil(ht.left+ht.right),Et.height=a.ya+Math.ceil(ht.top+ht.bottom),x==="SVG"?b===null?null:(b.resize(Et.width,Et.height,Et.width,Et.height),b.ownerDocument=Ht,b.hs=Jt,tf(a,b.context,ht,new Wn(Et.width,Et.height),a.Ca,a.pa,at,dt,ee,y),b.context):(a.Xm=!1,tf(a,se,ht,new Wn(Et.width,Et.height),a.Ca,a.pa,at,dt,ee,y),a.Xm=!0,Et.context);var Ce=a.Pp,ve=a.documentBounds.copy();if(ve.Fv(a.yb),ee)for(var Ae=a.Wa.s,Ie=Ae.length,Be=0;Be<Ie;Be++){var Ve=Ae[Be];if(Ve.visible&&Ve.isTemporary){Ve=Ve.Pa.s;for(var rn=Ve.length,Kn=0;Kn<rn;Kn++){var $n=Ve[Kn];$n.isInDocumentBounds&&$n.isVisible()&&($n=$n.actualBounds,$n.w()&&ve.ed($n))}}}if(Ae=new Se(ve.x,ve.y),at!==null){for(Ie=new yn(0,0,0,0),Be=!0,Ve=at.iterator,Ve.reset();Ve.next();)rn=Ve.value,rn instanceof di&&(Kn=rn.layer,Kn!==null&&!Kn.visible||Kn!==null&&!ee&&Kn.isTemporary||!rn.isVisible()||(rn=rn.actualBounds,rn.w()&&(Be?(Be=!1,Ie.assign(rn)):Ie.ed(rn))));ve.width=Ie.width,ve.height=Ie.height,Ae.x=Ie.x,Ae.y=Ie.y}return ot!==null&&ot.w()&&(Ae=ot,z||(z=Ce)),Ie=ot=0,ht!==null&&(ot=ht.left+ht.right,Ie=ht.top+ht.bottom),Be=Ve=0,E!==null&&(Ve=E.width,Be=E.height,isFinite(Ve)&&(Ve=Math.max(0,Ve-ot)),isFinite(Be)&&(Be=Math.max(0,Be-Ie))),E!==null&&z!==null?(z==="NaN"&&(z=Ce),E.w()?(E=Ve,ve=Be):isNaN(Be)?(E=Ve,ve=ve.height*z):(E=ve.width*z,ve=Be)):E!==null?E.w()?(z=Math.min(Ve/ve.width,Be/ve.height),E=Ve,ve=Be):isNaN(Be)?(z=Ve/ve.width,E=Ve,ve=ve.height*z):(z=Be/ve.height,E=ve.width*z,ve=Be):z!==null?z==="NaN"&&nt.w()?(z=Math.min((nt.width-ot)/ve.width,(nt.height-Ie)/ve.height),z>Ce?(z=Ce,E=ve.width,ve=ve.height):(E=nt.width,ve=nt.height)):(E=ve.width*z,ve=ve.height*z):(z=Ce,E=ve.width,ve=ve.height),ht!==null?(E+=ot,ve+=Ie):ht=new li(0),nt!==null&&(Ce=nt.width,nt=nt.height,isNaN(Ce)&&(Ce=2e3),isNaN(nt)&&(nt=2e3),isFinite(Ce)&&(E=Math.min(E,Ce)),isFinite(nt)&&(ve=Math.min(ve,nt))),Et.width=Math.ceil(E),Et.height=Math.ceil(ve),x==="SVG"?b===null?null:(b.resize(Et.width,Et.height,Et.width,Et.height),b.ownerDocument=Ht,b.hs=Jt,tf(a,b.context,ht,new Wn(Math.ceil(E),Math.ceil(ve)),z,Ae,at,dt,ee,y),b.context):(a.Xm=!1,tf(a,se,ht,new Wn(Math.ceil(E),Math.ceil(ve)),z,Ae,at,dt,ee,y),a.Xm=!0,Et.context)}we.Object.defineProperties(on.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof Nt||(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 Tl(this,Le.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 Tl(this,Le.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(Le,"resize",this.Ov,!1),this.removeEventListener(Le,"wheel",this.$j,!0),Hl===this&&(Hl=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),cg(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)&&pn(a,"0 <= value <= 1",on,"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),Ga(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),Ga(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),Ga(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),Ga(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&pn(a,">= 0",on,"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&&pn(a,">= 0",on,"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 pn(a,">= 0",on,"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||tm(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&&Pe("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=hg(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var b=this.vb;this.vb=!0,zl(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=Cg(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(Le,"pointermove",this.dk,!0),this.addEventListener(Le,"pointerdown",this.ui,!0),this.addEventListener(Le,"pointerup",this.fk,!0),this.addEventListener(Le,"pointerout",this.ek,!0),this.addEventListener(Le,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Le,"wheel",this.$j,!0),this.addEventListener(Le,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Le,"pointermove",this.dk,!0),this.removeEventListener(Le,"pointerdown",this.ui,!0),this.removeEventListener(Le,"pointerup",this.fk,!0),this.removeEventListener(Le,"pointerout",this.ek,!0),this.removeEventListener(Le,"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(Le,"wheel",this.$j,!0),this.removeEventListener(Le,"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=Se.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),Up(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Ml(this):(this.vb=!0,a=this.scale,gg(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)}Se.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=Jp(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=Jp(this)),a.type!==Fn.Grid&&Pe("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),Al(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),Ml(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||Pe("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 li(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===Uu&&Ga(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,Ga(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,bg(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&&bg(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!==ds&&Ga(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()||Pe("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()||Pe("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)):pn(a,"> 0",on,"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)):pn(a,"> 0",on,"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),Ga(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 li(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&&Pe("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();)Xg(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Gu&&a!==So&&a!==cf&&Pe("Unknown Diagram.treeCollapsePolicy: "+a),this.uu=a,this.g("treeCollapsePolicy",y,a))}},Ue:{get:function(){return this.pw},set:function(a){this.pw=a}},avoidanceCellSize:{get:function(){return this.aw},set:function(a){this.Xh=null,this.aw=new Wn(Math.max(1,a.width),Math.max(1,a.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(a){this.bw=Math.max(1,a)}},autoScrollInterval:{get:function(){return this.vp},set:function(a){var y=this.vp;y!==a&&(this.vp=a,this.g("autoScrollInterval",y,a))}},autoScrollRegion:{get:function(){return this.xp},set:function(a){typeof a=="number"&&(a=new li(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),we.Object.defineProperties(on,{licenseKey:{get:function(){return Fg.jc()},set:function(a){Fg.add(a.replace(/\s/g,""))}},version:{get:function(){return Pc}}}),on.prototype.makeImageData=on.prototype.Jx,on.prototype.makeImage=on.prototype.Wz,on.prototype.cacheGroupExternalLinks=on.prototype.Fu,on.prototype.addRenderer=on.prototype.bs,on.prototype.makeSVG=on.prototype.av,on.prototype.makeSvg=on.prototype.Cs,on.prototype.stopAutoScroll=on.prototype.ug,on.prototype.doAutoScroll=on.prototype.gs,on.prototype.isUnoccupied=on.prototype.Yj,on.prototype.raiseDiagramEvent=on.prototype.R,on.prototype.removeDiagramListener=on.prototype.am,on.prototype.addDiagramListener=on.prototype.Bj,on.prototype.findTreeRoots=on.prototype.yz,on.prototype.layoutDiagram=on.prototype.Uz,on.prototype.findTopLevelGroups=on.prototype.qz,on.prototype.findTopLevelNodesAndLinks=on.prototype.rz,on.prototype.ensureBounds=on.prototype.Va,on.prototype.findLinksByExample=on.prototype.ls,on.prototype.findNodesByExample=on.prototype.ms,on.prototype.findLinkForData=on.prototype.Kc,on.prototype.findNodeForData=on.prototype.ii,on.prototype.findPartForData=on.prototype.Lc,on.prototype.findLinkForKey=on.prototype.findLinkForKey,on.prototype.findNodeForKey=on.prototype.Vb,on.prototype.findPartForKey=on.prototype.findPartForKey,on.prototype.rebuildParts=on.prototype.Wd,on.prototype.transformViewToDoc=on.prototype.Ps,on.prototype.transformRectDocToView=on.prototype.zA,on.prototype.transformDocToView=on.prototype.op,on.prototype.centerRect=on.prototype.es,on.prototype.scrollToRect=on.prototype.tv,on.prototype.scroll=on.prototype.scroll,on.prototype.highlightCollection=on.prototype.Jz,on.prototype.highlight=on.prototype.Iz,on.prototype.selectCollection=on.prototype.rA,on.prototype.select=on.prototype.select,on.prototype.updateAllRelationshipsFromData=on.prototype.rp,on.prototype.updateAllTargetBindings=on.prototype.updateAllTargetBindings,on.prototype.commit=on.prototype.commit,on.prototype.rollbackTransaction=on.prototype.Kf,on.prototype.commitTransaction=on.prototype.eb,on.prototype.startTransaction=on.prototype.Ea,on.prototype.raiseChanged=on.prototype.g,on.prototype.raiseChangedEvent=on.prototype.cb,on.prototype.removeChangedListener=on.prototype.ik,on.prototype.addChangedListener=on.prototype.Pe,on.prototype.removeModelChangedListener=on.prototype.mA,on.prototype.addModelChangedListener=on.prototype.Yw,on.prototype.findLayer=on.prototype.Qj,on.prototype.removeLayer=on.prototype.kA,on.prototype.addLayerAfter=on.prototype.Cy,on.prototype.addLayerBefore=on.prototype.Ww,on.prototype.addLayer=on.prototype.Al,on.prototype.moveParts=on.prototype.moveParts,on.prototype.copyParts=on.prototype.Kj,on.prototype.removeParts=on.prototype.Is,on.prototype.remove=on.prototype.remove,on.prototype.add=on.prototype.add,on.prototype.clearDelayedGeometries=on.prototype.bx,on.prototype.setProperties=on.prototype.nm,on.prototype.attach=on.prototype.Du,on.prototype.set=on.prototype.set,on.prototype.resetInputOptions=on.prototype.Sx,on.prototype.setInputOption=on.prototype.sA,on.prototype.getInputOption=on.prototype.Ql,on.prototype.resetRenderingHints=on.prototype.Tx,on.prototype.setRenderingHint=on.prototype.Xx,on.prototype.getRenderingHint=on.prototype.Gf,on.prototype.maybeUpdate=on.prototype.bd,on.prototype.requestUpdate=on.prototype.$b,on.prototype.delayInitialization=on.prototype.Xy,on.prototype.isUpdateRequested=on.prototype.Pz,on.prototype.invalidateDocumentBounds=on.prototype.Ya,on.prototype.findObjectsNear=on.prototype.og,on.prototype.findPartsNear=on.prototype.mz,on.prototype.findObjectsIn=on.prototype.Cf,on.prototype.findPartsIn=on.prototype.ux,on.prototype.findObjectsAt=on.prototype.ji,on.prototype.findPartsAt=on.prototype.lz,on.prototype.findObjectAt=on.prototype.ic,on.prototype.findPartAt=on.prototype.Ol,on.prototype.focusObject=on.prototype.zz,on.prototype.alignDocument=on.prototype.Jy,on.prototype.zoomToRect=on.prototype.BA,on.prototype.zoomToFit=on.prototype.zoomToFit,on.prototype.diagramScroll=on.prototype.kx,on.prototype.focus=on.prototype.focus;var hf=new qn,om=null,qr=Le.document!==void 0,wc=null,Fh="",ds=new dn(on,"None",0),ga=new dn(on,"Uniform",1),Bh=new dn(on,"UniformToFill",2),ud=new dn(on,"CycleAll",10),kg=new dn(on,"CycleNotDirected",11),Ng=new dn(on,"CycleNotDirectedFast",12),Og=new dn(on,"CycleNotUndirected",13),Ig=new dn(on,"CycleDestinationTree",14),Dg=new dn(on,"CycleSourceTree",15),Uu=new dn(on,"DocumentScroll",1),hd=new dn(on,"InfiniteScroll",2),Gu=new dn(on,"TreeParentCollapsed",21),So=new dn(on,"AllParentsCollapsed",22),cf=new dn(on,"AnyParentsCollapsed",23),Fg=new bn,Pc="2.3.10",bc="image",cd=null,sm=!1;function ss(){if(qr){var a=Le.document.createElement("canvas"),y=a.getContext("2d"),x=ln("7ca11abfd022028846");y[x]=ln("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",cn.Dx+"4ae6247590da4bb21c324ba3a84e385776",Vi.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Je.za],E=1;5>E;E++)y[ln("7ca11abfd7330390")](ln(b[E-1]),10,15*E);for(y[x]=ln("39f046ebb36e4b"),x=1;5>x;x++)y[ln("7ca11abfd7330390")](ln(b[x-1]),10,15*x);(b.length!==4||b[0][0]!=="5"||b[3][0]!=="7")&&(Vi.prototype.Cd=Vi.prototype.Eu),cd=a}}on.className="Diagram",on.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Le.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof on?y.H:null},on.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},on.useDOM=function(a){qr=a?Le.document!==void 0:!1},on.isUsingDOM=function(){return qr},on.None=ds,on.Uniform=ga,on.UniformToFill=Bh,on.CycleAll=ud,on.CycleNotDirected=kg,on.CycleNotDirectedFast=Ng,on.CycleNotUndirected=Og,on.CycleDestinationTree=Ig,on.CycleSourceTree=Dg,on.DocumentScroll=Uu,on.InfiniteScroll=hd,on.TreeParentCollapsed=Gu,on.AllParentsCollapsed=So,on.AnyParentsCollapsed=cf;function am(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Cc(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)t:{y="f";var x=Le[ln("76a715b2f73f148a")][ln("72ba13b5")]||"";if(a.Rc=!0,qr){var b=on[ln("76a115b6ed251eaf4692")];if(b)for(var E=Fg.iterator;E.next()&&(b=E.value,b=ln(b).split(ln("39e9")),!(6>b.length));){var z=ln(b[1]).split(".");if(b[4]!=="7da71ca0")break;var nt=ln(cn[ln("6cae19")]).split(".");if(z[0]>nt[0]||z[0]===nt[0]&&z[1]>=nt[1]){var ot=Le[ln("74a900bae4370f8b51")][ln("6fbb13a1c2311e8a57")].toLowerCase();if(nt=ot[ln("73a612b6fb191d")](ln("3aad1ab6e022098b4dc4")),z=ln(b[2]),-1<nt&&(ot=ot[ln("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<ot&&ot<nt),!a.Rc))break;for(nt=x[ln("76ad18b4f73e")],ot=x[ln("73a612b6fb191d")](ln("35e7"))+2;ot<nt;ot++)y+=x[ot];if(nt=y[ln("73a612b6fb191d")](z),0>nt&&z!==ln("7da71ca0ad381e90")&&(nt=y[ln("73a612b6fb191d")](ln("76a715b2ef3e149757"))),0>nt&&(nt=y[ln("73a612b6fb191d")](ln("76a715b2ef3e149757"))),0>nt&&(nt=y[ln("73a612b6fb191d")](ln("2bfa41fdb3784bca12"))),0>nt&&(nt=x[ln("73a612b6fb191d")](ln("7baa19a6f76c1988428554"))),a.Rc=!(0<=nt&&nt<y[ln("73a612b6fb191d")](ln("35"))||y[ln("73a612b6fb191d")](ln("35"))===-1),!a.Rc||x[ln("73a612b6fb191d")](ln("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[ln("73a612b6fb191d")](z)),!a.Rc)||(nt=Le[ln("76a715b2f73f148a")][ln("69ad17a1e03e")],ot=nt[ln("73a612b6fb191d")](ln("7fb002b6ed25128b4da25b2e")),-1<ot&&(a.Rc=!(nt[ln("73a612b6fb191d")](z)>ot),!a.Rc)))break;if(z[0]==="#"){nt=Le.document.createElement("div");for(var at=b[0].replace(/[A-Za-z]/g,"");4>at.length;)at+="9";if(ot=at,at=at.substr(at.length-4),b="",b+=["gsh","gsf"][parseInt(at.substr(0,1),10)%2],b+=["Header","Background","Display","Feedback"][parseInt(at.substr(0,1),10)%4],nt[ln("79a417a0f0181a8946")]=b,Le.document[ln("78a712aa")]){Le.document[ln("78a712aa")][ln("7bb806b6ed32388c4a875b")](nt),at=Le.getComputedStyle(nt).getPropertyValue(ln("78a704b7e62456904c9b12701b6532a8"));var ht=Le.getComputedStyle(nt).getPropertyValue(ln("75b817b0ea2202"));if(Le.document[ln("78a712aa")][ln("68ad1bbcf533388c4a875b")](nt),at){if(nt=Le[ln("77a902b0eb1b1e804a8a")],ht==="0."+parseInt(ot,10)%100||at.indexOf(parseInt(z[1]+z[2],16))!==-1&&at.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(nt&&nt(ln("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,z=0;z<document.styleSheets.length;z++){nt=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var dt in nt)if(b===nt[dt].selectorText){a.Rc=!1;break t}}}}else a.Rc=null,a.Rc=!1}}}else{for(dt=x[ln("76ad18b4f73e")],E=x[ln("73a612b6fb191d")](ln("35e7"))+2;E<dt;E++)y+=x[E];x=y[ln("73a612b6fb191d")](ln("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[ln("73a612b6fb191d")](ln("35")))}}}return 0<a.Rc&&a!==a.wy}am.className="DiagramHelper";function fu(a){this.j=a===void 0?new Se:a,this.o=new Se}we.Object.defineProperties(fu.prototype,{point:{get:function(){return this.j},set:function(a){this.j=a}},shifted:{get:function(){return this.o},set:function(a){this.o=a}}});var dd="DraggingInfo";fu.className="DraggingInfo";function it(a,y,x){this.node=a,this.info=y,this.Su=x}it.className="DraggingNodeInfoPair";function lt(){this.reset()}lt.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new Wn(NaN,NaN).freeze(),this.gridSnapCellSpot=No,this.gridSnapOrigin=new Se(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},lt.className="DraggingOptions";function yt(a,y){if(typeof a=="string"||Le.Element&&a instanceof Element)var x=on.call(this,a)||this;else x=on.call(this)||this,y=a;return vt(x),y&&x.nm(y),x}Qe(yt,on);function vt(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=Pa,a.layout=new Jo}yt.prototype.reset=function(){on.prototype.reset.call(this),vt(this)},yt.className="Palette";function Nt(a,y){if(typeof a=="string"||Le.Element&&a instanceof Element)var x=on.call(this,a)||this;else x=on.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 di;var E=new Ri;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 li(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new Ee,x.toolManager.mouseMoveTools),x.click=function(){var z=b.observed;if(z!==null){var nt=z.viewportBounds,ot=b.lastInput.documentPoint;z.position=new Se(ot.x-nt.width/2,ot.y-nt.height/2)}},x.Pf=function(){b.Ya(),pe(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&&pe(b)},x.autoScale=ga,x.vb=!1,y&&Object.assign(x,y),x}Qe(Nt,on),Nt.prototype.computePixelRatio=function(){return 1},Nt.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(yc(this),this.ql===null){var x=new Va(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),re(this)}finally{this.ta=a,this.ib=y}}}on.prototype.redraw.call(this)},Nt.prototype.gc=function(){if(this.Ka===null&&Pe("No div specified"),this.ta===null&&Pe("No canvas specified"),!(this.ta instanceof Tl)&&(Bv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){yc(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?re(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 re(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=yn.alloc().assign(a.viewportBounds).ed(y.viewportBounds),Al(y,E),yn.free(E),ns(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 nt=0;nt<z;nt++){var ot=y[nt],at=a;if(ot.visible&&ot.opacity!==0){var ht=ot.diagram.grid.part;if(!x&&ot.isTemporary)b&&ht.layer===ot&&(ot=du(ot,E),ht.gc(E,at),E.globalAlpha=ot);else{for(var dt=du(ot,E),Et=at.scale,Ht=yn.alloc(),Jt=ot.Pa.s,ee=Jt.length,se=0;se<ee;se++){var Ce=Jt[se];(b||Ce!==ht)&&ot.Oj(E,Ce,at,null,Et,Ht,!1)}yn.free(Ht),E.globalAlpha=dt}}}}}function pe(a){var y=a.box;if(y!==null){var x=a.observed;if(x!==null){a.Fc=!0,x=x.viewportBounds;var b=y.selectionObject,E=Wn.alloc();E.h(x.width,x.height),b.desiredSize=E,Wn.free(E),a=2/a.scale,b instanceof Ri&&(b.strokeWidth=a),y.location=new Se(x.x-a/2,x.y-a/2),y.isSelected=!0}}}Nt.prototype.computeBounds=function(){var a=this.observed;if(a===null)return zi;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},Nt.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},Nt.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),pe(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))},we.Object.defineProperties(Nt.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof Nt&&Pe("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),pe(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),pe(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)}}}),Nt.className="Overview";function Ee(){Jr.call(this),this.j=null}Qe(Ee,Jr),Ee.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 Se(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Se(a.x-this.j.x,a.y-this.j.y)),!0)},Ee.prototype.doActivate=function(){this.j=null,Jr.prototype.doActivate.call(this)},Ee.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},Ee.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 Se(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new Se(a.x-this.j.x,a.y-this.j.y)}}},Ee.className="OverviewDraggingTool";function be(){Oi(this),this.H=Hl,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=zi,this.hb=!0,this.cg=null,this.ob=200}be.prototype.toString=function(){return"CommandHandler"},be.prototype.Xe=function(a){this.H=a},be.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=vi?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()},be.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},be.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Kr&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},be.prototype.canStopCommand=function(){return!0},be.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=""}},be.prototype.canSelectAll=function(){return this.diagram.allowSelect},be.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 En,x=a.selection.iterator;x.next();)Hh(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=""}},be.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},be.prototype.copySelection=function(){var a=this.diagram,y=new En;for(a=a.selection.iterator;a.next();)Hh(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},be.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},be.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},be.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},be.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)wc=null,Fh="";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 bn,x.addAll(z),wc=x,Fh=y.model.dataFormat}}y.R("ClipboardChanged",x)},be.prototype.pasteFromClipboard=function(){var a=new En,y=wc;if(y===null)return a;var x=this.diagram;if(Fh!==x.model.dataFormat)return a;var b=x.model,E=!1,z=!1,nt=null;try{b.Tl()&&(E=b.Jj,b.Jj=this.copiesParentKey),b.Wj()&&(z=b.Ij,b.Ij=this.copiesGroupKey),nt=x.Kj(y,x,!1)}finally{for(b.Tl()&&(b.Jj=E),b.Wj()&&(b.Ij=z),y=nt.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},be.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);Oh(y,z,new Se(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=""}},be.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||wc===null||wc.count===0||Fh!==a.model.dataFormat)},be.prototype.undo=function(){this.diagram.undoManager.undo()},be.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},be.prototype.redo=function(){this.diagram.undoManager.redo()},be.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},be.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===ds&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},be.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==ds?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},be.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===ds&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},be.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==ds?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},be.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},be.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},be.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,b=a.scale;zl(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=zi):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Yd(y)},be.prototype.canZoomToFit=function(){return this.diagram.allowZoom},be.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(at){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;zl(x,"Scroll To Part");var b=this.scrollToPartPause;if(0<b){var E=je(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 at=E.pop();0<E.length&&at instanceof Vn&&at.isTreeExpanded&&(!(at instanceof Ni)||at.isSubGraphExpanded);)at=E.pop();0<E.length?(at instanceof di&&y.tv(at.actualBounds),at instanceof Vn&&!at.isTreeExpanded&&(at.isTreeExpanded=!0),at instanceof Ni&&!at.isSubGraphExpanded&&(at.isSubGraphExpanded=!0)):(at instanceof di&&y.es(at.actualBounds),y.am("LayoutCompleted",nt)),y.eb("Scroll To Part")},nt=function(){Nn(z,(x.isEnabled?x.duration:0)+b)};y.Bj("LayoutCompleted",nt),z()}}else{var ot=y.position.copy();y.es(a.actualBounds),ot.Xa(y.position)&&x.Cc()}}};function je(a,y,x){if(y.isVisible())return x;if(y instanceof cr)je(a,y.adornedPart,x);else if(y instanceof zn){var b=y.fromNode;b!==null&&je(a,b,x),y=y.toNode,y!==null&&je(a,y,x)}else y instanceof Vn&&(b=y.labeledLink,b!==null&&je(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),je(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),je(a,y,x));return x}be.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof di)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},be.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),zl(y.animationManager,"Collapse Tree");var x=new bn;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 Vn&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},be.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Vn&&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 Vn&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},be.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),zl(y.animationManager,"Expand Tree");var x=new bn;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 Vn&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},be.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Vn)||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 Vn&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},be.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 bn,z=a.selection.iterator;z.next();){var nt=z.value;nt.Zc()&&nt.canGroup()&&E.add(nt)}for(var ot=new bn,at=E.iterator;at.next();){var ht=at.value;z=!1;for(var dt=E.iterator;dt.next();)if(ht.Td(dt.value)){z=!0;break}z||ot.add(ht)}if(0<ot.count){var Et=ot.first().containingGroup;if(Et!==null)for(;Et!==null;){E=!1;for(var Ht=ot.iterator;Ht.next();)if(!Ht.value.Td(Et)){E=!0;break}if(E)Et=Et.containingGroup;else break}if(x instanceof Ni)Za(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var Jt=y.copyNodeData(x);Ke(Jt)&&(y.xf(Jt),b=a.ii(Jt))}if(b!==null){Et!==null&&this.isValidMember(Et,b)&&(b.containingGroup=Et);for(var ee=ot.iterator;ee.next();){var se=ee.value;this.isValidMember(b,se)&&(se.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},be.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 mn(a){var y=sn();for(a=a.iterator;a.next();){var x=a.value;x instanceof zn||y.push(x)}a=new En,x=y.length;for(var b=0;b<x;b++){for(var E=y[b],z=!0,nt=0;nt<x;nt++)if(E.Td(y[nt])){z=!1;break}z&&a.add(E)}return xn(y),a}be.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof zn)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},be.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 bn;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var z=E.value;z instanceof Ni&&z.canUngroup()&&b.add(z)}var nt=new bn;if(0<b.count){y.clearSelection(!0);for(var ot=b.iterator;ot.next();){var at=ot.value;at.expandSubGraph();var ht=at.containingGroup,dt=ht!==null&&ht.data!==null?x.wa(ht.data):void 0;nt.addAll(at.memberParts);for(var Et=nt.iterator;Et.next();){var Ht=Et.value;if(Ht.isSelected=!0,!(Ht instanceof zn)){var Jt=Ht.data;Jt!==null?x.mp(Jt,dt):Ht.containingGroup=ht}}y.remove(at)}}y.R("SelectionUngrouped",b,nt)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},be.prototype.canUngroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowDelete||!y.allowUngroup||!y.model.Xj())return!1;if(a!==null){if(!(a instanceof Ni))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Ni&&y.canUngroup())return!0;return!1},be.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=mn(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},be.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),zl(y.animationManager,"Collapse SubGraph");var x=new bn;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof Ni&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},be.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof Ni&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Ni&&y.isSubGraphExpanded)return!0;return!1},be.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),zl(y.animationManager,"Expand SubGraph");var x=new bn;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),x.add(a);else if(a===null)for(var b=y.selection.iterator;b.next();){var E=b.value;E instanceof Ni&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},be.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof Ni&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Ni&&!y.isSubGraphExpanded)return!0;return!1},be.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 Ir&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},be.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 Ir))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 Ir&&x.editable}),a!==null))return!0;return!1},be.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 Xe?E=a.ga(ur):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new Se(E.x+E.width/2,E.y+E.height/2)),E!==null&&(b.viewPoint=y.op(E),b.documentPoint=E,b.left=!1,b.right=!0,b.up=!0),y.currentTool=x,uu(x,!1,a)}},be.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)},be.prototype.computeEffectiveCollection=function(a,y){var x=this.diagram,b=x.toolManager.findTool("Dragging"),E=x.currentTool===b;if(y===void 0&&(y=E?b.dragOptions:x.Wm),b=new qn,a===null)return b;for(var z=a.iterator;z.next();)Ul(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 zn&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},we.Object.defineProperties(be.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||Pe("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}}}),be.className="CommandHandler",Yp=function(){return new be};function Xe(){Oi(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Se(NaN,NaN).freeze(),this.jd=ro,this.Ab=new Vi,this.wh=new Vi,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=os,this.uc=new yn(NaN,NaN,NaN,NaN).freeze(),this.Ib=new yn(NaN,NaN,NaN,NaN).freeze(),this.dc=new yn(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Cr,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 Dn,kn,ni,ai,Si,Ii,tr,Ui,or,Mr;Xe.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=_e(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},Xe.prototype.Vw=function(a){var y=this.Dh;if(nn(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},Xe.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},Xe.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},Xe.prototype.copy=function(){return this.clone()},ne=Xe.prototype,ne.qb=function(a){a.classType===zn?a.name.indexOf("Orient")===0?this.segmentOrientation=a:Pe("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===Xe&&(this.stretch=a)},ne.toString=function(){return gn(this.constructor)+"#"+_i(this)},ne.th=function(){this.A!==null&&(this.A.nc=!0)};function Hi(a){a.A===null?a.A=new gd:a.A.nc&&(a.A=a.A.copy())}ne.Xc=function(){if(this.ba===null){var a=new Bg;a.Xi=ao,a.yj=ao,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},ne.cb=function(a,y,x,b,E,z,nt){var ot=this.part;if(ot!==null&&(ot.gk(a,y,x,b,E,z,nt),x===this&&a===Xr&&qo(this)&&Hr(this,ot,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 qn),nt=z.undoManager.transactionLevel===0,a.startCondition===Th?nt=!0:a.startCondition===gc&&(nt=!1),nt?(z=new es,Kp(a,z),nt=this.jo.get(a),nt!==null&&nt.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,b,E),z.start()):(zl(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,b,E)))),this instanceof Fn&&x===ot&&(ot.l&16777216)!==0&&ot.data!==null))for(x=this.O.s,b=x.length,E=0;E<b;E++)ot=x[E],ot instanceof Fn&&Mc(ot,function(at){at.data!==null&&at.l&16777216&&at.La(y)})};function Hr(a,y,x){var b=a.ih();if(b!==null)for(var E=a.localBindings.iterator;E.next();){var z=E.value,nt=null;if(z.sourceName!==null){if(nt=AS(z,b,a),nt===null)continue;z.sp(a,nt,x,null)}else if(z.isToModel){var ot=y.diagram;ot===null||ot.skipsModelSourceBindings||z.sp(a,ot.model.modelData,x,b)}else{if(ot=b.data,ot===null)continue;var at=y.diagram;at===null||at.skipsModelSourceBindings||z.sp(a,ot,x,b)}nt===a&&(ot=b.ks(z.Ai),ot!==null&&z.Mv(ot,nt,x))}}ne.ks=function(a){return this.bindingId===a?this:null},ne.g=function(a,y,x){this.cb(Xr,a,this,y,x)},ne.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 Vi);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),z.pp(E)}};function Fo(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}ne.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?lr(a.x,a.y,0,0,0,b.height)<=y||lr(a.x,a.y,0,b.height,b.width,b.height)<=y||lr(a.x,a.y,b.width,b.height,b.width,0)<=y||lr(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},ne.se=function(){return!0},ne.ca=function(a){var y=Se.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Se.free(y),!1;var b=this.diagram;if(b!==null&&b.wq){var E=b.Ql("extraTouchThreshold"),z=b.Ql("extraTouchArea"),nt=z/2,ot=this.naturalBounds;b=this.Df()*b.scale;var at=1/b;if(ot.width*b<E&&ot.height*b<E)return a=$i(x.x-nt*at,x.y-nt*at,x.width+z*at,x.height+z*at,y.x,y.y),Se.free(y),a}return E=!1,(this instanceof cr||this instanceof Ri?$i(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)),Se.free(y),E},ne.gh=function(a){var y=this.naturalBounds;return $i(0,0,y.width,y.height,a.x,a.y)},ne.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=yn.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,E=Se.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)))),Se.free(E),yn.free(y),b},ne.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=Se.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)))),Se.free(E),b},ne.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=Se.allocAt(0,0),E=Se.allocAt(0,x.height),z=Se.allocAt(x.width,x.height),nt=Se.allocAt(x.width,0),ot=!1;if(a.ca(y.Ga(b))||a.ca(y.Ga(E))||a.ca(y.Ga(z))||a.ca(y.Ga(nt)))ot=!0;else{x=yn.allocAt(0,0,x.width,x.height);var at=Se.allocAt(a.x,a.y);x.ca(y.Cd(at))?ot=!0:(at.h(a.x,a.bottom),x.ca(y.Cd(at))?ot=!0:(at.h(a.right,a.bottom),x.ca(y.Cd(at))?ot=!0:(at.h(a.right,a.y),x.ca(y.Cd(at))&&(ot=!0)))),Se.free(at),yn.free(x),!ot&&(Je.us(a,b,E)||Je.us(a,E,z)||Je.us(a,z,nt)||Je.us(a,nt,b))&&(ot=!0)}return Se.free(b),Se.free(E),Se.free(z),Se.free(nt),ot},ne.ga=function(a,y){if(y===void 0&&(y=new Se),a instanceof si){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},ne.mi=function(a){a===void 0&&(a=new yn);var y=this.naturalBounds,x=this.oe,b=Se.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),Ji(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),Ji(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),Ji(a,b.x,b.y,0,0),Se.free(b),a},ne.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},ne.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},ne.qs=function(a,y){return y===void 0&&(y=new Se),y.assign(a),this.oe.Cd(y),y},ne.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},ne.Sj=function(a,y,x,b,E){var z=this.transform,nt=1/(z.m11*z.m22-z.m12*z.m21),ot=z.m22*nt,at=-z.m12*nt,ht=-z.m21*nt,dt=z.m11*nt,Et=nt*(z.m21*z.dy-z.m22*z.dx),Ht=nt*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,Je.Ff(z.left,z.top,z.right,z.bottom,a,y,x,b,E)):(nt=a*ot+y*ht+Et,a=a*at+y*dt+Ht,y=x*ot+b*ht+Et,x=x*at+b*dt+Ht,E.h(0,0),b=this.naturalBounds,x=Je.Ff(0,0,b.width,b.height,nt,a,y,x,E),E.transform(z),x)},Xe.prototype.measure=function(a,y,x,b){if(ma(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 nt=this.kq();z===90||z===270?(a=isFinite(E.height)?E.height+nt:a,y=isFinite(E.width)?E.width+nt:y):(a=isFinite(E.width)?E.width+nt:a,y=isFinite(E.height)?E.height+nt:y),E=x||0,nt=b||0;var ot=this instanceof Fn;switch(js(this,!0)){case kn:nt=E=0,ot&&(y=a=1/0);break;case Dn:isFinite(a)&&a>x&&(E=a),isFinite(y)&&y>b&&(nt=y);break;case ai:isFinite(a)&&a>x&&(E=a),nt=0,ot&&(y=1/0);break;case Si:isFinite(y)&&y>b&&(nt=y),E=0,ot&&(a=1/0)}ot=this.maxSize;var at=this.minSize;E>ot.width&&at.width<ot.width&&(E=ot.width),nt>ot.height&&at.height<ot.height&&(nt=ot.height),x=Math.max(E,at.width),b=Math.max(nt,at.height),ot.width<x&&(x=Math.min(at.width,x)),ot.height<b&&(b=Math.min(at.height,b)),a=Math.min(ot.width,a),y=Math.min(ot.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()||Pe("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),xo(this,!1)}},Xe.prototype.Wl=function(){},Xe.prototype.Dd=function(){return!1},Xe.prototype.arrange=function(a,y,x,b,E){this.Uk();var z=yn.alloc();z.assign(this.Ib),this.Ib.ka(),Ls(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&&Zu(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 Ir&&(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()||Pe("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Gl(this,!1),yn.free(z)},ne=Xe.prototype,ne.eh=function(){};function fs(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 nt=x.top+x.bottom;switch(x=z.width+y,z=z.height+nt,b+=y,E+=nt,y=js(a,!0),x===b&&z===E&&(y=kn),y){case kn:(x>b||z>E)&&(xo(a,!0),a.measure(x>b?b:x,z>E?E:z,0,0));break;case Dn:xo(a,!0),a.measure(b,E,0,0);break;case ai:xo(a,!0),a.measure(b,z,0,0);break;case Si:xo(a,!0),a.measure(x,E,0,0)}}}ne.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(),Nr(a,y)||(x.oh(),this.Pn(x)))},ne.Pn=function(a){this.portId!==null&&(zv(a,!0),a instanceof Vn&&K1(a,this))},ne.gc=function(a,y){if(!Ma(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 Fn&&Zu(this),nt=this.Ib;if(z){var ot=this.Ib,at=this.dc,ht=this.areaBackground,dt=this.Ma;ht===null&&dt===null||a.yc(),ht!==null&&($r(this,a,ht,!0,!0,at,ot),ht instanceof br&&ht.type===Na?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(ht)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),dt!==null&&($r(this,a,dt,!0,!1,at,ot),dt instanceof br&&dt.type===Na?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(dt)):a.fillRect(ot.x,ot.y,ot.width,ot.height)),this.hh(a,y)}if(!z&&(z||nt.width!==0&&nt.height!==0&&!isNaN(nt.x)&&!isNaN(nt.y))){z=this.transform,ot=this.panel,this.l&4096&&_o(this),ht=this.part,at=!1;var Et=0;ht&&y.Gf("drawShadows")&&(at=ht.isShadowed)&&(dt=ht.shadowOffset,Et=Math.max(dt.y,dt.x)*y.scale*y.Mb),dt=this.Dd();var Ht;if(!(Ht=y.$i||!dt)){var Jt=this.naturalBounds;Ht=this.wh;var ee=Ht.m11,se=Ht.m21,Ce=Ht.dx,ve=Ht.m12,Ae=Ht.m22,Ie=Ht.dy,Be,Ve=Be=0;Ht=Be*ee+Ve*se+Ce;var rn=Be*ve+Ve*Ae+Ie;Be=Jt.width+Et,Ve=0;var Kn=Be*ee+Ve*se+Ce;Be=Be*ve+Ve*Ae+Ie,Ve=Math.min(Ht,Kn);var $n=Math.min(rn,Be),Yn=Math.max(Ht+0,Kn)-Ve,jn=Math.max(rn+0,Be)-$n;Ht=Ve,rn=$n,Be=Jt.width+Et,Ve=Jt.height+Et,Kn=Be*ee+Ve*se+Ce,Be=Be*ve+Ve*Ae+Ie,Ve=Math.min(Ht,Kn),$n=Math.min(rn,Be),Yn=Math.max(Ht+Yn,Kn)-Ve,jn=Math.max(rn+jn,Be)-$n,Ht=Ve,rn=$n,Be=0,Ve=Jt.height+Et,Kn=Be*ee+Ve*se+Ce,Be=Be*ve+Ve*Ae+Ie,Ve=Math.min(Ht,Kn),$n=Math.min(rn,Be),Yn=Math.max(Ht+Yn,Kn)-Ve,jn=Math.max(rn+jn,Be)-$n,Ht=Ve,rn=$n,Et=y.viewportBounds,Jt=Et.x,ee=Et.y,Ht=!(Ht>Et.width+Jt||Jt>Yn+Ht||rn>Et.height+ee||ee>jn+rn)}if(Ht){if(Ht=(this.l&256)!==0,a.clipInsteadOfFill&&(Ht=!1),this instanceof Ir&&(a.font=this.font),Ht){if(rn=ot.se()?ot.naturalBounds:ot.actualBounds,Yn=Math.max(nt.x,rn.x),jn=Math.max(nt.y,rn.y),Et=Math.min(nt.right,rn.right)-Yn,Jt=Math.min(nt.bottom,rn.bottom)-jn,ee=this.tb,ee!==null&&(Yn=ee.x,jn=ee.y,Et=ee.width,Jt=ee.height),Yn>nt.width+nt.x||nt.x>rn.width+rn.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(Yn,jn,Et,Jt),a.clip()}if(dt){if(!ht.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}at&&(rn=ht.shadowOffset,a.Ev(rn.x*y.scale*this.scale*y.Mb,rn.y*y.scale*this.scale*y.Mb,ht.shadowBlur),gu(a),a.shadowColor=ht.shadowColor)}at&&this.shadowVisible===!0?gu(a):at&&this.shadowVisible===!1&&Kl(a),ht=this.naturalBounds,this.areaBackground!==null&&(a.yc(),pa(this,a,ht,nt)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),at&&Zo(this,ot)&&this.shadowVisible===null&&Kl(a),this.Ma!==null&&(a.yc(),Ks(this,a,ht,nt)),at&&(this.Ma!==null||this.areaBackground!==null||Zo(this,ot))?(nl(this,!0),this.shadowVisible===null&&Kl(a)):nl(this,!1),this.hh(a,y),at&&this.l&512&&gu(a),dt&&at&&Kl(a),Ht&&(a.restore(),a.Vc(this instanceof Fn)),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 Zo(a,y){return y===null?!1:(Zu(y)&&(y=y.panel),(y.l&512)!==0||(y.type===Fn.Auto||y.type===Fn.Spot)&&y.Pb()!==a)}ne.Dv=function(){};function pa(a,y,x,b){$r(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof br&&a.areaBackground.type===Na?(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 Ks(a,y,x,b){var E=a.kq(),z=x.x,nt=x.y,ot=x.width+E,at=x.height+E;$r(a,y,a.Ma,!0,!1,x,b),a.Ma instanceof br&&a.Ma.type===Na?(y.beginPath(),y.rect(z-E/2,nt-E/2,ot,at),y.ng(a.Ma)):y.fillRect(z-E/2,nt-E/2,ot,at)}function as(a,y,x){for(var b=y.O.s,E=b.length,z=-1,nt=0;nt<E;nt++)if(b[nt]===a){z=nt;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===Fn.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 Ma(a,y,x){if(!(y instanceof oa))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&&as(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),gu(y),y.shadowColor=a.shadowColor}a instanceof Ir&&(y.font=a.font),y.yd=null;var nt=a.transform;z=a instanceof Fn;var ot=a instanceof Fn?Zu(a):!1;a.l&4096&&_o(a);var at=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,E&&(y.o=!0,z&&ot?(Rg(y,1,0,0,1,0,0),a.svg=y.ad):z?(Rg(y,nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy),a.svg=y.ad):Rg(y,1,0,0,1,0,0)),E=a.naturalBounds,a.areaBackground!==null){var ht=nt.copy().Vj();y.rb.ha=[ht.m11,ht.m12,ht.m21,ht.m22,ht.dx,ht.dy],pa(a,y,E,at),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return z||(y.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy]),a.background!==null&&(z?(ot&&(y.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy]),Ks(a,y,E,at),ot&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy],Ks(a,y,E,at)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),nt=y.yd,E=a.part,ot=!1,E&&x.Gf("drawShadows")&&(ot=E.isShadowed),y.clipInsteadOfFill&&(ot=!1),a.Dd()&&ot&&gu(y),ot&&a.shadowVisible===!0?gu(y):ot&&a.shadowVisible===!1&&Kl(y),E=a.panel,ot&&Zo(a,E)&&a.shadowVisible===null&&Kl(y),y.Il&&(ht=x.computePixelRatio(),ht="drop-shadow("+y.shadowOffsetX/ht+"px "+y.shadowOffsetY/ht+"px "+y.shadowBlur/ht/2+"px "+y.shadowColor+")",a.background!==null&&nt.Ma.setAttributeNS(null,"filter",ht),a.areaBackground!==null&&nt.gd.setAttributeNS(null,"filter",ht)),ot&&(a.Ma!==null||a.areaBackground!==null||Zo(a,E))?(nl(a,!0),a.shadowVisible===null&&Kl(y)):nl(a,!1),E=ot,a.hh(y,x),z&&y.nh.pop(),y.o&&y.nh.pop(),nt=y.Gv.hs,ot=z?a.svg:y.yd,ht=a.svg,!z&&ht!==null&&ot!==ht&&ht.parentNode===a.panel.svg?(a.svg.replaceWith(ot),a.svg=ot,ot!==null&&a.$o(y,b,at,ot),Rs(y,ht),!0):(a.svg=ot,nt!==null&&ot===null&&(um(y),y.nh.pop()),ot===null||(a.$o(y,b,at,ot),y.Il&&(x=x.computePixelRatio(),a.Dv(ot,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),E&&a.l&512&&gu(y),a.Dd()&&Kl(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&ot.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&ot.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(ot):y.Nj.prepend(ot),y.ti=ot):b!==null&&as(a,b,ot),nt!==null&&nt(a,ot)),!0)}ne.$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 nt=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,nt=z.width,x=z.height),z=b.getAttribute("clip-path");var ot=null;z!==null&&(ot=a.svg.getElementById(z.split("#")[1].slice(0,-1))),ot===null?(z="CLIP"+kr++,ot=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:E,width:nt,height:x}),this instanceof Fn&&(E=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")),ot.appendChild(y),a.svg.appendChild(ot),b.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=ot.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",E.toString()),a.setAttribute("width",nt.toString()),a.setAttribute("height",x.toString()))}else b.removeAttributeNS(null,"clip-path"),Rs(a,b)};function Rs(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function ls(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=Fi(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()}}ne.hh=function(){},ne.lv=function(){this.Uc=!0},ne.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 Fn?Zu(this):!1;if(!(this instanceof Fn&&E))if(this instanceof Hs){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 Fn)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof Ri){z=y.getElementsByTagName("path");for(var nt=0;nt<z.length;nt++)z[nt].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):(nt=b.copy().Vj(),a.rb.ha=[nt.m11,nt.m12,nt.m21,nt.m22,nt.dx,nt.dy],pa(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(nt=y.gd.getAttribute("filter"),nt!==null&&a.ad.setAttribute("filter",nt),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&hm(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(hm(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((E||x&&!(this instanceof Fn))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),Ks(this,a,this.naturalBounds,this.actualBounds),y.Ma?(hm(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&&hm(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},ne.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 $r(a,y,x,b,E,z,nt){if(x!==null){var ot=1,at=1;if(typeof x=="string")b?y.fillStyle=x:y.strokeStyle=x;else if(x.type===Vu)b?y.fillStyle=x.color:y.strokeStyle=x.color;else{var ht=a.kq();if(ot=z.width,at=z.height,E?(ot=nt.width,at=nt.height):b||(ot+=ht,at+=ht),(z=y instanceof Ac)&&x.xe&&(x.type===yf||x.yk===ot&&x.ft===at))var dt=x.xe;else{var Et=0,Ht=0,Jt=0,ee=0,se=0,Ce=0;if(Ce=se=0,E?(se=nt.x,Ce=nt.y):b||(se-=ht/2,Ce-=ht/2),Et=x.start.x*ot+x.start.offsetX,Ht=x.start.y*at+x.start.offsetY,Jt=x.end.x*ot+x.end.offsetX,ee=x.end.y*at+x.end.offsetY,Et+=se,Jt+=se,Ht+=Ce,ee+=Ce,x.type===mu)dt=y.createLinearGradient(Et,Ht,Jt,ee);else if(x.type===Na)Ce=isNaN(x.endRadius)?Math.max(ot,at)/2:x.endRadius,isNaN(x.startRadius)?(se=0,Ce=Math.max(ot,at)/2):se=x.startRadius,dt=y.createRadialGradient(Et,Ht,se,Jt,ee,Ce);else if(x.type===yf)try{dt=y.createPattern(x.pattern,"repeat")}catch(Ae){dt=null}if(x.type!==yf&&(E=x.colorStops,E!==null))for(E=E.iterator;E.next();)dt.addColorStop(E.key,E.value);if(z&&(x.xe=dt,dt!==null&&(x.yk=ot,x.ft=at),dt===null&&x.type===yf&&x.yk!==-1)){x.yk=-1;var ve=a.diagram;ve!==null&&x.yk===-1&&Nn(function(){ve.redraw()},600)}}b?y.fillStyle=dt:y.strokeStyle=dt}}}ne.rg=function(a){if(a instanceof Fn)t:{if(this!==a&&a!==null)for(var y=this.panel;y!==null;){if(y===a){a=!0;break t}y=y.panel}a=!1}else a=!1;return a},ne.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},ne.If=function(){for(var a=this instanceof Fn?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function _o(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){Ka(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)}Ka(a,!1),Ta(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,Ta(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,Ta(a,!1)))}ne.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Se.alloc();z.yi(y,x,b,E,ur),a.rotate(this.Kb,z.x,z.y),Se.free(z)}},ne.v=function(a){if(!ma(this)){a===void 0&&(a=!1),xo(this,!0),Gl(this,!0);var y=this.panel;y===null||a||y.v()}},ne.Uj=function(){ma(this)||(xo(this,!0),Gl(this,!0))};function Es(a){if(!Ls(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof Vn&&a.Bd(),y.$b())),Gl(a,!0)}}ne.Uk=function(){!(this.l&2048)&&(Ka(this,!0),Ta(this,!0))},ne.Wu=function(){Ta(this,!0)},ne.N=function(){var a=this.part;a!==null&&a.N()};function js(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===Fn.Table?dl(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===Fn.Auto&&b.Pb()===a?Xo(a,Dn,y):x===Ii?b!==null?b.type===Fn.Spot&&b.Pb()===a?Xo(a,Dn,y):(x=b.defaultStretch,x===Ii?Xo(a,kn,y):Xo(a,x,y)):Xo(a,kn,y):Xo(a,x,y)}function dl(a,y,x,b){var E=a.stretch;if(E!==Ii)return Xo(a,E,b);var z=E=null;switch(y.stretch){case Si:z=!0;break;case Dn:z=!0}switch(x.stretch){case ai:E=!0;break;case Dn:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===ai||y===Dn),z===null&&(z=y===Si||y===Dn),E===!0&&z===!0?Xo(a,Dn,b):E===!0?Xo(a,ai,b):z===!0?Xo(a,Si,b):Xo(a,kn,b)}function Xo(a,y,x){if(x)return y;if(y===kn||(x=a.desiredSize,x.w()))return kn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===ai)return kn;if(y===Dn)return Si}else{if(y===Si)return kn;if(y===Dn)return ai}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===Si)return kn;if(y===Dn)return ai}else{if(y===ai)return kn;if(y===Dn)return Si}return y}function nl(a,y){a.l=y?a.l|512:a.l&-513}function qo(a){return(a.l&1024)!==0}function fd(a,y){a.l=y?a.l|1024:a.l&-1025}function Ka(a,y){a.l=y?a.l|2048:a.l&-2049}function Ta(a,y){a.l=y?a.l|4096:a.l&-4097}function ma(a){return(a.l&8192)!==0}function xo(a,y){a.l=y?a.l|8192:a.l&-8193}function Ls(a){return(a.l&16384)!==0}function Gl(a,y){a.l=y?a.l|16384:a.l&-16385}ne.Gj=function(){this.svg=null},ne.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},ne.Av=function(){},ne.zv=function(a){return this.pa=a,Es(this),!0},ne.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},ne.kq=function(){return 0};function Ec(a){var y=a.part;if(y instanceof Vn&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||K1(y,a)}}function Yy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof Fn?a instanceof Vn?a.Bd():a.qm(a,function(x){Ec(x)}):Ec(a))}ne.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new po(a,y,x,b):E=a,E.xd=this,a=this.ih(),a!==null&&f1(a)&&Pe("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new bn),this.localBindings.add(E),this},ne.set=function(a){return Object.assign(this,a),this},ne.Du=function(a){return iv(this,a),this},ne.apply=function(a){return a(this),this},ne.nm=function(a){return vc(this,a),this},ne.pz=function(){return this.ih()},ne.ih=function(){for(var a=this instanceof Fn?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},ne.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new qn),this.animationTriggers.add(a.propertyName,a),this};function ka(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=df.I(a);typeof z=="function"?(x=_e(arguments),b=z(x),Ke(b)||Pe('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=Le.go[a]}if(b===null&&(E!=null&&E.constructor||Pe("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 on&&1<x.length){z=b;var nt=x[1];(typeof nt=="string"||nt instanceof HTMLDivElement)&&(cg(z,nt),E++)}for(;E<x.length;E++)z=x[E],z===void 0?Pe("Undefined value at argument "+E+" for object being constructed by GraphObject.make: "+b):iv(b,z);return b}function iv(a,y){if(typeof y=="string")if(a instanceof Ir)a.text=y;else if(a instanceof Ri)a.figure=y;else if(a instanceof Hs)a.source=y;else if(a instanceof Fn)y=il.I(y),y!==null&&(a.type=y);else if(a instanceof br){var x=Rn(br,y);x!==null?a.type=x:Pe("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Un?(y=Rn(Un,y),y!==null&&(a.type=y)):a instanceof fr&&(y=Rn(fr,y),y!==null&&(a.type=y));else if(y instanceof Xe)a instanceof Fn||Pe("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof wo){var b;y.isRow&&typeof a.getRowDefinition=="function"?b=a.getRowDefinition(y.index):y.isRow||typeof a.getColumnDefinition!="function"||(b=a.getColumnDefinition(y.index)),b instanceof wo?Lm(b,y):Pe("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof dn)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Lo)a.type=y;else if(y instanceof po)a instanceof Xe||a instanceof wo?a.bind(y):Pe("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof tl)a instanceof Xe?a.Jv(y):Pe("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof Io)a instanceof Un&&a.type===Un.o?a.figures.add(y):Pe("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof fr)a instanceof Io?a.segments.add(y):Pe("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Gr)a instanceof on||a instanceof Ni?a.layout=y:Pe("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++)iv(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof br){x=new hi;for(var E in y)b=parseFloat(E),isNaN(b)?x[E]=y[E]:a.addColorStop(b,y[E]);vc(a,x)}else if(a instanceof wo){y.row!==void 0?(E=y.row,(E==null||E===1/0||isNaN(E)||0>E)&&Pe("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)&&Pe("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new hi;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);vc(a,E)}else vc(a,y);else Pe('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function Ku(a,y){df.add(a,y)}function lm(a,y,x){x===void 0&&(x=null);var b=a[1];if(typeof x=="function"?x(b):typeof b=="string")return a.splice(1,1),b;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}we.Object.defineProperties(Xe.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new gd),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 gd),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 gd),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(Hi(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&&(Hi(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Ts},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new Rh),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===Ts&&(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 Rh),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 Rh),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:ji},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new Rh),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:Ii},set:function(a){var y=this.stretch;y!==a&&(Hi(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&&(Hi(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)&&pn(a,"0 <= value <= 1",Xe,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(Nc(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(Nc(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(),Yy(this))}},pickable:{get:function(){return(this.l&2)!==0},set:function(a){var y=(this.l&2)!==0;y!==a&&(this.l^=2,this.g("pickable",y,a))}},fromLinkableDuplicates:{get:function(){return(this.l&4)!==0},set:function(a){var y=(this.l&4)!==0;y!==a&&(this.l^=4,this.g("fromLinkableDuplicates",y,a))}},fromLinkableSelfNode:{get:function(){return(this.l&8)!==0},set:function(a){var y=(this.l&8)!==0;y!==a&&(this.l^=8,this.g("fromLinkableSelfNode",y,a))}},toLinkableDuplicates:{get:function(){return(this.l&16)!==0},set:function(a){var y=(this.l&16)!==0;y!==a&&(this.l^=16,this.g("toLinkableDuplicates",y,a))}},toLinkableSelfNode:{get:function(){return(this.l&32)!==0},set:function(a){var y=(this.l&32)!==0;y!==a&&(this.l^=32,this.g("toLinkableSelfNode",y,a))}},isPanelMain:{get:function(){return(this.l&64)!==0},set:function(a){var y=(this.l&64)!==0;y!==a&&(this.l^=64,this.v(),this.g("isPanelMain",y,a))}},isActionable:{get:function(){return(this.l&128)!==0},set:function(a){var y=(this.l&128)!==0;y!==a&&(this.l^=128,this.g("isActionable",y,a))}},areaBackground:{get:function(){return this.A!==null?this.A.gd:null},set:function(a){var y=this.areaBackground;y!==a&&(a!==null&&md(a,"GraphObject.areaBackground"),a instanceof br&&a.freeze(),Hi(this),this.A.gd=a,this.N(),this.g("areaBackground",y,a))}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&md(a,"GraphObject.background"),a instanceof br&&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 di)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 Se(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&&Pe("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,Yy(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 Ri&&this.qc(),this.g("desiredSize",b,a),qo(this)&&(a=this.part,a!==null&&(Hr(this,a,"width"),Hr(this,a,"height"))))}},width:{get:function(){return this.jd.width},set:function(a){var y=this.jd.width;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Wn(a,this.jd.height).freeze(),this.v(),this instanceof Ri&&this.qc(),this.g("desiredSize",y,a),qo(this)&&(a=this.part,a!==null&&Hr(this,a,"width")))}},height:{get:function(){return this.jd.height},set:function(a){var y=this.jd.height;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Wn(this.jd.width,a).freeze(),this.v(),this instanceof Ri&&this.qc(),this.g("desiredSize",y,a),qo(this)&&(a=this.part,a!==null&&Hr(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:Ti},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(),Hi(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:io},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(),Hi(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 li(a));var y=this.Kg;y.D(a)||(this.Kg=a=a.J(),this.v(),this.g("margin",y,a))}},transform:{get:function(){return this.l&2048&&_o(this),this.Ab}},oe:{get:function(){return this.l&4096&&_o(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Hi(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:kn},set:function(a){this.reshapingBehavior!==a&&(Hi(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()&&Pe("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),Es(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&&pn(a,">= 0",Xe,"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&&pn(a,">= 1",Xe,"columnSpan"),Hi(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&&pn(a,">= 0",Xe,"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&&pn(a,">= 1",Xe,"rowSpan"),Hi(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&&(Hi(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 Vn||Pe("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Gv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,X1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:ao},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Ec(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&pn(a,">= 0",Xe,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Ec(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),Ec(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&&pn(a,">= 0",Xe,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:ao},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Ec(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&pn(a,">= 0",Xe,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Ec(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),Ec(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&&pn(a,">= 0",Xe,"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&&(Hi(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&&(Hi(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&&(Hi(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&&(Hi(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&&(Hi(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&&(Hi(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&&(Hi(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&&(Hi(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&&(Hi(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&&(Hi(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&&(Hi(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&&(Hi(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&&(Hi(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&&(Hi(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&&(Hi(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&&(Hi(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&&(Hi(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&&(Hi(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),Xe.prototype.trigger=Xe.prototype.Jv,Xe.prototype.findBindingPanel=Xe.prototype.ih,Xe.prototype.findTemplateBinder=Xe.prototype.pz,Xe.prototype.setProperties=Xe.prototype.nm,Xe.prototype.apply=Xe.prototype.apply,Xe.prototype.attach=Xe.prototype.Du,Xe.prototype.set=Xe.prototype.set,Xe.prototype.isEnabledObject=Xe.prototype.If,Xe.prototype.isVisibleObject=Xe.prototype.Ed,Xe.prototype.isContainedBy=Xe.prototype.rg,Xe.prototype.getNearestIntersectionPoint=Xe.prototype.rs,Xe.prototype.getLocalPoint=Xe.prototype.qs,Xe.prototype.getDocumentScale=Xe.prototype.Df,Xe.prototype.getDocumentAngle=Xe.prototype.li,Xe.prototype.getDocumentBounds=Xe.prototype.mi,Xe.prototype.getDocumentPoint=Xe.prototype.ga,Xe.prototype.intersectsRect=Xe.prototype.Yc,Xe.prototype.containedInRect=Xe.prototype.fh,Xe.prototype.containsRect=Xe.prototype.Re,Xe.prototype.containsPoint=Xe.prototype.ca,Xe.prototype.raiseChanged=Xe.prototype.g,Xe.prototype.raiseChangedEvent=Xe.prototype.cb,Xe.prototype.addCopyProperty=Xe.prototype.Vw;var df=null;Xe.className="GraphObject",df=new qn,Ku("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=ka(Fn,Fn.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof Fn){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"},ka(Ri,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new si(0,0,2.76142374915397,2.761423749153969),spot2:new si(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 Fn&&(x=b.fb("ButtonBorder"),x instanceof Ri)){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 Fn&&(x=b.fb("ButtonBorder"),x instanceof Ri&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof Fn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Ri){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var nt=b._buttonFillPressed;b._buttonFillOver=E.fill,E.fill=nt,nt=b._buttonStrokePressed,b._buttonStrokeOver=E.stroke,E.stroke=nt,x.skipsUndoManager=z}}},y.actionUp=function(x,b){if(b.If()&&b instanceof Fn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof Ri){var z=x.diagram,nt=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=nt}}},y.actionCancel=function(x,b){if(b.If()&&b instanceof Fn&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof Ri){var z=x.diagram,nt=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=nt}}},y.actionMove=function(x,b){if(b.If()&&b instanceof Fn&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof Ri))){var z=E.skipsUndoManager;E.skipsUndoManager=!0;var nt=b._buttonFillPressed;x.fill!==nt&&(x.fill=nt),nt=b._buttonStrokePressed,x.stroke!==nt&&(x.stroke=nt),E.skipsUndoManager=z}}},y}),Ku("TreeExpanderButton",function(){var a=ka("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},ka(Ri,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Rr},new po("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new po("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof cr&&(x=x.adornedPart),x instanceof Vn){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}),Ku("SubGraphExpanderButton",function(){var a=ka("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},ka(Ri,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Rr},new po("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 cr&&(x=x.adornedPart),x instanceof Ni){var b=x.diagram;if(b!==null){if(b=b.commandHandler,x.isSubGraphExpanded){if(!b.canCollapseSubGraph(x))return}else if(!b.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?b.collapseSubGraph(x):b.expandSubGraph(x)}}},a}),Ku("ToolTip",function(){return ka(cr,Fn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Se(0,3),shadowBlur:5},ka(Ri,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new si(0,0,4,6),spot2:new si(1,1,-4,-4)}))}),Ku("ContextMenu",function(){return ka(cr,Fn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Se(0,3),shadowBlur:5},new po("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Ku("ContextMenuButton",function(){var a=ka("Button");a.stretch=ai;var y=a.fb("ButtonBorder");return y instanceof Ri&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new si(0,0,2,3),y.spot2=new si(1,1,-2,-2)),a}),Ku("PanelExpanderButton",function(a){var y=lm(a,"COLLAPSIBLE"),x=ka("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},ka(Ri,{name:"ButtonIcon",strokeWidth:2},new po("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Ri&&(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 nt=E.ih();nt===null&&(nt=E.part),nt!==null&&(E=nt.fb(y),E!==null&&(b.handled=!0,z.Ea("Collapse/Expand Panel"),E.visible=!E.visible,z.eb("Collapse/Expand Panel")))}},x}),Ku("CheckBoxButton",function(a){var y=lm(a);return a=ka("Button",{desiredSize:new Wn(14,14)},ka(Ri,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Dn,geometryStretch:ni,visible:!1},y!==""?new po("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof Fn){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}),Ku("CheckBox",function(a){a=lm(a),a=ka("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new li(0,1,0,0)});var y=ka(Fn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new li(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}),Xe.None=kn=new dn(Xe,"None",0),Xe.Default=Ii=new dn(Xe,"Default",0),Xe.Vertical=Si=new dn(Xe,"Vertical",4),Xe.Horizontal=ai=new dn(Xe,"Horizontal",5),Xe.Fill=Dn=new dn(Xe,"Fill",3),Xe.Uniform=ni=new dn(Xe,"Uniform",1),Xe.UniformToFill=tr=new dn(Xe,"UniformToFill",2),Xe.FlipVertical=Ui=new dn(Xe,"FlipVertical",1),Xe.FlipHorizontal=or=new dn(Xe,"FlipHorizontal",2),Xe.FlipBoth=Mr=new dn(Xe,"FlipBoth",3),Xe.make=ka,Xe.getBuilders=function(){var a=new qn,y;for(y in df)if(y!==y.toLowerCase()){var x=df.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},Xe.defineBuilder=Ku,Xe.build=function(a,y,x){for(var b=[],E=2;E<arguments.length;++E)b[E-2]=arguments[E];if(E=df.I(a),typeof E=="function"&&(b=E([a].concat(b)),b instanceof Xe))return y&&b.set(y),b;Pe('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},Xe.takeBuilderArgument=lm;function gd(){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=Ti,this.o=io,this.hg=Ii,this.ob=this.Bi=1,this.Pf=kn,this.Pc=this.Ci=this.gd=null,this.Oc="category"}gd.prototype.copy=function(){var a=new gd;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 Rh(){this.u=-1/0,this.o=0,this.F=ji,this.rr=Ts,this.j=this.V="None"}Rh.prototype.copy=function(){var a=new Rh;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},Rh.className="LinkElementSettings";function Bg(){this.yj=this.Xi=Cr,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}Bg.prototype.copy=function(){var a=new Bg;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},Bg.className="LinkSettings";function Lc(){this.ha=[1,0,0,1,0,0]}Lc.prototype.copy=function(){var a=new Lc;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},Lc.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},Lc.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},Lc.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,nt=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]=nt,this.translate(-y,-x)}},Lc.className="STransform";function pd(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}pd.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},pd.className="SGradient";function Tl(a,y,x){this.ownerDocument=a=y===void 0?Le.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 oa(this,x)}Tl.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},Tl.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),Ke(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},Tl.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Tl.prototype.focus=function(){this.Oa.focus()},Tl.prototype.mx=function(){this.ownerDocument=null},we.Object.defineProperties(Tl.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}}}),Tl.className="SVGSurface";function oa(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 Lc,this.j=um(this),this.Nj=um(this,"gojs-diagram"),this.Hl=this.ti=null;var x=kr++,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 _y(a,y,x,b,E,z,nt){a.Nj===void 0?Rg(a,y,x,b,E,z,nt):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+b+", "+E+", "+z+", "+nt+")")}ne=oa.prototype,ne.arc=function(a,y,x,b,E,z,nt,ot){var at=2*Math.PI,ht=at-1e-6,dt=x*Math.cos(b),Et=x*Math.sin(b),Ht=a+dt,Jt=y+Et,ee=z?0:1;b=z?b-E:E-b,(1e-6<Math.abs(nt-Ht)||1e-6<Math.abs(ot-Jt))&&this.path.push(["L",Ht,+Jt]),0>b&&(b=b%at+at),b>ht?(this.path.push(["A",x,x,0,1,ee,a-dt,y-Et]),this.path.push(["A",x,x,0,1,ee,Ht,Jt])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),ee,a+x*Math.cos(E),y+x*Math.sin(E)])},ne.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},ne.Se=function(a){this.addPath(this.path,this.rb,a||0)},ne.bezierCurveTo=function(a,y,x,b,E,z){this.path.push(["C",a,y,x,b,E,z])},ne.clearRect=function(){},ne.clip=function(){this.Yl.clipPath=!0},ne.closePath=function(){this.path.push(["z"])},ne.createLinearGradient=function(a,y,x,b){var E=new pd("linear");return E.x1=a,E.y1=y,E.x2=x,E.y2=b,E},ne.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"+kr++,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(bc,E)),this.svg.appendChild(a),x[y]=b,"url(#"+b+")"},ne.createRadialGradient=function(a,y,x,b,E,z){var nt=new pd("radial");return nt.x1=a,nt.y1=y,nt.r1=x,nt.x2=b,nt.y2=E,nt.r2=z,nt};function Jy(a,y,x,b,E,z,nt,ot,at){b=ot/b,E=at/E,z===0&&nt===0||a.rb.translate(z,nt),b===1&&E===1||a.rb.scale(b,E),y===0&&x===0||a.rb.translate(-y,-x)}ne.drawImage=function(a,y,x,b,E,z,nt,ot,at){var ht="";a instanceof HTMLCanvasElement&&(ht=a.toDataURL()),a instanceof HTMLImageElement&&(ht=a.getAttribute("src"));var dt=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(z=y,nt=x,ot=b=dt,at=E=a),b=b||0,E=E||0,ot=ot||0,at=at||0,Jy(this,y,x,b,E,z||0,nt||0,ot,at),z={x:0,y:0,width:dt||b,height:a||E,href:ht},Je.$(b,ot)&&Je.$(E,at)?ht.toLowerCase().indexOf(".svg")===-1&&ht.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||b!==dt||E!==a)&&(b+=y,E+=x,z["clip-path"]="path('M "+y+","+x+" L "+b+" "+x+" L "+b+" "+E+" L "+y+" "+E+" z')"),ff(this,bc,z,this.rb),this.addElement(bc,z)},ne.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),rv(this,this.Yl)},ne.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},ne.fillRect=function(a,y,x,b){a=[a,y,x,b],a={x:a[0],y:a[1],width:a[2],height:a[3]},ff(this,"fill",a,this.rb),this.addElement("rect",a)},ne.ox=function(a,y,x,b){a={x:a,y,width:x,height:b},ff(this,"fill",a,this.rb),rv(this,a),this.svg.prepend(this.Ud("rect",a))},ne.fillText=function(a,y,x){a=[a,y,x],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},ff(this,"fill",y,this.rb),this.addElement("text",y,a[0])},ne.lineTo=function(a,y){this.path.push(["L",a,y])},ne.moveTo=function(a,y){this.path.push(["M",a,y])},ne.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},ne.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"])},ne.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},ne.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())},ne.setTransform=function(a,y,x,b,E,z){a===1&&y===0&&x===0&&b===1&&E===0&&z===0||Rg(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]+")"}ne.scale=function(a,y){this.rb.scale(a,y)},ne.translate=function(a,y){this.rb.translate(a,y)},ne.transform=function(){},ne.yc=function(){},ne.stroke=function(){$y(this,this.Yl)},ne.jk=function(){this.clipInsteadOfFill||this.stroke()},ne.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},ne.addElement=function(a,y,x){return a=this.Ud(a,y,x),this.yd!==null?this.yd.appendChild(a):this.yd=a,this.ad=a};function ff(a,y,x,b){y==="fill"?rv(a,x):y==="stroke"&&$y(a,x),b!==null&&(a=b.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function rv(a,y){a.fillStyle instanceof pd?y.fill=ov(a,a.fillStyle,!0):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.fill="rgb("+a[1]+","+a[2]+","+a[3]+")",y["fill-opacity"]=a[4]):y.fill=a.fillStyle}function qy(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof pd?y.setAttributeNS(null,"fill",ov(a,a.fillStyle,!0)):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.setAttributeNS(null,x,"rgb("+a[1]+","+a[2]+","+a[3]+")"),y.setAttributeNS(null,x+"-opacity",a[4])):y.setAttributeNS(null,x,a.fillStyle)}function $y(a,y){if(a.strokeStyle instanceof pd)y.stroke=ov(a,a.strokeStyle,!1);else if(/^rgba\(/.test(a.strokeStyle)){var x=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.strokeStyle);y.stroke="rgb("+x[1]+","+x[2]+","+x[3]+")",y["stroke-opacity"]=x[4]}else y.stroke=a.strokeStyle;y["stroke-width"]=a.lineWidth,y["stroke-linecap"]=a.lineCap,y["stroke-linejoin"]=a.lineJoin,y["stroke-miterlimit"]=a.miterLimit,a.Ct&&(y["stroke-dasharray"]=a.Yg.toString(),y["stroke-dashoffset"]=a.uj)}function ov(a,y,x){var b="";if(b=a.Hl!==null?a.Hl.getAttribute(x?"fill":"stroke"):null,b!==null&&b.indexOf("GRAD")!==-1?(b=b.split("#")[1].slice(0,-1),x=a.svg.getElementById(b),x!==null&&x.remove()):b="GRAD"+kr++,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=[],nt=0;nt<y;nt++){var ot=E[nt],at=ot.color;ot={offset:ot.offset,"stop-color":at},/^rgba\(/.test(at)&&(at=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(at),ot["stop-color"]="rgb("+at[1]+","+at[2]+","+at[3]+")",ot["stop-opacity"]=at[4]),z.push(ot)}for(z.sort(function(ht,dt){return ht.offset>dt.offset?1:-1}),E=0;E<y;E++)x.appendChild(a.Ud("stop",z[E]));return a.svg.appendChild(x),"url(#"+b+")"}ne.addPath=function(a,y,x){for(var b=[],E=0;E<a.length;E++){var z=_e(a[E]),nt=[z.shift()];if(nt[0]==="A")nt.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)nt.push(z.shift()+","+z.shift());b.push(nt.join(" "))}if(b=b.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+b+'")');else if(a.d=b,ff(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var ot in a)ot!=="transform"&&y.setAttributeNS(null,ot,a[ot]);else{ot=y.getElementsByTagName("path");for(var at in a)at!=="transform"&&ot[x].setAttributeNS(null,at,a[at])}else this.addElement("path",a)};function Rg(a,y,x,b,E,z,nt){var ot=new Lc;ot.ha=[y,x,b,E,z,nt],y={},ff(a,"g",y,ot),ot=a.addElement("g",y),a.nh.push(ot)}function um(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}ne.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function Kl(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function gu(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}ne.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},ne.fs=function(){this.Ct=!1},ne.Vc=function(){},ne.Wx=function(){},oa.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},oa.prototype.getImageData=function(){return null},oa.prototype.measureText=function(){return null};function hm(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()))}oa.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},oa.className="SVGContext",on.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new Tl(this,Le.document));var y=new Tl(this,Le.document,!0);a===void 0&&(a=new hi);var x=this;return ld(this,function(b,E){return b=rm(x,b,"SVG",y),b=b!==null?b.svg:null,typeof E=="function"?(E(b),null):b},a)},on.prototype.makeSvg=on.prototype.Cs,on.prototype.av=function(a){return this.Cs(a)},on.prototype.makeSVG=on.prototype.av;function Va(a,y,x,b){this.ownerDocument=y=y===void 0?Le.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Ac(y,x,b),y.H=a}Va.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},Va.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},Va.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Va.prototype.focus=function(){this.Oa.focus()},Va.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},we.Object.defineProperties(Va.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}}}),Va.className="CanvasSurface";function Ac(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&Pe("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 Vi,this.isTemporary=!!x}ne=Ac.prototype,ne.Wx=function(a){this.Z.imageSmoothingEnabled=a},ne.arc=function(a,y,x,b,E,z){this.Z.arc(a,y,x,b,E,z)},ne.beginPath=function(){this.Z.beginPath()},ne.Se=function(){},ne.bezierCurveTo=function(a,y,x,b,E,z){this.Z.bezierCurveTo(a,y,x,b,E,z)},ne.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},ne.clip=function(){this.Z.clip()},ne.closePath=function(){this.Z.closePath()},ne.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},ne.createPattern=function(a,y){return this.Z.createPattern(a,y)},ne.createRadialGradient=function(a,y,x,b,E,z){return this.Z.createRadialGradient(a,y,x,b,E,z)},ne.drawImage=function(a,y,x,b,E,z,nt,ot,at){b===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,b,E,z,nt,ot,at)},ne.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},ne.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},ne.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},ne.fillText=function(a,y,x){this.Z.fillText(a,y,x)},ne.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},ne.lineTo=function(a,y){this.Z.lineTo(a,y)},ne.measureText=function(a){return this.Z.measureText(a)},ne.moveTo=function(a,y){this.Z.moveTo(a,y)},ne.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},ne.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},ne.restore=function(){this.Z.restore()},ne.save=function(){this.yc(),this.Z.save()},Ac.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},ne=Ac.prototype,ne.setTransform=function(a,y,x,b,E,z){this.El.setTransform(a,y,x,b,E,z)},ne.scale=function(a,y){this.El.scale(a,y)},ne.translate=function(a,y){this.El.translate(a,y)},ne.stroke=function(){this.Z.stroke()},ne.transform=function(a,y,x,b,E,z){if(a!==1||y!==0||x!==0||b!==1||E!==0||z!==0){var nt=this.El,ot=nt.m11*a+nt.m21*y;a=nt.m12*a+nt.m22*y,y=nt.m11*x+nt.m21*b,x=nt.m12*x+nt.m22*b,nt.dx=nt.m11*E+nt.m21*z+nt.dx,nt.dy=nt.m12*E+nt.m22*z+nt.dy,nt.m11=ot,nt.m12=a,nt.m21=y,nt.m22=x}},ne.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},ne.ng=function(a,y){if(a instanceof br&&a.type===Na){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)},ne.jk=function(){this.Hm||this.stroke()},ne.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},ne.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},ne.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(vx),a.lineDashOffset=0)},ne.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},ne.Hs=function(){},we.Object.defineProperties(Ac.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var vx=Object.freeze([]);Ac.className="CanvasSurfaceContext";function jg(){this.F=this.o=this.u=this.j=0}jg.className="ColorNumbers";function br(a,y){vf||(cv(),vf=!0),Oi(this),this._isFrozen=!1,a===void 0?(this.na=Vu,this.xk="black"):typeof a=="string"?(this.na=Vu,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===mu?(this.Qd=Pa,this.Lk=$s):this.Lk=a===Na?this.Qd=ur:this.Qd=ao,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}br.prototype.copy=function(){var a=new br;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},ne=br.prototype,ne.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},ne.ka=function(){return Object.isFrozen(this)&&Pe("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},ne.qb=function(a){a.classType===br&&(this.type=a)},ne.toString=function(){var a="Brush(";if(this.type===Vu)a+=this.color;else if(a=this.type===mu?a+"Linear ":this.type===Na?a+"Radial ":this.type===yf?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},ne.addColorStop=function(a,y){return this._isFrozen&&We(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&pn(a,"0 <= loc <= 1",br,"addColorStop:loc"),this.we===null&&(this.we=new qn),this.we.add(a,y),this.na===Vu&&(this.type=mu),this.xe=null,this},ne.Vz=function(a,y){if(this._isFrozen&&We(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Sf:y,this.type===Vu)pu(this.color),this.color=pf(a,y);else if((this.type===mu||this.type===Na)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)pu(x.value),this.addColorStop(x.key,pf(a,y));return this};function t1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Sf:x,pu(a),pf(y,x)}ne.Wy=function(a,y){if(this._isFrozen&&We(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Sf:y,this.type===Vu)pu(this.color),this.color=pf(-a,y);else if((this.type===mu||this.type===Na)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)pu(x.value),this.addColorStop(x.key,pf(-a,y));return this};function e1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Sf:x,pu(a),pf(-y,x)}function sv(a,y,x){pu(a),a=Fr.j;var b=Fr.u,E=Fr.o,z=Fr.F;return pu(y),x===void 0&&(x=.5),"rgba("+Math.round((Fr.j-a)*x+a)+", "+Math.round((Fr.u-b)*x+b)+", "+Math.round((Fr.o-E)*x+E)+", "+Math.round((Fr.F-z)*x+z)+")"}ne.Gx=function(){if(this.type===Vu)return gf(this.color);if((this.type===mu||this.type===Na)&&this.colorStops!==null){var a=this.colorStops;if(this.type===Na)return gf(a.first().value);if(a.get(.5)!==null)return gf(a.get(.5));if(a.count===2)return a=a.Fa(),gf(sv(a[0].value,a[1].value));for(var y=a.iterator,x=-1,b=-1,E=1,z=1;y.next();){var nt=y.key,ot=Math.abs(.5-y.key);E>z&&ot<E?(x=nt,E=ot):z>=E&&ot<z&&(b=nt,z=ot)}return x>b&&(z=x,x=b,b=z,z=E),E=b-x,gf(sv(a.get(x),a.get(b),1-z/E))}return!1};function gf(a){return a?a instanceof br?a.Gx():(pu(a),128>(299*Fr.j+587*Fr.u+114*Fr.o)/1e3):!1}function pf(a,y){switch(y){case Sf:y=100*lv(Fr.j);var x=100*lv(Fr.u),b=100*lv(Fr.o);return As.j=.4124564*y+.3575761*x+.1804375*b,As.u=.2126729*y+.7151522*x+.072175*b,As.o=.0193339*y+.119192*x+.9503041*b,As.F=Fr.F,y=hv(As.j/mf[0]),x=hv(As.u/mf[1]),b=hv(As.o/mf[2]),Vl.j=116*x-16,Vl.u=500*(y-x),Vl.o=200*(x-b),Vl.F=As.F,Vl.j=Math.min(100,Math.max(0,Vl.j+100*a)),a=(Vl.j+16)/116,y=a-Vl.o/200,As.j=mf[0]*n1(Vl.u/500+a),As.u=mf[1]*(Vl.j>cm*dv?Math.pow(a,3):Vl.j/cm),As.o=mf[2]*n1(y),As.F=Vl.F,a=-.969266*As.j+1.8760108*As.u+.041556*As.o,y=.0556434*As.j+-.2040259*As.u+1.0572252*As.o,Fr.j=255*uv((3.2404542*As.j+-1.5371385*As.u+-.4985314*As.o)/100),Fr.u=255*uv(a/100),Fr.o=255*uv(y/100),Fr.F=As.F,Fr.j=Math.round(Fr.j),255<Fr.j?Fr.j=255:0>Fr.j&&(Fr.j=0),Fr.u=Math.round(Fr.u),255<Fr.u?Fr.u=255:0>Fr.u&&(Fr.u=0),Fr.o=Math.round(Fr.o),255<Fr.o?Fr.o=255:0>Fr.o&&(Fr.o=0),"rgba("+Fr.j+", "+Fr.u+", "+Fr.o+", "+Fr.F+")";case i1:return av(),va.o=Math.min(100,Math.max(0,va.o+100*a)),"hsla("+va.j+", "+va.u+"%, "+va.o+"%, "+va.F+")";default:Pe("Unknown color space: "+y)}}function pu(a){vf||(cv(),vf=!0);var y=fv;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,Fr.j=a[0],Fr.u=a[1],Fr.o=a[2],Fr.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Fr.j=0,Fr.u=0,Fr.o=0,Fr.F=1)}}function av(){var a=Fr.j/255,y=Fr.u/255,x=Fr.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 nt=a=0;else{switch(b){case a:nt=(y-x)/z%6;break;case y:nt=(x-a)/z+2;break;case x:nt=(a-y)/z+4}nt*=60,0>nt&&(nt+=360),a=z/(1-Math.abs(2*E-1))}va.j=Math.round(nt),va.u=Math.round(100*a),va.o=Math.round(100*E),va.F=Fr.F}function lv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function uv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function hv(a){return a>dv?Math.pow(a,1/3):(cm*a+16)/116}function n1(a){var y=a*a*a;return y>dv?y:(116*a-16)/cm}function md(a,y){typeof a!="string"&&(a instanceof br||Pe("Value for "+y+" must be a color string or a Brush, not "+a))}function cv(){fv=qr?new Va(null,void 0,{willReadFrequently:!0}).context:null}we.Object.defineProperties(br.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&We(this,a),this.na=a,this.start.Mc()&&(a===mu?this.start=Pa:a===Na&&(this.start=ur)),this.end.Mc()&&(a===mu?this.end=$s:a===Na&&(this.end=ur)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&We(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&We(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&We(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&We(this,a),0>a&&pn(a,">= zero",br,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&We(this,a),0>a&&pn(a,">= zero",br,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&We(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&We(this,a),this.cr=a,this.xe=null}}}),br.prototype.isDark=br.prototype.Gx,br.prototype.darkenBy=br.prototype.Wy,br.prototype.lightenBy=br.prototype.Vz,br.prototype.addColorStop=br.prototype.addColorStop;var dv=216/24389,cm=24389/27,mf=[95.047,100,108.883],fv=null,Fr=new jg,va=new jg,As=new jg,Vl=new jg,vf=!1;br.className="Brush";var Vu;br.Solid=Vu=new dn(br,"Solid",0);var mu;br.Linear=mu=new dn(br,"Linear",1);var Na;br.Radial=Na=new dn(br,"Radial",2);var yf;br.Pattern=yf=new dn(br,"Pattern",4);var Sf;br.Lab=Sf=new dn(br,"Lab",5);var i1;br.HSL=i1=new dn(br,"HSL",6),br.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},br.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;vf||(cv(),vf=!0);var y=fv;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},br.lighten=function(a){return t1(a)},br.lightenBy=t1,br.darken=function(a){return e1(a)},br.darkenBy=e1,br.mix=sv,br.isDark=gf;function Lo(){this.xa="Base"}Lo.prototype.measure=function(){},Lo.prototype.Yz=function(a,y,x,b,E){a.measure(y,x,b,E)},Lo.prototype.arrange=function(){},Lo.prototype.Ly=function(a,y,x,b,E,z){a.arrange(y,x,b,E,z)},Lo.prototype.iA=function(a){a.Uj()},Lo.prototype.gc=function(){},we.Object.defineProperties(Lo.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Fn}}}),Lo.prototype.remeasureObject=Lo.prototype.iA,Lo.prototype.arrangeElement=Lo.prototype.Ly,Lo.prototype.measureElement=Lo.prototype.Yz,Lo.className="PanelLayout";function dm(){this.xa="Base"}Qe(dm,Lo),dm.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length;a=vu(a);for(var at=0;at<ot;at++){var ht=b[at];if(ht.visible||ht===a){var dt=ht.margin,Et=dt.right+dt.left;dt=dt.top+dt.bottom,ht.measure(y,x,z,nt);var Ht=ht.measuredBounds;Et=Math.max(Ht.width+Et,0),dt=Math.max(Ht.height+dt,0),Ht=ht.position.x;var Jt=ht.position.y;isFinite(Ht)||(Ht=0),isFinite(Jt)||(Jt=0),ht instanceof Ri&&ht.isGeometryPositioned&&(ht=ht.strokeWidth/2,Ht-=ht,Jt-=ht),Ji(E,Ht,Jt,Et,dt)}}},dm.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding;for(a=x.x-E.left,x=x.y-E.top,E=0;E<b;E++){var z=y[E],nt=z.measuredBounds,ot=z.margin,at=z.position.x,ht=z.position.y;if(at=isNaN(at)?-a:at-a,ht=isNaN(ht)?-x:ht-x,z instanceof Ri&&z.isGeometryPositioned){var dt=z.strokeWidth/2;at-=dt,ht-=dt}z.visible&&z.arrange(at+ot.left,ht+ot.top,nt.width,nt.height)}};function fm(){this.xa="Base"}Qe(fm,Lo),fm.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length;y=sn(),z=vu(a);for(var at=0;at<ot;at++){var ht=b[at];if(ht.visible||ht===z){var dt=js(ht,!1);if(dt!==kn&&dt!==ai)y.push(ht);else{ht.measure(1/0,x,0,nt),dt=ht.margin,ht=ht.measuredBounds;var Et=Math.max(ht.height+dt.top+dt.bottom,0);E.width+=Math.max(ht.width+dt.right+dt.left,0),E.height=Math.max(E.height,Et)}}}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++)at=y[a],(at.visible||at===z)&&(dt=at.margin,ot=dt.right+dt.left,dt=dt.top+dt.bottom,at.measure(1/0,x,0,nt),at=at.measuredBounds,dt=Math.max(at.height+dt,0),E.width+=Math.max(at.width+ot,0),E.height=Math.max(E.height,dt));xn(y)},fm.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.top,nt=a.isOpposite,ot=nt?x.width:E.left,at=0;at<b;at++){var ht=z,dt=y[at];if(dt.visible){var Et=dt.measuredBounds,Ht=dt.margin,Jt=Ht.top+Ht.bottom,ee=z+E.bottom,se=Et.height,Ce=js(dt,!1);(isNaN(dt.desiredSize.height)&&Ce===Dn||Ce===Si)&&(se=Math.max(x.height-Jt-ee,0)),Jt=se+Jt+ee,ee=dt.alignment,ee.Xb()&&(ee=a.defaultAlignment),ee.sb()||(ee=ur),nt&&(ot-=Et.width+Ht.left+Ht.right),dt.arrange(ot+ee.offsetX+Ht.left,ht+ee.offsetY+Ht.top+(x.height*ee.y-Jt*ee.y),Et.width,se),nt||(ot+=Et.width+Ht.left+Ht.right)}}};function gm(){this.xa="Base"}Qe(gm,Lo),gm.prototype.measure=function(a,y,x,b,E,z){var nt=b.length;x=sn();for(var ot=vu(a),at=0;at<nt;at++){var ht=b[at];if(ht.visible||ht===ot){var dt=js(ht,!1);if(dt!==kn&&dt!==Si)x.push(ht);else{var Et=ht.margin;dt=Et.right+Et.left,Et=Et.top+Et.bottom,ht.measure(y,1/0,z,0),ht=ht.measuredBounds,so(E,Math.max(E.width,Math.max(ht.width+dt,0)),E.height+Math.max(ht.height+Et,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++)at=x[a],(at.visible||at===ot)&&(ht=at.margin,nt=ht.right+ht.left,ht=ht.top+ht.bottom,at.measure(y,1/0,z,0),at=at.measuredBounds,ht=Math.max(at.height+ht,0),E.width=Math.max(E.width,Math.max(at.width+nt,0)),E.height+=ht);xn(x)}},gm.prototype.arrange=function(a,y,x){for(var b=y.length,E=a.padding,z=E.left,nt=a.isOpposite,ot=nt?x.height:E.top,at=0;at<b;at++){var ht=z,dt=y[at];if(dt.visible){var Et=dt.measuredBounds,Ht=dt.margin,Jt=Ht.left+Ht.right,ee=z+E.right,se=Et.width,Ce=js(dt,!1);(isNaN(dt.desiredSize.width)&&Ce===Dn||Ce===ai)&&(se=Math.max(x.width-Jt-ee,0)),Jt=se+Jt+ee,ee=dt.alignment,ee.Xb()&&(ee=a.defaultAlignment),ee.sb()||(ee=ur),nt&&(ot-=Et.height+Ht.bottom+Ht.top),dt.arrange(ht+ee.offsetX+Ht.left+(x.width*ee.x-Jt*ee.x),ot+ee.offsetY+Ht.top,se,Et.height),nt||(ot+=Et.height+Ht.bottom+Ht.top)}}};function pm(){this.xa="Base"}Qe(pm,Lo),pm.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length,at=a.Pb(),ht=at.margin,dt=ht.right+ht.left,Et=ht.top+ht.bottom;at.measure(y,x,z,nt);var Ht=at.measuredBounds;z=Ht.width,nt=Ht.height;var Jt=Math.max(z+dt,0),ee=Math.max(nt+Et,0),se=a.isClipping,Ce=yn.allocAt(-ht.left,-ht.top,Jt,ee),ve=yn.allocAt(0,0,z,nt);gv(at,ve,!0),z=ve.width,nt=ve.height;for(var Ae=!0,Ie=vu(a),Be=0;Be<ot;Be++){var Ve=b[Be];Ht=y;var rn=x;if(Ve!==at&&(Ve.visible||Ve===Ie)){ht=Ve.margin;var Kn=ht.left,$n=ht.top;switch(Jt=ht.right+ht.left,ee=ht.top+ht.bottom,ht=js(Ve,!1),ht){case Dn:Ht=z,rn=nt,$n=Kn=ee=Jt=0;break;case ai:Ht=z,Kn=Jt=0;break;case Si:rn=nt,$n=ee=0}Ve.measure(Ht,rn,0,0),Ht=Ve.measuredBounds,Jt=Math.max(Ht.width+Jt,0),ee=Math.max(Ht.height+ee,0),ht=Ve.alignment,ht.Xb()&&(ht=a.defaultAlignment),ht.sb()||(ht=ur);var Yn=Ve.alignmentFocus;if(Yn.Xb()&&(Yn=ur),rn=null,Ve instanceof Fn&&Ve.$e!==""&&(rn=Ve.fb(Ve.$e),rn===Ve&&(rn=null)),Kn=ve.x-Kn,$n=ve.y-$n,rn!==null){for(Ve.arrange(0,0,Ht.width,Ht.height),Ht=rn.actualBounds,Ht=Se.allocAt(Ht.x+(Yn.x*Ht.width-Yn.offsetX),Ht.y+(Yn.y*Ht.height-Yn.offsetY)),rn=rn.panel;rn!==Ve;)rn.transform.Ga(Ht),rn=rn.panel;Kn+=ht.x*z+ht.offsetX-Ht.x,$n+=ht.y*nt+ht.offsetY-Ht.y,Se.free(Ht)}else Kn+=ht.x*z+ht.offsetX-(Yn.x*Ht.width+Yn.offsetX),$n+=ht.y*nt+ht.offsetY-(Yn.y*Ht.height+Yn.offsetY);Ae?(Ae=!1,E.h(Kn,$n,Jt,ee)):Ji(E,Kn,$n,Jt,ee)}}switch(Ae?E.assign(Ce):se?E.Uu(ve.x,ve.y,ve.width,ve.height):Ji(E,Ce.x,Ce.y,Ce.width,Ce.height),yn.free(Ce),yn.free(ve),ht=at.stretch,ht===Ii&&(ht=js(at,!1)),ht){case kn:return;case Dn:if(!isFinite(y)&&!isFinite(x))return;break;case ai:if(!isFinite(y))return;break;case Si:if(!isFinite(x))return}for(Ht=at.measuredBounds,z=Ht.width,nt=Ht.height,Jt=Math.max(z+dt,0),ee=Math.max(nt+Et,0),ht=at.margin,ve=yn.allocAt(-ht.left,-ht.top,Jt,ee),gv(at,ve,!0),z=ve.width,nt=ve.height,y=0;y<ot;y++)x=b[y],x===at||!x.visible&&x!==Ie||(ht=x.margin,Jt=ht.right+ht.left,ee=ht.top+ht.bottom,Ht=x.measuredBounds,Jt=Math.max(Ht.width+Jt,0),ee=Math.max(Ht.height+ee,0),dt=x.alignment,dt.Xb()&&(dt=a.defaultAlignment),dt.sb()||(dt=ur),x=x.alignmentFocus,x.Xb()&&(x=ur),Ae?(Ae=!1,E.h(dt.x*z+dt.offsetX-(x.x*Ht.width+x.offsetX)-ht.left,dt.y*nt+dt.offsetY-(x.y*Ht.height+x.offsetY)-ht.top,Jt,ee)):Ji(E,dt.x*z+dt.offsetX-(x.x*Ht.width+x.offsetX)-ht.left,dt.y*nt+dt.offsetY-(x.y*Ht.height+x.offsetY)-ht.top,Jt,ee));Ae?E.assign(Ce):se?E.Uu(ve.x,ve.y,ve.width,ve.height):Ji(E,Ce.x,Ce.y,Ce.width,Ce.height),yn.free(ve)},pm.prototype.arrange=function(a,y,x){var b=y.length,E=a.Pb(),z=E.measuredBounds,nt=z.width,ot=z.height,at=a.padding;z=at.left,at=at.top;var ht=z-x.x,dt=at-x.y;for(E.arrange(ht,dt,nt,ot),nt=yn.allocAt(0,0,nt,ot),gv(E,nt,!1),ot=0;ot<b;ot++){var Et=y[ot];if(Et!==E){ht=Et.measuredBounds;var Ht=ht.width,Jt=ht.height;dt=Et.alignment,dt.Xb()&&(dt=a.defaultAlignment),dt.sb()||(dt=ur);var ee=Et.alignmentFocus;if(ee.Xb()&&(ee=ur),ht=null,Et instanceof Fn&&Et.$e!==""&&(ht=Et.fb(Et.$e),ht===Et&&(ht=null)),ht!==null){var se=ht.actualBounds;for(ee=Se.allocAt(se.x+(ee.x*se.width-ee.offsetX),se.y+(ee.y*se.height-ee.offsetY)),ht=ht.panel;ht!==Et;)ht.transform.Ga(ee),ht=ht.panel;ht=dt.x*nt.width+dt.offsetX-ee.x,dt=dt.y*nt.height+dt.offsetY-ee.y,Se.free(ee)}else ht=dt.x*nt.width+dt.offsetX-(ee.x*Ht+ee.offsetX),dt=dt.y*nt.height+dt.offsetY-(ee.y*Jt+ee.offsetY);ht+=nt.x-x.x,dt+=nt.y-x.y,Et.visible&&Et.arrange(z+ht,at+dt,Ht,Jt)}}yn.free(nt)};function gv(a,y,x){var b=null;if(a instanceof Fn&&a.$e!==""&&(b=a.fb(a.$e),b===a&&(b=null)),b!==null)for(x&&a.arrange(0,0,y.width,y.height),y.assign(b.actualBounds),b=b.panel;b!==a;)b.transform.pp(y),b=b.panel}function mm(){this.xa="Base"}Qe(mm,Lo),mm.prototype.measure=function(a,y,x,b,E,z,nt){var ot=b.length,at=a.Pb(),ht=at.margin,dt=y,Et=x,Ht=ht.right+ht.left,Jt=ht.top+ht.bottom;at.measure(y,x,z,nt),ht=at.measuredBounds;var ee=0,se=null;at instanceof Ri&&(se=at,ee=se.strokeWidth*se.scale);var Ce=Math.max(ht.width+Ht,0);ht=Math.max(ht.height+Jt,0);var ve=yv(at),Ae=ve.x*Ce+ve.offsetX;ve=ve.y*ht+ve.offsetY;var Ie=Sv(at),Be=Ie.x*Ce+Ie.offsetX;for(Ie=Ie.y*ht+Ie.offsetY,isFinite(y)&&(dt=Math.max(Math.abs(Ae-Be)-ee,0)),isFinite(x)&&(Et=Math.max(Math.abs(ve-Ie)-ee,0)),ee=Wn.alloc(),ee.h(0,0),a=vu(a),Ie=0;Ie<ot;Ie++)ve=b[Ie],ve===at||!ve.visible&&ve!==a||(ht=ve.margin,Ce=ht.right+ht.left,Ae=ht.top+ht.bottom,ve.measure(dt,Et,0,0),ht=ve.measuredBounds,Ce=Math.max(ht.width+Ce,0),ht=Math.max(ht.height+Ae,0),ee.h(Math.max(Ce,ee.width),Math.max(ht,ee.height)));if(ot===1)E.width=Ce,E.height=ht,Wn.free(ee);else{switch(ve=yv(at),Ie=Sv(at),ot=b=0,Ie.x!==ve.x&&Ie.y!==ve.y&&(b=ee.width/Math.abs(Ie.x-ve.x),ot=ee.height/Math.abs(Ie.y-ve.y)),Wn.free(ee),ee=0,se!==null&&(ee=se.strokeWidth*se.scale,Ev(se)===ni&&(b=ot=Math.max(b,ot))),b+=Math.abs(ve.offsetX)+Math.abs(Ie.offsetX)+ee,ot+=Math.abs(ve.offsetY)+Math.abs(Ie.offsetY)+ee,se=at.stretch,se===Ii&&(se=js(at,!1)),se){case kn:nt=z=0;break;case Dn:isFinite(y)&&(b=y),isFinite(x)&&(ot=x);break;case ai:isFinite(y)&&(b=y),nt=0;break;case Si:z=0,isFinite(x)&&(ot=x)}at.Uj(),at.measure(b,ot,z,nt),E.width=at.measuredBounds.width+Ht,E.height=at.measuredBounds.height+Jt}},mm.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),E=b.measuredBounds,z=yn.alloc();z.h(0,0,1,1);var nt=b.margin,ot=nt.left;nt=nt.top;var at=a.padding,ht=at.left;at=at.top,b.arrange(ht+ot,at+nt,E.width,E.height);var dt=yv(b),Et=Sv(b),Ht=dt.y*E.height+dt.offsetY,Jt=Et.x*E.width+Et.offsetX;for(Et=Et.y*E.height+Et.offsetY,z.x=dt.x*E.width+dt.offsetX,z.y=Ht,Ji(z,Jt,Et,0,0),z.x+=ot+ht,z.y+=nt+at,E=0;E<x;E++)ot=y[E],ot!==b&&(ht=ot.measuredBounds,nt=ot.margin,at=Math.max(ht.width+nt.right+nt.left,0),dt=Math.max(ht.height+nt.top+nt.bottom,0),Ht=ot.alignment,Ht.Xb()&&(Ht=a.defaultAlignment),Ht.sb()||(Ht=ur),at=z.width*Ht.x+Ht.offsetX-at*Ht.x+nt.left+z.x,nt=z.height*Ht.y+Ht.offsetY-dt*Ht.y+nt.top+z.y,ot.visible&&($i(z.x,z.y,z.width,z.height,at,nt,ht.width,ht.height)?ot.arrange(at,nt,ht.width,ht.height):ot.arrange(at,nt,ht.width,ht.height,new yn(z.x,z.y,z.width,z.height))));yn.free(z)};function vm(){this.xa="Base",this.name="Table"}Qe(vm,Lo),vm.prototype.measure=function(a,y,x,b,E){for(var z=b.length,nt=sn(),ot=sn(),at=0;at<z;at++){var ht=b[at],dt=ht instanceof Fn?ht:null;if(dt!==null&&Zu(dt)&&ht.visible){ot.push(dt);for(var Et=dt.O.s,Ht=Et.length,Jt=0;Jt<Ht;Jt++){var ee=Et[Jt];dt.type===Fn.TableRow?ee.row=ht.row:dt.type===Fn.TableColumn&&(ee.column=ht.column),nt.push(ee)}}else nt.push(ht)}z=nt.length,z===0&&(a.Fb(0),a.Eb(0));for(var se=[],Ce=0;Ce<z;Ce++){var ve=nt[Ce];ve.visible&&(xo(ve,!0),Gl(ve,!0),se[ve.row]||(se[ve.row]=[]),se[ve.row][ve.column]||(se[ve.row][ve.column]=[]),se[ve.row][ve.column].push(ve))}xn(nt);var Ae=sn(),Ie=sn(),Be=sn(),Ve={count:0},rn={count:0},Kn=y,$n=x,Yn=a.rowDefs,jn=a.colDefs,An=null;z=Yn.length;for(var ki=0;ki<z;ki++)An=Yn[ki],An!==void 0&&(An.actual=0);z=jn.length;for(var Ei=0;Ei<z;Ei++)An=jn[Ei],An!==void 0&&(An.actual=0);for(var mr=se.length,Or=0,Bo=0;Bo<mr;Bo++)se[Bo]&&(Or=Math.max(Or,se[Bo].length));var Wo=Math.min(a.topIndex,mr-1),gs=Math.min(a.leftIndex,Or-1),Ro=0;mr=se.length;for(var nh=vu(a),mo=0;mo<mr;mo++)if(se[mo]){Or=se[mo].length;var vl=a.Fb(mo);vl.actual=0;for(var ps=vl.oc=0;ps<Or;ps++)if(se[mo][ps]){var ih=a.Eb(ps);Ae[ps]===void 0&&(ih.actual=0,ih.oc=0,Ae[ps]=!0);for(var xa=se[mo][ps],_a=xa.length,la=0;la<_a;la++){var Zs=xa[la];if(Zs.visible||Zs===nh){var Qh=1<Zs.rowSpan||1<Zs.columnSpan;Qh&&(mo<Wo||ps<gs||Ie.push(Zs));var yl=Zs.margin,Uf=yl.right+yl.left,ua=yl.top+yl.bottom,ms=dl(Zs,vl,ih,!1),Ep=Zs.desiredSize,Md=!isNaN(Ep.height),Ol=!isNaN(Ep.width)&&Md;if(Qh||ms===kn||Ol||mo<Wo||ps<gs||(Ve[ps]!==void 0||ms!==Dn&&ms!==ai||(Ve[ps]=-1,Ve.count++),rn[mo]!==void 0||ms!==Dn&&ms!==Si||(rn[mo]=-1,rn.count++),Be.push(Zs)),Zs.measure(1/0,1/0,0,0),!(mo<Wo||ps<gs)){var Xs=Zs.measuredBounds,Bc=Math.max(Xs.width+Uf,0),ha=Math.max(Xs.height+ua,0);if(Zs.rowSpan===1&&(ms===kn||ms===ai)){An=a.Fb(mo);var qh=An.Wc();Ro=Math.max(ha-An.actual,0),Ro+qh>$n&&(Ro=Math.max($n-qh,0));var H0=An.oa===0;An.oc=An.oc+Ro,An.actual=An.oa+Ro,$n=Math.max($n-(Ro+(H0?qh:0)),0)}if(Zs.columnSpan===1&&(ms===kn||ms===Si)){An=a.Eb(ps);var Lp=An.Wc();Ro=Math.max(Bc-An.actual,0),Ro+Lp>Kn&&(Ro=Math.max(Kn-Lp,0));var Wy=An.oa===0;An.oc=An.oc+Ro,An.actual=An.oa+Ro,Kn=Math.max(Kn-(Ro+(Wy?Lp:0)),0)}Qh&&Zs.Uj()}}}}}xn(Ae);var tu=0,xu=0;z=a.columnCount;for(var Td=0;Td<z;Td++){var $h=jn[Td];$h!==void 0&&(tu+=isNaN($h.Hc)?$h.oc:$h.Hc,$h.oc!==0&&(tu+=$h.Wc()))}z=a.rowCount;for(var Gf=0;Gf<z;Gf++){var tc=Yn[Gf];tc!==void 0&&(xu+=isNaN(tc.Hc)?tc.oc:tc.Hc,tc.oc!==0&&(xu+=tc.Wc()))}Kn=Math.max(y-tu,0);var eu=$n=Math.max(x-xu,0),rh=Kn;z=Be.length;for(var Ys=0;Ys<z;Ys++){var Il=Be[Ys],W0=a.Fb(Il.row),wu=a.Eb(Il.column),Kf=Il.measuredBounds,Sl=Il.margin,Rc=Sl.right+Sl.left,Dl=Sl.top+Sl.bottom;Ve[Il.column]=wu.oc===0&&Ve[Il.column]!==void 0?Math.max(Kf.width+Rc,Ve[Il.column]):null,rn[Il.row]=W0.oc===0&&rn[Il.row]!==void 0?Math.max(Kf.height+Dl,rn[Il.row]):null}var kd=0,Vf=0,ul;for(ul in rn)ul!=="count"&&(kd+=rn[ul]);for(ul in Ve)ul!=="count"&&(Vf+=Ve[ul]);for(var Qo=Wn.alloc(),Ap=0;Ap<z;Ap++){var Ds=Be[Ap];if(Ds.visible||Ds===nh){var vo=a.Fb(Ds.row),Fs=a.Eb(Ds.column),Pu=0;isFinite(Fs.width)?Pu=Fs.width:(isFinite(Kn)&&Ve[Ds.column]!==null?Vf===0?Pu=Fs.actual+Kn:Pu=Ve[Ds.column]/Vf*rh:Ve[Ds.column]!==null?Pu=Kn:Pu=Fs.actual||Kn,Pu=Math.max(0,Pu-Fs.Wc()));var oh=0;switch(isFinite(vo.height)?oh=vo.height:(isFinite($n)&&rn[Ds.row]!==null?kd===0?oh=vo.actual+$n:oh=rn[Ds.row]/kd*eu:rn[Ds.row]!==null?oh=$n:oh=vo.actual||$n,oh=Math.max(0,oh-vo.Wc())),Qo.h(Math.max(Fs.minimum,Math.min(Pu,Fs.maximum)),Math.max(vo.minimum,Math.min(oh,vo.maximum))),ms=dl(Ds,vo,Fs,!1),ms){case ai:Qo.height=Math.max(Qo.height,vo.actual+$n);break;case Si:Qo.width=Math.max(Qo.width,Fs.actual+Kn)}var jc=Ds.margin,Uy=jc.right+jc.left,U0=jc.top+jc.bottom;Ds.Uj(),Ds.measure(Qo.width,Qo.height,Fs.minimum,vo.minimum);var Zf=Ds.measuredBounds,zc=Math.max(Zf.width+Uy,0),Nd=Math.max(Zf.height+U0,0);isFinite(Kn)&&(zc=Math.min(zc,Qo.width)),isFinite($n)&&(Nd=Math.min(Nd,Qo.height));var _s=0;_s=vo.actual,vo.actual=Math.max(vo.actual,Nd),vo.oc=Math.max(vo.oc,Nd),Ro=vo.actual-_s,$n=Math.max($n-Ro,0),rn[Ds.row]===null&&(eu=Math.max(eu-Ro,0)),_s=Fs.actual,Fs.actual=Math.max(Fs.actual,zc),Fs.oc=Math.max(Fs.oc,zc),Ro=Fs.actual-_s,Kn=Math.max(Kn-Ro,0),Ve[Ds.column]===null&&(rh=Math.max(rh-Ro,0))}}xn(Be);var bu=Wn.alloc(),xl=sn(),Ba=sn();if(z=Ie.length,z!==0){for(var ec=0;ec<mr;ec++)if(se[ec]){Or=se[ec].length;var Xf=a.Fb(ec);xl[ec]=Xf.actual;for(var nc=0;nc<Or;nc++)if(se[ec][nc]){var G0=a.Eb(nc);Ba[nc]=G0.actual}}}for(var Yf=0;Yf<z;Yf++){var eo=Ie[Yf];if(eo.visible||eo===nh){var hl=a.Fb(eo.row),Ja=a.Eb(eo.column);switch(Qo.h(Math.max(Ja.minimum,Math.min(y,Ja.maximum)),Math.max(hl.minimum,Math.min(x,hl.maximum))),ms=dl(eo,hl,Ja,!1),ms){case Dn:Ba[Ja.index]!==0&&(Qo.width=Math.min(Qo.width,Ba[Ja.index])),xl[hl.index]!==0&&(Qo.height=Math.min(Qo.height,xl[hl.index]));break;case ai:Ba[Ja.index]!==0&&(Qo.width=Math.min(Qo.width,Ba[Ja.index]));break;case Si:xl[hl.index]!==0&&(Qo.height=Math.min(Qo.height,xl[hl.index]))}isFinite(Ja.width)&&(Qo.width=Ja.width),isFinite(hl.height)&&(Qo.height=hl.height),bu.h(0,0);for(var K0=Ja.minimum,ca=hl.minimum,sh=1;sh<eo.rowSpan&&!(eo.row+sh>=a.rowCount);sh++)An=a.Fb(eo.row+sh),Ro=0,Ro=ms===Dn||ms===Si?Math.max(An.minimum,xl[eo.row+sh]===0?An.maximum:Math.min(xl[eo.row+sh],An.maximum)):Math.max(An.minimum,isNaN(An.Hc)?An.maximum:Math.min(An.Hc,An.maximum)),bu.height+=Ro,ca+=An.minimum;for(var Qa=1;Qa<eo.columnSpan&&!(eo.column+Qa>=a.columnCount);Qa++)An=a.Eb(eo.column+Qa),Ro=0,Ro=ms===Dn||ms===ai?Math.max(An.minimum,Ba[eo.column+Qa]===0?An.maximum:Math.min(Ba[eo.column+Qa],An.maximum)):Math.max(An.minimum,isNaN(An.Hc)?An.maximum:Math.min(An.Hc,An.maximum)),bu.width+=Ro,K0+=An.minimum;Qo.width+=bu.width,Qo.height+=bu.height;var _f=eo.margin,ic=_f.right+_f.left,Mp=_f.top+_f.bottom;eo.measure(Qo.width,Qo.height,K0,ca);for(var Jf=eo.measuredBounds,Fl=Math.max(Jf.width+ic,0),Hc=Math.max(Jf.height+Mp,0),rc=0,Qf=0;Qf<eo.rowSpan&&!(eo.row+Qf>=a.rowCount);Qf++)An=a.Fb(eo.row+Qf),rc+=An.total||0;if(rc<Hc){var ah=Hc-rc,nu=Hc-rc;if(eo.spanAllocation!==null)for(var lh=eo.spanAllocation,Cu=0;Cu<eo.rowSpan&&!(0>=ah)&&!(eo.row+Cu>=a.rowCount);Cu++){An=a.Fb(eo.row+Cu);var uh=An.oa||0,Wc=lh(eo,An,nu);An.actual=Math.min(An.maximum,uh+Wc),An.oa!==uh&&(ah-=An.oa-uh)}for(;0<ah;){var wl=An.oa||0;if(isNaN(An.height)&&An.maximum>wl&&(An.actual=Math.min(An.maximum,wl+ah),An.oa!==wl&&(ah-=An.oa-wl)),An.index===0)break;An=a.Fb(An.index-1)}}for(var Od=0,hh=0;hh<eo.columnSpan&&!(eo.column+hh>=a.columnCount);hh++)An=a.Eb(eo.column+hh),Od+=An.total||0;if(Od<Fl){var Id=Fl-Od,Gy=Fl-Od;if(eo.spanAllocation!==null)for(var Eu=eo.spanAllocation,Uc=0;Uc<eo.columnSpan&&!(0>=Id)&&!(eo.column+Uc>=a.columnCount);Uc++){An=a.Eb(eo.column+Uc);var Tp=An.oa||0,Ky=Eu(eo,An,Gy);An.actual=Math.min(An.maximum,Tp+Ky),An.oa!==Tp&&(Id-=An.oa-Tp)}for(;0<Id;){var V0=An.oa||0;if(isNaN(An.width)&&An.maximum>V0&&(An.actual=Math.min(An.maximum,V0+Id),An.oa!==V0&&(Id-=An.oa-V0)),An.index===0)break;An=a.Eb(An.index-1)}}}}xn(Ie),Wn.free(bu),Wn.free(Qo),xl!==void 0&&xn(xl),Ba!==void 0&&xn(Ba);var Dd=0,Fd=0,Z0=a.desiredSize,px=a.maxSize;ms=js(a,!0);var kp=xu=tu=0,Np=0;z=a.columnCount;for(var X0=0;X0<z;X0++)jn[X0]!==void 0&&(An=a.Eb(X0),isFinite(An.width)?(kp+=An.width,kp+=An.Wc()):Am(An)===Ug?(kp+=An.oa,kp+=An.Wc()):An.oa!==0&&(tu+=An.oa,tu+=An.Wc()));isFinite(Z0.width)?Dd=Math.min(Z0.width,px.width):Dd=ms!==kn&&isFinite(y)?y:tu,Dd=Math.max(Dd,a.minSize.width),Dd=Math.max(Dd-kp,0);for(var qx=tu===0?1:Math.max(Dd/tu,1),Y0=0;Y0<z;Y0++)jn[Y0]!==void 0&&(An=a.Eb(Y0),isFinite(An.width)||Am(An)===Ug||(An.actual=An.oa*qx),An.position=E.width,An.oa!==0&&(E.width+=An.oa,E.width+=An.Wc()));z=a.rowCount;for(var _0=0;_0<z;_0++)Yn[_0]!==void 0&&(An=a.Fb(_0),isFinite(An.height)?(Np+=An.height,Np+=An.Wc()):Am(An)===Ug?(Np+=An.oa,Np+=An.Wc()):An.oa!==0&&(xu+=An.oa,xu+=An.Wc()));isFinite(Z0.height)?Fd=Math.min(Z0.height,px.height):Fd=ms!==kn&&isFinite(x)?x:xu,Fd=Math.max(Fd,a.minSize.height),Fd=Math.max(Fd-Np,0);for(var $x=xu===0?1:Math.max(Fd/xu,1),J0=0;J0<z;J0++)Yn[J0]!==void 0&&(An=a.Fb(J0),isFinite(An.height)||Am(An)===Ug||(An.actual=An.oa*$x),An.position=E.height,An.oa!==0&&(E.height+=An.oa,E.height+=An.Wc()));z=ot.length;for(var Vy=0;Vy<z;Vy++){var Op=ot[Vy],Zy=0,Xy=0;Op.type===Fn.TableRow?(Zy=E.width,An=a.Fb(Op.row),Xy=An.actual):(An=a.Eb(Op.column),Zy=An.actual,Xy=E.height),Op.measuredBounds.h(0,0,Zy,Xy),xo(Op,!1)}xn(ot),a.inRowsCols=se},vm.prototype.arrange=function(a,y,x){var b=y.length,E=a.padding,z=E.left;E=E.top;var nt=a.inRowsCols;if(nt!==null){for(var ot,at,ht=nt.length,dt=0,Et=0;Et<ht;Et++)nt[Et]&&(dt=Math.max(dt,nt[Et].length));at=a.rowDefs,ot=a.colDefs;var Ht=Et=0,Jt=Math.min(a.topIndex,ht-1);if(0<at.length){for(;Jt!==ht&&(at[Jt]===void 0||at[Jt].oa===0);)Jt++;Jt=Math.max(Math.min(Jt,ht-1),0),Et=-at[Jt].position}var ee=Math.min(a.leftIndex,dt-1);if(0<ot.length){for(;ee!==dt&&(ot[ee]===void 0||ot[ee].oa===0);)ee++;ee=Math.max(Math.min(ee,dt-1),0),Ht=-ot[ee].position}for(var se=0,Ce=0;se!==ht&&at[se]===void 0;)se++;for(;Ce!==ht&&ot[Ce]===void 0;)Ce++;dt=a.part,a.Fb(se),a.Eb(Ce);for(var ve=0;ve<y.length;ve++){var Ae=y[ve];if(Ae instanceof Fn&&Ae.visible&&Zu(Ae)){if(Ae.type===Fn.TableRow){ot=a.Fb(Ae.row);var Ie=a.Eb(Ce)}else ot=a.Fb(se),Ie=a.Eb(Ae.column);at=ot.position+Et+E,ot.oa!==0&&(at+=ot.Io(Math.max(se,Jt))),ot=Ie.position+Ht+z,Ie.oa!==0&&(ot+=Ie.Io(Math.max(Ce,ee))),Ie=Ae.measuredBounds,Ae.Uk(),Ae.actualBounds.ka();var Be=Ae.actualBounds,Ve=yn.allocAt(Be.x,Be.y,Be.width,Be.height);Be.x=Ae.type===Fn.TableRow?z:ot,Be.y=Ae.type===Fn.TableColumn?E:at,Be.width=Ie.width,Be.height=Ie.height,Ae.actualBounds.freeze(),Gl(Ae,!1),Nr(Ve,Be)||dt===null||(dt.oh(),Ae.Pn(dt)),yn.free(Ve)}}for(ve=Wn.alloc(),Ae=0;Ae<ht;Ae++)if(nt[Ae]){for(dt=nt[Ae].length,Ie=a.Fb(Ae),at=Ie.position+Et+E,Ie.oa!==0&&(at+=Ie.Io(Math.max(se,Jt))),Be=0;Be<dt;Be++)if(nt[Ae][Be]){Ve=a.Eb(Be),ot=Ve.position+Ht+z,Ve.oa!==0&&(ot+=Ve.Io(Math.max(Ce,ee)));for(var rn=nt[Ae][Be],Kn=rn.length,$n=0;$n<Kn;$n++){var Yn=rn[$n],jn=Yn.measuredBounds;ve.h(0,0);for(var An=1;An<Yn.rowSpan&&!(Ae+An>=a.rowCount);An++){var ki=a.Fb(Ae+An);ki.oa!==0&&(ve.height+=ki.total)}for(An=1;An<Yn.columnSpan&&!(Be+An>=a.columnCount);An++)ki=a.Eb(Be+An),ki.oa!==0&&(ve.width+=ki.total);var Ei=Ve.oa+ve.width,mr=Ie.oa+ve.height;An=ot,ki=at;var Or=Ei,Bo=mr,Wo=ot,gs=at,Ro=Ei,nh=mr;ot+Ei>x.width&&(Ro=Math.max(x.width-ot,0)),at+mr>x.height&&(nh=Math.max(x.height-at,0));var mo=Yn.alignment;if(mo.Xb()){mo=a.defaultAlignment,mo.sb()||(mo=ur);var vl=mo.x,ps=mo.y,ih=mo.offsetX;mo=mo.offsetY;var xa=Ve.alignment,_a=Ie.alignment;xa.sb()&&(vl=xa.x,ih=xa.offsetX),_a.sb()&&(ps=_a.y,mo=_a.offsetY)}else vl=mo.x,ps=mo.y,ih=mo.offsetX,mo=mo.offsetY;(isNaN(vl)||isNaN(ps))&&(ps=vl=.5,mo=ih=0),xa=jn.width,_a=jn.height;var la=Yn.margin,Zs=la.left+la.right,Qh=la.top+la.bottom,yl=dl(Yn,Ie,Ve,!1);!isNaN(Yn.desiredSize.width)||yl!==Dn&&yl!==ai||(xa=Math.max(Ei-Zs,0)),!isNaN(Yn.desiredSize.height)||yl!==Dn&&yl!==Si||(_a=Math.max(mr-Qh,0)),Ei=Yn.maxSize,mr=Yn.minSize,xa=Math.min(Ei.width,xa),_a=Math.min(Ei.height,_a),xa=Math.max(mr.width,xa),_a=Math.max(mr.height,_a),Ei=_a+Qh,An+=Or*vl-(xa+Zs)*vl+ih+la.left,ki+=Bo*ps-Ei*ps+mo+la.top,Yn.visible&&($i(Wo,gs,Ro,nh,An,ki,jn.width,jn.height)?Yn.arrange(An,ki,xa,_a):Yn.arrange(An,ki,xa,_a,new yn(Wo,gs,Ro,nh)))}}}for(Wn.free(ve),a=0;a<b;a++)x=y[a],z=x instanceof Fn?x:null,z!==null&&Zu(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function ym(){this.xa="Base"}Qe(ym,Lo),ym.prototype.measure=function(){},ym.prototype.arrange=function(){};function Sm(){this.xa="Base"}Qe(Sm,Lo),Sm.prototype.measure=function(){},Sm.prototype.arrange=function(){};function xm(){this.xa="Base"}Qe(xm,Lo),xm.prototype.measure=function(a,y,x,b,E,z,nt){1<b.length&&Pe("Viewbox Panel cannot contain more than one GraphObject."),b=b[0],b.Ca=1,b.Uj(),b.measure(1/0,1/0,z,nt);var ot=b.measuredBounds,at=b.margin,ht=at.right+at.left;if(at=at.top+at.bottom,isFinite(y)||isFinite(x)){var dt=b.scale,Et=ot.width;ot=ot.height;var Ht=Math.max(y-ht,0),Jt=Math.max(x-at,0),ee=1;a.viewboxStretch===ni?Et!==0&&ot!==0&&(ee=Math.min(Ht/Et,Jt/ot)):Et!==0&&ot!==0&&(ee=Math.max(Ht/Et,Jt/ot)),ee===0&&(ee=1e-4),b.Ca*=ee,dt!==b.scale&&(xo(b,!0),b.measure(1/0,1/0,z,nt))}ot=b.measuredBounds,E.width=isFinite(y)?y:Math.max(ot.width+ht,0),E.height=isFinite(x)?x:Math.max(ot.height+at,0)},xm.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 nt=y.alignment;nt.Xb()&&(nt=a.defaultAlignment),nt.sb()||(nt=ur),y.arrange(x.width*nt.x-z*nt.x+nt.offsetX,x.height*nt.y-E*nt.y+nt.offsetY,b.width,b.height)};function zg(){this.xa="Base"}Qe(zg,Lo),zg.prototype.measure=function(){},zg.prototype.arrange=function(){},zg.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,nt=a.actualBounds,ot=z.width,at=z.height,ht=Math.ceil(ot/E),dt=Math.ceil(at/b),Et=a.gridOrigin,Ht=Et.x;Et=Et.y,y.save(),y.beginPath(),y.rect(0,0,ot,at),y.clip(),y.Se();for(var Jt=[],ee=a.O.s,se=ee.length,Ce=0;Ce<se;Ce++){var ve=ee[Ce],Ae=[];if(Jt.push(Ae),ve.visible){var Ie=ve.interval;if(!(0>Ie)){ve=mv(ve.figure);for(var Be=0;Be<se;Be++)if(Be!==Ce){var Ve=ee[Be];Ve.visible&&mv(Ve.figure)===ve&&(Ve=Ve.interval,Ve>Ie&&Ae.push(Ve))}}}}for(ee=a.O.s,se=ee.length,Ce=0;Ce<se;Ce++){var rn=ee[Ce];if(rn.visible&&(Ae=rn.interval||1,ve=Math.abs(Ae),!(2>E*ve*x))){if(Ie=rn.segmentIndex,(!isFinite(Ie)||isNaN(Ie))&&(Ie=0),0>Ie&&(Ie=ve-Math.min(-Ie,ve)),Ie=Math.round(Ie%ve),ve=rn.opacity,Be=1,ve!==1){if(ve===0)continue;Be=y.globalAlpha,y.globalAlpha=Be*ve}Ve=Jt[Ce];var Kn=!1,$n=rn.strokeDashArray;if($n!==null&&(Kn=!0,y.js($n,rn.strokeDashOffset)),rn.figure==="LineV"&&rn.stroke!==null&&0<rn.strokeWidth){for(y.lineWidth=rn.strokeWidth,$r(a,y,rn.stroke,!1,!1,z,nt),y.beginPath(),$n=rn=Math.floor((Ht-E)/E);$n<=rn+ht;$n++){var Yn=$n*E+Ht;0<=Yn&&Yn<=ot&&wm($n,Ae,Ie,Ve)&&(y.moveTo(Yn,0),y.lineTo(Yn,at))}y.stroke(),y.Se()}else if(rn.figure==="LineH"&&rn.stroke!==null&&0<rn.strokeWidth){for(y.lineWidth=rn.strokeWidth,$r(a,y,rn.stroke,!1,!1,z,nt),y.beginPath(),$n=rn=Math.floor((Et-b)/b);$n<=rn+dt;$n++)Yn=$n*b+Et,0<=Yn&&Yn<=at&&wm($n,Ae,Ie,Ve)&&(y.moveTo(0,Yn),y.lineTo(ot,Yn));y.stroke(),y.Se()}else if(rn.figure==="BarV"&&rn.fill!==null)for($r(a,y,rn.fill,!0,!1,z,nt),rn=rn.width,isNaN(rn)&&(rn=E),Yn=$n=Math.floor((Ht-E)/E);Yn<=$n+ht;Yn++){var jn=Yn*E+Ht;0<=jn+rn&&jn<=ot&&wm(Yn,Ae,Ie,Ve)&&y.fillRect(jn,0,rn,at)}else if(rn.figure==="BarH"&&rn.fill!==null)for($r(a,y,rn.fill,!0,!1,z,nt),rn=rn.height,isNaN(rn)&&(rn=b),Yn=$n=Math.floor((Et-b)/b);Yn<=$n+dt;Yn++)jn=Yn*b+Et,0<=jn+rn&&jn<=at&&wm(Yn,Ae,Ie,Ve)&&y.fillRect(0,jn,ot,rn);Kn&&y.fs(),ve!==1&&(y.globalAlpha=Be)}}y.restore(),y.Vc(!1)};function wm(a,y,x,b){if(0>y)return a%y===x;if(a%y!==x)return!1;y=b.length;for(var E=0;E<y;E++)if(a%b[E]===x)return!1;return!0}function Pm(){this.xa="Base"}Qe(Pm,Lo),Pm.prototype.measure=function(a,y,x,b,E){var z=b.length;if(a instanceof cr||a instanceof zn){var nt=null,ot=null;if(a instanceof zn&&(nt=a),a instanceof cr&&(ot=a,nt=ot.adornedPart,a.j===null&&(a.j=[])),nt instanceof zn){var at=nt;if(z===0)so(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var ht=a instanceof cr?null:nt.path;y=nt.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var dt=at.points,Et=nt.pointsCount;ot!==null?ot.Ul(!1):nt!==null&&nt.Ul(!1),ot=y.width;var Ht=y.height,Jt=a.j;if(Jt.length=0,ht!==null){r1(a,ot,Ht,ht);var ee=ht.measuredBounds;x.ed(ee),Jt.push(ee)}ee=Vi.alloc();for(var se=Se.alloc(),Ce=Se.alloc(),ve=0;ve<z;ve++){var Ae=b[ve];if(Ae!==ht)if(Ae.isPanelMain&&Ae instanceof Ri){r1(a,ot,Ht,Ae);var Ie=Ae.measuredBounds;x.ed(Ie),Jt.push(Ie)}else if(2>Et)Ae.measure(1/0,1/0,0,0),Ie=Ae.measuredBounds,x.ed(Ie),Jt.push(Ie);else{var Be=Ae.segmentIndex,Ve=Ae.segmentFraction,rn=Ae.alignmentFocus;rn.Mc()&&(rn=ur);var Kn=Ae.segmentOrientation,$n=Ae.segmentOffset;if(isNaN(Be)){var Yn=at.ua;Ie=sn(),Yn.Qu(Ve,Ie);var jn=Se.allocAt(Ie[0],Ie[1]);if(jn.add(at.i(0)),Yn.type===Un.j?jn.offset(-Yn.startX,-Yn.startY):(Yn=Yn.figures.first(),Yn!==null&&jn.offset(-Yn.startX,-Yn.startY)),Yn=Ie[2],Kn!==Ts){var An=at.computeAngle(Ae,Kn,Yn);Ae.Kb=An}An=jn.x-y.x;var ki=jn.y-y.y;Se.free(jn),xn(Ie)}else if(Be<-Et||Be>=Et)Ie=Se.alloc(),at.vg(),at.computeMidPoint(Ie),Yn=at.midAngle,Kn!==Ts&&(An=at.computeAngle(Ae,Kn,Yn),Ae.Kb=An),An=Ie.x-y.x,ki=Ie.y-y.y,Se.free(Ie);else{if(An=0,0<=Be?(ki=dt.M(Be),Ie=Be<Et-1?dt.M(Be+1):ki):(An=Et+Be,ki=dt.M(An),Ie=0<An?dt.M(An-1):ki),ki.Xa(Ie)){0<=Be?(Yn=0<Be?dt.M(Be-1):ki,An=Be<Et-2?dt.M(Be+2):Ie):(Yn=An<Et-1?dt.M(An+1):ki,An=1<An?dt.M(An-2):Ie),jn=Yn.Bf(ki);var Ei=Ie.Bf(An);Yn=jn>Ei+10?0<=Be?Yn.ab(ki):ki.ab(Yn):Ei>jn+10?0<=Be?Ie.ab(An):An.ab(Ie):0<=Be?Yn.ab(An):An.ab(Yn)}else Yn=0<=Be?ki.ab(Ie):Ie.ab(ki);Kn!==Ts&&(An=at.computeAngle(Ae,Kn,Yn),Ae.Kb=An),An=ki.x+(Ie.x-ki.x)*Ve-y.x,ki=ki.y+(Ie.y-ki.y)*Ve-y.y}Ae.measure(1/0,1/0,0,0),Ie=Ae.measuredBounds,jn=Ae.naturalBounds;var mr=0;Ae instanceof Ri&&(mr=Ae.strokeWidth),Ei=jn.width+mr;var Or=jn.height+mr;ee.reset(),ee.translate(-Ie.x,-Ie.y),ee.scale(Ae.scale,Ae.scale),ee.rotate(Kn===Ts?Ae.angle:Yn,Ei/2,Or/2),Kn!==qg&&Kn!==tp||ee.rotate(90,Ei/2,Or/2),Kn!==$g&&Kn!==ep||ee.rotate(-90,Ei/2,Or/2),Kn===qm&&(45<Yn&&135>Yn||225<Yn&&315>Yn)&&ee.rotate(-Yn,Ei/2,Or/2),jn=new yn(0,0,Ei,Or),se.xi(jn,rn),ee.Ga(se),rn=-se.x+mr/2*Ae.scale,Ae=-se.y+mr/2*Ae.scale,Ce.assign($n),mr=isNaN($n.x);var Bo=isNaN($n.y);if(mr||Bo){Ei=Ei/2+3,Or=Or/2+3;var Wo=45<=Yn&&135>=Yn,gs=225<=Yn&&315>=Yn;Kn===Ts&&(Wo||gs)?(Ce.x=Bo?Ei:$n.y,Ce.y=mr?Or:$n.x,Wo?0<=Be||isNaN(Be)&&.5>Ve||!mr||(Ce.y=-Or):gs&&((0<=Be||isNaN(Be)&&.5>Ve)&&mr&&(Ce.y=-Or),Bo&&(Ce.x=-Ei))):(mr&&(Ce.x=0<=Be||isNaN(Be)&&.5>Ve?Ei:-Ei),Bo&&(Ce.y=-Or),Ce.rotate(Yn))}else Ce.rotate(Yn);An+=Ce.x,ki+=Ce.y,jn.set(Ie),jn.h(An+rn,ki+Ae,Ie.width,Ie.height),Jt.push(jn),x.ed(jn)}}if(nt!==null)for(b=nt.labelNodes;b.next();)b.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),so(E,x.width||0,x.height||0),Vi.free(ee),Se.free(se),Se.free(Ce)}}}},Pm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof cr||a instanceof zn){var b=a,E=null;a instanceof cr&&(E=a,b=E.adornedPart);var z=a instanceof cr?null:b.path,nt=a.j;if(nt.length!==0){var ot=0;if(z!==null&&ot<nt.length){var at=nt[ot];ot++,z.arrange(at.x-a.jg.x,at.y-a.jg.y,at.width,at.height)}for(at=0;at<x;at++){var ht=y[at];if(ht!==z&&ot<nt.length){var dt=nt[ot];ot++,ht.arrange(dt.x-a.jg.x,dt.y-a.jg.y,dt.width,dt.height)}}}if(y=b.points,x=y.count,2<=x&&a instanceof zn)for(z=a.labelNodes;z.next();){var Et=a;nt=z.value,ot=nt.segmentIndex,at=nt.segmentFraction;var Ht=nt.alignmentFocus;if(ht=nt.segmentOrientation,dt=nt.segmentOffset,isNaN(ot)){var Jt=Et.ua,ee=sn();Jt.Qu(at,ee);var se=Se.allocAt(ee[0],ee[1]);se.add(Et.i(0)),Jt.type===Un.j||(Jt=Jt.figures.first()),se.offset(-Jt.startX,-Jt.startY),Jt=ee[2],ht!==Ts&&(Et=Et.computeAngle(nt,ht,Jt),nt.angle=Et),Et=se.x;var Ce=se.y;Se.free(se),xn(ee)}else if(ot<-x||ot>=x)ee=Se.alloc(),Jt=Et,Ce=ee,Jt.vg(),Jt.computeMidPoint(Ce),Jt=Et.midAngle,ht!==Ts&&(Et=Et.computeAngle(nt,ht,Jt),nt.angle=Et),Et=ee.x,Ce=ee.y,Se.free(ee);else{if(se=0,0<=ot?(ee=y.s[ot],Ce=ot<x-1?y.s[ot+1]:ee):(se=x+ot,ee=y.s[se],Ce=0<se?y.s[se-1]:ee),ee.Xa(Ce)){0<=ot?(Jt=0<ot?y.s[ot-1]:ee,se=ot<x-2?y.s[ot+2]:Ce):(Jt=se<x-1?y.s[se+1]:ee,se=1<se?y.s[se-2]:Ce);var ve=Jt.Bf(ee),Ae=Ce.Bf(se);Jt=ve>Ae+10?0<=ot?Jt.ab(ee):ee.ab(Jt):Ae>ve+10?0<=ot?Ce.ab(se):se.ab(Ce):0<=ot?Jt.ab(se):se.ab(Jt)}else Jt=0<=ot?ee.ab(Ce):Ce.ab(ee);ht!==Ts&&(Et=Et.computeAngle(nt,ht,Jt),nt.angle=Et),Et=ee.x+(Ce.x-ee.x)*at,Ce=ee.y+(Ce.y-ee.y)*at}if(Ht.ys())nt.location=new Se(Et,Ce);else{Ht.Mc()&&(Ht=ur),ee=Vi.alloc(),ee.reset(),ee.scale(nt.scale,nt.scale),ee.rotate(nt.angle,0,0);var Ie=nt.naturalBounds;se=yn.allocAt(0,0,Ie.width,Ie.height),ve=Se.alloc(),ve.xi(se,Ht),ee.Ga(ve),Ht=-ve.x,Ae=-ve.y;var Be=Ie.width,Ve=Ie.height;Ie=Se.alloc(),Ie.assign(dt);var rn=isNaN(dt.x),Kn=isNaN(dt.y);if(rn||Kn){Be=Be/2+3,Ve=Ve/2+3;var $n=45<=Jt&&135>=Jt,Yn=225<=Jt&&315>=Jt;ht===Ts&&($n||Yn)?(Ie.x=Kn?Be:dt.y,Ie.y=rn?Ve:dt.x,$n?0<=ot||isNaN(ot)&&.5>at||!rn||(Ie.y=-Ve):Yn&&((0<=ot||isNaN(ot)&&.5>at)&&rn&&(Ie.y=-Ve),Kn&&(Ie.x=-Be))):(rn&&(Ie.x=0<=ot||isNaN(ot)&&.5>at?Be:-Be),Kn&&(Ie.y=-Ve),Ie.rotate(Jt))}else Ie.rotate(Jt);Et+=Ie.x,Ce+=Ie.y,ee.pp(se),Ht+=se.x,Ae+=se.y,ot=Se.allocAt(Et+Ht,Ce+Ae),nt.move(ot),Se.free(ot),Se.free(Ie),Se.free(ve),yn.free(se),Vi.free(ee)}}E!==null?E.Ul(!1):b.Ul(!1),b=I1(a),a.location.h(a.position.x+b.x,a.position.y+b.y),Se.free(b)}};function r1(a,y,x,b){if(ma(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof cr&&a.type===Fn.Link&&a.adornedObject instanceof Ri&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof zn&&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 cr&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,b.Ge(a.x-E/2,a.y-E/2,a.width+E,a.height+E)):b.Ge(-(E/2),-(E/2),y+E,x+E),E=b.desiredSize,E.w()||b.ua===null?b.dc.h(0,0,E.width,E.height):b.dc.assign(b.ua.bounds),xo(b,!1)}}function Hg(){this.xa="Base"}Qe(Hg,Lo),Hg.prototype.measure=function(a,y,x,b,E,z,nt){var ot=a.Pb();a.graduatedBounds=[];var at=ot.margin,ht=at.right+at.left,dt=at.top+at.bottom;ot.measure(y,x,z,nt);var Et=ot.measuredBounds,Ht=new yn(-at.left,-at.top,Math.max(Et.width+ht,0),Math.max(Et.height+dt,0));a.graduatedBounds.push(Ht),E.assign(Ht);for(var Jt=ot.geometry,ee=ot.strokeWidth,se=Jt.flattenedSegments,Ce=Jt.flattenedLengths,ve=Jt.flattenedTotalLength,Ae=se.length,Ie=0,Be=0,Ve=sn(),rn=0;rn<Ae;rn++){var Kn=se[rn],$n=[];Be=Ie=0;for(var Yn=Kn.length,jn=0;jn<Yn;jn+=2){var An=Kn[jn],ki=Kn[jn+1];if(jn!==0){var Ei=180*Math.atan2(ki-Be,An-Ie)/Math.PI;0>Ei&&(Ei+=360),$n.push(Ei)}Ie=An,Be=ki}Ve.push($n)}if(a.graduatedIntervals===null){for(var mr=[],Or=a.O.s,Bo=Or.length,Wo=0;Wo<Bo;Wo++){var gs=Or[Wo],Ro=[];if(mr.push(Ro),gs.visible){var nh=gs.interval;if(!(0>nh)){for(var mo=0;mo<Bo;mo++)if(mo!==Wo){var vl=Or[mo];if(vl.visible&&gs.constructor===vl.constructor){var ps=vl.interval;ps>nh&&Ro.push(ps)}}}}}a.graduatedIntervals=mr}var ih=a.graduatedIntervals,xa=a.O.s,_a=xa.length,la=0,Zs=0,Qh=ve;a.graduatedMarks=[];for(var yl,Uf=0;Uf<_a;Uf++){var ua=xa[Uf];if(yl=[],ua.visible&&ua!==ot){var ms=Math.abs(ua.interval),Ep=a.graduatedTickUnit;if(!(2>Ep*ms*ve/a.graduatedRange&&ua.graduatedSkip===null)){var Md=Ce[0][0],Ol=0,Xs=0;Zs=ve*ua.graduatedStart-1e-4,Qh=ve*ua.graduatedEnd+1e-4;var Bc=Ep*ms,ha=a.graduatedTickBase;if(ha<a.graduatedMin){var qh=(a.graduatedMin-ha)/Bc;qh=qh%1===0?qh:Math.floor(qh+1),ha+=qh*Bc}else ha>a.graduatedMin+Bc&&(ha-=Math.floor((ha-a.graduatedMin)/Bc)*Bc);for(var H0=ih[Uf],Lp=ha,Wy=1e-6*a.graduatedMax,tu=1;ha<=a.graduatedMax+Wy;tu++){t:{for(var xu=H0.length,Td=0;Td<xu;Td++){var $h=(ha-a.graduatedTickBase)%(H0[Td]*a.graduatedTickUnit),Gf=1e-6*a.graduatedTickUnit;if($h<Gf&&$h>-Gf){var tc=!1;break t}}tc=!0}if(tc&&(ha>a.graduatedMax&&(ha=a.graduatedMax),ua.graduatedSkip===null||ua instanceof Ir&&!ua.graduatedSkip(ha,ua)||ua instanceof Ri&&!ua.graduatedSkip(ha,ua))&&(la=(ha-a.graduatedMin)*ve/a.graduatedRange,la>ve&&(la=ve),Zs<=la&&la<=Qh)){for(var eu=Ve[Ol][Xs],rh=Ce[Ol][Xs];Ol<Ce.length;){for(;la>Md&&Xs<Ce[Ol].length-1;)Xs++,eu=Ve[Ol][Xs],rh=Ce[Ol][Xs],Md+=rh;if(la<=Md)break;Ol++,Xs=0,eu=Ve[Ol][Xs],rh=Ce[Ol][Xs],Md+=rh}var Ys=se[Ol],Il=Ys[2*Xs],W0=Ys[2*Xs+1],wu=(la-(Md-rh))/rh,Kf=new Se(Il+(Ys[2*Xs+2]-Il)*wu+ee/2-Jt.bounds.x,W0+(Ys[2*Xs+3]-W0)*wu+ee/2-Jt.bounds.y);Kf.scale(ot.scale,ot.scale);t:{var Sl=eu,Rc=Ve[Ol];if(!(.5005>wu&&.4995<wu)){var Dl=Sl;if(.5>wu?0<Xs?Dl=Rc[Xs-1]:Je.$(Ys[0],Ys[Ys.length-2])&&Je.$(Ys[1],Ys[Ys.length-1])&&(Dl=Rc[Rc.length-1]):.5<wu&&(Xs+1<Rc.length?Dl=Rc[Xs+1]:Je.$(Ys[0],Ys[Ys.length-2])&&Je.$(Ys[1],Ys[Ys.length-1])&&(Dl=Rc[0])),Sl!==Dl){var kd=Math.abs(Sl-Dl);if(180<kd&&(Sl<Dl?Sl+=360:Dl+=360,kd=Math.abs(Sl-Dl)),5e-4>wu||.9995<wu){eu=(Sl+Dl)/2%360;break t}if(10>kd){var Vf=1-Math.abs(.5-wu);eu=(Sl*Vf+Dl*(1-Vf))%360;break t}}}eu=Sl}if(ua instanceof Ir){var ul="";ua.graduatedFunction!==null?(ul=ua.graduatedFunction(ha,ua),ul=ul!=null?ul.toString():""):ul=(+ha.toFixed(2)).toString(),ul!==""&&yl.push({$l:Kf,angle:eu,text:ul})}else yl.push({$l:Kf,angle:eu})}ha=Lp+tu*Bc}}}a.graduatedMarks.push(yl)}xn(Ve);var Qo=a.graduatedMarks;if(Qo!==null)for(var Ap=b.length,Ds=0;Ds<Ap;Ds++){var vo=b[Ds],Fs=Qo[Ds];if(vo.visible&&vo!==ot&&Fs.length!==0){if(vo instanceof Ri){var Pu=a,oh=E,jc=vo.alignmentFocus;jc.Mc()&&(jc=Pa);var Uy=vo.angle;vo.Kb=0,vo.measure(1/0,1/0,0,0),vo.Kb=Uy;var U0=vo.measuredBounds,Zf=U0.width,zc=U0.height,Nd=yn.allocAt(0,0,Zf,zc),_s=Se.alloc();_s.xi(Nd,jc),yn.free(Nd);for(var bu=-_s.x,xl=-_s.y,Ba=new yn,ec=Fs.length,Xf=0;Xf<ec;Xf++)for(var nc=Fs[Xf],G0=nc.$l.x,Yf=nc.$l.y,eo=nc.angle,hl=0;4>hl;hl++){switch(hl){case 0:_s.h(bu,xl);break;case 1:_s.h(bu+Zf,xl);break;case 2:_s.h(bu,xl+zc);break;case 3:_s.h(bu+Zf,xl+zc)}_s.rotate(eo+vo.angle),_s.offset(G0,Yf),Xf===0&&hl===0?Ba.h(_s.x,_s.y,0,0):Ba.Ye(_s),_s.offset(-G0,-Yf),_s.rotate(-eo-vo.angle)}Se.free(_s),Pu.graduatedBounds!==null&&Pu.graduatedBounds.push(Ba),Ji(oh,Ba.x,Ba.y,Ba.width,Ba.height)}else if(vo instanceof Ir){var Ja=a,K0=E;Ja.temporaryTextBlock===null&&(Ja.temporaryTextBlock=new Ir);var ca=Ja.temporaryTextBlock;S1(ca,vo);var sh=vo.alignmentFocus;sh.Mc()&&(sh=Pa);for(var Qa=vo.segmentOrientation,_f=vo.segmentOffset,ic=new yn,Mp=0,Jf=0,Fl=0,Hc=0,rc=0,Qf=Fs.length,ah=0;ah<Qf;ah++){var nu=Fs[ah];Mp=nu.$l.x,Jf=nu.$l.y,Fl=nu.angle,rc=Hc=vo.angle,Qa!==Ts&&(rc=Qa===Qg||Qa===Qm?Fl+vo.angle:Fl,Hc=zn.computeAngle(Qa,rc)),ca.Kb=Hc,ca.text=nu.text||"",ca.measure(1/0,1/0,0,0);var lh=ca.measuredBounds,Cu=ca.naturalBounds,uh=Cu.width,Wc=Cu.height,wl=Vi.alloc();wl.reset(),wl.translate(-lh.x,-lh.y),wl.scale(ca.scale,ca.scale),wl.rotate(rc,uh/2,Wc/2),Qa!==qg&&Qa!==tp||wl.rotate(90,uh/2,Wc/2),Qa!==$g&&Qa!==ep||wl.rotate(-90,uh/2,Wc/2),Qa===qm&&(45<Fl&&135>Fl||225<Fl&&315>Fl)&&wl.rotate(-Fl,uh/2,Wc/2);var Od=yn.allocAt(0,0,uh,Wc),hh=Se.alloc();hh.xi(Od,sh),wl.Ga(hh);var Id=-hh.x,Gy=-hh.y,Eu=Se.alloc();Eu.assign(_f),isNaN(Eu.x)&&(Eu.x=uh/2+3),isNaN(Eu.y)&&(Eu.y=-(Wc/2+3)),Eu.rotate(Fl),Mp+=Eu.x+Id,Jf+=Eu.y+Gy;var Uc=new yn(Mp,Jf,lh.width,lh.height),Tp=new yn(lh.x,lh.y,lh.width,lh.height),Ky=new yn(Cu.x,Cu.y,Cu.width,Cu.height);nu.Sz=Hc,nu.lineCount=ca.lineCount,nu.lines=[ca.Cb,ca.Ih,ca.df,ca.Le,ca.Qc,ca.Qb,ca.ze],nu.actualBounds=Uc,nu.measuredBounds=Tp,nu.naturalBounds=Ky,ah===0?ic.assign(Uc):ic.ed(Uc),Se.free(Eu),Se.free(hh),yn.free(Od),Vi.free(wl)}Ja.graduatedBounds!==null&&Ja.graduatedBounds.push(ic),Ji(K0,ic.x,ic.y,ic.width,ic.height)}xo(vo,!1)}}},Hg.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var b=a.Pb(),E=a.graduatedMarks;if(E!==null){var z=a.graduatedBounds,nt=0,ot=z[nt];nt++,b!==null&&b.arrange(ot.x-x.x,ot.y-x.y,ot.width,ot.height);for(var at=y.length,ht=0;ht<at;ht++){var dt=y[ht];ot=E[ht],dt.visible&&dt!==b&&ot.length!==0&&(ot=z[nt],nt++,dt.arrange(ot.x-x.x,ot.y-x.y,ot.width,ot.height))}a.graduatedBounds=null}}},Hg.prototype.gc=function(a,y,x){var b=x.$i;x.$i=!0;var E=a.naturalBounds,z=E.width,nt=E.height;E=y instanceof oa,y.save(),y.beginPath(),y.rect(-1,-1,z+1,nt+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,x),nt=a.Df()*x.scale,0>=nt&&(nt=1);for(var ot=z.actualBounds,at=a.O.s,ht=a.graduatedMarks,dt=at.length,Et=0;Et<dt;Et++){var Ht=at[Et],Jt=ht[Et],ee=Jt.length;if(Ht.visible&&Ht!==z&&Jt.length!==0){if(Ht instanceof Ri){if(!(2>a.graduatedTickUnit*Ht.interval*z.geometry.flattenedTotalLength/a.graduatedRange*nt&&Ht.graduatedSkip===null)){var se=Ht.measuredBounds,Ce=Ht.strokeWidth*Ht.scale,ve=Ht.alignmentFocus;ve.Mc()&&(ve=Pa);for(var Ae=0;Ae<ee;Ae++){var Ie=Jt[Ae].$l,Be=Jt[Ae].angle,Ve=ve,rn=Ht.Ab;rn.reset(),rn.translate(Ie.x+ot.x,Ie.y+ot.y),rn.rotate(Be+Ht.angle,0,0),rn.translate(-se.width*Ve.x+Ve.offsetX+Ce/2,-se.height*Ve.y+Ve.offsetY+Ce/2),rn.scale(Ht.scale,Ht.scale),Ka(Ht,!1),Ht.wh.set(Ht.Ab),Ht.Kk=Ht.scale,Ta(Ht,!1),Ht.gc(y,x),E&&(a.svg.appendChild(Ht.svg),Ht.svg=null),Ht.Ab.reset()}}}else if(Ht instanceof Ir)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new Ir),se=a.temporaryTextBlock,S1(se,Ht),Ce=0;Ce<ee;Ce++)ve=Jt[Ce],ve.actualBounds&&ve.measuredBounds&&ve.naturalBounds&&(se.ec=ve.text||"",se.Kb=ve.Sz||0,se.Gc=ve.lineCount||0,Ae=ve.lines,Ae!==void 0&&(se.Cb=Ae[0],se.Ih=Ae[1],se.df=Ae[2],se.Le=Ae[3],se.Qc=Ae[4],se.Qb=Ae[5],se.ze=Ae[6]),ve.naturalBounds&&(se.dc=ve.naturalBounds),ve.actualBounds&&(Ae=ve.actualBounds,se.arrange(Ae.x,Ae.y,Ae.width,Ae.height)),Ae=ve.actualBounds,se.arrange(Ae.x,Ae.y,Ae.width,Ae.height),Ie=ve.measuredBounds,ve=ve.naturalBounds,Be=se.Ab,Be.reset(),Be.translate(Ae.x+ot.x,Ae.y+ot.y),Be.translate(-Ie.x,-Ie.y),se.no(Be,ve.x,ve.y,ve.width,ve.height),Ka(se,!1),se.wh.set(se.Ab),se.Kk=se.scale,Ta(se,!1),se.Ng=Ht.part,se.Me=Ht.panel,se.gc(y,x),se.Me=null,se.Ng=null,E&&(a.svg.appendChild(se.svg),se.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function Fn(a,y){if(Xe.call(this),this.na=null,a===void 0)this.na=Fn.Position;else if(typeof a=="string"){var x=il.I(a);x!==null&&(this.na=x)}else a instanceof Lo?this.na=a:a&&(this.na=Fn.Position,y=a);this.na===null&&Pe("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Fn.Grid?1048576:0),this.O=new bn,this.yb=os,this.Tm=Cr,this.Uf=Ii,this.$g=null,this.$e="",this.jg=new yn(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=ni,this.jn=Vr,this.kn=ji,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Qe(Fn,Xe),Fn.prototype.cloneProtected=function(a){Xe.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},Fn.prototype.Af=function(a){Xe.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},Fn.prototype.copy=function(){var a=Xe.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,nt=z.count;if(z.Gb(nt,E),z=a.part,z!==null){z.Rh=null,E.portId!==null&&z instanceof Vn&&(z.Te=!0);var ot=a.diagram;ot!==null&&ot.undoManager.isUndoingRedoing||z.cb(ho,"elements",a,null,E,null,nt)}}return a}return null},ne=Fn.prototype,ne.toString=function(){return"Panel("+this.type.name+")#"+_i(this)},ne.Pn=function(a){Xe.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,b=0;b<x;b++)y[b].Pn(a)},ne.hh=function(a,y){if(this.na===Fn.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===Fn.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===Fn.Table)if(a.yc(),a instanceof oa){var x=a.yd;a.yd=um(a,"gojs-ts"),pv(this,a),a.nh.pop(),a.yd=x}else pv(this,a);(x=this.isClipping&&this.na===Fn.Spot)&&a.save();for(var b=this.Pb(),E=this.O.s,z=E.length,nt=0;nt<z;nt++){var ot=E[nt];x&&ot===b&&(a.clipInsteadOfFill=!0),ot.gc(a,y),x&&ot===b&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function pv(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,b=0<a.columnCount?a.colDefs:null;x!==null&&bm(a,y,!0,x,!0),b!==null&&bm(a,y,!1,b,!0),x!==null&&o1(a,y,!0,x),b!==null&&o1(a,y,!1,b),x!==null&&bm(a,y,!0,x,!1),b!==null&&bm(a,y,!1,b,!1)}function o1(a,y,x,b){for(var E=b.length,z=a.actualBounds,nt=a.naturalBounds,ot=!0,at=0;at<E;at++){var ht=b[at];if(ht!==void 0&&ht.actual!==0)if(ot)ot=!1;else{if(x){if(ht.position>nt.height)continue}else if(ht.position>nt.width)continue;var dt=ht.separatorStrokeWidth;isNaN(dt)&&(dt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Et=ht.separatorStroke;if(Et===null&&(Et=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),dt!==0&&Et!==null){$r(a,y,Et,!1,!1,nt,z),Et=!1;var Ht=ht.separatorDashArray;Ht===null&&(Ht=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),Ht!==null&&(Et=!0,y.js(Ht,0)),y.beginPath(),Ht=ht.position+dt,x?Ht>nt.height&&(dt-=Ht-nt.height):Ht>nt.width&&(dt-=Ht-nt.width),ht=ht.position+dt/2,y.lineWidth=dt,dt=a.yb,x?(ht+=dt.top,Ht=nt.width-dt.right,y.moveTo(dt.left,ht),y.lineTo(Ht,ht)):(ht+=dt.left,Ht=nt.height-dt.bottom,y.moveTo(ht,dt.top),y.lineTo(ht,Ht)),y.stroke(),y.Se(),Et&&y.fs()}}}}function bm(a,y,x,b,E){for(var z=b.length,nt=a.actualBounds,ot=a.naturalBounds,at=s1(a,!0),ht=s1(a,!1),dt=0;dt<z;dt++){var Et=b[dt];if(Et!==void 0&&Et.background!==null&&Et.coversSeparators!==E&&Et.actual!==0){var Ht=x?nt.height:nt.width;if(!(Et.position>Ht)){var Jt=Et.Wc(),ee=Et.separatorStrokeWidth;isNaN(ee)&&(ee=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var se=Et.separatorStroke;se===null&&(se=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(se===null||Et.index===(x?at:ht))&&(ee=0),Jt-=ee,ee=Et.position+ee,Jt+=Et.actual,ee+Jt>Ht&&(Jt=Ht-ee),0>=Jt||(Ht=a.yb,$r(a,y,Et.background,!0,!1,ot,nt),x?y.fillRect(Ht.left,ee+Ht.top,nt.width-(Ht.left+Ht.right),Jt):y.fillRect(ee+Ht.left,Ht.top,Jt,nt.height-(Ht.top+Ht.bottom)))}}}}function s1(a,y){for(var x=y?a.rowCount:a.columnCount,b=0;b<x;b++){var E=y?a.rowDefs[b]:a.colDefs[b];if(E!==void 0)return E.index}return 0}function mv(a){return a==="LineV"||a==="BarV"}ne.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},ne.kk=function(a,y,x){if(!Xe.prototype.kk.call(this,a,y,x))return!1;if(this.type===Fn.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,pv(this,a),a.yd=null;else if(this.na===Fn.Grid||this.na===Fn.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},ne.nk=function(){return!0},ne.$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,nt=0;nt<y.length;nt++)if(y[nt].Ed()){var ot=y[nt].actualBounds;E=nt===0?ot.x:Math.min(ot.x,E),z=nt===0?ot.y:Math.min(ot.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 Xe.prototype.$o.call(this,a,y,x,b)},ne.Sj=function(a,y,x,b,E){var z=this.se(),nt=this.transform,ot=1/(nt.m11*nt.m22-nt.m12*nt.m21),at=nt.m22*ot,ht=-nt.m12*ot,dt=-nt.m21*ot,Et=nt.m11*ot,Ht=ot*(nt.m21*nt.dy-nt.m22*nt.dx),Jt=ot*(nt.m12*nt.dx-nt.m11*nt.dy);if(this.areaBackground!==null)return nt=this.actualBounds,Je.Ff(nt.left,nt.top,nt.right,nt.bottom,a,y,x,b,E);if(this.background!==null)return z=a*at+y*dt+Ht,ot=a*ht+y*Et+Jt,a=x*at+b*dt+Ht,at=x*ht+b*Et+Jt,E.h(0,0),x=this.naturalBounds,z=Je.Ff(0,0,x.width,x.height,z,ot,a,at,E),E.transform(nt),z;z||(at=1,dt=ht=0,Et=1,Jt=Ht=0),ot=a*at+y*dt+Ht,a=a*ht+y*Et+Jt,at=x*at+b*dt+Ht,x=x*ht+b*Et+Jt,E.h(at,x),b=(at-ot)*(at-ot)+(x-a)*(x-a),ht=!1,Et=this.O.s,Jt=Et.length,dt=Se.alloc(),Ht=null,y=1/0;var ee=null,se=this.isClipping&&this.na===Fn.Spot;se&&(ee=Se.alloc(),Ht=this.Pb(),(ht=Ht.Sj(ot,a,at,x,ee))&&(y=(ot-ee.x)*(ot-ee.x)+(a-ee.y)*(a-ee.y)));for(var Ce=0;Ce<Jt;Ce++){var ve=Et[Ce];ve.visible&&ve!==Ht&&ve.Sj(ot,a,at,x,dt)&&(ht=!0,ve=(ot-dt.x)*(ot-dt.x)+(a-dt.y)*(a-dt.y),ve<b&&(b=ve,E.set(dt)))}return se&&(y>b&&E.set(ee),Se.free(ee)),Se.free(dt),z&&E.transform(nt),ht},ne.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();Xe.prototype.Gj.call(this)},ne.v=function(a){if(!ma(this)){Xe.prototype.v.call(this,a),a=null,(this.na===Fn.Auto||this.na===Fn.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=js(E,!1);(E instanceof Ms||E instanceof Fn||E instanceof Ir||z!==kn)&&E.v(!0)}}}},ne.Uj=function(){if(!ma(this)){xo(this,!0),Gl(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},ne.Uk=function(){if(!(this.l&2048)){Ka(this,!0),Ta(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},ne.Wu=function(){Ta(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},ne.Wl=function(a,y,x,b){var E=this.jg;E.h(0,0,0,0);var z=this.desiredSize,nt=this.minSize;x===void 0&&(x=nt.width,b=nt.height),x=Math.max(x,nt.width),b=Math.max(b,nt.height);var ot=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,ot.width)),isNaN(z.height)||(y=Math.min(z.height,ot.height)),a=Math.max(x,a),y=Math.max(b,y);var at=this.yb;a=Math.max(a-at.left-at.right,0),y=Math.max(y-at.top-at.bottom,0);var ht=this.O.s;ht.length!==0&&this.na.measure(this,a,y,ht,E,x,b),a=E.width+at.left+at.right,at=E.height+at.top+at.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(at=z.height),a=Math.min(ot.width,a),at=Math.min(ot.height,at),a=Math.max(nt.width,a),at=Math.max(nt.height,at),a=Math.max(x,a),at=Math.max(b,at),so(E,a,at),so(this.naturalBounds,a,at),this.Ge(0,0,a,at)},ne.Pb=function(){if(this.$g===null){var a=this.O.s,y=a.length;if(y===0)return null;for(var x=0;x<y;x++){var b=a[x];if(b.isPanelMain===!0)return this.$g=b}this.$g=a[0]}return this.$g};function vu(a){return a.part!==null?a.part.locationObject:null}ne.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=js(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var nt=this.Kg,ot=nt.left+nt.right;switch(nt=nt.top+nt.bottom,y===x&&z===b&&(a=kn),a){case kn:(y>x||z>b)&&(this.v(),this.measure(y>x?x:y,z>b?b:z,0,0));break;case Dn:this.v(!0),this.measure(x+ot,b+nt,0,0);break;case ai:this.v(!0),this.measure(x+ot,z+nt,0,0);break;case Si:this.v(!0),this.measure(y+ot,b+nt,0,0)}}this.na.arrange(this,E,this.jg)}},ne.gh=function(a){var y=this.naturalBounds,x=vu(this);if($i(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=Se.allocAt(0,0);b--;){var z=y[b];if((z.visible||z===x)&&(Mi(E.set(a),z.transform),z.ca(E)))return Se.free(E),!0}return Se.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},ne.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},ne.qm=function(a,y){if(y(this,a),a instanceof Fn){a=a.O.s;for(var x=a.length,b=0;b<x;b++)this.qm(a[b],y)}};function Mc(a,y){a1(a,a,y)}function a1(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 Fn&&a1(a,z,x)}}function yx(a,y){l1(a,a,y)}function l1(a,y,x){if(x(y),y instanceof Fn){y=y.O.s;for(var b=y.length,E=0;E<b;E++)l1(a,y[E],x)}}ne.Nl=function(a){return u1(this,this,a)};function u1(a,y,x){if(x(y))return y;if(y instanceof Fn){y=y.O.s;for(var b=y.length,E=0;E<b;E++){var z=u1(a,y[E],x);if(z!==null)return z}}return null}ne.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=Wg(this));for(var b=0;b<x;b++){var E=y[b];if(E instanceof Fn){var z=E.fb(a);if(z!==null)return z}if(E.name===a)return E}return null};function h1(a){a=a.O.s;for(var y=a.length,x=0,b=0;b<y;b++){var E=a[b];E instanceof Fn?x=Math.max(x,h1(E)):E instanceof Ri&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}ne.se=function(){return!(this.type===Fn.TableRow||this.type===Fn.TableColumn)};function Zu(a){return a.type===Fn.TableRow||a.type===Fn.TableColumn}ne.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),Ls(this)))return null;var b=this.naturalBounds,E=1/this.Df(),z=this.se(),nt=z?a:Mi(Se.allocAt(a.x,a.y),this.transform),ot=this.diagram,at=10,ht=5;if(ot!==null&&(at=ot.Ql("extraTouchArea"),ht=at/2),$i(-(ht*E),-(ht*E),b.width+at*E,b.height+at*E,nt.x,nt.y)){if(!this.isAtomic){E=this.O.s;var dt=E.length;if(ot=Se.alloc(),ht=(at=this.isClipping&&this.na===Fn.Spot)?this.Pb():null,at&&(ht.se()?Mi(ot.set(a),ht.transform):ot.set(a),!ht.ca(ot)))return Se.free(ot),z||Se.free(nt),null;for(var Et=vu(this);dt--;){var Ht=E[dt];if((Ht.visible||Ht===Et)&&(Ht.se()?Mi(ot.set(a),Ht.transform):ot.set(a),!at||Ht!==ht)){var Jt=null;if(Ht instanceof Fn?Jt=Ht.ic(ot,y,x):Ht.pickable===!0&&Ht.ca(ot)&&(Jt=Ht),Jt!==null&&(y!==null&&(Jt=y(Jt)),Jt!==null&&(x===null||x(Jt))))return Se.free(ot),z||Se.free(nt),Jt}}Se.free(ot)}return this.background===null&&this.areaBackground===null?(z||Se.free(nt),null):(a=$i(0,0,b.width,b.height,nt.x,nt.y)?this:null,z||Se.free(nt),a)}return z||Se.free(nt),null},ne.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(),nt=z?a:Mi(Se.allocAt(a.x,a.y),this.transform);if(E=$i(0,0,E.width,E.height,nt.x,nt.y),Zu(this)||E){if(!this.isAtomic){for(var ot=this.O.s,at=ot.length,ht=Se.alloc(),dt=vu(this);at--;){var Et=ot[at];if(Et.visible||Et===dt){Et.se()?Mi(ht.set(a),Et.transform):ht.set(a);var Ht=Et;Et=Et instanceof Fn?Et:null,(Et!==null?Et.ji(ht,y,x,b):Ht.ca(ht))&&Ht.pickable!==!1&&(y!==null&&(Ht=y(Ht)),Ht===null||x!==null&&!x(Ht)||b.add(Ht))}}Se.free(ht)}return z||Se.free(nt),E&&(this.background!==null||this.areaBackground!==null)}return z||Se.free(nt),!1},ne.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 nt=z;if(z===void 0&&(nt=Vi.alloc(),nt.reset()),nt.multiply(this.transform),this.fh(a,nt))return vv(this,y,x,E),z===void 0&&Vi.free(nt),!0;if(this.Yc(a,nt)){if(!this.isAtomic)for(var ot=vu(this),at=this.O.s,ht=at.length;ht--;){var dt=at[ht];if(dt.visible||dt===ot){var Et=dt.actualBounds,Ht=this.naturalBounds;Et.x>Ht.width||Et.y>Ht.height||0>Et.x+Et.width||0>Et.y+Et.height||(Et=dt,dt=dt instanceof Fn?dt:null,Ht=Vi.alloc(),Ht.set(nt),(dt!==null?dt.Cf(a,y,x,b,E,Ht):Fo(Et,a,b,Ht))&&(y!==null&&(Et=y(Et)),Et===null||x!==null&&!x(Et)||E.add(Et)),Vi.free(Ht))}}return z===void 0&&Vi.free(nt),b}return z===void 0&&Vi.free(nt),!1};function vv(a,y,x,b){for(var E=a.O.s,z=E.length;z--;){var nt=E[z];if(nt.visible){var ot=nt.actualBounds,at=a.naturalBounds;ot.x>at.width||ot.y>at.height||0>ot.x+ot.width||0>ot.y+ot.height||(nt instanceof Fn&&vv(nt,y,x,b),y!==null&&(nt=y(nt)),nt===null||x!==null&&!x(nt)||b.add(nt))}}}ne.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 nt=this.naturalBounds,ot=this.se(),at=ot?a:Mi(Se.allocAt(a.x,a.y),this.transform),ht=ot?y:Mi(Se.allocAt(y.x,y.y),this.transform),dt=at.Bf(ht),Et=0<at.x&&at.x<nt.width&&0<at.y&&at.y<nt.height||lr(at.x,at.y,0,0,0,nt.height)<=dt||lr(at.x,at.y,0,nt.height,nt.width,nt.height)<=dt||lr(at.x,at.y,nt.width,nt.height,nt.width,0)<=dt||lr(at.x,at.y,nt.width,0,0,0)<=dt;if(nt=at.zd(0,0)<=dt&&at.zd(0,nt.height)<=dt&&at.zd(nt.width,0)<=dt&&at.zd(nt.width,nt.height)<=dt,ot||(Se.free(at),Se.free(ht)),Et){if(!this.isAtomic){at=Se.alloc(),ht=Se.alloc(),dt=vu(this);for(var Ht=this.O.s,Jt=Ht.length;Jt--;){var ee=Ht[Jt];if(ee.visible||ee===dt){var se=ee.actualBounds,Ce=this.naturalBounds;(!ot||!(se.x>Ce.width||se.y>Ce.height||0>se.x+se.width||0>se.y+se.height))&&(ee.se()?(se=ee.transform,Mi(at.set(a),se),Mi(ht.set(y),se)):(at.set(a),ht.set(y)),se=ee,ee=ee instanceof Fn?ee:null,(ee!==null?ee.og(at,ht,x,b,E,z):se.tx(at,ht,E))&&(x!==null&&(se=x(se)),se===null||b!==null&&!b(se)||z.add(se)))}}Se.free(at),Se.free(ht)}return E?Et:nt}return!1};function yv(a){var y=null;return a instanceof Ri&&(y=a.spot1,y===Cr&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=No),y}function Sv(a){var y=null;return a instanceof Ri&&(y=a.spot2,y===Cr&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=ta),y}ne.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},ne.M=function(a){return this.O.M(a)},ne.Gb=function(a,y){y instanceof di&&Pe("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&Pe("Cannot make a Panel contain itself: "+this.toString()),Pe("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&Pe("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!==Fn.Grid||y instanceof Ri||Pe("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Fn.Graduated||y instanceof Ri||y instanceof Ir||Pe("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var b=y.data;b!==null&&typeof b=="object"&&(this.ge===null&&(this.ge=new qn),this.ge.add(b,y))}var E=this.O;if(b=-1,x===this){for(var z=-1,nt=this.O.s,ot=nt.length,at=0;at<ot;at++)if(nt[at]===y){z=at;break}if(z!==-1){if(z===a||z+1>=E.count&&a>=E.count)return;E.mb(z),b=z}else Pe("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),ma(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Fn&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||Em(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof Vn&&(x.Te=!0),x.Te&&x instanceof Vn&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(Eo,"elements",this,y,null,b,null),x.cb(ho,"elements",this,null,y,null,a)))};function xv(a,y){a.l=y?a.l|16777216:a.l&-16777217}ne.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)},ne.mb=function(a){0<=a&&this.pc(a,!0)},ne.pc=function(a,y){var x=this.O,b=x.M(a);if(b.Ng=null,b.wi(null),this.ge!==null){var E=b.data;typeof E=="object"&&this.ge.remove(E)}x.mb(a),xo(this,!1),this.v(),this.$g===b&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof Vn&&(b instanceof Fn?b.qm(b,function(nt,ot){Gv(z,ot,y)}):Gv(z,b,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(Eo,"elements",this,b,null,a,null))},ne.Fb=function(a){0>a&&pn(a,">= 0",Fn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new wo;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(ho,"rowdefs",this,null,x,null,a)}return y[a]},ne.oA=function(a){if(0>a&&pn(a,">= 0",Fn,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(Eo,"rowdefs",this,x,null,a,null),this.v()}}};function c1(a,y,x){var b=a.rowDefs;if(!(0>y)){if(b[y]=x instanceof wo?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}ne.Eb=function(a){0>a&&pn(a,">= 0",Fn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new wo;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(ho,"coldefs",this,null,x,null,a)}return y[a]},ne.jA=function(a){if(0>a&&pn(a,">= 0",Fn,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var b=y.length-1;0<=b&&y[b--]===void 0;)y.length--;this.cb(Eo,"coldefs",this,x,null,a,null),this.v()}}};function d1(a,y,x){var b=a.colDefs;if(!(0>y)){if(b[y]=x instanceof wo?x:void 0,!x)for(y=b.length-1;0<=y&&b[y--]===void 0;)b.length--;a.v()}}ne.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Lm(y,a),this},ne.Hy=function(a,y){return(a=this.Fb(a))&&Lm(a,new wo(y)),this},ne.By=function(a,y){return(a=this.Eb(a))&&Lm(a,new wo(y)),this},ne.nz=function(a){if(0>a||this.type!==Fn.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},ne.fz=function(a){if(0>a||this.type!==Fn.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},ne.Fz=function(a,y){if(y===void 0&&(y=new Se(NaN,NaN)),this.type!==Fn.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)},ne.Gz=function(a){if(this.type!==Fn.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function f1(a){return a=a.allBindings,a!==null&&a._isFrozen}function Za(a){var y=a.allBindings;if(y===null)a.data!==null&&Pe("Template cannot have .data be non-null: "+a),a.allBindings=y=new bn;else if(y._isFrozen)return;var x=new bn;xv(a,!1),a.qm(a,function(ht,dt){dt.th();var Et=dt.localBindings;if(Et!==null)for(fd(dt,!1),Et=Et.iterator;Et.next();){var Ht=Et.value;Ht.mode===up&&fd(dt,!0);var Jt=Ht.sourceName;Jt!==null&&(Jt==="/"&&xv(ht,!0),Jt=AS(Ht,ht,dt),Jt!==null&&(x.add(Jt),Jt.srcBindings===null&&(Jt.srcBindings=new bn),Jt.srcBindings.add(Ht))),y.add(Ht)}if(dt instanceof Fn&&dt.type===Fn.Table){if(0<dt.rowCount){for(ht=dt.rowDefs,Et=ht.length,Ht=0;Ht<Et;Ht++)if(Jt=ht[Ht],Jt!==void 0&&Jt.be!==null)for(var ee=Jt.be.iterator;ee.next();){var se=ee.value;se.xd=Jt,se.to=2,se.wl=Jt.index,y.add(se)}}if(0<dt.columnCount){for(dt=dt.colDefs,ht=dt.length,Et=0;Et<ht;Et++)if(Ht=dt[Et],Ht!==void 0&&Ht.be!==null)for(Jt=Ht.be.iterator;Jt.next();)ee=Jt.value,ee.xd=Ht,ee.to=1,ee.wl=Ht.index,y.add(ee)}}});for(var b=x.iterator;b.next();){var E=b.value;if(E.srcBindings!==null){fd(E,!0);for(var z=E.srcBindings.iterator;z.next();){var nt=z.value;E.localBindings===null&&(E.localBindings=new bn),E.localBindings.add(nt)}}E.srcBindings=null}for(b=y.iterator;b.next();)if(E=b.value,z=E.xd,z!==null){E.xd=null;var ot=E.targetProperty,at=ot.indexOf(".");0<at&&z instanceof Fn&&(nt=ot.substring(0,at),ot=ot.substr(at+1),at=z.fb(nt),at!==null?(z=at,E.targetProperty=ot):On('Warning: unable to find GraphObject named "'+nt+'" for Binding: '+E.toString())),z instanceof wo?(nt=_i(z.panel),E.Ai=nt===void 0?-1:nt,z.panel.bindingId=E.Ai):z instanceof Xe?(nt=_i(z),E.Ai=nt===void 0?-1:nt,z.bindingId=E.Ai):Pe("Unknown type of binding target: "+z)}y.freeze(),a instanceof di&&a.Zc()&&a.Va()}ne.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return yx(y,function(x){x instanceof Fn&&(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&&Za(y),y},ne.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,nt=x.Ai;if(nt!==-1){if(z=this.ks(nt),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 Fn))continue;E===1?z=z.Eb(x.wl):E===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,b)}}},ne.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function Sx(a,y){a=a.O.s;for(var x=a.length,b=y.length,E=0,z=null;E<x&&(z=a[E],!(z instanceof Fn&&z.data!==null));)E++,z=a[E];if(x-E!==b)return!0;if(z===null)return 0<b;for(var nt=0;E<x&&nt<b;){if(z=a[E],!(z instanceof Fn)||z.data!==y[nt])return!0;E++,nt++}return!1}function Wg(a){if(a.type===Fn.Spot||a.type===Fn.Auto)return Math.min(a.O.length,1);if(a.type===Fn.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof Ri&&b.isPanelMain))break}return x}return a.type===Fn.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof Fn&&Zu(a))?1:0}ne.mv=function(){for(var a=Wg(this);this.O.length>a;)this.pc(this.O.length-1,!1);g1(this,this.itemArray)};function g1(a,y){var x=Wg(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var b=0;b<x;b++)Cm(a,y[b],b,!0)}else{b=x;for(var E=0;E<y.length;E++,b++){var z=y[E],nt=b<a.O.length?a.O.M(b):null;if(nt instanceof Fn){if(nt.data!==z){var ot=Pv(a,nt.data),at=Pv(a,z),ht=at!==ot;ht||(ot=bv(a,ot),ht=bv(a,at)!==ot),ht?(a.pc(b,!1),Cm(a,z,E,!1)):nt.data=z}}else Cm(a,z,E,!1)}for(;b<a.O.length;)a.pc(b,!1);a.$g=null,wv(a,x,0),ma(a)||a.v(),a.graduatedIntervals=null,a.If()||Em(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof Vn&&(y.Te=!0),y.Te&&y instanceof Vn&&(y.wc=null))}}function Cm(a,y,x,b){if(!(y==null||0>x)){var E=Pv(a,y);if(E=bv(a,E),E!==null){if(Za(E),E=E.copy(),E.l&16777216){var z=a.ih();z!==null&&xv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new qn),a.ge.add(y,E)),z=x+Wg(a),a.Gb(z,E),b&&(E.ub=y,wv(a,z,x),E.ub=null),E.data=y}}}function wv(a,y,x){for(a=a.O;y<a.length;){var b=a.M(y);if(b instanceof Fn){var E=y,z=x;b.type===Fn.TableRow?b.row=E:b.type===Fn.TableColumn&&(b.column=E),b.itemIndex=z}y++,x++}}function Pv(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=lo(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;Pe("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function bv(a,y){var x=a.itemTemplateMap,b=null;return x!==null&&(b=x.I(y)),b===null&&(x!==null&&(b=x.I("")),b===null&&(p1||(p1=!0,On('No item template Panel found for category "'+y+'" on '+a),On(" Using default item template."),a=new Fn,y=new Ir,y.bind(new po("text","",Ln)),a.add(y),m1=a),b=m1)),b}function Em(a,y,x){var b=y.enabledChanged;if(b!==null&&b(y,x),y instanceof Fn){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var z=y[E];x&&z instanceof Fn&&!z.isEnabled||Em(a,z,x)}}}function kl(a,y){y.name=a,il.add(a,y)}we.Object.defineProperties(Fn.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===Fn.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&&pn(a,">= 0",Fn,"padding"),a=new li(a)):(0>a.left&&pn(a.left,">= 0",Fn,"padding:value.left"),0>a.right&&pn(a.right,">= 0",Fn,"padding:value.right"),0>a.top&&pn(a.top,">= 0",Fn,"padding:value.top"),0>a.bottom&&pn(a.bottom,">= 0",Fn,"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:os},set:function(a){typeof a=="number"&&(a=new li(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new Oa),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 br)&&(a instanceof br&&a.freeze(),this.T===null&&(this.T=new Oa),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 Oa),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)||Pe("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 Oa),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 br)&&(a instanceof br&&a.freeze(),this.T===null&&(this.T=new Oa),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 Oa),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)||Pe("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 Oa),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 Oa),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||Pe("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Al(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()||Pe("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Al(x),this.N(),this.g("gridOrigin",y,a)}}},graduatedMin:{get:function(){return this.ra!==null?this.ra.lq:0},set:function(a){var y=this.graduatedMin;y!==a&&(this.ra===null&&(this.ra=new yu),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),qo(this)&&(a=this.part,a!==null&&Hr(this,a,"graduatedRange")))}},graduatedMax:{get:function(){return this.ra!==null?this.ra.F:100},set:function(a){var y=this.graduatedMax;y!==a&&(this.ra===null&&(this.ra=new yu),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),qo(this)&&(a=this.part,a!==null&&Hr(this,a,"graduatedRange")))}},graduatedRange:{get:function(){return this.graduatedMax-this.graduatedMin}},graduatedTickUnit:{get:function(){return this.ra!==null?this.ra.ia:10},set:function(a){var y=this.graduatedTickUnit;y!==a&&0<a&&(this.ra===null&&(this.ra=new yu),this.ra.ia=a,this.v(),this.g("graduatedTickUnit",y,a))}},graduatedTickBase:{get:function(){return this.ra!==null?this.ra.V:0},set:function(a){var y=this.graduatedTickBase;y!==a&&(this.ra===null&&(this.ra=new yu),this.ra.V=a,this.v(),this.g("graduatedTickBase",y,a))}},graduatedMarks:{get:function(){return this.ra!==null?this.ra.u:null},set:function(a){this.ra!==null?this.ra.u=a:a!==null&&(this.ra=new yu,this.ra.u=a)}},graduatedBounds:{get:function(){return this.ra!==null?this.ra.j:null},set:function(a){this.ra!==null?this.ra.j=a:a!==null&&(this.ra=new yu,this.ra.j=a)}},graduatedIntervals:{get:function(){return this.ra!==null?this.ra.o:null},set:function(a){this.ra!==null?this.ra.o=a:a!==null&&(this.ra=new yu,this.ra.o=a)}},temporaryTextBlock:{get:function(){return this.ra!==null?this.ra.Zh:null},set:function(a){this.ra!==null?this.ra.Zh=a:a!==null&&(this.ra=new yu,this.ra.Zh=a)}},panelLayoutState:{get:function(){return this.F},set:function(a){this.F=a}},Te:{get:function(){return(this.l&8388608)!==0},set:function(a){(this.l&8388608)!==0!==a&&(this.l^=8388608)}},rowDefs:{get:function(){return this.T===null&&(this.T=new Oa),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new Oa),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Mm},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new Oa),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Mm},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new Oa),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)&&Pe("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Oa),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)&&Pe("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Oa),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 di&&!(this instanceof cr);Za(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof zn?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof di&&(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 gd),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&Sx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&uy(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&ly(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||g1(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new qn}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof di||a.isPanelMain)&&Pe("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(););Hi(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&&(Hi(this),this.A.Oc=a,this.g("itemCategoryProperty",y,a))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("isAtomic",y,a))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this instanceof Ni&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&Em(this,this,a)}}},alignmentFocusName:{get:function(){return this.$e},set:function(a){var y=this.$e;y!==a&&(this.$e=a,this.v(),this.g("alignmentFocusName",y,a))}}}),we.Object.defineProperties(Fn,{Position:{get:function(){return il.I("Position")}},Horizontal:{get:function(){return il.I("Horizontal")}},Vertical:{get:function(){return il.I("Vertical")}},Spot:{get:function(){return il.I("Spot")}},Auto:{get:function(){return il.I("Auto")}},Table:{get:function(){return il.I("Table")}},Viewbox:{get:function(){return il.I("Viewbox")}},TableRow:{get:function(){return il.I("TableRow")}},TableColumn:{get:function(){return il.I("TableColumn")}},Link:{get:function(){return il.I("Link")}},Grid:{get:function(){return il.I("Grid")}},Graduated:{get:function(){return il.I("Graduated")}}}),Fn.prototype.rebuildItemElements=Fn.prototype.mv,Fn.prototype.findItemPanelForData=Fn.prototype.sx,Fn.prototype.updateTargetBindings=Fn.prototype.La,Fn.prototype.copyTemplate=Fn.prototype.Uy,Fn.prototype.graduatedValueForPoint=Fn.prototype.Gz,Fn.prototype.graduatedPointForValue=Fn.prototype.Fz,Fn.prototype.findColumnForLocalX=Fn.prototype.fz,Fn.prototype.findRowForLocalY=Fn.prototype.nz,Fn.prototype.addColumnDefinition=Fn.prototype.By,Fn.prototype.addRowDefinition=Fn.prototype.Hy,Fn.prototype.addRowColumnDefinition=Fn.prototype.Gy,Fn.prototype.removeColumnDefinition=Fn.prototype.jA,Fn.prototype.getColumnDefinition=Fn.prototype.Eb,Fn.prototype.removeRowDefinition=Fn.prototype.oA,Fn.prototype.getRowDefinition=Fn.prototype.Fb,Fn.prototype.removeAt=Fn.prototype.mb,Fn.prototype.remove=Fn.prototype.remove,Fn.prototype.insertAt=Fn.prototype.Gb,Fn.prototype.elt=Fn.prototype.M,Fn.prototype.add=Fn.prototype.add,Fn.prototype.findObject=Fn.prototype.fb,Fn.prototype.findInVisualTree=Fn.prototype.Nl,Fn.prototype.walkVisualTreeFrom=Fn.prototype.qm,Fn.prototype.findMainElement=Fn.prototype.Pb;var p1=!1,m1=null,il=new qn;Fn.className="Panel",Fn.definePanelLayout=kl,kl("Position",new dm),kl("Vertical",new gm),kl("Auto",new mm),kl("Link",new Pm);function yu(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}yu.prototype.copy=function(){var a=new yu;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},yu.className="GradPanelSettings";function Oa(){this.Pc=[],this.Oc=[],this.j=this.ob=Mm,this.hb=this.Hb=0,this.Qp=os,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}Oa.prototype.copy=function(a){for(var y=new Oa,x=this.Pc,b=x.length,E=y.Pc,z=0;z<b;z++)if(x[z]!==void 0){var nt=x[z].copy();nt.wi(a),E[z]=nt}for(x=this.Oc,b=x.length,E=y.Oc,z=0;z<b;z++)x[z]!==void 0&&(nt=x[z].copy(),nt.wi(a),E[z]=nt);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},Oa.className="TablePanelSettings";function wo(a){Oi(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Cr,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Cv,this.hg=Ii,this.lo=this.dg=null,this.mo=NaN,this.Ma=this.tj=null,this.Pm=!1,a&&(Object.assign(this,a),a.column!==void 0?(this.isRow=!1,this.index=a.column):a.row!==void 0&&(this.isRow=!0,this.index=a.row))}wo.prototype.copy=function(){var a=new wo;return a.uq=this.uq,a.Za=this.Za,a.Hc=this.Hc,a.jj=this.jj,a.hj=this.hj,a.Jb=this.Jb,a.oa=this.oa,a.oc=this.oc,a.pa=this.pa,a.hg=this.hg,a.oo=this.oo,this.dg===null?a.dg=null:a.dg=this.dg.J(),a.lo=this.lo,a.mo=this.mo,a.tj=null,this.tj!==null&&(a.separatorDashArray=_e(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Lm(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=_e(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}ne=wo.prototype,ne.qb=function(a){a.classType===wo&&(this.sizing=a)},ne.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+_i(this)},ne.wi=function(a){this.Me=a},ne.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)},ne.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===Fn.Table)for(var E=b?y.rowDefs.length:y.colDefs.length,z=0;z<E;z++){var nt=b?y.rowDefs[z]:y.colDefs[z];if(nt!==void 0&&nt.oa!==0){x=nt.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)},ne.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(Xr,a,this,y,x,void 0,void 0),this.be!==null&&(y=b.diagram,y!==null&&!y.skipsModelSourceBindings&&(b=b.ih(),b!==null&&(y=b.data,y!==null)))))for(x=this.be.iterator;x.next();)x.value.sp(this,y,a,b)};function Am(a){if(a.sizing===Cv){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}ne.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new po(a,y,x,b):E=a,E.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&f1(y)&&Pe("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new bn),this.be.add(E),this},we.Object.defineProperties(wo.prototype,{panel:{get:function(){return this.Me}},isRow:{get:function(){return this.uq},set:function(a){this.uq=a}},index:{get:function(){return this.Za},set:function(a){this.Za=a}},height:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&pn(a,">= 0",wo,"height"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",y,a))}},width:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&pn(a,">= 0",wo,"width"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",y,a))}},minimum:{get:function(){return this.jj},set:function(a){var y=this.jj;y!==a&&((0>a||!isFinite(a))&&pn(a,">= 0",wo,"minimum"),this.jj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",y,a))}},maximum:{get:function(){return this.hj},set:function(a){var y=this.hj;y!==a&&(0>a&&pn(a,">= 0",wo,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new li(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&md(a,"RowColumnDefinition.separatorStroke"),a instanceof br&&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)||Pe("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&&md(a,"RowColumnDefinition.background"),a instanceof br&&a.freeze(),this.Ma=a,this.panel!==null&&this.panel.N(),this.Ob("background",y,a))}},coversSeparators:{get:function(){return this.Pm},set:function(a){var y=this.Pm;y!==a&&(this.Pm=a,this.panel!==null&&this.panel.N(),this.Ob("coversSeparators",y,a))}},sizing:{get:function(){return this.oo},set:function(a){var y=this.oo;y!==a&&(this.oo=a,this.panel!==null&&this.panel.v(),this.Ob("sizing",y,a))}},actual:{get:function(){return this.oa},set:function(a){this.oa=isNaN(this.Hc)?Math.max(Math.min(this.hj,a),this.jj):Math.max(Math.min(this.hj,this.Hc),this.jj)}},measured:{get:function(){return this.oc},set:function(a){this.oc=a}},total:{get:function(){return this.oa+this.Wc()}},position:{get:function(){return this.pa},set:function(a){this.pa=a}}}),wo.prototype.computeEffectiveSpacing=wo.prototype.Wc,wo.prototype.computeEffectiveSpacingTop=wo.prototype.Io;var Cv=new dn(wo,"Default",0),Ug=new dn(wo,"None",1),Mm=new dn(wo,"ProportionalExtra",2);wo.className="RowColumnDefinition",wo.Default=Cv,wo.None=Ug,wo.ProportionalExtra=Mm;function Ri(a,y){Xe.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)}Qe(Ri,Xe),Ri.prototype.cloneProtected=function(a){Xe.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=_e(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 Tc(a){a.Na===null?a.Na=new Av:a.Na.nc&&(a.Na=a.Na.copy())}ne=Ri.prototype,ne.th=function(){Xe.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},ne.qb=function(a){a===kn||a===ni||a===tr||a===Ii?this.geometryStretch=a:Xe.prototype.qb.call(this,a)},ne.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+_i(this)};function xf(a,y,x,b){var E=x.length;if(!(4>E)){var z=b.measuredBounds,nt=Math.max(1,z.width);z=z.height;for(var ot=x[0],at=x[1],ht,dt,Et,Ht,Jt,ee,se=0,Ce=sn(),ve=2;ve<E;ve+=2)ht=x[ve],dt=x[ve+1],Et=ht-ot,ot=dt-at,Et===0&&(Et=.001),Ht=ot/Et,Jt=Math.atan2(ot,Et),ee=Math.sqrt(Et*Et+ot*ot),Ce.push([Et,Jt,Ht,ee]),se+=ee,ot=ht,at=dt;ot=x[0],at=x[1],Et=b.measuredBounds.width,b instanceof Ri&&(Et-=b.strokeWidth),1>Et&&(Et=1),E=x=Et,ht=nt/2,dt=ht!==0,ve=0,ee=Ce[ve],Et=ee[0],Jt=ee[1],Ht=ee[2],ee=ee[3];for(var Ae=0;.1<=se;){if(Ae===0&&(dt?(E=x,E-=ht,se-=ht,dt=!1):E=x,E===0&&(E=1)),E>se){xn(Ce);return}E>ee?(Ae=E-ee,E=ee):Ae=0;var Ie=Math.sqrt(E*E/(1+Ht*Ht));if(0>Et&&(Ie=-Ie),ot+=Ie,at+=Ht*Ie,a.translate(ot,at),a.rotate(Jt),a.translate(-(nt/2),-(z/2)),Ae===0&&b.hh(a,y),a.translate(nt/2,z/2),a.rotate(-Jt),a.translate(-ot,-at),se-=E,ee-=E,Ae!==0){if(ve++,ve===Ce.length){xn(Ce);return}ee=Ce[ve],Et=ee[0],Jt=ee[1],Ht=ee[2],ee=ee[3],E=Ae}}xn(Ce)}}ne.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,nt=this.naturalBounds;b!==null&&$r(this,a,b,!0,!1,nt,z);var ot=this.part,at=this.ig;if(x===null||at!==0||ot===null||!this.isPanelMain&&ot.Pb()!==this||(at=ot.type===Fn.Link&&ot instanceof cr&&ot.category==="Selection"&&ot.adornedObject instanceof Ri&&ot.adornedPart.Pb()===ot.adornedObject?ot.adornedObject.strokeWidth:0),at===0&&(x=null),x!==null&&at!==0&&($r(this,a,x,!1,!1,nt,z),a.lineWidth=at,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,ot&&y.Gf("drawShadows")&&(z=ot.isShadowed),a.Il===!1&&(z=!1),ot=!0,x===null||b!==null&&b!=="transparent"||(ot=!1),nt=!1,at=this.strokeDashArray,at!==null&&(nt=!0,a.js(at,this.strokeDashOffset)),E.type===Un.j)a.beginPath(),a.moveTo(E.startX,E.startY),a.lineTo(E.endX,E.endY),x!==null&&a.jk(),a.Se();else if(E.type===Un.u){var ht=E.startX;at=E.startY;var dt=E.endX,Et=E.endY;E=Math.min(ht,dt);var Ht=Math.min(at,Et);ht=Math.abs(dt-ht),at=Math.abs(Et-at),a.beginPath(),a.rect(E,Ht,ht,at),b!==null&&a.ng(b),x!==null&&(ot&&z&&Kl(a),a.jk(),ot&&z&&gu(a)),a.Se()}else if(E.type===Un.F)ht=E.startX,at=E.startY,dt=E.endX,Et=E.endY,E=Math.abs(dt-ht)/2,Ht=Math.abs(Et-at)/2,ht=Math.min(ht,dt)+E,at=Math.min(at,Et)+Ht,a.beginPath(),a.moveTo(ht,at-Ht),a.bezierCurveTo(ht+Je.wg*E,at-Ht,ht+E,at-Je.wg*Ht,ht+E,at),a.bezierCurveTo(ht+E,at+Je.wg*Ht,ht+Je.wg*E,at+Ht,ht,at+Ht),a.bezierCurveTo(ht-Je.wg*E,at+Ht,ht-E,at+Je.wg*Ht,ht-E,at),a.bezierCurveTo(ht-E,at-Je.wg*Ht,ht-Je.wg*E,at-Ht,ht,at-Ht),a.closePath(),b!==null&&a.ng(b),x!==null&&(ot&&z&&Kl(a),a.jk(),ot&&z&&gu(a)),a.Se();else if(E.type===Un.o)for(E=E.figures,at=E.length,Ht=0;Ht<at;Ht++){ht=E.s[Ht],a.beginPath(),a.moveTo(ht.startX,ht.startY),dt=ht.segments.s,Et=dt.length;for(var Jt=null,ee=0;ee<Et;ee++){var se=dt[ee];switch(se.type){case Do:a.moveTo(se.endX,se.endY);break;case jr:a.lineTo(se.endX,se.endY);break;case $o:a.bezierCurveTo(se.point1X,se.point1Y,se.point2X,se.point2Y,se.endX,se.endY);break;case da:a.quadraticCurveTo(se.point1X,se.point1Y,se.endX,se.endY);break;case yo:if(se.radiusX===se.radiusY){var Ce=Math.PI/180;a.arc(se.point1X,se.point1Y,se.radiusX,se.startAngle*Ce,(se.startAngle+se.sweepAngle)*Ce,0>se.sweepAngle,Jt!==null?Jt.endX:ht.startX,Jt!==null?Jt.endY:ht.startY)}else if(Jt=na(se,ht),Ce=Jt.length,Ce===0)a.lineTo(se.centerX,se.centerY);else for(var ve=0;ve<Ce;ve++){var Ae=Jt[ve];ve===0&&a.lineTo(Ae[0],Ae[1]),a.bezierCurveTo(Ae[2],Ae[3],Ae[4],Ae[5],Ae[6],Ae[7])}break;case Ca:if(ve=Ce=0,Jt!==null&&Jt.type===yo){if(Jt=na(Jt,ht),Ae=Jt.length,Ae===0){a.lineTo(se.endX,se.endY);break}Jt=Jt[Ae-1]||null,Jt!==null&&(Ce=Jt[6],ve=Jt[7])}else Ce=Jt!==null?Jt.endX:ht.startX,ve=Jt!==null?Jt.endY:ht.startY;if(Jt=Ha(se,ht,Ce,ve),Ce=Jt.length,Ce===0){a.lineTo(se.endX,se.endY);break}for(ve=0;ve<Ce;ve++)Ae=Jt[ve],a.bezierCurveTo(Ae[2],Ae[3],Ae[4],Ae[5],Ae[6],Ae[7]);break;default:Pe("Segment not of valid type: "+se.type)}se.isClosed&&a.closePath(),Jt=se}dt=ht.isFilled,z?ht.isShadowed?(dt===!0&&b!=="transparent"&&b!==null&&a.ng(b,ht.isEvenOdd),x!==null&&(dt&&ot&&Kl(a),a.jk(),dt&&ot&&gu(a))):(Kl(a),dt&&b!=="transparent"&&b!==null&&a.ng(b,ht.isEvenOdd),x!==null&&a.jk(),gu(a)):(dt&&b!==null&&a.ng(b,ht.isEvenOdd),x!==null&&a.jk()),a.Se(Ht)}if(nt&&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=sn(),z.type===Un.j)b.push(z.startX),b.push(z.startY),b.push(z.endX),b.push(z.endY),xf(a,y,b,x);else if(z.type===Un.o)for(z=z.figures.iterator;z.next();){for(ot=z.value,b.length=0,b.push(ot.startX),b.push(ot.startY),nt=ot.startX,E=ot.startY,at=nt,Ht=E,ht=ot.segments.s,dt=ht.length,Et=0;Et<dt;Et++){switch(ee=ht[Et],ee.type){case Do:xf(a,y,b,x),b.length=0,b.push(ee.endX),b.push(ee.endY),nt=ee.endX,E=ee.endY,at=nt,Ht=E;break;case jr:b.push(ee.endX),b.push(ee.endY),nt=ee.endX,E=ee.endY;break;case $o:Je.Qe(nt,E,ee.point1X,ee.point1Y,ee.point2X,ee.point2Y,ee.endX,ee.endY,.5,b),nt=ee.endX,E=ee.endY;break;case da:Je.ep(nt,E,ee.point1X,ee.point1Y,ee.endX,ee.endY,.5,b),nt=ee.endX,E=ee.endY;break;case yo:if(se=na(ee,ot),Jt=se.length,Jt===0){b.push(ee.centerX),b.push(ee.centerY),nt=ee.centerX,E=ee.centerY;break}for(Ce=0;Ce<Jt;Ce++)ve=se[Ce],Je.Qe(nt,E,ve[2],ve[3],ve[4],ve[5],ve[6],ve[7],.5,b),nt=ve[6],E=ve[7];break;case Ca:if(se=Ha(ee,ot,nt,E),Jt=se.length,Jt===0){b.push(ee.endX),b.push(ee.endY),nt=ee.endX,E=ee.endY;break}for(Ce=0;Ce<Jt;Ce++)ve=se[Ce],Je.Qe(nt,E,ve[2],ve[3],ve[4],ve[5],ve[6],ve[7],.5,b),nt=ve[6],E=ve[7];break;default:Pe("Segment not of valid type: "+ee.type)}ee.isClosed&&(b.push(at),b.push(Ht),xf(a,y,b,x))}xf(a,y,b,x)}else if(z.type===Un.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),xf(a,y,b,x);else if(z.type===Un.F){if(E=new Io,E.startX=z.endX,E.startY=(z.startY+z.endY)/2,nt=new fr(yo),nt.startAngle=0,nt.sweepAngle=360,nt.centerX=(z.startX+z.endX)/2,nt.centerY=(z.startY+z.endY)/2,nt.radiusX=Math.abs(z.startX-z.endX)/2,nt.radiusY=Math.abs(z.startY-z.endY)/2,E.add(nt),z=na(nt,E),ot=z.length,ot===0)b.push(nt.centerX),b.push(nt.centerY);else for(nt=E.startX,E=E.startY,at=0;at<ot;at++)Ht=z[at],Je.Qe(nt,E,Ht[2],Ht[3],Ht[4],Ht[5],Ht[6],Ht[7],.5,b),nt=Ht[6],E=Ht[7];xf(a,y,b,x)}xn(b),a.restore(),a.Vc(!1)}}}},ne.kk=function(a,y,x){return!Xe.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)},ne.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:Xe.prototype.nk.call(this,a)},ne.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)}},ne.ga=function(a,y){if(y===void 0&&(y=new Se),a instanceof si){a.Mc()&&Pe("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},ne.mi=function(a){a===void 0&&(a=new yn);var y=this.naturalBounds,x=this.oe;y=yn.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=Se.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),Ji(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),Ji(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),Ji(a,b.x,b.y,0,0),yn.free(y),Se.free(b),a},ne.gh=function(a,y){var x=this.geometry;if(x===null||this.fill===null&&this.stroke===null)return!1;var b=x.bounds,E=this.strokeWidth/2;x.type!==Un.j||y||(E+=2);var z=yn.alloc();if(z.assign(b),z.Bc(E+2,E+2),!z.ca(a))return yn.free(z),!1;if(b=E+1e-4,x.type===Un.j)return this.stroke===null||(b=(x.endX-x.startX)*(a.x-x.startX)+(x.endY-x.startY)*(a.y-x.startY),0>(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>b)?!1:(yn.free(z),Je.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===Un.u){y=x.startX;var nt=x.startY,ot=x.endX;if(x=x.endY,z.x=Math.min(y,ot),z.y=Math.min(nt,x),z.width=Math.abs(ot-y),z.height=Math.abs(x-nt),this.fill===null){if(z.Bc(-b,-b),z.ca(a))return yn.free(z),!1;z.Bc(b,b)}return this.stroke!==null&&z.Bc(E,E),a=z.ca(a),yn.free(z),a}if(x.type===Un.F){nt=x.startX,E=x.startY,ot=x.endX;var at=x.endY;if(x=Math.min(nt,ot),y=Math.min(E,at),nt=Math.abs(ot-nt)/2,E=Math.abs(at-E)/2,x=a.x-(x+nt),y=a.y-(y+E),this.fill===null){if(nt-=b,E-=b,0>=nt||0>=E||1>=x*x/(nt*nt)+y*y/(E*E))return yn.free(z),!1;nt+=b,E+=b}return this.stroke!==null&&(nt+=b,E+=b),yn.free(z),0>=nt||0>=E?!1:1>=x*x/(nt*nt)+y*y/(E*E)}if(x.type===Un.o)return yn.free(z),this.fill===null?yh(x,a.x,a.y,E):ou(x,a,E,1<this.strokeWidth,y);Pe("Unknown Geometry type: "+x.type)},ne.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 nt=this.geometry.bounds;else{var ot=this.figure,at=Lv[ot];if(at===void 0){var ht=Je.Ze[ot];typeof ht=="string"&&(ht=Je.Ze[ht]),typeof ht=="function"?(at=ht(null,100,100),Lv[ot]=at):Pe("Unsupported Figure: "+ot)}nt=at.bounds}ot=nt.width,at=nt.height,ht=nt.width;var dt=nt.height;switch(js(this,!0)){case kn:b=x=0;break;case Dn:ht=Math.max(a-z,0),dt=Math.max(y-z,0);break;case ai:ht=Math.max(a-z,0),b=0;break;case Si:x=0,dt=Math.max(y-z,0)}isFinite(E.width)&&(ht=E.width),isFinite(E.height)&&(dt=E.height);var Et=this.maxSize,Ht=this.minSize;switch(x=Math.max(x-z,Ht.width),b=Math.max(b-z,Ht.height),ht=Math.min(Et.width,ht),dt=Math.min(Et.height,dt),ht=isFinite(ht)?Math.max(x,ht):Math.max(ot,x),dt=isFinite(dt)?Math.max(b,dt):Math.max(at,b),x=Ev(this),x){case kn:break;case Dn:ot=ht,at=dt;break;case ni:x=Math.min(ht/ot,dt/at),isFinite(x)||(x=1),ot*=x,at*=x;break;default:Pe(x+" is not a valid geometryStretch.")}this.Rd!==null?(ot===0&&(ot=.001),at===0&&(at=.001),x=this.Rd!==null?this.Rd:this.ua,nt=x.bounds,b=ot/nt.width,nt=at/nt.height,isFinite(b)||(b=1),isFinite(nt)||(nt=1),this.ua=b===1&&nt===1?x:x.copy().scale(b,nt)):this.ua!==null&&Je.$(this.ua.Sk,a-z)&&Je.$(this.ua.Rk,y-z)||(this.ua=Ri.makeGeometry(this,ot,at)),nt=this.ua.bounds,a===1/0||y===1/0?this.Ge(nt.x-z/2,nt.y-z/2,a===0&&ot===0?0:nt.width+z,y===0&&at===0?0:nt.height+z):this.Ge(-(z/2),-(z/2),ht+z,dt+z),E.w()?(ht=E.width,dt=E.height,ht=Math.min(Et.width,ht),dt=Math.min(Et.height,dt),ht=Math.max(Ht.width,ht),dt=Math.max(Ht.height,dt),this.dc.h(0,0,ht,dt)):this.dc.assign(nt)};function Ev(a){var y=a.geometryStretch;return a.Rd!==null?y===Ii?Dn:y:y===Ii?Lv[a.figure].defaultStretch:y}ne.eh=function(a,y,x,b){fs(this,a,y,x,b)},ne.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},ne.Sj=function(a,y,x,b,E){var z=this.transform,nt=1/(z.m11*z.m22-z.m12*z.m21),ot=z.m22*nt,at=-z.m12*nt,ht=-z.m21*nt,dt=z.m11*nt,Et=nt*(z.m21*z.dy-z.m22*z.dx),Ht=nt*(z.m12*z.dx-z.m11*z.dy);z=a*ot+y*ht+Et,nt=a*at+y*dt+Ht,ot=x*ot+b*ht+Et,at=x*at+b*dt+Ht,Et=this.ig/2,ht=this.ua,ht===null&&(this.measure(1/0,1/0),ht=this.ua);var Jt=ht.bounds;if(dt=!1,ht.type===Un.j)if(1.5>=this.strokeWidth)dt=Je.Ve(ht.startX,ht.startY,ht.endX,ht.endY,z,nt,ot,at,E);else{if(ht.startX===ht.endX?(b=Et,dt=0):(y=(ht.endY-ht.startY)/(ht.endX-ht.startX),dt=Et/Math.sqrt(1+y*y),b=dt*y),y=sn(),a=new Se,Je.Ve(ht.startX+b,ht.startY+dt,ht.endX+b,ht.endY+dt,z,nt,ot,at,a)&&y.push(a),a=new Se,Je.Ve(ht.startX-b,ht.startY-dt,ht.endX-b,ht.endY-dt,z,nt,ot,at,a)&&y.push(a),a=new Se,Je.Ve(ht.startX+b,ht.startY+dt,ht.startX-b,ht.startY-dt,z,nt,ot,at,a)&&y.push(a),a=new Se,Je.Ve(ht.endX+b,ht.endY+dt,ht.endX-b,ht.endY-dt,z,nt,ot,at,a)&&y.push(a),ot=y.length,ot===0)return xn(y),!1;for(dt=!0,at=1/0,b=0;b<ot;b++)a=y[b],x=(a.x-z)*(a.x-z)+(a.y-nt)*(a.y-nt),x<at&&(at=x,E.x=a.x,E.y=a.y);xn(y)}else if(ht.type===Un.u)dt=Je.Ff(Jt.x-Et,Jt.y-Et,Jt.x+Jt.width+Et,Jt.y+Jt.height+Et,z,nt,ot,at,E);else if(ht.type===Un.F){y=yn.allocAt(Jt.x,Jt.y,Jt.width,Jt.height).Bc(Et,Et);t:if(y.width===0)dt=Je.Ve(y.x,y.y,y.x,y.y+y.height,z,nt,ot,at,E);else if(y.height===0)dt=Je.Ve(y.x,y.y,y.x+y.width,y.y,z,nt,ot,at,E);else{if(a=y.width/2,ht=y.height/2,b=y.x+a,dt=y.y+ht,x=9999,z!==ot&&(x=(nt-at)/(z-ot)),9999>Math.abs(x)){if(at=nt-dt-x*(z-b),0>a*a*x*x+ht*ht-at*at){E.x=NaN,E.y=NaN,dt=!1;break t}Et=Math.sqrt(a*a*x*x+ht*ht-at*at),ot=(-(a*a*x*at)+a*ht*Et)/(ht*ht+a*a*x*x)+b,a=(-(a*a*x*at)-a*ht*Et)/(ht*ht+a*a*x*x)+b,ht=x*(ot-b)+at+dt,at=x*(a-b)+at+dt,Math.abs((z-ot)*(z-ot))+Math.abs((nt-ht)*(nt-ht))<Math.abs((z-a)*(z-a))+Math.abs((nt-at)*(nt-at))?(E.x=ot,E.y=ht):(E.x=a,E.y=at)}else{if(ot=ht*ht,at=z-b,ot-=ot/(a*a)*at*at,0>ot){E.x=NaN,E.y=NaN,dt=!1;break t}at=Math.sqrt(ot),ot=dt+at,at=dt-at,Math.abs(ot-nt)<Math.abs(at-nt)?(E.x=z,E.y=ot):(E.x=z,E.y=at)}dt=!0}yn.free(y)}else if(ht.type===Un.o){Ht=Se.alloc();var ee=ot-z,se=at-nt,Ce=ee*ee+se*se,ve=z,Ae=nt;if(0<Ce&&Jt.contains(ve,Ae)&&(Ht.x=ve,Ht.y=Ae,this.ca(Ht)))for(ee!==0&&.5>Math.abs(ee)?(se*=.5/ee,ee=.5):se!==0&&.5>Math.abs(se)&&(ee*=.5/se,se=.5),ve-=ee,Ae-=se;Jt.contains(ve,Ae);)ve-=ee,Ae-=se;for(E.x=ot,E.y=at,se=0;se<ht.figures.count;se++){var Ie=ht.figures.s[se],Be=Ie.isFilled?ve:z,Ve=Ie.isFilled?Ae:nt,rn=Ie.segments;Jt=Ie.startX,ee=Ie.startY;for(var Kn=Jt,$n=ee,Yn=0;Yn<rn.count;Yn++){var jn=rn.s[Yn],An=jn.type,ki=jn.endX,Ei=jn.endY,mr=!1;switch(An){case Do:Kn=ki,$n=Ei;break;case jr:mr=km(Jt,ee,ki,Ei,Be,Ve,ot,at,Ht);break;case $o:mr=Je.Eo(Jt,ee,jn.point1X,jn.point1Y,jn.point2X,jn.point2Y,ki,Ei,Be,Ve,ot,at,.6,Ht);break;case da:mr=Je.Eo(Jt,ee,Jt+2/3*(jn.point1X-Jt),ee+2/3*(jn.point1Y-ee),ki+2/3*(jn.point1X-ki),Ei+2/3*(jn.point1Y-Ei),ki,Ei,Be,Ve,ot,at,.6,Ht);break;case yo:case Ca:An=jn.type===yo?na(jn,Ie):Ha(jn,Ie,Jt,ee);var Or=An.length;if(Or===0){mr=km(Jt,ee,jn.type===yo?jn.centerX:jn.endX,jn.type===yo?jn.centerY:jn.endY,Be,Ve,ot,at,Ht);break}for(Ei=null,ki=0;ki<Or;ki++){if(Ei=An[ki],ki===0&&km(Jt,ee,Ei[0],Ei[1],Be,Ve,ot,at,Ht)){var Bo=Tm(Be,Ve,Ht,Ce,E);Bo<Ce&&(Ce=Bo,dt=!0)}Je.Eo(Ei[0],Ei[1],Ei[2],Ei[3],Ei[4],Ei[5],Ei[6],Ei[7],Be,Ve,ot,at,.6,Ht)&&(Bo=Tm(Be,Ve,Ht,Ce,E),Bo<Ce&&(Ce=Bo,dt=!0))}ki=Ei[6],Ei=Ei[7];break;default:Pe("Unknown Segment type: "+An)}Jt=ki,ee=Ei,mr&&(mr=Tm(Be,Ve,Ht,Ce,E),mr<Ce&&(Ce=mr,dt=!0)),jn.isClosed&&(ki=Kn,Ei=$n,km(Jt,ee,ki,Ei,Be,Ve,ot,at,Ht)&&(jn=Tm(Be,Ve,Ht,Ce,E),jn<Ce&&(Ce=jn,dt=!0)))}}z=x-a,nt=b-y,ot=Math.sqrt(z*z+nt*nt),ot!==0&&(z/=ot,nt/=ot),E.x-=z*Et,E.y-=nt*Et,Se.free(Ht)}else Pe("Unknown Geometry type: "+ht.type);return dt?(this.transform.Ga(E),!0):!1};function Tm(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 km(a,y,x,b,E,z,nt,ot,at){if(Je.$(a,x)&&Je.$(y,b)||Je.$(E,nt)&&Je.$(z,ot))return!1;var ht=!1,dt=(E-nt)*(y-b)-(z-ot)*(a-x);return dt===0?!1:(at.x=((E*ot-z*nt)*(a-x)-(E-nt)*(a*b-y*x))/dt,at.y=((E*ot-z*nt)*(y-b)-(z-ot)*(a*b-y*x))/dt,(a>x?a-x:x-a)<(y>b?y-b:b-y)?(a=y<b?y:b,y=y<b?b:y,(at.y>a||Je.$(at.y,a))&&(at.y<y||Je.$(at.y,y))&&(ht=!0)):(y=a<x?a:x,a=a<x?x:a,(at.x>y||Je.$(at.x,y))&&(at.x<a||Je.$(at.x,a))&&(ht=!0)),ht)}ne.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=Se.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)))),Se.free(z),E},ne.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=Vi.alloc();x.set(y),x.Vj();var b=a.left,E=a.right,z=a.top;a=a.bottom;var nt=Se.alloc();if(nt.h(b,z),x.Ga(nt),this.gh(nt,!0)||(nt.h(E,z),x.Ga(nt),this.gh(nt,!0))||(nt.h(b,a),x.Ga(nt),this.gh(nt,!0))||(nt.h(E,a),x.Ga(nt),this.gh(nt,!0)))return Se.free(nt),!0;var ot=Se.alloc(),at=Se.alloc();return x.set(y),x.bv(this.transform),x.Vj(),ot.x=E,ot.y=z,ot.transform(x),nt.x=b,nt.y=z,nt.transform(x),y=!1,kc(this,nt,ot,at)?y=!0:(nt.x=E,nt.y=a,nt.transform(x),kc(this,nt,ot,at)?y=!0:(ot.x=b,ot.y=a,ot.transform(x),kc(this,nt,ot,at)?y=!0:(nt.x=b,nt.y=z,nt.transform(x),kc(this,nt,ot,at)&&(y=!0)))),Se.free(nt),Vi.free(x),Se.free(ot),Se.free(at),y};function kc(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)}ne.tx=function(a,y,x){function b(Ce,ve){for(var Ae=Ce.length,Ie=0;Ie<Ae;Ie+=2)if(ve.zd(Ce[Ie],Ce[Ie+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 nt=y.bounds,ot=nt.x,at=nt.y,ht=nt.x+nt.width;if(nt=nt.y+nt.height,ar(a.x,a.y,ot,at)<=E&&ar(a.x,a.y,ht,at)<=E&&ar(a.x,a.y,ot,nt)<=E&&ar(a.x,a.y,ht,nt)<=E)return!0}if(ot=y.startX,at=y.startY,ht=y.endX,nt=y.endY,y.type===Un.j){if(x=(ot-ht)*(a.x-ht)+(at-nt)*(a.y-nt),lr(a.x,a.y,ot,at,ht,nt)<=(0<=(ht-ot)*(a.x-ot)+(nt-at)*(a.y-at)&&0<=x?E:z))return!0}else{if(y.type===Un.u)return y=!1,x&&(y=lr(a.x,a.y,ot,at,ot,nt)<=E||lr(a.x,a.y,ot,at,ht,at)<=E||lr(a.x,a.y,ht,at,ht,nt)<=E||lr(a.x,a.y,ot,nt,ht,nt)<=E),y;if(y.type===Un.F){y=a.x-(ot+ht)/2,z=a.y-(at+nt)/2;var dt=Math.abs(ht-ot)/2,Et=Math.abs(nt-at)/2;if(dt===0||Et===0)return lr(a.x,a.y,ot,at,ht,nt)<=E;if(x){if(a=Je.$y(dt,Et,y,z),a*a<=E)return!0}else return!(ar(y,z,-dt,0)>=E||ar(y,z,0,-Et)>=E||ar(y,z,0,Et)>=E||ar(y,z,dt,0)>=E)}else if(y.type===Un.o){if(ht=y.bounds,z=ht.x,ot=ht.y,at=ht.x+ht.width,ht=ht.y+ht.height,a.x>at&&a.x<z&&a.y>ht&&a.y<ot&&lr(a.x,a.y,z,ot,z,ht)>E&&lr(a.x,a.y,z,ot,at,ot)>E&&lr(a.x,a.y,at,ht,z,ht)>E&&lr(a.x,a.y,at,ht,at,ot)>E)return!1;if(z=Math.sqrt(E),x){if(this.fill===null?yh(y,a.x,a.y,z):ou(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(z=x.s[y],nt=z.startX,dt=z.startY,a.zd(nt,dt)>E)return!1;for(ot=z.segments.s,at=ot.length,ht=0;ht<at;ht++)switch(Et=ot[ht],Et.type){case Do:case jr:if(nt=Et.endX,dt=Et.endY,a.zd(nt,dt)>E)return!1;break;case $o:var Ht=sn();if(Je.Qe(nt,dt,Et.point1X,Et.point1Y,Et.point2X,Et.point2Y,Et.endX,Et.endY,.8,Ht),nt=b(Ht,a),xn(Ht),nt||(nt=Et.endX,dt=Et.endY,a.zd(nt,dt)>E))return!1;break;case da:if(Ht=sn(),Je.ep(nt,dt,Et.point1X,Et.point1Y,Et.endX,Et.endY,.8,Ht),nt=b(Ht,a),xn(Ht),nt||(nt=Et.endX,dt=Et.endY,a.zd(nt,dt)>E))return!1;break;case yo:case Ca:Ht=Et.type===yo?na(Et,z):Ha(Et,z,nt,dt);var Jt=Ht.length;if(Jt===0){if(nt=Et.type===yo?Et.centerX:Et.endX,dt=Et.type===yo?Et.centerY:Et.endY,a.zd(nt,dt)>E)return!1;break}Et=null;for(var ee=sn(),se=0;se<Jt;se++)if(Et=Ht[se],ee.length=0,Je.Qe(Et[0],Et[1],Et[2],Et[3],Et[4],Et[5],Et[6],Et[7],.8,ee),b(ee,a))return xn(ee),!1;xn(ee),Et!==null&&(nt=Et[6],dt=Et[7]);break;default:Pe("Unknown Segment type: "+Et.type)}}return!0}}}return!1},ne.qc=function(){this.ua=null},ne.kq=function(){return this.ig};function v1(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=Qg,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=Ko):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new si(1-Ko.x,Ko.y)))}Ri.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var b=Zl[a.toArrow];else a.fromArrow!=="None"?b=Zl[a.fromArrow]:(b=Je.Ze[a.figure],typeof b=="string"&&(b=Je.Ze[b]),b===void 0&&Pe("Unknown Shape.figure: "+a.figure),b=b(a,y,x),b.Sk=y,b.Rk=x);if(b===null){var E=Je.Ze.Rectangle;typeof E=="function"&&(b=E(a,y,x))}return b};function y1(a){var y=Zl[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=Zl[x],y===void 0){var b=null,E;for(E in Je.um)if(E.toLowerCase()===x){b=E;break}if(b!==null)return a=Un.parse(Je.um[b],!1),Zl[b]=a,x!==b&&(Zl[x]=b),b}}return typeof y=="string"?y:y instanceof Un?a:null}we.Object.defineProperties(Ri.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),qo(this)&&(a=this.part,a!==null&&Hr(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=Un.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Se.allocAt(-y.x,-y.y),Se.free(a)}},isGeometryPositioned:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.v(),this.g("isGeometryPositioned",y,a))}},fill:{get:function(){return this.Ui},set:function(a){var y=this.Ui;y!==a&&(a!==null&&md(a,"Shape.fill"),a instanceof br&&a.freeze(),this.Ui=a,this.N(),this.g("fill",y,a))}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&md(a,"Shape.stroke"),a instanceof br&&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 pn(a,"value >= 0",Ri,"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"?pn(a,'"butt", "round", or "square"',Ri,"strokeCap"):(Tc(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"?pn(a,'"miter", "bevel", or "round"',Ri,"strokeJoin"):(Tc(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){Tc(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)||Pe("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&&(Tc(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=Je.Ze[a];typeof x=="function"?x=a:(x=Je.Ze[a.toLowerCase()])||Pe("Unknown Shape.figure: "+a),y!==x&&(a=this.part,a!==null&&(a.ag=NaN),this.an=x,this.Rd=null,this.qc(),this.v(),this.g("figure",y,x))}}},toArrow:{get:function(){return this.Ua!==null?this.Ua.V:"None"},set:function(a){var y=this.toArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=y1(a);x===null?Pe("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Rh),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),v1(this),this.g("toArrow",y,x))}}},fromArrow:{get:function(){return this.Ua!==null?this.Ua.j:"None"},set:function(a){var y=this.fromArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=y1(a);x===null?Pe("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new Rh),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),v1(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:Cr},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),Tc(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:Cr},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),Tc(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&&(Tc(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:Ii},set:function(a){var y=this.geometryStretch;y!==a&&(Tc(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 Xl),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&Al(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 Xl),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 Xl),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 Xl),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),Ri.prototype.intersectsRect=Ri.prototype.Yc,Ri.prototype.containedInRect=Ri.prototype.fh,Ri.prototype.getNearestIntersectionPoint=Ri.prototype.rs,Ri.prototype.getDocumentBounds=Ri.prototype.mi,Ri.prototype.getDocumentPoint=Ri.prototype.ga;var Zl=new hi,Lv=new hi;Ri.className="Shape",Ri.getFigureGenerators=function(){var a=new qn,y;for(y in Je.Ze)y!==y.toLowerCase()&&a.add(y,Je.Ze[y]);return a.freeze(),a},Ri.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=Je.Ze;b[a]=y,b[x]=a},Ri.getArrowheadGeometries=function(){var a=new qn;for(b in Je.um)if(Zl[b]===void 0){var y=Un.parse(Je.um[b],!1);Zl[b]=y,y=b.toLowerCase(),y!==b&&(Zl[y]=b)}for(var x in Zl)if(x!==x.toLowerCase()){var b=Zl[x];b instanceof Un&&a.add(x,b)}return a.freeze(),a},Ri.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=Un.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||Pe("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var b=Zl;b[a]=x,b[y]=a};function Av(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=Ii,this.gg=this.fg=Cr}Av.prototype.copy=function(){var a=new Av;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 Ir(a,y){return Xe.call(this),Fm||(zs=qr?new Va(null).context:null,Fm=!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}Qe(Ir,Xe),Ir.prototype.cloneProtected=function(a){Xe.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 Nl(a){a.da===null?a.da=new Dv:a.da.nc&&(a.da=a.da.copy())}ne=Ir.prototype,ne.th=function(){Xe.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function S1(a,y){a.l=y.l|6144,a.pb=y.opacity,a.Ma=y.background,a.areaBackground=y.areaBackground,a.jd=y.desiredSize.J(),a.minSize=y.minSize.J(),a.maxSize=y.maxSize.J(),y.Lb!==null?a.Lb=y.Lb.copy():a.Lb=null,a.Ca=y.scale,a.Kb=y.angle,a.stretch=y.stretch,a.Kg=y.margin.J(),a.Jb=y.alignment.J(),a.sk=y.alignmentFocus.J(),a.segmentFraction=y.segmentFraction,a.segmentOffset=y.segmentOffset.J(),a.segmentOrientation=y.segmentOrientation,y.tb!==null&&(a.tb=y.tb.copy()),a.shadowVisible=y.shadowVisible,a.ec=y.ec,a.xc=y.xc,a.Ae=y.Ae,a.fa!==null&&(a.fa=y.fa.copy()),y.da!==null&&(a.da=y.da.nc?y.da:y.da.copy()),a.Ih=y.Ih}ne.qb=function(a){a.classType===Ir?this.wrap=a:Xe.prototype.qb.call(this,a)},ne.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},ne.v=function(){Xe.prototype.v.call(this)},ne.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,nt=Kg(this),ot=a.textAlign=this.textAlign,at=y.tn;ot==="start"?ot=at?"right":"left":ot==="end"&&(ot=at?"left":"right"),at=this.isUnderline;var ht=this.isStrikethrough;$r(this,a,this.xc,!0,!1,x,b),(at||ht)&&$r(this,a,this.xc,!1,!1,x,b),b=0,x=!1;var dt=this.oe,Et=dt.dx-(nt*dt.m21+dt.dx);dt=dt.dy-(nt*dt.m22+dt.dy);var Ht=y.scale;switch(8>(Et*Et+dt*dt)*Ht*Ht&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof oa&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,Et=this.spacingBelow,this.flip){case or:a.translate(E,0),a.scale(-1,1);break;case Ui:a.translate(0,z),a.scale(1,-1);break;case Mr:a.translate(E,z),a.scale(-1,-1)}if(a.yc(),dt=this.Gc,Ht=(y+nt+Et)*dt,z>Ht&&(b=this.verticalAlignment,b=b.y*z-b.y*Ht+b.offsetY),dt===1&&this.ze!==null)Et=this.Cb,Et>E&&(Et=E),this.Oj(this.ze,a,0,b+y,E,nt,Et,x,ot,at,ht);else if(this.Qc!==null&&this.Qb!==null)for(Ht=0;Ht<dt;Ht++){var Jt=this.Qc[Ht];Jt>E&&(Jt=E),b+=y,this.Oj(this.Qb[Ht],a,0,b,E,nt,Jt,x,ot,at,ht),b+=nt+Et}switch(this.flip){case or:a.scale(-1,1),a.translate(-E,0);break;case Ui:a.scale(1,-1),a.translate(0,-z);break;case Mr:a.scale(-1,-1),a.translate(-E,-z)}}},ne.Oj=function(a,y,x,b,E,z,nt,ot,at,ht,dt){var Et=0;if(ot)at==="left"?Et=0:at==="right"?Et=E-nt:at==="center"&&(Et=(E-nt)/2),y.fillRect(x+Et,b+.25*z,nt,1);else{if(at==="left"?Et=0:at==="right"?Et=E:at==="center"&&(Et=E/2),E=Nm!==null?Nm(this,z):.75*z,y.fillText(a,x+Et,b+E),a=z/20|0,a===0&&(a=1),at==="right"?Et-=nt:at==="center"&&(Et-=nt/2),ht){ot=Om!==null?Om(this,z):.8*z,at=x+Et,ht=b+ot,E=x+Et+nt,ot=b+ot;var Ht=a;y.beginPath(),y.lineWidth=Ht,y.moveTo(at,ht),y.lineTo(E,ot),y.stroke(),y.Se(),y instanceof oa&&y.ad.classList.add("gojs-td")}dt&&(dt=b+z-z/2.2|0,a%2!==0&&(dt+=.5),b=x+Et,z=dt,x=x+Et+nt,nt=dt,Et=a,y.beginPath(),y.lineWidth=Et,y.moveTo(b,z),y.lineTo(x,nt),y.stroke(),y.Se(),y instanceof oa&&y.ad.classList.add("gojs-td"))}},ne.kk=function(a,y,x){if(!Xe.prototype.kk.call(this,a,y,x))return!1;if($r(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;x<y.length;x++)qy(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,qy(a,y,!0);return!0},ne.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:Xe.prototype.nk.call(this,a)},ne.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)}},ne.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;zs!==null&&L1!==z&&(L1=zs.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var nt;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 ot=nt=0,at=!1;!at;){var ht=z.indexOf(`
|
|
|
`,ot);ht===-1&&(ht=z.length,at=!0),ot=z.substr(ot,ht-ot),this.formatting===Vg&&(ot=ot.trim()),nt=Math.max(nt,rl(ot)),ot=ht+1}z=nt}else nt=z.indexOf(`
|
|
|
`,0),0<=nt&&(z=z.substr(0,nt)),z=rl(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)),nt=w1(this,z),isNaN(this.desiredSize.height)?nt=Math.min(nt,y/this.scale):nt=this.desiredSize.height,at=nt,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===Im&&(y=this.Ae,y=this.overflow===Im?x1(y):0,ht=this.spacingAbove+this.spacingBelow,ht=Math.max(0,Kg(this)+ht),at=Math.min(this.maxLines-1,Math.max(Math.floor(at/ht+.01)-1,0)),!(at+1>=this.Qb.length))){for(this.l|=16777216,ht=this.Qb[at],y=Math.max(1,a-y);rl(ht)>y&&1<ht.length;)ht=ht.substr(0,ht.length-1);ht+=Zg,y=rl(ht),this.Qb[at]=ht,this.Qb=this.Qb.slice(0,at+1),this.Qc[at]=y,this.Qc=this.Qc.slice(0,at+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===P1||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),nt=Math.max(b,nt),so(this.dc,z,nt),this.Ge(0,0,z,nt),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},ne.eh=function(a,y,x,b){fs(this,a,y,x,b)};function Gg(a,y,x){a.ze===null?(a.ze=y,a.Cb=x):((a.Qb===null||a.Qc===null)&&(a.Qb=[],a.Qc=[],a.Qb.push(a.ze),a.Qc.push(a.Cb)),a.Qb.push(y),a.Qc.push(x),a.Qb.length>a.maxLines&&(a.l|=16777216))}function Mv(a,y,x,b){var E=a.formatting===Vg;E&&(y=y.trim());var z=0,nt=a.Ae,ot=a.spacingAbove+a.spacingBelow;ot=Math.max(0,Kg(a)+ot);var at=a.overflow===Im?x1(nt):0;if(a.Gc>=a.maxLines)b!==null&&b.h(0,ot);else if(nt=y,a.wrap===Tv){a.Le=1;var ht=rl(y);if(at===0||ht<=x)a.Cb=Math.max(a.Cb,ht),Gg(a,y,a.Cb),b!==null&&b.h(ht,ot);else{for(z=wf(a,nt),nt=nt.substr(z.length),y=wf(a,nt),ht=rl(z+y);0<y.length&&ht<=x;)z+=y,nt=nt.substr(y.length),y=wf(a,nt),ht=z+y,E&&(ht=ht.trim()),ht=rl(ht);for(E&&(y=y.trim()),z+=y,x=Math.max(1,x-at);rl(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=Zg;var dt=rl(z);a.Cb=dt,Gg(a,z,dt),b!==null&&b.h(dt,ot)}}else{for(at=0,nt.length===0&&(at=1,Gg(a,nt,0));0<nt.length;){for(y=wf(a,nt),nt=nt.substr(y.length);rl(y)>x;){var Et=1;for(ht=rl(y.substr(0,Et)),dt=0;ht<=x;)Et++,dt=ht,ht=rl(y.substr(0,Et));if(Et===1){var Ht=ht;z=Math.max(z,ht)}else Ht=dt,z=Math.max(z,dt);if(Et--,1>Et&&(Et=1),Gg(a,y.substr(0,Et),Ht),at++,y=y.substr(Et),a.Gc+at>a.maxLines)break}for(dt=wf(a,nt),ht=rl(y+dt);0<dt.length&&ht<=x;)y+=dt,nt=nt.substr(dt.length),dt=wf(a,nt),ht=y+dt,E&&(ht=ht.trim()),ht=rl(ht);if(E&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),dt.length===0?(Et=ht,z=Math.max(z,ht)):(Et=dt=rl(y),z=Math.max(z,dt)),Gg(a,y,Et),at++,a.Gc+at>a.maxLines))break}a.Le=Math.min(a.maxLines,at),a.Cb=Math.max(a.Cb,z),b!==null&&b.h(a.Cb,ot*a.Le)}}function wf(a,y){if(a.wrap===b1)return y.substr(0,1);for(var x=y.length,b=0,E=xx;b<x&&!E.test(y.charAt(b));)b++;for(a.formatting===C1&&(x=Math.min(x,b+1));b<x&&E.test(y.charAt(b));)b++;return b>=y.length?y:y.substr(0,b)}function rl(a){return zs===null?8*a.length:zs.measureText(a).width}function Kg(a){if(a.df!==null)return a.df;var y=a.Ae;if(zs===null){var x=16;return a.df=x}return Ov[y]!==void 0&&5e3>E1?x=Ov[y]:(x=1.3*zs.measureText("M").width,Ov[y]=x,E1++),a.df=x}function x1(a){if(zs===null)return 6;if(Dm[a]!==void 0&&5e3>Iv)var y=Dm[a];else y=zs.measureText(Zg).width,Dm[a]=y,Iv++;return y}function w1(a,y){var x=a.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),b=a.spacingAbove+a.spacingBelow;if(b=Math.max(0,Kg(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,nt,ot=!1;!ot;){if(nt=x.indexOf(`
|
|
|
`,z),nt===-1&&(nt=x.length,ot=!0),z<=nt){if(z=x.substr(z,nt-z),a.wrap!==Tv){a.Le=0;var at=Wn.alloc();Mv(a,z,y,at),E+=at.height,Wn.free(at),a.Gc+=a.Le}else Mv(a,z,y,null),E+=b,a.Gc++;a.Gc===a.maxLines&&(ot=!0)}z=nt+1}return a.Lq=E}we.Object.defineProperties(Ir.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"||(Nl(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:kn},set:function(a){var y=this.flip;y!==a&&(Nl(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Ss},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),Nl(this),this.da.Yr=a,Es(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=Wn.alloc();Mv(this,this.ec,999999,a);var y=a.width;Wn.free(a),a=w1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),so(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&&(Nl(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Nv},set:function(a){var y=this.overflow;y!==a&&(Nl(this),this.da.$q=a,this.v(),this.g("overflow",y,a))}},isOverflowed:{get:function(){return(this.l&16777216)!==0}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&md(a,"TextBlock.stroke"),a instanceof br&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return Kg(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&&(Nl(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&&(Nl(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 Xl),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 Xl),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 Xl),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 Xl),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 Xl),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&&(Nl(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&&(Nl(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&&(Nl(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&&(Nl(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:Vg},set:function(a){var y=this.formatting;y!==a&&(Nl(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&&pn(a,"> 0",Ir,"maxLines"),Nl(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 Nm=null,Om=null,Tv=new dn(Ir,"None",0),P1=new dn(Ir,"WrapFit",1),kv=new dn(Ir,"WrapDesiredSize",2),b1=new dn(Ir,"WrapBreakAll",3),Nv=new dn(Ir,"OverflowClip",0),Im=new dn(Ir,"OverflowEllipsis",1),Vg=new dn(Ir,"FormatTrim",0),C1=new dn(Ir,"FormatNone",0),xx=/[ \u200b\u00ad]/,Ov=new hi,E1=0,Dm=new hi,Iv=0,Zg="...",L1="",zs=null,Fm=!1;Ir.className="TextBlock";function Dv(){this.nc=!1,this.Hd=null,this.Xf=kn,this.gq=Vg,this.Jq=1/0,this.$q=Nv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Ss,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},Ir.getEllipsis=function(){return Zg},Ir.setEllipsis=function(a){Zg=a,Dm=new hi,Iv=0},Ir.getBaseline=function(){return Nm},Ir.setBaseline=function(a){Nm=a},Ir.getUnderline=function(){return Om},Ir.setUnderline=function(a){Om=a},Ir.isValidFont=function(a){if(Fm||(zs=qr?new Va(null).context:null,Fm=!0),zs===null)return!0;var y=zs.font;if(a===y||a==="10px sans-serif")return!0;zs.font="10px sans-serif",zs.font=a;var x=zs.font;if(x!=="10px sans-serif")return zs.font=y,!0;zs.font="19px serif";var b=zs.font;return zs.font=a,x=zs.font,zs.font=y,x!==b},Ir.FormatNone=C1,Ir.FormatTrim=Vg,Ir.None=Tv,Ir.OverflowClip=Nv,Ir.OverflowEllipsis=Im,Ir.WrapBreakAll=b1,Ir.WrapDesiredSize=kv,Ir.WrapFit=P1;function Xl(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Xl.prototype.copy=function(){var a=new Xl;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Xl.className="GradElementSettings";function Hs(a,y){Xe.call(this),this.Eg=null,this.qo="",this.Xg=dr,this.Nk=Dn,this.Zg=this.Hd=null,this.Mk=ur,this.Xf=kn,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 Pf;Qe(Hs,Xe),Hs.prototype.cloneProtected=function(a){Xe.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},Hs.prototype.qb=function(a){a===kn||a===ni||a===tr?this.imageStretch=a:Xe.prototype.qb.call(this,a)},Hs.prototype.toString=function(){return"Picture("+this.source+")#"+_i(this)};function bf(a){a===void 0&&(a=""),a!==""?Pf[a]&&(delete Pf[a],Bm--):(Pf=new hi,Bm=0)}function A1(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")||"",nt=E.Og.I(z);if(nt!==null)for(var ot=nt.length,at=0;at<ot;at++)z=nt[at],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()||(xo(a,!1),a.v())},y.Yp=function(x){y.ln=x;var b=y.Bg.copy();if(b!=null){for(b=b.iterator;b.next();){var E=b.value,z=y.getAttribute("src")||"",nt=E.Og.I(z);if(nt!==null){E=nt.length,z=sn();for(var ot=0;ot<E;ot++)z.push(nt[ot]);if(y.hn)for(ot=0;ot<E;ot++)nt=z[ot],nt.Hd!==null&&nt.Hd(nt,x);xn(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}Hs.prototype.hA=function(){if(this.source!==""){bf(this.source);var a=this.source;this.source="",this.source=a}},Hs.prototype.redraw=function(){this.N(),this.Uc=!0},Hs.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 Ac)){var E=a instanceof oa;b=this.naturalBounds;var z=0,nt=0,ot=this.qn,at=ot?+x.width:x.naturalWidth;if(ot=ot?+x.height:x.naturalHeight,at===void 0&&x.videoWidth&&(at=x.videoWidth),ot===void 0&&x.videoHeight&&(ot=x.videoHeight),at=at||b.width,ot=ot||b.height,at!==0&&ot!==0){var ht=at,dt=ot;this.sourceRect.w()&&(z=this.Xg.x,nt=this.Xg.y,at=this.Xg.width,ot=this.Xg.height);var Et=at,Ht=ot,Jt=this.Nk,ee=this.Mk;switch(Jt){case kn:if(this.sourceRect.w())break;Et>=b.width&&(z=z+ee.offsetX+(Et*ee.x-b.width*ee.x)),Ht>=b.height&&(nt=nt+ee.offsetY+(Ht*ee.y-b.height*ee.y)),at=Math.min(b.width,Et),ot=Math.min(b.height,Ht);break;case Dn:Et=b.width,Ht=b.height;break;case ni:case tr:Jt===ni?(Jt=Math.min(b.height/Ht,b.width/Et),Et*=Jt,Ht*=Jt):Jt===tr&&(Jt=Math.max(b.height/Ht,b.width/Et),Et*=Jt,Ht*=Jt,Et>=b.width&&(z=(z+ee.offsetX+(Et*ee.x-b.width*ee.x)/Et)*at),Ht>=b.height&&(nt=(nt+ee.offsetY+(Ht*ee.y-b.height*ee.y)/Ht)*ot),at*=1/(Et/b.width),ot*=1/(Ht/b.height),Et=b.width,Ht=b.height)}Jt=this.Df()*y.scale;var se=Et*Jt*Ht*Jt,Ce=at*ot/se,ve=x.__goCache;Jt=null;var Ae=wx;if(!E){if(x.sq&&ve!==void 0&&4<se&&Ce>Ae*Ae)for(ve.gi===null&&(T1(ve,4,ht,dt,x),T1(ve,16,ht,dt,x)),E=ve.gi,ht=E.length,dt=0;dt<ht&&E[dt].ratio*E[dt].ratio<Ce;dt++)Jt=E[dt];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{E=new Va(null).context;try{E.drawImage(this.Eg,0,0)}catch(Ie){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(Ie){this.vl=!0}}if(this.vl)return}}switch(E=Et<b.width?ee.offsetX+(b.width*ee.x-Et*ee.x):0,ee=Ht<b.height?ee.offsetY+(b.height*ee.y-Ht*ee.y):0,this.flip){case or:a.translate(Math.min(b.width,Et),0),a.scale(-1,1);break;case Ui:a.translate(0,Math.min(b.height,Ht)),a.scale(1,-1);break;case Mr:a.translate(Math.min(b.width,Et),Math.min(b.height,Ht)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&ve!==void 0&&Jt!==null&&Jt.ratio!==1){a.save(),y=Jt.ratio;try{a.drawImage(Jt.source,z/y,nt/y,Math.min(Jt.source.width,at/y),Math.min(Jt.source.height,ot/y),E,ee,Math.min(b.width,Et),Math.min(b.height,Ht)),a instanceof oa&&(this.bt=[z/y,nt/y,Math.min(Jt.source.width,at/y),Math.min(Jt.source.height,ot/y),E,ee,Math.min(b.width,Et),Math.min(b.height,Ht)])}catch(Ie){this.en=!1}a.restore()}else try{a.drawImage(x,z,nt,at,ot,E,ee,Math.min(b.width,Et),Math.min(b.height,Ht)),a instanceof oa&&(this.bt=[z,nt,at,ot,E,ee,Math.min(b.width,Et),Math.min(b.height,Ht)])}catch(Ie){this.en=!1}switch(this.flip){case or:a.scale(-1,1),a.translate(-Math.min(b.width,Et),0);break;case Ui:a.scale(1,-1),a.translate(0,-Math.min(b.height,Ht));break;case Mr:a.scale(-1,-1),a.translate(-Math.min(b.width,Et),-Math.min(b.height,Ht))}}}}},Hs.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,z=js(this,!0),nt=this.Eg,ot=this.qn,at=0,ht=0;(ot||!this.al&&nt&&nt.complete)&&(this.al=!0),nt===null?(isFinite(E.width)||(a=0),isFinite(E.height)||(y=0)):(at=ot?+nt.width:nt.naturalWidth,ht=ot?+nt.height:nt.naturalHeight),isFinite(E.width)||z===Dn||z===ai?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:nt!==null&&(a=at)),x=0):nt!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:at),isFinite(E.height)||z===Dn||z===Si?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:nt!==null&&(y=ht)),b=0):nt!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:ht),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),nt===null||nt.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),so(this.dc,a,y),this.Ge(0,0,a,y)},Hs.prototype.eh=function(a,y,x,b){fs(this,a,y,x,b)},we.Object.defineProperties(Hs.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||Pe("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var b=this.diagram;b!==null&&Eg(b,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new En),b!==null&&x&&Dh(b,this),a!==null&&(this.qn||a.complete===!0?(a.hn&&(a.ln instanceof Event&&this.Hd!==null?this.Hd(this,a.ln):a.sq===!0&&!a.ln&&this.Zg!==null&&a.eu&&this.Zg(this,a.eu)),a.sq=!0,this.desiredSize.w()||(xo(this,!1),this.v())):x&&A1(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=Pf;if(qr){var b=null;if(x[a]!==void 0)b=x[a];else if(a!==""){30<Bm&&(bf(),x=Pf),b=Hn("img"),b.hn=!0,A1(this,b);var E=this.rl;E!==null&&(b.crossOrigin=E(this)),b.src=a,x[a]=b,Bm++}this.element=b,b!==null&&b.__goCache===void 0&&(b.__goCache=new M1),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}}}),Hs.prototype.redraw=Hs.prototype.redraw,Hs.prototype.reloadSource=Hs.prototype.hA;var Bm=0,wx=4;Hs.className="Picture",Pf=new hi,Hs.clearCache=bf;function M1(){this.gi=null}function T1(a,y,x,b,E){a.gi===null&&(a.gi=[]);var z=new Va(null),nt=z.context,ot=1/y;z.width=x/y,z.height=b/y,z.width!==0&&z.height!==0&&(y=new k1(z.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],E=x.source,x=x.ratio),nt.setTransform(ot*x,0,0,ot*x,0,0),nt.yc(),nt.drawImage(E,0,0),a.gi.push(y))}M1.className="PictureCacheArray";function k1(a,y){this.source=a,this.ratio=y}k1.className="PictureCacheInstance";function Cf(){this.os=new Un,this.mc=null}Cf.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Un,this.mc=null};function Ef(a,y,x,b,E,z){a.mc=new Io,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 Px(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}Cf.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var b=new fr(Do);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)},Cf.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var b=new fr(jr);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)};function Xu(a,y,x,b,E,z,nt){var ot;ot===void 0&&(ot=!1);var at=new fr($o);at.point1X=y,at.point1Y=x,at.point2X=b,at.point2Y=E,at.endX=z,at.endY=nt,ot&&at.close(),a.mc.segments.add(at)}function Rm(a,y,x,b,E){var z;z===void 0&&(z=!1);var nt=new fr(da);nt.point1X=y,nt.point1Y=x,nt.endX=b,nt.endY=E,z&&nt.close(),a.mc.segments.add(nt)}Cf.prototype.arcTo=function(a,y,x,b,E,z,nt){z===void 0&&(z=0),nt===void 0&&(nt=!1);var ot=new fr(yo);ot.startAngle=a,ot.sweepAngle=y,ot.centerX=x,ot.centerY=b,ot.radiusX=E,ot.radiusY=z!==0?z:E,nt&&ot.close(),this.mc.segments.add(ot)};function bx(a,y,x,b,E,z,nt,ot){var at;at===void 0&&(at=!1),y=new fr(Ca,nt,ot,y,x,b,E,z),at&&y.close(),a.mc.segments.add(y)}function N1(a){var y=jm;return y!==null?(jm=null,y.reset(a),y):(y=new Cf,y.reset(a),y)}var jm=null;Cf.className="StreamGeometryContext";function us(a,y){var x=a.toLowerCase(),b=Je.Ze;b[a]=y,b[x]=a}us("Rectangle",function(a,y,x){a="r"+y+","+x;var b=Je.Mf[a];return b!==void 0||(b=new Un(Un.u),b.endX=y,b.endY=x,Je.Nf<Je.vm&&(Je.Mf[a]=b,Je.Nf++)),b}),us("Square",function(a,y,x){a="s"+y+","+x;var b=Je.Mf[a];return b!==void 0||(b=new Un(Un.u),b.endX=y,b.endY=x,b.defaultStretch=ni,Je.Nf<Je.vm&&(Je.Mf[a]=b,Je.Nf++)),b}),us("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=Je.Mf[b];if(E!==void 0)return E;var z=a*Je.wg;return E=new Un().add(new Io(a,0,!0).add(new fr(jr,y-a,0)).add(new fr($o,y,a,y-z,0,y,z)).add(new fr(jr,y,x-a)).add(new fr($o,y-a,x,y,x-z,y-z,x)).add(new fr(jr,a,x)).add(new fr($o,0,x-a,z,x,0,x-z)).add(new fr(jr,0,a)).add(new fr($o,a,0,0,z,z,0).close())),1<z&&(E.spot1=new si(0,0,z,z),E.spot2=new si(1,1,-z,-z)),Je.Nf<Je.vm&&(Je.Mf[b]=E,Je.Nf++),E}),us("Border","RoundedRectangle"),us("Ellipse",function(a,y,x){a="e"+y+","+x;var b=Je.Mf[a];return b!==void 0||(b=new Un(Un.F),b.endX=y,b.endY=x,b.spot1=bl,b.spot2=za,Je.Nf<Je.vm&&(Je.Mf[a]=b,Je.Nf++)),b}),us("Circle",function(a,y,x){a="c"+y+","+x;var b=Je.Mf[a];return b!==void 0||(b=new Un(Un.F),b.endX=y,b.endY=x,b.spot1=bl,b.spot2=za,b.defaultStretch=ni,Je.Nf<Je.vm&&(Je.Mf[a]=b,Je.Nf++)),b}),us("TriangleRight",function(a,y,x){return new Un().add(new Io(0,0).add(new fr(jr,y,.5*x)).add(new fr(jr,0,x).close())).pm(0,.25,.5,.75)}),us("TriangleDown",function(a,y,x){return new Un().add(new Io(0,0).add(new fr(jr,y,0)).add(new fr(jr,.5*y,x).close())).pm(.25,0,.75,.5)}),us("TriangleLeft",function(a,y,x){return new Un().add(new Io(y,x).add(new fr(jr,0,.5*x)).add(new fr(jr,y,0).close())).pm(.5,.25,1,.75)}),us("TriangleUp",function(a,y,x){return new Un().add(new Io(y,x).add(new fr(jr,0,x)).add(new fr(jr,.5*y,0).close())).pm(.25,.5,.75,1)}),us("Triangle","TriangleUp"),us("Diamond",function(a,y,x){return new Un().add(new Io(.5*y,0).add(new fr(jr,0,.5*x)).add(new fr(jr,.5*y,x)).add(new fr(jr,y,.5*x).close())).pm(.25,.25,.75,.75)}),us("LineH",function(a,y,x){return a=new Un(Un.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),us("LineV",function(a,y,x){return a=new Un(Un.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),us("None","Rectangle"),us("BarH","Rectangle"),us("BarV","Rectangle"),us("MinusLine","LineH"),us("PlusLine",function(a,y,x){return new Un().add(new Io(0,x/2,!1).add(new fr(jr,y,x/2)).add(new fr(Do,y/2,0)).add(new fr(jr,y/2,x)))}),us("XLine",function(a,y,x){return new Un().add(new Io(0,x,!1).add(new fr(jr,y,0)).add(new fr(Do,0,0)).add(new fr(jr,y,x)))}),us("LineRight",function(a,y,x){return new Un().add(new Io(.25*y,0,!1).add(new fr(jr,.75*y,.5*x)).add(new fr(jr,.25*y,x)))}),us("LineDown",function(a,y,x){return new Un().add(new Io(0,.25*x,!1).add(new fr(jr,.5*y,.75*x)).add(new fr(jr,y,.25*x)))}),us("LineLeft",function(a,y,x){return new Un().add(new Io(.75*y,0,!1).add(new fr(jr,.25*y,.5*x)).add(new fr(jr,.75*y,x)))}),us("LineUp",function(a,y,x){return new Un().add(new Io(0,.75*x,!1).add(new fr(jr,.5*y,.25*x)).add(new fr(jr,y,.75*x)))}),Je.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 Fv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=ro,this.ir=null,this.jr="",this.lr=Cr,this.Gq="",this.Hq=No,this.Pq=yr,this.Kq=Ki,this.Up=null,this.Cq=127,this.zr=rr,this.yr="gray",this.Vg=4}Fv.prototype.copy=function(){var a=new Fv;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 di(a,y){a===void 0||a instanceof Lo||typeof a=="string"?Fn.call(this,a):(Fn.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 Se(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new yn,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}Qe(di,Fn),di.prototype.cloneProtected=function(a){Fn.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},ne=di.prototype,ne.Af=function(a){Fn.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},ne.toString=function(){var a=gn(this.constructor)+"#"+_i(this);return this.data!==null&&(a+="("+Ln(this.data)+")"),a};function Ws(a){a.P===null?a.P=new Fv:a.P.nc&&(a.P=a.P.copy())}ne.th=function(){Fn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},ne.gk=function(a,y,x,b,E,z,nt){var ot=this.diagram;ot!==null&&(a===ho&&y==="elements"?E instanceof Fn?Mc(E,function(at){ly(ot.partManager,at),xc(ot,at)}):Dh(ot,E):a===Eo&&y==="elements"&&(E instanceof Fn?Mc(E,function(at){uy(ot.partManager,at,ot)}):Eg(ot,E)),ot.cb(a,y,x,b,E,z,nt))},ne.La=function(a){if(Fn.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 Fn&&Mc(E,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},di.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},di.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},di.prototype.bh=function(a,y){if(y!==null){var x=null,b=this.Qf;if(b!==null&&(x=b.I(a)),x!==y){if(x!==null){var E=x.diagram;E!==null&&E.remove(x)}b===null&&(this.Qf=b=new qn),y.Tf!==a&&(y.category=a),b.add(a,y),a=this.diagram,a!==null&&(a.add(y),a=y.adornedObject,a!==null&&(a=a.ih(),a!==null&&(y.data=a.data)))}}},di.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)}},di.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=sn();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);xn(y)}},di.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()}t:{if(this.isSelected&&this.selectionAdorned&&(y=this.selectionObject,y!==null&&this.actualBounds.w()&&this.isVisible()&&y.Ed()&&y.actualBounds.w())){if(x=this.Pj("Selection"),x===null){if(x=this.selectionAdornmentTemplate,x===null&&(x=this.ph()?a.linkSelectionAdornmentTemplate:this instanceof Ni?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof cr))break t;Za(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=Fn.Link),x.adornedObject=y)}if(x!==null){x.type===Fn.Link&&x.v(),this.bh("Selection",x);break t}}this.Jf("Selection")}for(Cx(this,a),y=this.adornments;y.next();)y.value.La()}},di.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function Bv(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 zm(a){if(jh(a)===!1){jv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function O1(a){if(a.G|=2097152,jh(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||F1(a,y,x),x=a.Ib;var b=yn.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),yn.free(b),jv(a,!1)}}di.prototype.Ge=function(a,y,x,b){var E=this.uc;E.h(a,y,x,b),this.Lb===null&&(this.Lb=new Vi);var z=this.Lb;z.reset(),this.no(z,a,y,x,b),this.Lb=z,z.ws()||z.pp(E)},di.prototype.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=ur;this.locationSpot.sb()&&(z=this.locationSpot);var nt=Se.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,nt.yi(x.x,x.y,x.width,x.height,z),y.Lb!==null&&y.Lb.Ga(nt),nt.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(nt),nt.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else nt.yi(y,x,b,E,z);a.rotate(this.Kb,nt.x,nt.y),Se.free(nt)}},di.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},di.prototype.moveTo=function(a,y,x){a=Se.allocAt(a,y),this.move(a,x),Se.free(a)},di.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())},di.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())},di.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new qn),y.I(a)!==null)return y.I(a);var x=Fn.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function Yu(a,y,x,b){b===void 0&&(b=new Se),x=x.Mc()?ur: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}di.prototype.mi=function(a){return a===void 0&&(a=new yn),a.assign(this.actualBounds)},di.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function I1(a){var y=Se.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof Ri?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 Nc(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=h1(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 nt=a.shadowBlur;return a=a.shadowOffset,z+=nt,y+=nt,b-=nt/2,E-=nt/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}di.prototype.arrange=function(){if(Ls(this)===!1)O1(this);else{Gl(this,!1);var a=this.Ib,y=yn.alloc();y.assign(a);var x=zh(this);this.eh(0,0,this.uc.width,this.uc.height);var b=this.position;F1(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()||Je.B(y.width,a.width)&&Je.B(y.height,a.height)||0<=this.vw&&this.C(16),yn.free(y),jv(this,!1)}},ne=di.prototype,ne.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var E=yn.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),yn.free(E)}!(this.G&65536)&&a.D(y)||j1(this,b,x),x.N(),!a.w()&&!y.w()||Nr(a,y)||(this instanceof Vn&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},ne.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var b=this.diagram;return b!==null&&D1(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 Se(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),jh(this)===!1&&Ls(this)===!1&&(zm(this),O1(this)),!0};function D1(a,y,x,b,E){y===null||a instanceof cr||(y=y.animationManager,y.zb&&_d(y,a,new Se(b,E),x))}ne.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;jh(this)||Ls(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)}zm(this)},ne.Av=function(){this.G&=-2097153,zm(this)};function F1(a,y,x){var b=I1(a),E=a.diagram,z=x.w(),nt=y.w();z&&nt?a.G&2097152?B1(a,y,x,E,b):R1(a,y,x,E,b):z?B1(a,y,x,E,b):nt&&R1(a,y,x,E,b),a.G|=2097152,Se.free(b),a.Uk()}function B1(a,y,x,b,E){var z=y.x,nt=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 cr||_d(x,a,new Se(z,nt),y),b||y.x===z&&y.y===nt||a.g("position",new Se(z,nt),y.copy()))}function R1(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 j1(a,y,x){zv(a,!1),a instanceof Vn&&Wu(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?zh(a)?(Wr(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}ne.si=function(){return!0},ne.Zc=function(){return!0},ne.ph=function(){return!1},ne.Dd=function(){return!0};function Rv(a,y,x,b){y.constructor===a.constructor||W1||(W1=!0,On('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),On(" Old class: "+gn(a.constructor)+", new class: "+gn(y.constructor)+", part: "+a.toString())),a.Ej();var E=a.data;x=a.layerName;var z=a.isSelected,nt=a.isHighlighted,ot=!0,at=!0,ht=!1;a instanceof Vn&&(ot=a.isTreeLeaf,at=a.isTreeExpanded,ht=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=nt?a.G|524288:a.G&-524289,a instanceof Vn&&(a.U=ot?a.U|4:a.U&-5,a.U=at?a.U|1:a.U&-2,a.U=ht?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)}di.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},di.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},di.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},di.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},di.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},di.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},di.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},di.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},di.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 jh(a){return(a.G&32768)!==0}function jv(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 zh(a){return(a.G&131072)!==0}ne=di.prototype,ne.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function Hm(a,y){a.G=y?a.G|1048576:a.G&-1048577}ne.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},ne.N=function(){var a=this.diagram;a!==null&&!Ls(this)&&!jh(this)&&this.isVisible()&&this.Ib.w()&&a.N(Nc(this,this.Ib))},ne.v=function(){Fn.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof Vn&&this.labeledLink!==null&&Es(this.labeledLink),a.$b(!0))},ne.Vo=function(a){a||(a=this.Ah,a!==null&&Vv(a,this))},ne.Wo=function(a){a||(a=this.Ah,a!==null&&Zv(a,this))},ne.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},ne.oz=function(){return Hv(this,this)};function Hv(a,y){var x=y.containingGroup;return x!==null?1+Hv(a,x):y instanceof Vn&&(y=y.labeledLink,y!==null)?Hv(a,y):0}ne.sz=function(){return z1(this,this)};function z1(a,y){var x=y.containingGroup;return x!==null||y instanceof Vn&&(x=y.labeledLink,x!==null)?z1(a,x):y}ne.Td=function(a){return a instanceof Ni?Wv(this,this,a):!1};function Wv(a,y,x){if(y===x||x===null)return!1;var b=y.containingGroup;return b===null||b!==x&&!Wv(a,b,x)?y instanceof Vn&&(y=y.labeledLink,y!==null)?Wv(a,y,x):!1:!0}ne.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof Ni&&Hm(y,!0),y instanceof Vn){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 Vn&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Ni&&Hm(y,!1),y instanceof Vn&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},di.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof Vn&&this.isLinkLabel)},di.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 Vn&&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 H1(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function Hh(a,y,x,b,E,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof cr)){if(a.add(y),y instanceof Vn){if(x&&y instanceof Ni)for(var nt=y.memberParts;nt.next();)Hh(a,nt.value,x,b,E,z);if(E!==!1)for(nt=y.linksConnected;nt.next();){var ot=nt.value;if(!a.contains(ot)){var at=ot.fromNode,ht=ot.toNode;at=at===null||a.contains(at),ht=ht===null||a.contains(ht),(E?at&&ht:at||ht)&&Hh(a,ot,x,b,E,z)}}if(1<b)for(y=y.Ou();y.next();)Hh(a,y.value,x,b-1,E,z)}else if(y instanceof zn)for(y=y.labelNodes;y.next();)Hh(a,y.value,x,b,E,z)}}we.Object.defineProperties(di.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?Ai:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var a=this.Ig;return a==null?null:a.diagram}},layerName:{get:function(){return this.Jg},set:function(a){var y=this.Jg;if(y!==a){var x=this.diagram;if((x===null||x.Qj(a)!==null&&!x.partManager.addsToTemporaryLayer)&&(this.Jg=a,x!==null&&x.Ya(),this.g("layerName",y,a),y=this.layer,y!==null&&y.name!==a&&(x=y.diagram,x!==null&&(a=x.Qj(a),a!==null&&a!==y)))){var b=y.pc(-1,this,!0);if(0<=b&&x.cb(Eo,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(ho,"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&&(Ws(this),this.P.zq=a,this.g("layerChanged",y,a))}},zOrder:{get:function(){return this.Ao},set:function(a){var y=this.Ao;if(y!==a){this.Ao=a;var x=this.layer;x!==null&&qd(x,-1,this),this.g("zOrder",y,a),a=this.diagram,a!==null&&a.N()}}},locationObject:{get:function(){if(this.nf===null){var a=this.locationObjectName;a!==""?(a=this.fb(a),a!==null?this.nf=a:this.nf=this):this instanceof cr?this.type!==Fn.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:yr},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),Ws(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:Ki},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),Ws(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&&(Ws(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:No},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),Ws(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,Ls(this)===!1&&(zm(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)),D1(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 cr)){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 cr?this instanceof cr&&(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&&(Za(x),x=x.copy(),x!==null&&Rv(this,x,y,a))):(z!==null&&z.jm(b,a),x=dS(x.partManager,b,a),x!==null&&(Za(x),x=x.copy(),x===null||x instanceof zn||(b=this.location.copy(),Rv(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){Rv(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&&(Ws(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&&(Ws(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&&(Ws(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 zn?(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&&(Ws(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&&(Ws(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&&(Ws(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:ro},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),Ws(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&&(Ws(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&&(Ws(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:Cr},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),Ws(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&&Pe("Cannot make a Group a member of itself: "+this.toString()),Pe("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?Zv(y,this):this instanceof Ni&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Vv(a,this):this instanceof Ni&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var b=this.data,E=x.model;if(b!==null&&E.Xj()){var 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 Ni){for(x=new En,Hh(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof Vn)for(b=b.linksConnected;b.next();)Lf(b.value)}if(this instanceof Vn){for(x=this.linksConnected;x.next();)Lf(x.value);x=this.labeledLink,x!==null&&Lf(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&qd(y,-1,a))}}else Pe("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&&(Ws(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Vn&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(Ws(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&&(Ws(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:rr},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),Ws(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&&(Ws(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&&(Ws(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),di.prototype.invalidateLayout=di.prototype.C,di.prototype.findCommonContainingGroup=di.prototype.px,di.prototype.isMemberOf=di.prototype.Td,di.prototype.findTopLevelPart=di.prototype.sz,di.prototype.findSubGraphLevel=di.prototype.oz,di.prototype.ensureBounds=di.prototype.Va,di.prototype.getDocumentBounds=di.prototype.mi,di.prototype.findObject=di.prototype.fb,di.prototype.moveTo=di.prototype.moveTo,di.prototype.invalidateAdornments=di.prototype.Wb,di.prototype.clearAdornments=di.prototype.Ej,di.prototype.removeAdornment=di.prototype.Jf,di.prototype.addAdornment=di.prototype.bh,di.prototype.findAdornment=di.prototype.Pj,di.prototype.updateTargetBindings=di.prototype.La;var W1=!1;di.className="Part",di.LayoutNone=0,di.LayoutAdded=1,di.LayoutRemoved=2,di.LayoutShown=4,di.LayoutHidden=8,di.LayoutNodeSized=16,di.LayoutGroupLayout=32,di.LayoutNodeReplaced=64,di.LayoutStandard=127,di.LayoutAll=16777215;function cr(a,y){a===void 0||a instanceof Lo||typeof a=="string"?di.call(this,a):(di.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)}Qe(cr,di),cr.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},cr.prototype.updateRelationshipsFromData=function(){},cr.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof zn&&y instanceof Ri){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 Ri&&(E.ua=a)}}},cr.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Ls(a))},cr.prototype.Zc=function(){return!1},cr.prototype.gk=function(a,y,x,b,E,z,nt){if(a===ho&&y==="elements"){if(E instanceof Ms)this.$a===null&&(this.$a=E);else if(E instanceof Fn){var ot=E.Nl(function(at){return at instanceof Ms});ot instanceof Ms&&this.$a===null&&(this.$a=ot)}}else a===Eo&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Fn&&this.$a.rg(b)&&(this.$a=null));di.prototype.gk.call(this,a,y,x,b,E,z,nt)},cr.prototype.updateAdornments=function(){},cr.prototype.Lj=function(){},we.Object.defineProperties(cr.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}}}),cr.className="Adornment";function Uv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Js,this.er=Gm,this.Kr=this.ij=this.Nq=this.Mq=null}Uv.prototype.copy=function(){var a=new Uv;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 Vn(a,y){a===void 0||a instanceof Lo||typeof a=="string"?di.call(this,a):(di.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new bn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Qe(Vn,di),Vn.prototype.cloneProtected=function(a){di.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},ne=Vn.prototype,ne.Af=function(a){di.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function _u(a){a.Ba===null?a.Ba=new Uv:a.Ba.nc&&(a.Ba=a.Ba.copy())}ne.th=function(){di.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function U1(a,y){y!==null&&(a.af===null&&(a.af=new En),a.af.add(y))}function G1(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}ne.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=G1(this,a,y,x),a!==null&&a.Sl()},ne.gk=function(a,y,x,b,E,z,nt){a===ho&&y==="elements"?this.wc=null:a===Eo&&y==="elements"&&(this.wc=null),di.prototype.gk.call(this,a,y,x,b,E,z,nt)},ne.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(sa(x.fromPort),sa(x.toPort),x.bb())}};function K1(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(sa(x.fromPort),sa(x.toPort),x.bb())}}function sa(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||sa(y.port)}}ne.si=function(){return!0},Vn.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},Vn.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},Vn.prototype.isVisible=function(){if(!di.prototype.isVisible.call(this))return!1;var a=!0,y=Gu,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===Gu){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===So){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(b){return!b.isTreeExpanded}))return!1}else if(y===cf&&(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},Vn.prototype.Zb=function(a){di.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)}},Vn.prototype.qx=function(){var a=new En,y=new En;return V1(this,this,a,y),y.iterator};function V1(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(nt){nt.isTreeLink?(E?nt.fromNode===y:nt.toNode===y)&&V1(a,E?nt.toNode:nt.fromNode,x,b):b.add(nt)})}}Vn.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new ii(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},ne=Vn.prototype,ne.Mo=function(a){a===void 0&&(a=null);var y=new ii(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},ne.Sd=function(a){a===void 0&&(a=null);var y=new ii(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},ne.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 En,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 En,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new gi(x):Ai},ne.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 En,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new gi(x):Ai},ne.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 En,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new gi(x):Ai},ne.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new ii(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},ne.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new ii(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 Wm(a,y,x){sa(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,nt=a.diagram;nt!==null&&(z=nt.aa,nt.aa=!0),E(a,y,x),nt!==null&&(nt.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){sa(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 nt=!0;E!==null&&(nt=E.aa,E.aa=!0),z(a,y,x),E!==null&&(E.aa=nt)}}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)):Xg(y)))}function Xg(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}}}Vn.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},ne=Vn.prototype,ne.Vo=function(a){di.prototype.Vo.call(this,a),a||(Xg(this),a=this.Yk,a!==null&&tS(a,this))},ne.Wo=function(a){di.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},ne.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,di.prototype.Lj.call(this)},ne.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;Z1(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function Z1(a){a.wc===null?a.wc=new qn:a.wc.clear(),a.qm(a,function(y,x){X1(y,x)}),a.wc.count===0&&a.wc.add("",a)}function X1(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function Gv(a,y,x){var b=y.portId;if(b!==null&&(a.wc!==null&&a.wc.remove(b),y=a.diagram,y!==null&&x)){for(x=null,a=a.findLinksConnected(b);a.next();)b=a.value,x===null&&(x=sn()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);xn(x)}}}ne.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},ne.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}},ne.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)Hm(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;)Hm(y,!1),y=y.pg();return x},ne.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},ne.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof Vn)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},ne.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 En;return a(this,y),y},ne.uz=function(){return Y1(this,this)};function Y1(a,y){return y=y.pg(),y===null?0:1+Y1(a,y)}ne.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new ii(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},ne.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 bn,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 bn,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new gi(x):Ai},ne.wz=function(a){a===void 0&&(a=1/0);var y=new En;return Hh(y,this,!1,a,!0),y},Vn.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 En;x.add(this),_1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Gu),y.Ue=!1}};function _1(a,y,x,b,E,z,nt){if(1<b)for(var ot=x?a.Mo():a.Sd();ot.next();){var at=ot.value;at.isTreeLink&&(at=at.To(a),at===null||at===a||y.contains(at)||(y.add(at),_1(at,y,x,b-1,E,z,nt)))}else J1(a,y,x,E,z,nt)}function J1(a,y,x,b,E,z){for(var nt=E===a?!0:a.isTreeExpanded,ot=x?a.Mo():a.Sd(),at={};ot.next();){var ht=ot.value;if(ht.isTreeLink&&(ht=ht.To(a),ht!==null&&ht!==a)){var dt=y.contains(ht);if(dt||y.add(ht),nt){var Et=x?ht.Oo():ht.Po();at.uv=a,Et.all(function(Ht){return function(Jt){return Jt===Ht.uv||!Jt.isTreeExpanded}}(at))&&b.Aj(ht,E),ht.oh(),ht.Zb(!1)}ht.isTreeExpanded&&(ht.wasTreeExpanded=ht.isTreeExpanded,dt||J1(ht,y,x,b,E,z))}at={uv:at.uv}}a.isTreeExpanded=!1}Vn.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 En;x.add(this),Q1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Gu),y.Ue=!1}};function Q1(a,y,x,b,E,z,nt){for(var ot=z===a?!1:a.isTreeExpanded,at=x?a.Mo():a.Sd(),ht={};at.next();){var dt=at.value;if(dt.isTreeLink&&(ot||dt.fd||dt.bb(),dt=dt.To(a),dt!==null&&dt!==a&&!y.contains(dt))){if(y.add(dt),!ot){dt.Zb(!0),dt.oh();var Et=x?dt.Oo():dt.Po();ht.vv=a,Et.all(function(Ht){return function(Jt){return Jt===Ht.vv||!Jt.isTreeExpanded}}(ht))&&E.Cj(dt,z)}(2<b||dt.wasTreeExpanded)&&(dt.wasTreeExpanded=!1,Q1(dt,y,x,b-1,E,z,nt))}ht={vv:ht.vv}}a.isTreeExpanded=!0}we.Object.defineProperties(Vn.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Gm},set:function(a){var y=this.portSpreading;y!==a&&(_u(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&&Wu(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:Js},set:function(a){typeof a=="number"&&(a=new li(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),_u(this),this.Ba.yp=a;var x=this.diagram;x!==null&&Wu(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&&(_u(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&&(_u(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&&(_u(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 nt=z.wa(b);nt!==void 0&&z.Qx(E,nt)}}this.containingGroup=null}this.Yk=a,a!==null&&(tS(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),Es(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&Z1(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&&(_u(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))}}}),Vn.prototype.expandTree=Vn.prototype.expandTree,Vn.prototype.collapseTree=Vn.prototype.collapseTree,Vn.prototype.findTreeParts=Vn.prototype.wz,Vn.prototype.findTreeChildrenNodes=Vn.prototype.Ou,Vn.prototype.findTreeChildrenLinks=Vn.prototype.Qo,Vn.prototype.findTreeLevel=Vn.prototype.uz,Vn.prototype.findTreeParentChain=Vn.prototype.vz,Vn.prototype.findTreeParentNode=Vn.prototype.pg,Vn.prototype.findTreeParentLink=Vn.prototype.kh,Vn.prototype.findCommonTreeParent=Vn.prototype.gz,Vn.prototype.findTreeRoot=Vn.prototype.xz,Vn.prototype.isInTreeOf=Vn.prototype.Nz,Vn.prototype.findPort=Vn.prototype.ns,Vn.prototype.findLinksTo=Vn.prototype.kz,Vn.prototype.findLinksBetween=Vn.prototype.jz,Vn.prototype.findNodesInto=Vn.prototype.Oo,Vn.prototype.findNodesOutOf=Vn.prototype.Po,Vn.prototype.findNodesConnected=Vn.prototype.Mu,Vn.prototype.findLinksInto=Vn.prototype.Sd,Vn.prototype.findLinksOutOf=Vn.prototype.Mo,Vn.prototype.findExternalTreeLinksConnected=Vn.prototype.qx,Vn.prototype.invalidateConnectedLinks=Vn.prototype.Bd,Vn.prototype.invalidateLinkBundle=Vn.prototype.Lz;var Ex=new dn(Vn,"SpreadingNone",10),Gm=new dn(Vn,"SpreadingEvenly",11),Kv=new dn(Vn,"SpreadingPacked",12);Vn.className="Node",Vn.SpreadingNone=Ex,Vn.SpreadingEvenly=Gm,Vn.SpreadingPacked=Kv;function Ni(a,y){a===void 0||a instanceof Lo||typeof a=="string"?Vn.call(this,a):(Vn.call(this),a&&(y=a)),this.U|=4608,this.Gn=new En,this.$a=null,this.Sc=new Gr,this.Sc.group=this,this.gl=new En,this.tb=this.$p=null,y&&Object.assign(this,y)}Qe(Ni,Vn),Ni.prototype.cloneProtected=function(a){Vn.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof Ms});y instanceof Ms?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())},ne=Ni.prototype,ne.Af=function(a){Vn.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 Vn)x.Bd(y);else if(x instanceof zn)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},ne.gk=function(a,y,x,b,E,z,nt){if(a===ho&&y==="elements"){if(E instanceof Ms)this.$a===null?this.$a=E:this.$a!==E&&Pe("Cannot insert a second Placeholder into the visual tree of a Group.");else if(E instanceof Fn){var ot=E.Nl(function(at){return at instanceof Ms});ot instanceof Ms&&(this.$a===null?this.$a=ot:this.$a!==ot&&Pe("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===Eo&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Fn&&this.$a.rg(b)&&(this.$a=null));Vn.prototype.gk.call(this,a,y,x,b,E,z,nt)},ne.Xl=function(a,y){Vn.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==Fn.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof Fn&&(a=a.Pb()),this.tb===null&&(this.tb=new yn),a.mi(this.tb),a instanceof Ri&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},ne.eh=function(a,y,x,b){this.nf=this.$a,Vn.prototype.eh.call(this,a,y,x,b)},ne.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof zn||y.Va()}),Vn.prototype.Va.call(this)},ne.si=function(){if(!Vn.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof Vn){if(y.isVisible()&&Ls(y))return!1}else if(y instanceof zn&&y.isVisible()&&Ls(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Vv(a,y){if(a.Gn.add(y)){y instanceof Ni&&a.gl.add(y);var x=a.memberAdded;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof zn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Zv(a,y){if(a.Gn.remove(y)){y instanceof Ni&&a.gl.remove(y);var x=a.memberRemoved;if(x!==null){var b=!0,E=a.diagram;E!==null&&(b=E.aa,E.aa=!0),x(a,y),E!==null&&(E.aa=b)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof zn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}ne.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)}Vn.prototype.Lj.call(this)},Ni.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=mn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Ni.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=mn(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},Ni.prototype.canUngroup=function(){if(!this.ungroupable)return!1;var a=this.layer;return a===null||!a.allowUngroup?!1:(a=a.diagram,!!(a===null||a.allowUngroup))},ne=Ni.prototype,ne.Bd=function(a){var y=(this.U&65536)!==0;if(Vn.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()?(sa(x.fromPort),sa(x.toPort),x.bb()):(b=x.toNode,b!==null&&b!==this&&b.Td(this)&&!b.isVisible()&&(sa(x.fromPort),sa(x.toPort),x.bb()))}}},ne.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 En,b=y.iterator;b.next();){var E=b.value;if(E instanceof Vn)for(E=E.linksConnected;E.next();){var z=E.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},ne.iz=function(){var a=this.Rj();a.add(this);for(var y=new En,x=a.iterator;x.next();){var b=x.value;if(b instanceof Vn)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},ne.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new En;return a(this,y),y},ne.Rj=function(){var a=new En;return Hh(a,this,!0,0,!0),a.remove(this),a},ne.Zb=function(a){Vn.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},Ni.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();q1(this,y,a,this),a.Ue=!1}};function q1(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!1),z instanceof Ni&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,q1(z,y,x,b)),z instanceof Vn)z.Bd(y),x.Aj(z,b);else if(z instanceof zn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}Ni.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();$1(this,y,a,this),a.Ue=!1}};function $1(a,y,x,b){for(var E=a.memberParts;E.next();){var z=E.value;if(z.Zb(!0),z instanceof Ni&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,$1(z,y,x,b)),z instanceof Vn)z.Bd(y),x.Cj(z,b);else if(z instanceof zn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}Ni.prototype.move=function(a,y){y===void 0&&(y=!1);var x=y?this.location:this.position,b=x.x;x=x.y;var E=a.x,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=Se.alloc(),Vn.prototype.move.call(this,a,y),a=new En,y=this.Rj().iterator;y.next();)E=y.value,E instanceof zn&&(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 Vn&&E.isLinkLabel)){var nt=E.position,ot=E.location;nt.w()?(z.x=nt.x+b,z.y=nt.y+x,E.position=z):ot.w()&&(z.x=ot.x+b,z.y=ot.y+x,E.location=z)}for(y.reset();y.next();)E=y.value,E instanceof zn&&(E.suspendsRouting=a.contains(E),E.fd||E.fromNode!==this&&E.toNode!==this)&&(nt=E.position,z.x=nt.x+b,z.y=nt.y+x,z.w()?E.move(z):E.bb(),Yv(E)&&E.bb());Se.free(z)}},we.Object.defineProperties(Ni.prototype,{placeholder:{get:function(){return this.$a}},computesBoundsAfterDrag:{get:function(){return(this.U&2048)!==0},set:function(a){var y=(this.U&2048)!==0;y!==a&&(this.U^=2048,this.g("computesBoundsAfterDrag",y,a))}},computesBoundsIncludingLinks:{get:function(){return(this.U&4096)!==0},set:function(a){var y=(this.U&4096)!==0;y!==a&&(this.U^=4096,this.g("computesBoundsIncludingLinks",y,a))}},computesBoundsIncludingLocation:{get:function(){return(this.U&8192)!==0},set:function(a){var y=(this.U&8192)!==0;y!==a&&(this.U^=8192,this.g("computesBoundsIncludingLocation",y,a))}},handlesDragDropForMembers:{get:function(){return(this.U&16384)!==0},set:function(a){var y=(this.U&16384)!==0;y!==a&&(this.U^=16384,this.g("handlesDragDropForMembers",y,a))}},memberParts:{get:function(){return this.Gn.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;if(y!==a){a!==null&&a.diagram!==null&&a.diagram.layout===a&&Pe("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&&(_u(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&&(_u(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&&(_u(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&&(_u(this),this.Ba.Kr=a,this.g("subGraphExpandedChanged",y,a))}},rh:{get:function(){return(this.U&32768)!==0},set:function(a){(this.U&32768)!==0!==a&&(this.U^=32768)}}}),Ni.prototype.expandSubGraph=Ni.prototype.expandSubGraph,Ni.prototype.collapseSubGraph=Ni.prototype.collapseSubGraph,Ni.prototype.findSubGraphParts=Ni.prototype.Rj,Ni.prototype.findContainingGroupChain=Ni.prototype.hz,Ni.prototype.findExternalNodesConnected=Ni.prototype.iz,Ni.prototype.findExternalLinksConnected=Ni.prototype.Lu,Ni.prototype.ensureBounds=Ni.prototype.Va,Ni.className="Group";function Ms(a){Xe.call(this),this.yb=os,this.ko=new yn(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Qe(Ms,Xe),Ms.prototype.cloneProtected=function(a){Xe.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},Ms.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return $i(0,0,y.width,y.height,a.x,a.y)},Ms.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Ni||a instanceof cr)||Pe("Placeholder is not inside a Group or Adornment."),a instanceof Ni){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(so(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=Se.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Se.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 nt=0;z instanceof Ri&&(nt=z.strokeWidth);var ot=z.Df(),at=z.naturalBounds,ht=(at.width+nt)*ot;nt=(at.height+nt)*ot,a.type!==Fn.Link&&(ot=z.ga(a.category==="Selection"?No:a.locationSpot,Se.alloc()),a.location=ot,Se.free(ot)),isNaN(ht)||isNaN(nt)?(a=z.ga(No,Se.alloc()),ht=yn.allocAt(a.x,a.y,0,0),ht.Ye(z.ga(ta,a)),ht.Ye(z.ga(iu,a)),ht.Ye(z.ga(Qs,a)),so(y,ht.width+b||0,ht.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),Se.free(a),yn.free(ht)):(so(y,ht+b||0,nt+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},Ms.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},Ms.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof Ni&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var E=x.toolManager.findTool("Dragging");if(E===x.currentTool&&(x=E.computeBorder(y,this.ko,a),x!==null))return x}x=yn.alloc(),E=this.computeMemberBounds(x);var z=this.yb;return y instanceof Ni&&!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)),yn.free(x),b&&y instanceof Ni&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},Ms.prototype.computeMemberBounds=function(a){if(!(this.part instanceof Ni))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,b=1/0,E=-1/0,z=-1/0,nt=y.memberParts;nt.next();){var ot=nt.value;if(ot.isVisible()){if(ot instanceof zn&&(!y.computesBoundsIncludingLinks||ma(ot)||ot.fromNode===y||ot.toNode===y))continue;ot=ot.actualBounds,ot.left<x&&(x=ot.left),ot.top<b&&(b=ot.top),ot.right>E&&(E=ot.right),ot.bottom>z&&(z=ot.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},we.Object.defineProperties(Ms.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new li(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Ms.className="Placeholder";function zn(a){di.call(this,Fn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Ts,this.Om=0,this.Qm=Ts,this.Rm=NaN,this.qj=Qv,this.po=.5,this.wd=null,this.Nb=new bn().freeze(),this.Tg=this.Mg=null,this.ml=new yn,this.ua=new Un,this.u=this.o=this.Sf=this.Wf=null,this.su=new Se,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Qe(zn,di),zn.prototype.cloneProtected=function(a){di.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())},ne=zn.prototype,ne.Af=function(a){di.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&&sa(y),a=a.toPort,a!==null&&sa(a)},ne.qb=function(a){a.classType===zn?(a.value&2)===2?this.routing=a:a===ya||a===Qu||a===Mf?this.curve=a:a===Jg||a===_m||a===Jm?this.adjusting=a:a!==Qv&&a!==Ts&&Pe("Unknown Link enum value for a Link property: "+a):di.prototype.qb.call(this,a)},ne.Xc=function(){this.ba===null&&(this.ba=new Bg)},ne.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Ls(a)||jh(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Ls(a)||jh(a)))},ne.zv=function(){return!1},ne.Av=function(){},ne.Zc=function(){return!1},zn.prototype.computeAngle=function(a,y,x){return zn.computeAngle(y,x)},zn.computeAngle=function(a,y){switch(a){default:case Ts:a=0;break;case Qg:a=y;break;case qg:a=y+90;break;case $g:a=y-90;break;case qv:a=y+180;break;case Qm:a=Je.bp(y),90<a&&270>a&&(a-=180);break;case tp:a=Je.bp(y+90),90<a&&270>a&&(a-=180);break;case ep:a=Je.bp(y-90),90<a&&270>a&&(a-=180);break;case qm:if(a=Je.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return Je.bp(a)};function Lf(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&&Zv(x,a),a.Ah=y,y!==null&&Vv(y,a);var E=a.containingGroupChanged;if(E!==null){var z=!0,nt=a.diagram;nt!==null&&(z=nt.aa,nt.aa=!0),E(a,x,y),nt!==null&&(nt.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}ne=zn.prototype,ne.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&di.prototype.oh.call(this)},ne.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},ne.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function tS(a,y){a.wd===null&&(a.wd=new En),a.wd.add(y),a.v()}ne.Vo=function(a){if(di.prototype.Vo.call(this,a),Oc(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Wm(a,this,y));var x=this.uf;if(x!==null){var b=this.toPort;x===a&&b===y||Wm(x,this,b)}Yg(this)}},ne.Wo=function(a){if(di.prototype.Wo.call(this,a),Oc(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)}_g(this)}},ne.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))},zn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},zn.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?di.prototype.move.call(this,a,!1):(a=Se.allocAt(x.x+b,x.y+E),di.prototype.move.call(this,a,!1),Se.free(a)),Ju(this,b,E),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+b,x.y+E)},zn.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},zn.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},zn.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Tr),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()===ya))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()===ya){if(y===3){x=this.i(0),b=this.i(1);var E=this.i(2);return Je.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),Je.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 nt=this.flattenedLengths;for(x=this.flattenedTotalLength,E=z=b=0;b<x/2&&z<y&&(E=nt[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},zn.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()===ya))return this.ua.wx(.5);if(this.computeCurve()===ya&&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),Je.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)},ne=zn.prototype,ne.i=function(a){return this.Nb.s[a]},ne.dd=function(a,y){this.Nb.cd(a,y)},ne.L=function(a,y,x){this.Nb.cd(a,new Se(y,x))},ne.Kz=function(a,y){this.Nb.Gb(a,y)},ne.m=function(a,y,x){this.Nb.Gb(a,new Se(y,x))},ne.ne=function(a){this.Nb.add(a)},ne.yf=function(a,y){this.Nb.add(new Se(a,y))},ne.pv=function(a){this.Nb.mb(a)},ne.Fj=function(){this.Nb.clear()};function Ju(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 bn,z=a.Nb.iterator;z.next();){var nt=z.value;E.add(new Se(nt.x+y,nt.y+x).freeze())}E.freeze(),z=a.Nb,a.Nb=E,nt=a.diagram,isNaN(y)||isNaN(x)||nt!==null&&nt.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),Es(a)),b?Km(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),nt!==null&&nt.animationManager.zb&&Qd(nt.animationManager,a,E),a.g("points",z,E)}}ne.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},ne.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,nt=0;nt<z;nt++){var ot=E[nt];x=Math.min(ot.x,x),b=Math.min(ot.y,b)}ot=nt=1/0;for(var at=y.s,ht=at.length,dt=0;dt<ht;dt++){var Et=at[dt];nt=Math.min(Et.x,nt),ot=Math.min(Et.y,ot),Et.freeze()}if(y.freeze(),ht===z){for(z=0;z<ht;z++)if(dt=E[z],Et=at[z],dt.x-x!==Et.x-nt||dt.y-b!==Et.y-ot){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&Qd(x.animationManager,this,y),Km(this),this.g("points",a,y)}},ne.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function Km(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),Ym(a,!1))}ne.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())}},ne.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()}}},zn.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(Sd||(Sd=new Vn,Sd.desiredSize=Ti,Sd.Va()),this.defaultFromPoint&&(Sd.location=this.defaultFromPoint,Sd.Va(),y=a=Sd)):y=this.fromPort,y!==null&&!a.isVisible()){var x=a.findVisibleNode();x!==null&&x!==a?(a=x,y=x.port):a=x}if(this.Lw=a,a===null||!a.location.w())return!1;for(;!(y===null||y.actualBounds.w()&&y.Ed());)y=y.panel;if(y===null)return!1;var b=this.toNode,E=null;if(b===null?(xd||(xd=new Vn,xd.desiredSize=Ti,xd.Va()),this.defaultToPoint&&(xd.location=this.defaultToPoint,xd.Va(),E=b=xd)):E=this.toPort,E===null||b.isVisible()||(x=b.findVisibleNode(),x!==null&&x!==b?(b=x,E=x.port):b=x),this.Mw=b,b===null||!b.location.w())return!1;for(;!(E===null||E.actualBounds.w()&&E.Ed());)E=E.panel;if(E===null)return!1;var z=this.pointsCount,nt=this.computeSpot(!0,y);x=this.computeSpot(!1,E);var ot=Af(nt),at=Af(x),ht=y===E&&y!==null,dt=this.isOrthogonal,Et=this.curve===ya;this.Wf=ht&&!dt?Et=!0:!1;var Ht=this.computeAdjusting()===Ts||ht;if(!dt&&!ht&&ot&&at){if(ot=!1,!Ht&&3<=z&&(Ht=this.getLinkPoint(a,y,nt,!0,!1,b,E),at=this.getLinkPoint(b,E,x,!1,!1,a,y),ot=this.adjustPoints(0,Ht,z-1,at))&&(Ht=this.getLinkPoint(a,y,nt,!0,!1,b,E),at=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,Ht,z-1,at)),!ot)if(this.Fj(),Et){z=this.getLinkPoint(a,y,nt,!0,!1,b,E),Ht=this.getLinkPoint(b,E,x,!1,!1,a,y),ot=Ht.x-z.x,at=Ht.y-z.y,ht=this.computeCurviness(),Et=dt=0;var Jt=z.x+ot/3,ee=z.y+at/3,se=Jt,Ce=ee;Je.B(at,0)?Ce=0<ot?Ce-ht:Ce+ht:(dt=-ot/at,Et=Math.sqrt(ht*ht/(dt*dt+1)),0>ht&&(Et=-Et),se=(0>at?-1:1)*Et+Jt,Ce=dt*(se-Jt)+ee),Jt=z.x+2*ot/3,ee=z.y+2*at/3;var ve=Jt,Ae=ee;Je.B(at,0)?Ae=0<ot?Ae-ht:Ae+ht:(ve=(0>at?-1:1)*Et+Jt,Ae=dt*(ve-Jt)+ee),this.Fj(),this.ne(z),this.yf(se,Ce),this.yf(ve,Ae),this.ne(Ht),this.dd(0,this.getLinkPoint(a,y,nt,!0,!1,b,E)),this.dd(3,this.getLinkPoint(b,E,x,!1,!1,a,y))}else z=b,Ht=E,b=this.getLinkPoint(a,y,nt,!0,!1,z,Ht),E=this.getLinkPoint(z,Ht,x,!1,!1,a,y),this.hasCurviness()?(Ht=E.x-b.x,x=E.y-b.y,nt=this.computeCurviness(),a=b.x+Ht/2,y=b.y+x/2,z=a,ot=y,Je.B(x,0)?ot=0<Ht?ot-nt:ot+nt:(Ht=-Ht/x,z=Math.sqrt(nt*nt/(Ht*Ht+1)),0>nt&&(z=-z),z=(0>x?-1:1)*z+a,ot=Ht*(z-a)+y),this.ne(b),this.yf(z,ot),this.ne(E)):(this.ne(b),this.ne(E),ot=yn.alloc(),y.mi(ot),at=ot.ca(E),Ht.mi(ot),ht=ot.ca(b),(at||ht)&&(nt=y.ga(Zm(nt),new Se),this.dd(0,this.getLinkPointFromPoint(a,y,nt,E,!0,nt)),x=Ht.ga(Zm(x),new Se),this.dd(1,this.getLinkPointFromPoint(z,Ht,x,b,!1,x))),yn.free(ot))}else{Et=this.isAvoiding,Ht&&(dt&&Et||ht)&&this.Fj();var Ie=ht?this.computeCurviness():0;Et=this.getLinkPoint(a,y,nt,!0,dt,b,E),Jt=se=ee=0,(dt||!ot||ht)&&(Ce=this.computeEndSegmentLength(a,y,nt,!0),Jt=this.getLinkDirection(a,y,Et,nt,!0,dt,b,E),ht&&(ot||nt.D(x)||!dt&&nt.x+x.x===1&&nt.y+x.y===1)&&(Jt-=dt?90:30,0>Ie&&(Jt-=180)),0>Jt?Jt+=360:360<=Jt&&(Jt-=360),ht&&(Ce+=Math.abs(Ie)*(dt?1:2)),Jt===0?ee=Ce:Jt===90?se=Ce:Jt===180?ee=-Ce:Jt===270?se=-Ce:(ee=Ce*Math.cos(Jt*Math.PI/180),se=Ce*Math.sin(Jt*Math.PI/180)),nt.Mc()&&ht&&(Ce=y.ga(ur,Se.alloc()),ve=Se.allocAt(Ce.x+1e3*ee,Ce.y+1e3*se),this.getLinkPointFromPoint(a,y,Ce,ve,!0,Et),Se.free(Ce),Se.free(ve))),Ce=this.getLinkPoint(b,E,x,!1,dt,a,y);var Be=Ae=ve=0;if(dt||!at||ht){var Ve=this.computeEndSegmentLength(b,E,x,!1);Be=this.getLinkDirection(b,E,Ce,x,!1,dt,a,y),ht&&(at||nt.D(x)||!dt&&nt.x+x.x===1&&nt.y+x.y===1)&&(Be+=dt?0:30,0>Ie&&(Be+=180)),0>Be?Be+=360:360<=Be&&(Be-=360),ht&&(Ve+=Math.abs(Ie)*(dt?1:2)),Be===0?ve=Ve:Be===90?Ae=Ve:Be===180?ve=-Ve:Be===270?Ae=-Ve:(ve=Ve*Math.cos(Be*Math.PI/180),Ae=Ve*Math.sin(Be*Math.PI/180)),x.Mc()&&ht&&(x=E.ga(ur,Se.alloc()),nt=Se.allocAt(x.x+1e3*ve,x.y+1e3*Ae),this.getLinkPointFromPoint(b,E,x,nt,!1,Ce),Se.free(x),Se.free(nt))}x=Et,(dt||!ot||ht)&&(x=new Se(Et.x+ee,Et.y+se)),nt=Ce,(dt||!at||ht)&&(nt=new Se(Ce.x+ve,Ce.y+Ae)),!Ht&&!dt&&ot&&3<z&&this.adjustPoints(0,Et,z-2,nt)?this.dd(z-1,Ce):!Ht&&!dt&&at&&3<z&&this.adjustPoints(1,x,z-1,Ce)?this.dd(0,Et):!Ht&&(dt?6<=z:4<z)&&this.adjustPoints(1,x,z-2,nt)?(this.dd(0,Et),this.dd(z-1,Ce)):(this.Fj(),this.ne(Et),(dt||!ot||ht)&&this.ne(x),dt&&this.addOrthoPoints(x,Jt,nt,Be,a,b),(dt||!at||ht)&&this.ne(nt),this.ne(Ce))}return!0};function Xv(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}zn.prototype.getLinkPointFromPoint=function(a,y,x,b,E,z){if(z===void 0&&(z=new Se),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 nt=x.x;x=x.y}else{a=E.oe,E=1/(a.m11*a.m22-a.m12*a.m21),nt=a.m22*E;var ot=-a.m12*E,at=-a.m21*E,ht=a.m11*E,dt=E*(a.m21*a.dy-a.m22*a.dx),Et=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*nt+b.y*at+dt,b=b.x*ot+b.y*ht+Et,nt=x.x*nt+x.y*at+dt,x=x.x*ot+x.y*ht+Et}return y.Sj(E,b,nt,x,z),a!==null&&z.transform(a),z};function Vm(a,y){var x=y.Zn;return x===null&&(x=new wd,x.port=y,x.node=y.part,y.Zn=x),lS(x,a)}zn.prototype.getLinkPoint=function(a,y,x,b,E,z,nt,ot){if(ot===void 0&&(ot=new Se),x.sb()&&!Af(x))return y.ga(x,ot),ot;if(x.$c()){var at=Vm(this,y);if(at!==null){if(ot.assign(at.Zo),E&&this.routing===nS){var ht=Vm(this,nt);if(ht!==null&&at.Gl<ht.Gl){at=Se.alloc(),ht=Se.alloc();var dt=new yn(y.ga(No,at),y.ga(ta,ht)),Et=this.computeSpot(!b,nt);a=this.getLinkPoint(z,nt,Et,!b,E,a,y,ht),(x.Hf(ru)||x.Hf(ea))&&a.y>=dt.y&&a.y<=dt.y+dt.height?ot.y=a.y:(x.Hf(Bl)||x.Hf(ba))&&a.x>=dt.x&&a.x<=dt.x+dt.width&&(ot.x=a.x),Se.free(at),Se.free(ht)}}return ot}}return x=y.ga(Zm(x),Se.alloc()),this.pointsCount>(E?6:2)?(nt=b?this.i(1):this.i(this.pointsCount-2),E&&(nt=Xv(x,nt.copy()))):(at=this.computeSpot(!b,nt),z=Se.alloc(),nt=nt.ga(Zm(at),z),E&&(nt=Xv(x,nt)),Se.free(z)),this.getLinkPointFromPoint(a,y,x,nt,b,ot),Se.free(x),ot},zn.prototype.getLinkDirection=function(a,y,x,b,E,z,nt,ot){t:if(b.sb())var at=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()&&(at=Vm(this,y),at!==null))switch(at.Nc){case 1:at=270;break t;case 2:at=180;break t;default:case 4:at=0;break t;case 8:at=90;break t}at=y.ga(ur,Se.alloc()),this.pointsCount>(z?6:2)?(ot=E?this.i(1):this.i(this.pointsCount-2),ot=z?Xv(at,ot.copy()):x):(x=Se.alloc(),ot=ot.ga(ur,x),Se.free(x)),x=Math.abs(ot.x-at.x)>Math.abs(ot.y-at.y)?ot.x>=at.x?0:180:ot.y>=at.y?90:270,Se.free(at),at=x}return b.Mc()&&nt.Td(a)&&(at+=180,360<=at&&(at-=360)),Af(b)||(a=y.li(),a===0)||(45<=a&&135>a?at+=90:135<=a&&225>a?at+=180:225<=a&&315>a&&(at+=270),360<=at&&(at-=360)),at},zn.prototype.computeEndSegmentLength=function(a,y,x,b){return y!==null&&x.$c()&&(a=Vm(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)},zn.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=ur:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Cr?ao:y)):(a=y||this.toPort,a===null?a=ur:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Cr?ao:y)),a};function Af(a){return a===ao||a.x===.5&&a.y===.5}function Zm(a){return a.x===.5&&a.y===.5?a:ur}zn.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Ts&&4<this.pointsCount?this.computeMidPoint(new Se):(a=y.Zn,a=a!==null?lS(a,this):null,a!==null?a.Zo:y.ga(ur))},zn.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},zn.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 nt=z;if(z===void 0&&(nt=Vi.alloc(),nt.reset()),nt.multiply(this.transform),this.fh(a,nt))return vv(this,y,x,E),z===void 0&&Vi.free(nt),!0;if(this.Yc(a,nt)){var ot=!1;if(!this.isAtomic)for(var at=this.O.s,ht=at.length;ht--;){var dt=at[ht];if(dt.visible||dt===this.locationObject){var Et=dt.actualBounds,Ht=this.naturalBounds;if(!(Et.x>Ht.width||Et.y>Ht.height||0>Et.x+Et.width||0>Et.y+Et.height)){if(Et=Vi.alloc(),Et.set(nt),dt instanceof Fn)ot=dt.Cf(a,y,x,b,E,Et);else if(this.path===dt){if(dt instanceof Ri)if(ot=a,Ht=b,dt.pickable===!1)ot=!1;else if(Et.multiply(dt.transform),Ht)t:{var Jt=ot,ee=Et;if(dt.fh(Jt,ee))ot=!0;else{if(ee===void 0&&(ee=dt.transform,Jt.Re(dt.actualBounds))){ot=!0;break t}ot=Jt.left,Ht=Jt.right;var se=Jt.top;Jt=Jt.bottom;var Ce=Se.alloc(),ve=Se.alloc(),Ae=Se.alloc(),Ie=Vi.alloc();Ie.set(ee),Ie.bv(dt.transform),Ie.Vj(),ve.x=Ht,ve.y=se,ve.transform(Ie),Ce.x=ot,Ce.y=se,Ce.transform(Ie),ee=!1,kc(dt,Ce,ve,Ae)?ee=!0:(Ce.x=Ht,Ce.y=Jt,Ce.transform(Ie),kc(dt,Ce,ve,Ae)?ee=!0:(ve.x=ot,ve.y=Jt,ve.transform(Ie),kc(dt,Ce,ve,Ae)?ee=!0:(Ce.x=ot,Ce.y=se,Ce.transform(Ie),kc(dt,Ce,ve,Ae)&&(ee=!0)))),Vi.free(Ie),Se.free(Ce),Se.free(ve),Se.free(Ae),ot=ee}}else ot=dt.fh(ot,Et)}else ot=Fo(dt,a,b,Et);ot&&(Ht=dt,y!==null&&(Ht=y(dt)),Ht&&(x===null||x(Ht))&&E.add(Ht)),Vi.free(Et)}}}return z===void 0&&Vi.free(nt),ot||this.background!==null||this.areaBackground!==null}return z===void 0&&Vi.free(nt),!1},zn.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?ya:this.curve},zn.prototype.computeCorner=function(){if(this.curve===ya)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},zn.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},zn.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=rS;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,nt=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===Qg||b===Qm||b===qv?a=Math.max(a,E):b===$g||b===ep||b===qg||b===tp?a=Math.max(a,nt):(y=y.ga(ur).ab(x.ga(ur))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*nt)+Math.abs(Math.cos(y)*E)+1)),this.curve===ya&&(a*=1.333)}}return a},zn.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===Ts&&x.bb()}},zn.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=iS;var y=this.Sf;if(y!==null){for(var x=sn(),b=0,E=y.links,z=0;z<E.length;z++){var nt=E[z].computeSpacing();x.push(nt),b+=nt}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),xn(x)}}return a},zn.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},zn.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},zn.prototype.adjustPoints=function(a,y,x,b){var E=this.computeAdjusting();if(this.isOrthogonal){if(E===_m)return!1;E===Jm&&(E=Jg)}switch(E){case _m:var z=this.i(a),nt=this.i(x);if(!z.Xa(y)||!nt.Xa(b)){E=z.x,z=z.y;var ot=nt.x-E,at=nt.y-z,ht=Math.sqrt(ot*ot+at*at);if(!Je.$(ht,0)){if(Je.$(ot,0))var dt=0>at?-Math.PI/2:Math.PI/2;else dt=Math.atan(at/Math.abs(ot)),0>ot&&(dt=Math.PI-dt);nt=y.x;var Et=y.y;ot=b.x-nt;var Ht=b.y-Et;for(at=Math.sqrt(ot*ot+Ht*Ht),Je.$(ot,0)?Ht=0>Ht?-Math.PI/2:Math.PI/2:(Ht=Math.atan(Ht/Math.abs(ot)),0>ot&&(Ht=Math.PI-Ht)),ht=at/ht,dt=Ht-dt,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),ot=y.x-E,at=y.y-z,y=Math.sqrt(ot*ot+at*at),Je.$(y,0)||(Je.$(ot,0)?at=0>at?-Math.PI/2:Math.PI/2:(at=Math.atan(at/Math.abs(ot)),0>ot&&(at=Math.PI-at)),ot=at+dt,y*=ht,this.L(a,nt+y*Math.cos(ot),Et+y*Math.sin(ot)));this.dd(x,b)}}return!0;case Jm:if(z=this.i(a),Et=this.i(x),!z.Xa(y)||!Et.Xa(b)){E=z.x,z=z.y,nt=Et.x,Et=Et.y,ht=(nt-E)*(nt-E)+(Et-z)*(Et-z),ot=y.x,dt=y.y,at=b.x,Ht=b.y;var Jt=1;if(at-ot!==0){var ee=(Ht-dt)/(at-ot);Jt=Math.sqrt(1+1/(ee*ee))}else ee=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var se=y.x,Ce=y.y,ve=.5;ht!==0&&(ve=((E-se)*(E-nt)+(z-Ce)*(z-Et))/ht);var Ae=E+ve*(nt-E),Ie=z+ve*(Et-z);y=Math.sqrt((se-Ae)*(se-Ae)+(Ce-Ie)*(Ce-Ie)),Ce<ee*(se-Ae)+Ie&&(y=-y),0<ee&&(y=-y),se=ot+ve*(at-ot),ve=dt+ve*(Ht-dt),ee!==0?(y=se+y/Jt,this.L(a,y,ve-(y-se)/ee)):this.L(a,se,ve+y)}this.dd(x,b)}return!0;case Jg:t:{if(this.isOrthogonal&&(E=this.i(a),z=this.i(a+1),nt=this.i(a+2),ot=z.x,dt=z.y,Et=ot,ht=dt,Je.B(E.y,z.y)?Je.B(z.x,nt.x)?dt=y.y:Je.B(z.y,nt.y)&&(ot=y.x):Je.B(E.x,z.x)&&(Je.B(z.y,nt.y)?ot=y.x:Je.B(z.x,nt.x)&&(dt=y.y)),this.L(a+1,ot,dt),E=this.i(x),z=this.i(x-1),nt=this.i(x-2),ot=z.x,dt=z.y,at=ot,Ht=dt,Je.B(E.y,z.y)?Je.B(z.x,nt.x)?dt=b.y:Je.B(z.y,nt.y)&&(ot=b.x):Je.B(E.x,z.x)&&(Je.B(z.y,nt.y)?ot=b.x:Je.B(z.x,nt.x)&&(dt=b.y)),this.L(x-1,ot,dt),Yv(this))){this.L(a+1,Et,ht),this.L(x-1,at,Ht),x=!1;break t}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},zn.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 nt=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 ot=E.actualBounds.copy(),at=z.actualBounds.copy();if(ot.w()&&at.w()){ot.Bc(np,np),at.Bc(np,np),ot.Ye(a),at.Ye(x);var ht=Se.alloc(),dt=Se.alloc();y===0?x.x>a.x||b===270&&x.y<a.y&&at.right>a.x||b===90&&x.y>a.y&&at.right>a.x?(ht.h(x.x,a.y),dt.h(x.x,(a.y+x.y)/2),b===180?(ht.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),dt.x=ht.x,dt.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ht.x=a.x<at.left?this.computeMidOrthoPosition(a.x,a.y,at.left,x.y,!1):a.x<at.right&&(b===270&&a.y<at.top||b===90&&a.y>at.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):at.right,dt.x=ht.x,dt.y=x.y):b===0&&a.x<at.left&&a.y>at.top&&a.y<at.bottom&&(ht.x=a.x,ht.y=a.y<x.y?Math.min(x.y,at.top):Math.max(x.y,at.bottom),dt.y=ht.y)):(ht.h(a.x,x.y),dt.h((a.x+x.x)/2,x.y),(b===180||b===90&&x.y<ot.top||b===270&&x.y>ot.bottom)&&(b===180&&(at.ca(a)||ot.ca(x))?ht.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===180||b===90)?ht.y=this.computeMidOrthoPosition(a.x,ot.top,x.x,Math.max(x.y,at.bottom),!0):x.y>a.y&&(b===180||b===270)&&(ht.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,at.top),!0)),dt.x=x.x,dt.y=ht.y),ht.y>ot.top&&ht.y<ot.bottom&&(x.x>=ot.left&&x.x<=a.x||a.x<=at.right&&a.x>=x.x?(b===90||b===270)&&(ht.h(Math.max((a.x+x.x)/2,a.x),a.y),dt.h(ht.x,x.y)):(ht.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===0?ot.top:Math.min(ot.top,at.top)):Math.max(x.y,b===0?ot.bottom:Math.max(ot.bottom,at.bottom)),dt.x=x.x,dt.y=ht.y))):y===180?x.x<a.x||b===270&&x.y<a.y&&at.left<a.x||b===90&&x.y>a.y&&at.left<a.x?(ht.h(x.x,a.y),dt.h(x.x,(a.y+x.y)/2),b===0?(ht.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),dt.x=ht.x,dt.y=x.y):b===270&&x.y<a.y||b===90&&x.y>a.y?(ht.x=a.x>at.right?this.computeMidOrthoPosition(a.x,a.y,at.right,x.y,!1):a.x>at.left&&(b===270&&a.y<at.top||b===90&&a.y>at.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):at.left,dt.x=ht.x,dt.y=x.y):b===180&&a.x>at.right&&a.y>at.top&&a.y<at.bottom&&(ht.x=a.x,ht.y=a.y<x.y?Math.min(x.y,at.top):Math.max(x.y,at.bottom),dt.y=ht.y)):(ht.h(a.x,x.y),dt.h((a.x+x.x)/2,x.y),(b===0||b===90&&x.y<ot.top||b===270&&x.y>ot.bottom)&&(b===0&&(at.ca(a)||ot.ca(x))?ht.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(b===0||b===90)?ht.y=this.computeMidOrthoPosition(a.x,ot.top,x.x,Math.max(x.y,at.bottom),!0):x.y>a.y&&(b===0||b===270)&&(ht.y=this.computeMidOrthoPosition(a.x,ot.bottom,x.x,Math.min(x.y,at.top),!0)),dt.x=x.x,dt.y=ht.y),ht.y>ot.top&&ht.y<ot.bottom&&(x.x<=ot.right&&x.x>=a.x||a.x>=at.left&&a.x<=x.x?(b===90||b===270)&&(ht.h(Math.min((a.x+x.x)/2,a.x),a.y),dt.h(ht.x,x.y)):(ht.y=b===270||(b===0||b===180)&&x.y<a.y?Math.min(x.y,b===180?ot.top:Math.min(ot.top,at.top)):Math.max(x.y,b===180?ot.bottom:Math.max(ot.bottom,at.bottom)),dt.x=x.x,dt.y=ht.y))):y===90?x.y>a.y||b===180&&x.x<a.x&&at.bottom>a.y||b===0&&x.x>a.x&&at.bottom>a.y?(ht.h(a.x,x.y),dt.h((a.x+x.x)/2,x.y),b===270?(ht.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),dt.x=x.x,dt.y=ht.y):b===180&&x.x<a.x||b===0&&x.x>a.x?(ht.y=a.y<at.top?this.computeMidOrthoPosition(a.x,a.y,x.x,at.top,!0):a.y<at.bottom&&(b===180&&a.x<at.left||b===0&&a.x>at.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):at.bottom,dt.x=x.x,dt.y=ht.y):b===90&&a.y<at.top&&a.x>at.left&&a.x<at.right&&(ht.x=a.x<x.x?Math.min(x.x,at.left):Math.max(x.x,at.right),ht.y=a.y,dt.x=ht.x)):(ht.h(x.x,a.y),dt.h(x.x,(a.y+x.y)/2),(b===270||b===0&&x.x<ot.left||b===180&&x.x>ot.right)&&(b===270&&(at.ca(a)||ot.ca(x))?ht.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===270||b===0)?ht.x=this.computeMidOrthoPosition(ot.left,a.y,Math.max(x.x,at.right),x.y,!1):x.x>a.x&&(b===270||b===180)&&(ht.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,at.left),x.y,!1)),dt.x=ht.x,dt.y=x.y),ht.x>ot.left&&ht.x<ot.right&&(x.y>=ot.top&&x.y<=a.y||a.y<=at.bottom&&a.y>=x.y?(b===0||b===180)&&(ht.h(a.x,Math.max((a.y+x.y)/2,a.y)),dt.h(x.x,ht.y)):(ht.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===90?ot.left:Math.min(ot.left,at.left)):Math.max(x.x,b===90?ot.right:Math.max(ot.right,at.right)),dt.x=ht.x,dt.y=x.y))):x.y<a.y||b===180&&x.x<a.x&&at.top<a.y||b===0&&x.x>a.x&&at.top<a.y?(ht.h(a.x,x.y),dt.h((a.x+x.x)/2,x.y),b===90?(ht.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),dt.x=x.x,dt.y=ht.y):b===180&&x.x<a.x||b===0&&x.x>=a.x?(ht.y=a.y>at.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,at.bottom,!0):a.y>at.top&&(b===180&&a.x<at.left||b===0&&a.x>at.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):at.top,dt.x=x.x,dt.y=ht.y):b===270&&a.y>at.bottom&&a.x>at.left&&a.x<at.right&&(ht.x=a.x<x.x?Math.min(x.x,at.left):Math.max(x.x,at.right),ht.y=a.y,dt.x=ht.x)):(ht.h(x.x,a.y),dt.h(x.x,(a.y+x.y)/2),(b===90||b===0&&x.x<ot.left||b===180&&x.x>ot.right)&&(b===90&&(at.ca(a)||ot.ca(x))?ht.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(b===90||b===0)?ht.x=this.computeMidOrthoPosition(ot.left,a.y,Math.max(x.x,at.right),x.y,!1):x.x>a.x&&(b===90||b===180)&&(ht.x=this.computeMidOrthoPosition(ot.right,a.y,Math.min(x.x,at.left),x.y,!1)),dt.x=ht.x,dt.y=x.y),ht.x>ot.left&&ht.x<ot.right&&(x.y<=ot.bottom&&x.y>=a.y||a.y>=at.top&&a.y<=x.y?(b===0||b===180)&&(ht.h(a.x,Math.min((a.y+x.y)/2,a.y)),dt.h(x.x,ht.y)):(ht.x=b===180||(b===90||b===270)&&x.x<a.x?Math.min(x.x,b===270?ot.left:Math.min(ot.left,at.left)):Math.max(x.x,b===270?ot.right:Math.max(ot.right,at.right)),dt.x=ht.x,dt.y=x.y)));var Et=x;if(this.isAvoiding){var Ht=this.diagram;if(Ht===null||E===z||this.layer.isTemporary||!af(Ht)||ot.ca(Et)&&!z.Td(E)||at.ca(a)&&!E.Td(z))y=!1;else{var Jt=lf(Ht,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Jt.Yj(Math.min(a.x,ht.x),Math.min(a.y,ht.y),Math.abs(a.x-ht.x),Math.abs(a.y-ht.y))&&Jt.Yj(Math.min(ht.x,dt.x),Math.min(ht.y,dt.y),Math.abs(ht.x-dt.x),Math.abs(ht.y-dt.y))&&Jt.Yj(Math.min(dt.x,Et.x),Math.min(dt.y,Et.y),Math.abs(dt.x-Et.x),Math.abs(dt.y-Et.y)))y=!1;else{E=a,z=Et;var ee=x=null;if(Ht.isVirtualized){Ht=Jt.bounds.copy(),Ht.Bc(-Jt.Ho,-Jt.Go);var se=Se.alloc();Tf(Jt,a.x,a.y)||(Je.Ff(Ht.x,Ht.y,Ht.x+Ht.width,Ht.y+Ht.height,a.x,a.y,ht.x,ht.y,se)?(x=a=se.copy(),y=se.ab(ht)):Je.Ff(Ht.x,Ht.y,Ht.x+Ht.width,Ht.y+Ht.height,ht.x,ht.y,dt.x,dt.y,se)?(x=a=se.copy(),y=se.ab(dt)):Je.Ff(Ht.x,Ht.y,Ht.x+Ht.width,Ht.y+Ht.height,dt.x,dt.y,Et.x,Et.y,se)&&(x=a=se.copy(),y=se.ab(Et))),Tf(Jt,Et.x,Et.y)||(Je.Ff(Ht.x,Ht.y,Ht.x+Ht.width,Ht.y+Ht.height,Et.x,Et.y,dt.x,dt.y,se)?(ee=Et=se.copy(),b=dt.ab(se)):Je.Ff(Ht.x,Ht.y,Ht.x+Ht.width,Ht.y+Ht.height,dt.x,dt.y,ht.x,ht.y,se)?(ee=Et=se.copy(),b=ht.ab(se)):Je.Ff(Ht.x,Ht.y,Ht.x+Ht.width,Ht.y+Ht.height,ht.x,ht.y,a.x,a.y,se)&&(ee=Et=se.copy(),b=a.ab(se))),Se.free(se)}ot=ot.copy().ed(at),ot.Bc(Jt.Ho*Jt.Os,Jt.Go*Jt.Os),sS(Jt,a,y,Et,b,ot,!0),at=Yl(Jt,Et.x,Et.y),!Jt.abort&&at>=kf&&(oS(Jt),ot.Bc(Jt.Ho*Jt.Hx,Jt.Go*Jt.Ix),sS(Jt,a,y,Et,b,ot,!1),at=Yl(Jt,Et.x,Et.y)),!Jt.abort&&at<kf&&Yl(Jt,Et.x,Et.y)!==qu?(_v(this,Jt,Et.x,Et.y,b,!0,nt),ot=this.i(2),4>this.pointsCount?(y===0||y===180?(ot.x=a.x,ot.y=Et.y):(ot.x=Et.x,ot.y=a.y),this.L(2,ot.x,ot.y),this.m(3,ot.x,ot.y)):(nt=this.i(3),y===0||y===180?Je.B(ot.x,nt.x)?(ot=y===0?Math.max(ot.x,a.x):Math.min(ot.x,a.x),this.L(2,ot,a.y),this.L(3,ot,nt.y)):Je.B(ot.y,nt.y)?(Math.abs(a.y-ot.y)<=Jt.Go/2&&(this.L(2,ot.x,a.y),this.L(3,nt.x,a.y)),this.m(2,ot.x,a.y)):this.L(2,a.x,ot.y):(y===90||y===270)&&(Je.B(ot.y,nt.y)?(ot=y===90?Math.max(ot.y,a.y):Math.min(ot.y,a.y),this.L(2,a.x,ot),this.L(3,nt.x,ot)):Je.B(ot.x,nt.x)?(Math.abs(a.x-ot.x)<=Jt.Ho/2&&(this.L(2,a.x,ot.y),this.L(3,a.x,nt.y)),this.m(2,a.x,ot.y)):this.L(2,ot.x,a.y))),x!==null&&(a=this.i(1),nt=this.i(2),a.x!==nt.x&&a.y!==nt.y?y===0||y===180?this.m(2,a.x,nt.y):this.m(2,nt.x,a.y):y===0||y===180?this.m(2,E.x,x.y):this.m(2,x.x,E.y)),ee!==null&&(b===0||b===180?this.yf(z.x,ee.y):this.yf(ee.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(ht.copy()),this.ne(dt.copy())),Se.free(ht),Se.free(dt)}},zn.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 Yv(a){if(a.diagram===null||!a.isAvoiding||!af(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=lf(a.diagram,!0,a.containingGroup,null);for(var b=1;b<x-2;b++){var E=y[b],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 _v(a,y,x,b,E,z,nt){var ot=y.Ho,at=y.Go,ht=Yl(y,x,b),dt=x,Et=b;for(E===0?dt+=ot:E===90?Et+=at:E===180?dt-=ot:Et-=at,E!==nt&&ht>Ic&&Yl(y,dt,Et)!==ht-1&&(Yl(y,x-ot,b)===ht-1?(E=180,dt=x-ot,Et=b):Yl(y,x+ot,b)===ht-1?(E=0,dt=x+ot,Et=b):Yl(y,x,b-at)===ht-1?(E=270,dt=x,Et=b-at):Yl(y,x,b+at)===ht-1&&(E=90,dt=x,Et=b+at));ht>Ic&&Yl(y,dt,Et)===ht-1;)x=dt,b=Et,E===0?dt+=ot:E===90?Et+=at:E===180?dt-=ot:Et-=at,--ht;z?ht>Ic&&(E===180||E===0?x=Math.floor(x/ot)*ot+ot/2:(E===90||E===270)&&(b=Math.floor(b/at)*at+at/2)):(x=Math.floor(x/ot)*ot+ot/2,b=Math.floor(b/at)*at+at/2),ht>Ic&&(z=E,nt=x,dt=b,E===0?(z=90,dt+=at):E===90?(z=180,nt-=ot):E===180?(z=270,dt-=at):E===270&&(z=0,nt+=ot),Yl(y,nt,dt)===ht-1?_v(a,y,nt,dt,z,!1,z):(nt=x,dt=b,E===0?(z=270,dt-=at):E===90?(z=0,nt+=ot):E===180?(z=90,dt+=at):E===270&&(z=180,nt-=ot),Yl(y,nt,dt)===ht-1&&_v(a,y,nt,dt,z,!1,z))),a.yf(x,b)}zn.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=lr(y,a,x.x,x.y,b.x,b.y),z=0,nt=1;nt<this.pointsCount-1;nt++){x=this.i(nt+1);var ot=lr(y,a,b.x,b.y,x.x,x.y);b=x,ot<E&&(z=nt,E=ot)}return z},zn.prototype.qc=function(){this.lk=!1,this.v()},zn.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 Ri&&(E.ua=this.ua)}}},zn.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,b=this.diagram;b!==null&&Oc(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 nt=this.computeCurve();if(nt===ya&&3<=y&&!Je.$(this.smoothness,0))if(y===3){var ot=this.i(1);b=Math.min(E.x,ot.x);var at=Math.min(E.y,ot.y);ot=this.i(2),b=Math.min(b,ot.x),at=Math.min(at,ot.y)}else{if(this.isOrthogonal)for(at=0;at<y;at++)ot=b[at],z.x=Math.min(ot.x,z.x),z.y=Math.min(ot.y,z.y);else for(b=3;b<y;b+=3)b+3>=y&&(b=y-1),at=this.i(b),z.x=Math.min(at.x,z.x),z.y=Math.min(at.y,z.y);b=z.x,at=z.y}else{for(at=0;at<y;at++)ot=b[at],z.x=Math.min(ot.x,z.x),z.y=Math.min(ot.y,z.y);b=z.x,at=z.y}if(b-=this.su.x,at-=this.su.y,E.x-=b,E.y-=at,y!==2||Oc(this)){if(a.type=Un.o,ot=N1(a),this.computeShortLength(!0)!==0&&(E=vd(this,E,!0,z)),Ef(ot,E.x,E.y,!1),nt===ya&&3<=y&&!Je.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-b,x=x.y-at,E=this.i(2).copy(),E.x-=b,E.y-=at,this.computeShortLength(!1)!==0&&(E=vd(this,E,!1,z)),Xu(ot,y,x,y,x,E.x,E.y);else if(this.isOrthogonal){y=Se.allocAt(b,at),x=Se.alloc(),x.assign(this.i(1)),z=Se.allocAt(b,at),E=Se.allocAt(b,at),nt=this.i(0);for(var ht,dt=this.smoothness/3,Et=1;Et<this.pointsCount-1;Et++){ht=this.i(Et);var Ht=nt,Jt=ht,ee=this.i(Jv(this,ht,Et,!1));if((!Je.$(Ht.x,Jt.x)||!Je.$(Jt.x,ee.x))&&(!Je.$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se.free(x),Se.free(z),Se.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),nt=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(nt=vd(this,nt.copy(),!1,ji)),Xu(ot,z.x-b,z.y-at,E.x-b,E.y-at,nt.x-b,nt.y-at);else{for(z=Se.alloc(),z.assign(this.i(0)),E=Se.alloc(),E.assign(z),nt=this.computeCorner(),Et=1,ht=0;Et<y;){if(Et=Jv(this,z,Et,1<Et),dt=this.i(Et),Et>=y-1){if(!z.D(dt))this.computeShortLength(!1)!==0&&(dt=vd(this,dt.copy(),!1,ji)),yd(this,ot,-b,-at,z,dt,x);else if(ht===0)for(Et=1;Et<y;)E.assign(z),dt=this.i(Et++),yd(this,ot,-b,-at,z,dt,x),z.assign(dt);break}if(ht=Jv(this,dt,Et+1,Et<y-3),Et=-b,Ce=-at,Ht=dt,ve=this.i(ht),se=x,Je.B(z.y,Ht.y)&&Je.B(Ht.x,ve.x))if(ee=Math.min(nt,Math.abs(Ht.x-E.x)/2),ee=Ie=Math.min(ee,Math.abs(ve.y-Ht.y)/2),Je.B(ee,0))yd(this,ot,Et,Ce,z,Ht,se),z.assign(Ht);else{var Be=Ht.x,Ve=Ht.y;Jt=Be,Ae=Ve,Ht.x>z.x?Be=Ht.x-ee:Be=Ht.x+ee,ve.y>Ht.y?Ae=Ht.y+Ie:Ae=Ht.y-Ie,ve=Se.allocAt(Be,Ve),yd(this,ot,Et,Ce,z,ve,se),Se.free(ve),Rm(ot,Ht.x+Et,Ht.y+Ce,Jt+Et,Ae+Ce),z.h(Jt,Ae)}else Je.B(z.x,Ht.x)&&Je.B(Ht.y,ve.y)?(ee=Math.min(nt,Math.abs(Ht.y-E.y)/2),ee=Ie=Math.min(ee,Math.abs(ve.x-Ht.x)/2),Je.B(Ie,0)?(yd(this,ot,Et,Ce,z,Ht,se),z.assign(Ht)):(Be=Ht.x,Ve=Ht.y,Jt=Be,Ae=Ve,Ht.y>z.y?Ve=Ht.y-ee:Ve=Ht.y+ee,ve.x>Ht.x?Jt=Ht.x+Ie:Jt=Ht.x-Ie,ve=Se.allocAt(Be,Ve),yd(this,ot,Et,Ce,z,ve,se),Se.free(ve),Rm(ot,Ht.x+Et,Ht.y+Ce,Jt+Et,Ae+Ce),z.h(Jt,Ae))):(yd(this,ot,Et,Ce,z,Ht,se),z.assign(Ht));E.assign(dt),Et=ht}Se.free(z)}jm=ot}else ot=this.i(1).copy(),ot.x-=b,ot.y-=at,this.computeShortLength(!0)!==0&&(E=vd(this,E,!0,z)),this.computeShortLength(!1)!==0&&(ot=vd(this,ot,!1,z)),a.type=Un.j,a.startX=E.x,a.startY=E.y,a.endX=ot.x,a.endY=ot.y;return this.lk=!0,a};function Xm(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),Je.$(a,0)?y:Je.$(y,0)?a:Math.sqrt(a*a+y*y)))}function vd(a,y,x,b){var E=a.pointsCount;if(2>E)return y;if(x){var z=a.i(1);if(x=z.x-b.x,z=z.y-b.y,b=Xm(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=Xm(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;Je.$(y.x,z.x)&&Je.$(y.y,z.y);){if(x>=E)return E-1;z=a.i(x++)}if(!Je.$(y.x,z.x)&&!Je.$(y.y,z.y))return x-1;for(var nt=z;Je.$(y.x,z.x)&&Je.$(z.x,nt.x)&&(!b||(y.y>=z.y?z.y>=nt.y:z.y<=nt.y))||Je.$(y.y,z.y)&&Je.$(z.y,nt.y)&&(!b||(y.x>=z.x?z.x>=nt.x:z.x<=nt.x));){if(x>=E)return E-1;nt=a.i(x++)}return x-2}zn.prototype.computeJumpLength=function(){return 10};function yd(a,y,x,b,E,z,nt){if(!nt&&Oc(a)){nt=a.computeJumpLength();var ot=nt/2,at=[],ht=0;if(a.isVisible()&&(ht=Lx(a,E,z,at)),0<ht){if(Je.B(E.y,z.y))if(E.x<z.x)for(var dt=0;dt<ht;){var Et=Math.max(E.x,Math.min(at[dt++]-ot,z.x-nt));y.lineTo(Et+x,z.y+b);for(var Ht=Et+x,Jt=Math.min(Et+nt,z.x);dt<ht&&(Et=at[dt],Et<Jt+nt);)dt++,Jt=Math.min(Et+ot,z.x);Et=z.y-nt+b,Jt+=x;var ee=z.y+b;a.curve===Qu?Ef(y,Jt,ee,!1):Xu(y,Ht,Et,Jt,Et,Jt,ee)}else for(--ht;0<=ht;){for(dt=Math.min(E.x,Math.max(at[ht--]+ot,z.x+nt)),y.lineTo(dt+x,z.y+b),Ht=dt+x,Et=Math.max(dt-nt,z.x);0<=ht&&(dt=at[ht],dt>Et-nt);)ht--,Et=Math.max(dt-ot,z.x);dt=z.y-nt+b,Et+=x,Jt=z.y+b,a.curve===Qu?Ef(y,Et,Jt,!1):Xu(y,Ht,dt,Et,dt,Et,Jt)}else if(Je.B(E.x,z.x))if(E.y<z.y)for(dt=0;dt<ht;){for(Et=Math.max(E.y,Math.min(at[dt++]-ot,z.y-nt)),y.lineTo(z.x+x,Et+b),Ht=Et+b,Et=Math.min(Et+nt,z.y);dt<ht&&(Jt=at[dt],Jt<Et+nt);)dt++,Et=Math.min(Jt+ot,z.y);Jt=z.x-nt+x,ee=z.x+x,Et+=b,a.curve===Qu?Ef(y,ee,Et,!1):Xu(y,Jt,Ht,Jt,Et,ee,Et)}else for(--ht;0<=ht;){for(dt=Math.min(E.y,Math.max(at[ht--]+ot,z.y+nt)),y.lineTo(z.x+x,dt+b),Ht=dt+b,dt=Math.max(dt-nt,z.y);0<=ht&&(Et=at[ht],Et>dt-nt);)ht--,dt=Math.max(Et-ot,z.y);Et=z.x-nt+x,Jt=z.x+x,dt+=b,a.curve===Qu?Ef(y,Jt,dt,!1):Xu(y,Et,Ht,Et,dt,Jt,dt)}}}y.lineTo(z.x+x,z.y+b)}function Lx(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 nt=z.length,ot=0;ot<nt;ot++){var at=z[ot];if(at instanceof zn){if(at===a)return 0<b.length&&b.sort(function(dt,Et){return dt-Et}),b.length;if(at.isVisible()&&Oc(at)){var ht=at.routeBounds;ht.w()&&a.routeBounds.Yc(ht)&&!a.usesSamePort(at)&&(ht=at.path,ht!==null&&ht.Ed()&&Ax(y,x,b,at))}}}}}return 0<b.length&&b.sort(function(dt,Et){return dt-Et}),b.length}function Ax(a,y,x,b){for(var E=Je.B(a.y,y.y),z=b.pointsCount,nt=b.i(0),ot=Se.alloc(),at=1;at<z;at++){var ht=b.i(at);if(at<z-1){var dt=b.i(at+1);if(nt.y===ht.y&&ht.y===dt.y){if(ht.x>nt.x&&dt.x>=ht.x||ht.x<nt.x&&dt.x<=ht.x)continue}else if(nt.x===ht.x&&ht.x===dt.x&&(ht.y>nt.y&&dt.y>=ht.y||ht.y<nt.y&&dt.y<=ht.y))continue}t:{dt=a.x;var Et=a.y,Ht=y.x,Jt=y.y,ee=nt.x;nt=nt.y;var se=ht.x,Ce=ht.y;if(Je.B(dt,Ht)){if(!Je.B(Et,Jt)&&Je.B(nt,Ce)&&Math.min(Et,Jt)<nt&&Math.max(Et,Jt)>nt&&Math.min(ee,se)<dt&&Math.max(ee,se)>dt&&!Je.B(ee,se)){ot.x=dt,ot.y=nt,dt=!0;break t}}else if(Je.B(Et,Jt)&&Je.B(ee,se)&&Math.min(dt,Ht)<ee&&Math.max(dt,Ht)>ee&&Math.min(nt,Ce)<Et&&Math.max(nt,Ce)>Et&&!Je.B(nt,Ce)){ot.x=ee,ot.y=Et,dt=!0;break t}ot.x=0,ot.y=0,dt=!1}dt&&(E?x.push(ot.x):x.push(ot.y)),nt=ht}Se.free(ot)}function Oc(a){return a=a.curve,a===Mf||a===Qu}function Ym(a,y){(y||Oc(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()))}zn.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 nt=E.length,ot=0;ot<nt;ot++){var at=E[ot];at instanceof zn&&(at===this?z=!0:z&&eS(this,at,a))}}else if(b)for(z=E.Pa.s,E=z.length,nt=0;nt<E;nt++)ot=z[nt],ot instanceof zn&&eS(this,ot,a)}}}}};function eS(a,y,x){if(y!==null&&y.lk&&y.fd&&Oc(y)){var b=y.routeBounds;b.w()&&(a.routeBounds.Yc(b)||x.Yc(b))&&(a.usesSamePort(y)||y.qc())}}zn.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},zn.prototype.isVisible=function(){if(!di.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},zn.prototype.Zb=function(a){if(di.prototype.Zb.call(this,a),a&&Ym(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},zn.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?Jg:this.qk};function Yg(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,nt=y.jb.s,ot=nt.length,at=0;at<ot;at++){var ht=nt[at];(ht.ef===y&&ht.ff===b&&ht.uf===x&&ht.vf===E||ht.ef===x&&ht.ff===E&&ht.uf===y&&ht.vf===b)&&(z===null?z=ht:(a===null&&(a=[],a.push(z)),a.push(ht)))}if(a!==null){for(z=G1(y,x,b,E),z===null&&(z=new $m(y,b,x,E),U1(y,z),U1(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function _g(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(un(y.links,a),y.Sl()))}zn.prototype.ph=function(){return!0},we.Object.defineProperties(zn.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),_g(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 nt=!0;b!==null&&(nt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=nt)}a!==null&&(this.uf!==a&&Wm(a,this,E),Yg(this),this.C(1)),this.g("fromNode",y,a),Lf(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&sa(x),_g(this),this.ff=a;var b=this.fromPort;b!==null&&sa(b);var E=this.diagram;if(E!==null){var z=this.data,nt=E.model;z!==null&&nt.ri()&&nt.xv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(nt=!0,E!==null&&(nt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=nt))),Yg(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),_g(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 nt=!0;b!==null&&(nt=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=nt)}a!==null&&(this.ef!==a&&Wm(a,this,E),Yg(this),this.C(1)),this.g("toNode",y,a),Lf(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&sa(x),_g(this),this.vf=a;var b=this.toPort;b!==null&&sa(b);var E=this.diagram;if(E!==null){var z=this.data,nt=E.model;z!==null&&nt.ri()&&nt.Cv(z,a)}x!==b&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(nt=!0,E!==null&&(nt=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=nt))),Yg(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:Cr},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&&sa(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&&pn(a,">= 0",zn,"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:Cr},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&&sa(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&&pn(a,">= 0",zn,"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?Ai: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&&Xg(this.fromNode),this.toNode!==null&&Xg(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof Ri?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()===ya&&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),Je.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 nt=this.i(z-2);z+3>=b&&(z=b-1);var ot=this.i(z-1),at=this.i(z);Je.Dl(E.x,E.y,nt.x,nt.y,ot.x,ot.y,at.x,at.y,.5,a),y=Math.min(at.x,y),x=Math.min(at.y,x),E=at}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 Se)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||Km(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);Je.$(b.x,E.x)?(b=E.y-b.y,0>b&&(b=-b)):Je.$(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 bn,b=0;b<a.length/2;b++)E=new Se(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(!Ke(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){b=!1;break}}if(b)for(x=new bn,b=0;b<a.length;b++)E=a[b],x.add(new Se(E.x,E.y).freeze())}}else if(a instanceof bn)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else Pe("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),Km(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&Qd(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||!Af(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Af(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(),Ym(this,y===Qu||y===Mf||a===Qu||a===Mf),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(),Ym(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)}}}),zn.prototype.invalidateOtherJumpOvers=zn.prototype.Xo,zn.prototype.findClosestSegment=zn.prototype.ez,zn.prototype.updateRoute=zn.prototype.vg,zn.prototype.invalidateRoute=zn.prototype.bb,zn.prototype.rollbackRoute=zn.prototype.rv,zn.prototype.commitRoute=zn.prototype.zf,zn.prototype.startRoute=zn.prototype.uh,zn.prototype.clearPoints=zn.prototype.Fj,zn.prototype.removePoint=zn.prototype.pv,zn.prototype.addPointAt=zn.prototype.yf,zn.prototype.addPoint=zn.prototype.ne,zn.prototype.insertPointAt=zn.prototype.m,zn.prototype.insertPoint=zn.prototype.Kz,zn.prototype.setPointAt=zn.prototype.L,zn.prototype.setPoint=zn.prototype.dd,zn.prototype.getPoint=zn.prototype.i,zn.prototype.getOtherPort=zn.prototype.Cz,zn.prototype.getOtherNode=zn.prototype.To;var Sd=null,xd=null,Qv=new dn(zn,"Normal",1),Mx=new dn(zn,"Orthogonal",2),Tx=new dn(zn,"AvoidsNodes",6),nS=new dn(zn,"AvoidsNodesStraight",7),Ts=new dn(zn,"None",0),ya=new dn(zn,"Bezier",9),Qu=new dn(zn,"JumpGap",10),Mf=new dn(zn,"JumpOver",11),Jg=new dn(zn,"End",17),_m=new dn(zn,"Scale",18),Jm=new dn(zn,"Stretch",19),Qg=new dn(zn,"OrientAlong",21),qg=new dn(zn,"OrientPlus90",22),$g=new dn(zn,"OrientMinus90",23),qv=new dn(zn,"OrientOpposite",24),Qm=new dn(zn,"OrientUpright",25),tp=new dn(zn,"OrientPlus90Upright",26),ep=new dn(zn,"OrientMinus90Upright",27),qm=new dn(zn,"OrientUpright45",28),iS=16,rS=14,np=8;zn.className="Link",zn.Normal=Qv,zn.Orthogonal=Mx,zn.AvoidsNodes=Tx,zn.AvoidsNodesStraight=nS,zn.None=Ts,zn.Bezier=ya,zn.JumpGap=Qu,zn.JumpOver=Mf,zn.End=Jg,zn.Scale=_m,zn.Stretch=Jm,zn.OrientAlong=Qg,zn.OrientPlus90=qg,zn.OrientMinus90=$g,zn.OrientOpposite=qv,zn.OrientUpright=Qm,zn.OrientPlus90Upright=tp,zn.OrientMinus90Upright=ep,zn.OrientUpright45=qm,zn.EndSegmentStep=8,zn.CurvinessStart=iS,zn.SpacingMin=rS,zn.OrthoShortCut=np;function $m(a,y,x,b){Oi(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=b,this.links=[]}$m.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},$m.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))}},$m.className="LinkBundle";function ip(a){Oi(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}ip.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=$v,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 Tf(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function Yl(a,y,x){return Tf(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):$v}function oS(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var x=a.ac[y],b=0;b<=a.ei;b++)x[b]>=Ic&&(x[b]=$v)}ip.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]===qu)return!1}return!0};function _l(a,y,x,b,E,z,nt,ot,at){if(!(y<z||y>nt||x<ot||x>at)){var ht=y|0,dt=x|0,Et=a.ac[ht][dt];if(Et>=Ic&&Et<kf)for(E?dt+=b:ht+=b,Et+=1;z<=ht&&ht<=nt&&ot<=dt&&dt<=at&&!(Et>=a.ac[ht][dt]);)a.ac[ht][dt]=Et,Et+=1,E?dt+=b:ht+=b;if(ht=E?dt:ht,E)if(0<b)for(x+=b;x<ht;x+=b)_l(a,y,x,1,!E,z,nt,ot,at),_l(a,y,x,-1,!E,z,nt,ot,at);else for(x+=b;x>ht;x+=b)_l(a,y,x,1,!E,z,nt,ot,at),_l(a,y,x,-1,!E,z,nt,ot,at);else if(0<b)for(y+=b;y<ht;y+=b)_l(a,y,x,1,!E,z,nt,ot,at),_l(a,y,x,-1,!E,z,nt,ot,at);else for(y+=b;y>ht;y+=b)_l(a,y,x,1,!E,z,nt,ot,at),_l(a,y,x,-1,!E,z,nt,ot,at)}}function t0(a,y,x,b,E,z,nt,ot,at){y|=0,x|=0;var ht=qu,dt=Ic;for(a.ac[y][x]=dt;ht===qu&&y>z&&y<nt&&x>ot&&x<at;)dt+=1,a.ac[y][x]=dt,E?x+=b:y+=b,ht=a.ac[y][x]}function e0(a,y,x,b,E,z,nt,ot,at){y|=0,x|=0;var ht=qu,dt=kf;for(a.ac[y][x]=dt;ht===qu&&y>z&&y<nt&&x>ot&&x<at;)a.ac[y][x]=dt,E?x+=b:y+=b,ht=a.ac[y][x]}function sS(a,y,x,b,E,z,nt){if(a.ac!==null){a.abort=!1;var ot=y.x,at=y.y;if(Tf(a,ot,at)){ot-=a.Nd,ot/=a.rc,at-=a.Od,at/=a.sc;var ht=b.x,dt=b.y;if(Tf(a,ht,dt))if(ht-=a.Nd,ht/=a.rc,dt-=a.Od,dt/=a.sc,1>=Math.abs(ot-ht)&&1>=Math.abs(at-dt))a.abort=!0;else{var Et=z.x;b=z.y,y=z.x+z.width;var Ht=z.y+z.height;Et-=a.Nd,Et/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,Ht-=a.Od,Ht/=a.sc,z=Math.max(0,Math.min(a.di,Et|0)),y=Math.min(a.di,Math.max(0,y|0)),Et=Math.max(0,Math.min(a.ei,b|0)),Ht=Math.min(a.ei,Math.max(0,Ht|0)),b=a.ac,ot|=0,at|=0,ht|=0,dt|=0;var Jt=x===0||x===90?1:-1;if(x=x===90||x===270,b[ot][at]===qu?(t0(a,ot,at,Jt,x,z,y,Et,Ht),t0(a,ot,at,1,!x,z,y,Et,Ht),t0(a,ot,at,-1,!x,z,y,Et,Ht)):t0(a,ot,at,Jt,x,ot,at,ot,at),b[ht][dt]===qu?(e0(a,ht,dt,E===0||E===90?1:-1,E===90||E===270,z,y,Et,Ht),e0(a,ht,dt,1,!(E===90||E===270),z,y,Et,Ht),e0(a,ht,dt,-1,!(E===90||E===270),z,y,Et,Ht)):e0(a,ht,dt,Jt,x,ht,dt,ht,dt),x=sn(),nt&&aS(a,ht,dt,E,ot,at,x))for((x[0]!==ht||x[1]!==dt)&&(x.unshift(dt),x.unshift(ht)),(x[x.length-2]!==ot||x[x.length-1]!==at)&&(x.push(ot),x.push(at)),a=Ic,E=x[x.length-2],nt=x[x.length-1],b[E][nt]=a++,z=x.length-4;0<=z;z-=2)for(E=x[z+2],nt=x[z+3],y=x[z],ht=x[z+1];y>E?E++:y<E?E--:ht>nt?nt++:ht<nt&&nt--,b[E][nt]=a++,E!==y||nt!==ht;);else _l(a,ot,at,1,!1,z,y,Et,Ht),_l(a,ot,at,-1,!1,z,y,Et,Ht),_l(a,ot,at,1,!0,z,y,Et,Ht),_l(a,ot,at,-1,!0,z,y,Et,Ht);xn(x)}}}}function aS(a,y,x,b,E,z,nt){for(var ot=a.ac,at=y,ht=x;;){if(at===E&&ht===z)return!0;var dt=at,Et=ht;if(b===0)if(dt<E)dt++;else break;else if(b===90)if(Et<z)Et++;else break;else if(b===180)if(dt>E)dt--;else break;else if(Et>z)Et--;else break;var Ht=ot[dt][Et];if(Ht===0||Ht===ty)break;at=dt,ht=Et}for(;;){if(dt=b,Et=at,Ht=ht,b===0?Ht<z?(dt=90,Ht++):Ht>z&&(dt=270,Ht--):b===90?Et<E?(dt=0,Et++):Et>E&&(dt=180,Et--):b===180?Ht<z?(dt=90,Ht++):Ht>z&&(dt=270,Ht--):Et<E?(dt=0,Et++):Et>E&&(dt=180,Et--),Et=ot[Et][Ht],dt!==b&&Et!==0&&Et!==ty){if(nt.push(at),nt.push(ht),aS(a,at,ht,dt,E,z,nt))return!0;nt.pop(),nt.pop()}if(ot[at][ht]=ty,b===0){if(at===y)return!1;at--}else if(b===90){if(ht===x)return!1;ht--}else if(b===180){if(at===y)return!1;at++}else{if(ht===x)return!1;ht++}}}we.Object.defineProperties(ip.prototype,{bounds:{get:function(){return new yn(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0<a&&a!==this.rc&&(this.rc=a,this.initialize(this.bounds))}},Go:{get:function(){return this.sc},set:function(a){0<a&&a!==this.sc&&(this.sc=a,this.initialize(this.bounds))}}});var qu=0,Ic=1,kf=999999,$v=kf+1,ty=kf+2;ip.className="PositionArray";function wd(){Oi(this),this.port=this.node=null,this.pe=[],this.ap=!1}wd.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",x=0;x<a.length;x++){var b=a[x];b!==null&&(y+=`
|
|
|
`+b.toString())}return y};function 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}wd.prototype.Sl=function(){this.pe.length=0};function lS(a,y){var x=a.pe;if(x.length===0){t:if(!a.ap){x=a.ap,a.ap=!0;var b=null,E=a.node,z=E instanceof Ni?E:null;if(z===null||z.isSubGraphExpanded)var nt=E.isTreeExpanded?E.findLinksConnected(a.port.portId):E.qx();else{if(!z.actualBounds.w()){a.ap=x;break t}b=z,nt=b.Lu()}z=a.pe.length=0;var ot=a.port.ga(No,Se.alloc()),at=a.port.ga(ta,Se.alloc());for(E=yn.allocAt(ot.x,ot.y,0,0),E.Ye(at),Se.free(ot),Se.free(at),ot=Se.allocAt(E.x+E.width/2,E.y+E.height/2),at=a.port.li(),nt=nt.iterator;nt.next();){var ht=nt.value;if(ht.isVisible()&&ht.fromPort!==ht.toPort){var dt=ht.fromPort===a.port||ht.fromNode!==null&&ht.fromNode.Td(b),Et=ht.computeSpot(dt,a.port);if(Et.$c()&&(dt=dt?ht.toPort:ht.fromPort,dt!==null)){var Ht=dt.part;if(Ht!==null){var Jt=Ht.findVisibleNode();Jt!==null&&Jt!==Ht&&(Ht=Jt,dt=Ht.port),dt=ht.computeOtherPoint(Ht,dt),Ht=ot.ab(dt),Ht-=at,0>Ht?Ht+=360:360<=Ht&&(Ht-=360),Et=kx(E,Et,Ht,ht.isOrthogonal),Et===0?(Et=4,180<Ht&&(Ht-=360)):Et===90?(Et=8,270<Ht&&(Ht-=360)):Et===180?Et=2:(Et=1,90>Ht&&(Ht+=360)),Jt=a.pe[z],Jt===void 0?(Jt=new ey(ht,Ht,Et),a.pe[z]=Jt):(Jt.link=ht,Jt.angle=Ht,Jt.Nc=Et),Jt.hv.set(dt),z++}}}}for(Se.free(ot),a.pe.sort(wd.prototype.j),at=a.pe.length,b=-1,z=ot=0;z<at;z++)nt=a.pe[z],nt!==void 0&&(nt.Nc!==b&&(b=nt.Nc,ot=0),nt.Uo=ot,ot++);for(b=-1,ot=0,z=at-1;0<=z;z--)at=a.pe[z],at!==void 0&&(at.Nc!==b&&(b=at.Nc,ot=at.Uo+1),at.Gl=ot);if(z=a.pe,Et=a.port,b=a.node.portSpreading,ot=Se.alloc(),at=Se.alloc(),nt=Se.alloc(),ht=Se.alloc(),Et.ga(No,ot),Et.ga(iu,at),Et.ga(ta,nt),Et.ga(Qs,ht),Jt=Ht=dt=Et=0,b===Kv)for(var ee=0;ee<z.length;ee++){var se=z[ee];if(se!==null){var Ce=se.link.computeThickness();switch(se.Nc){case 8:Ht+=Ce;break;case 2:Jt+=Ce;break;case 1:Et+=Ce;break;default:case 4:dt+=Ce}}}var ve=ee=0,Ae=1,Ie=se=0;for(Ce=0;Ce<z.length;Ce++){var Be=z[Ce];if(Be!==null){if(ee!==Be.Nc){switch(ee=Be.Nc,ee){case 8:var Ve=nt;ve=ht;break;case 2:Ve=ht,ve=ot;break;case 1:Ve=ot,ve=at;break;default:case 4:Ve=at,ve=nt}switch(se=ve.x-Ve.x,Ie=ve.y-Ve.y,ee){case 8:Ht>Math.abs(se)?(Ae=Math.abs(se)/Ht,Ht=Math.abs(se)):Ae=1;break;case 2:Jt>Math.abs(Ie)?(Ae=Math.abs(Ie)/Jt,Jt=Math.abs(Ie)):Ae=1;break;case 1:Et>Math.abs(se)?(Ae=Math.abs(se)/Et,Et=Math.abs(se)):Ae=1;break;default:case 4:dt>Math.abs(Ie)?(Ae=Math.abs(Ie)/dt,dt=Math.abs(Ie)):Ae=1}ve=0}var rn=Be.Zo;if(b===Kv){switch(Be=Be.link.computeThickness(),Be*=Ae,rn.set(Ve),ee){case 8:rn.x=Ve.x+se/2+Ht/2-ve-Be/2;break;case 2:rn.y=Ve.y+Ie/2+Jt/2-ve-Be/2;break;case 1:rn.x=Ve.x+se/2-Et/2+ve+Be/2;break;default:case 4:rn.y=Ve.y+Ie/2-dt/2+ve+Be/2}ve+=Be}else{var Kn=.5;b===Gm&&(Kn=(Be.Uo+1)/(Be.Gl+1)),rn.x=Ve.x+se*Kn,rn.y=Ve.y+Ie*Kn}}}for(Se.free(ot),Se.free(at),Se.free(nt),Se.free(ht),Ve=a.pe,z=0;z<Ve.length;z++)b=Ve[z],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,yn.free(E)}x=a.pe}for(a=0;a<x.length;a++)if(E=x[a],E!==null&&E.link===y)return E;return null}wd.prototype.j=function(a,y){return a===y?0:a===null?-1:y===null?1:a.Nc<y.Nc?-1:a.Nc>y.Nc?1:a.angle<y.angle?-1:a.angle>y.angle?1:0},wd.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,ao,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)},wd.className="Knot";function ey(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new Se,this.Gl=this.Uo=0,this.Zo=new Se,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 Gr(a){Oi(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Se(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Gr.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},Gr.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Gr.prototype.qb=function(){},Gr.prototype.toString=function(){var a=gn(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Gr.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())}}},Gr.prototype.createNetwork=function(){return new Dr(this)},Gr.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof on?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Ni?y.lg(a.memberParts):y.lg(a.iterator),y},Gr.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")}},Gr.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()}},Gr.prototype.doLayout=function(a){var y=new En;a instanceof on?(Wh(this,y,a.nodes,!0,this.rh,!0,!1,!0),Wh(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof Ni?Wh(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},Gr.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,nt=0;for(a=a.iterator;a.next();){var ot=a.value;rp(ot);var at=ot.measuredBounds,ht=at.width;at=at.height,ot.moveTo(b,E),ot instanceof Ni&&(ot.rh=!1),b+=Math.max(ht,50)+20,nt=Math.max(nt,Math.max(at,50)),z>=y-1?(z=0,b=x,E+=nt+20,nt=0):z++}},Gr.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,nt=this.network.vertexes.iterator;nt.next();){var ot=nt.value.node;if(!(ot===null||ot instanceof zn)&&(rp(ot),this.rh(ot))){var at=ot.measuredBounds,ht=at.width;at=at.height,ot.moveTo(x,b),ot instanceof Ni&&(ot.rh=!1),x+=Math.max(ht,50)+20,z=Math.max(z,Math.max(at,50)),E>=a-1?(E=0,x=y,b+=z+20,z=0):E++}}},Gr.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Ni&&a.rh)};function Wh(a,y,x,b,E,z,nt,ot){for(x=x.iterator;x.next();){var at=x.value;b&&!at.isTopLevel||E!==null&&!E(at)||!at.canLayout()||(z&&at instanceof Vn?at.isLinkLabel||(at instanceof Ni&&at.layout===null?Wh(a,y,at.memberParts,!1,E,z,nt,ot):(rp(at),y.add(at))):nt&&at instanceof zn?y.add(at):!ot||!at.Zc()||at instanceof Vn||(rp(at),y.add(at)))}}function rp(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}Gr.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new yn),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Gr.prototype.ex=function(a){var y=new En;return a instanceof on?(Wh(this,y,a.nodes,!0,null,!0,!0,!0),Wh(this,y,a.links,!0,null,!0,!0,!0),Wh(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Ni?Wh(this,y,a.memberParts,!1,null,!0,!0,!0):Wh(this,y,a.iterator,!1,null,!0,!0,!0),y},Gr.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(No),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},we.Object.defineProperties(Gr.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())}}}),Gr.prototype.collectParts=Gr.prototype.ex,Gr.prototype.getLayoutBounds=Gr.prototype.ni,Gr.prototype.invalidateLayout=Gr.prototype.C,Gr.className="Layout";function Dr(a){Oi(this),this.Sc=a,this.wf=new En,this.ye=new En,this.Es=new qn,this.zs=new qn}Dr.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 En,this.ye=new En,this.Es=new qn,this.zs=new qn},Dr.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},Dr.prototype.createVertex=function(){return new Ao(this)},Dr.prototype.createEdge=function(){return new aa(this)},Dr.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(nt){if(nt instanceof Vn)return!nt.isLinkLabel;if(nt instanceof zn){var ot=nt.fromNode;return ot===null||ot.isLinkLabel?!1:(nt=nt.toNode,!(nt===null||nt.isLinkLabel))}return!1}),a=a.iterator;a.next();){var b=a.value;if(b instanceof Vn&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof Ni&&b.layout===null)this.lg(b.memberParts,!1);else if(this.ki(b)===null){var E=this.createVertex();E.node=b,this.dh(E)}}}for(a.reset();a.next();)if(b=a.value,b instanceof zn&&(!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))}}},Dr.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},ne=Dr.prototype,ne.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},ne.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},ne.Iu=function(a){if(a!==null&&uS(this,a)){for(var y=a.tg,x=y.count-1;0<=x;x--){var b=y.M(x);this.Mj(b)}for(y=a.mg,a=y.count-1;0<=a;a--)x=y.M(a),this.Mj(x)}};function uS(a,y){if(y===null)return!1;var x=a.wf.remove(y);return x&&(y=y.node,y!==null&&a.Es.remove(y)),x}ne.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},ne.ki=function(a){return a===null?null:this.Es.I(a)},ne.Bo=function(a){if(a!==null){ny(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function ny(a,y){if(y!==null){a.ye.add(y);var x=y.link;x!==null&&a.Lo(x)===null&&a.zs.add(x,y),y.network=a}}ne.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},ne.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),iy(this,a)}};function iy(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}ne.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},ne.Lo=function(a){return a===null?null:this.zs.I(a)},ne.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},ne.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))}},ne.Ko=function(){for(var a=sn(),y=this.ye.iterator;y.next();){var x=y.value;x.fromVertex===x.toVertex&&a.push(x)}for(y=a.length,x=0;x<y;x++)this.Mj(a[x]);xn(a)},Dr.prototype.deleteArtificialVertexes=function(){for(var a=sn(),y=this.wf.iterator;y.next();){var x=y.value;x.node===null&&x.data===null&&a.push(x)}for(x=a.length,y=0;y<x;y++)this.Iu(a[y]);for(y=sn(),x=this.ye.iterator;x.next();){var b=x.value;b.link===null&&b.data===null&&y.push(b)}for(x=y.length,b=0;b<x;b++)this.Mj(y[b]);xn(a),xn(y)};function Nx(a){for(var y=sn(),x=a.ye.iterator;x.next();){var b=x.value;b.fromVertex!==null&&b.toVertex!==null||y.push(b)}for(x=y.length,b=0;b<x;b++)a.Mj(y[b]);xn(y)}Dr.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),Nx(this),this.Ko()),a=new bn;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),ry(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 ry(a,y,x){if(x!==null&&x.network!==y){uS(a,x),y.dh(x);for(var b=x.sourceEdges;b.next();){var E=b.value;E.network!==y&&(iy(a,E),ny(y,E),ry(a,y,E.fromVertex))}for(b=x.destinationEdges;b.next();)x=b.value,x.network!==y&&(iy(a,x),ny(y,x),ry(a,y,x.toVertex))}}Dr.prototype.dz=function(){for(var a=new En,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},we.Object.defineProperties(Dr.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}}}),Dr.prototype.findAllParts=Dr.prototype.dz,Dr.prototype.splitIntoSubNetworks=Dr.prototype.Zx,Dr.prototype.deleteSelfEdges=Dr.prototype.Ko,Dr.prototype.reverseEdge=Dr.prototype.gm,Dr.prototype.linkVertexes=Dr.prototype.Zj,Dr.prototype.findEdge=Dr.prototype.Lo,Dr.prototype.deleteLink=Dr.prototype.Yy,Dr.prototype.deleteEdge=Dr.prototype.Mj,Dr.prototype.addLink=Dr.prototype.Dy,Dr.prototype.addEdge=Dr.prototype.Bo,Dr.prototype.findVertex=Dr.prototype.ki,Dr.prototype.deleteNode=Dr.prototype.Zy,Dr.prototype.deleteVertex=Dr.prototype.Iu,Dr.prototype.addNode=Dr.prototype.Bl,Dr.prototype.addVertex=Dr.prototype.dh,Dr.prototype.addParts=Dr.prototype.lg,Dr.className="LayoutNetwork";function Ao(a){Oi(this),this.ob=a,this.j=new yn(0,0,10,10).freeze(),this.o=new Se(5,5).freeze(),this.Sh=this.ub=null,this.tg=new bn,this.mg=new bn}Ao.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new bn,this.mg=new bn},Ao.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+_i(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},Ao.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;Ke(x)?(x.x=y.x,x.y=y.y,x.width=y.width,x.height=y.height):a.bounds=y.copy()}else if(a=this.node,a!==null){if(y=this.bounds,!(a instanceof Ni)){x=yn.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(ur);if(b.w()&&E.w()){a.moveTo(y.x+this.focusX-(E.x-b.x),y.y+this.focusY-(E.y-b.y)),yn.free(x);return}yn.free(x)}a.moveTo(y.x,y.y)}},Ao.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},Ao.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},Ao.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},Ao.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function oy(a,y){return a=a.Sh,y=y.Sh,a?y?(a=a.text,y=y.text,a<y?-1:a>y?1:0):1:y!==null?-1:0}we.Object.defineProperties(Ao.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=yn.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),yn.free(x),!(a instanceof Ni)&&(a=a.locationObject.ga(ur),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 En,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new En,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new En,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 bn,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}}}),Ao.prototype.deleteDestinationEdge=Ao.prototype.Jl,Ao.prototype.addDestinationEdge=Ao.prototype.zl,Ao.prototype.deleteSourceEdge=Ao.prototype.Kl,Ao.prototype.addSourceEdge=Ao.prototype.Cl,Ao.className="LayoutVertex",Ao.standardComparer=oy,Ao.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 aa(a){Oi(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}aa.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},aa.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+_i(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},aa.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},aa.prototype.commit=function(){},aa.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},we.Object.defineProperties(aa.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)}}}),aa.prototype.getOtherVertex=aa.prototype.Ax,aa.className="LayoutEdge";function Jo(a){Gr.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Wn(NaN,NaN).freeze(),this.tf=new Wn(10,10).freeze(),this.Jb=op,this.Rb=i0,this.nd=sp,this.hd=hS,a&&Object.assign(this,a)}Qe(Jo,Gr),Jo.prototype.cloneProtected=function(a){Gr.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},Jo.prototype.qb=function(a){a.classType===Jo?a===sp||a===o0||a===sy||a===r0?this.sorting=a:a===i0||a===fl?this.arrangement=a:a===op||a===n0?this.alignment=a:Pe("Unknown enum value: "+a):Gr.prototype.qb.call(this,a)},Jo.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var b=x.value;if(!b.ph()||b.fromNode===null&&b.toNode===null){if(b.Va(),b instanceof Ni)for(b=b.memberParts;b.next();)y.remove(b.value)}else y.remove(b)}var E=y.Fa();if(E.length!==0){switch(this.sorting){case r0:E.reverse();break;case sp:E.sort(this.comparer);break;case o0:E.sort(this.comparer),E.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var nt=this.wrappingWidth;switch(isNaN(nt)&&a!==null?(y=a.padding,nt=Math.max(a.viewportBounds.width-y.left-y.right,0)):nt=Math.max(this.wrappingWidth,0),0>=z&&0>=nt&&(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 n0:var ot=y,at=x,ht=yn.alloc(),dt=Math.max(this.cellSize.width,1);if(!isFinite(dt))for(var Et=dt=0;Et<E.length;Et++){var Ht=this.ni(E[Et],ht);dt=Math.max(dt,Ht.width)}if(dt=Math.max(dt+ot,1),Et=Math.max(this.cellSize.height,1),!isFinite(Et))for(Ht=Et=0;Ht<E.length;Ht++){var Jt=this.ni(E[Ht],ht);Et=Math.max(Et,Jt.height)}Et=Math.max(Et+at,1),Ht=this.arrangement;for(var ee=Jt=this.arrangementOrigin.x,se=this.arrangementOrigin.y,Ce=0,ve=0,Ae=0;Ae<E.length;Ae++){var Ie=E[Ae],Be=this.ni(Ie,ht),Ve=Math.ceil((Be.width+ot)/dt)*dt,rn=Math.ceil((Be.height+at)/Et)*Et;switch(Ht){case fl:var Kn=Math.abs(ee-Be.width);break;default:Kn=ee+Be.width}switch((0<z&&Ce>z-1||0<nt&&0<Ce&&Kn-Jt>nt)&&(b.push(new yn(0,se,nt+ot,ve)),Ce=0,ee=Jt,se+=ve,ve=0),ve=Math.max(ve,rn),Ht){case fl:Be=-Be.width;break;default:Be=0}switch(Ie.moveTo(ee+Be,se),Ht){case fl:ee-=Ve;break;default:ee+=Ve}Ce++}b.push(new yn(0,se,nt+ot,ve)),yn.free(ht);break;case op:for(at=nt,dt=z,Et=y,Ht=x,nt=yn.alloc(),Jt=Math.max(this.cellSize.width,1),z=se=ht=0,ot=Se.alloc(),ee=0;ee<E.length;ee++)ve=E[ee],Ce=this.ni(ve,nt),ve=Yu(ve,ve.locationObject,ve.locationSpot,ot),ht=Math.max(ht,ve.x),se=Math.max(se,Ce.width-ve.x),z=Math.max(z,ve.y);switch(ee=this.arrangement,ee){case fl:ht+=Et;break;default:se+=Et}Jt=isFinite(Jt)?Math.max(Jt+Et,1):Math.max(ht+se,1);var $n=ve=this.arrangementOrigin.x;for(Ae=this.arrangementOrigin.y,se=0,at>=ht&&(at-=ht),ht=Ie=0,Ve=Math.max(this.cellSize.height,1),Be=z=0,rn=!0,Ce=Se.alloc(),Kn=0;Kn<E.length;Kn++){var Yn=E[Kn],jn=this.ni(Yn,nt),An=Yu(Yn,Yn.locationObject,Yn.locationSpot,ot);if(0<se)switch(ee){case fl:$n=($n-ve-(jn.width-An.x))/Jt,$n=Je.$(Math.round($n),$n)?Math.round($n):Math.floor($n),$n=$n*Jt+ve;break;default:$n=($n-ve+An.x)/Jt,$n=Je.$(Math.round($n),$n)?Math.round($n):Math.ceil($n),$n=$n*Jt+ve}else switch(ee){case fl:Ie=$n+An.x+jn.width;break;default:Ie=$n-An.x}switch(ee){case fl:var ki=-($n+An.x)+Ie;break;default:ki=$n+jn.width-An.x-Ie}if(0<dt&&se>dt-1||0<at&&0<se&&ki>at){for(b.push(new yn(0,rn?Ae-z:Ae,at+Et,Be+z+Ht)),$n=0;$n<se&&Kn!==se;$n++){ki=E[Kn-se+$n];var Ei=Yu(ki,ki.locationObject,ki.locationSpot,Ce);ki.moveTo(ki.position.x,ki.position.y+z-Ei.y)}Be+=Ht,Ae=rn?Ae+Be:Ae+(Be+z),se=Be=z=0,$n=ve,rn=!1}switch($n===ve&&(ht=ee===fl?Math.max(ht,jn.width-An.x):Math.min(ht,-An.x)),z=Math.max(z,An.y),Be=Math.max(Be,jn.height-An.y),isFinite(Ve)&&(Be=Math.max(Be,Math.max(jn.height,Ve)-An.y)),rn?Yn.moveTo($n-An.x,Ae-An.y):Yn.moveTo($n-An.x,Ae),ee){case fl:$n-=An.x+Et;break;default:$n+=jn.width-An.x+Et}se++}if(b.push(new yn(0,Ae,at+Et,(rn?Be:Be+z)+Ht)),E.length!==se)for(at=0;at<se;at++)dt=E[E.length-se+at],Et=Yu(dt,dt.locationObject,dt.locationSpot,ot),dt.moveTo(dt.position.x,dt.position.y+z-Et.y);if(Se.free(ot),Se.free(Ce),ee===fl)for(E=0;E<b.length;E++)z=b[E],z.width+=ht,z.x-=ht;else for(E=0;E<b.length;E++)z=b[E],z.x>ht&&(z.width+=z.x-ht,z.x=ht);yn.free(nt)}for(ot=z=nt=E=0;ot<b.length;ot++)at=b[ot],E=Math.min(E,at.x),nt=Math.min(nt,at.y),z=Math.max(z,at.x+at.width);this.arrangement===fl?this.commitLayers(b,new Se(E+y/2-(z+E),nt-x/2)):this.commitLayers(b,new Se(E-y/2,nt-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},Jo.prototype.commitLayers=function(){};function hS(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}we.Object.defineProperties(Jo.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!==op&&a!==n0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==i0&&a!==fl||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==sy&&a!==r0&&a!==sp&&a!==o0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var n0=new dn(Jo,"Position",0),op=new dn(Jo,"Location",1),i0=new dn(Jo,"LeftToRight",2),fl=new dn(Jo,"RightToLeft",3),sy=new dn(Jo,"Forward",4),r0=new dn(Jo,"Reverse",5),sp=new dn(Jo,"Ascending",6),o0=new dn(Jo,"Descending",7);Jo.className="GridLayout",Jo.standardComparer=hS,Jo.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},Jo.Position=n0,Jo.Location=op,Jo.LeftToRight=i0,Jo.RightToLeft=fl,Jo.Forward=sy,Jo.Reverse=r0,Jo.Ascending=sp,Jo.Descending=o0;function Er(){this.On=new En,this.Dn=new En,this.Pa=new En,this.cf=new qn,this.bf=new qn,this.aj=new qn,this.H=null,this.tp=!1}ne=Er.prototype,ne.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},ne.Xe=function(a){this.H=a},ne.oi=function(a){if(a instanceof Vn){if(this.On.add(a),a instanceof Ni){var y=a.containingGroup;y===null?this.H.ai.add(a):y.gl.add(a),y=a.layout,y!==null&&(y.diagram=this.H)}}else a instanceof zn?this.Dn.add(a):a instanceof cr||this.Pa.add(a);y=a.data,y===null||a instanceof cr||(a instanceof zn?this.bf.add(y,a):this.cf.add(y,a))},ne.pc=function(a){if(a.Ej(),a instanceof Vn){if(this.On.remove(a),a instanceof Ni){var y=a.containingGroup;y===null?this.H.ai.remove(a):y.gl.remove(a),y=a.layout,y!==null&&(y.diagram=null)}}else a instanceof zn?this.Dn.remove(a):a instanceof cr||this.Pa.remove(a);y=a.data,y===null||a instanceof cr||(a instanceof zn?this.bf.remove(y):this.cf.remove(y))},ne.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var x=y.value,b=y.key;(!x.Zc()||x instanceof Ni)&&Pe('Invalid node template in Diagram.nodeTemplateMap: template for "'+b+'" must be a Node or a simple Part, not a Group or Link: '+x)}for(y=a.groupTemplateMap.iterator;y.next();)x=y.value,b=y.key,x instanceof Ni||Pe('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 zn||Pe('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=sn(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=sn(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=sn(),b=this.nodes.iterator;b.next();){var E=b.value;E.data!==null&&(a.push(E.data),a.push(E.location))}for(b=this.links.iterator;b.next();)E=b.value,E.data!==null&&(a.push(E.data),a.push(E.location));for(b=this.parts.iterator;b.next();)E=b.value,E.data!==null&&(a.push(E.data),a.push(E.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),b=0;b<y.length;b++)E=this.Lc(y[b]),E!==null&&(E.isSelected=!0);for(b=0;b<x.length;b++)E=this.Lc(x[b]),E!==null&&(E.isHighlighted=!0);for(b=0;b<a.length;b+=2)E=this.Lc(a[b]),E!==null&&(E.location=a[b+1]);xn(y),xn(x),xn(a)}},Er.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},Er.prototype.addModeledParts=function(a,y){var x=this,b=this.diagram.model;a.forEach(function(E){b.lb(E)&&cS(x,E,!1)}),a.forEach(function(E){b.lb(E)&&x.resolveReferencesForData(E)}),y!==!1&&of(this.diagram,!1)};function cS(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);t:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var b=a.Ro(y),E=dS(a,y,b);if(E!==null&&(Za(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 t}}b=null}b!==null&&x&&a.resolveReferencesForData(y)}}Er.prototype.insertLink=function(){return null},Er.prototype.resolveReferencesForData=function(){},Er.prototype.Ro=function(a){return this.H.model.Ro(a)};function dS(a,y,x){a=a.H;var b=a.model;return b.Xj()&&b.Yu(y)?(y=a.groupTemplateMap.I(x),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(pS||(pS=!0,On('No Group template found for category "'+x+'"'),On(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(gS||(gS=!0,On('No Node template found for category "'+x+'"'),On(" Using default node template")),y=a.ny))),y}Er.prototype.getLinkCategoryForData=function(){return""},Er.prototype.setLinkCategoryForData=function(){},Er.prototype.setFromNodeForLink=function(){},Er.prototype.setToNodeForLink=function(){},Er.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(mS||(mS=!0,On('No Link template found for category "'+a+'"'),On(" Using default link template")),x=y.my)),x},Er.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},Er.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},Er.prototype.ip=function(a){a=this.Lc(a),a!==null&&(xg(this.diagram,a,!1),this.unresolveReferencesForPart(a))},Er.prototype.unresolveReferencesForPart=function(){},Er.prototype.removeDataForLink=function(){},Er.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},Er.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof Vn?a:null)},Er.prototype.findLinkForKey=function(){return null},ne=Er.prototype,ne.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},ne.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof Vn?a:null)},ne.Kc=function(a){return a===null?null:this.bf.I(a)},ne.ms=function(a){for(var y=0;y<arguments.length;++y);y=new En;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 nt=arguments[z];if(Ke(nt)&&ay(this,E,nt)){y.add(b);break}}}return y.iterator},ne.ls=function(a){for(var y=0;y<arguments.length;++y);y=new En;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 nt=arguments[z];if(Ke(nt)&&ay(this,E,nt)){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(nn(z)){if(!nn(E)||E.length<z.length)return!1;for(var nt=0;nt<E.length;nt++){var ot=z[nt];if(ot!==void 0&&!fS(a,E[nt],ot))return!1}}else if(!fS(a,E,z))return!1}return!0}function fS(a,y,x){if(typeof x=="function"){if(!x(y))return!1}else if(x instanceof RegExp){if(!y||!x.test(y.toString()))return!1}else if(Ke(y)&&Ke(x)){if(!ay(a,y,x))return!1}else if(y!==x)return!1;return!0}Er.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===Xr){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===ho){var nt=a.newValue;b==="nodeDataArray"&&Ke(nt)&&cS(this,nt),y.isModified=!0}else if(x===Eo){var ot=a.oldValue;b==="nodeDataArray"&&Ke(ot)&&this.ip(ot),y.isModified=!0}else x===ia&&(b==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):b==="ModelDisplaced"&&this.Wd());else if(x===Xr){var at=a.propertyName,ht=a.object;ht===y.model?(at==="nodeKeyProperty"||at==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(ht,at),y.isModified=!0}else if(x===ho||x===Eo){var dt=a.change===ho,Et=dt?a.newParam:a.oldParam,Ht=dt?a.newValue:a.oldValue,Jt=this.aj.I(a.object);if(Array.isArray(Jt))for(a=0;a<Jt.length;a++){var ee=Jt[a];if(dt)Cm(ee,Ht,Et,!0);else if(!(0>Et)){var se=Et+Wg(ee);ee.pc(se,!0),wv(ee,se,Et)}}y.isModified=!0}}finally{y.aa=!0}}}}},Er.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)},Er.prototype.rp=function(){for(var a=this.H.model,y=new En,x=a.nodeDataArray,b=0;b<x.length;b++)y.add(x[b]);var E=[];for(this.nodes.each(function(nt){nt.data===null||y.contains(nt.data)||E.push(nt.data)}),this.parts.each(function(nt){nt.data===null||y.contains(nt.data)||E.push(nt.data)}),E.forEach(function(nt){ES(a,nt,!1)}),b=0;b<x.length;b++){var z=x[b];this.Lc(z)===null&&CS(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()},Er.prototype.refreshDataBoundLinks=function(){},Er.prototype.updateRelationshipsFromData=function(){},Er.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 nt=E[z].sx(a);nt!==null&&(x===null&&(x=sn()),x.push(nt))}if(x!==null)break}if(x!==null){for(b=0;b<x.length;b++)x[b].La(y);xn(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function ly(a,y){var x=y.Hh;if(nn(x)){var b=a.aj.I(x);if(b===null)b=[],b.push(y),a.aj.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}function uy(a,y,x){Mc(y,function(nt){nt=nt.O.s;for(var ot=nt.length,at=0;at<ot;at++)Eg(x,nt[at])});var b=y.Hh;if(nn(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}}}}Er.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new qn;if(nn(a))for(var E=0;E<a.length;E++)s0(this,a[E],y,b,x);else for(a=a.iterator;a.next();)s0(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 En;for(var z=new qn,nt=b.iterator;nt.next();){var ot=nt.value;if(ot instanceof zn)a||ot.fromNode!==null&&ot.toNode!==null||E.add(ot);else if(ot instanceof Vn&&ot.data!==null&&x.Tl()){var at=ot;ot=nt.key;var ht=ot.pg();ht!==null&&(ht=b.I(ht),ht!==null?(x.qe(at.data,x.wa(ht.data)),at=y.Kc(at.data),ot=ot.kh(),ot!==null&&at!==null&&z.add(ot,at)):x.qe(at.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 dt=new qn;b.each(function(Et){Et.key.data!==null&&dt.add(Et.key.data,Et.value.data)}),x(dt,y,this.H.model)}for(y=b.iterator;y.next();)y.value.La();return b};function s0(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 di))return null;if(z.isSelected=!1,z.isHighlighted=!1,b.add(y,z),y instanceof Vn){for(var nt=y.linksConnected;nt.next();){var ot=nt.value;if(ot.fromNode===y){var at=b.I(ot);at!==null&&(at.fromNode=z)}ot.toNode===y&&(ot=b.I(ot),ot!==null&&(ot.toNode=z))}if(y instanceof Ni&&z instanceof Ni)for(y=y.memberParts;y.next();)nt=s0(a,y.value,x,b,E),nt instanceof zn||nt===null||(nt.containingGroup=z)}else if(y instanceof zn&&z instanceof zn)for(nt=y.fromNode,nt!==null&&(nt=b.I(nt),nt!==null&&(z.fromNode=nt)),nt=y.toNode,nt!==null&&(nt=b.I(nt),nt!==null&&(z.toNode=nt)),y=y.labelNodes;y.next();)nt=s0(a,y.value,x,b,E),nt!==null&&nt instanceof Vn&&(nt.labeledLink=z);return z}Er.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof zn||(b=E.copyNodeData(b),Ke(b)&&(E.xf(b),x=y.Lc(b)))}else Za(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 zn||(E=y.copyNodeData(b)),Ke(E)&&(x.data=E)));return x},we.Object.defineProperties(Er.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}}}),Er.prototype.updateAllRelationshipsFromData=Er.prototype.rp,Er.prototype.findLinksByExample=Er.prototype.ls,Er.prototype.findNodesByExample=Er.prototype.ms,Er.prototype.findLinkForData=Er.prototype.Kc,Er.prototype.findNodeForData=Er.prototype.ii,Er.prototype.findPartForData=Er.prototype.Lc,Er.prototype.findNodeForKey=Er.prototype.Vb,Er.prototype.removeModeledPart=Er.prototype.ip,Er.prototype.removeModeledParts=Er.prototype.Gs,Er.prototype.rebuildParts=Er.prototype.Wd;var gS=!1,pS=!1,mS=!1;Er.className="PartManager";function Ho(a){Er.apply(this,arguments)}Qe(Ho,Er),Ho.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),vS(this,a.linkDataArray)},Ho.prototype.addModeledParts=function(a){for(Er.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Lf(a.value);of(this.diagram,!1)};function vS(a,y){y.forEach(function(x){yS(a,x)}),of(a.diagram,!1)}function yS(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var x=a.getLinkCategoryForData(y),b=a.findLinkTemplateForCategory(x);if(b!==null){Za(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=h0(x,y,!0);z!==""&&(E.fromPortId=z),z=Sa(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof Vn&&(E.fromNode=z)),z=h0(x,y,!1),z!==""&&(E.toPortId=z),z=Sa(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof Vn&&(E.toNode=z)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(nt){nt=a.Vb(nt),nt!==null&&(nt.labeledLink=E)}),a.tp&&(E.Jg="Tool"),a.diagram.add(E),E.ub=null,E.data=y,a.diagram.skipsModelSourceBindings=b}}}}Ho.prototype.removeAllModeledParts=function(){var a=this.diagram.model;SS(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function SS(a,y){y.forEach(function(x){a.ip(x)})}Ho.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},Ho.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},Ho.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},Ho.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},Ho.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},Ho.prototype.findPartForKey=function(a){var y=Er.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},Ho.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},Ho.prototype.doModelChanged=function(a){var y=this;if(Er.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===Xr){if(E==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var nt=this.Vb(a.newValue);z.fromNode=nt}}else if(E==="linkToKey"){var ot=this.Kc(a.object);if(ot!==null){var at=this.Vb(a.newValue);ot.toNode=at}}else if(E==="linkFromPortId"){var ht=this.Kc(a.object);if(ht!==null){var dt=a.newValue;typeof dt=="string"&&(ht.fromPortId=dt)}}else if(E==="linkToPortId"){var Et=this.Kc(a.object);if(Et!==null){var Ht=a.newValue;typeof Ht=="string"&&(Et.toPortId=Ht)}}else if(E==="nodeGroupKey"){var Jt=this.Lc(a.object);if(Jt!==null){var ee=a.newValue;if(ee!==void 0){var se=this.Vb(ee);se instanceof Ni?Jt.containingGroup=se:Jt.containingGroup=null}else Jt.containingGroup=null}}else if(E==="linkLabelKeys"){var Ce=this.Kc(a.object);if(Ce!==null){var ve=a.oldValue,Ae=a.newValue;Array.isArray(ve)&&ve.forEach(function(An){0<=Ae.indexOf(An)||(An=y.Vb(An),An!==null&&(An.labeledLink=null))}),Array.isArray(Ae)&&Ae.forEach(function(An){An=y.Vb(An),An!==null&&(An.labeledLink=Ce)})}}else if(E==="linkCategory"){var Ie=this.Kc(a.object),Be=a.newValue;Ie!==null&&typeof Be=="string"&&(Ie.category=Be)}else E==="linkDataArray"&&(SS(this,a.oldValue),vS(this,a.newValue));x.isModified=!0}else if(b===ho){var Ve=a.newValue;if(E==="linkDataArray"&&typeof Ve=="object"&&Ve!==null)yS(this,Ve);else if(E==="linkLabelKeys"&&Gh(Ve)){var rn=this.Kc(a.object),Kn=this.Vb(Ve);rn!==null&&Kn!==null&&(Kn.labeledLink=rn)}x.isModified=!0}else if(b===Eo){var $n=a.oldValue;if(E==="linkDataArray"&&typeof $n=="object"&&$n!==null)this.ip($n);else if(E==="linkLabelKeys"&&Gh($n)){var Yn=this.Vb($n);Yn!==null&&(Yn.labeledLink=null)}x.isModified=!0}}else if(b===Xr){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}}}}},Ho.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new En,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){NS(y,z,!1)}),b.forEach(function(z){a.Kc(z)===null&&kS(y,z,!1)})},Ho.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 zn){var E=Sa(b,y,!0);if(E=x.Vb(E),a.fromNode=E,E=Sa(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 En().addAll(y);var nt=new En;a.labelNodes.each(function(ot){ot.data!==null&&(ot=b.wa(ot.data),ot!==void 0&&nt.add(ot))}),y=nt.copy(),y.hp(E),E=E.copy(),E.hp(nt),(0<y.count||0<E.count)&&(y.each(function(ot){ot=x.Vb(ot),ot!==null&&ot.labeledLink===a&&(ot.labeledLink=null)}),E.each(function(ot){ot=x.Vb(ot),ot!==null&&ot.labeledLink!==a&&(ot.labeledLink=a)}))}}else!(a instanceof cr)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof Ni)&&(a.containingGroup=y)}}},Ho.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=ap(y,x),E=this.Lc(a);if(b!==null&&E!==null){b=b.iterator;for(var z={};b.next();){var nt=b.value;y.lb(nt)?E instanceof Ni&&y.lh(nt)===x&&(nt=this.Lc(nt),nt!==null&&(nt.containingGroup=E)):(z.link=this.Kc(nt),z.link!==null&&E instanceof Vn&&(Sa(y,nt,!0)===x&&(z.link.fromNode=E),Sa(y,nt,!1)===x&&(z.link.toNode=E),nt=y.Ef(nt),Array.isArray(nt)&&nt.some(function(ot){return function(at){return at===x?(E.labeledLink=ot.link,!0):!1}}(z)))),z={link:z.link}}pl(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof Ni&&(E.containingGroup=a))}},Ho.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Vn){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)gl(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&gl(y,x,b.data)),a instanceof Ni)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&gl(y,x,b)}}},Ho.prototype.copyPartData=function(a,y){var x=Er.prototype.copyPartData.call(this,a,y);if(a instanceof zn)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},Ho.prototype.insertLink=function(a,y,x,b){var E=this.diagram,z=E.model,nt=E.toolManager.findTool("Linking"),ot="";if(a!==null&&(y===null&&(y=a),ot=y.portId,ot===null&&(ot="")),y="",x!==null&&(b===null&&(b=x),y=b.portId,y===null&&(y="")),b=nt.archetypeLinkData,b instanceof zn){if(Za(b),z=b.copy(),z!==null)return z.fromNode=a,z.fromPortId=ot,z.toNode=x,z.toPortId=y,E.add(z),a=nt.archetypeLabelNodeData,a instanceof Vn&&(Za(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&&Of(z,b,z.wa(a.data),!0),If(z,b,ot,!0),x!==null&&Of(z,b,z.wa(x.data),!1),If(z,b,y,!1),z.fi(b),a=nt.archetypeLabelNodeData,a===null||a instanceof Vn||(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},Ho.prototype.findLinkForKey=Ho.prototype.findLinkForKey,Ho.prototype.findPartForKey=Ho.prototype.findPartForKey,Ho.prototype.removeAllModeledParts=Ho.prototype.removeAllModeledParts,Ho.prototype.addModeledParts=Ho.prototype.addModeledParts,Ho.prototype.addAllModeledParts=Ho.prototype.addAllModeledParts,Ho.className="GraphLinksPartManager";function Ia(){Er.apply(this,arguments),this.Sg=null}Qe(Ia,Er);function a0(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||!xs(b,E,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(Za(b),b=b.copy(),b!==null))){var nt=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=nt}}}Ia.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},Ia.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},Ia.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}},Ia.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))},Ia.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},Ia.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},Ia.prototype.doModelChanged=function(a){if(Er.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===Xr){if(b==="nodeParentKey"){var E=a.object,z=this.Vb(a.newValue),nt=this.ii(E);if(this.Sg!==null)z!==null&&(this.Sg.data=E,this.Sg.category=this.getLinkCategoryForData(E));else if(nt!==null){var ot=nt.kh();ot!==null?z===null?y.remove(ot):y.isTreePathToChildren?ot.fromNode=z:ot.toNode=z:a0(this,z,nt)}}else if(b==="parentLinkCategory"){var at=this.ii(a.object),ht=a.newValue;if(at!==null&&typeof ht=="string"){var dt=at.kh();dt!==null&&(dt.category=ht)}}y.isModified=!0}}else if(x===Xr){var Et=a.propertyName;a.object===y.model&&Et==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},Ia.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof Vn&&(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:a0(this,y,a):b!==null&&xg(x,b,!1)))}}},Ia.prototype.updateDataBindings=function(a,y){Er.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},Ia.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var b=ap(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 Vn&&y.mh(z)===x&&a0(this,E,this.ii(z))}pl(y,x)}a=y.mh(a),a!==void 0&&E instanceof Vn&&(a=this.Vb(a),a0(this,a,E))}},Ia.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Vn){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(Eo,"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)&&gl(y,x,E)}},Ia.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},Ia.prototype.findLinkForKey=Ia.prototype.findLinkForKey,Ia.className="TreePartManager";function ri(a,y){this.kl=new En,this.il=new En,this.Wv=`,
|
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
|
"removedNodeKeys": `,this.vh=null,Oi(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new qn,this.Th="key",this.Bk=this.bl=null,this.Jm=this.Km=!1,this.Mm=!0,this.xm=null,this.lj="category",this.Vf=new qn,this.Lt=new bn,this.Wg=!1,this.o=null,this.undoManager=new _r,a!==void 0&&(nn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}ri.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},ri.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},ri.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},ri.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)+":"+Ln(E)}}return y},ri.prototype.xA=function(a){a.change!==ia&&Pe("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof zo?(wS(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},ri.prototype.Qv=function(a,y){var x=this,b=!1,E=new En,z=new En,nt=new En,ot=this.vh;a.changes.each(function(Et){Et.model===x&&(Et.modelChange==="nodeDataArray"?Et.change===ho?E.add(Et.newValue):Et.change===Eo&&nt.add(Et.oldValue):x.lb(Et.object)?z.add(Et.object):Et.change!==Xr||x.modelData!==Et.object&&Et.propertyName!=="modelData"?Et.object!==null&&(ot&&ot.contains(Et.object)?ot.get(Et.object).each(function(Ht){x.lb(Ht)&&z.add(Ht)}):Et.object instanceof ri||x.ri()&&x.Jc(Et.object)||PS(x,Et.object).each(function(Ht){z.add(Ht)})):b=!0)});var at=this.il;at.clear(),E.each(function(Et){at.add(x.wa(Et)),y||z.add(Et)});var ht=this.kl;ht.clear(),nt.each(function(Et){ht.add(x.wa(Et)),y&&z.add(Et)}),a=x.cloneDeep(z.Fa());var dt=null;return b&&(dt===null&&(dt={}),dt.modelData=this.cloneDeep(this.modelData)),0<at.count&&(dt===null&&(dt={}),y?dt.removedNodeKeys=at.Fa():dt.insertedNodeKeys=at.Fa()),0<a.length&&(dt===null&&(dt={}),dt.modifiedNodeData=a),0<ht.count&&(dt===null&&(dt={}),y?dt.insertedNodeKeys=ht.Fa():dt.removedNodeKeys=ht.Fa()),ht.clear(),at.clear(),dt},ri.prototype.cloneDeep=function(a){return Nf(this,a,!0)};function Nf(a,y,x,b,E,z){function nt(Et,Ht){ot?(Et.__gohashid===void 0&&z.push(Et),b.set(Et,Ht)):(Et=kr++,b.set(Et,Ht),E.set(Et,y))}if(!Ke(y))return y;z||(z=[]);var ot=Object.isExtensible(y);if(b||(b=new qn),ot){var at=b.get(y);if(at)return at}else for(E||(E=new qn),at=E.iterator;at.next();){var ht=at.key;if(at.value===y&&(ht=b.get(ht)))return ht}if(Array.isArray(y)){at=[],nt(y,at);for(var dt=0;dt<y.length;dt++)at.push(Nf(a,y[dt],!1,b,E,z))}else if(y instanceof Se||y instanceof Wn||y instanceof yn||y instanceof li||y instanceof si)at=y.copy(),nt(y,at);else{if(y instanceof br||y instanceof Un||y instanceof dn)return y;if(y instanceof bn)at=new bn().addAll(Nf(a,y.Fa(),!1,b,E,z)),nt(y,at);else if(y instanceof En)at=new En().addAll(Nf(a,y.Fa(),!1,b,E,z)),nt(y,at);else if(y instanceof qn)at=new qn().addAll(Nf(a,y.Fa(),!1,b,E,z)),nt(y,at);else if(y instanceof Date)at=new Date(y.getTime()),nt(y,at);else if(y instanceof RegExp)at=new RegExp(y),nt(y,at),at.lastIndex=y.lastIndex;else if(typeof y.copy=="function")at=y.copy(),nt(y,at);else for(dt in at={},nt(y,at),y)dt!=="__gohashid"&&(at[dt]=Nf(a,y[dt],!1,b,E,z))}return x&&z.forEach(function(Et){delete Et.__gohashid}),at}ne=ri.prototype,ne.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},ne.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},ne.gp=function(a){a.name&&(this.name=a.name),a.dataFormat&&(this.dataFormat=a.dataFormat),a.isReadOnly&&(this.isReadOnly=!0),a.nodeKeyProperty&&(this.nodeKeyProperty=a.nodeKeyProperty),a.copiesArrays&&(this.copiesArrays=!0),a.copiesArrayObjects&&(this.copiesArrayObjects=!0),a.copiesKey===!1&&(this.copiesKey=!1),a.nodeCategoryProperty&&(this.nodeCategoryProperty=a.nodeCategoryProperty)};function xS(a,y){y=y.modelData,Ke(y)&&(a.dm(y),a.modelData=y)}ne.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!bS(x,a[x])){y=!0;break}return a="",y&&(a=`,
|
|
|
"modelData": `+hy(this,this.modelData)),a+`,
|
|
|
"nodeDataArray": `+Uh(this,this.nodeDataArray,!0)},ne.kv=function(a){xS(this,a),a=a.nodeDataArray,nn(a)&&(this.dm(a),this.nodeDataArray=a)};function wS(a,y){function x(E,z){if((z=z.part)&&(z=z.data,E!==z)){var nt=b.get(E);nt===null?(nt=new En,nt.add(z),b.add(E,nt)):nt.add(z)}}var b=a.vh;b===null&&(b=new qn,y.changes.each(function(E){if(E.diagram!==null){var z=E.change;z===Xr?(E=E.object.panel)&&(z=E.data)&&x(z,E):(z===ho||z===Eo)&&(E=E.object,(z=E.itemArray)&&x(z,E))}}),a.vh=b)}function PS(a,y){for(var x=new En,b=0;b<a.nodeDataArray.length;b++){var E=a.nodeDataArray[b];l0(a,y,E,E,x)}return x}function l0(a,y,x,b,E){if(Array.isArray(x))for(var z=0;z<x.length;z++){var nt=x[z];if(nt===y)return E.add(b),!0;if(l0(a,y,nt,b,E))return!0}else if(Ke(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(nt=x[z],nt===y)return E.add(b),!0;if(l0(a,y,nt,b,E))return!0}return!1}ne.Pv=function(a,y){var x=this,b=!1,E=new En,z=new En,nt=new En,ot=this.vh;a.changes.each(function(dt){dt.model===x&&(dt.modelChange==="nodeDataArray"?dt.change===ho?E.add(dt.newValue):dt.change===Eo&&nt.add(dt.oldValue):x.lb(dt.object)?z.add(dt.object):dt.change!==Xr||x.modelData!==dt.object&&dt.propertyName!=="modelData"?dt.object!==null&&(ot&&ot.contains(dt.object)?ot.get(dt.object).each(function(Et){x.lb(Et)&&z.add(Et)}):dt.object instanceof ri||x.ri()&&x.Jc(dt.object)||PS(x,dt.object).each(function(Et){z.add(Et)})):b=!0)});var at=this.il;at.clear(),E.each(function(dt){at.add(x.wa(dt)),y||z.add(dt)});var ht=this.kl;return ht.clear(),nt.each(function(dt){ht.add(x.wa(dt)),y&&z.add(dt)}),a="",b&&(a+=`,
|
|
|
"modelData": `+hy(this,this.modelData)),0<at.count&&(a+=(y?this.Yv:this.Wv)+Uh(this,at.Fa(),!0)),0<z.count&&(a+=this.jy+Uh(this,z.Fa(),!0)),0<ht.count&&(a+=(y?this.Wv:this.Yv)+Uh(this,ht.Fa(),!0)),ht.clear(),at.clear(),a},ne.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)&&Pe("applyIncrementalJson cannot change Model properties"),xS(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new qn;if(Array.isArray(x))for(var E=0;E<x.length;E++){var z=x[E],nt=this.wa(z);nt!=null&&b.set(nt,z)}if(Array.isArray(y))for(E=y.length,z=0;z<E;z++){nt=y[z];var ot=this.hc(nt);ot===null&&(ot=(ot=b.get(nt))?ot:this.copyNodeData({}),this.km(ot,nt),this.xf(ot))}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 at in E)at==="__gohashid"||at===this.nodeKeyProperty||this.Wj()&&at===this.nodeIsGroupProperty||this.setDataProperty(z,at,E[at]);this.lm(E,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,at=0;at<x;at++)y=this.hc(a[at]),y!==null&&this.cm(y)},ne.$x=function(a,y){a.change!==ia&&Pe("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof zo?(y===void 0&&(y=lp(this,this)),wS(this,x),a=this.Pv(x,a.propertyName==="FinishedUndo"),this.vh=null,y==="2"?'{ "incremental": 2'+a+"}":'{ "class": '+this.quote(y)+', "incremental": 1'+this.rm()+a+"}"):'{ "incremental": 0 }'},ne.yA=function(a,y){return this.$x(a,y)},ne.np=function(a){return a===void 0&&(a=lp(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},ne.toJSON=function(a){return this.np(a)},ne.Zw=function(a){var y=null;if(typeof a=="string")try{y=Le.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:Pe("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&Pe("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},ne.Ky=function(a){return this.Zw(a)},ri.constructGraphLinksModel=function(){return new ri},ne=ri.prototype,ne.dm=function(a){if(nn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];if(Ke(b)){var E=x;b=this.dm(b),Array.isArray(a)?a[E]=b:Pe("Cannot replace an object in an HTMLCollection or NodeList at "+E)}}else if(Ke(a)){for(y in a)if(x=a[y],Ke(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 bn,b=0;b<x.length/2;b++)E.add(new Se(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return Ox(a)}return a},ne.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()):nn(a)?Uh(this,a):Ke(a)?hy(this,a):typeof a=="function"?"null":a.toString()};function Uh(a,y,x){x===void 0&&(x=!1);var b=y.length;if(0>=b)return"[]";var E=new Xn;E.add("["),x&&1<b&&E.add(`
|
|
|
`);for(var z=0;z<b;z++){var nt=y[z];nt!==void 0&&(0<z&&(E.add(","),x&&E.add(`
|
|
|
`)),E.add(a.sm(nt)))}return x&&1<b&&E.add(`
|
|
|
`),E.add("]"),E.toString()}function bS(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function ks(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function hy(a,y){var x=y;if(x instanceof Se)y={class:"go.Point",x:ks(x.x),y:ks(x.y)};else if(x instanceof Wn)y={class:"go.Size",width:ks(x.width),height:ks(x.height)};else if(x instanceof yn)y={class:"go.Rect",x:ks(x.x),y:ks(x.y),width:ks(x.width),height:ks(x.height)};else if(x instanceof li)y={class:"go.Margin",top:ks(x.top),right:ks(x.right),bottom:ks(x.bottom),left:ks(x.left)};else if(x instanceof si)x.sb()?y={class:"go.Spot",x:ks(x.x),y:ks(x.y),offsetX:ks(x.offsetX),offsetY:ks(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof br){if(y={class:"go.Brush",type:x.type.name},x.type===Vu?y.color=x.color:(x.type===mu||x.type===Na)&&(y.start=x.start,y.end=x.end,x.type===Na&&(x.startRadius!==0&&(y.startRadius=ks(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=ks(x.endRadius)))),x.colorStops!==null){var b={};for(x=x.colorStops.iterator;x.next();)b[x.key]=x.value;y.colorStops=b}}else x instanceof Un?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=ks(x.startX)),x.startY!==0&&(y.startY=ks(x.startY)),x.endX!==0&&(y.endX=ks(x.endX)),x.endY!==0&&(y.endY=ks(x.endY)),x.spot1.D(No)||(y.spot1=x.spot1),x.spot2.D(ta)||(y.spot2=x.spot2),x.type===Un.o&&(y.path=Un.ia(x))):x instanceof dn&&(y={class:"go.EnumValue",classType:lp(a,x.classType),name:x.name});b="{",x=!0;for(var E in y){var z=lo(y,E);if(!bS(E,z))if(x?x=!1:b+=",",b+=a.quote(E)+":",E==="points"&&z instanceof bn){var nt="[";for(z=z.iterator;z.next();){var ot=z.value;1<nt.length&&(nt+=","),nt+=a.sm(ot.x),nt+=",",nt+=a.sm(ot.y)}nt+="]",b+=nt}else b+=a.sm(z)}return b+"}"}function Ns(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Ox(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 Se(Ns(a.x),Ns(a.y));else if(y==="Size")x=new Wn(Ns(a.width),Ns(a.height));else if(y==="Rect")x=new yn(Ns(a.x),Ns(a.y),Ns(a.width),Ns(a.height));else if(y==="Margin")x=new li(Ns(a.top),Ns(a.right),Ns(a.bottom),Ns(a.left));else if(y==="Spot")typeof a.enum=="string"?x=Bd(a.enum):x=new si(Ns(a.x),Ns(a.y),Ns(a.offsetX),Ns(a.offsetY));else if(y==="Brush"){if(x=new br,x.type=Rn(br,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof si&&(x.start=a.start),a.end instanceof si&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=Ns(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=Ns(a.endRadius)),a=a.colorStops,Ke(a))for(var b in a)x.addColorStop(parseFloat(b),a[b])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=Un.parse(a.path):x=new Un,x.type=Rn(Un,a.type),typeof a.startX=="number"&&(x.startX=Ns(a.startX)),typeof a.startY=="number"&&(x.startY=Ns(a.startY)),typeof a.endX=="number"&&(x.endX=Ns(a.endX)),typeof a.endY=="number"&&(x.endY=Ns(a.endY)),a.spot1 instanceof si&&(x.spot1=a.spot1),a.spot2 instanceof si&&(x.spot2=a.spot2)):y==="EnumValue"&&(b=a.classType,b.indexOf("go.")===0&&(b=b.substr(3)),b=dy(b),typeof b=="function"&&(x=Rn(b,a.name)));return x}ne.Pe=function(a){return this.Lt.add(a),this},ne.ik=function(a){this.Lt.remove(a)},ne.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)},ne.cb=function(a,y,x,b,E,z,nt){Po(this,"",a,y,x,b,E,z,nt)},ne.g=function(a,y,x,b,E){Po(this,"",Xr,a,this,y,x,b,E)},ne.Fs=function(a,y,x,b,E,z){Po(this,"",Xr,y,a,x,b,E,z)};function Po(a,y,x,b,E,z,nt,ot,at){ot===void 0&&(ot=null),at===void 0&&(at=null);var ht=new Yr;ht.model=a,ht.change=x,ht.modelChange=y,ht.propertyName=b,ht.object=E,ht.oldValue=z,ht.oldParam=ot,ht.newValue=nt,ht.newParam=at,a.ds(ht)}ri.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===Xr){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)),Ur(x,b,E)}else a.change===ho?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,Ke(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&un(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&en(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!nn(b)&&a.propertyName&&(b=lo(a.object,a.propertyName)),nn(b)&&typeof x=="number"&&(a=a.newValue,y?un(b,x):en(b,x,a))):Pe("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===Eo?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,Ke(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]!==a&&en(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&un(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!nn(b)&&a.propertyName&&(b=lo(a.object,a.propertyName)),nn(b)&&typeof x=="number"&&(a=a.oldValue,y?en(b,x,a):un(b,x))):Pe("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==ia&&Pe("unknown ChangedEvent: "+a.toString())},ri.prototype.Ea=function(a){return this.undoManager.Ea(a)},ri.prototype.eb=function(a){return this.undoManager.eb(a)},ri.prototype.Kf=function(){return this.undoManager.Kf()},ri.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}},ne=ri.prototype,ne.La=function(a,y){y===void 0&&(y=""),Po(this,"SourceChanged",ia,y,a,null,null)},ne.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=lo(a,y),y!==void 0)){if(Gh(y))return y;Pe("Key value for node data "+a+" is not a number or a string: "+y)}}},ne.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=lo(a,x);b!==y&&this.hc(y)===null&&(Ur(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),Po(this,"nodeKey",Xr,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else Ur(a,x,y)}};function Gh(a){return typeof a=="number"||typeof a=="string"}ne.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},ne.hc=function(a){return a===null&&Pe("Model.findNodeDataForKey:key must not be null"),a!==void 0&&Gh(a)?this.kb.I(a):null},ne.$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))){Ur(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;Ur(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;Ur(a,y,x)}}}}},ne.xf=function(a){a!==null&&(wr(a),this.lb(a)||CS(this,a,!0))};function CS(a,y,x){var b=a.wa(y);(b===void 0||a.kb.I(b)!==y)&&(a.$u(y),b=a.wa(y),b===void 0&&Pe("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,en(a.Tc,b,y)),Po(a,"nodeDataArray",ho,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}ne.Fy=function(a){if(nn(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)},ne.cm=function(a){a!==null&&ES(this,a,!0)};function ES(a,y,x){var b=a.wa(y);if(b!==void 0&&a.kb.remove(b),b=null,x){t: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 t}b=-1}if(0>b)return;un(a.Tc,b)}Po(a,"nodeDataArray",Eo,"nodeDataArray",a,y,null,b,null),a.qp(y)}ne.nA=function(a){if(nn(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)},ne.$z=function(a){if(a!==this.nodeDataArray&&nn(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],nt=this.wa(z);if(nt!==void 0){x.add(nt);var ot=this.hc(nt);ot!==z&&(ot!==null?(this.Do(ot,z),this.lm(z,ot)):(z=this.cloneDeep(z),this.km(z,nt),this.xf(z)))}else nt=this.cloneDeep(z),this.xf(nt),x.add(this.wa(nt))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.hc(b))&&this.cm(b);y.clear(),x.clear()}},ne.jp=function(a,y){y!==void 0&&(a=ap(this,a),a instanceof En&&this.Vf.add(y,a))},ne.Lv=function(){},ne.fm=function(){},ne.em=function(){},ne.qp=function(){};function gl(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new En,a.Vf.add(y,b)),b.add(x)}}function pl(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b instanceof En&&(x==null?a.Vf.remove(y):(b.remove(x),b.count===0&&a.Vf.remove(y)))}}function ap(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof En?a:null)}ne.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},ri.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):u0(this,a,!0),Ke(a)&&Oi(a),a};function u0(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var b=[];for(x=0;x<y.length;x++){var E=u0(a,y[x],a.copiesArrayObjects);b.push(E)}return Oi(b),b}if(x&&Ke(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=lo(y,b),nt=lp(a,z);nt==="GraphObject"||nt==="Diagram"||nt==="Layer"||nt==="RowColumnDefinition"||nt==="AnimationManager"||nt==="Tool"||nt==="CommandHandler"||nt==="Layout"||nt==="InputEvent"||nt==="DiagramEvent"||z instanceof ri||z instanceof _r||z instanceof zo||z instanceof Yr||(z=u0(a,z,!1)),Ur(x,b,z)}return Oi(x),x}return y instanceof Se||y instanceof Wn||y instanceof yn||y instanceof si||y instanceof li?y.copy():y}ri.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!LS&&a instanceof Xe&&(LS=!0,On('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),On(" Is that really your intent?"));var b=lo(a,y);b!==x&&(Ur(a,y,x),this.Fs(a,y,b,x))},ne=ri.prototype,ne.set=function(a,y,x){this.setDataProperty(a,y,x)},ne.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])}},ne.Ay=function(a,y){this.ts(a,-1,y)},ne.ts=function(a,y,x){0>y&&(y=a.length),en(a,y,x),Po(this,"",ho,"",a,null,x,null,y)},ne.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&Pe("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];un(a,y),Po(this,"",Eo,"",a,x,null,y,null)},ne.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=lo(a,y),y===void 0))return"";if(typeof y=="string")return y;Pe("getCategoryForNodeData found a non-string category for "+a+": "+y)},ne.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=lo(a,x);b===void 0&&(b=""),b!==y&&(Ur(a,x,y),Po(this,"nodeCategory",Xr,x,a,b,y))}else Ur(a,x,y)}},ne.lm=function(a,y){this.jm(y,this.Ro(a))},ne.Tl=function(){return!1},ne.Wj=function(){return!1},ne.ri=function(){return!1},ne.xs=function(){return!1},ne.Xj=function(){return!1};function cy(){return new ri}function lp(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 lp(a,y.constructor);return typeof y}function dy(a){return ol[a]?ol[a]:Le.go!==void 0&&Le.go[a]?Le.go[a]:null}function lo(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 Ur(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){}}we.Object.defineProperties(ri.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===""&&Pe("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&Pe("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];Ke(E)||Pe("Model.nodeDataArray must only contain Objects, not: "+E),wr(E)}for(this.Tc=a,b=new bn,E=0;E<x;E++){var z=a[E],nt=this.wa(z);nt===void 0||this.kb.I(nt)!==null?b.add(z):this.kb.add(nt,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(Po(this,"nodeDataArray",Xr,"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"}}}),ri.prototype.setCategoryForNodeData=ri.prototype.jm,ri.prototype.getCategoryForNodeData=ri.prototype.Ro,ri.prototype.removeArrayItem=ri.prototype.ov,ri.prototype.insertArrayItem=ri.prototype.ts,ri.prototype.addArrayItem=ri.prototype.Ay,ri.prototype.assignAllDataProperties=ri.prototype.Do,ri.prototype.set=ri.prototype.set,ri.prototype.clearUnresolvedReferences=ri.prototype.Qy,ri.prototype.mergeNodeDataArray=ri.prototype.$z,ri.prototype.removeNodeDataCollection=ri.prototype.nA,ri.prototype.removeNodeData=ri.prototype.cm,ri.prototype.addNodeDataCollection=ri.prototype.Fy,ri.prototype.addNodeData=ri.prototype.xf,ri.prototype.makeNodeDataKeyUnique=ri.prototype.$u,ri.prototype.findNodeDataForKey=ri.prototype.hc,ri.prototype.containsNodeData=ri.prototype.lb,ri.prototype.setKeyForNodeData=ri.prototype.km,ri.prototype.getKeyForNodeData=ri.prototype.wa,ri.prototype.updateTargetBindings=ri.prototype.La,ri.prototype.commit=ri.prototype.commit,ri.prototype.rollbackTransaction=ri.prototype.Kf,ri.prototype.commitTransaction=ri.prototype.eb,ri.prototype.startTransaction=ri.prototype.Ea,ri.prototype.raiseDataChanged=ri.prototype.Fs,ri.prototype.raiseChanged=ri.prototype.g,ri.prototype.raiseChangedEvent=ri.prototype.cb,ri.prototype.removeChangedListener=ri.prototype.ik,ri.prototype.addChangedListener=ri.prototype.Pe,ri.prototype.writeJsonValue=ri.prototype.sm,ri.prototype.replaceJsonObjects=ri.prototype.dm,ri.prototype.applyIncrementalJSON=ri.prototype.Ky,ri.prototype.applyIncrementalJson=ri.prototype.Zw,ri.prototype.toJSON=ri.prototype.toJSON,ri.prototype.toJson=ri.prototype.np,ri.prototype.toIncrementalJSON=ri.prototype.yA,ri.prototype.toIncrementalJson=ri.prototype.$x,ri.prototype.toIncrementalData=ri.prototype.xA,ri.prototype.clear=ri.prototype.clear;var LS=!1,ol={};ri.className="Model",ri.fromJSON=ri.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=Le.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:Pe("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=Le[b])),typeof E=="function"&&(a=new E)}catch(z){}a===null||a instanceof ri?y=a:Pe("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=ri.constructGraphLinksModel()),y.gp(x),y.kv(x),y},ri.safePropertyValue=lo,ri.safePropertySet=Ur,ol.Brush=br,ol.ChangedEvent=Yr,ol.Geometry=Un,ol.Margin=li,ol.Panel=Fn,ol.Point=Se,ol.Rect=yn,ol.Size=Wn,ol.Spot=si,ol.Transaction=zo,ol.UndoManager=_r;function po(a,y,x,b){Oi(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=MS,this.wk=null):(this.el=up,this.wk=b),this.st=new En}po.prototype.copy=function(){var a=new po;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},ne=po.prototype,ne.qb=function(a){a.classType===po&&(this.mode=a)},ne.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},ne.freeze=function(){return this._isFrozen=!0,this},ne.ka=function(){return this._isFrozen=!1,this},ne.Kx=function(a){return a===void 0&&(a=null),this.mode=up,this.backConverter=a,this},ne.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},ne.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function AS(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}ne.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==="")On("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(b!==""&&(z=lo(y,b)),z!==void 0)if(E===null)x!==""&&Ur(a,x,z);else try{if(x!==""){var nt=E(z,a);Ur(a,x,nt)}else E(z,a)}catch(ot){}}}},ne.sp=function(a,y,x,b){if(this.el===up){var E=this.xl;if(x===void 0||E===x){x=this.sl;var z=this.wk,nt=a;if(E!==""&&(nt=lo(a,E)),nt!==void 0&&!this.st.contains(a))try{this.st.add(a);var ot=b!==null?b.diagram:null,at=ot!==null?ot.model:null;if(z===null){if(x!=="")at!==null?at.setDataProperty(y,x,nt):Ur(y,x,nt);else if(at!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var ht=b.itemIndex,dt=b.panel.itemArray;at.ov(dt,ht),at.ts(dt,ht,nt)}}else try{if(x!==""){var Et=z(nt,y,at);at!==null?at.setDataProperty(y,x,Et):Ur(y,x,Et)}else{var Ht=z(nt,y,at);if(Ht!==void 0&&at!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var Jt=b.itemIndex,ee=b.panel.itemArray;at.ov(ee,Jt),at.ts(ee,Jt,Ht)}}}catch(se){}}finally{this.st.remove(a)}}}},we.Object.defineProperties(po.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&We(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&We(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&We(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&We(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&We(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&We(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&We(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&We(this),this.el=a}}}),po.prototype.updateSource=po.prototype.sp,po.prototype.updateTarget=po.prototype.Mv,po.prototype.ofModel=po.prototype.dA,po.prototype.ofObject=po.prototype.cp,po.prototype.makeTwoWay=po.prototype.Kx;var Ix="Binding",MS=new dn(po,"OneWay",1),up=new dn(po,"TwoWay",2);po.className="Binding",po.parseEnum=function(a,y){return function(x){return x=Rn(a,x),x===null?y:x}},po.toString=Ln,po.OneWay=MS,po.TwoWay=up;function ir(a,y,x){ri.call(this),this.Vv=`,
|
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
|
"removedLinkKeys": `,this.md=[],this.$f=new En,this.wb=new qn,this.Jh="",this.Ri=this.Ak=this.cl=null,this.lf="from",this.mf="to",this.fj=this.ej="",this.dj="category",this.je="",this.jl="isGroup",this.Je="group",this.Lm=!1,y!==void 0&&(this.linkDataArray=y),a!==void 0&&(nn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}Qe(ir,ri),ir.constructGraphLinksModel=ri.constructGraphLinksModel,ir.prototype.cloneProtected=function(a){ri.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},ne=ir.prototype,ne.clear=function(){ri.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},ne.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)+":"+Ln(E)}for(y+=`
|
|
|
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)E=a[b],y+=" "+Sa(this,E,!0)+"-->"+Sa(this,E,!1)}return y},ne.Qv=function(a,y){this.linkKeyProperty===""&&Pe("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=ri.prototype.Qv.call(this,a,y),b=this,E=new En,z=new En,nt=new En,ot=this.vh;a.changes.each(function(dt){dt.model===b&&(dt.modelChange==="linkDataArray"?dt.change===ho?E.add(dt.newValue):dt.change===Eo&&nt.add(dt.oldValue):b.Jc(dt.object)?z.add(dt.object):dt.object!==null&&(dt.object!==null&&ot&&ot.contains(dt.object)?ot.get(dt.object).each(function(Et){b.Jc(Et)&&z.add(Et)}):dt.object instanceof ri||b.lb(dt.object)||TS(b,dt.object).each(function(Et){z.add(Et)})))});var at=this.il;at.clear(),E.each(function(dt){at.add(b.Ac(dt)),y||z.add(dt)});var ht=this.kl;return ht.clear(),nt.each(function(dt){ht.add(b.Ac(dt)),y&&z.add(dt)}),a=b.cloneDeep(z.Fa()),0<at.count&&(x===null&&(x={}),y?x.removedLinkKeys=at.Fa():x.insertedLinkKeys=at.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<ht.count&&(x===null&&(x={}),y?x.insertedLinkKeys=ht.Fa():x.removedLinkKeys=ht.Fa()),ht.clear(),at.clear(),x},ne.rm=function(){var a=ri.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},ne.gp=function(a){ri.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)},ne.Rv=function(){var a=ri.prototype.Rv.call(this),y=`,
|
|
|
"linkDataArray": `+Uh(this,this.linkDataArray,!0);return a+y},ne.kv=function(a){ri.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function TS(a,y){for(var x=new En,b=0;b<a.linkDataArray.length;b++){var E=a.linkDataArray[b];l0(a,y,E,E,x)}return x}ne.Pv=function(a,y){this.linkKeyProperty===""&&Pe("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=ri.prototype.Pv.call(this,a,y),b=this,E=new En,z=new En,nt=new En,ot=this.vh;a.changes.each(function(dt){dt.model===b&&(dt.modelChange==="linkDataArray"?dt.change===ho?E.add(dt.newValue):dt.change===Eo&&nt.add(dt.oldValue):b.Jc(dt.object)?z.add(dt.object):dt.object!==null&&(dt.object!==null&&ot&&ot.contains(dt.object)?ot.get(dt.object).each(function(Et){b.Jc(Et)&&z.add(Et)}):dt.object instanceof ri||b.lb(dt.object)||TS(b,dt.object).each(function(Et){z.add(Et)})))});var at=this.il;at.clear(),E.each(function(dt){at.add(b.Ac(dt)),y||z.add(dt)});var ht=this.kl;return ht.clear(),nt.each(function(dt){ht.add(b.Ac(dt)),y&&z.add(dt)}),a=x,0<at.count&&(a+=(y?this.Xv:this.Vv)+Uh(this,at.Fa(),!0)),0<z.count&&(a+=this.iy+Uh(this,z.Fa(),!0)),0<ht.count&&(a+=(y?this.Vv:this.Xv)+Uh(this,ht.Fa(),!0)),ht.clear(),at.clear(),a},ne.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)&&Pe("applyIncrementalJson cannot change Model properties"),ri.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 nt in E)nt!=="__gohashid"&&nt!==this.linkKeyProperty&&this.setDataProperty(z,nt,E[nt]);OS(this,E,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(nt=a.length,y=0;y<nt;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},ir.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===Xr){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),Ur(x,b,E);return}}else if(a.change===ho){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,Ke(a)&&typeof x=="number"&&(b=this.Ac(a),y?(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),b!==void 0&&this.wb.remove(b)):(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),b!==void 0&&this.wb.add(b,a)));return}if(a.modelChange==="linkLabelKeys"){b=this.Ef(a.object),Array.isArray(b)&&typeof x=="number"&&(y?(x=b.indexOf(a.newValue),0<=x&&b.splice(x,1)):0>b.indexOf(a.newValue)&&b.splice(x,0,a.newValue));return}}else if(a.change===Eo){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,Ke(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}}ri.prototype.changeState.call(this,a,y)}},ne=ir.prototype,ne.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),Ur(x,this.nodeKeyProperty,a),this.xf(x))}return a}},ne.yx=function(a){return Sa(this,a,!0)},ne.wv=function(a,y){Of(this,a,y,!0)},ne.Bx=function(a){return Sa(this,a,!1)},ne.Bv=function(a,y){Of(this,a,y,!1)};function Sa(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=lo(y,a),a!==void 0))){if(Gh(a))return a;Pe((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Of(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=lo(y,E);z!==x&&(pl(a,z,y),Ur(y,E,x),a.hc(x)===null&&gl(a,x,y),Po(a,b?"linkFromKey":"linkToKey",Xr,E,y,z,x),typeof E=="string"&&a.La(y,E))}else Ur(y,E,x)}}ne.zx=function(a){return h0(this,a,!0)},ne.xv=function(a,y){If(this,a,y,!0)},ne.Cx=function(a){return h0(this,a,!1)},ne.Cv=function(a,y){If(this,a,y,!1)};function h0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=lo(y,a),y===void 0?"":y)}function If(a,y,x,b){if(y!==null){var E=b?a.ej:a.fj;if(E!=="")if(a.Jc(y)){var z=lo(y,E);z===void 0&&(z=""),z!==x&&(Ur(y,E,x),Po(a,b?"linkFromPortId":"linkToPortId",Xr,E,y,z,x),typeof E=="string"&&a.La(y,E))}else Ur(y,E,x)}}ne.Ef=function(a){if(a===null)return c0;var y=this.je;return y===""?c0:(a=lo(a,y),a===void 0?c0:a)},ne.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=lo(a,x);if(b===void 0&&(b=c0),b!==y){if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)pl(this,b[z],a);for(Ur(a,x,y),E=y.length,z=0;z<E;z++){var nt=y[z];this.hc(nt)===null&&gl(this,nt,a)}Po(this,"linkLabelKeys",Xr,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else Ur(a,x,y)}},ne.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=lo(a,x);if(b===void 0)x=[],x.push(y),this.Ls(a,x);else if(Array.isArray(b)){var E=b.indexOf(y);0<=E||(E=b.length,b.push(y),this.Jc(a)&&(this.hc(y)===null&&gl(this,y,a),Po(this,"linkLabelKeys",ho,x,a,null,y,null,E)))}else Pe(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},ne.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=lo(a,x);if(Array.isArray(b)){var E=b.indexOf(y);0>E||(b.splice(E,1),this.Jc(a)&&(pl(this,y,a),Po(this,"linkLabelKeys",Eo,x,a,y,null,E,null)))}else b!==void 0&&Pe(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},ne.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=lo(a,y),y!==void 0)){if(Gh(y))return y;Pe("Key value for link data "+a+" is not a number or a string: "+y)}}},ne.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=lo(a,x);b!==y&&this.jh(y)===null&&(Ur(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),Po(this,"linkKey",Xr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ur(a,x,y)}},ne.jh=function(a){return a===null&&Pe("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&Gh(a)?this.wb.I(a):null},ne.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))){Ur(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;Ur(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Ur(a,y,x)}}}}},ne.Jc=function(a){return a===null?!1:this.$f.contains(a)},ne.fi=function(a){a!==null&&(wr(a),this.Jc(a)||kS(this,a,!0))};function kS(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&&Pe("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)),Po(a,"linkDataArray",ho,"linkDataArray",a,null,y,null,b),fy(a,y)}ne.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)},ne.bm=function(a){a!==null&&NS(this,a,!0)};function NS(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(Po(a,"linkDataArray",Eo,"linkDataArray",a,y,null,b,null),x=Sa(a,y,!0),pl(a,x,y),x=Sa(a,y,!1),pl(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],pl(a,x,y)}ne.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)},ne.Zz=function(a){if(this.linkKeyProperty===""&&Pe("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&nn(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],nt=this.Ac(z);if(nt!==void 0){x.add(nt);var ot=this.jh(nt);ot!==z&&(ot!==null?(this.Do(ot,z),OS(this,z,ot)):(z=this.cloneDeep(z),this.Ks(z,nt),this.fi(z)))}else nt=this.cloneDeep(z),this.fi(nt),x.add(this.Ac(nt))}for(a=y.iterator;a.next();)b=a.value,x.contains(b)||(b=this.jh(b))&&this.bm(b);y.clear(),x.clear()}};function fy(a,y){var x=Sa(a,y,!0);x=a.Vl(x),a.hc(x)===null&&gl(a,x,y),x=Sa(a,y,!1),x=a.Vl(x),a.hc(x)===null&&gl(a,x,y);var b=a.Ef(y);if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],a.hc(x)===null&&gl(a,x,y)}ne.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):u0(this,a,!0),Ke(a)&&(Oi(a),this.lf!==""&&Ur(a,this.lf,void 0),this.mf!==""&&Ur(a,this.mf,void 0),this.je!==""&&Ur(a,this.je,[])),a},ne.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!lo(a,y)},ne.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=lo(a,y),y!==void 0)){if(Gh(y))return y;Pe("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},ne.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=lo(a,x);b!==y&&(pl(this,b,a),Ur(a,x,y),this.hc(y)===null&&gl(this,y,a),Po(this,"nodeGroupKey",Xr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ur(a,x,y)}},ir.prototype.copyNodeData=function(a){return a===null?null:(a=ri.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||lo(a,this.Je)===void 0||Ur(a,this.Je,void 0),a)},ir.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){Of(this,a,x,!0);return}if(y===this.linkToKeyProperty){Of(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){If(this,a,x,!0);return}if(y===this.linkToPortIdProperty){If(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=lo(a,y);b!==x&&(Ur(a,y,x),this.Fs(a,y,b,x))},ne=ir.prototype,ne.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&&lo(a,E)===y[E]||b&&E===this.linkKeyProperty||this.setDataProperty(a,E,y[E])}},ne.jp=function(a,y){ri.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(Sa(this,b,!0)===E){var nt=this.lf;Ur(b,nt,z),Po(this,"linkFromKey",Xr,nt,b,E,z),typeof nt=="string"&&this.La(b,nt)}if(Sa(this,b,!1)===E&&(nt=this.mf,Ur(b,nt,z),Po(this,"linkToKey",Xr,nt,b,E,z),typeof nt=="string"&&this.La(b,nt)),nt=this.Ef(b),Array.isArray(nt))for(var ot=nt.length,at=this.je,ht=0;ht<ot;ht++)nt[ht]===E&&(nt[ht]=z,Po(this,"linkLabelKeys",ho,at,b,E,z,ht,ht))}},ne.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;Ur(a,b,x),Po(this,"nodeGroupKey",Xr,b,a,y,x),typeof b=="string"&&this.La(a,b)}},ne.Lv=function(){ri.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)fy(this,a[x])},ne.fm=function(a){ri.prototype.fm.call(this,a),a=this.wa(a);var y=ap(this,a);if(y!==null){var x=sn();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)){if(this.lh(b)===a){var E=this.Je;Po(this,"nodeGroupKey",Xr,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(Sa(this,b,!0)===a&&(E=this.lf,Po(this,"linkFromKey",Xr,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),Sa(this,b,!1)===a&&(E=this.mf,Po(this,"linkToKey",Xr,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,nt=this.je,ot=0;ot<z;ot++)E[ot]===a&&(Po(this,"linkLabelKeys",ho,nt,b,a,a,ot,ot),x.push(b))}for(y=0;y<x.length;y++)pl(this,a,x[y]);xn(x)}},ne.em=function(a){ri.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&gl(this,y,a)},ne.qp=function(a){ri.prototype.qp.call(this,a);var y=this.lh(a);pl(this,y,a)},ne.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=lo(a,y),y===void 0))return"";if(typeof y=="string")return y;Pe("getCategoryForLinkData found a non-string category for "+a+": "+y)},ir.prototype.getLinkCategoryForData=function(a){return this.ps(a)},ir.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=lo(a,x);b===void 0&&(b=""),b!==y&&(Ur(a,x,y),Po(this,"linkCategory",Xr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ur(a,x,y)}},ir.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},ne=ir.prototype,ne.lm=function(a,y){ri.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function OS(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))}ne.Wj=function(){return!0},ne.ri=function(){return!0},ne.xs=function(){return!0},ne.Xj=function(){return!0},we.Object.defineProperties(ir.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];Ke(E)||Pe("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),wr(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new bn,E=0;E<x;E++){var z=a[E],nt=this.Ac(z);nt===void 0||this.wb.I(nt)!==null?b.add(z):this.wb.add(nt,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 En,E=0;E<x;E++)b.add(a[E]);for(this.$f=b,Po(this,"linkDataArray",Xr,"linkDataArray",this,y,a),y=0;y<x;y++)fy(this,a[y])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(a){var y=this.Jh;if(y!==a){this.Jh=a,this.wb.clear();for(var x=this.linkDataArray.length,b=0;b<x;b++){var E=this.linkDataArray[b],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"}}}),ir.prototype.setCategoryForLinkData=ir.prototype.lp,ir.prototype.getCategoryForLinkData=ir.prototype.ps,ir.prototype.assignAllDataProperties=ir.prototype.Do,ir.prototype.setGroupKeyForNodeData=ir.prototype.mp,ir.prototype.getGroupKeyForNodeData=ir.prototype.lh,ir.prototype.isGroupForNodeData=ir.prototype.Yu,ir.prototype.copyLinkData=ir.prototype.Jo,ir.prototype.mergeLinkDataArray=ir.prototype.Zz,ir.prototype.removeLinkDataCollection=ir.prototype.lA,ir.prototype.removeLinkData=ir.prototype.bm,ir.prototype.addLinkDataCollection=ir.prototype.Ey,ir.prototype.addLinkData=ir.prototype.fi,ir.prototype.containsLinkData=ir.prototype.Jc,ir.prototype.makeLinkDataKeyUnique=ir.prototype.Bs,ir.prototype.findLinkDataForKey=ir.prototype.jh,ir.prototype.setKeyForLinkData=ir.prototype.Ks,ir.prototype.getKeyForLinkData=ir.prototype.Ac,ir.prototype.removeLabelKeyForLinkData=ir.prototype.Qx,ir.prototype.addLabelKeyForLinkData=ir.prototype.Bu,ir.prototype.setLabelKeysForLinkData=ir.prototype.Ls,ir.prototype.getLabelKeysForLinkData=ir.prototype.Ef,ir.prototype.setToPortIdForLinkData=ir.prototype.Cv,ir.prototype.getToPortIdForLinkData=ir.prototype.Cx,ir.prototype.setFromPortIdForLinkData=ir.prototype.xv,ir.prototype.getFromPortIdForLinkData=ir.prototype.zx,ir.prototype.setToKeyForLinkData=ir.prototype.Bv,ir.prototype.getToKeyForLinkData=ir.prototype.Bx,ir.prototype.setFromKeyForLinkData=ir.prototype.wv,ir.prototype.getFromKeyForLinkData=ir.prototype.yx,ir.prototype.clear=ir.prototype.clear;var c0=Object.freeze([]);ir.className="GraphLinksModel",ol.GraphLinksModel=ir,ri.constructGraphLinksModel=ri.constructGraphLinksModel=function(){return new ir},ri.initDiagramModel=cy=function(){return new ir};function Os(a,y){ri.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(nn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Qe(Os,ri),Os.constructGraphLinksModel=ri.constructGraphLinksModel,Os.prototype.cloneProtected=function(a){ri.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},ne=Os.prototype,ne.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)+":"+Ln(E)}}return y},ne.rm=function(){var a=ri.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},ne.gp=function(a){ri.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},ne.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&Pe("applyIncrementalJson cannot change Model properties"),ri.prototype.fp.call(this,a)},ne.Vl=function(a){return a},ne.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=lo(a,y),y!==void 0)){if(Gh(y))return y;Pe("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},ne.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=lo(a,x);b!==y&&(pl(this,b,a),Ur(a,x,y),this.hc(y)===null&&gl(this,y,a),Po(this,"nodeParentKey",Xr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ur(a,x,y)}},ne.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=lo(a,y),y===void 0)?"":typeof y=="string"?y:(Pe("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Os.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Os.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=lo(a,x);b===void 0&&(b=""),b!==y&&(Ur(a,x,y),Po(this,"parentLinkCategory",Xr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Ur(a,x,y)}},Os.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Os.prototype.copyNodeData=function(a){return a===null?null:(a=ri.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||lo(a,this.Ke)===void 0||Ur(a,this.Ke,void 0),a)},Os.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=lo(a,y);b!==x&&(Ur(a,y,x),this.Fs(a,y,b,x))},ne=Os.prototype,ne.jp=function(a,y){ri.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},ne.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;Ur(a,b,x),Po(this,"nodeParentKey",Xr,b,a,y,x),typeof b=="string"&&this.La(a,b)}},ne.fm=function(a){ri.prototype.fm.call(this,a),a=this.wa(a);var y=ap(this,a);if(y!==null){var x=sn();for(y=y.iterator;y.next();){var b=y.value;if(this.lb(b)&&this.mh(b)===a){var E=this.Ke;Po(this,"nodeParentKey",Xr,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}for(y=0;y<x.length;y++)pl(this,a,x[y]);xn(x)}},ne.em=function(a){ri.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&gl(this,y,a)},ne.qp=function(a){ri.prototype.qp.call(this,a);var y=this.mh(a);pl(this,y,a)},ne.lm=function(a,y){ri.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},ne.Tl=function(){return!0},ne.xs=function(){return!0},we.Object.defineProperties(Os.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"}}}),Os.prototype.setParentLinkCategoryForNodeData=Os.prototype.Ms,Os.prototype.getParentLinkCategoryForNodeData=Os.prototype.ss,Os.prototype.setParentKeyForNodeData=Os.prototype.qe,Os.prototype.getParentKeyForNodeData=Os.prototype.mh,Os.className="TreeModel",ol.TreeModel=Os;function Qr(a){Gr.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=sl,this.Ti=0,this.Zv=new Se,this.Jp=this.me=0,this.Xr=new fp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=sl,this.K=Is,this.nd=Ff,this.hd=oy,this.tf=6,this.Nn=y0,a&&Object.assign(this,a)}Qe(Qr,Gr),Qr.prototype.cloneProtected=function(a){Gr.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},Qr.prototype.qb=function(a){a.classType===Qr?a===m0||a===v0||a===g0||a===p0||a===Ff?this.sorting=a:a===Dc||a===Df||a===Is||a===Vh?this.direction=a:a===$u||a===Kh||a===sl||a===al?this.arrangement=a:(a===Pd||a===y0)&&(this.nodeDiameterFormula=a):Gr.prototype.qb.call(this,a)},Qr.prototype.createNetwork=function(){return new Bf(this)},Qr.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 bn;y.addAll(a.iterator),a=new bn;var x=new bn,b=this.sort(y),E,z,nt=this.Jp,ot=this.arrangement,at=this.nodeDiameterFormula,ht=this.radius;(!isFinite(ht)||0>=ht)&&(ht=NaN);var dt=this.aspectRatio;(!isFinite(dt)||0>=dt)&&(dt=1);var Et=this.startAngle;isFinite(Et)||(Et=0);var Ht=this.sweepAngle;if((!isFinite(Ht)||360<Ht||1>Ht)&&(Ht=360),y=this.spacing,isFinite(y)||(y=NaN),ot===al&&at===Pd?ot=sl:ot===al&&at!==Pd&&(ot=this.arrangement),(this.direction===Dc||this.direction===Df)&&this.sorting!==Ff){for(at=0;!(at>=b.length)&&(a.add(b.M(at)),!(at+1>=b.length));at+=2)x.add(b.M(at+1));this.direction===Dc?(this.arrangement===al&&a.reverse(),b=new bn,b.addAll(a),b.addAll(x)):(this.arrangement===al&&x.reverse(),b=new bn,b.addAll(x),b.addAll(a))}at=b.length;for(var Jt=z=E=0;Jt<b.length;Jt++){var ee=Et+Ht*z*(this.direction===Is?1:-1)/at,se=b.M(Jt).diameter;isNaN(se)&&(se=Zh(b.M(Jt),ee)),360>Ht&&(Jt===0||Jt===b.length-1)&&(se/=2),E+=se,z++}if(isNaN(ht)||ot===al){if(isNaN(y)&&(y=6),ot!==sl&&ot!==al){for(z=-1/0,nt=0;nt<at;nt++)Jt=b.M(nt),E=b.M(nt===at-1?0:nt+1),isNaN(Jt.diameter)&&Zh(Jt,0),isNaN(E.diameter)&&Zh(E,0),z=Math.max(z,(Jt.diameter+E.diameter)/2);nt=z+y,ot===$u?ht=(z+y)/(2*Math.PI/at):ht=d0(this,nt*(360<=Ht?at:at-1),dt,Et*Math.PI/180,Ht*Math.PI/180)}else ht=d0(this,E+(360<=Ht?at:at-1)*(ot!==al?y:1.6*y),dt,Et*Math.PI/180,Ht*Math.PI/180);z=ht*dt}else if(z=ht*dt,Jt=gy(this,ht,z,Et*Math.PI/180,Ht*Math.PI/180),isNaN(y))(ot===sl||ot===al)&&(y=(Jt-E)/(360<=Ht?at:at-1));else if(ot===sl||ot===al)Jt=(Jt-E)/(360<=Ht?at:at-1),Jt<y?(ht=d0(this,E+y*(360<=Ht?at:at-1),dt,Et*Math.PI/180,Ht*Math.PI/180),z=ht*dt):y=Jt;else{for(nt=-1/0,E=0;E<at;E++)ee=b.M(E),se=b.M(E===at-1?0:E+1),isNaN(ee.diameter)&&Zh(ee,0),isNaN(se.diameter)&&Zh(se,0),nt=Math.max(nt,(ee.diameter+se.diameter)/2);nt+=y,E=d0(this,nt*(360<=Ht?at:at-1),dt,Et*Math.PI/180,Ht*Math.PI/180),E>ht?(ht=E,z=ht*dt):nt=Jt/(360<=Ht?at:at-1)}if(this.kw=ot,this.lc=ht,this.Zm=dt,this.lw=Et,this.Wp=Ht,this.Ti=y,this.me=z,this.Jp=nt,y=b,b=this.kw,ot=this.lc,ht=this.lw,dt=this.Wp,Et=this.Ti,Ht=this.me,at=this.Jp,this.direction!==Dc&&this.direction!==Df||b!==al)if(this.direction===Dc||this.direction===Df){switch(nt=0,b){case Kh:nt=180*f0(this,ot,Ht,ht,at)/Math.PI;break;case sl:at=y=0,nt=a.first(),nt!==null&&(y=Zh(nt,Math.PI/2)),nt=x.first(),nt!==null&&(at=Zh(nt,Math.PI/2)),nt=180*f0(this,ot,Ht,ht,Et+(y+at)/2)/Math.PI;break;case $u:nt=dt/y.length}if(this.direction===Dc){switch(b){case Kh:dp(this,a,ht,Vh);break;case sl:cp(this,a,ht,Vh);break;case $u:hp(this,a,dt/2,ht,Vh)}switch(b){case Kh:dp(this,x,ht+nt,Is);break;case sl:cp(this,x,ht+nt,Is);break;case $u:hp(this,x,dt/2,ht+nt,Is)}}else{switch(b){case Kh:dp(this,x,ht,Vh);break;case sl:cp(this,x,ht,Vh);break;case $u:hp(this,x,dt/2,ht,Vh)}switch(b){case Kh:dp(this,a,ht+nt,Is);break;case sl:cp(this,a,ht+nt,Is);break;case $u:hp(this,a,dt/2,ht+nt,Is)}}}else switch(b){case Kh:dp(this,y,ht,this.direction);break;case sl:cp(this,y,ht,this.direction);break;case $u:hp(this,y,dt,ht,this.direction);break;case al:IS(this,y,dt,ht,this.direction)}else IS(this,y,dt,ht-dt/2,Is)}this.updateParts(),this.network=null,this.isValidLayout=!0};function hp(a,y,x,b,E){var z=a.Wp,nt=a.lc;a=a.me,b=b*Math.PI/180,x=x*Math.PI/180;for(var ot=y.length,at=0;at<ot;at++){var ht=b+(E===Is?at*x/(360<=z?ot:ot-1):-(at*x)/ot),dt=y.M(at),Et=nt*Math.tan(ht)/a;Et=Math.sqrt((nt*nt+a*a*Et*Et)/(1+Et*Et)),dt.centerX=Et*Math.cos(ht),dt.centerY=Et*Math.sin(ht),dt.actualAngle=180*ht/Math.PI}}function cp(a,y,x,b){var E=a.lc,z=a.me,nt=a.Ti;x=x*Math.PI/180;for(var ot=y.length,at=0;at<ot;at++){var ht=y.M(at),dt=y.M(at===ot-1?0:at+1),Et=z*Math.sin(x);ht.centerX=E*Math.cos(x),ht.centerY=Et,ht.actualAngle=180*x/Math.PI,isNaN(ht.diameter)&&Zh(ht,0),isNaN(dt.diameter)&&Zh(dt,0),ht=f0(a,E,z,b===Is?x:-x,(ht.diameter+dt.diameter)/2+nt),x+=b===Is?ht:-ht}}function dp(a,y,x,b){var E=a.lc,z=a.me,nt=a.Jp;x=x*Math.PI/180;for(var ot=y.length,at=0;at<ot;at++){var ht=y.M(at);ht.centerX=E*Math.cos(x),ht.centerY=z*Math.sin(x),ht.actualAngle=180*x/Math.PI,ht=f0(a,E,z,b===Is?x:-x,nt),x+=b===Is?ht:-ht}}function IS(a,y,x,b,E){var z=a.Wp;if(a.mj=0,a.Xr=new fp,360>x){for(z=b+(E===Is?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,FS(a,y,x,b,E)}else DS(a,y,x,b,E);a.Xr.commit(y)}function DS(a,y,x,b,E){var z=a.lc,nt=a.Ti,ot=a.Zm,at=z*Math.cos(b*Math.PI/180),ht=a.me*Math.sin(b*Math.PI/180),dt=y.Fa();if(dt.length===3)dt[0].centerX=z,dt[0].centerY=0,dt[1].centerX=dt[0].centerX-dt[0].width/2-dt[1].width/2-nt,dt[1].y=dt[0].y,dt[2].centerX=(dt[0].centerX+dt[1].centerX)/2,dt[2].y=dt[0].y-dt[2].height-nt;else if(dt.length===4)dt[0].centerX=z,dt[0].centerY=0,dt[2].centerX=-dt[0].centerX,dt[2].centerY=dt[0].centerY,dt[1].centerX=0,dt[1].y=Math.min(dt[0].y,dt[2].y)-dt[1].height-nt,dt[3].centerX=0,dt[3].y=Math.max(dt[0].y+dt[0].height+nt,dt[2].y+dt[2].height+nt);else{z=Se.alloc();for(var Et=0;Et<dt.length&&(dt[Et].centerX=at,dt[Et].centerY=ht,!(Et>=dt.length-1));Et++)BS(a,at,ht,dt,Et,E,z)||RS(a,at,ht,dt,Et,E,z),at=z.x,ht=z.y;if(Se.free(z),a.mj++,!(23<a.mj)){at=dt[0].centerX,ht=dt[0].centerY,z=dt[dt.length-1].centerX,Et=dt[dt.length-1].centerY;var Ht=Math.abs(at-z)-((dt[0].width+dt[dt.length-1].width)/2+nt),Jt=Math.abs(ht-Et)-((dt[0].height+dt[dt.length-1].height)/2+nt);nt=0,1>Math.abs(Jt)?Math.abs(at-z)<(dt[0].width+dt[dt.length-1].width)/2&&(nt=0):nt=0<Jt?Jt:1>Math.abs(Ht)?0:Ht,at=Math.abs(z)>Math.abs(Et)?0<z!=ht>Et:0<Et!=at<z,(at=E===Is?at:!at)&&(nt=-Math.abs(nt),nt=Math.min(nt,-dt[dt.length-1].width),nt=Math.min(nt,-dt[dt.length-1].height)),a.Xr.compare(nt,dt),1<Math.abs(nt)&&(a.lc=8>a.mj?a.lc-nt/(2*Math.PI):5>dt.length&&10<nt?a.lc/2:a.lc-(0<nt?1.7:-2.3),a.me=a.lc*ot,DS(a,y,x,b,E))}}}function FS(a,y,x,b,E){for(var z=a.lc,nt=a.me,ot=a.Zm,at=z*Math.cos(b*Math.PI/180),ht=nt*Math.sin(b*Math.PI/180),dt=Se.alloc(),Et=y.Fa(),Ht=0;Ht<Et.length&&(Et[Ht].centerX=at,Et[Ht].centerY=ht,!(Ht>=Et.length-1));Ht++)BS(a,at,ht,Et,Ht,E,dt)||RS(a,at,ht,Et,Ht,E,dt),at=dt.x,ht=dt.y;if(Se.free(dt),a.mj++,!(23<a.mj)){if(at=Math.atan2(ht,at),at=E===Is?a.gt-at:at-a.gt,at=Math.abs(at)<Math.abs(at-2*Math.PI)?at:at-2*Math.PI,z=at*(z+nt)/2,nt=a.Xr,Math.abs(z)<Math.abs(nt.Pl))for(nt.Pl=z,nt.mk=[],nt.tm=[],at=0;at<Et.length;at++)nt.mk[at]=Et[at].bounds.x,nt.tm[at]=Et[at].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*ot,FS(a,y,x,b,E))}}function BS(a,y,x,b,E,z,nt){var ot=a.lc,at=a.me,ht=0;a=(b[E].width+b[E+1].width)/2+a.Ti;var dt=!1;if(0<=x!=(z===Is)){if(z=y+a,z>ot){if(z=y-a,z<-ot)return nt.x=z,nt.y=ht,!1;dt=!0}}else if(z=y-a,z<-ot){if(z=y+a,z>ot)return nt.x=z,nt.y=ht,!1;dt=!0}return ht=Math.sqrt(1-Math.min(1,z*z/(ot*ot)))*at,0>x!==dt&&(ht=-ht),Math.abs(x-ht)>(b[E].height+b[E+1].height)/2?(nt.x=z,nt.y=ht,!1):(nt.x=z,nt.y=ht,!0)}function RS(a,y,x,b,E,z,nt){var ot=a.lc,at=a.me,ht=0;if(a=(b[E].height+b[E+1].height)/2+a.Ti,b=!1,0<=y!=(z===Is)){if(z=x-a,z<-at){if(z=x+a,z>at){nt.x=ht,nt.y=z;return}b=!0}}else if(z=x+a,z>at){if(z=x-a,z<-at){nt.x=ht,nt.y=z;return}b=!0}ht=Math.sqrt(1-Math.min(1,z*z/(at*at)))*ot,0>y!==b&&(ht=-ht),nt.x=ht,nt.y=z}Qr.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Qr.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 Se(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))},Qr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function gy(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 nt=0,ot=b!==void 0&&E!==void 0?E/(z+1):Math.PI/(2*(z+1)),at=0,ht=0;ht<=z;ht++){b!==void 0&&E!==void 0?at=b+ht*E/z:at=ht*Math.PI/(2*z);var dt=Math.sin(at);nt+=Math.sqrt(1-a*a*dt*dt)*ot}return b!==void 0&&E!==void 0?(y>x?y:x)*nt:4*(y>x?y:x)*nt}function d0(a,y,x,b,E){return y/(b!==void 0&&E!==void 0?gy(a,1,x,b,E):gy(a,1,x))}function f0(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,nt=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(b+=Math.PI/2);for(var ot=0;;ot++){var at=Math.sin(b+ot*a);if(nt+=(y>x?y:x)*Math.sqrt(1-z*z*at*at)*a,nt>=E)return ot*a}}Qr.prototype.sort=function(a){switch(this.sorting){case g0:break;case p0:a.reverse();break;case m0:a.sort(this.comparer);break;case v0:a.sort(this.comparer),a.reverse();break;case Ff:return this.ak(Dx(a));default:Pe("Invalid sorting type.")}return a};function Dx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new bn;for(var b=0;b<a.length;b++){var E=-1,z=-1;if(b===0)for(var nt=0;nt<a.length;nt++){var ot=a.M(nt).edgesCount;ot>E&&(E=ot,z=nt)}else for(nt=0;nt<a.length;nt++)ot=y[nt],ot>E&&(E=ot,z=nt);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),nt=z.sourceEdges;nt.next();)E=a.indexOf(nt.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}Qr.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 nt=[],ot=[];b=[],E=new bn;for(var at=0,ht=0;ht<y.length;ht++){var dt=y[ht].length;if(dt===1)b.push(ht);else if(dt===0)E.add(a.M(ht));else{if(at===0)x.push(ht);else{for(var Et=dt=1/0,Ht=-1,Jt=[],ee=0;ee<x.length;ee++)0>y[x[ee]].indexOf(x[ee===x.length-1?0:ee+1])&&Jt.push(ee===x.length-1?0:ee+1);if(Jt.length===0)for(ee=0;ee<x.length;ee++)Jt.push(ee);for(ee=0;ee<Jt.length;ee++){for(var se=Jt[ee],Ce=y[ht],ve=0,Ae=0;Ae<nt.length;Ae++){var Ie=z[nt[Ae]],Be=z[ot[Ae]];if(Ie<Be){var Ve=Ie;Ie=Be}else Ve=Be;if(Ve<se&&se<=Ie)for(Be=0;Be<Ce.length;Be++){var rn=Ce[Be];0>x.indexOf(rn)||Ve<z[rn]&&z[rn]<Ie||Ve===z[rn]||Ie===z[rn]||ve++}else for(Be=0;Be<Ce.length;Be++)rn=Ce[Be],0>x.indexOf(rn)||Ve<z[rn]&&z[rn]<Ie&&Ve!==z[rn]&&Ie!==z[rn]&&ve++}for(Ce=ve,Ae=ve=0;Ae<y[ht].length;Ae++)Ve=x.indexOf(y[ht][Ae]),0<=Ve&&(Ve=Math.abs(se-(Ve>=se?Ve+1:Ve)),ve+=Ve<x.length+1-Ve?Ve:x.length+1-Ve);for(Ae=0;Ae<nt.length;Ae++)Ve=z[nt[Ae]],Ie=z[ot[Ae]],Ve>=se&&Ve++,Ie>=se&&Ie++,Ve>Ie&&(Be=Ie,Ie=Ve,Ve=Be),Ie-Ve<(x.length+2)/2==(Ve<se&&se<=Ie)&&ve++;(Ce<dt||Ce===dt&&ve<Et)&&(dt=Ce,Et=ve,Ht=se)}for(x.splice(Ht,0,ht),dt=0;dt<x.length;dt++)z[x[dt]]=dt;for(dt=0;dt<y[ht].length;dt++)Et=y[ht][dt],0<=x.indexOf(Et)&&(nt.push(ht),ot.push(Et))}at++}}for(nt=x.length;;){for(z=!0,ot=0;ot<b.length;ot++)if(at=b[ot],ht=y[at][0],dt=x.indexOf(ht),0<=dt){for(Ht=Et=0;Ht<y[ht].length;Ht++)Jt=x.indexOf(y[ht][Ht]),0>Jt||Jt===dt||(ee=Jt>dt?Jt-dt:dt-Jt,Et+=Jt<dt!=ee>nt-ee?1:-1);x.splice(0>Et?dt:dt+1,0,at),b.splice(ot,1),ot--}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},we.Object.defineProperties(Qr.prototype,{radius:{get:function(){return this.eo},set:function(a){this.eo!==a&&(0<a||isNaN(a))&&(this.eo=a,this.C())}},aspectRatio:{get:function(){return this.Cm},set:function(a){this.Cm!==a&&0<a&&(this.Cm=a,this.C())}},startAngle:{get:function(){return this.ro},set:function(a){this.ro!==a&&(this.ro=a,this.C())}},sweepAngle:{get:function(){return this.ul},set:function(a){this.ul!==a&&(0<a&&360>=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==al&&a!==sl&&a!==Kh&&a!==$u||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Is&&a!==Vh&&a!==Dc&&a!==Df||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==g0&&a!==p0&&a!==m0&&!v0&&a!==Ff||(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!==y0&&a!==Pd||(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 sl=new dn(Qr,"ConstantSpacing",0),Kh=new dn(Qr,"ConstantDistance",1),$u=new dn(Qr,"ConstantAngle",2),al=new dn(Qr,"Packed",3),Is=new dn(Qr,"Clockwise",4),Vh=new dn(Qr,"Counterclockwise",5),Dc=new dn(Qr,"BidirectionalLeft",6),Df=new dn(Qr,"BidirectionalRight",7),g0=new dn(Qr,"Forwards",8),p0=new dn(Qr,"Reverse",9),m0=new dn(Qr,"Ascending",10),v0=new dn(Qr,"Descending",11),Ff=new dn(Qr,"Optimized",12),y0=new dn(Qr,"Pythagorean",13),Pd=new dn(Qr,"Circular",14);Qr.className="CircularLayout",Qr.ConstantSpacing=sl,Qr.ConstantDistance=Kh,Qr.ConstantAngle=$u,Qr.Packed=al,Qr.Clockwise=Is,Qr.Counterclockwise=Vh,Qr.BidirectionalLeft=Dc,Qr.BidirectionalRight=Df,Qr.Forwards=g0,Qr.Reverse=p0,Qr.Ascending=m0,Qr.Descending=v0,Qr.Optimized=Ff,Qr.Pythagorean=y0,Qr.Circular=Pd;function fp(){this.Pl=-1/0,this.tm=this.mk=null}fp.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},fp.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]}},fp.className="VertexArrangement";function Bf(a){Dr.call(this,a)}Qe(Bf,Dr),Bf.prototype.createVertex=function(){return new gp(this)},Bf.prototype.createEdge=function(){return new S0(this)},Bf.className="CircularNetwork";function gp(a){Ao.call(this,a),this.u=this.Si=NaN}Qe(gp,Ao);function Zh(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===al)if(x.nodeDiameterFormula===Pd)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===Pd?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}we.Object.defineProperties(gp.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)}}}),gp.className="CircularVertex";function S0(a){aa.call(this,a)}Qe(S0,aa),S0.className="CircularEdge";function is(a){Gr.call(this),this.ah=null,this.An=0,this.$d=new Wn(100,100).freeze(),this.Bm=!1,this.sf=!0,this.td=!1,this.dl=100,this.$m=1,this.Zf=1e3,this.In=10,this.fo=Math,this.Hk=.05,this.Gk=50,this.Ek=150,this.Fk=0,this.Vm=10,this.Um=5,a&&Object.assign(this,a)}Qe(is,Gr),is.prototype.cloneProtected=function(a){Gr.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},is.prototype.createNetwork=function(){return new bd(this)},is.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}jS(this,0,a)}this.network=y;var nt=b=x.iterator;b=this.arrangementSpacing;var ot=nt.count,at=!0;z=E=0;for(var ht=sn(),dt=0;dt<ot+y.vertexes.count+2;dt++)ht[dt]=null;ot=0,nt.reset();for(var Et=yn.alloc();nt.next();)if(dt=nt.value,this.computeBounds(dt,Et),at)at=!1,E=Et.x+Et.width/2,z=Et.y+Et.height/2,ht[0]=new Se(Et.x+Et.width+b.width,Et.y),ht[1]=new Se(Et.x,Et.y+Et.height+b.height),ot=2;else{var Ht=zS(ht,ot,E,z,Et.width,Et.height,b),Jt=ht[Ht],ee=new Se(Jt.x+Et.width+b.width,Jt.y),se=new Se(Jt.x,Jt.y+Et.height+b.height);for(Ht+1<ot&&ht.splice(Ht+1,0,null),ht[Ht]=ee,ht[Ht+1]=se,ot++,Ht=Jt.x-Et.x,Jt=Jt.y-Et.y,dt=dt.vertexes.iterator;dt.next();)ee=dt.value,ee.centerX+=Ht,ee.centerY+=Jt}for(yn.free(Et),dt=y.vertexes.iterator;dt.next();)nt=dt.value,Ht=nt.bounds,2>ot?(E=Ht.x+Ht.width/2,z=Ht.y+Ht.height/2,ht[0]=new Se(Ht.x+Ht.width+b.width,Ht.y),ht[1]=new Se(Ht.x,Ht.y+Ht.height+b.height),ot=2):(at=zS(ht,ot,E,z,Ht.width,Ht.height,b),Et=ht[at],Jt=new Se(Et.x+Ht.width+b.width,Et.y),Ht=new Se(Et.x,Et.y+Ht.height+b.height),at+1<ot&&ht.splice(at+1,0,null),ht[at]=Jt,ht[at+1]=Ht,ot++,nt.centerX=Et.x+nt.width/2,nt.centerY=Et.y+nt.height/2);for(xn(ht),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)}}WS(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},is.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},is.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 jS(a,y,x){if(Fx(a,y)){var b=a.Zf;a.Zf*=1+1/(y+1);var E=Bx(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=z,jS(a,y+1,x),WS(a,z),Rx(a,E),y=E.vertexes.Fa(),y.sort(function(nt,ot){return nt===null||ot===null||nt===ot?0:ot.Vd-nt.Vd}),x=0;x<y.length;x++)jx(a,y[x]);a.Zf=b}}function Fx(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 Bx(a,y){for(var x=a.network,b=new bd(a),E=0;E<a.ah.length;E++){var z=a.ah[E];if(1<z.Vd){b.dh(z);var nt=new US;nt.Rs=z.Vd,nt.Ss=z.width,nt.Qs=z.height,nt.Sv=z.focus.x,nt.Tv=z.focus.y,z.We===null&&(z.We=new bn),z.We.add(nt),z.sv=z.We.count-1}else break}for(z=x.edges.iterator;z.next();){var ot=z.value;E=ot.fromVertex,nt=ot.toVertex,E.network===b&&nt.network===b?b.Bo(ot):E.network===b?(ot=E.Hj,ot===null&&(ot=new bn,E.Hj=ot),ot.add(nt),E.Vd--,E.sh+=nt.sh):nt.network===b&&(ot=nt.Hj,ot===null&&(ot=new bn,nt.Hj=ot),ot.add(E),nt.Vd--,nt.sh+=E.sh)}for(E=b.edges.iterator;E.next();)z=E.value,z.length*=Math.max(1,Je.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=b.vertexes.iterator;y.next();){E=y.value;var at=E.Hj;if(at!==null&&0<at.count&&(nt=E.We.M(E.We.count-1).Rs-E.Vd,!(0>=nt))){for(var ht=ot=0,dt=at.count-nt;dt<at.count;dt++){var Et=at.M(dt),Ht=null;for(z=Et.edges.iterator;z.next();){var Jt=z.value;if(Jt.Ax(Et)===E){Ht=Jt;break}}Ht!==null&&(ht+=Ht.length,ot+=Et.width*Et.height)}z=E.centerX,at=E.centerY,dt=E.width,Et=E.height,Ht=E.focus,Jt=dt*Et,1>Jt&&(Jt=1),ot=Je.sqrt((ot+Jt+ht*ht*4/(nt*nt))/Jt),nt=(ot-1)*dt/2,ot=(ot-1)*Et/2,E.bounds=new yn(z-Ht.x-nt,at-Ht.y-ot,dt+2*nt,Et+2*ot),E.focus=new Se(Ht.x+nt,Ht.y+ot)}}return a.network=b,x}function Rx(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,nt=E.Tv;b.bounds=new yn(b.centerX-z,b.centerY-nt,E.Ss,E.Qs),b.focus=new Se(z,nt),b.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function jx(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var b=y.centerX,E=y.centerY,z=y.width,nt=y.height;y.We!==null&&0<y.We.count&&(nt=y.We.M(0),z=nt.Ss,nt=nt.Qs),z=Je.sqrt(z*z+nt*nt)/2;for(var ot=!1,at=nt=0,ht=0,dt=y.vertexes.iterator;dt.next();){var Et=dt.value;1>=Et.Vd?at++:(ot=!0,ht++,nt+=Math.atan2(y.centerY-Et.centerY,y.centerX-Et.centerX))}if(at!==0){for(0<ht&&(nt/=ht),ht=y=0,y=ot?2*Math.PI/(at+1):2*Math.PI/at,at%2===0&&(ht=y/2),1<x.count&&x.sort(function(Jt,ee){return Jt===null||ee===null||Jt===ee?0:ee.width*ee.height-Jt.width*Jt.height}),ot=at%2===0?0:1,x=x.iterator;x.next();)if(at=x.value,!(1<at.Vd||a.isFixed(at))){for(dt=null,Et=at.edges.iterator;Et.next();){dt=Et.value;break}Et=at.width;var Ht=at.height;Et=Je.sqrt(Et*Et+Ht*Ht)/2,dt=z+dt.length+Et,Et=nt+(y*(ot/2>>1)+ht)*(ot%2===0?1:-1),at.centerX=b+dt*Math.cos(Et),at.centerY=E+dt*Math.sin(Et),ot++}}}}function zS(a,y,x,b,E,z,nt){var ot=9e19,at=-1,ht=0;t:for(;ht<y;ht++){var dt=a[ht],Et=dt.x-x,Ht=dt.y-b;if(Et=Et*Et+Ht*Ht,Et<ot){for(Ht=ht-1;0<=Ht;Ht--)if(a[Ht].y>dt.y&&a[Ht].x-dt.x<E+nt.width)continue t;for(Ht=ht+1;Ht<y;Ht++)if(a[Ht].x>dt.x&&a[Ht].y-dt.y<z+nt.height)continue t;at=ht,ot=Et}}return at}is.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},is.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 HS(a,y){var x=a.bounds,b=x.x;a=x.y;var E=x.width;x=x.height;var z=y.bounds,nt=z.x;y=z.y;var ot=z.width;return z=z.height,b+E<nt?a>y+z?(x=b+E-nt,a=a-y-z,Je.sqrt(x*x+a*a)):a+x<y?(b=b+E-nt,a=a+x-y,Je.sqrt(b*b+a*a)):nt-(b+E):b>nt+ot?a>y+z?(x=b-nt-ot,a=a-y-z,Je.sqrt(x*x+a*a)):a+x<y?(b=b-nt-ot,a=a+x-y,Je.sqrt(b*b+a*a)):b-(nt+ot):a>y+z?a-(y+z):a+x<y?y-(a+x):.1}function WS(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,nt=1;nt<y.length;nt++){var ot=y[nt];ot.forceX=0,ot.forceY=0;var at=ot.centerX;ot=ot.centerY,b=Math.min(b,at),E=Math.max(E,at),x=Math.min(x,ot),z=Math.max(z,ot)}(E=E-b>z-x)?y.sort(function(se,Ce){return se===null||Ce===null||se===Ce?0:se.centerX-Ce.centerX}):y.sort(function(se,Ce){return se===null||Ce===null||se===Ce?0:se.centerY-Ce.centerY}),x=a.Zf;var ht=b=ot=0;for(z=0;z<y.length;z++){nt=y[z],b=nt.bounds,ot=nt.focus,at=b.x+ot.x;var dt=b.y+ot.y;b=nt.charge*a.electricalFieldX(at,dt),ht=nt.charge*a.electricalFieldY(at,dt),b+=nt.mass*a.gravitationalFieldX(at,dt),ht+=nt.mass*a.gravitationalFieldY(at,dt),nt.forceX+=b,nt.forceY+=ht;for(var Et=z+1;Et<y.length;Et++){var Ht=y[Et];if(Ht!==nt){b=Ht.bounds,ot=Ht.focus,ht=b.x+ot.x;var Jt=b.y+ot.y;if(at-ht>x||ht-at>x){if(E)break}else if(dt-Jt>x||Jt-dt>x){if(!E)break}else{var ee=HS(nt,Ht);1>ee?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new x0),ee=b.random(),ot=b.random(),at>ht?(b=Math.abs(Ht.bounds.right-nt.bounds.x),b=(1+b)*ee):at<ht?(b=Math.abs(Ht.bounds.x-nt.bounds.right),b=-(1+b)*ee):(b=Math.max(Ht.width,nt.width),b=(1+b)*ee-b/2),dt>Jt?(ht=Math.abs(Ht.bounds.bottom-nt.bounds.y),ht=(1+ht)*ot):at<ht?(ht=Math.abs(Ht.bounds.y-nt.bounds.bottom),ht=-(1+ht)*ot):(ht=Math.max(Ht.height,nt.height),ht=(1+ht)*ot-ht/2)):(ot=-(nt.charge*Ht.charge)/(ee*ee),b=(ht-at)/ee*ot,ht=(Jt-dt)/ee*ot),nt.forceX+=b,nt.forceY+=ht,Ht.forceX-=b,Ht.forceY-=ht}}}}for(E=a.network.edges.iterator;E.next();)ot=E.value,x=ot.fromVertex,z=ot.toVertex,nt=x.bounds,at=x.focus,b=nt.x+at.x,nt=nt.y+at.y,dt=z.bounds,Et=z.focus,at=dt.x+Et.x,dt=dt.y+Et.y,Et=HS(x,z),1>Et?(Et=a.randomNumberGenerator,Et===null&&(a.randomNumberGenerator=Et=new x0),ot=Et.random(),Et=Et.random(),b=(b>at?1:-1)*(1+(z.width>x.width?z.width:x.width))*ot,ht=(nt>dt?1:-1)*(1+(z.height>x.height?z.height:x.height))*Et):(ot=ot.stiffness*(Et-ot.length),b=(at-b)/Et*ot,ht=(dt-nt)/Et*ot),x.forceX+=b,x.forceY+=ht,z.forceX-=b,z.forceY-=ht;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}is.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},is.prototype.moveFixedVertex=function(){},is.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},is.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Cr,y.toSpot=Cr)}},is.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=yn.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,yn.free(x)}x=yn.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()}yn.free(x)},is.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},is.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},is.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},is.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},is.prototype.electricalFieldX=function(){return 0},is.prototype.electricalFieldY=function(){return 0},is.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},is.prototype.gravitationalFieldX=function(){return 0},is.prototype.gravitationalFieldY=function(){return 0},is.prototype.isFixed=function(a){return a.isFixed},we.Object.defineProperties(is.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"&&Pe('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())}}}),is.className="ForceDirectedLayout";function US(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}US.className="ForceDirectedSubnet";function bd(a){Dr.call(this,a)}Qe(bd,Dr),bd.prototype.createVertex=function(){return new pp(this)},bd.prototype.createEdge=function(){return new mp(this)},bd.className="ForceDirectedNetwork";function pp(a){Ao.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}Qe(pp,Ao),we.Object.defineProperties(pp.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)}}}),pp.className="ForceDirectedVertex";function mp(a){aa.call(this,a),this.j=this.o=NaN}Qe(mp,aa),we.Object.defineProperties(mp.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)}}}),mp.className="ForceDirectedEdge";function x0(){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()}x0.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},x0.className="RandomNumberGenerator";function Lr(a){Gr.call(this),this.kc=this.ie=25,this.K=0,this.Dk=E0,this.Zk=L0,this.Qk=A0,this.bj=4,this.rk=M0,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 Se,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Qe(Lr,Gr),Lr.prototype.cloneProtected=function(a){Gr.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},Lr.prototype.qb=function(a){a.classType===Lr?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:Pe("Unknown enum value: "+a):Gr.prototype.qb.call(this,a)},Lr.prototype.createNetwork=function(){return new jf(this)},Lr.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!==yp&&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===yp&&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 nt=0,ot=0,at=0,ht=0;if(b.link!==null){if(ot=b.link,ot===null)continue;var dt=E.node;if(nt=z.node,dt===null||nt===null)continue;var Et=ot.fromNode;at=ot.toNode;for(var Ht=ot.fromPort;Ht!==null&&!Ht.Ed();)Ht=Ht.panel;for(ot=ot.toPort;ot!==null&&!ot.Ed();)ot=ot.panel;if(b.rev){ht=Et;var Jt=Ht;Et=at,Ht=ot,at=ht,ot=Jt}var ee=E.focus;ht=z.focus;var se=b.rev?z.bounds:E.bounds;Jt=Se.alloc(),dt!==Et?se.w()&&Et.isVisible()?Et.actualBounds.w()?(Yu(Et,Ht,ur,Jt),Jt.x+=Et.actualBounds.x-se.x,Jt.y+=Et.actualBounds.y-se.y):(Yu(Et,Ht,ur,Jt),Jt.w()||Jt.assign(ee)):Jt.assign(ee):se.w()?(Yu(Et,Ht,ur,Jt),Jt.w()||Jt.assign(ee)):Jt.assign(ee),Et=b.rev?E.bounds:z.bounds,dt=Se.alloc(),nt!==at?Et.w()&&at.isVisible()?at.actualBounds.w()?(Yu(at,ot,ur,dt),dt.x+=at.actualBounds.x-Et.x,dt.y+=at.actualBounds.y-Et.y):(Yu(at,ot,ur,dt),dt.w()||dt.assign(ht)):dt.assign(ht):Et.w()?(Yu(at,ot,ur,dt),dt.w()||dt.assign(ht)):dt.assign(ht),this.K===90||this.K===270?(nt=Math.round((Jt.x-ee.x)/this.kc),at=Jt.x,ot=Math.round((dt.x-ht.x)/this.kc),ht=dt.x):(nt=Math.round((Jt.y-ee.y)/this.kc),at=Jt.y,ot=Math.round((dt.y-ht.y)/this.kc),ht=dt.y),Se.free(Jt),Se.free(dt),b.portFromColOffset=nt,b.portFromPos=at,b.portToColOffset=ot,b.portToPos=ht}else b.portFromColOffset=0,b.portFromPos=0,b.portToColOffset=0,b.portToPos=0;if(Jt=E.layer,dt=z.layer,Et=0,se=b.link,se!==null){var Ce=se.fromPort,ve=se.toPort;if(Ce!==null&&ve!==null){var Ae=se.fromNode;if(Ht=se.toNode,Ae!==null&&Ht!==null){var Ie=C0(this,!0),Be=C0(this,!1),Ve=this.setsPortSpots?Ie:se.computeSpot(!0,Ce);ee=this.setsPortSpots?Be:se.computeSpot(!1,ve);var rn=se.isOrthogonal;Ve.$c()&&Ve.Hf(Be)&&ee.$c()&&ee.Hf(Ie)?Et=0:(Ie=se.getLinkPoint(Ae,Ce,Ve,!0,rn,Ht,ve,Se.alloc()),Be=se.getLinkDirection(Ae,Ce,Ie,Ve,!0,rn,Ht,ve),Se.free(Ie),Ve.ys()||Be!==QS(this,b,!0)?this.setsPortSpots&&Ae!==null&&Ae.ports.count===1&&b.rev&&(Et+=1):Et+=1,Ve=se.getLinkPoint(Ht,ve,ee,!1,rn,Ae,Ce,Se.alloc()),se=se.getLinkDirection(Ht,ve,Ve,ee,!1,rn,Ae,Ce),Se.free(Ve),ee.ys()||se!==QS(this,b,!1)?this.setsPortSpots&&Ht!==null&&Ht.ports.count===1&&b.rev&&(Et+=2):Et+=2)}}}if(Ht=Et,Et=Ht===1||Ht===3,(Ht=Ht===2||Ht===3)&&(ee=a.createVertex(),ee.node=null,ee.Dj=1,ee.layer=Jt,ee.near=E,a.dh(ee),E=a.Zj(E,ee,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=nt,E.portToColOffset=0,E.portFromPos=at,E.portToPos=0,E=ee),se=1,Et&&se--,Jt-dt>se&&0<Jt){for(b.valid=!1,ee=a.createVertex(),ee.node=null,ee.Dj=2,ee.layer=Jt-1,a.dh(ee),E=a.Zj(E,ee,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=Ht?0:nt,E.portToColOffset=0,E.portFromPos=Ht?0:at,E.portToPos=0,E=ee,Jt--;Jt-dt>se&&0<Jt;)ee=a.createVertex(),ee.node=null,ee.Dj=3,ee.layer=Jt-1,a.dh(ee),E=a.Zj(E,ee,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=ee,Jt--;E=a.Zj(ee,z,b.link),E.valid=!Et,Et&&(ee.near=z),E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=ot,E.portFromPos=0,E.portToPos=ht}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=Xh(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),Yh(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},Lr.prototype.linkMinLength=function(){return 1};function py(a){var y=a.fromVertex.node||a.fromVertex.data;return a=a.toVertex.node||a.toVertex.data,y===null&&a===null?8:y===null||a===null?4:1}Lr.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},Lr.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 Us(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 Da(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 GS(a,y,x){var b=Xh(a,y),E=a.tc[y];(a.Jn===null||a.Jn.length<E*E)&&(a.Jn=[]);for(var z=a.Jn,nt=0;nt<E;nt++){var ot=0,at=b[nt],ht=at.near;if(ht!==null&&ht.layer===at.layer)if(at=ht.index,at>nt)for(var dt=nt+1;dt<at;dt++){var Et=b[dt];Et.near===ht&&Et.Dj===ht.Dj||ot++}else for(dt=nt-1;dt>at;dt--)Et=b[dt],Et.near===ht&&Et.Dj===ht.Dj||ot++;var Ht;if(0<=x)for(at=b[nt].sourceEdgesArrayAccess,ht=0;ht<at.length;ht++){var Jt=at[ht];if(Jt.valid&&Jt.fromVertex.layer!==y)for(Et=Jt.fromVertex.index,dt=Jt.portToPos,Jt=Jt.portFromPos,Ht=ht+1;Ht<at.length;Ht++){var ee=at[Ht];if(ee.valid&&ee.fromVertex.layer!==y){var se=ee.fromVertex.index,Ce=ee.portToPos;ee=ee.portFromPos,dt<Ce&&(Et>se||Et===se&&Jt>ee)&&ot++,Ce<dt&&(se>Et||se===Et&&ee>Jt)&&ot++}}}if(0>=x){for(at=b[nt].destinationEdgesArrayAccess,ht=0;ht<at.length;ht++)if(Jt=at[ht],Jt.valid&&Jt.toVertex.layer!==y)for(Et=Jt.toVertex.index,dt=Jt.portToPos,Jt=Jt.portFromPos,Ht=ht+1;Ht<at.length;Ht++)ee=at[Ht],ee.valid&&ee.toVertex.layer!==y&&(se=ee.toVertex.index,Ce=ee.portToPos,ee=ee.portFromPos,Jt<ee&&(Et>se||Et===se&&dt>Ce)&&ot++,ee<Jt&&(se>Et||se===Et&&Ce>dt)&&ot++)}for(z[nt*E+nt]=ot,at=nt+1;at<E;at++){var ve=0,Ae=0;if(0<=x){ot=b[nt].sourceEdgesArrayAccess;var Ie=b[at].sourceEdgesArrayAccess;for(ht=0;ht<ot.length;ht++)if(Jt=ot[ht],Jt.valid&&Jt.fromVertex.layer!==y)for(Et=Jt.fromVertex.index,Jt=Jt.portFromPos,Ht=0;Ht<Ie.length;Ht++)ee=Ie[Ht],ee.valid&&ee.fromVertex.layer!==y&&(se=ee.fromVertex.index,ee=ee.portFromPos,(Et<se||Et===se&&Jt<ee)&&Ae++,(se<Et||se===Et&&ee<Jt)&&ve++)}if(0>=x){for(ot=b[nt].destinationEdgesArrayAccess,Ie=b[at].destinationEdgesArrayAccess,ht=0;ht<ot.length;ht++)if(Jt=ot[ht],Jt.valid&&Jt.toVertex.layer!==y)for(Et=Jt.toVertex.index,dt=Jt.portToPos,Ht=0;Ht<Ie.length;Ht++)ee=Ie[Ht],ee.valid&&ee.toVertex.layer!==y&&(se=ee.toVertex.index,Ce=ee.portToPos,(Et<se||Et===se&&dt<Ce)&&Ae++,(se<Et||se===Et&&Ce<dt)&&ve++)}z[nt*E+at]=ve,z[at*E+nt]=Ae}}return Yh(a,y,b),z}Lr.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=GS(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 w0(a){for(var y=0,x=0;x<=a.Ia;x++){for(var b=a,E=x,z=Xh(b,E),nt=b.tc[E],ot=0,at=0;at<nt;at++){var ht=z[at].destinationEdgesArrayAccess;if(ht!==null)for(var dt=0;dt<ht.length;dt++){var Et=ht[dt];if(Et.valid&&Et.toVertex.layer!==E){var Ht=Et.fromVertex.column+Et.portFromColOffset,Jt=Et.toVertex.column+Et.portToColOffset;ot+=(Math.abs(Ht-Jt)+1)*py(Et)}}}Yh(b,E,z),y+=ot}return y}Lr.prototype.normalize=function(){var a=1/0;this.Ra=-1;for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;a=Math.min(a,x.column-this.nodeMinColumnSpace(x,!0)),this.Ra=Math.max(this.Ra,x.column+this.nodeMinColumnSpace(x,!1))}for(y.reset();y.next();)y.value.column-=a;this.Ra-=a};function my(a,y,x){for(var b=Xh(a,y),E=a.tc[y],z=[],nt=0;nt<E;nt++){var ot=b[nt],at=null;0>=x&&(at=ot.sourceEdgesArrayAccess);var ht=null;0<=x&&(ht=ot.destinationEdgesArrayAccess);var dt=0,Et=0,Ht=ot.near;if(Ht!==null&&Ht.layer===ot.layer&&(dt+=Ht.column-1,Et++),at!==null)for(Ht=0;Ht<at.length;Ht++){ot=at[Ht];var Jt=ot.fromVertex;ot.valid&&!ot.rev&&Jt.layer!==y&&(dt+=Jt.column,Et++)}if(ht!==null)for(at=0;at<ht.length;at++)ot=ht[at],Ht=ot.toVertex,ot.valid&&!ot.rev&&Ht.layer!==y&&(dt+=Ht.column,Et++);z[nt]=Et===0?-1:dt/Et}return Yh(a,y,b),z}function KS(a,y,x){for(var b=Xh(a,y),E=a.tc[y],z=[],nt=0;nt<E;nt++){var ot=b[nt],at=null;0>=x&&(at=ot.sourceEdgesArrayAccess);var ht=null;0<=x&&(ht=ot.destinationEdgesArrayAccess);var dt=0,Et=[],Ht=ot.near;if(Ht!==null&&Ht.layer===ot.layer&&(Et[dt]=Ht.column-1,dt++),ot=void 0,at!==null)for(Ht=0;Ht<at.length;Ht++){ot=at[Ht];var Jt=ot.fromVertex;ot.valid&&!ot.rev&&Jt.layer!==y&&(Et[dt]=Jt.column+ot.portFromColOffset,dt++)}if(ht!==null)for(at=0;at<ht.length;at++)ot=ht[at],Ht=ot.toVertex,ot.valid&&!ot.rev&&Ht.layer!==y&&(Et[dt]=Ht.column+ot.portToColOffset,dt++);dt===0?z[nt]=-1:(Et.sort(function(ee,se){return ee-se}),ht=dt>>1,z[nt]=dt&1?Et[ht]:Et[ht-1]+Et[ht]>>1)}return Yh(a,y,b),z}function vp(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var nt=y.destinationEdges;nt.next();){var ot=nt.value,at=ot.toVertex,ht=y.layer-at.layer;ot=a.linkMinLength(ot),ht===ot&&vp(a,at,x,b,E,z)}if(z)for(nt=y.sourceEdges;nt.next();)ot=nt.value,at=ot.fromVertex,ht=at.layer-y.layer,ot=a.linkMinLength(ot),ht===ot&&vp(a,at,x,b,E,z)}}function vy(a,y,x,b,E,z){if(y.component===b){if(y.component=x,E)for(var nt=y.destinationEdges;nt.next();)vy(a,nt.value.toVertex,x,b,E,z);if(z)for(y=y.sourceEdges;y.next();)vy(a,y.value.fromVertex,x,b,E,z)}}Lr.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case xy:a=this.network;var y=0,x=a.vertexes.count-1,b=[];b.length=x+1;for(var E=a.vertexes.iterator;E.next();)E.value.valid=!0;for(;Hx(a)!==null;){for(E=VS(a);E!==null;)b[x]=E,x--,E.valid=!1,E=VS(a);for(E=ZS(a);E!==null;)b[y]=E,y++,E.valid=!1,E=ZS(a);E=null;for(var z=0,nt=this.network.vertexes.iterator;nt.next();){var ot=nt.value;if(ot.valid){for(var at=0,ht=ot.destinationEdges;ht.next();)ht.value.toVertex.valid&&at++;ht=0;for(var dt=ot.sourceEdges;dt.next();)dt.value.fromVertex.valid&&ht++;(E===null||z<at-ht)&&(E=ot,z=at-ht)}}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 E0:for(b=this.network.vertexes.iterator;b.next();)a=b.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,b.reset();b.next();)y=b.value,y.sourceEdges.count===0&&yy(this,y);for(b.reset();b.next();)y=b.value,y.Ll===-1&&yy(this,y);for(a.reset();a.next();)b=a.value,b.forest||(y=b.fromVertex,x=y.finish,E=b.toVertex,z=E.finish,E.Ll<y.Ll&&x<z&&(this.network.gm(b),b.rev=!0));break;case yp: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 Hx(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function VS(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.destinationEdges;b.next();)if(b.value.toVertex.valid){x=!1;break}if(x)return y}}return null}function ZS(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,b=y.sourceEdges;b.next();)if(b.value.fromVertex.valid){x=!1;break}if(x)return y}}return null}function yy(a,y){y.Ll=a.Kn,a.Kn++;for(var x=y.destinationEdges;x.next();){var b=x.value,E=b.toVertex;E.Ll===-1&&(b.forest=!0,yy(a,E))}y.finish=a.Kn,a.Kn++}Lr.prototype.assignLayers=function(){switch(this.Zk){case wy:XS(this);break;case Py:for(var a,y=this.network.vertexes.iterator;y.next();)a=_S(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 L0:for(XS(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&JS(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 XS(a){for(var y=a.network.vertexes.iterator;y.next();){var x=YS(a,y.value);a.Ia=Math.max(x,a.Ia)}}function YS(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,YS(a,z)+E)}y.layer=x}else x=y.layer;return x}function _S(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,_S(a,z)+E)}y.layer=x}else x=y.layer;return x}function JS(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)JS(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 nt=b[z],ot=nt.fromVertex,at=nt.toVertex;nt=a.linkMinLength(nt),ot.layer-at.layer>nt&&vp(a,ot,0,-1,!0,!1)}for(vp(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,b=1/0,ot=0,at=null,nt=a.network.vertexes.iterator;nt.next();){var ht=nt.value;if(ht.component===1){var dt=0,Et=!1,Ht=ht.sourceEdgesArrayAccess;E=Ht.length;for(var Jt=0;Jt<E;Jt++){var ee=Ht[Jt],se=ee.fromVertex;dt+=1,se.component!==1&&(z+=1,se=se.layer-ht.layer,ee=a.linkMinLength(ee),b=Math.min(b,se-ee))}for(Ht=ht.destinationEdgesArrayAccess,E=Ht.length,Jt=0;Jt<E;Jt++)ee=Ht[Jt].toVertex,--dt,ee.component!==1?--z:Et=!0;(at===null||dt<ot)&&!Et&&(at=ht,ot=dt)}}if(0<z){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer+=b);y.component=0}else at.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(vp(a,y,1,-1,!0,!1);y.component!==0;){for(b=0,E=1/0,z=0,ot=null,at=a.network.vertexes.iterator;at.next();)if(nt=at.value,nt.component===1){for(ht=0,dt=!1,Ht=nt.sourceEdgesArrayAccess,Et=Ht.length,Jt=0;Jt<Et;Jt++)ee=Ht[Jt].fromVertex,ht+=1,ee.component!==1?b+=1:dt=!0;for(Ht=nt.destinationEdgesArrayAccess,Et=Ht.length,Jt=0;Jt<Et;Jt++)ee=Ht[Jt],se=ee.toVertex,--ht,se.component!==1&&(--b,se=nt.layer-se.layer,ee=a.linkMinLength(ee),E=Math.min(E,se-ee));(ot===null||ht>z)&&!dt&&(ot=nt,z=ht)}if(0>b){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer-=E);y.component=0}else ot.component=0}}}function QS(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}Lr.prototype.initializeIndices=function(){switch(this.Qk){default:case Cy:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case A0:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&qS(this,x);break;case by: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&&$S(this,x)}};function qS(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var b=0;b<y.length-1;b++){var E=y[b],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&&qS(a,b))}function $S(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&&$S(a,b))}Lr.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=Us(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)P0(this,b,1),Xa(this,b,1);var E=this.countCrossings();for(E<a&&(a=E,y=Us(this)),b=this.Ia;0<=b;b--)P0(this,b,-1),Xa(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=Us(this))}for(Da(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)P0(this,b,0),Xa(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=Us(this)),b=this.Ia;0<=b;b--)P0(this,b,0),Xa(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=Us(this))}Da(this,y);var z,nt,ot;switch(this.rk){case Ey:break;case Ly:for(ot=a+1;(b=this.countCrossings())<ot;)for(ot=b,x=this.Ia;0<=x;x--)for(nt=0;nt<=x;nt++){for(z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Xa(this,b,-1)||z;for(E=this.countCrossings(),E>=a?Da(this,y):(a=E,y=Us(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Xa(this,b,1)||z;for(E=this.countCrossings(),E>=a?Da(this,y):(a=E,y=Us(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Xa(this,b,1)||z;for(E>=a?Da(this,y):(a=E,y=Us(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Xa(this,b,-1)||z;for(E>=a?Da(this,y):(a=E,y=Us(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Xa(this,b,0)||z;for(E>=a?Da(this,y):(a=E,y=Us(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Xa(this,b,0)||z;E>=a?Da(this,y):(a=E,y=Us(this))}break;default:case M0:for(x=this.Ia,nt=0,ot=a+1;(b=this.countCrossings())<ot;){for(ot=b,z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Xa(this,b,-1)||z;for(E=this.countCrossings(),E>=a?Da(this,y):(a=E,y=Us(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Xa(this,b,1)||z;for(E=this.countCrossings(),E>=a?Da(this,y):(a=E,y=Us(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Xa(this,b,1)||z;for(E>=a?Da(this,y):(a=E,y=Us(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Xa(this,b,-1)||z;for(E>=a?Da(this,y):(a=E,y=Us(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Xa(this,b,0)||z;for(E>=a?Da(this,y):(a=E,y=Us(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Xa(this,b,0)||z;E>=a?Da(this,y):(a=E,y=Us(this))}}Da(this,y)};function P0(a,y,x){var b=Xh(a,y),E=a.tc[y],z=KS(a,y,x),nt=my(a,y,x);for(x=0;x<E;x++)nt[x]===-1&&(nt[x]=b[x].column),z[x]===-1&&(z[x]=b[x].column);for(var ot=!0,at;ot;)for(ot=!1,x=0;x<E-1;x++)(z[x+1]<z[x]||z[x+1]===z[x]&&nt[x+1]<nt[x])&&(ot=!0,at=z[x],z[x]=z[x+1],z[x+1]=at,at=nt[x],nt[x]=nt[x+1],nt[x+1]=at,at=b[x],b[x]=b[x+1],b[x+1]=at);for(x=z=0;x<E;x++)at=b[x],at.index=x,z+=a.nodeMinColumnSpace(at,!0),at.column=z,z+=1,z+=a.nodeMinColumnSpace(at,!1);Yh(a,y,b)}function Xa(a,y,x){var b=Xh(a,y),E=a.tc[y];x=GS(a,y,x);var z,nt=[];for(z=0;z<E;z++)nt[z]=-1;var ot=[];for(z=0;z<E;z++)ot[z]=-1;for(var at=!1,ht=!0;ht;)for(ht=!1,z=0;z<E-1;z++){var dt=x[b[z].index*E+b[z+1].index],Et=x[b[z+1].index*E+b[z].index],Ht=0,Jt=0,ee=b[z].column,se=b[z+1].column,Ce=a.nodeMinColumnSpace(b[z],!0),ve=a.nodeMinColumnSpace(b[z],!1),Ae=a.nodeMinColumnSpace(b[z+1],!0),Ie=a.nodeMinColumnSpace(b[z+1],!1);Ce=ee-Ce+Ae,ve=se-ve+Ie;var Be=b[z].sourceEdges.iterator;for(Be.reset();Be.next();)if(Ae=Be.value,Ie=Ae.fromVertex,Ae.valid&&Ie.layer===y){for(Ae=0;b[Ae]!==Ie;)Ae++;Ae<z&&(Ht+=2*(z-Ae),Jt+=2*(z+1-Ae)),Ae===z+1&&(Ht+=1),Ae>z+1&&(Ht+=4*(Ae-z),Jt+=4*(Ae-(z+1)))}for(Be=b[z].destinationEdges.iterator,Be.reset();Be.next();)if(Ae=Be.value,Ie=Ae.toVertex,Ae.valid&&Ie.layer===y){for(Ae=0;b[Ae]!==Ie;)Ae++;Ae===z+1&&(Jt+=1)}for(Be=b[z+1].sourceEdges.iterator,Be.reset();Be.next();)if(Ae=Be.value,Ie=Ae.fromVertex,Ae.valid&&Ie.layer===y){for(Ae=0;b[Ae]!==Ie;)Ae++;Ae<z&&(Ht+=2*(z+1-Ae),Jt+=2*(z-Ae)),Ae===z&&(Jt+=1),Ae>z+1&&(Ht+=4*(Ae-(z+1)),Jt+=4*(Ae-z))}for(Be=b[z+1].destinationEdges.iterator,Be.reset();Be.next();)if(Ae=Be.value,Ie=Ae.toVertex,Ae.valid&&Ie.layer===y){for(Ae=0;b[Ae]!==Ie;)Ae++;Ae===z&&(Ht+=1)}Ae=Ie=0,Be=nt[b[z].index];var Ve=ot[b[z].index],rn=nt[b[z+1].index],Kn=ot[b[z+1].index];Be!==-1&&(Ie+=Math.abs(Be-ee),Ae+=Math.abs(Be-ve)),Ve!==-1&&(Ie+=Math.abs(Ve-ee),Ae+=Math.abs(Ve-ve)),rn!==-1&&(Ie+=Math.abs(rn-se),Ae+=Math.abs(rn-Ce)),Kn!==-1&&(Ie+=Math.abs(Kn-se),Ae+=Math.abs(Kn-Ce)),(Jt<Ht-.5||Jt===Ht&&Et<dt-.5||Jt===Ht&&Et===dt&&Ae<Ie-.5)&&(ht=at=!0,b[z].column=ve,b[z+1].column=Ce,dt=b[z],b[z]=b[z+1],b[z+1]=dt)}for(z=0;z<E;z++)b[z].index=z;return Yh(a,y,b),at}Lr.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&Yx)!==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=Rf(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Rf(this,y,-1)||x;x=Rf(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)Sy(this,y,1);for(y=this.Md-1;0<=y;y--)Sy(this,y,-1);Sy(this,this.Md,0)}if(a&&(tx(this,-1),tx(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Rf(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Rf(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Rf(this,y,0)||x}}else Kx(this)};function Rf(a,y,x){for(var b=!1;Wx(a,y,x);)b=!0;return b}function Wx(a,y,x){var b,E=Xh(a,y),z=a.tc[y],nt=my(a,y,-1);if(0<x)for(b=0;b<z;b++)nt[b]=-1;var ot=my(a,y,1);if(0>x)for(b=0;b<z;b++)ot[b]=-1;for(var at=!1,ht=!0;ht;)for(ht=!1,b=0;b<z;b++){var dt=E[b].column,Et=a.nodeMinColumnSpace(E[b],!0),Ht=a.nodeMinColumnSpace(E[b],!1),Jt=0;0>b-1||dt-E[b-1].column-1>Et+a.nodeMinColumnSpace(E[b-1],!1)?Jt=dt-1:Jt=dt,Et=b+1>=z||E[b+1].column-dt-1>Ht+a.nodeMinColumnSpace(E[b+1],!0)?dt+1:dt;var ee=Ht=0,se=0;if(0>=x)for(var Ce=E[b].sourceEdges.iterator;Ce.next();){var ve=Ce.value,Ae=ve.fromVertex;if(ve.valid&&Ae.layer!==y){var Ie=py(ve),Be=ve.portFromColOffset;ve=ve.portToColOffset,Ae=Ae.column,Ht+=(Math.abs(dt+ve-(Ae+Be))+1)*Ie,ee+=(Math.abs(Jt+ve-(Ae+Be))+1)*Ie,se+=(Math.abs(Et+ve-(Ae+Be))+1)*Ie}}if(0<=x)for(Ce=E[b].destinationEdges.iterator;Ce.next();)ve=Ce.value,Ae=ve.toVertex,ve.valid&&Ae.layer!==y&&(Ie=py(ve),Be=ve.portFromColOffset,ve=ve.portToColOffset,Ae=Ae.column,Ht+=(Math.abs(dt+Be-(Ae+ve))+1)*Ie,ee+=(Math.abs(Jt+Be-(Ae+ve))+1)*Ie,se+=(Math.abs(Et+Be-(Ae+ve))+1)*Ie);ve=Be=Ie=0,Ce=nt[E[b].index],Ae=ot[E[b].index],Ce!==-1&&(Ie+=Math.abs(Ce-dt),Be+=Math.abs(Ce-Jt),ve+=Math.abs(Ce-Et)),Ae!==-1&&(Ie+=Math.abs(Ae-dt),Be+=Math.abs(Ae-Jt),ve+=Math.abs(Ae-Et)),ee<Ht||ee===Ht&&Be<Ie?(ht=at=!0,E[b].column=Jt):(se<Ht||se===Ht&&ve<Ie)&&(ht=at=!0,E[b].column=Et)}return Yh(a,y,E),a.normalize(),at}function Sy(a,y,x){var b=Xh(a,y),E=a.tc[y],z=KS(a,y,x),nt=[];for(x=0;x<E;x++)nt[x]=z[x];for(z=!0;z;)for(z=!1,x=0;x<E;x++){var ot=b[x].column,at=a.nodeMinColumnSpace(b[x],!0),ht=a.nodeMinColumnSpace(b[x],!1),dt=0;if(nt[x]===-1)if(x===0&&x===E-1)dt=ot;else if(x===0){var Et=b[x+1].column;Et-ot===ht+a.nodeMinColumnSpace(b[x+1],!0)?dt=ot-1:dt=ot}else x===E-1?(Et=b[x-1].column,dt=ot-Et===at+a.nodeMinColumnSpace(b[x-1],!1)?ot+1:ot):(Et=b[x-1].column,at=Et+a.nodeMinColumnSpace(b[x-1],!1)+at+1,Et=b[x+1].column,ht=Et-a.nodeMinColumnSpace(b[x+1],!0)-ht-1,dt=(at+ht)/2|0);else x===0&&x===E-1?dt=nt[x]:x===0?(Et=b[x+1].column,ht=Et-a.nodeMinColumnSpace(b[x+1],!0)-ht-1,dt=Math.min(nt[x],ht)):x===E-1?(Et=b[x-1].column,at=Et+a.nodeMinColumnSpace(b[x-1],!1)+at+1,dt=Math.max(nt[x],at)):(Et=b[x-1].column,at=Et+a.nodeMinColumnSpace(b[x-1],!1)+at+1,Et=b[x+1].column,ht=Et-a.nodeMinColumnSpace(b[x+1],!0)-ht-1,at<nt[x]&&nt[x]<ht?dt=nt[x]:at>=nt[x]?dt=at:ht<=nt[x]&&(dt=ht));dt!==ot&&(z=!0,b[x].column=dt)}Yh(a,y,b),a.normalize()}function Ux(a,y){for(var x=!0,b=a.network.vertexes.iterator;b.next();){var E=b.value,z=a.nodeMinColumnSpace(E,!0),nt=a.nodeMinColumnSpace(E,!1);if(E.column-z<=y&&E.column+nt>=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 Gx(a,y){var x=y+1,b,E=[],z=[];for(b=0;b<=a.Ia;b++)E[b]=!1,z[b]=!1;for(var nt=a.network.vertexes.iterator;nt.next();){b=nt.value;var ot=b.column-a.nodeMinColumnSpace(b,!0),at=b.column+a.nodeMinColumnSpace(b,!1);ot<=y&&at>=y&&(E[b.layer]=!0),ot<=x&&at>=x&&(z[b.layer]=!0)}for(ot=!0,x=!1,b=0;b<=a.Ia;b++)ot=ot&&!(E[b]&&z[b]);if(ot)for(nt.reset();nt.next();)a=nt.value,a.column>y&&(--a.column,x=!0);return x}function tx(a,y){for(var x=0;x<=a.Ra;x++)for(;Ux(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;Gx(a,x););a.normalize();var b;if(0<y)for(x=0;x<=a.Ra;x++){var E=Us(a),z=w0(a);for(b=z+1;z<b;){b=z,ex(a,x,1);var nt=w0(a);nt>z?Da(a,E):nt<z&&(z=nt,E=Us(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=Us(a),z=w0(a),b=z+1;z<b;)b=z,ex(a,x,-1),nt=w0(a),nt>z?Da(a,E):nt<z&&(z=nt,E=Us(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&&(vy(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 nt=z.layer,ot=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),at=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));ot<=at;ot++)E[nt*(a.Ra+1)+ot]=z.component}for(z=0;z<=a.Ia;z++){if(0<x)for(nt=0;nt<a.Ra;nt++)E[z*(a.Ra+1)+nt]!==-1&&E[z*(a.Ra+1)+nt+1]!==-1&&E[z*(a.Ra+1)+nt]!==E[z*(a.Ra+1)+nt+1]&&(y[E[z*(a.Ra+1)+nt]*a.le+E[z*(a.Ra+1)+nt+1]]=!0);if(0>x)for(nt=a.Ra;0<nt;nt--)E[z*(a.Ra+1)+nt]!==-1&&E[z*(a.Ra+1)+nt-1]!==-1&&E[z*(a.Ra+1)+nt]!==E[z*(a.Ra+1)+nt-1]&&(y[E[z*(a.Ra+1)+nt]*a.le+E[z*(a.Ra+1)+nt-1]]=!0)}for(E=[],z=0;z<a.le;z++)E[z]=!0;for(nt=[],nt.push(0);nt.length!==0;)if(at=nt[nt.length-1],nt.pop(),E[at])for(E[at]=!1,z=0;z<a.le;z++)y[at*a.le+z]&&nt.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 Kx(a){for(var y=sn(),x=a.fl.length,b=0;b<=x;b++)y[b]=[];for(b=a.network.vertexes.iterator;b.next();){var E=b.value;y[x-E.layer][E.index]=E}x=new En,Vx(y,x);var z=null,nt=null,ot=null,at=null,ht=(a.ve&1)!==0,dt=(a.ve&2)!==0,Et=(a.ve&4)!==0,Ht=(a.ve&8)!==0;for(ht&&(a.verticalAlignment(y,x,!0),z=b0(a,y,!0,!1)),y.reverse(),Et&&(a.verticalAlignment(y,x,!1),ot=b0(a,y,!1,!1)),b=Fi(y),E=b.next();!E.done;E=b.next())E.value.reverse();Ht&&(a.verticalAlignment(y,x,!1),at=b0(a,y,!1,!0)),y.reverse(),dt&&(a.verticalAlignment(y,x,!0),nt=b0(a,y,!0,!0)),xn(y),a.u(z,nt,ot,at),a.network.vertexes.each(function(Jt){var ee=sn();ht&&ee.push(z.get(Jt)),dt&&ee.push(nt.get(Jt)),Et&&ee.push(ot.get(Jt)),Ht&&ee.push(at.get(Jt)),ee.sort(function(Ce,ve){return Ce-ve});var se=ee.length;se=(ee[Math.floor((se-1)/2)]+ee[Math.ceil((se-1)/2)])/2,xn(ee),Jt.zc=se})}function Vx(a,y){for(var x=a.length,b=1;b<x-1;b++)for(var E=0,z=0,nt=a[b],ot=a[b+1],at=0;z<ot.length;at++){var ht=ot[at];t:{if(ht.node===null){var dt=Ay(ht);if(0<dt.length){dt=dt[0].node===null;break t}}dt=!1}var Et=dt;if(at===ot.length-1||Et){for(dt=nt.length-1,Et&&(dt=Ay(ht)[0].index);z<=at;){if(ht=ot[z],!ht.bo){Et=[];for(var Ht=Fi(ht.sourceEdgesArrayAccess),Jt=Ht.next();!Jt.done;Jt=Ht.next())Jt=Jt.value,Jt.valid&&Et.push(Jt);ht.bo=Et}for(ht=Fi(ht.bo),Et=ht.next();!Et.done;Et=ht.next())Et=Et.value,Ht=Et.fromVertex.index,(Ht<E||Ht>dt)&&y.add(Et);z++}E=dt}}}Lr.prototype.verticalAlignment=function(a,y,x){Zx(a),a=Fi(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=Fi(b.value);for(var z=b.next();!z.done;z=b.next()){z=z.value;var nt=x?Ay(z):_x(z),ot=nt.length;if(0<ot){nt.sort(function(Et,Ht){return Et.vi-Ht.vi});var at=(ot-1)/2;for(ot=Math.floor(at),at=Math.ceil(at);ot<=at;ot++)if(z.align===z){var ht=nt[ot],dt=void 0;dt=x?T0(ht,z):T0(z,ht),!y.contains(dt)&&E<ht.vi&&(ht.align=z,z.root=ht.root,z.align=ht.root,E=ht.vi)}}}}};function Zx(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 b0(a,y,x,b){for(var E=a.K===90||a.K===270,z=Fi(y),nt=z.next();!nt.done;nt=z.next()){var ot=Fi(nt.value);for(nt=ot.next();!nt.done;nt=ot.next())nt=nt.value,nt.sd=nt,nt.shift=1/0,nt.zc=NaN,nt.qg=0}for(nt=a.K===90||a.K===270,z=Fi(y),ot=z.next();!ot.done;ot=z.next()){ot=Fi(ot.value);for(var at=ot.next();!at.done;at=ot.next())if(at=at.value,at.root===at){for(var ht=0,dt=at;dt.align!==at;){var Et=dt.align,Ht=nt?dt.width:dt.height,Jt=nt?Et.width:Et.height;if(x){var ee=T0(dt,Et),se=ee.portFromPos,Ce=ee.portToPos;ee.link!==null&&(dt.node&&dt.node!==ee.link.fromNode&&(se=nt?dt.focusX:dt.focusY),Et.node&&Et.node!==ee.link.toNode&&(Ce=nt?Et.focusX:Et.focusY))}else ee=T0(Et,dt),se=ee.portToPos,Ce=ee.portFromPos,ee.link!==null&&(dt.node&&dt.node!==ee.link.toNode&&(se=nt?dt.focusX:dt.focusY),Et.node&&Et.node!==ee.link.fromNode&&(Ce=nt?Et.focusX:Et.focusY));Ht=b?dt.qg+(Ht-se)-(Jt-Ce):dt.qg+se-Ce,Et.qg=Ht,ht=Math.min(ht,Ht),dt=dt.align}dt=at;do dt.qg=dt.qg-ht,dt=dt.align;while(dt!==at)}}for(x=Fi(y),nt=x.next();!nt.done;nt=x.next())for(z=Fi(nt.value),nt=z.next();!nt.done;nt=z.next())nt=nt.value,nt.root===nt&&nx(a,nt,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(nt=y[x][0],nt.sd===nt)){nt.sd.shift===1/0&&(nt.sd.shift=0),nt=x,ot=0;do{for(z=y[nt][ot];z.align!==z.root;)z=z.align,nt++,0<z.vi&&(ot=ix(z,y),ot.sd.shift=Math.min(ot.sd.shift,z.sd.shift+z.zc+z.qg-(ot.zc+ot.qg+(E?ot.width:ot.height)+a.columnSpacing)));ot=z.vi+1}while(nt<y.length&&ot<y[nt].length&&z.sd===y[nt][ot].sd)}for(a=new qn,y=Fi(y),nt=y.next();!nt.done;nt=y.next())for(x=Fi(nt.value),nt=x.next();!nt.done;nt=x.next())nt=nt.value,nt.zc=nt.zc+nt.sd.shift+nt.qg,z=E?nt.width:nt.height,a.add(nt,b?-nt.zc-z:nt.zc);return a}function nx(a,y,x){if(isNaN(y.zc)){y.zc=0;var b=y;do{if(0<b.vi){var E=ix(b,x),z=E.root;nx(a,z,x),y.sd===y&&(y.sd=z.sd);var nt=a.K===90||a.K===270?E.width:E.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+E.qg+nt-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 ix(a,y){var x=a.Tz;return a=a.vi,1>a&&Pe("Could not determine previous vertex in layer"),y[x][a-1]}Lr.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=sn(),E=sn(),z=1/0,nt=0;4>nt;nt++)if(y[nt]){var ot=Xx(this,y[nt],b,E,nt);ot<z&&(x=nt,z=ot)}for(z={},nt=0;4>nt;z={delta:z.delta},nt++)y[nt]&&(z.delta=nt===0||nt===2?b[x]-b[nt]:E[x]-E[nt],z.delta!==0&&y[nt].each(function(at){return function(ht){ht.value+=at.delta}}(z)));xn(b),xn(E)};function Xx(a,y,x,b,E){if(!y||y.count===0)return x[E]=0,b[E]=0,1/0;var z=1/0,nt=-1/0;return y.each(function(ot){var at=ot.key;ot=ot.value,at=a.K===90||a.K===270?at.width:at.height,ot<z&&(z=ot),ot+at>nt&&(nt=ot+at)}),x[E]=z,b[E]=nt,nt-z}Lr.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=C0(this,!0),y=C0(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 C0(a,y){return a.K===270?y?Co:jo:a.K===90?y?jo:Co:a.K===180?y?Oo:Ko:y?Ko:Oo}Lr.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,nt=E=1/0,ot=-1/0;a.next();){var at=a.value,ht=at.layer,dt=at.column|0;b?(nt=y.x+this.kc*dt,ht=this.Kd[ht]):(nt=this.Kd[ht],ht=y.y+this.kc*dt),at.centerX=nt,at.centerY=ht,x&&isFinite(at.zc)&&(b?at.node?at.x=y.x+at.zc:at.centerX=y.x+at.zc:at.node?at.y=y.y+at.zc:at.centerY=y.y+at.zc),z=Math.min(at.x,z),E=Math.min(at.y,E),b?(nt=z,ot=Math.max(ot,at.bounds.right)):(nt=E,ot=Math.max(ot,at.bounds.bottom))}for(this.xw=ot-nt,z=y.x-z,y=y.y-E,this.Rf=new Se(x&&b?0:z,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},Lr.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 yn(0,0,x,Math.abs(this.Ta[0]))):y.push(new yn(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new yn(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new yn(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new yn(0,0,Math.abs(this.Ta[0]),x)):y.push(new yn(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new yn(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new yn(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},Lr.prototype.commitLayers=function(){},Lr.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,nt=b.fromPort,ot=b.toPort;if(E!==null){var at=E.findVisibleNode();at!==null&&at!==E&&(E=at,nt=at.port)}z!==null&&(at=z.findVisibleNode(),at!==null&&at!==z&&(z=at,ot=at.port));var ht=y.computeSpot(!0,nt);at=y.computeSpot(!1,ot);var dt=x.fromVertex,Et=x.toVertex;if(x.valid)y.curve===ya&&y.pointsCount===4&&(dt.column===Et.column&&this.alignOption===0?(x=y.getLinkPoint(E,nt,ht,!0,!1,z,ot),ot=y.getLinkPoint(z,ot,at,!1,!1,E,nt),x.w()||x.set(E.actualBounds.center),ot.w()||ot.set(z.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+ot.x)/3,(2*x.y+ot.y)/3),y.yf((x.x+2*ot.x)/3,(x.y+2*ot.y)/3),y.yf(ot.x,ot.y)):(x=b=!1,nt!==null&&ht===ao&&(b=!0),ot!==null&&at===ao&&(x=!0),(b||x)&&(at=null,b&&(at=y.getLinkPointFromPoint(E,nt,nt.ga(ur),y.i(3),!0),at.w()||at.set(E.actualBounds.center),y.L(0,at.x,at.y)),E=null,x&&(E=y.getLinkPointFromPoint(z,ot,ot.ga(ur),y.i(0),!1),E.w()||E.set(z.actualBounds.center),y.L(3,E.x,E.y)),at&&(z=y.i(2),y.L(1,(2*at.x+z.x)/3,(2*at.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(dt.layer===Et.layer)y.zf();else{var Ht=!1,Jt=!1,ee=this.ie,se=y.firstPickIndex+1;if(y.isOrthogonal){Jt=!0;var Ce=y.pointsCount;4<Ce&&y.points.removeRange(2,Ce-3)}else if(y.curve===ya)Ht=!0,Ce=y.pointsCount,4<Ce&&y.points.removeRange(2,Ce-3),Ce===4&&(se=2);else{Ce=y.pointsCount;var ve=ht===ao,Ae=at===ao;2<Ce&&ve&&Ae?y.points.removeRange(1,Ce-2):3<Ce&&ve&&!Ae?y.points.removeRange(1,Ce-3):3<Ce&&!ve&&Ae?y.points.removeRange(2,Ce-2):4<Ce&&!ve&&!Ae&&y.points.removeRange(2,Ce-3)}if(x.rev){for(;Et!==null&&dt!==Et;){var Ie=Ce=null;for(ve=Et.sourceEdges.iterator;ve.next()&&(Ae=ve.value,Ae.link!==x.link||(Ce=Ae.fromVertex,Ie=Ae.toVertex,Ce.node!==null)););if(Ce===null)break;if(Ce!==dt){ve=y.i(se-1).x,Ae=y.i(se-1).y;var Be=Ce.centerX,Ve=Ce.centerY;if(Jt)this.K===180||this.K===0?se===y.firstPickIndex+1?(y.m(se++,ve,Ae),y.m(se++,ve,Ve)):(Ie!==null?Ie.centerY:Ae)!==Ve&&(Ie=this.Ta[Ce.layer-1]+this.Rf.x,y.m(se++,Ie,Ae),y.m(se++,Ie,Ve)):se===y.firstPickIndex+1?(y.m(se++,ve,Ae),y.m(se++,Be,Ae)):(Ie!==null?Ie.centerX:ve)!==Be&&(Ie=this.Ta[Ce.layer-1]+this.Rf.y,y.m(se++,ve,Ie),y.m(se++,Be,Ie));else if(se===y.firstPickIndex+1){Ie=Math.max(10,this.he[Et.layer]);var rn=Math.max(10,this.Ld[Et.layer]);if(Ht)this.K===180?Be<=Et.bounds.x?(Et=Et.bounds.x,y.m(se++,Et-Ie,Ve),y.m(se++,Et,Ve),y.m(se++,Et+rn,Ve)):(y.m(se++,Be-Ie,Ve),y.m(se++,Be,Ve),y.m(se++,Be+rn,Ve)):this.K===90?Ve>=Et.bounds.bottom?(Et=Et.bounds.y+Et.bounds.height,y.m(se++,Be,Et+rn),y.m(se++,Be,Et),y.m(se++,Be,Et-Ie)):(y.m(se++,Be,Ve+rn),y.m(se++,Be,Ve),y.m(se++,Be,Ve-Ie)):this.K===270?Ve<=Et.bounds.y?(Et=Et.bounds.y,y.m(se++,Be,Et-Ie),y.m(se++,Be,Et),y.m(se++,Be,Et+rn)):(y.m(se++,Be,Ve-Ie),y.m(se++,Be,Ve),y.m(se++,Be,Ve+rn)):this.K===0&&(Be>=Et.bounds.right?(Et=Et.bounds.x+Et.bounds.width,y.m(se++,Et+rn,Ve),y.m(se++,Et,Ve),y.m(se++,Et-Ie,Ve)):(y.m(se++,Be+rn,Ve),y.m(se++,Be,Ve),y.m(se++,Be-Ie,Ve)));else{y.m(se++,ve,Ae);var Kn=0;this.K===180||this.K===0?((this.K===180?Be>=Et.bounds.right:Be<=Et.bounds.x)&&(Kn=(this.K===0?-Ie:rn)/2),y.m(se++,ve+Kn,Ve)):((this.K===270?Ve>=Et.bounds.bottom:Ve<=Et.bounds.y)&&(Kn=(this.K===90?-Ie:rn)/2),y.m(se++,Be,Ae+Kn)),y.m(se++,Be,Ve)}}else Ie=Math.max(10,this.he[Ce.layer]),rn=Math.max(10,this.Ld[Ce.layer]),Ht?this.K===180?(y.m(se++,Be-Ie-ee,Ve),y.m(se++,Math.min(Be-Ie+ee/2,Be),Ve),y.m(se++,Be,Ve),y.m(se++,Be,Ve),y.m(se++,Math.max(Be+rn-ee/2,Be),Ve),y.m(se++,Be+rn+ee,Ve)):this.K===90?(y.m(se++,Be,Ve+rn+ee),y.m(se++,Be,Math.max(Ve+rn-ee/2,Ve)),y.m(se++,Be,Ve),y.m(se++,Be,Ve),y.m(se++,Be,Math.min(Ve-Ie+ee/2,Ve)),y.m(se++,Be,Ve-Ie-ee)):this.K===270?(y.m(se++,Be,Ve-Ie-ee),y.m(se++,Be,Math.min(Ve-Ie+ee/2,Ve)),y.m(se++,Be,Ve),y.m(se++,Be,Ve),y.m(se++,Be,Math.max(Ve+rn-ee/2,Ve)),y.m(se++,Be,Ve+rn+ee)):(y.m(se++,Be+rn+ee,Ve),y.m(se++,Math.max(Be+rn-ee/2,Be),Ve),y.m(se++,Be,Ve),y.m(se++,Be,Ve),y.m(se++,Math.min(Be-Ie+ee/2,Be),Ve),y.m(se++,Be-Ie-ee,Ve)):y.m(se++,Be,Ve)}Et=Ce}(ot===null||ht!==ao||Jt)&&(ve=y.i(se-1).x,Ae=y.i(se-1).y,Be=y.i(se).x,Ve=y.i(se).y,Jt?(ee=this.Ld[dt.layer],this.K===180||this.K===0?(Jt=Ae,Jt>=dt.bounds.y&&Jt<=dt.bounds.bottom&&(this.K===180?Be>=dt.bounds.x:Be<=dt.bounds.right)&&(Et=dt.centerX+(this.K===180?-ee:ee),Jt<dt.bounds.y+dt.bounds.height/2?Jt=dt.bounds.y-this.kc/2:Jt=dt.bounds.bottom+this.kc/2,y.m(se++,Et,Ae),y.m(se++,Et,Jt)),y.m(se++,Be,Jt)):(Jt=ve,Jt>=dt.bounds.x&&Jt<=dt.bounds.right&&(this.K===270?Ve>=dt.bounds.y:Ve<=dt.bounds.bottom)&&(Et=dt.centerY+(this.K===270?-ee:ee),Jt<dt.bounds.x+dt.bounds.width/2?Jt=dt.bounds.x-this.kc/2:Jt=dt.bounds.right+this.kc/2,y.m(se++,ve,Et),y.m(se++,Jt,Et)),y.m(se++,Jt,Ve)),y.m(se++,Be,Ve)):Ht?(Ie=Math.max(10,this.he[dt.layer]),rn=Math.max(10,this.Ld[dt.layer]),this.K===180&&Be>=dt.bounds.x?(Et=dt.bounds.x+dt.bounds.width,y.L(se-2,Et,Ae),y.L(se-1,Et+rn,Ae)):this.K===90&&Ve<=dt.bounds.bottom?(Et=dt.bounds.y,y.L(se-2,ve,Et),y.L(se-1,ve,Et-Ie)):this.K===270&&Ve>=dt.bounds.y?(Et=dt.bounds.y+dt.bounds.height,y.L(se-2,ve,Et),y.L(se-1,ve,Et+rn)):this.K===0&&Be<=dt.bounds.right&&(Et=dt.bounds.x,y.L(se-2,Et,Ae),y.L(se-1,Et-Ie,Ae))):(Ie=Math.max(10,this.he[dt.layer]),rn=Math.max(10,this.Ld[dt.layer]),Jt=0,this.K===180||this.K===0?((this.K===180?Be<=dt.bounds.x:Be>=dt.bounds.right)&&(Jt=(this.K===0?rn:-Ie)/2),y.m(se++,Be+Jt,Ae)):((this.K===270?Ve<=dt.bounds.y:Ve>=dt.bounds.bottom)&&(Jt=(this.K===90?rn:-Ie)/2),y.m(se++,ve,Ve+Jt)),y.m(se++,Be,Ve)))}else{for(;dt!==null&&dt!==Et;){for(Ie=Ce=null,dt=dt.destinationEdges.iterator;dt.next()&&(ve=dt.value,ve.link!==x.link||(Ce=ve.toVertex,Ie=ve.fromVertex,Ie.node!==null&&(Ie=null),Ce.node!==null)););if(Ce===null)break;Ce!==Et&&(ve=y.i(se-1).x,Ae=y.i(se-1).y,Be=Ce.centerX,Ve=Ce.centerY,Jt?this.K===180||this.K===0?(Ie!==null?Ie.centerY:Ae)!==Ve&&(Ie=this.Ta[Ce.layer]+this.Rf.x,se===y.firstPickIndex+1&&(Ie=this.K===0?Math.max(Ie,ve):Math.min(Ie,ve)),y.m(se++,Ie,Ae),y.m(se++,Ie,Ve)):(Ie!==null?Ie.centerX:ve)!==Be&&(Ie=this.Ta[Ce.layer]+this.Rf.y,se===y.firstPickIndex+1&&(Ie=this.K===90?Math.max(Ie,Ae):Math.min(Ie,Ae)),y.m(se++,ve,Ie),y.m(se++,Be,Ie)):(Ie=Math.max(10,this.he[Ce.layer]),rn=Math.max(10,this.Ld[Ce.layer]),Ht?this.K===180?(y.m(se++,Be+rn+ee,Ve),y.m(se++,Math.max(Be+rn-ee/2,Be),Ve),y.m(se++,Be,Ve),y.m(se++,Be,Ve),y.m(se++,Math.min(Be-Ie+ee/2,Be),Ve),y.m(se++,Be-Ie-ee,Ve)):this.K===90?(y.m(se++,Be,Ve-Ie-ee),y.m(se++,Be,Math.min(Ve-Ie+ee/2,Ve)),y.m(se++,Be,Ve),y.m(se++,Be,Ve),y.m(se++,Be,Math.max(Ve+rn-ee/2,Ve)),y.m(se++,Be,Ve+rn+ee)):this.K===270?(y.m(se++,Be,Ve+rn+ee),y.m(se++,Be,Math.max(Ve+rn-ee/2,Ve)),y.m(se++,Be,Ve),y.m(se++,Be,Ve),y.m(se++,Be,Math.min(Ve-Ie+ee/2,Ve)),y.m(se++,Be,Ve-Ie-ee)):(y.m(se++,Be-Ie-ee,Ve),y.m(se++,Math.min(Be-Ie+ee/2,Be),Ve),y.m(se++,Be,Ve),y.m(se++,Be,Ve),y.m(se++,Math.max(Be+rn-ee/2,Be),Ve),y.m(se++,Be+rn+ee,Ve)):this.K===180?(y.m(se++,Be+rn,Ve),y.m(se++,Be-Ie,Ve)):this.K===90?(y.m(se++,Be,Ve-Ie),y.m(se++,Be,Ve+rn)):this.K===270?(y.m(se++,Be,Ve+rn),y.m(se++,Be,Ve-Ie)):(y.m(se++,Be-Ie,Ve),y.m(se++,Be+rn,Ve)))),dt=Ce}Jt&&(ve=y.i(se-1).x,Ae=y.i(se-1).y,Be=y.i(se).x,Ve=y.i(se).y,this.K===180||this.K===0?Ae!==Ve&&(Ie=this.K===0?Math.min(Math.max((Be+ve)/2,this.Ta[Et.layer]+this.Rf.x),Be):Math.max(Math.min((Be+ve)/2,this.Ta[Et.layer]+this.Rf.x),Be),y.m(se++,Ie,Ae),y.m(se++,Ie,Ve)):ve!==Be&&(Ie=this.K===90?Math.min(Math.max((Ve+Ae)/2,this.Ta[Et.layer]+this.Rf.y),Ve):Math.max(Math.min((Ve+Ae)/2,this.Ta[Et.layer]+this.Rf.y),Ve),y.m(se++,ve,Ie),y.m(se++,Be,Ie)))}b!==null&&Ht&&4<=y.pointsCount&&(nt!==null&&(nt=ht===ao?y.getLinkPointFromPoint(E,nt,nt.ga(ur),y.i(3),!0):y.i(0),ht===ao&&(ht=y.i(2),b=y.i(3),this.direction===90||this.direction===270?(y.L(1,(nt.x+ht.x)/2,ht.y),y.L(2,b.x,(ht.y+b.y)/2)):(y.L(1,ht.x,(nt.y+ht.y)/2),y.L(2,(ht.x+b.x)/2,b.y))),nt.w()||nt.set(E.actualBounds.center),y.L(0,nt.x,nt.y)),ot!==null&&(E=at===ao?y.getLinkPointFromPoint(z,ot,ot.ga(ur),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),at===ao&&(ot=y.i(y.pointsCount-3),at=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(E.x+ot.x)/2,ot.y),y.L(y.pointsCount-2,at.x,(ot.y+at.y)/2)):(y.L(y.pointsCount-2,ot.x,(E.y+ot.y)/2),y.L(y.pointsCount-3,(ot.x+at.x)/2,at.y))),E.w()||E.set(z.actualBounds.center),y.L(y.pointsCount-1,E.x,E.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},Lr.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new bn,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),nt=b.i(E+1);if(this.B(z.y,nt.y)&&!this.B(z.x,nt.x)){var ot=new _h;ot.layer=Math.floor(z.y/2);var at=b.i(0),ht=b.i(b.pointsCount-1);if(ot.first=at.x*at.x+at.y,ot.jc=ht.x*ht.x+ht.y,ot.rd=Math.min(z.x,nt.x),ot.Ic=Math.max(z.x,nt.x),ot.index=E,ot.link=b,E+2<b.pointsCount){at=b.i(E-1),ht=b.i(E+2);var dt=0;at.y<z.y?dt=ht.y<z.y?3:z.x<nt.x?2:1:at.y>z.y&&(dt=ht.y>z.y?0:nt.x<z.x?2:1),ot.j=dt}x.push(ot)}}}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(nt=x[z].Ic,E=a+1;E<b&&x[E].rd<nt;)nt=Math.max(nt,x[E].Ic),E++;if(nt=E-z,1<nt){for(this.zi(x,this.Js,z,z+nt),dt=1,ot=x[z].jc,at=z;at<E;at++)ht=x[at],ht.jc!==ot&&(dt++,ot=ht.jc);this.zi(x,this.Ux,z,z+nt);var Et=1;for(ot=x[z].first,at=z;at<E;at++)ht=x[at],ht.first!==ot&&(Et++,ot=ht.first);for(at=!0,ht=Et,dt<Et?(at=!1,ht=dt,ot=x[z].jc,this.zi(x,this.Js,z,z+nt)):ot=x[z].first,dt=0,Et=z;Et<E;Et++){var Ht=x[Et];(at?Ht.first:Ht.jc)!==ot&&(dt++,ot=at?Ht.first:Ht.jc);var Jt=Ht.link;z=Jt.i(Ht.index),nt=Jt.i(Ht.index+1);var ee=this.linkSpacing*(dt-(ht-1)/2);y++,Jt.uh(),Jt.L(Ht.index,z.x,z.y+ee),Jt.L(Ht.index+1,nt.x,nt.y+ee),Jt.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),nt=b.i(E+1),this.B(z.x,nt.x)&&!this.B(z.y,nt.y)&&(ot=new _h,ot.layer=Math.floor(z.x/2),at=b.i(0),ht=b.i(b.pointsCount-1),ot.first=at.x+at.y*at.y,ot.jc=ht.x+ht.y*ht.y,ot.rd=Math.min(z.y,nt.y),ot.Ic=Math.max(z.y,nt.y),ot.index=E,ot.link=b,E+2<b.pointsCount&&(at=b.i(E-1),ht=b.i(E+2),dt=0,at.x<z.x?dt=ht.x<z.x?3:z.y<nt.y?2:1:at.x>z.x&&(dt=ht.x>z.x?0:nt.y<z.y?2:1),ot.j=dt),x.push(ot));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(nt=x[z].Ic,E=a+1;E<b&&x[E].rd<nt;)nt=Math.max(nt,x[E].Ic),E++;if(nt=E-z,1<nt){for(this.zi(x,this.Js,z,z+nt),dt=1,ot=x[z].jc,at=z;at<E;at++)ht=x[at],ht.jc!==ot&&(dt++,ot=ht.jc);for(this.zi(x,this.Ux,z,z+nt),Et=1,ot=x[z].first,at=z;at<E;at++)ht=x[at],ht.first!==ot&&(Et++,ot=ht.first);for(at=!0,ht=Et,dt<Et?(at=!1,ht=dt,ot=x[z].jc,this.zi(x,this.Js,z,z+nt)):ot=x[z].first,dt=0,Et=z;Et<E;Et++)Ht=x[Et],(at?Ht.first:Ht.jc)!==ot&&(dt++,ot=at?Ht.first:Ht.jc),Jt=Ht.link,z=Jt.i(Ht.index),nt=Jt.i(Ht.index+1),ee=this.linkSpacing*(dt-(ht-1)/2),y++,Jt.uh(),Jt.L(Ht.index,z.x+ee,z.y),Jt.L(Ht.index+1,nt.x+ee,nt.y),Jt.zf()}z=E}a=b}}}},ne=Lr.prototype,ne.Vx=function(a,y){return a instanceof _h&&y instanceof _h&&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},ne.Ux=function(a,y){return a instanceof _h&&y instanceof _h&&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},ne.Js=function(a,y){return a instanceof _h&&y instanceof _h&&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},ne.B=function(a,y){return a-=y,-1<a&&1>a},ne.zi=function(a,y,x,b){var E=a.length,z=b-x;if(!(1>=z))if((0>x||x>=E-1)&&Pe("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 Xh(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 Yh(a,y,x){a.He[a.tc[y]]=x}we.Object.defineProperties(Lr.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()):Pe("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==xy&&a!==E0&&a!==yp||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==L0&&a!==wy&&a!==Py||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==A0&&a!==by&&a!==Cy||(this.Qk=a,this.C())}},iterations:{get:function(){return this.bj},set:function(a){this.bj!==a&&0<=a&&(this.bj=a,this.C())}},aggressiveOption:{get:function(){return this.rk},set:function(a){this.rk===a||a!==Ey&&a!==M0&&a!==Ly||(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 E0=new dn(Lr,"CycleDepthFirst",0),xy=new dn(Lr,"CycleGreedy",1),yp=new dn(Lr,"CycleFromLayers",2),L0=new dn(Lr,"LayerOptimalLinkLength",0),wy=new dn(Lr,"LayerLongestPathSink",1),Py=new dn(Lr,"LayerLongestPathSource",2),A0=new dn(Lr,"InitDepthFirstOut",0),by=new dn(Lr,"InitDepthFirstIn",1),Cy=new dn(Lr,"InitNaive",2),Ey=new dn(Lr,"AggressiveNone",0),M0=new dn(Lr,"AggressiveLess",1),Ly=new dn(Lr,"AggressiveMore",2),Yx=8;Lr.className="LayeredDigraphLayout",Lr.CycleDepthFirst=E0,Lr.CycleGreedy=xy,Lr.CycleFromLayers=yp,Lr.LayerOptimalLinkLength=L0,Lr.LayerLongestPathSink=wy,Lr.LayerLongestPathSource=Py,Lr.InitDepthFirstOut=A0,Lr.InitDepthFirstIn=by,Lr.InitNaive=Cy,Lr.AggressiveNone=Ey,Lr.AggressiveLess=M0,Lr.AggressiveMore=Ly,Lr.PackNone=0,Lr.PackExpand=1,Lr.PackStraighten=2,Lr.PackMedian=4,Lr.PackAll=15,Lr.AlignNone=0,Lr.AlignUpperLeft=1,Lr.AlignUpperRight=2,Lr.AlignLowerLeft=4,Lr.AlignLowerRight=8,Lr.AlignAll=15;function _h(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}_h.className="SegInfo";function jf(a){Dr.call(this,a)}Qe(jf,Dr),jf.prototype.createVertex=function(){return new Fa(this)},jf.prototype.createEdge=function(){return new Sp(this)},jf.className="LayeredDigraphNetwork";function Fa(a){Ao.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}Qe(Fa,Ao);function rx(a,y){return a.index-y.index}function T0(a,y){if(!a.$n){for(var x=[],b=Fi(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=Fi(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;Pe("Unable to find destination edge to given vertex")}function Ay(a){if(!a.co){for(var y=[],x=Fi(a.sourceEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.fromVertex);y.sort(rx),a.co=y}return a.co}function _x(a){if(!a.ao){for(var y=[],x=Fi(a.destinationEdgesArrayAccess),b=x.next();!b.done;b=x.next())b=b.value,b.valid&&y.push(b.toVertex);y.sort(rx),a.ao=y}return a.ao}Fa.prototype.Cl=function(a){Ao.prototype.Cl.call(this,a),this.bo=this.co=null},Fa.prototype.Kl=function(a){Ao.prototype.Kl.call(this,a),this.bo=this.co=null},Fa.prototype.zl=function(a){Ao.prototype.zl.call(this,a),this.$n=this.ao=null},Fa.prototype.Jl=function(a){Ao.prototype.Jl.call(this,a),this.$n=this.ao=null},we.Object.defineProperties(Fa.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)}}}),Fa.prototype.deleteDestinationEdge=Fa.prototype.Jl,Fa.prototype.addDestinationEdge=Fa.prototype.zl,Fa.prototype.deleteSourceEdge=Fa.prototype.Kl,Fa.prototype.addSourceEdge=Fa.prototype.Cl,Fa.className="LayeredDigraphVertex";function Sp(a){aa.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}Qe(Sp,aa),we.Object.defineProperties(Sp.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)}}}),Sp.className="LayeredDigraphEdge";function Qi(a){Gr.call(this),this.Ub=new En,this.Wn=I0,this.ud=Jl,this.vo=F0,this.Bq=jy,this.$v=[],this.td=!0,this.Rb=B0,this.$d=new Wn(10,10).freeze();var y=new Ad(this);this.W=new Ya(y),this.Y=new Ya(y),this.ru=[],a&&Object.assign(this,a)}Qe(Qi,Gr),Qi.prototype.cloneProtected=function(a){Gr.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)},Qi.prototype.qb=function(a){a.classType===Qi?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:Pe("Unknown enum value: "+a):Gr.prototype.qb.call(this,a)},Qi.prototype.createNetwork=function(){return new Ad(this)},Qi.prototype.makeNetwork=function(a){function y(b){if(b instanceof Vn)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof zn){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 on?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Ni?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},Qi.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==R0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof on&&(y=a),this.path===I0&&y!==null?this.ud=y.isTreePathToChildren?Jl:Ed:this.ud=this.path===I0?Jl: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 En,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof Vn?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof Ya&&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=ox(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 Ya&&ax(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Ya&&lx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Ya&&ux(this,y);if(this.Cu(),this.layerStyle===j0){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 Ya&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new En,this.isValidLayout=!0};function Jx(a){var y=new En;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}Qi.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case Jl:x.sourceEdges.count===0&&this.Ub.add(x);break;case Ed:x.destinationEdges.count===0&&this.Ub.add(x);break;default:Pe("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=ox(this,a),a!==null&&this.Ub.add(a))};function ox(a,y){var x=999999,b=null;for(y=y.iterator;y.next();){var E=y.value;switch(a.ud){case Jl:E.sourceEdges.count<x&&(x=E.sourceEdges.count,b=E);break;case Ed:E.destinationEdges.count<x&&(x=E.destinationEdges.count,b=E);break;default:Pe("Unhandled path value "+a.ud.toString())}}return b}function My(a,y){if(y!==null){switch(a.ud){case Jl:if(0<y.destinationEdges.count){for(var x=new bn,b=y.destinationVertexes;b.next();){var E=b.value;sx(a,y,E)&&x.add(E)}0<x.count&&(y.children=x.Fa())}break;case Ed:if(0<y.sourceEdges.count){for(x=new bn,b=y.sourceVertexes;b.next();)E=b.value,sx(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:Pe("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 sx(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}Qi.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===$l&&a.sortTreeVertexChildren(y);for(var x=0,b=y.childrenCount,E=0,z=y.children,nt=z.length,ot=0;ot<nt;ot++){var at=z[ot];ax(a,at),x+=at.descendantCount+1,b=Math.max(b,at.maxChildrenCount),E=Math.max(E,at.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=b,y.maxGenerationCount=0<b?E+1:0}}function Qx(a,y){switch(a.vo){default:case F0:return y.parent!==null?y.parent:a.W;case By:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case Fy: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}}Qi.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(Qx(this,a)),a.parent!==null&&a.parent.alignment===$l){for(var y=a.angle,x=a.parent.children,b=0;b<x.length&&a!==x[b];)b++;b%2===0?b!==x.length-1&&(y=y===90?180:y===180?270:y===270?180:270):y=y===90?0:y===180?90:y===270?0:90,a.angle=y}a.initialized=!0};function lx(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,b=0;b<x;b++)lx(a,y[b])}}Qi.prototype.assignTreeVertexValues=function(){};function ux(a,y){if(y!==null){y.alignment!==$l&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,b=0;b<x;b++)ux(a,y[b])}}Qi.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case zf:break;case wp:a.children.reverse();break;case Pp:a.children.sort(a.comparer);break;case bp:a.children.sort(a.comparer),a.children.reverse();break;default:Pe("Unhandled sorting value "+a.sorting.toString())}},Qi.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Qi.prototype.addComments=function(a){var y=a.angle,x=a.parent,b=0,E=!1;x!==null&&(b=x.angle,E=x.alignment,E=Jh(E)),y=y===90||y===270,b=b===90||b===270,x=a.childrenCount===0;var z=0,nt=0,ot=0,at=a.commentSpacing;if(a.node!==null)for(var ht=a.node.Mu();ht.next();){var dt=ht.value;dt.category==="Comment"&&dt.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(dt),dt.Va(),dt=dt.measuredBounds,y&&!x||!E&&!b&&x||E&&b&&x?(z=Math.max(z,dt.width),nt+=dt.height+Math.abs(ot)):(z+=dt.width+Math.abs(ot),nt=Math.max(nt,dt.height)),ot=at)}a.comments!==null&&(y&&!x||!E&&!b&&x||E&&b&&x?(z+=Math.abs(a.commentMargin),nt=Math.max(0,nt-a.height)):(nt+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),E=yn.allocAt(0,0,a.bounds.width+z,a.bounds.height+nt),a.bounds=E,yn.free(E))};function Jh(a){return a===th||a===$l||a===eh||a===Su}function xp(a){return a===th||a===$l}function Ty(a){var y=a.parent;if(y!==null){var x=y.alignment;if(Jh(x)){if(xp(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===eh)return!0}}return!1}Qi.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=Jh(z)),b=b===90||b===270,x=E===90||E===270;for(var nt=a.childrenCount===0,ot=Ty(a),at=0,ht=a.comments,dt=ht.length,Et=Se.alloc(),Ht=0;Ht<dt;Ht++){var Jt=ht[Ht],ee=Jt.measuredBounds;if(b&&!nt||!z&&!x&&nt||z&&x&&nt){if(135<E&&!z||x&&ot)if(0<=a.commentMargin)for(Et.h(a.bounds.x-a.commentMargin-ee.width,a.bounds.y+at),Jt.move(Et),Jt=Jt.Sd();Jt.next();){var se=Jt.value;se.fromSpot=Oo,se.toSpot=Ko}else for(Et.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+at),Jt.move(Et),Jt=Jt.Sd();Jt.next();)se=Jt.value,se.fromSpot=Ko,se.toSpot=Oo;else if(0<=a.commentMargin)for(Et.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+at),Jt.move(Et),Jt=Jt.Sd();Jt.next();)se=Jt.value,se.fromSpot=Ko,se.toSpot=Oo;else for(Et.h(a.bounds.x+a.commentMargin-ee.width,a.bounds.y+at),Jt.move(Et),Jt=Jt.Sd();Jt.next();)se=Jt.value,se.fromSpot=Oo,se.toSpot=Ko;at=0<=a.commentSpacing?at+(ee.height+a.commentSpacing):at+(a.commentSpacing-ee.height)}else{if(135<E&&!z||!x&&ot)if(0<=a.commentMargin)for(Et.h(a.bounds.x+at,a.bounds.y-a.commentMargin-ee.height),Jt.move(Et),Jt=Jt.Sd();Jt.next();)se=Jt.value,se.fromSpot=Co,se.toSpot=jo;else for(Et.h(a.bounds.x+at,a.bounds.y+2*a.focus.y-a.commentMargin),Jt.move(Et),Jt=Jt.Sd();Jt.next();)se=Jt.value,se.fromSpot=jo,se.toSpot=Co;else if(0<=a.commentMargin)for(Et.h(a.bounds.x+at,a.bounds.y+2*a.focus.y+a.commentMargin),Jt.move(Et),Jt=Jt.Sd();Jt.next();)se=Jt.value,se.fromSpot=jo,se.toSpot=Co;else for(Et.h(a.bounds.x+at,a.bounds.y+a.commentMargin-ee.height),Jt.move(Et),Jt=Jt.Sd();Jt.next();)se=Jt.value,se.fromSpot=Co,se.toSpot=jo;at=0<=a.commentSpacing?at+(ee.width+a.commentSpacing):at+(a.commentSpacing-ee.width)}}if(Se.free(Et),y=at-a.commentSpacing-(b?y.height:y.width),this.ud===Jl)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)}},Qi.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 D0:hx(this,a);break;case Cp:if(a.alignment===$l)hx(this,a);else if(a.childrenCount===0)b=a.parent,x=!1,y=0,b!==null&&(y=b.angle,x=b.alignment,x=Jh(x)),b=Ty(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=ll(a);y=E===90||E===270;var z=0,nt=a.children,ot=nt.length;for(x=0;x<ot;x++)b=nt[x],z=Math.max(z,y?b.Da.width:b.Da.height);var at=a.alignment;b=at===Ql;var ht=at===ql,dt=Jh(at),Et=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var Ht=a.nodeSpacing,Jt=this.computeNodeIndent(a),ee=a.rowSpacing,se=0;(b||ht||a.hm||a.im&&a.maxGenerationCount===1)&&(se=Math.max(0,a.rowIndent)),b=a.width;var Ce=a.height,ve=0,Ae=0,Ie=0,Be=null,Ve=null,rn=0,Kn=0,$n=0,Yn=0,jn=0,An=0,ki=0,Ei=0;if(dt&&!xp(at)&&135<E&&nt.reverse(),xp(at))if(1<ot)for(var mr=0;mr<ot;mr++)mr%2===0&&mr!==ot-1&&(Ei=Math.max(Ei,y?nt[mr].Da.width:nt[mr].Da.height));else ot===1&&(Ei=y?nt[0].Da.width:nt[0].Da.height);if(dt){switch(at){case th:Ae=135>E?cx(this,a,nt,Ei,ve,Ae):dx(this,a,nt,Ei,ve,Ae),Ei=Ae.x,ve=Ae.width,Ae=Ae.height;break;case eh:for(Be=0;Be<ot;Be++)Ve=nt[Be],Et=Ve.Da,Ie=An===0?0:ee,y?(Ve.S.h(z-Et.width,Yn+Ie),ve=Math.max(ve,Et.width),Ae=Math.max(Ae,Yn+Ie+Et.height),Yn+=Ie+Et.height):(Ve.S.h($n+Ie,z-Et.height),ve=Math.max(ve,$n+Ie+Et.width),Ae=Math.max(Ae,Et.height),$n+=Ie+Et.width),An++;break;case Su:for(Be=0;Be<ot;Be++)Ve=nt[Be],z=Ve.Da,Et=An===0?0:ee,y?(Ve.S.h(Ht/2+a.focus.x,Yn+Et),ve=Math.max(ve,z.width),Ae=Math.max(Ae,Yn+Et+z.height),Yn+=Et+z.height):(Ve.S.h($n+Et,Ht/2+a.focus.y),ve=Math.max(ve,$n+Et+z.width),Ae=Math.max(Ae,z.height),$n+=Et+z.width),An++}Be=Vs(this,2),Ve=Vs(this,2),y?(Be[0].h(0,0),Be[1].h(0,Ae),Ve[0].h(ve,0)):(Be[0].h(0,0),Be[1].h(ve,0),Ve[0].h(0,Ae)),Ve[1].h(ve,Ae)}else for(mr=0;mr<ot;mr++){var Or=nt[mr],Bo=Or.Da;if(y){0<Et&&0<An&&$n+Ht+Bo.width>Et&&($n<z&&Fc(a,at,z-$n,0,ki,mr-1),jn++,An=0,ki=mr,Ie=Ae,$n=0,Yn=135<E?-Ae-ee:Ae+ee),N0(this,Or,0,Yn);var Wo=0;if(An===0)Be=Or.Yo,Ve=Or.kp,rn=Bo.width,Kn=Bo.height,(Be===null||Ve===null||E!==ll(Or))&&(Be=Vs(this,2),Ve=Vs(this,2),Be[0].h(0,0),Be[1].h(0,Kn),Ve[0].h(rn,0),Ve[1].h(rn,Kn));else{var gs=sn();Kn=fx(this,a,Or,Be,Ve,rn,Kn,gs),Wo=Kn.x,Be=gs[0],Ve=gs[1],rn=Kn.width,Kn=Kn.height,xn(gs),$n<Bo.width&&0>Wo&&(Cd(a,-Wo,0,ki,mr-1),O0(Be,-Wo,0),O0(Ve,-Wo,0),Wo=0)}Or.S.h(Wo,Yn),ve=Math.max(ve,rn),Ae=Math.max(Ae,Ie+(jn===0?0:ee)+Bo.height),$n=rn}else 0<Et&&0<An&&Yn+Ht+Bo.height>Et&&(Yn<z&&Fc(a,at,0,z-Yn,ki,mr-1),jn++,An=0,ki=mr,Ie=ve,Yn=0,$n=135<E?-ve-ee:ve+ee),N0(this,Or,$n,0),Wo=0,An===0?(Be=Or.Yo,Ve=Or.kp,rn=Bo.width,Kn=Bo.height,(Be===null||Ve===null||E!==ll(Or))&&(Be=Vs(this,2),Ve=Vs(this,2),Be[0].h(0,0),Be[1].h(rn,0),Ve[0].h(0,Kn),Ve[1].h(rn,Kn))):(gs=sn(),Kn=fx(this,a,Or,Be,Ve,rn,Kn,gs),Wo=Kn.x,Be=gs[0],Ve=gs[1],rn=Kn.width,Kn=Kn.height,xn(gs),Yn<Bo.height&&0>Wo&&(Cd(a,0,-Wo,ki,mr-1),O0(Be,0,-Wo),O0(Ve,0,-Wo),Wo=0)),Or.S.h($n,Wo),Ae=Math.max(Ae,Kn),ve=Math.max(ve,Ie+(jn===0?0:ee)+Bo.width),Yn=Kn;An++}switch(0<jn&&(y?(Ae+=Math.max(0,x),$n<ve&&Fc(a,at,ve-$n,0,ki,ot-1),0<se&&(ht||Cd(a,se,0,0,ot-1),ve+=se)):(ve+=Math.max(0,x),Yn<Ae&&Fc(a,at,0,Ae-Yn,ki,ot-1),0<se&&(ht||Cd(a,0,se,0,ot-1),Ae+=se))),se=ht=0,at){case Hf:y?ht+=ve/2-a.focus.x-Jt/2:se+=Ae/2-a.focus.y-Jt/2;break;case Ld:0<jn?y?ht+=ve/2-a.focus.x-Jt/2:se+=Ae/2-a.focus.y-Jt/2:y?(Ei=nt[0].S.x+nt[0].la.x,ht+=Ei+(nt[ot-1].S.x+nt[ot-1].la.x+2*nt[ot-1].focus.x-Ei)/2-a.focus.x-Jt/2):(Ei=nt[0].S.y+nt[0].la.y,se+=Ei+(nt[ot-1].S.y+nt[ot-1].la.y+2*nt[ot-1].focus.y-Ei)/2-a.focus.y-Jt/2);break;case Ql:y?(ht-=Jt,ve+=Jt):(se-=Jt,Ae+=Jt);break;case ql:y?(ht+=ve-a.width+Jt,ve+=Jt):(se+=Ae-a.height+Jt,Ae+=Jt);break;case th:y?1<ot?ht+=Ei+Ht/2-a.focus.x:ht+=nt[0].focus.x-a.focus.x+nt[0].la.x:1<ot?se+=Ei+Ht/2-a.focus.y:se+=nt[0].focus.y-a.focus.y+nt[0].la.y;break;case eh:y?ht+=ve+Ht/2-a.focus.x:se+=Ae+Ht/2-a.focus.y;break;case Su:break;default:Ae=this.customAlignment(a,ht,se,ve,Ae),ht=Ae[0],se=Ae[1],ve=Ae[2],Ae=Ae[3]}for(Jt=0;Jt<ot;Jt++)Ei=nt[Jt],y?Ei.S.h(Ei.S.x+Ei.la.x-ht,Ei.S.y+(135<E?(dt?-Ae:-Ei.Da.height)+Ei.la.y-x:Ce+x+Ei.la.y)):Ei.S.h(Ei.S.x+(135<E?(dt?-ve:-Ei.Da.width)+Ei.la.x-x:b+x+Ei.la.x),Ei.S.y+Ei.la.y-se);if(ot=nt=0,dt?y?(ve=ky(a,ve,ht),0>ht&&(ht=0),135<E&&(se+=Ae+x),Ae+=Ce+x,at===Su&&(nt+=Ht/2+a.focus.x),ot+=Ce+x):(135<E&&(ht+=ve+x),ve+=b+x,Ae=Ny(a,Ae,se),0>se&&(se=0),at===Su&&(ot+=Ht/2+a.focus.y),nt+=b+x):y?(a.comments===null?b>ve&&(ve=Oy(at,b-ve,0),nt=ve.x,ot=ve.y,ve=b,ht=0):ve=ky(a,ve,ht),0>ht&&(nt-=ht,ht=0),135<E&&(se+=Ae+x),Ae=Math.max(Math.max(Ae,Ce),Ae+Ce+x),ot+=Ce+x):(135<E&&(ht+=ve+x),ve=Math.max(Math.max(ve,b),ve+b+x),a.comments===null?Ce>Ae&&(Ae=Oy(at,0,Ce-Ae),nt=Ae.x,ot=Ae.y,Ae=Ce,se=0):Ae=Ny(a,Ae,se),0>se&&(ot-=se,se=0),nt+=b+x),0<jn)E=Vs(this,4),jn=Vs(this,4),y?(E[2].h(0,Ce+x),E[3].h(E[2].x,Ae),jn[2].h(ve,E[2].y),jn[3].h(jn[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(ve,E[2].y),jn[2].h(E[2].x,Ae),jn[3].h(E[3].x,jn[2].y));else{for(E=Vs(this,Be.length+2),jn=Vs(this,Ve.length+2),at=0;at<Be.length;at++)dt=Be[at],E[at+2].h(dt.x+nt,dt.y+ot);for(at=0;at<Ve.length;at++)dt=Ve[at],jn[at+2].h(dt.x+nt,dt.y+ot)}y?(E[0].h(ht,0),E[1].h(E[0].x,Ce),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(ht+b,0),jn[1].h(jn[0].x,Ce),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,se),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,se+Ce),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),ml(this,Be),ml(this,Ve),a.Yo=E,a.kp=jn,a.la.h(ht,se),a.Da.h(ve,Ae)}break;default:Pe("Unhandled compaction value "+a.compaction.toString())}}};function hx(a,y){if(y.childrenCount===0){var x=!1,b=0;y.parent!==null&&(b=y.parent.angle,x=y.parent.alignment,x=Jh(x));var E=Ty(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=ll(y),x=b===90||b===270;var z=0;E=y.children;for(var nt=E.length,ot=0;ot<nt;ot++){var at=E[ot];z=Math.max(z,x?at.Da.width:at.Da.height)}var ht=y.alignment,dt=ht===Ql,Et=ht===ql;ot=Jh(ht);var Ht=Math.max(0,y.breadthLimit);at=a.computeLayerSpacing(y);var Jt=y.nodeSpacing,ee=a.computeNodeIndent(y),se=dt||Et?0:ee/2,Ce=y.rowSpacing,ve=0;(dt||Et||y.hm||y.im&&y.maxGenerationCount===1)&&(ve=Math.max(0,y.rowIndent)),dt=y.width;var Ae=y.height,Ie=0,Be=0,Ve=0,rn=0,Kn=0,$n=0,Yn=0,jn=0,An=0,ki=0;if(ot&&!xp(ht)&&135<b&&E.reverse(),xp(ht))if(1<nt)for(var Ei=0;Ei<nt;Ei++){var mr=E[Ei],Or=mr.Da;Ei%2===0&&Ei!==nt-1?An=Math.max(An,(x?Or.width:Or.height)+a.computeBusNodeSpacing(mr)-Jt):Ei%2!==0&&(ki=Math.max(ki,(x?Or.width:Or.height)+a.computeBusNodeSpacing(mr)-Jt))}else nt===1&&(An=x?E[0].Da.width:E[0].Da.height);if(ot)switch(ht){case th:case $l:Be=135>b?cx(a,y,E,An,Ie,Be):dx(a,y,E,An,Ie,Be),An=Be.x,Ie=Be.width,Be=Be.height;break;case eh:for(Ht=0;Ht<nt;Ht++)se=E[Ht],Ve=se.Da,ki=Yn===0?0:Ce,x?(se.S.h(z-Ve.width,Kn+ki),Ie=Math.max(Ie,Ve.width),Be=Math.max(Be,Kn+ki+Ve.height),Kn+=ki+Ve.height):(se.S.h(rn+ki,z-Ve.height),Ie=Math.max(Ie,rn+ki+Ve.width),Be=Math.max(Be,Ve.height),rn+=ki+Ve.width),Yn++;break;case Su:for(z=0;z<nt;z++)Ht=E[z],se=Ht.Da,Ve=Yn===0?0:Ce,x?(Ht.S.h(Jt/2+y.focus.x,Kn+Ve),Ie=Math.max(Ie,se.width),Be=Math.max(Be,Kn+Ve+se.height),Kn+=Ve+se.height):(Ht.S.h(rn+Ve,Jt/2+y.focus.y),Ie=Math.max(Ie,rn+Ve+se.width),Be=Math.max(Be,se.height),rn+=Ve+se.width),Yn++}else for(ki=0;ki<nt;ki++)Ei=E[ki],mr=Ei.Da,x?(0<Ht&&0<Yn&&rn+Jt+mr.width>Ht&&(rn<z&&Fc(y,ht,z-rn,0,jn,ki-1),$n++,Yn=0,jn=ki,Ve=Be,rn=0,Kn=135<b?-Be-Ce:Be+Ce),Or=Yn===0?se:Jt,N0(a,Ei,0,Kn),Ei.S.h(rn+Or,Kn),Ie=Math.max(Ie,rn+Or+mr.width),Be=Math.max(Be,Ve+($n===0?0:Ce)+mr.height),rn+=Or+mr.width):(0<Ht&&0<Yn&&Kn+Jt+mr.height>Ht&&(Kn<z&&Fc(y,ht,0,z-Kn,jn,ki-1),$n++,Yn=0,jn=ki,Ve=Ie,Kn=0,rn=135<b?-Ie-Ce:Ie+Ce),Or=Yn===0?se:Jt,N0(a,Ei,rn,0),Ei.S.h(rn,Kn+Or),Be=Math.max(Be,Kn+Or+mr.height),Ie=Math.max(Ie,Ve+($n===0?0:Ce)+mr.width),Kn+=Or+mr.height),Yn++;switch(0<$n&&(x?(Be+=Math.max(0,at),rn<Ie&&Fc(y,ht,Ie-rn,0,jn,nt-1),0<ve&&(Et||Cd(y,ve,0,0,nt-1),Ie+=ve)):(Ie+=Math.max(0,at),Kn<Be&&Fc(y,ht,0,Be-Kn,jn,nt-1),0<ve&&(Et||Cd(y,0,ve,0,nt-1),Be+=ve))),ve=Et=0,ht){case Hf:x?Et+=Ie/2-y.focus.x-ee/2:ve+=Be/2-y.focus.y-ee/2;break;case Ld:0<$n?x?Et+=Ie/2-y.focus.x-ee/2:ve+=Be/2-y.focus.y-ee/2:x?(a=E[0].S.x+E[0].la.x,Et+=a+(E[nt-1].S.x+E[nt-1].la.x+2*E[nt-1].focus.x-a)/2-y.focus.x-ee/2):(a=E[0].S.y+E[0].la.y,ve+=a+(E[nt-1].S.y+E[nt-1].la.y+2*E[nt-1].focus.y-a)/2-y.focus.y-ee/2);break;case Ql:x?(Et-=ee,Ie+=ee):(ve-=ee,Be+=ee);break;case ql:x?(Et+=Ie-y.width+ee,Ie+=ee):(ve+=Be-y.height+ee,Be+=ee);break;case th:case $l:x?1<nt?Et+=An+Jt/2-y.focus.x:Et+=E[0].focus.x-y.focus.x+E[0].la.x:1<nt?ve+=An+Jt/2-y.focus.y:ve+=E[0].focus.y-y.focus.y+E[0].la.y;break;case eh:x?Et+=Ie+Jt/2-y.focus.x:ve+=Be+Jt/2-y.focus.y;break;case Su:break;default:a=a.customAlignment(y,Et,ve,Ie,Be),Et=a[0],ve=a[1],Ie=a[2],Be=a[3]}for(a=0;a<nt;a++)ee=E[a],x?ee.S.h(ee.S.x+ee.la.x-Et,ee.S.y+(135<b?(ot?-Be:-ee.Da.height)+ee.la.y-at:Ae+at+ee.la.y)):ee.S.h(ee.S.x+(135<b?(ot?-Ie:-ee.Da.width)+ee.la.x-at:dt+at+ee.la.x),ee.S.y+ee.la.y-ve);x?(Ie=ky(y,Ie,Et),0>Et&&(Et=0),135<b&&(ve+=Be+at),Be=Math.max(Math.max(Be,Ae),Be+Ae+at)):(135<b&&(Et+=Ie+at),Ie=Math.max(Math.max(Ie,dt),Ie+dt+at),Be=Ny(y,Be,ve),0>ve&&(ve=0)),y.la.h(Et,ve),y.Da.h(Ie,Be)}}Qi.prototype.customAlignment=function(a,y,x,b,E){return[y,x,b,E]};function cx(a,y,x,b,E,z){var nt=x.length;if(nt===0)return new yn(b,0,E,z);if(nt===1)return y=x[0],E=y.Da.width,z=y.Da.height,new yn(b,0,E,z);for(var ot=y.nodeSpacing,at=y.rowSpacing,ht=ll(y)===90,dt=0,Et=0,Ht=0,Jt=0;Jt<nt;Jt++)if(!(Jt%2!==0||1<nt&&Jt===nt-1)){var ee=x[Jt],se=ee.Da,Ce=dt===0?0:at;if(ht){var ve=a.computeBusNodeSpacing(ee)-ot;ee.S.h(b-(se.width+ve),Ht+Ce),E=Math.max(E,se.width+ve),z=Math.max(z,Ht+Ce+se.height),Ht+=Ce+se.height}else ve=a.computeBusNodeSpacing(ee)-ot,ee.S.h(Et+Ce,b-(se.height+ve)),z=Math.max(z,se.height+ve),E=Math.max(E,Et+Ce+se.width),Et+=Ce+se.width;dt++}for(dt=0,ee=Et,Jt=Ht,ht?(Et=b+ot,Ht=0):(Et=0,Ht=b+ot),se=0;se<nt;se++)if(se%2!==0){Ce=x[se],ve=Ce.Da;var Ae=dt===0?0:at;if(ht){var Ie=a.computeBusNodeSpacing(Ce)-ot;Ce.S.h(Et+Ie,Ht+Ae),E=Math.max(E,Et+ve.width+Ie),z=Math.max(z,Ht+Ae+ve.height),Ht+=Ae+ve.height}else Ie=a.computeBusNodeSpacing(Ce)-ot,Ce.S.h(Et+Ae,Ht+Ie),E=Math.max(E,Et+Ae+ve.width),z=Math.max(z,Ht+ve.height+Ie),Et+=Ae+ve.width;dt++}return 1<nt&&nt%2===1&&(x=x[nt-1],nt=x.Da,a=a.computeBusLastRowSpacing(x,ht?Math.max(Math.abs(Jt),Math.abs(Ht)):Math.max(Math.abs(ee),Math.abs(Et))),ht?(x.S.h(b+ot/2-x.focus.x-x.la.x,z+a),ht=b+ot/2-x.focus.x-x.la.x,E=Math.max(E,ht+nt.width),0>ht&&(E-=ht),z=Math.max(z,Math.max(Jt,Ht)+a+nt.height),0>x.S.x&&(b=k0(y,x.S.x,!1,b,ot))):(x.S.h(E+a,b+ot/2-x.focus.y-x.la.y),E=Math.max(E,Math.max(ee,Et)+a+nt.width),Ht=b+ot/2-x.focus.y-x.la.y,z=Math.max(z,Ht+nt.height),0>Ht&&(z-=Ht),0>x.S.y&&(b=k0(y,x.S.y,!0,b,ot)))),new yn(b,0,E,z)}function dx(a,y,x,b,E,z){var nt=x.length;if(nt===0)return new yn(b,0,E,z);if(nt===1)return x=x[0],E=x.Da.width,z=x.Da.height,new yn(b,0,E,z);for(var ot=y.nodeSpacing,at=y.rowSpacing,ht=ll(y)===270,dt=0,Et=0,Ht=0,Jt=0;Jt<nt;Jt++)if(!(Jt%2!==0||1<nt&&Jt===nt-1)){var ee=x[Jt],se=ee.Da,Ce=dt===0?0:at;if(ht){var ve=a.computeBusNodeSpacing(ee)-ot;Ht-=Ce+se.height,ee.S.h(b-(se.width+ve),Ht),E=Math.max(E,se.width+ve),z=Math.max(z,Math.abs(Ht))}else ve=a.computeBusNodeSpacing(ee)-ot,Et-=Ce+se.width,ee.S.h(Et,b-(se.height+ve)),z=Math.max(z,se.height+ve),E=Math.max(E,Math.abs(Et));dt++}for(dt=0,ee=Et,Jt=Ht,ht?(Et=b+ot,Ht=0):(Et=0,Ht=b+ot),se=0;se<nt;se++)if(se%2!==0){Ce=x[se],ve=Ce.Da;var Ae=dt===0?0:at;if(ht){var Ie=a.computeBusNodeSpacing(Ce)-ot;Ht-=Ae+ve.height,Ce.S.h(Et+Ie,Ht),E=Math.max(E,Et+ve.width+Ie),z=Math.max(z,Math.abs(Ht))}else Ie=a.computeBusNodeSpacing(Ce)-ot,Et-=Ae+ve.width,Ce.S.h(Et,Ht+Ie),z=Math.max(z,Ht+ve.height+Ie),E=Math.max(E,Math.abs(Et));dt++}for(1<nt&&nt%2===1&&(at=x[nt-1],dt=at.Da,a=a.computeBusLastRowSpacing(at,ht?Math.max(Math.abs(Jt),Math.abs(Ht)):Math.max(Math.abs(ee),Math.abs(Et))),ht?(at.S.h(b+ot/2-at.focus.x-at.la.x,-z-dt.height-a),Et=b+ot/2-at.focus.x-at.la.x,E=Math.max(E,Et+dt.width),0>Et&&(E-=Et),z=Math.max(z,Math.abs(Math.min(Jt,Ht))+a+dt.height),0>at.S.x&&(b=k0(y,at.S.x,!1,b,ot))):(at.S.h(-E-dt.width-a,b+ot/2-at.focus.y-at.la.y),E=Math.max(E,Math.abs(Math.min(ee,Et))+a+dt.width),Ht=b+ot/2-at.focus.y-at.la.y,z=Math.max(z,Ht+dt.height),0>Ht&&(z-=Ht),0>at.S.y&&(b=k0(y,at.S.y,!0,b,ot)))),y=0;y<nt;y++)ot=x[y],ht?ot.S.h(ot.S.x,ot.S.y+z):ot.S.h(ot.S.x+E,ot.S.y);return new yn(b,0,E,z)}Qi.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},Qi.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function k0(a,y,x,b,E){a=a.children;for(var z=a.length,nt=0;nt<z;nt++)x?a[nt].S.h(a[nt].S.x,a[nt].S.y-y):a[nt].S.h(a[nt].S.x-y,a[nt].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 Ld:case Hf:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case Ql:return a.width>y?a.width:y;case ql:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case th:case $l:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case eh:return a.width-a.focus.x+a.nodeSpacing/2+y;case Su:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Ny(a,y,x){switch(a.alignment){case Ld:case Hf:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Ql:return a.height>y?a.height:y;case ql:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case th:case $l:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case eh:return a.height-a.focus.y+a.nodeSpacing/2+y;case Su:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Oy(a,y,x){switch(a){case Hf:y/=2,x/=2;break;case Ld:y/=2,x/=2;break;case Ql:x=y=0;break;case ql:break;default:Pe("Unhandled alignment value "+a.toString())}return new Se(y,x)}function Fc(a,y,x,b,E,z){y=Oy(y,x,b),Cd(a,y.x,y.y,E,z)}function Cd(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 N0(a,y,x,b){var E=y.parent;switch(a.ud){case Jl:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===E&&y.relativePoint.h(x,b);break;case Ed:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===E&&y.relativePoint.h(x,b);break;default:Pe("Unhandled path value "+a.ud.toString())}}function O0(a,y,x){for(var b=0;b<a.length;b++){var E=a[b];E.x+=y,E.y+=x}}function fx(a,y,x,b,E,z,nt,ot){var at=ll(y),ht=at===90||at===270,dt=y.nodeSpacing;y=b;var Et=E;b=z;var Ht=nt,Jt=x.Yo,ee=x.kp;nt=x.Da;var se=ht?Math.max(Ht,nt.height):Math.max(b,nt.width);if((Jt===null||at!==ll(x))&&(Jt=Vs(a,2),ee=Vs(a,2),ht?(Jt[0].h(0,0),Jt[1].h(0,nt.height),ee[0].h(nt.width,0),ee[1].h(ee[0].x,Jt[1].y)):(Jt[0].h(0,0),Jt[1].h(nt.width,0),ee[0].h(0,nt.height),ee[1].h(Jt[1].x,ee[0].y))),ht){if(Ht=9999999,!(Et===null||2>Et.length||Jt===null||2>Jt.length))for(E=x=0;x<Et.length&&E<Jt.length;){z=Et[x];var Ce=Jt[E];at=Ce.x,ht=Ce.y,at+=b;var ve=z;x+1<Et.length&&(ve=Et[x+1]);var Ae=Ce;Ce=Ae.x,Ae=Ae.y,E+1<Jt.length&&(Ae=Jt[E+1],Ce=Ae.x,Ae=Ae.y,Ce+=b);var Ie=Ht;z.y===ht?Ie=at-z.x:z.y>ht&&z.y<Ae?Ie=at+(z.y-ht)/(Ae-ht)*(Ce-at)-z.x:ht>z.y&&ht<ve.y&&(Ie=at-(z.x+(ht-z.y)/(ve.y-z.y)*(ve.x-z.x))),Ie<Ht&&(Ht=Ie),ve.y<=z.y?x++:Ae<=ht?E++:(ve.y<=Ae&&x++,Ae<=ve.y&&E++)}if(Ht=b-Ht,Ht+=dt,x=Jt,E=Ht,y===null||2>y.length||x===null||2>x.length)b=null;else{for(dt=Vs(a,y.length+x.length),b=z=at=0;z<x.length&&x[z].y<y[0].y;)ht=x[z++],dt[b++].h(ht.x+E,ht.y);for(;at<y.length;)ht=y[at++],dt[b++].h(ht.x,ht.y);for(at=y[y.length-1].y;z<x.length&&x[z].y<=at;)z++;for(;z<x.length&&x[z].y>at;)ht=x[z++],dt[b++].h(ht.x+E,ht.y);for(x=Vs(a,b),at=0;at<b;at++)x[at].assign(dt[at]);ml(a,dt),b=x}if(z=ee,at=Ht,Et===null||2>Et.length||z===null||2>z.length)E=null;else{for(dt=Vs(a,Et.length+z.length),E=ht=x=0;x<Et.length&&Et[x].y<z[0].y;)ve=Et[x++],dt[E++].h(ve.x,ve.y);for(;ht<z.length;)ve=z[ht++],dt[E++].h(ve.x+at,ve.y);for(z=z[z.length-1].y;x<Et.length&&Et[x].y<=z;)x++;for(;x<Et.length&&Et[x].y>z;)at=Et[x++],dt[E++].h(at.x,at.y);for(z=Vs(a,E),x=0;x<E;x++)z[x].assign(dt[x]);ml(a,dt),E=z}return z=Math.max(0,Ht)+nt.width,nt=se,ml(a,y),ml(a,Jt),ml(a,Et),ml(a,ee),ot[0]=b,ot[1]=E,new yn(Ht,0,z,nt)}if(b=9999999,!(Et===null||2>Et.length||Jt===null||2>Jt.length))for(E=x=0;x<Et.length&&E<Jt.length;)z=Et[x],Ce=Jt[E],at=Ce.x,ht=Ce.y,ht+=Ht,ve=z,x+1<Et.length&&(ve=Et[x+1]),Ae=Ce,Ce=Ae.x,Ae=Ae.y,E+1<Jt.length&&(Ae=Jt[E+1],Ce=Ae.x,Ae=Ae.y,Ae+=Ht),Ie=b,z.x===at?Ie=ht-z.y:z.x>at&&z.x<Ce?Ie=ht+(z.x-at)/(Ce-at)*(Ae-ht)-z.y:at>z.x&&at<ve.x&&(Ie=ht-(z.y+(at-z.x)/(ve.x-z.x)*(ve.y-z.y))),Ie<b&&(b=Ie),ve.x<=z.x?x++:Ce<=at?E++:(ve.x<=Ce&&x++,Ce<=ve.x&&E++);if(Ht-=b,Ht+=dt,x=Jt,E=Ht,y===null||2>y.length||x===null||2>x.length)b=null;else{for(dt=Vs(a,y.length+x.length),b=z=at=0;z<x.length&&x[z].x<y[0].x;)ht=x[z++],dt[b++].h(ht.x,ht.y+E);for(;at<y.length;)ht=y[at++],dt[b++].h(ht.x,ht.y);for(at=y[y.length-1].x;z<x.length&&x[z].x<=at;)z++;for(;z<x.length&&x[z].x>at;)ht=x[z++],dt[b++].h(ht.x,ht.y+E);for(x=Vs(a,b),at=0;at<b;at++)x[at].assign(dt[at]);ml(a,dt),b=x}if(z=ee,at=Ht,Et===null||2>Et.length||z===null||2>z.length)E=null;else{for(dt=Vs(a,Et.length+z.length),E=ht=x=0;x<Et.length&&Et[x].x<z[0].x;)ve=Et[x++],dt[E++].h(ve.x,ve.y);for(;ht<z.length;)ve=z[ht++],dt[E++].h(ve.x,ve.y+at);for(z=z[z.length-1].x;x<Et.length&&Et[x].x<=z;)x++;for(;x<Et.length&&Et[x].x>z;)at=Et[x++],dt[E++].h(at.x,at.y);for(z=Vs(a,E),x=0;x<E;x++)z[x].assign(dt[x]);ml(a,dt),E=z}return z=se,nt=Math.max(0,Ht)+nt.height,ml(a,y),ml(a,Jt),ml(a,Et),ml(a,ee),ot[0]=b,ot[1]=E,new yn(Ht,0,z,nt)}function Vs(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 Se;return a}function ml(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}Qi.prototype.arrangeTrees=function(){if(this.Rb===R0)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof Ya){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),Iy(this,y,x,b)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof Ya&&a.push(x);switch(this.sorting){case zf:break;case wp:a.reverse();break;case Pp:a.sort(this.comparer);break;case bp:a.sort(this.comparer),a.reverse();break;default:Pe("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(Iy(this,E,y+E.la.x,x+E.la.y),this.Rb){case B0:x+=E.Da.height+this.$d.height;break;case Ry:y+=E.Da.width+this.$d.width;break;default:Pe("Unhandled arrangement value "+this.Rb.toString())}}}};function Iy(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 nt=y[z];Iy(a,nt,x+nt.S.x,b+nt.S.y)}}}Qi.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},Qi.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},Qi.prototype.Gu=function(){if(this.layerStyle===j0){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 Se(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new Se(-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 nt=0;nt<a.length;nt++)z+=a[nt]+y[nt];for(nt=0;nt<a.length;nt++){var ot=a[nt]+y[nt];this.angle===270?(z-=ot,E.push(new yn(0,z,x,ot))):this.angle===90?(E.push(new yn(0,z,x,ot)),z+=ot):this.angle===180?(z-=ot,E.push(new yn(z,0,ot,x))):(E.push(new yn(z,0,ot,x)),z+=ot)}this.commitLayers(E,b)}},Qi.prototype.commitLayers=function(){},Qi.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Qi.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof Ya&&gx(this,y)}};function gx(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,b=0;b<x;b++)gx(a,y[b])}}Qi.prototype.setPortSpots=function(a){var y=a.alignment;if(Jh(y)){var x=this.ud===Jl,b=ll(a);switch(b){case 0:var E=Ko;break;case 90:E=jo;break;case 180:E=Oo;break;default:E=Co}var z=a.children,nt=z.length;switch(y){case th:case $l:for(y=0;y<nt;y++){var ot=z[y];if(ot=(x?ot.sourceEdges:ot.destinationEdges).first(),ot!==null&&(ot=ot.link,ot!==null)){var at=b===90||b===270?Oo:Co;if(nt===1||y===nt-1&&nt%2===1)switch(b){case 0:at=Oo;break;case 90:at=Co;break;case 180:at=Ko;break;default:at=jo}else y%2===0&&(at=b===90||b===270?Ko:jo);x?(a.setsPortSpot&&(ot.fromSpot=E),a.setsChildPortSpot&&(ot.toSpot=at)):(a.setsPortSpot&&(ot.fromSpot=at),a.setsChildPortSpot&&(ot.toSpot=E))}}break;case eh:for(b=b===90||b===270?Ko:jo,z=x?a.destinationEdges:a.sourceEdges;z.next();)nt=z.value.link,nt!==null&&(x?(a.setsPortSpot&&(nt.fromSpot=E),a.setsChildPortSpot&&(nt.toSpot=b)):(a.setsPortSpot&&(nt.fromSpot=b),a.setsChildPortSpot&&(nt.toSpot=E)));break;case Su:for(b=b===90||b===270?Oo:Co,z=x?a.destinationEdges:a.sourceEdges;z.next();)nt=z.value.link,nt!==null&&(x?(a.setsPortSpot&&(nt.fromSpot=E),a.setsChildPortSpot&&(nt.toSpot=b)):(a.setsPortSpot&&(nt.fromSpot=b),a.setsChildPortSpot&&(nt.toSpot=E)))}}else if(x=ll(a),this.ud===Jl){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=Ko;break;case 90:b.fromSpot=jo;break;case 180:b.fromSpot=Oo;break;default:b.fromSpot=Co}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=Oo;break;case 90:b.toSpot=Co;break;case 180:b.toSpot=Ko;break;default:b.toSpot=jo}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=Ko;break;case 90:b.toSpot=jo;break;case 180:b.toSpot=Oo;break;default:b.toSpot=Co}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=Oo;break;case 90:b.fromSpot=Co;break;case 180:b.fromSpot=Ko;break;default:b.fromSpot=jo}else b.fromSpot=a.childPortSpot}};function ll(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}Qi.prototype.computeLayerSpacing=function(a){var y=ll(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},Qi.prototype.computeNodeIndent=function(a){var y=ll(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)},we.Object.defineProperties(Qi.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!==F0&&a!==Fy&&a!==Dy&&a!==By||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==jy&&a!==zy&&a!==j0||(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!==B0&&a!==Ry&&a!==R0||(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!==zf&&a!==wp&&a!==Pp&&!bp||(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()):Pe("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!==D0&&a!==Cp||(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!==zf&&a!==wp&&a!==Pp&&!bp||(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!==D0&&a!==Cp||(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 I0=new dn(Qi,"PathDefault",-1),Jl=new dn(Qi,"PathDestination",0),Ed=new dn(Qi,"PathSource",1),zf=new dn(Qi,"SortingForwards",10),wp=new dn(Qi,"SortingReverse",11),Pp=new dn(Qi,"SortingAscending",12),bp=new dn(Qi,"SortingDescending",13),Hf=new dn(Qi,"AlignmentCenterSubtrees",20),Ld=new dn(Qi,"AlignmentCenterChildren",21),Ql=new dn(Qi,"AlignmentStart",22),ql=new dn(Qi,"AlignmentEnd",23),th=new dn(Qi,"AlignmentBus",24),$l=new dn(Qi,"AlignmentBusBranching",25),eh=new dn(Qi,"AlignmentTopLeftBus",26),Su=new dn(Qi,"AlignmentBottomRightBus",27),D0=new dn(Qi,"CompactionNone",30),Cp=new dn(Qi,"CompactionBlock",31),F0=new dn(Qi,"StyleLayered",40),Dy=new dn(Qi,"StyleLastParents",41),Fy=new dn(Qi,"StyleAlternating",42),By=new dn(Qi,"StyleRootOnly",43),B0=new dn(Qi,"ArrangementVertical",50),Ry=new dn(Qi,"ArrangementHorizontal",51),R0=new dn(Qi,"ArrangementFixedRoots",52),jy=new dn(Qi,"LayerIndividual",60),zy=new dn(Qi,"LayerSiblings",61),j0=new dn(Qi,"LayerUniform",62);Qi.className="TreeLayout",Qi.PathDefault=I0,Qi.PathDestination=Jl,Qi.PathSource=Ed,Qi.SortingForwards=zf,Qi.SortingReverse=wp,Qi.SortingAscending=Pp,Qi.SortingDescending=bp,Qi.AlignmentCenterSubtrees=Hf,Qi.AlignmentCenterChildren=Ld,Qi.AlignmentStart=Ql,Qi.AlignmentEnd=ql,Qi.AlignmentBus=th,Qi.AlignmentBusBranching=$l,Qi.AlignmentTopLeftBus=eh,Qi.AlignmentBottomRightBus=Su,Qi.CompactionNone=D0,Qi.CompactionBlock=Cp,Qi.StyleLayered=F0,Qi.StyleLastParents=Dy,Qi.StyleAlternating=Fy,Qi.StyleRootOnly=By,Qi.ArrangementVertical=B0,Qi.ArrangementHorizontal=Ry,Qi.ArrangementFixedRoots=R0,Qi.LayerIndividual=jy,Qi.LayerSiblings=zy,Qi.LayerUniform=j0;function Ad(a){Dr.call(this,a)}Qe(Ad,Dr),Ad.prototype.createVertex=function(){return new Ya(this)},Ad.prototype.createEdge=function(){return new Wf(this)},Ad.className="TreeNetwork";function Ya(a){Ao.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 Se(0,0),this.Da=new Wn(0,0),this.la=new Se(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=zf,this.hd=oy,this.Kb=0,this.Jb=Ld,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Cp,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Cr,this.wr=!0,this.Dp=Cr}Qe(Ya,Ao),Ya.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)},we.Object.defineProperties(Ya.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)}}}),Ya.className="TreeVertex";function Wf(a){aa.call(this,a),this.$t=new Se(0,0)}Qe(Wf,aa),Wf.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 Jl:x=this.fromVertex,b=this.toVertex;break;case Ed:x=this.toVertex,b=this.fromVertex;break;default:Pe("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=ll(x),nt=y.computeLayerSpacing(x),ot=x.rowSpacing;a.vg();var at=a.curve===ya,ht=a.isOrthogonal,dt;if(a.uh(),ht||at){for(dt=2;4<a.pointsCount;)a.pv(2);var Et=a.i(1),Ht=a.i(2)}else{for(dt=1;3<a.pointsCount;)a.pv(1);Et=a.i(0),Ht=a.i(a.pointsCount-1)}var Jt=a.i(a.pointsCount-1);z===0?(x.alignment===ql?(z=b.bottom+E.y,E.y===0&&Et.y>Jt.y+x.rowIndent&&(z=Math.min(z,Math.max(Et.y,z-y.computeNodeIndent(x))))):x.alignment===Ql?(z=b.top+E.y,E.y===0&&Et.y<Jt.y-x.rowIndent&&(z=Math.max(z,Math.min(Et.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,at?(a.m(dt,Et.x,z),dt++,a.m(dt,b.right+nt,z),dt++,a.m(dt,b.right+nt+(E.x-ot)/3,z),dt++,a.m(dt,b.right+nt+2*(E.x-ot)/3,z),dt++,a.m(dt,b.right+nt+(E.x-ot),z),dt++,a.m(dt,Ht.x,z)):(ht&&(a.m(dt,b.right+nt/2,Et.y),dt++),a.m(dt,b.right+nt/2,z),dt++,a.m(dt,b.right+nt+E.x-(ht?ot/2:ot),z),dt++,ht&&a.m(dt,a.i(dt-1).x,Ht.y))):z===90?(x.alignment===ql?(z=b.right+E.x,E.x===0&&Et.x>Jt.x+x.rowIndent&&(z=Math.min(z,Math.max(Et.x,z-y.computeNodeIndent(x))))):x.alignment===Ql?(z=b.left+E.x,E.x===0&&Et.x<Jt.x-x.rowIndent&&(z=Math.max(z,Math.min(Et.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,at?(a.m(dt,z,Et.y),dt++,a.m(dt,z,b.bottom+nt),dt++,a.m(dt,z,b.bottom+nt+(E.y-ot)/3),dt++,a.m(dt,z,b.bottom+nt+2*(E.y-ot)/3),dt++,a.m(dt,z,b.bottom+nt+(E.y-ot)),dt++,a.m(dt,z,Ht.y)):(ht&&(a.m(dt,Et.x,b.bottom+nt/2),dt++),a.m(dt,z,b.bottom+nt/2),dt++,a.m(dt,z,b.bottom+nt+E.y-(ht?ot/2:ot)),dt++,ht&&a.m(dt,Ht.x,a.i(dt-1).y))):z===180?(x.alignment===ql?(z=b.bottom+E.y,E.y===0&&Et.y>Jt.y+x.rowIndent&&(z=Math.min(z,Math.max(Et.y,z-y.computeNodeIndent(x))))):x.alignment===Ql?(z=b.top+E.y,E.y===0&&Et.y<Jt.y-x.rowIndent&&(z=Math.max(z,Math.min(Et.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,at?(a.m(dt,Et.x,z),dt++,a.m(dt,b.left-nt,z),dt++,a.m(dt,b.left-nt+(E.x+ot)/3,z),dt++,a.m(dt,b.left-nt+2*(E.x+ot)/3,z),dt++,a.m(dt,b.left-nt+(E.x+ot),z),dt++,a.m(dt,Ht.x,z)):(ht&&(a.m(dt,b.left-nt/2,Et.y),dt++),a.m(dt,b.left-nt/2,z),dt++,a.m(dt,b.left-nt+E.x+(ht?ot/2:ot),z),dt++,ht&&a.m(dt,a.i(dt-1).x,Ht.y))):z===270?(x.alignment===ql?(z=b.right+E.x,E.x===0&&Et.x>Jt.x+x.rowIndent&&(z=Math.min(z,Math.max(Et.x,z-y.computeNodeIndent(x))))):x.alignment===Ql?(z=b.left+E.x,E.x===0&&Et.x<Jt.x-x.rowIndent&&(z=Math.max(z,Math.min(Et.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,at?(a.m(dt,z,Et.y),dt++,a.m(dt,z,b.top-nt),dt++,a.m(dt,z,b.top-nt+(E.y+ot)/3),dt++,a.m(dt,z,b.top-nt+2*(E.y+ot)/3),dt++,a.m(dt,z,b.top-nt+(E.y+ot)),dt++,a.m(dt,z,Ht.y)):(ht&&(a.m(dt,Et.x,b.top-nt/2),dt++),a.m(dt,z,b.top-nt/2),dt++,a.m(dt,z,b.top-nt+E.y+(ht?ot/2:ot)),dt++,ht&&a.m(dt,Ht.x,a.i(dt-1).y))):Pe("Invalid angle "+z),a.zf()}else E=b,a=this.link,b=this.network.layout,y=ll(x),y!==ll(E)&&(nt=b.computeLayerSpacing(x),ot=x.bounds,x=E.bounds,y===0&&x.left-ot.right<nt+1||y===90&&x.top-ot.bottom<nt+1||y===180&&ot.left-x.right<nt+1||y===270&&ot.top-x.bottom<nt+1||(a.vg(),x=a.curve===ya,E=a.isOrthogonal,b=Jh(this.fromVertex.alignment),a.uh(),y===0?(y=ot.right+nt/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=ot.bottom+nt/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=ot.left-nt/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=ot.top-nt/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()))}}},we.Object.defineProperties(Wf.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)}}}),Wf.className="TreeEdge",Kr.prototype.initializeStandardTools=function(){this.gb("Action",new Wa,this.mouseDownTools),this.gb("Relinking",new fa,this.mouseDownTools),this.gb("LinkReshaping",new co,this.mouseDownTools),this.gb("Rotating",new bs,this.mouseDownTools),this.gb("Resizing",new rs,this.mouseDownTools),this.gb("Linking",new Ps,this.mouseMoveTools),this.gb("Dragging",new Jr,this.mouseMoveTools),this.gb("DragSelecting",new Ea,this.mouseMoveTools),this.gb("Panning",new ts,this.mouseMoveTools),this.gb("ContextMenu",new Cs,this.mouseUpTools),this.gb("TextEditing",new zr,this.mouseUpTools),this.gb("ClickCreating",new Fu,this.mouseUpTools),this.gb("ClickSelecting",new bh,this.mouseUpTools)},kl("Horizontal",new fm),kl("Spot",new pm),kl("Table",new vm),kl("Viewbox",new xm),kl("TableRow",new ym),kl("TableColumn",new Sm),kl("Graduated",new Hg),kl("Grid",new zg),hf.add("GraphLinksModel",Ho),hf.add("TreeModel",Ia);var z0=Le.go,Hy={get licenseKey(){return on.licenseKey},set licenseKey(a){on.licenseKey=a},get version(){return on.version},Group:Ni,EnumValue:dn,List:bn,Set:En,Map:qn,Point:Se,Size:Wn,Rect:yn,Margin:li,Spot:si,Geometry:Un,PathFigure:Io,PathSegment:fr,InputEvent:hs,DiagramEvent:Lu,ChangedEvent:Yr,Model:ri,GraphLinksModel:ir,TreeModel:Os,Binding:po,Transaction:zo,UndoManager:_r,CommandHandler:be,Tool:hr,DraggingTool:Jr,DraggingInfo:fu,DraggingOptions:lt,LinkingBaseTool:to,LinkingTool:Ps,RelinkingTool:fa,LinkReshapingTool:co,ResizingTool:rs,RotatingTool:bs,ClickSelectingTool:bh,ActionTool:Wa,ClickCreatingTool:Fu,HTMLInfo:El,ContextMenuTool:Cs,DragSelectingTool:Ea,PanningTool:ts,TextEditingTool:zr,ToolManager:Kr,Animation:es,AnimationManager:ra,AnimationTrigger:tl,Layer:Vo,Diagram:on,Palette:yt,Overview:Nt,Brush:br,GraphObject:Xe,Panel:Fn,RowColumnDefinition:wo,Shape:Ri,TextBlock:Ir,Picture:Hs,Part:di,Adornment:cr,Node:Vn,Link:zn,Placeholder:Ms,Layout:Gr,LayoutNetwork:Dr,LayoutVertex:Ao,LayoutEdge:aa,GridLayout:Jo,PanelLayout:Lo,CircularLayout:Qr,CircularNetwork:Bf,CircularVertex:gp,CircularEdge:S0,ForceDirectedLayout:is,ForceDirectedNetwork:bd,ForceDirectedVertex:pp,ForceDirectedEdge:mp,LayeredDigraphLayout:Lr,LayeredDigraphNetwork:jf,LayeredDigraphVertex:Fa,LayeredDigraphEdge:Sp,TreeLayout:Qi,TreeNetwork:Ad,TreeVertex:Ya,TreeEdge:Wf};typeof z0=="object"&&z0.version&&On("WARNING: a `go` object on the root object is already defined. "+("Debug"in z0?"debug ":"")+"version: "+z0.version+", replaced with version: "+Hy.version),on.prototype.go=Hy,Le.go=Hy,typeof Tn.exports=="object"&&(Tn.exports=typeof Kt.g!="undefined"?Kt.g.go:self.go)}();var zt=typeof Kt.g!="undefined"?Kt.g.go:self.go;const gt=typeof Kt.g!="undefined"?Kt.g.go:self.go,Xt=gt.Group,Qt=gt.EnumValue,kt=gt.List,Bt=gt.Set,xt=gt.Map,Ot=gt.Point,Rt=gt.Size,Ct=gt.Rect,Lt=gt.Margin,At=gt.Spot,It=gt.Geometry,mt=gt.PathFigure,et=gt.PathSegment,tt=gt.InputEvent,st=gt.DiagramEvent,rt=gt.ChangedEvent,ut=gt.Model,ct=gt.GraphLinksModel,ft=gt.TreeModel,pt=gt.Binding,Pt=gt.Transaction,Dt=gt.UndoManager,Zt=gt.CommandHandler,Ft=gt.Tool,qt=gt.DraggingTool,te=gt.DraggingInfo,Gt=gt.LinkingBaseTool,ce=gt.LinkingTool,ae=gt.RelinkingTool,xe=gt.LinkReshapingTool,ye=gt.ResizingTool,Te=gt.RotatingTool,me=gt.ClickSelectingTool,He=gt.ActionTool,fe=gt.ClickCreatingTool,$t=gt.HTMLInfo,ie=gt.ContextMenuTool,ue=gt.DragSelectingTool,ge=gt.PanningTool,he=gt.TextEditingTool,De=gt.ToolManager,Ne=gt.Animation,$e=gt.AnimationManager,Re=gt.AnimationTrigger,tn=gt.Layer,Me=gt.Diagram,Oe=gt.Palette,Fe=gt.Overview,le=gt.Brush,Tt=gt.GraphObject,bt=gt.Panel,_t=gt.RowColumnDefinition,Yt=gt.Shape,Mt=gt.TextBlock,Ut=gt.TextBlockMetrics,St=gt.Picture,wt=gt.Part,jt=gt.Adornment,Wt=gt.Node,Vt=gt.Link,oe=gt.Placeholder,de=gt.Layout,Ge=gt.LayoutNetwork,Ye=gt.LayoutVertex,Ue=gt.LayoutEdge,an=gt.GridLayout,vn=gt.PanelLayout,ke=gt.CircularLayout,Ze=gt.CircularNetwork,hn=gt.CircularVertex,Pn=gt.CircularEdge,In=gt.ForceDirectedLayout,Bn=gt.ForceDirectedNetwork,Zn=gt.ForceDirectedVertex,Gn=gt.ForceDirectedEdge,ci=gt.LayeredDigraphLayout,pi=gt.LayeredDigraphNetwork,xi=gt.LayeredDigraphVertex,Ci=gt.LayeredDigraphEdge,Gi=gt.TreeLayout,qi=gt.TreeNetwork,bi=gt.TreeVertex,Yi=gt.TreeEdge,ui=gt.version},2859:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{hP:function(){return Fe}});var zt=function(le,Tt){return(zt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(bt,_t){bt.__proto__=_t}||function(bt,_t){for(var Yt in _t)Object.prototype.hasOwnProperty.call(_t,Yt)&&(bt[Yt]=_t[Yt])})(le,Tt)};function gt(le,Tt){function bt(){this.constructor=le}zt(le,Tt),le.prototype=Tt===null?Object.create(Tt):(bt.prototype=Tt.prototype,new bt)}function Xt(le,Tt,bt,_t){return new(bt||(bt=Promise))(function(Yt,Mt){function Ut(jt){try{wt(_t.next(jt))}catch(Wt){Mt(Wt)}}function St(jt){try{wt(_t.throw(jt))}catch(Wt){Mt(Wt)}}function wt(jt){var Wt;jt.done?Yt(jt.value):(Wt=jt.value,Wt instanceof bt?Wt:new bt(function(Vt){Vt(Wt)})).then(Ut,St)}wt((_t=_t.apply(le,Tt||[])).next())})}function Qt(le,Tt){var bt,_t,Yt,Mt,Ut={label:0,sent:function(){if(1&Yt[0])throw Yt[1];return Yt[1]},trys:[],ops:[]};return Mt={next:St(0),throw:St(1),return:St(2)},typeof Symbol=="function"&&(Mt[Symbol.iterator]=function(){return this}),Mt;function St(wt){return function(jt){return function(Wt){if(bt)throw new TypeError("Generator is already executing.");for(;Ut;)try{if(bt=1,_t&&(Yt=2&Wt[0]?_t.return:Wt[0]?_t.throw||((Yt=_t.return)&&Yt.call(_t),0):_t.next)&&!(Yt=Yt.call(_t,Wt[1])).done)return Yt;switch(_t=0,Yt&&(Wt=[2&Wt[0],Yt.value]),Wt[0]){case 0:case 1:Yt=Wt;break;case 4:return Ut.label++,{value:Wt[1],done:!1};case 5:Ut.label++,_t=Wt[1],Wt=[0];continue;case 7:Wt=Ut.ops.pop(),Ut.trys.pop();continue;default:if(Yt=Ut.trys,!((Yt=Yt.length>0&&Yt[Yt.length-1])||Wt[0]!==6&&Wt[0]!==2)){Ut=0;continue}if(Wt[0]===3&&(!Yt||Wt[1]>Yt[0]&&Wt[1]<Yt[3])){Ut.label=Wt[1];break}if(Wt[0]===6&&Ut.label<Yt[1]){Ut.label=Yt[1],Yt=Wt;break}if(Yt&&Ut.label<Yt[2]){Ut.label=Yt[2],Ut.ops.push(Wt);break}Yt[2]&&Ut.ops.pop(),Ut.trys.pop();continue}Wt=Tt.call(le,Ut)}catch(Vt){Wt=[6,Vt],_t=0}finally{bt=Yt=0}if(5&Wt[0])throw Wt[1];return{value:Wt[0]?Wt[1]:void 0,done:!0}}([wt,jt])}}}function kt(){for(var le=0,Tt=0,bt=arguments.length;Tt<bt;Tt++)le+=arguments[Tt].length;var _t=Array(le),Yt=0;for(Tt=0;Tt<bt;Tt++)for(var Mt=arguments[Tt],Ut=0,St=Mt.length;Ut<St;Ut++,Yt++)_t[Yt]=Mt[Ut];return _t}var Bt=function(){function le(){}return le.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},le.setAttributes=function(Tt,bt){for(var _t=0,Yt=bt;_t<Yt.length;_t++){var Mt=Yt[_t],Ut=Mt[0],St=Mt[1];Tt.setAttribute(Ut,St)}},le.createRect=function(Tt,bt,_t){var Yt=document.createElementNS("http://www.w3.org/2000/svg","rect");return Yt.setAttribute("width",Tt.toString()),Yt.setAttribute("height",bt.toString()),_t&&le.setAttributes(Yt,_t),Yt},le.createLine=function(Tt,bt,_t,Yt,Mt){var Ut=document.createElementNS("http://www.w3.org/2000/svg","line");return Ut.setAttribute("x1",Tt.toString()),Ut.setAttribute("y1",bt.toString()),Ut.setAttribute("x2",_t.toString()),Ut.setAttribute("y2",Yt.toString()),Mt&&le.setAttributes(Ut,Mt),Ut},le.createPolygon=function(Tt,bt){var _t=document.createElementNS("http://www.w3.org/2000/svg","polygon");return _t.setAttribute("points",Tt),bt&&le.setAttributes(_t,bt),_t},le.createCircle=function(Tt,bt){var _t=document.createElementNS("http://www.w3.org/2000/svg","circle");return _t.setAttribute("cx",(Tt/2).toString()),_t.setAttribute("cy",(Tt/2).toString()),_t.setAttribute("r",Tt.toString()),bt&&le.setAttributes(_t,bt),_t},le.createEllipse=function(Tt,bt,_t){var Yt=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Yt.setAttribute("cx",(Tt/2).toString()),Yt.setAttribute("cy",(bt/2).toString()),Yt.setAttribute("rx",(Tt/2).toString()),Yt.setAttribute("ry",(bt/2).toString()),_t&&le.setAttributes(Yt,_t),Yt},le.createGroup=function(Tt){var bt=document.createElementNS("http://www.w3.org/2000/svg","g");return Tt&&le.setAttributes(bt,Tt),bt},le.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},le.createMarker=function(Tt,bt,_t,Yt,Mt,Ut,St){var wt=document.createElementNS("http://www.w3.org/2000/svg","marker");return le.setAttributes(wt,[["id",Tt],["orient",bt],["markerWidth",_t.toString()],["markerHeight",Yt.toString()],["refX",Mt.toString()],["refY",Ut.toString()]]),wt.appendChild(St),wt},le.createText=function(Tt){var bt=document.createElementNS("http://www.w3.org/2000/svg","text");return bt.setAttribute("x","0"),bt.setAttribute("y","0"),Tt&&le.setAttributes(bt,Tt),bt},le.createTSpan=function(Tt,bt){var _t=document.createElementNS("http://www.w3.org/2000/svg","tspan");return _t.textContent=Tt,bt&&le.setAttributes(_t,bt),_t},le.createImage=function(Tt){var bt=document.createElementNS("http://www.w3.org/2000/svg","image");return Tt&&le.setAttributes(bt,Tt),bt},le.createPoint=function(Tt,bt){var _t=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return _t.x=Tt,_t.y=bt,_t},le.createPath=function(Tt,bt){var _t=document.createElementNS("http://www.w3.org/2000/svg","path");return _t.setAttribute("d",Tt),bt&&le.setAttributes(_t,bt),_t},le}(),xt=function(){function le(){}return le.addKey=function(Tt){le.key=Tt},Object.defineProperty(le,"isLicensed",{get:function(){return!!le.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(le.key)},enumerable:!1,configurable:!0}),le}(),Ot=function(){function le(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return le.prototype.rasterize=function(Tt,bt,_t){var Yt=this;return new Promise(function(Mt){var Ut=_t!==void 0?_t:document.createElement("canvas");Tt===null&&(Yt.markersOnly=!0,Yt.naturalSize=!1);var St=document.createElementNS("http://www.w3.org/2000/svg","svg");St.setAttribute("xmlns","http://www.w3.org/2000/svg"),St.setAttribute("width",bt.width.baseVal.valueAsString),St.setAttribute("height",bt.height.baseVal.valueAsString),St.setAttribute("viewBox","0 0 "+bt.viewBox.baseVal.width.toString()+" "+bt.viewBox.baseVal.height.toString()),St.innerHTML=bt.innerHTML,Yt.naturalSize===!0?(St.width.baseVal.value=Tt.naturalWidth,St.height.baseVal.value=Tt.naturalHeight):Yt.width!==void 0&&Yt.height!==void 0&&(St.width.baseVal.value=Yt.width,St.height.baseVal.value=Yt.height),Ut.width=St.width.baseVal.value,Ut.height=St.height.baseVal.value;var wt=St.outerHTML,jt=Ut.getContext("2d");Yt.markersOnly!==!0&&jt.drawImage(Tt,0,0,Ut.width,Ut.height);var Wt=window.URL,Vt=new Image(Ut.width,Ut.height);Vt.setAttribute("crossOrigin","anonymous");var oe=new Blob([wt],{type:"image/svg+xml"}),de=Wt.createObjectURL(oe);Vt.onload=function(){jt.drawImage(Vt,0,0),Wt.revokeObjectURL(de);var Ge=Ut.toDataURL(Yt.imageType,Yt.imageQuality);Mt(Ge)},Vt.src=de})},le}(),Rt=function(){},Ct=function(){function le(Tt){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Tt+"_"}return Object.defineProperty(le.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(le.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(le.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),le.prototype.addClass=function(Tt){return this.styleSheet===void 0&&this.addStyleSheet(),Tt.name=""+this.classNamePrefix+Tt.localName,this.classes.push(Tt),this.styleSheet.sheet.insertRule("."+Tt.name+" {"+Tt.style+"}",this.styleSheet.sheet.cssRules.length),Tt},le.prototype.addRule=function(Tt){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Tt),this.styleSheet.sheet.insertRule(Tt.selector+" {"+Tt.style+"}",this.styleSheet.sheet.cssRules.length)},le.prototype.addStyleSheet=function(){var Tt;this.styleSheet=document.createElement("style"),((Tt=this.styleSheetRoot)!==null&&Tt!==void 0?Tt:document.head).appendChild(this.styleSheet),this.addRule(new Lt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Lt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new Lt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new At("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new At("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},le.prototype.removeStyleSheet=function(){var Tt;this.styleSheet&&(((Tt=this.styleSheetRoot)!==null&&Tt!==void 0?Tt:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},le}(),Lt=function(le,Tt){this.selector=le,this.style=Tt},At=function(le,Tt){this.localName=le,this.style=Tt},It=function(){function le(Tt,bt,_t,Yt,Mt){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Tt,this.displayMode=bt,this.markerItems=_t,this.uiStyleSettings=Yt,this.styles=Mt,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return le.prototype.show=function(Tt){var bt=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Tt,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var _t=document.createElement("div");_t.className=this.toolbarBlockStyleClass.name,_t.style.whiteSpace="nowrap",this.uiContainer.appendChild(_t),this.addActionButton(_t,'<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(_t,'<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(_t,'<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(_t,'<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(_t,'<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(_t,'<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(_t,'<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(_t,'<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(Mt){var Ut=document.createElement("div");Ut.className=""+bt.toolbarButtonStyleClass.name,Ut.setAttribute("data-type-name",Mt.typeName),Ut.innerHTML=Mt.icon,Ut.addEventListener("click",function(){bt.markerToolbarButtonClicked(Ut,Mt)}),bt.buttons.push(Ut),bt.markerButtons.push(Ut)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var Yt=document.createElement("div");Yt.className=this.toolbarBlockStyleClass.name,Yt.style.whiteSpace="nowrap",Yt.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Yt),this.addActionButton(Yt,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(Yt,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},le.prototype.addButtonClickListener=function(Tt){this.buttonClickListeners.push(Tt)},le.prototype.removeButtonClickListener=function(Tt){this.buttonClickListeners.indexOf(Tt)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Tt),1)},le.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},le.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Tt=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var bt=0;bt<this.markerButtons.length;bt++)bt<Tt||bt===Tt&&this.markerButtons.length-1===Tt?this.markerButtonBlock.appendChild(this.markerButtons[bt]):(bt===Tt&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[bt]))}},le.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")},le.prototype.resetButtonStyles=function(){var Tt=this;this.buttons.forEach(function(bt){bt.className=bt.className.replace(Tt.uiStyleSettings.toolbarButtonStyleColorsClassName?Tt.uiStyleSettings.toolbarButtonStyleColorsClassName:Tt.toolbarButtonStyleColorsClass.name,"").trim(),bt.className=bt.className.replace(Tt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Tt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Tt.toolbarActiveButtonStyleColorsClass.name,"").trim(),bt.className+=" "+(Tt.uiStyleSettings.toolbarButtonStyleColorsClassName?Tt.uiStyleSettings.toolbarButtonStyleColorsClassName:Tt.toolbarButtonStyleColorsClass.name)})},le.prototype.addActionButton=function(Tt,bt,_t){var Yt=this,Mt=document.createElement("div");switch(Mt.className=""+this.toolbarButtonStyleClass.name,Mt.innerHTML=bt,Mt.setAttribute("data-action",_t),Mt.addEventListener("click",function(){Yt.actionToolbarButtonClicked(Mt,_t)}),_t){case"select":Mt.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Mt.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Mt.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Mt.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Mt.style.fill=this.uiStyleSettings.closeButtonColor}Tt.appendChild(Mt),this.buttons.push(Mt)},le.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new At("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 At("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new At("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new At("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 At("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var Tt=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new At("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Tt)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Tt)+`px;
|
|
|
padding: `+Tt+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new At("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new At("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Lt("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new Lt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},le.prototype.markerToolbarButtonClicked=function(Tt,bt){this.setActiveButton(Tt),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(_t){return _t("marker",bt)}),this.markerButtonOverflowBlock.style.display="none"},le.prototype.actionToolbarButtonClicked=function(Tt,bt){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(_t){return _t("action",bt)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},le.prototype.setActiveButton=function(Tt){this.resetButtonStyles(),Tt.className=Tt.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Tt.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},le.prototype.setActiveMarkerButton=function(Tt){var bt=this.markerButtons.find(function(_t){return _t.getAttribute("data-type-name")===Tt});bt&&this.setActiveButton(bt)},le.prototype.setCurrentMarker=function(Tt){var bt=this;this.currentMarker=Tt,this.buttons.filter(function(_t){return/delete|notes/.test(_t.getAttribute("data-action"))}).forEach(function(_t){bt.currentMarker===void 0?(_t.style.fillOpacity="0.4",_t.style.pointerEvents="none"):(_t.style.fillOpacity="1",_t.style.pointerEvents="all")})},le}(),mt=function(){function le(Tt,bt,_t,Yt){this.panels=[],this.panelButtons=[],this.markerjsContainer=Tt,this.displayMode=bt,this.uiStyleSettings=_t,this.styles=Yt,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return le.prototype.addStyles=function(){var Tt;this.toolboxStyleClass=this.styles.addClass(new At("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 At("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var bt=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new At("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new At("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new At("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 At("toolbox-panel-row_colors",`
|
|
|
background-color: `+((Tt=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Tt!==void 0?Tt:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new At("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*bt)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*bt)+`px;
|
|
|
padding: `+bt+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new At("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new At("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new Lt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new Lt("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},le.prototype.show=function(Tt){var bt;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Tt,this.uiContainer.className=this.toolboxStyleClass.name+" "+((bt=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&bt!==void 0?bt:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},le.prototype.setPanelButtons=function(Tt){var bt,_t,Yt=this;this.panels=Tt,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((bt=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&bt!==void 0?bt:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((_t=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&_t!==void 0?_t:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Mt){var Ut;Mt.uiStyleSettings=Yt.uiStyleSettings;var St=document.createElement("div");St.className=Yt.toolboxButtonStyleClass.name+" "+((Ut=Yt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Ut!==void 0?Ut:Yt.toolboxButtonStyleColorsClass.name),St.innerHTML=Mt.icon,St.title=Mt.title,St.addEventListener("click",function(){Yt.panelButtonClick(Mt)}),Yt.panelButtons.push(St),Yt.buttonRow.appendChild(St)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},le.prototype.panelButtonClick=function(Tt){var bt=this,_t=-1;if(Tt!==this.activePanel){_t=this.panels.indexOf(Tt),this.panelRow.innerHTML="";var Yt=Tt.getUi();Yt.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Yt),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=Tt}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){bt.displayMode==="inline"?bt.panelRow.style.display="none":bt.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Mt,Ut){var St,wt;Mt.className=bt.toolboxButtonStyleClass.name+" "+(Ut===_t?""+((St=bt.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&St!==void 0?St:bt.toolboxActiveButtonStyleColorsClass.name):""+((wt=bt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&wt!==void 0?wt:bt.toolboxButtonStyleColorsClass.name))})},le}(),et=function(le,Tt){this.title=le,this.icon=Tt},tt=function(le){function Tt(bt,_t,Yt,Mt){var Ut=le.call(this,bt,Mt||'<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 Ut.colors=[],Ut.addTransparent=!1,Ut.colorBoxes=[],Ut.colors=_t,Ut.currentColor=Yt,Ut.setCurrentColor=Ut.setCurrentColor.bind(Ut),Ut.getColorBox=Ut.getColorBox.bind(Ut),Ut}return gt(Tt,le),Tt.prototype.getUi=function(){var bt=this,_t=document.createElement("div");return _t.style.overflow="hidden",_t.style.whiteSpace="nowrap",this.colors.forEach(function(Yt){var Mt=bt.getColorBox(Yt);_t.appendChild(Mt),bt.colorBoxes.push(Mt)}),_t},Tt.prototype.getColorBox=function(bt){var _t=this,Yt=this.uiStyleSettings.toolbarHeight/4,Mt=this.uiStyleSettings.toolbarHeight-Yt,Ut=document.createElement("div");Ut.style.display="inline-block",Ut.style.boxSizing="content-box",Ut.style.width=Mt-2+"px",Ut.style.height=Mt-2+"px",Ut.style.padding="1px",Ut.style.marginRight="2px",Ut.style.marginBottom="2px",Ut.style.borderWidth="2px",Ut.style.borderStyle="solid",Ut.style.borderRadius=(Mt+2)/2+"px",Ut.style.borderColor=bt===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Ut.addEventListener("click",function(){_t.setCurrentColor(bt,Ut)});var St=document.createElement("div");return St.style.display="inline-block",St.style.width=Mt-2+"px",St.style.height=Mt-2+"px",St.style.backgroundColor=bt,St.style.borderRadius=Mt/2+"px",bt==="transparent"&&(St.style.fill=this.uiStyleSettings.toolboxAccentColor,St.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>`),Ut.appendChild(St),Ut},Tt.prototype.setCurrentColor=function(bt,_t){var Yt=this;this.currentColor=bt,this.colorBoxes.forEach(function(Mt){Mt.style.borderColor=Mt===_t?Yt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(bt)},Tt}(et),st=function(){function le(Tt,bt,_t){this._state="new",this._isSelected=!1,this._container=Tt,this._overlayContainer=bt,this.globalSettings=_t,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(le.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),le.prototype.ownsTarget=function(Tt){return!1},Object.defineProperty(le.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),le.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},le.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},le.prototype.pointerDown=function(Tt,bt){},le.prototype.dblClick=function(Tt,bt){},le.prototype.manipulate=function(Tt){},le.prototype.pointerUp=function(Tt){this.stateChanged()},le.prototype.dispose=function(){},le.prototype.addMarkerVisualToContainer=function(Tt){this.container.childNodes.length>0?this.container.insertBefore(Tt,this.container.childNodes[0]):this.container.appendChild(Tt)},le.prototype.getState=function(){return{typeName:le.typeName,state:this.state,notes:this.notes}},le.prototype.restoreState=function(Tt){this._state=Tt.state,this.notes=Tt.notes},le.prototype.scale=function(Tt,bt){},le.prototype.colorChanged=function(Tt){this.onColorChanged&&this.onColorChanged(Tt),this.stateChanged()},le.prototype.fillColorChanged=function(Tt){this.onFillColorChanged&&this.onFillColorChanged(Tt),this.stateChanged()},le.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Tt=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Tt.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Tt)&&this.onStateChanged(this)}},le.typeName="MarkerBase",le}(),rt=function(){function le(){this.findGripByVisual=this.findGripByVisual.bind(this)}return le.prototype.findGripByVisual=function(Tt){return this.topLeft.ownsTarget(Tt)?this.topLeft:this.topCenter.ownsTarget(Tt)?this.topCenter:this.topRight.ownsTarget(Tt)?this.topRight:this.centerLeft.ownsTarget(Tt)?this.centerLeft:this.centerRight.ownsTarget(Tt)?this.centerRight:this.bottomLeft.ownsTarget(Tt)?this.bottomLeft:this.bottomCenter.ownsTarget(Tt)?this.bottomCenter:this.bottomRight.ownsTarget(Tt)?this.bottomRight:void 0},le}(),ut=function(){function le(){this.GRIP_SIZE=10,this.visual=Bt.createGroup(),this.visual.appendChild(Bt.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Bt.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return le.prototype.ownsTarget=function(Tt){return Tt===this.visual||Tt===this.visual.childNodes[0]||Tt===this.visual.childNodes[1]},le}(),ct=function(){function le(){}return le.toITransformMatrix=function(Tt){return{a:Tt.a,b:Tt.b,c:Tt.c,d:Tt.d,e:Tt.e,f:Tt.f}},le.toSVGMatrix=function(Tt,bt){return Tt.a=bt.a,Tt.b=bt.b,Tt.c=bt.c,Tt.d=bt.d,Tt.e=bt.e,Tt.f=bt.f,Tt},le}(),ft=function(le){function Tt(bt,_t,Yt){var Mt=le.call(this,bt,_t,Yt)||this;return Mt.left=0,Mt.top=0,Mt.width=0,Mt.height=0,Mt.defaultSize={x:50,y:20},Mt.offsetX=0,Mt.offsetY=0,Mt.rotationAngle=0,Mt.CB_DISTANCE=10,Mt._suppressMarkerCreateEvent=!1,Mt.container.transform.baseVal.appendItem(Bt.createTransform()),Mt.setupControlBox(),Mt}return gt(Tt,le),Object.defineProperty(Tt.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Tt.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Tt.prototype,"visual",{get:function(){return this._visual},set:function(bt){this._visual=bt;var _t=Bt.createTransform();this._visual.transform.baseVal.appendItem(_t)},enumerable:!1,configurable:!0}),Tt.prototype.ownsTarget=function(bt){return!!le.prototype.ownsTarget.call(this,bt)||!!(this.controlGrips.findGripByVisual(bt)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(bt))},Tt.prototype.pointerDown=function(bt,_t){le.prototype.pointerDown.call(this,bt,_t),this.state==="new"&&(this.left=bt.x,this.top=bt.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Yt=this.unrotatePoint(bt);if(this.manipulationStartX=Yt.x,this.manipulationStartY=Yt.y,this.offsetX=Yt.x-this.left,this.offsetY=Yt.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(_t),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(_t)){this.activeGrip=this.rotatorGrip;var Mt=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Mt.x-this.width/2,this.top=Mt.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Ut=this.container.transform.baseVal.getItem(0);Ut.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Ut,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Tt.prototype.pointerUp=function(bt){var _t=this.state;le.prototype.pointerUp.call(this,bt),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(bt),this._state="select",_t==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Tt.prototype.moveVisual=function(bt){this.visual.style.transform="translate("+bt.x+"px, "+bt.y+"px)"},Tt.prototype.manipulate=function(bt){var _t=this.unrotatePoint(bt);this.state==="creating"?this.resize(bt):this.state==="move"?(this.left=this.manipulationStartLeft+(_t.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(_t.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(_t):this.state==="rotate"&&this.rotate(bt)},Tt.prototype.resize=function(bt){var _t=this.manipulationStartLeft,Yt=this.manipulationStartWidth,Mt=this.manipulationStartTop,Ut=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:_t=this.manipulationStartLeft+bt.x-this.manipulationStartX,Yt=this.manipulationStartWidth+this.manipulationStartLeft-_t;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Yt=this.manipulationStartWidth+bt.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Mt=this.manipulationStartTop+bt.y-this.manipulationStartY,Ut=this.manipulationStartHeight+this.manipulationStartTop-Mt;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Ut=this.manipulationStartHeight+bt.y-this.manipulationStartY}Yt>=0?(this.left=_t,this.width=Yt):(this.left=_t+Yt,this.width=-Yt),Ut>=0?(this.top=Mt,this.height=Ut):(this.top=Mt+Ut,this.height=-Ut),this.setSize()},Tt.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Tt.prototype.rotate=function(bt){if(Math.abs(bt.x-this.centerX)>.1){var _t=Math.sign(bt.x-this.centerX);this.rotationAngle=180*Math.atan((bt.y-this.centerY)/(bt.x-this.centerX))/Math.PI+90*_t,this.applyRotation()}},Tt.prototype.applyRotation=function(){var bt=this.container.transform.baseVal.getItem(0);bt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(bt,0)},Tt.prototype.rotatePoint=function(bt){if(this.rotationAngle===0)return bt;var _t=this.container.getCTM(),Yt=Bt.createPoint(bt.x,bt.y);return{x:(Yt=Yt.matrixTransform(_t)).x,y:Yt.y}},Tt.prototype.unrotatePoint=function(bt){if(this.rotationAngle===0)return bt;var _t=this.container.getCTM();_t=_t.inverse();var Yt=Bt.createPoint(bt.x,bt.y);return{x:(Yt=Yt.matrixTransform(_t)).x,y:Yt.y}},Tt.prototype.select=function(){le.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Tt.prototype.deselect=function(){le.prototype.deselect.call(this),this.controlBox.style.display="none"},Tt.prototype.setupControlBox=function(){this.controlBox=Bt.createGroup();var bt=Bt.createTransform();bt.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(bt),this.container.appendChild(this.controlBox),this.controlRect=Bt.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=Bt.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 rt,this.addControlGrips(),this.controlBox.style.display="none"},Tt.prototype.adjustControlBox=function(){var bt=this.controlBox.transform.baseVal.getItem(0);bt.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(bt,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()},Tt.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()},Tt.prototype.createGrip=function(){var bt=new ut;return bt.visual.transform.baseVal.appendItem(Bt.createTransform()),this.controlBox.appendChild(bt.visual),bt},Tt.prototype.positionGrips=function(){var bt=this.controlGrips.topLeft.GRIP_SIZE,_t=-bt/2,Yt=_t,Mt=(this.width+this.CB_DISTANCE)/2-bt/2,Ut=(this.height+this.CB_DISTANCE)/2-bt/2,St=this.height+this.CB_DISTANCE-bt/2,wt=this.width+this.CB_DISTANCE-bt/2;this.positionGrip(this.controlGrips.topLeft.visual,_t,Yt),this.positionGrip(this.controlGrips.topCenter.visual,Mt,Yt),this.positionGrip(this.controlGrips.topRight.visual,wt,Yt),this.positionGrip(this.controlGrips.centerLeft.visual,_t,Ut),this.positionGrip(this.controlGrips.centerRight.visual,wt,Ut),this.positionGrip(this.controlGrips.bottomLeft.visual,_t,St),this.positionGrip(this.controlGrips.bottomCenter.visual,Mt,St),this.positionGrip(this.controlGrips.bottomRight.visual,wt,St),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Mt,Yt-3*this.CB_DISTANCE)},Tt.prototype.positionGrip=function(bt,_t,Yt){var Mt=bt.transform.baseVal.getItem(0);Mt.setTranslate(_t,Yt),bt.transform.baseVal.replaceItem(Mt,0)},Tt.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Tt.prototype.showControlBox=function(){this.controlBox.style.display=""},Tt.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:ct.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:ct.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},le.prototype.getState.call(this))},Tt.prototype.restoreState=function(bt){le.prototype.restoreState.call(this,bt);var _t=bt;this.left=_t.left,this.top=_t.top,this.width=_t.width,this.height=_t.height,this.rotationAngle=_t.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(ct.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,_t.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(ct.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,_t.containerTransformMatrix))},Tt.prototype.scale=function(bt,_t){le.prototype.scale.call(this,bt,_t);var Yt=this.rotatePoint({x:this.left,y:this.top}),Mt=this.unrotatePoint({x:Yt.x*bt,y:Yt.y*_t});this.left=Mt.x,this.top=Mt.y,this.width=this.width*bt,this.height=this.height*_t,this.adjustControlBox()},Tt}(st),pt=function(le){function Tt(bt,_t,Yt){var Mt=le.call(this,bt,_t,Yt)||this;return Mt.fillColor="transparent",Mt.strokeColor="transparent",Mt.strokeWidth=0,Mt.strokeDasharray="",Mt.opacity=1,Mt.setStrokeColor=Mt.setStrokeColor.bind(Mt),Mt.setFillColor=Mt.setFillColor.bind(Mt),Mt.setStrokeWidth=Mt.setStrokeWidth.bind(Mt),Mt.setStrokeDasharray=Mt.setStrokeDasharray.bind(Mt),Mt.createVisual=Mt.createVisual.bind(Mt),Mt}return gt(Tt,le),Tt.prototype.ownsTarget=function(bt){return!(!le.prototype.ownsTarget.call(this,bt)&&bt!==this.visual)},Tt.prototype.createVisual=function(){this.visual=Bt.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)},Tt.prototype.pointerDown=function(bt,_t){le.prototype.pointerDown.call(this,bt,_t),this.state==="new"&&(this.createVisual(),this.moveVisual(bt),this._state="creating")},Tt.prototype.manipulate=function(bt){le.prototype.manipulate.call(this,bt)},Tt.prototype.resize=function(bt){le.prototype.resize.call(this,bt),this.setSize()},Tt.prototype.setSize=function(){le.prototype.setSize.call(this),Bt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Tt.prototype.pointerUp=function(bt){le.prototype.pointerUp.call(this,bt),this.setSize()},Tt.prototype.setStrokeColor=function(bt){this.strokeColor=bt,this.visual&&Bt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(bt),this.stateChanged()},Tt.prototype.setFillColor=function(bt){this.fillColor=bt,this.visual&&Bt.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Tt.prototype.setStrokeWidth=function(bt){this.strokeWidth=bt,this.visual&&Bt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Tt.prototype.setStrokeDasharray=function(bt){this.strokeDasharray=bt,this.visual&&Bt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Tt.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},le.prototype.getState.call(this))},Tt.prototype.restoreState=function(bt){var _t=bt;this.fillColor=_t.fillColor,this.strokeColor=_t.strokeColor,this.strokeWidth=_t.strokeWidth,this.strokeDasharray=_t.strokeDasharray,this.opacity=_t.opacity,this.createVisual(),le.prototype.restoreState.call(this,bt),this.setSize()},Tt.prototype.scale=function(bt,_t){le.prototype.scale.call(this,bt,_t),this.setSize()},Tt.title="Rectangle marker",Tt}(ft),Pt=function(le){function Tt(bt,_t,Yt,Mt){var Ut=le.call(this,bt,Mt||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Ut.widths=[],Ut.widthBoxes=[],Ut.widths=_t,Ut.currentWidth=Yt,Ut.setCurrentWidth=Ut.setCurrentWidth.bind(Ut),Ut}return gt(Tt,le),Tt.prototype.getUi=function(){var bt=this,_t=document.createElement("div");return _t.style.display="flex",_t.style.overflow="hidden",_t.style.flexGrow="2",this.widths.forEach(function(Yt){var Mt=document.createElement("div");Mt.style.display="flex",Mt.style.flexGrow="2",Mt.style.alignItems="center",Mt.style.justifyContent="space-between",Mt.style.padding="5px",Mt.style.borderWidth="2px",Mt.style.borderStyle="solid",Mt.style.borderColor=Yt===bt.currentWidth?bt.uiStyleSettings.toolboxAccentColor:"transparent",Mt.addEventListener("click",function(){bt.setCurrentWidth(Yt,Mt)}),_t.appendChild(Mt);var Ut=document.createElement("div");Ut.innerText=Yt.toString(),Ut.style.marginRight="5px",Mt.appendChild(Ut);var St=document.createElement("div");St.style.minHeight="20px",St.style.flexGrow="2",St.style.display="flex",St.style.alignItems="center";var wt=document.createElement("hr");wt.style.minWidth="20px",wt.style.border="0px",wt.style.borderTop=Yt+"px solid "+bt.uiStyleSettings.toolboxColor,wt.style.flexGrow="2",St.appendChild(wt),Mt.appendChild(St),bt.widthBoxes.push(Mt)}),_t},Tt.prototype.setCurrentWidth=function(bt,_t){var Yt=this;this.currentWidth=bt,this.widthBoxes.forEach(function(Mt){Mt.style.borderColor=Mt===_t?Yt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Tt}(et),Dt=function(le){function Tt(bt,_t,Yt,Mt){var Ut=le.call(this,bt,Mt||'<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 Ut.styles=[],Ut.styleBoxes=[],Ut.styles=_t,Ut.currentStyle=Yt,Ut.setCurrentStyle=Ut.setCurrentStyle.bind(Ut),Ut}return gt(Tt,le),Tt.prototype.getUi=function(){var bt=this,_t=document.createElement("div");return _t.style.display="flex",_t.style.overflow="hidden",_t.style.flexGrow="2",this.styles.forEach(function(Yt){var Mt=document.createElement("div");Mt.style.display="flex",Mt.style.alignItems="center",Mt.style.justifyContent="space-between",Mt.style.padding="5px",Mt.style.borderWidth="2px",Mt.style.borderStyle="solid",Mt.style.overflow="hidden",Mt.style.maxWidth=100/bt.styles.length-5+"%",Mt.style.borderColor=Yt===bt.currentStyle?bt.uiStyleSettings.toolboxAccentColor:"transparent",Mt.addEventListener("click",function(){bt.setCurrentStyle(Yt,Mt)}),_t.appendChild(Mt);var Ut=document.createElement("div");Ut.style.minHeight="20px",Ut.style.flexGrow="2",Ut.style.overflow="hidden";var St=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+bt.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Yt!==""?'stroke-dasharray="'+Yt+'"':"")+` />
|
|
|
</svg>`;Ut.innerHTML=St,Mt.appendChild(Ut),bt.styleBoxes.push(Mt)}),_t},Tt.prototype.setCurrentStyle=function(bt,_t){var Yt=this;this.currentStyle=bt,this.styleBoxes.forEach(function(Mt){Mt.style.borderColor=Mt===_t?Yt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Tt}(et),Zt=function(le){function Tt(bt,_t,Yt){var Mt=le.call(this,bt,_t,Yt)||this;return Mt.strokeColor=Yt.defaultColor,Mt.strokeWidth=Yt.defaultStrokeWidth,Mt.strokeDasharray=Yt.defaultStrokeDasharray,Mt.strokePanel=new tt("Line color",Yt.defaultColorSet,Yt.defaultColor),Mt.strokePanel.onColorChanged=Mt.setStrokeColor,Mt.strokeWidthPanel=new Pt("Line width",Yt.defaultStrokeWidths,Yt.defaultStrokeWidth),Mt.strokeWidthPanel.onWidthChanged=Mt.setStrokeWidth,Mt.strokeStylePanel=new Dt("Line style",Yt.defaultStrokeDasharrays,Yt.defaultStrokeDasharray),Mt.strokeStylePanel.onStyleChanged=Mt.setStrokeDasharray,Mt}return gt(Tt,le),Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var bt=le.prototype.getState.call(this);return bt.typeName=Tt.typeName,bt},Tt.typeName="FrameMarker",Tt.title="Frame marker",Tt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Tt}(pt),Ft=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"},qt=function(le){function Tt(bt,_t,Yt){var Mt=le.call(this,bt,_t,Yt)||this;return Mt.x1=0,Mt.y1=0,Mt.x2=0,Mt.y2=0,Mt.defaultLength=50,Mt.manipulationStartX=0,Mt.manipulationStartY=0,Mt.manipulationStartX1=0,Mt.manipulationStartY1=0,Mt.manipulationStartX2=0,Mt.manipulationStartY2=0,Mt.setupControlBox(),Mt}return gt(Tt,le),Tt.prototype.ownsTarget=function(bt){return!!le.prototype.ownsTarget.call(this,bt)||!(!this.grip1.ownsTarget(bt)&&!this.grip2.ownsTarget(bt))},Tt.prototype.pointerDown=function(bt,_t){le.prototype.pointerDown.call(this,bt,_t),this.manipulationStartX=bt.x,this.manipulationStartY=bt.y,this.state==="new"&&(this.x1=bt.x,this.y1=bt.y,this.x2=bt.x,this.y2=bt.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(_t)?this.activeGrip=this.grip1:this.grip2.ownsTarget(_t)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Tt.prototype.pointerUp=function(bt){var _t=this.state;le.prototype.pointerUp.call(this,bt),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(bt),this._state="select",_t==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Tt.prototype.adjustVisual=function(){},Tt.prototype.manipulate=function(bt){this.state==="creating"?this.resize(bt):this.state==="move"?(this.x1=this.manipulationStartX1+bt.x-this.manipulationStartX,this.y1=this.manipulationStartY1+bt.y-this.manipulationStartY,this.x2=this.manipulationStartX2+bt.x-this.manipulationStartX,this.y2=this.manipulationStartY2+bt.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(bt)},Tt.prototype.resize=function(bt){switch(this.activeGrip){case this.grip1:this.x1=bt.x,this.y1=bt.y;break;case this.grip2:case void 0:this.x2=bt.x,this.y2=bt.y}this.adjustVisual(),this.adjustControlBox()},Tt.prototype.select=function(){le.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Tt.prototype.deselect=function(){le.prototype.deselect.call(this),this.controlBox.style.display="none"},Tt.prototype.setupControlBox=function(){this.controlBox=Bt.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Tt.prototype.adjustControlBox=function(){this.positionGrips()},Tt.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Tt.prototype.createGrip=function(){var bt=new ut;return bt.visual.transform.baseVal.appendItem(Bt.createTransform()),this.controlBox.appendChild(bt.visual),bt},Tt.prototype.positionGrips=function(){var bt=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-bt/2,this.y1-bt/2),this.positionGrip(this.grip2.visual,this.x2-bt/2,this.y2-bt/2)},Tt.prototype.positionGrip=function(bt,_t,Yt){var Mt=bt.transform.baseVal.getItem(0);Mt.setTranslate(_t,Yt),bt.transform.baseVal.replaceItem(Mt,0)},Tt.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},le.prototype.getState.call(this))},Tt.prototype.restoreState=function(bt){le.prototype.restoreState.call(this,bt);var _t=bt;this.x1=_t.x1,this.y1=_t.y1,this.x2=_t.x2,this.y2=_t.y2},Tt.prototype.scale=function(bt,_t){le.prototype.scale.call(this,bt,_t),this.x1=this.x1*bt,this.y1=this.y1*_t,this.x2=this.x2*bt,this.y2=this.y2*_t,this.adjustVisual(),this.adjustControlBox()},Tt}(st),te=function(le){function Tt(bt,_t,Yt){var Mt=le.call(this,bt,_t,Yt)||this;return Mt.strokeColor="transparent",Mt.strokeWidth=0,Mt.strokeDasharray="",Mt.setStrokeColor=Mt.setStrokeColor.bind(Mt),Mt.setStrokeWidth=Mt.setStrokeWidth.bind(Mt),Mt.setStrokeDasharray=Mt.setStrokeDasharray.bind(Mt),Mt.strokeColor=Yt.defaultColor,Mt.strokeWidth=Yt.defaultStrokeWidth,Mt.strokeDasharray=Yt.defaultStrokeDasharray,Mt.strokePanel=new tt("Line color",Yt.defaultColorSet,Yt.defaultColor),Mt.strokePanel.onColorChanged=Mt.setStrokeColor,Mt.strokeWidthPanel=new Pt("Line width",Yt.defaultStrokeWidths,Yt.defaultStrokeWidth),Mt.strokeWidthPanel.onWidthChanged=Mt.setStrokeWidth,Mt.strokeStylePanel=new Dt("Line style",Yt.defaultStrokeDasharrays,Yt.defaultStrokeDasharray),Mt.strokeStylePanel.onStyleChanged=Mt.setStrokeDasharray,Mt}return gt(Tt,le),Tt.prototype.ownsTarget=function(bt){return!(!le.prototype.ownsTarget.call(this,bt)&&bt!==this.visual&&bt!==this.selectorLine&&bt!==this.visibleLine)},Tt.prototype.createVisual=function(){this.visual=Bt.createGroup(),this.selectorLine=Bt.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Bt.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)},Tt.prototype.pointerDown=function(bt,_t){le.prototype.pointerDown.call(this,bt,_t),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Tt.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()),Bt.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Bt.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Bt.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Tt.prototype.setStrokeColor=function(bt){this.strokeColor=bt,this.adjustVisual(),this.colorChanged(bt)},Tt.prototype.setStrokeWidth=function(bt){this.strokeWidth=bt,this.adjustVisual()},Tt.prototype.setStrokeDasharray=function(bt){this.strokeDasharray=bt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var bt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},le.prototype.getState.call(this));return bt.typeName=Tt.typeName,bt},Tt.prototype.restoreState=function(bt){le.prototype.restoreState.call(this,bt);var _t=bt;this.strokeColor=_t.strokeColor,this.strokeWidth=_t.strokeWidth,this.strokeDasharray=_t.strokeDasharray,this.createVisual(),this.adjustVisual()},Tt.typeName="LineMarker",Tt.title="Line marker",Tt.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Tt}(qt),Gt=function(le){function Tt(bt,_t,Yt,Mt){var Ut=le.call(this,bt,Mt||'<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 Ut.fonts=[],Ut.fontBoxes=[],Ut.fonts=_t,Ut.currentFont=Yt,Ut.setCurrentFont=Ut.setCurrentFont.bind(Ut),Ut}return gt(Tt,le),Tt.prototype.getUi=function(){var bt=this,_t=document.createElement("div");return _t.style.overflow="hidden",_t.style.flexGrow="2",this.fonts.forEach(function(Yt){var Mt=document.createElement("div");Mt.style.display="inline-block",Mt.style.alignItems="center",Mt.style.justifyContent="space-between",Mt.style.padding="5px",Mt.style.borderWidth="2px",Mt.style.borderStyle="solid",Mt.style.overflow="hidden",Mt.style.maxWidth=100/bt.fonts.length-5+"%",Mt.style.borderColor=Yt===bt.currentFont?bt.uiStyleSettings.toolboxAccentColor:"transparent",Mt.addEventListener("click",function(){bt.setCurrentFont(Yt,Mt)}),_t.appendChild(Mt);var Ut=document.createElement("div");Ut.style.display="flex",Ut.style.minHeight="20px",Ut.style.flexGrow="2",Ut.style.fontFamily=Yt,Ut.style.overflow="hidden";var St=document.createElement("div");St.style.whiteSpace="nowrap",St.style.overflow="hidden",St.style.textOverflow="ellipsis",St.innerHTML="The quick brown fox jumps over the lazy dog",Ut.appendChild(St),Mt.appendChild(Ut),bt.fontBoxes.push(Mt)}),_t},Tt.prototype.setCurrentFont=function(bt,_t){var Yt=this;this.currentFont=bt,this.fontBoxes.forEach(function(Mt){Mt.style.borderColor=Mt===_t?Yt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Tt}(et),ce=function(le){function Tt(bt,_t,Yt){var Mt=le.call(this,bt,_t,Yt)||this;return Mt.color="transparent",Mt.padding=5,Mt.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Mt.text=Mt.DEFAULT_TEXT,Mt.isMoved=!1,Mt.color=Yt.defaultColor,Mt.fontFamily=Yt.defaultFontFamily,Mt.defaultSize={x:100,y:30},Mt.setColor=Mt.setColor.bind(Mt),Mt.setFont=Mt.setFont.bind(Mt),Mt.renderText=Mt.renderText.bind(Mt),Mt.sizeText=Mt.sizeText.bind(Mt),Mt.textEditDivClicked=Mt.textEditDivClicked.bind(Mt),Mt.showTextEditor=Mt.showTextEditor.bind(Mt),Mt.setSize=Mt.setSize.bind(Mt),Mt.positionTextEditor=Mt.positionTextEditor.bind(Mt),Mt.colorPanel=new tt("Color",Yt.defaultColorSet,Yt.defaultColor),Mt.colorPanel.onColorChanged=Mt.setColor,Mt.fontFamilyPanel=new Gt("Font",Yt.defaultFontFamilies,Yt.defaultFontFamily),Mt.fontFamilyPanel.onFontChanged=Mt.setFont,Mt}return gt(Tt,le),Tt.prototype.ownsTarget=function(bt){if(le.prototype.ownsTarget.call(this,bt)||bt===this.visual||bt===this.textElement||bt===this.bgRectangle)return!0;var _t=!1;return this.textElement.childNodes.forEach(function(Yt){Yt===bt&&(_t=!0)}),_t},Tt.prototype.createVisual=function(){this.visual=Bt.createGroup(),this.bgRectangle=Bt.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Bt.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Bt.createTransform()),this.textElement.transform.baseVal.appendItem(Bt.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Tt.prototype.pointerDown=function(bt,_t){le.prototype.pointerDown.call(this,bt,_t),this.isMoved=!1,this.pointerDownPoint=bt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(bt),this._state="creating")},Tt.prototype.renderText=function(){var bt=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(_t){bt.textElement.appendChild(Bt.createTSpan(_t.trim()===""?" ":_t.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Tt.prototype.getTextScale=function(){var bt=this.textElement.getBBox(),_t=1;if(bt.width>0&&bt.height>0){var Yt=(1*this.width-this.width*this.padding*2/100)/bt.width,Mt=(1*this.height-this.height*this.padding*2/100)/bt.height;_t=Math.min(Yt,Mt)}return _t},Tt.prototype.getTextPosition=function(bt){var _t=this.textElement.getBBox(),Yt=0,Mt=0;return _t.width>0&&_t.height>0&&(Yt=(this.width-_t.width*bt)/2,Mt=this.height/2-_t.height*bt/2),{x:Yt,y:Mt}},Tt.prototype.sizeText=function(){var bt=this.textElement.getBBox(),_t=this.getTextScale(),Yt=this.getTextPosition(_t);Yt.y-=bt.y*_t,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Yt.x+"px, "+Yt.y+"px) scale("+_t+", "+_t+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Yt.x,Yt.y),this.textElement.transform.baseVal.getItem(1).setScale(_t,_t))},Tt.prototype.manipulate=function(bt){le.prototype.manipulate.call(this,bt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(bt.x-this.pointerDownPoint.x)>5||Math.abs(bt.y-this.pointerDownPoint.y)>5)},Tt.prototype.resize=function(bt){le.prototype.resize.call(this,bt),this.isMoved=!0,this.setSize(),this.sizeText()},Tt.prototype.setSize=function(){le.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Bt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Bt.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Tt.prototype.pointerUp=function(bt){var _t=this.state;_t==="creating"&&(this._suppressMarkerCreateEvent=!0),le.prototype.pointerUp.call(this,bt),this.setSize(),(_t==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Tt.prototype.showTextEditor=function(){var bt=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(_t){_t.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var _t=Number.parseFloat(bt.textEditor.style.fontSize);bt.textEditor.clientWidth>=Number.parseInt(bt.textEditor.style.maxWidth)&&_t>.9;)_t-=.1,bt.textEditor.style.fontSize=Math.max(_t,.9)+"em"}),this.textEditor.addEventListener("keyup",function(_t){_t.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(_t){if(_t.clipboardData){var Yt=_t.clipboardData.getData("text"),Mt=window.getSelection();if(!Mt.rangeCount)return!1;Mt.deleteFromDocument(),Mt.getRangeAt(0).insertNode(document.createTextNode(Yt)),_t.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){bt.textEditDivClicked(bt.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Tt.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var bt=this.getTextScale(),_t=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Yt=this.textElement.getBBox(),Mt={x:Yt.width*bt,y:Yt.height*bt};_t.x-=Mt.x/2,_t.y-=Mt.y/2,this.textEditor.style.top=_t.y+"px",this.textEditor.style.left=_t.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-_t.x+"px",this.textEditor.style.fontSize=Math.max(16*bt,12)+"px",this.textElement.style.display="none"}},Tt.prototype.textEditDivClicked=function(bt){this.text=bt.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Tt.prototype.select=function(){le.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Tt.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),le.prototype.deselect.call(this)},Tt.prototype.dblClick=function(bt,_t){le.prototype.dblClick.call(this,bt,_t),this.showTextEditor()},Tt.prototype.setColor=function(bt){this.textElement&&Bt.setAttributes(this.textElement,[["fill",bt]]),this.color=bt,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(bt)},Tt.prototype.setFont=function(bt){this.textElement&&Bt.setAttributes(this.textElement,[["font-family",bt]]),this.fontFamily=bt,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Tt.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Tt.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var bt=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},le.prototype.getState.call(this));return bt.typeName=Tt.typeName,bt},Tt.prototype.restoreState=function(bt){var _t=bt;this.color=_t.color,this.fontFamily=_t.fontFamily,this.padding=_t.padding,this.text=_t.text,this.createVisual(),le.prototype.restoreState.call(this,bt),this.setSize()},Tt.prototype.scale=function(bt,_t){le.prototype.scale.call(this,bt,_t),this.setSize(),this.sizeText(),this.positionTextEditor()},Tt.typeName="TextMarker",Tt.title="Text marker",Tt.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>',Tt}(ft),ae=function(le){function Tt(bt,_t,Yt){var Mt=le.call(this,bt,_t,Yt)||this;return Mt.color="transparent",Mt.lineWidth=3,Mt.drawing=!1,Mt.pixelRatio=1,Mt.color=Yt.defaultColor,Mt.lineWidth=Yt.defaultStrokeWidth,Mt.pixelRatio=Yt.freehandPixelRatio,Mt.setColor=Mt.setColor.bind(Mt),Mt.addCanvas=Mt.addCanvas.bind(Mt),Mt.finishCreation=Mt.finishCreation.bind(Mt),Mt.setLineWidth=Mt.setLineWidth.bind(Mt),Mt.colorPanel=new tt("Color",Yt.defaultColorSet,Yt.defaultColor),Mt.colorPanel.onColorChanged=Mt.setColor,Mt.lineWidthPanel=new Pt("Line width",Yt.defaultStrokeWidths,Yt.defaultStrokeWidth),Mt.lineWidthPanel.onWidthChanged=Mt.setLineWidth,Mt}return gt(Tt,le),Tt.prototype.ownsTarget=function(bt){return!(!le.prototype.ownsTarget.call(this,bt)&&bt!==this.visual&&bt!==this.drawingImage)},Tt.prototype.createVisual=function(){this.visual=Bt.createGroup(),this.drawingImage=Bt.createImage(),this.visual.appendChild(this.drawingImage);var bt=Bt.createTransform();this.visual.transform.baseVal.appendItem(bt),this.addMarkerVisualToContainer(this.visual)},Tt.prototype.pointerDown=function(bt,_t){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(bt.x,bt.y),this.drawing=!0):le.prototype.pointerDown.call(this,bt,_t)},Tt.prototype.manipulate=function(bt){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(bt.x,bt.y),this.canvasContext.stroke()):le.prototype.manipulate.call(this,bt)},Tt.prototype.resize=function(bt){le.prototype.resize.call(this,bt),Bt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Bt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Tt.prototype.pointerUp=function(bt){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):le.prototype.pointerUp.call(this,bt)},Tt.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)},Tt.prototype.select=function(){this.state==="creating"&&this.finishCreation(),le.prototype.select.call(this)},Tt.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),le.prototype.deselect.call(this)},Tt.prototype.finishCreation=function(){for(var bt=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),_t=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Yt=_t[0],Mt=_t[1],Ut=_t[2],St=_t[3],wt=!1,jt=0;jt<this.canvasElement.height;jt++)for(var Wt=0;Wt<this.canvasElement.width;Wt++)bt.data[jt*this.canvasElement.width*4+4*Wt+3]>0&&(wt=!0,jt<Mt&&(Mt=jt),Wt<Yt&&(Yt=Wt),jt>St&&(St=jt),Wt>Ut&&(Ut=Wt));if(wt){this.left=Yt/this.pixelRatio,this.top=Mt/this.pixelRatio,this.width=(Ut-Yt)/this.pixelRatio,this.height=(St-Mt)/this.pixelRatio;var Vt=document.createElement("canvas");Vt.width=Ut-Yt,Vt.height=St-Mt,Vt.getContext("2d").putImageData(this.canvasContext.getImageData(Yt,Mt,Ut-Yt,St-Mt),0,0),this.drawingImgUrl=Vt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Tt.prototype.setDrawingImage=function(){Bt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Bt.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Tt.prototype.setColor=function(bt){this.color=bt,this.colorChanged(bt)},Tt.prototype.setLineWidth=function(bt){this.lineWidth=bt},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var bt=Object.assign({drawingImgUrl:this.drawingImgUrl},le.prototype.getState.call(this));return bt.typeName=Tt.typeName,bt},Tt.prototype.restoreState=function(bt){this.createVisual(),le.prototype.restoreState.call(this,bt),this.drawingImgUrl=bt.drawingImgUrl,this.setDrawingImage()},Tt.prototype.scale=function(bt,_t){le.prototype.scale.call(this,bt,_t),this.setDrawingImage()},Tt.typeName="FreehandMarker",Tt.title="Freehand marker",Tt.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>',Tt}(ft),xe=function(le){function Tt(bt,_t,Yt){var Mt=le.call(this,bt,Yt||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Mt.typeBoxes=[],Mt.currentType=_t,Mt.setCurrentType=Mt.setCurrentType.bind(Mt),Mt}return gt(Tt,le),Tt.prototype.getUi=function(){var bt=this,_t=document.createElement("div");_t.style.display="flex",_t.style.overflow="hidden",_t.style.flexGrow="2";for(var Yt=function(St){var wt="both";switch(St){case 0:wt="both";break;case 1:wt="start";break;case 2:wt="end";break;case 3:wt="none"}var jt=document.createElement("div");if(jt.style.display="flex",jt.style.flexGrow="2",jt.style.alignItems="center",jt.style.justifyContent="space-between",jt.style.padding="5px",jt.style.borderWidth="2px",jt.style.borderStyle="solid",jt.style.borderColor=wt===Mt.currentType?Mt.uiStyleSettings.toolboxAccentColor:"transparent",jt.addEventListener("click",function(){bt.setCurrentType(wt,jt)}),_t.appendChild(jt),wt==="both"||wt==="start"){var Wt=document.createElement("div");Wt.style.display="flex",Wt.style.alignItems="center",Wt.style.minHeight="20px",Wt.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="`+(Mt.uiStyleSettings!==void 0?Mt.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Wt.style.marginLeft="5px",jt.appendChild(Wt)}var Vt=document.createElement("div");Vt.style.display="flex",Vt.style.alignItems="center",Vt.style.minHeight="20px",Vt.style.flexGrow="2";var oe=document.createElement("hr");if(oe.style.minWidth="20px",oe.style.border="0px",oe.style.borderTop="3px solid "+(Mt.uiStyleSettings!==void 0?Mt.uiStyleSettings.toolboxColor:"#eeeeee"),oe.style.flexGrow="2",Vt.appendChild(oe),jt.appendChild(Vt),wt==="both"||wt==="end"){var de=document.createElement("div");de.style.display="flex",de.style.alignItems="center",de.style.minHeight="20px",de.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="`+(Mt.uiStyleSettings!==void 0?Mt.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,de.style.marginRight="5px",jt.appendChild(de)}Mt.typeBoxes.push(jt)},Mt=this,Ut=0;Ut<4;Ut++)Yt(Ut);return _t},Tt.prototype.setCurrentType=function(bt,_t){var Yt=this;this.currentType=bt,this.typeBoxes.forEach(function(Mt){Mt.style.borderColor=Mt===_t?Yt.uiStyleSettings!==void 0?Yt.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Tt}(et),ye=function(le){function Tt(bt,_t,Yt){var Mt=le.call(this,bt,_t,Yt)||this;return Mt.arrowType="end",Mt.arrowBaseHeight=10,Mt.arrowBaseWidth=10,Mt.getArrowPoints=Mt.getArrowPoints.bind(Mt),Mt.setArrowType=Mt.setArrowType.bind(Mt),Mt.arrowTypePanel=new xe("Arrow type","end"),Mt.arrowTypePanel.onArrowTypeChanged=Mt.setArrowType,Mt}return gt(Tt,le),Tt.prototype.ownsTarget=function(bt){return!(!le.prototype.ownsTarget.call(this,bt)&&bt!==this.arrow1&&bt!==this.arrow2)},Tt.prototype.getArrowPoints=function(bt,_t){var Yt=this.arrowBaseWidth+2*this.strokeWidth,Mt=this.arrowBaseHeight+2*this.strokeWidth;return bt-Yt/2+","+(_t+Mt/2)+" "+bt+","+(_t-Mt/2)+" "+(bt+Yt/2)+","+(_t+Mt/2)},Tt.prototype.createTips=function(){this.arrow1=Bt.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Bt.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Bt.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Bt.createTransform()),this.visual.appendChild(this.arrow2)},Tt.prototype.pointerDown=function(bt,_t){le.prototype.pointerDown.call(this,bt,_t),this.state==="creating"&&this.createTips()},Tt.prototype.adjustVisual=function(){if(le.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",Bt.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Bt.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var bt=0;Math.abs(this.x1-this.x2)>.1&&(bt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var _t=this.arrow1.transform.baseVal.getItem(0);_t.setRotate(bt,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(_t,0);var Yt=this.arrow2.transform.baseVal.getItem(0);Yt.setRotate(bt+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Yt,0)}},Tt.prototype.setArrowType=function(bt){this.arrowType=bt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var bt=Object.assign({arrowType:this.arrowType},le.prototype.getState.call(this));return bt.typeName=Tt.typeName,bt},Tt.prototype.restoreState=function(bt){le.prototype.restoreState.call(this,bt);var _t=bt;this.arrowType=_t.arrowType,this.createTips(),this.adjustVisual()},Tt.typeName="ArrowMarker",Tt.title="Arrow marker",Tt.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Tt}(te),Te=function(le){function Tt(bt,_t,Yt){var Mt=le.call(this,bt,_t,Yt)||this;return Mt.fillColor=Yt.defaultFillColor,Mt.strokeWidth=0,Mt.fillPanel=new tt("Color",Yt.defaultColorSet,Yt.defaultFillColor),Mt.fillPanel.onColorChanged=Mt.setFillColor,Mt}return gt(Tt,le),Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var bt=le.prototype.getState.call(this);return bt.typeName=Tt.typeName,bt},Tt.typeName="CoverMarker",Tt.title="Cover marker",Tt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Tt}(pt),me=function(le){function Tt(bt,_t,Yt,Mt){var Ut=le.call(this,bt,Mt||'<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 Ut.opacities=[],Ut.opacityBoxes=[],Ut.opacities=_t,Ut.currentOpacity=Yt,Ut.setCurrentOpacity=Ut.setCurrentOpacity.bind(Ut),Ut}return gt(Tt,le),Tt.prototype.getUi=function(){var bt=this,_t=document.createElement("div");return _t.style.display="flex",_t.style.overflow="hidden",_t.style.flexGrow="2",_t.style.justifyContent="space-between",this.opacities.forEach(function(Yt){var Mt=document.createElement("div");Mt.style.display="flex",Mt.style.alignItems="center",Mt.style.justifyContent="center",Mt.style.padding="5px",Mt.style.borderWidth="2px",Mt.style.borderStyle="solid",Mt.style.borderColor=Yt===bt.currentOpacity?bt.uiStyleSettings.toolboxAccentColor:"transparent",Mt.addEventListener("click",function(){bt.setCurrentOpacity(Yt,Mt)}),_t.appendChild(Mt);var Ut=document.createElement("div");Ut.innerText=100*Yt+"%",Mt.appendChild(Ut),bt.opacityBoxes.push(Mt)}),_t},Tt.prototype.setCurrentOpacity=function(bt,_t){var Yt=this;this.currentOpacity=bt,this.opacityBoxes.forEach(function(Mt){Mt.style.borderColor=Mt===_t?Yt.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Tt}(et),He=function(le){function Tt(bt,_t,Yt){var Mt=le.call(this,bt,_t,Yt)||this;return Mt.setOpacity=Mt.setOpacity.bind(Mt),Mt.fillColor=Yt.defaultHighlightColor,Mt.strokeWidth=0,Mt.opacity=Yt.defaultHighlightOpacity,Mt.fillPanel=new tt("Color",Yt.defaultColorSet,Mt.fillColor),Mt.fillPanel.onColorChanged=Mt.setFillColor,Mt.opacityPanel=new me("Opacity",Yt.defaultOpacitySteps,Mt.opacity),Mt.opacityPanel.onOpacityChanged=Mt.setOpacity,Mt}return gt(Tt,le),Tt.prototype.setOpacity=function(bt){this.opacity=bt,this.visual&&Bt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var bt=le.prototype.getState.call(this);return bt.typeName=Tt.typeName,bt},Tt.typeName="HighlightMarker",Tt.title="Highlight marker",Tt.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>',Tt}(Te),fe='<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>',ie=function(le){function Tt(bt,_t,Yt){var Mt=le.call(this,bt,_t,Yt)||this;return Mt.bgColor="transparent",Mt.tipPosition={x:0,y:0},Mt.tipBase1Position={x:0,y:0},Mt.tipBase2Position={x:0,y:0},Mt.tipMoving=!1,Mt.color=Yt.defaultStrokeColor,Mt.bgColor=Yt.defaultFillColor,Mt.fontFamily=Yt.defaultFontFamily,Mt.defaultSize={x:100,y:30},Mt.setBgColor=Mt.setBgColor.bind(Mt),Mt.getTipPoints=Mt.getTipPoints.bind(Mt),Mt.positionTip=Mt.positionTip.bind(Mt),Mt.setTipPoints=Mt.setTipPoints.bind(Mt),Mt.colorPanel=new tt("Text color",Yt.defaultColorSet,Mt.color,fe),Mt.colorPanel.onColorChanged=Mt.setColor,Mt.bgColorPanel=new tt("Fill color",Yt.defaultColorSet,Mt.bgColor,$t),Mt.bgColorPanel.onColorChanged=Mt.setBgColor,Mt.fontFamilyPanel=new Gt("Font",Yt.defaultFontFamilies,Yt.defaultFontFamily),Mt.fontFamilyPanel.onFontChanged=Mt.setFont,Mt.tipGrip=new ut,Mt.tipGrip.visual.transform.baseVal.appendItem(Bt.createTransform()),Mt.controlBox.appendChild(Mt.tipGrip.visual),Mt}return gt(Tt,le),Tt.prototype.ownsTarget=function(bt){return le.prototype.ownsTarget.call(this,bt)||this.tipGrip.ownsTarget(bt)||this.tip===bt},Tt.prototype.createTip=function(){Bt.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Bt.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Tt.prototype.pointerDown=function(bt,_t){this.state==="new"&&le.prototype.pointerDown.call(this,bt,_t),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(_t)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):le.prototype.pointerDown.call(this,bt,_t)},Tt.prototype.pointerUp=function(bt){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,le.prototype.pointerUp.call(this,bt);else{var _t=this.state==="creating";le.prototype.pointerUp.call(this,bt),this.setTipPoints(_t),this.positionTip()}},Tt.prototype.manipulate=function(bt){if(this.tipMoving){var _t=this.unrotatePoint(bt);this.tipPosition={x:_t.x-this.manipulationStartLeft,y:_t.y-this.manipulationStartTop},this.positionTip()}else le.prototype.manipulate.call(this,bt)},Tt.prototype.setBgColor=function(bt){this.bgRectangle&&this.tip&&(Bt.setAttributes(this.bgRectangle,[["fill",bt]]),Bt.setAttributes(this.tip,[["fill",bt]])),this.bgColor=bt,this.fillColorChanged(bt)},Tt.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},Tt.prototype.setTipPoints=function(bt){bt===void 0&&(bt=!1);var _t=Math.min(this.height/2,15),Yt=this.height/5;bt&&(this.tipPosition={x:_t+Yt/2,y:this.height+20});var Mt=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Mt<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Yt=this.width/5,_t=Math.min(this.width/2,15),this.tipBase1Position={x:_t,y:0},this.tipBase2Position={x:_t+Yt,y:0}):(this.tipBase1Position={x:0,y:_t},this.tipBase2Position={x:0,y:_t+Yt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Mt<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Yt=this.width/5,_t=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-_t-Yt,y:0},this.tipBase2Position={x:this.width-_t,y:0}):(this.tipBase1Position={x:this.width,y:_t},this.tipBase2Position={x:this.width,y:_t+Yt}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Mt<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Yt=this.width/5,_t=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-_t-Yt,y:this.height},this.tipBase2Position={x:this.width-_t,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-_t-Yt},this.tipBase2Position={x:this.width,y:this.height-_t}):Mt<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Yt=this.width/5,_t=Math.min(this.width/2,15),this.tipBase1Position={x:_t,y:this.height},this.tipBase2Position={x:_t+Yt,y:this.height}):(this.tipBase1Position={x:0,y:this.height-_t},this.tipBase2Position={x:0,y:this.height-_t-Yt})},Tt.prototype.resize=function(bt){le.prototype.resize.call(this,bt),this.positionTip()},Tt.prototype.positionTip=function(){Bt.setAttributes(this.tip,[["points",this.getTipPoints()]]);var bt=this.tipGrip.visual.transform.baseVal.getItem(0);bt.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(bt,0)},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Tt.prototype.select=function(){this.positionTip(),le.prototype.select.call(this)},Tt.prototype.getState=function(){var bt=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},le.prototype.getState.call(this));return bt.typeName=Tt.typeName,bt},Tt.prototype.restoreState=function(bt){var _t=bt;this.bgColor=_t.bgColor,this.tipPosition=_t.tipPosition,le.prototype.restoreState.call(this,bt),this.createTip(),this.setTipPoints()},Tt.prototype.scale=function(bt,_t){le.prototype.scale.call(this,bt,_t),this.tipPosition={x:this.tipPosition.x*bt,y:this.tipPosition.y*_t},this.positionTip()},Tt.typeName="CalloutMarker",Tt.title="Callout marker",Tt.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>',Tt}(ce),ue=function(le){function Tt(bt,_t,Yt){var Mt=le.call(this,bt,_t,Yt)||this;return Mt.fillColor="transparent",Mt.strokeColor="transparent",Mt.strokeWidth=0,Mt.strokeDasharray="",Mt.opacity=1,Mt.strokeColor=Yt.defaultColor,Mt.strokeWidth=Yt.defaultStrokeWidth,Mt.strokeDasharray=Yt.defaultStrokeDasharray,Mt.fillColor=Yt.defaultFillColor,Mt.setStrokeColor=Mt.setStrokeColor.bind(Mt),Mt.setFillColor=Mt.setFillColor.bind(Mt),Mt.setStrokeWidth=Mt.setStrokeWidth.bind(Mt),Mt.setStrokeDasharray=Mt.setStrokeDasharray.bind(Mt),Mt.setOpacity=Mt.setOpacity.bind(Mt),Mt.createVisual=Mt.createVisual.bind(Mt),Mt.strokePanel=new tt("Line color",kt(Yt.defaultColorSet,["transparent"]),Yt.defaultColor),Mt.strokePanel.onColorChanged=Mt.setStrokeColor,Mt.fillPanel=new tt("Fill color",kt(Yt.defaultColorSet,["transparent"]),Mt.fillColor,$t),Mt.fillPanel.onColorChanged=Mt.setFillColor,Mt.strokeWidthPanel=new Pt("Line width",Yt.defaultStrokeWidths,Yt.defaultStrokeWidth),Mt.strokeWidthPanel.onWidthChanged=Mt.setStrokeWidth,Mt.strokeStylePanel=new Dt("Line style",Yt.defaultStrokeDasharrays,Yt.defaultStrokeDasharray),Mt.strokeStylePanel.onStyleChanged=Mt.setStrokeDasharray,Mt.opacityPanel=new me("Opacity",Yt.defaultOpacitySteps,Mt.opacity),Mt.opacityPanel.onOpacityChanged=Mt.setOpacity,Mt}return gt(Tt,le),Tt.prototype.ownsTarget=function(bt){return!(!le.prototype.ownsTarget.call(this,bt)&&bt!==this.visual)},Tt.prototype.createVisual=function(){this.visual=Bt.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)},Tt.prototype.pointerDown=function(bt,_t){le.prototype.pointerDown.call(this,bt,_t),this.state==="new"&&(this.createVisual(),this.moveVisual(bt),this._state="creating")},Tt.prototype.manipulate=function(bt){le.prototype.manipulate.call(this,bt)},Tt.prototype.resize=function(bt){le.prototype.resize.call(this,bt),this.setSize()},Tt.prototype.setSize=function(){le.prototype.setSize.call(this),Bt.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Tt.prototype.pointerUp=function(bt){le.prototype.pointerUp.call(this,bt),this.setSize()},Tt.prototype.setStrokeColor=function(bt){this.strokeColor=bt,this.visual&&Bt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(bt),this.stateChanged()},Tt.prototype.setFillColor=function(bt){this.fillColor=bt,this.visual&&Bt.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(bt),this.stateChanged()},Tt.prototype.setStrokeWidth=function(bt){this.strokeWidth=bt,this.visual&&Bt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Tt.prototype.setStrokeDasharray=function(bt){this.strokeDasharray=bt,this.visual&&Bt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Tt.prototype.setOpacity=function(bt){this.opacity=bt,this.visual&&Bt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var bt=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},le.prototype.getState.call(this));return bt.typeName=Tt.typeName,bt},Tt.prototype.restoreState=function(bt){var _t=bt;this.fillColor=_t.fillColor,this.strokeColor=_t.strokeColor,this.strokeWidth=_t.strokeWidth,this.strokeDasharray=_t.strokeDasharray,this.opacity=_t.opacity,this.createVisual(),le.prototype.restoreState.call(this,bt),this.setSize()},Tt.prototype.scale=function(bt,_t){le.prototype.scale.call(this,bt,_t),this.setSize()},Tt.typeName="EllipseMarker",Tt.title="Ellipse marker",Tt.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>',Tt}(ft),ge=function(le){function Tt(bt,_t,Yt){return le.call(this,bt,_t,Yt)||this}return gt(Tt,le),Object.defineProperty(Tt.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Tt.prototype.ownsTarget=function(bt){return!(!le.prototype.ownsTarget.call(this,bt)&&bt!==this.tip1&&bt!==this.tip2)},Tt.prototype.createTips=function(){this.tip1=Bt.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(Bt.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Bt.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(Bt.createTransform()),this.visual.appendChild(this.tip2)},Tt.prototype.pointerDown=function(bt,_t){le.prototype.pointerDown.call(this,bt,_t),this.state==="creating"&&this.createTips()},Tt.prototype.adjustVisual=function(){if(le.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Bt.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()]]),Bt.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 bt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),_t=this.tip1.transform.baseVal.getItem(0);_t.setRotate(bt,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(_t,0);var Yt=this.tip2.transform.baseVal.getItem(0);Yt.setRotate(bt+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Yt,0)}},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var bt=le.prototype.getState.call(this);return bt.typeName=Tt.typeName,bt},Tt.prototype.restoreState=function(bt){le.prototype.restoreState.call(this,bt),this.createTips(),this.adjustVisual()},Tt.typeName="MeasurementMarker",Tt.title="Measurement marker",Tt.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>',Tt}(te),he=function(le){function Tt(bt,_t,Yt){var Mt=le.call(this,bt,_t,Yt)||this;return Mt.strokePanel.colors=Yt.defaultColorSet,Mt.fillColor="transparent",Mt}return gt(Tt,le),Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var bt=le.prototype.getState.call(this);return bt.typeName=Tt.typeName,bt},Tt.typeName="EllipseFrameMarker",Tt.title="Ellipse frame marker",Tt.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>',Tt}(ue),De=function(){function le(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(le.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),le.prototype.addUndoStep=function(Tt){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Tt)||(this.undoStack.push(Tt),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Tt)&&this.redoStack.splice(0,this.redoStack.length))},le.prototype.replaceLastUndoStep=function(Tt){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Tt)},le.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},le.prototype.undo=function(){if(this.undoStack.length>1){var Tt=this.undoStack.pop();return Tt!==void 0&&this.redoStack.push(Tt),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},le.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},le}(),Ne=function(le){function Tt(bt,_t,Yt){var Mt=le.call(this,bt,_t,Yt)||this;return Mt.strokeColor="transparent",Mt.strokeWidth=0,Mt.strokeDasharray="",Mt.curveX=0,Mt.curveY=0,Mt.manipulationStartCurveX=0,Mt.manipulationStartCurveY=0,Mt.setStrokeColor=Mt.setStrokeColor.bind(Mt),Mt.setStrokeWidth=Mt.setStrokeWidth.bind(Mt),Mt.setStrokeDasharray=Mt.setStrokeDasharray.bind(Mt),Mt.positionGrips=Mt.positionGrips.bind(Mt),Mt.addControlGrips=Mt.addControlGrips.bind(Mt),Mt.adjustVisual=Mt.adjustVisual.bind(Mt),Mt.setupControlBox=Mt.setupControlBox.bind(Mt),Mt.resize=Mt.resize.bind(Mt),Mt.strokeColor=Yt.defaultColor,Mt.strokeWidth=Yt.defaultStrokeWidth,Mt.strokeDasharray=Yt.defaultStrokeDasharray,Mt.strokePanel=new tt("Line color",Yt.defaultColorSet,Yt.defaultColor),Mt.strokePanel.onColorChanged=Mt.setStrokeColor,Mt.strokeWidthPanel=new Pt("Line width",Yt.defaultStrokeWidths,Yt.defaultStrokeWidth),Mt.strokeWidthPanel.onWidthChanged=Mt.setStrokeWidth,Mt.strokeStylePanel=new Dt("Line style",Yt.defaultStrokeDasharrays,Yt.defaultStrokeDasharray),Mt.strokeStylePanel.onStyleChanged=Mt.setStrokeDasharray,Mt}return gt(Tt,le),Tt.prototype.ownsTarget=function(bt){return!(!le.prototype.ownsTarget.call(this,bt)&&bt!==this.visual&&bt!==this.selectorCurve&&bt!==this.visibleCurve&&!this.curveGrip.ownsTarget(bt))},Tt.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Tt.prototype.createVisual=function(){this.visual=Bt.createGroup(),this.selectorCurve=Bt.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Bt.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)},Tt.prototype.pointerDown=function(bt,_t){le.prototype.pointerDown.call(this,bt,_t),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=bt.x,this.curveY=bt.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(_t)&&(this.activeGrip=this.curveGrip,this._state="resize")},Tt.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Bt.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Bt.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Bt.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Tt.prototype.setupControlBox=function(){le.prototype.setupControlBox.call(this),this.curveControlLine1=Bt.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Bt.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)},Tt.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,le.prototype.addControlGrips.call(this)},Tt.prototype.positionGrips=function(){le.prototype.positionGrips.call(this);var bt=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-bt/2,this.curveY-bt/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()))},Tt.prototype.manipulate=function(bt){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+bt.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+bt.y-this.manipulationStartY),le.prototype.manipulate.call(this,bt)},Tt.prototype.resize=function(bt){this.activeGrip===this.curveGrip&&(this.curveX=bt.x,this.curveY=bt.y),le.prototype.resize.call(this,bt),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Tt.prototype.setStrokeColor=function(bt){this.strokeColor=bt,this.adjustVisual(),this.colorChanged(bt)},Tt.prototype.setStrokeWidth=function(bt){this.strokeWidth=bt,this.adjustVisual()},Tt.prototype.setStrokeDasharray=function(bt){this.strokeDasharray=bt,this.adjustVisual()},Tt.prototype.scale=function(bt,_t){this.curveX=this.curveX*bt,this.curveY=this.curveY*_t,le.prototype.scale.call(this,bt,_t)},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var bt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},le.prototype.getState.call(this));return bt.typeName=Tt.typeName,bt},Tt.prototype.restoreState=function(bt){le.prototype.restoreState.call(this,bt);var _t=bt;this.strokeColor=_t.strokeColor,this.strokeWidth=_t.strokeWidth,this.strokeDasharray=_t.strokeDasharray,this.curveX=_t.curveX,this.curveY=_t.curveY,this.createVisual(),this.adjustVisual()},Tt.typeName="CurveMarker",Tt.title="Curve marker",Tt.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>',Tt}(qt),$e=function(le){function Tt(bt,_t,Yt){var Mt=le.call(this,bt,_t,Yt)||this;return Mt.fillColor="transparent",Mt.strokeColor="transparent",Mt.strokeWidth=0,Mt.strokeDasharray="",Mt.textColor="transparent",Mt.fontSize="1rem",Mt.isMoved=!1,Mt.captionText="Caption",Mt.PADDING=5,Mt.captionBoxWidth=0,Mt.captionBoxHeight=0,Mt.strokeColor=Yt.defaultColor,Mt.strokeWidth=Yt.defaultStrokeWidth,Mt.strokeDasharray=Yt.defaultStrokeDasharray,Mt.fillColor=Yt.defaultFillColor,Mt.textColor=Yt.defaultStrokeColor,Mt.fontFamily=Yt.defaultFontFamily,Mt.fontSize=Yt.defaultCaptionFontSize,Mt.captionText=Yt.defaultCaptionText,Mt.setStrokeColor=Mt.setStrokeColor.bind(Mt),Mt.setFillColor=Mt.setFillColor.bind(Mt),Mt.setStrokeWidth=Mt.setStrokeWidth.bind(Mt),Mt.setStrokeDasharray=Mt.setStrokeDasharray.bind(Mt),Mt.createVisual=Mt.createVisual.bind(Mt),Mt.sizeCaption=Mt.sizeCaption.bind(Mt),Mt.setCaptionText=Mt.setCaptionText.bind(Mt),Mt.showTextEditor=Mt.showTextEditor.bind(Mt),Mt.positionTextEditor=Mt.positionTextEditor.bind(Mt),Mt.finishTextEditing=Mt.finishTextEditing.bind(Mt),Mt.setFont=Mt.setFont.bind(Mt),Mt.setTextColor=Mt.setTextColor.bind(Mt),Mt.strokePanel=new tt("Line color",kt(Yt.defaultColorSet,["transparent"]),Mt.strokeColor),Mt.strokePanel.onColorChanged=Mt.setStrokeColor,Mt.fillPanel=new tt("Fill color",kt(Yt.defaultColorSet,["transparent"]),Mt.fillColor,$t),Mt.fillPanel.onColorChanged=Mt.setFillColor,Mt.strokeWidthPanel=new Pt("Line width",Yt.defaultStrokeWidths,Yt.defaultStrokeWidth),Mt.strokeWidthPanel.onWidthChanged=Mt.setStrokeWidth,Mt.strokeStylePanel=new Dt("Line style",Yt.defaultStrokeDasharrays,Yt.defaultStrokeDasharray),Mt.strokeStylePanel.onStyleChanged=Mt.setStrokeDasharray,Mt.fontFamilyPanel=new Gt("Font",Yt.defaultFontFamilies,Yt.defaultFontFamily),Mt.fontFamilyPanel.onFontChanged=Mt.setFont,Mt.textColorPanel=new tt("Text color",Yt.defaultColorSet,Mt.textColor,fe),Mt.textColorPanel.onColorChanged=Mt.setTextColor,Mt}return gt(Tt,le),Tt.prototype.ownsTarget=function(bt){return!(!le.prototype.ownsTarget.call(this,bt)&&bt!==this.visual&&bt!==this.frame&&bt!==this.captionBg&&bt!==this.captionElement)},Tt.prototype.createVisual=function(){this.visual=Bt.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Bt.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Bt.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=Bt.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()},Tt.prototype.setCaptionText=function(bt){this.captionText=bt,this.captionElement.textContent=this.captionText,this.sizeCaption()},Tt.prototype.pointerDown=function(bt,_t){le.prototype.pointerDown.call(this,bt,_t),this.isMoved=!1,this.pointerDownPoint=bt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(bt),this._state="creating")},Tt.prototype.manipulate=function(bt){le.prototype.manipulate.call(this,bt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(bt.x-this.pointerDownPoint.x)>5||Math.abs(bt.y-this.pointerDownPoint.y)>5)},Tt.prototype.resize=function(bt){le.prototype.resize.call(this,bt),this.setSize()},Tt.prototype.sizeCaption=function(){var bt=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=bt.width+2*this.PADDING,this.captionBoxHeight=bt.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Bt.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')"]]),Bt.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')"]])},Tt.prototype.showTextEditor=function(){var bt=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(_t){_t.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(_t){_t.key==="Enter"&&bt.finishTextEditing(bt.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(_t){_t.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){bt.finishTextEditing(bt.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){bt.finishTextEditing(bt.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Tt.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"))},Tt.prototype.finishTextEditing=function(bt){this.setCaptionText(bt.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Tt.prototype.setFont=function(bt){this.captionElement&&Bt.setAttributes(this.captionElement,[["font-family",bt]]),this.fontFamily=bt,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Tt.prototype.setTextColor=function(bt){this.captionElement&&Bt.setAttributes(this.captionElement,[["fill",bt]]),this.textColor=bt,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Tt.prototype.setSize=function(){le.prototype.setSize.call(this),Bt.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Tt.prototype.pointerUp=function(bt){le.prototype.pointerUp.call(this,bt),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Tt.prototype.dblClick=function(bt,_t){le.prototype.dblClick.call(this,bt,_t),this.showTextEditor()},Tt.prototype.setStrokeColor=function(bt){this.strokeColor=bt,this.frame&&Bt.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(bt),this.stateChanged()},Tt.prototype.setFillColor=function(bt){this.fillColor=bt,this.captionBg&&Bt.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(bt),this.stateChanged()},Tt.prototype.setStrokeWidth=function(bt){this.strokeWidth=bt,this.frame&&Bt.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Tt.prototype.setStrokeDasharray=function(bt){this.strokeDasharray=bt,this.frame&&Bt.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Tt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Tt.prototype.getState=function(){var bt=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},le.prototype.getState.call(this));return bt.typeName=this.typeName,bt},Tt.prototype.restoreState=function(bt){var _t=bt;this.fillColor=_t.fillColor,this.strokeColor=_t.strokeColor,this.strokeWidth=_t.strokeWidth,this.strokeDasharray=_t.strokeDasharray,this.textColor=_t.textColor,this.fontFamily=_t.fontFamily,this.captionText=_t.captionText,this.fontSize=_t.fontSize,this.createVisual(),le.prototype.restoreState.call(this,bt),this.setSize()},Tt.prototype.scale=function(bt,_t){le.prototype.scale.call(this,bt,_t),this.setSize()},Tt.typeName="CaptionFrameMarker",Tt.title="Caption frame marker",Tt.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>',Tt}(ft),Re=function(){function le(Tt,bt){bt===void 0&&(bt=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Tt,this.cancelable=bt}return Object.defineProperty(le.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),le.prototype.preventDefault=function(){this._defaultPrevented=!0},le}(),tn=function(le){function Tt(bt,_t,Yt){var Mt=le.call(this,bt,!1)||this;return Mt.dataUrl=_t,Mt.state=Yt,Mt}return gt(Tt,le),Tt}(Re),Me=function(le){function Tt(bt,_t,Yt){Yt===void 0&&(Yt=!1);var Mt=le.call(this,bt,Yt)||this;return Mt.marker=_t,Mt}return gt(Tt,le),Tt}(Re),Oe=function(){function le(){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 le.prototype.addEventListener=function(Tt,bt){this[Tt].push(bt)},le.prototype.removeEventListener=function(Tt,bt){var _t=this[Tt].indexOf(bt);_t>-1&&this[Tt].splice(_t,1)},le}(),Fe=function(){function le(Tt){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ft,this._isOpen=!1,this.undoRedoManager=new De,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 Oe,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=le.instanceCounter++,this.styles=new Ct(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Tt,this.targetRoot=document.body,this.width=Tt.clientWidth,this.height=Tt.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(le.prototype,"ALL_MARKER_TYPES",{get:function(){return[Zt,ae,ye,ce,he,ue,He,ie,ge,Te,te,Ne,$e]},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Zt,ae,ye,ce,ue,He,ie]},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Zt,ae,ye,ce,He]},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Tt){var bt=this;this._availableMarkerTypes.splice(0),Tt.forEach(function(_t){if(typeof _t=="string"){var Yt=bt.ALL_MARKER_TYPES.find(function(Mt){return Mt.typeName===_t});Yt!==void 0&&bt._availableMarkerTypes.push(Yt)}else bt._availableMarkerTypes.push(_t)})},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Tt){this._zoomLevel=Tt,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(le.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),le.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),xt.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},le.prototype.show=function(){var Tt=this;this.styles.styleSheetRoot===void 0&&Rt.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Rt.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(bt){return bt(new Re(Tt))})},le.prototype.render=function(){return Xt(this,void 0,void 0,function(){var Tt;return Qt(this,function(bt){switch(bt.label){case 0:return this.setCurrentMarker(),(Tt=new Ot).naturalSize=this.renderAtNaturalSize,Tt.imageType=this.renderImageType,Tt.imageQuality=this.renderImageQuality,Tt.markersOnly=this.renderMarkersOnly,Tt.width=this.renderWidth,Tt.height=this.renderHeight,[4,Tt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return bt.sent(),[4,Tt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,bt.sent()]}})})},le.prototype.close=function(Tt){var bt=this;if(Tt===void 0&&(Tt=!1),this.isOpen){var _t=!1;Tt||this.eventListeners.beforeclose.forEach(function(Yt){var Mt=new Re(bt,!0);Yt(Mt),Mt.defaultPrevented&&(_t=!0)}),_t||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(Yt){return Yt(new Re(bt))}),this.detachEvents(),this._isOpen=!1)}},le.prototype.addMarkersToToolbar=function(){for(var Tt,bt=[],_t=0;_t<arguments.length;_t++)bt[_t]=arguments[_t];(Tt=this._availableMarkerTypes).push.apply(Tt,bt)},le.prototype.addRenderEventListener=function(Tt){this.addEventListener("render",function(bt){Tt(bt.dataUrl,bt.state)})},le.prototype.removeRenderEventListener=function(Tt){},le.prototype.addCloseEventListener=function(Tt){this.addEventListener("close",function(){Tt()})},le.prototype.removeCloseEventListener=function(Tt){},le.prototype.setupResizeObserver=function(){var Tt=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Tt.resize(Tt.target.clientWidth,Tt.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Tt.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},le.prototype.onPopupTargetResize=function(){var Tt=1*this.target.clientWidth/this.target.clientHeight,bt=this.editorCanvas.clientWidth/Tt>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Tt:this.editorCanvas.clientWidth,_t=bt<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Tt;this.resize(bt,_t)},le.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},le.prototype.resize=function(Tt,bt){this._isResizing=!0;var _t=Tt/this.imageWidth,Yt=bt/this.imageHeight;this.imageWidth=Math.round(Tt),this.imageHeight=Math.round(bt),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(_t,Yt),this._isResizing=!1},le.prototype.scaleMarkers=function(Tt,bt){var _t,Yt=this;this._currentMarker&&this._currentMarker instanceof ce?this._currentMarker.scale(Tt,bt):(_t=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Mt){Mt!==Yt._currentMarker&&Mt.scale(Tt,bt)}),_t!==void 0&&this.setCurrentMarker(_t)},le.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"},le.prototype.setTopLeft=function(){var Tt=this.editingTarget.getBoundingClientRect(),bt=this.editorCanvas.getBoundingClientRect();this.left=Tt.left-bt.left,this.top=Tt.top-bt.top},le.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)},le.prototype.addDefs=function(){for(var Tt,bt=[],_t=0;_t<arguments.length;_t++)bt[_t]=arguments[_t];this.defs=Bt.createDefs(),this.addDefsToImage(),(Tt=this.defs).append.apply(Tt,bt)},le.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},le.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)},le.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},le.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},le.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)},le.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},le.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)},le.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 Tt=document.createElement("a");Tt.href="https://markerjs.com/",Tt.target="_blank",Tt.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>',Tt.title="Powered by marker.js",Tt.style.display="grid",Tt.style.alignItems="center",Tt.style.justifyItems="center",Tt.style.padding="3px",Tt.style.width="20px",Tt.style.height="20px",this.logoUI.appendChild(Tt),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},le.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")},le.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"},le.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},le.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 Tt=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=Tt+"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 It(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 mt(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},le.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},le.prototype.removeMarker=function(Tt){this.markerImage.removeChild(Tt.container),this.markers.indexOf(Tt)>-1&&this.markers.splice(this.markers.indexOf(Tt),1),Tt.dispose()},le.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())},le.prototype.toolbarButtonClicked=function(Tt,bt){if(Tt==="marker"&&bt!==void 0)this.createNewMarker(bt);else if(Tt==="action")switch(bt){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()}},le.prototype.deleteSelectedMarker=function(){var Tt=this;if(this._currentMarker!==void 0){var bt=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Yt){var Mt=new Me(Tt,Tt._currentMarker,!0);Yt(Mt),Mt.defaultPrevented&&(bt=!0)}),!bt){var _t=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(Yt){return Yt(new Me(Tt,_t))})}}},le.prototype.clear=function(){var Tt=this,bt=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Ut){var St=new Me(Tt,void 0,!0);Ut(St),St.defaultPrevented&&(bt=!0)}),!bt)){this.setCurrentMarker();for(var _t=function(Ut){var St=Yt.markers[Ut];Yt.setCurrentMarker(Yt.markers[Ut]),Yt._currentMarker.dispose(),Yt.markerImage.removeChild(Yt._currentMarker.container),Yt.markers.splice(Yt.markers.indexOf(Yt._currentMarker),1),Yt.eventListeners.markerdelete.forEach(function(wt){return wt(new Me(Tt,St))})},Yt=this,Mt=this.markers.length-1;Mt>=0;Mt--)_t(Mt);this.addUndoStep()}},Object.defineProperty(le.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),le.prototype.showNotesEditor=function(){var Tt;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=(Tt=this._currentMarker.notes)!==null&&Tt!==void 0?Tt:"",this.overlayContainer.appendChild(this.notesArea))},le.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)},le.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},le.prototype.addUndoStep=function(){var Tt=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var bt=this.getState(),_t=this.undoRedoManager.getLastUndoStep();if(!_t||_t.width===bt.width&&_t.height===bt.height){var Yt=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(bt),Yt<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Mt){return Mt(new Re(Tt))})}else this.undoRedoManager.replaceLastUndoStep(bt),this.eventListeners.statechange.forEach(function(Mt){return Mt(new Re(Tt))})}},le.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},le.prototype.undoStep=function(){var Tt=this,bt=this.undoRedoManager.undo();bt!==void 0&&(this.restoreState(bt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(_t){return _t(new Re(Tt))}))},le.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},le.prototype.redoStep=function(){var Tt=this,bt=this.undoRedoManager.redo();bt!==void 0&&(this.restoreState(bt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(_t){return _t(new Re(Tt))}))},le.prototype.stepZoom=function(){var Tt=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Tt<this.zoomSteps.length-1?this.zoomSteps[Tt+1]:this.zoomSteps[0]},le.prototype.panTo=function(Tt){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Tt.x,top:this.prevPanPoint.y-Tt.y}),this.prevPanPoint=Tt},le.prototype.startRenderAndClose=function(){return Xt(this,void 0,void 0,function(){var Tt,bt,_t=this;return Qt(this,function(Yt){switch(Yt.label){case 0:return[4,this.render()];case 1:return Tt=Yt.sent(),bt=this.getState(),this.eventListeners.render.forEach(function(Mt){return Mt(new tn(_t,Tt,bt))}),this.close(!0),[2]}})})},le.prototype.getState=function(Tt){Tt===!0&&this.setCurrentMarker();var bt={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(_t){return bt.markers.push(_t.getState())}),bt},le.prototype.restoreState=function(Tt){var bt=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Tt.markers.forEach(function(_t){var Yt=bt._availableMarkerTypes.find(function(Ut){return Ut.typeName===_t.typeName});if(Yt!==void 0){var Mt=bt.addNewMarker(Yt);Mt.restoreState(_t),bt.markers.push(Mt)}}),Tt.width&&Tt.height&&(Tt.width!==this.imageWidth||Tt.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Tt.width,this.imageHeight/Tt.height),this.eventListeners.restorestate.forEach(function(_t){return _t(new Re(bt))})},le.prototype.addNewMarker=function(Tt){var bt=Bt.createGroup();return this.markerImage.appendChild(bt),new Tt(bt,this.overlayContainer,this.settings)},le.prototype.createNewMarker=function(Tt){var bt,_t=this;(bt=typeof Tt=="string"?this._availableMarkerTypes.find(function(Yt){return Yt.typeName===Tt}):Tt)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(bt),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(bt.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Yt){return Yt(new Me(_t,_t._currentMarker))}))},le.prototype.markerCreated=function(Tt){var bt=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Tt),this.setCurrentMarker(Tt),Tt instanceof ae&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(ae):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(_t){return _t(new Me(bt,bt._currentMarker))})},le.prototype.colorChanged=function(Tt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Tt,this.settings.defaultStrokeColor=Tt)},le.prototype.fillColorChanged=function(Tt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Tt)},le.prototype.markerStateChanged=function(Tt){var bt=this;this.eventListeners.markerchange.forEach(function(_t){return _t(new Me(bt,Tt))})},le.prototype.setCurrentMarker=function(Tt){var bt=this;this._currentMarker!==Tt&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(_t){return _t(new Me(bt,bt._currentMarker))})),this._currentMarker=Tt,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(_t){return _t(new Me(bt,bt._currentMarker))}))},le.prototype.onPointerDown=function(Tt){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Tt.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var bt=this.markers.find(function(_t){return _t.ownsTarget(Tt.target)});bt!==void 0?(this.setCurrentMarker(bt),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Tt.clientX,Tt.clientY),Tt.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Tt.clientX,y:Tt.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Tt.clientX,Tt.clientY))},le.prototype.onDblClick=function(Tt){if(this._isFocused||this.focus(),this.mode==="select"){var bt=this.markers.find(function(_t){return _t.ownsTarget(Tt.target)});bt!==void 0&&bt!==this._currentMarker&&this.setCurrentMarker(bt),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Tt.clientX,Tt.clientY),Tt.target):this.setCurrentMarker()}},le.prototype.onPointerMove=function(Tt){this.touchPoints!==1&&Tt.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Tt.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Tt.clientX,Tt.clientY)):this.zoomLevel>1&&this.panTo({x:Tt.clientX,y:Tt.clientY}))},le.prototype.onPointerUp=function(Tt){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Tt.clientX,Tt.clientY)),this.isDragging=!1,this.addUndoStep()},le.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},le.prototype.onKeyUp=function(Tt){this._currentMarker===void 0||this.notesArea!==void 0||Tt.key!=="Delete"&&Tt.key!=="Backspace"||this.deleteSelectedMarker()},le.prototype.clientToLocalCoordinates=function(Tt,bt){var _t=this.markerImage.getBoundingClientRect();return{x:(Tt-_t.left)/this.zoomLevel,y:(bt-_t.top)/this.zoomLevel}},le.prototype.onWindowResize=function(){this.positionUI()},le.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Tt=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Tt+"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()},le.prototype.addLicenseKey=function(Tt){xt.addKey(Tt)},le.prototype.addEventListener=function(Tt,bt){this.eventListeners.addEventListener(Tt,bt)},le.prototype.removeEventListener=function(Tt,bt){this.eventListeners.removeEventListener(Tt,bt)},le.prototype.renderState=function(Tt){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Tt),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(le.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),le.prototype.focus=function(){var Tt=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(bt){return bt(new Re(Tt))}))},le.prototype.blur=function(){var Tt=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(bt){return bt(new Re(Tt))}))},le.instanceCounter=0,le}()},17115:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{ZP:function(){return xt}});var zt=Kt(33606),gt=Kt(59301),Xt=Kt(47273),Qt=0,kt=(0,Xt.Z)();function Bt(){var Ot;return kt?(Ot=Qt,Qt+=1):Ot="TEST_OR_SSR",Ot}function xt(Ot){var Rt=gt.useState(),Ct=(0,zt.Z)(Rt,2),Lt=Ct[0],At=Ct[1];return gt.useEffect(function(){At("rc_select_".concat(Bt()))},[]),Ot||Lt}},77861:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Ac:function(){return de},Xo:function(){return Gn},Wx:function(){return pi},ZP:function(){return Sn},lk:function(){return ft}});var zt=Kt(92413),gt=Kt(26407),Xt=Kt(400),Qt=Kt(33708),kt=Kt(33606),Bt=Kt(37061),xt=Kt(39559),Ot=Kt(18929),Rt=Kt(48736),Ct=Kt(59301),Lt=Kt(92310),At=Kt.n(Lt),It=Kt(34280),mt=Kt(49658),et=Kt(10228),tt=Kt(8654),st=function(Le){var cn=Le.className,wn=Le.customizeIcon,Nn=Le.customizeIconProps,Hn=Le.onMouseDown,Pe=Le.onClick,We=Le.children,pn;return typeof wn=="function"?pn=wn(Nn):pn=wn,Ct.createElement("span",{className:cn,onMouseDown:function(Ke){Ke.preventDefault(),Hn&&Hn(Ke)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Pe,"aria-hidden":!0},pn!==void 0?pn:Ct.createElement("span",{className:At()(cn.split(/\s+/).map(function(On){return"".concat(On,"-icon")}))},We))},rt=st;function ut(ze,Le,cn,wn,Nn){var Hn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Pe=arguments.length>6?arguments[6]:void 0,We=arguments.length>7?arguments[7]:void 0,pn=Ct.useMemo(function(){if((0,xt.Z)(wn)==="object")return wn.clearIcon;if(Nn)return Nn},[wn,Nn]),On=Ct.useMemo(function(){return!!(!Hn&&wn&&(cn.length||Pe)&&!(We==="combobox"&&Pe===""))},[wn,Hn,cn.length,Pe,We]);return{allowClear:On,clearIcon:Ct.createElement(rt,{className:"".concat(ze,"-clear"),onMouseDown:Le,customizeIcon:pn},"\xD7")}}var ct=Ct.createContext(null);function ft(){return Ct.useContext(ct)}function pt(){var ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Le=Ct.useState(!1),cn=(0,kt.Z)(Le,2),wn=cn[0],Nn=cn[1],Hn=Ct.useRef(null),Pe=function(){window.clearTimeout(Hn.current)};Ct.useEffect(function(){return Pe},[]);var We=function(On,Ke){Pe(),Hn.current=window.setTimeout(function(){Nn(On),Ke&&Ke()},ze)};return[wn,We,Pe]}function Pt(){var ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Le=Ct.useRef(null),cn=Ct.useRef(null);Ct.useEffect(function(){return function(){window.clearTimeout(cn.current)}},[]);function wn(Nn){(Nn||Le.current===null)&&(Le.current=Nn),window.clearTimeout(cn.current),cn.current=window.setTimeout(function(){Le.current=null},ze)}return[function(){return Le.current},wn]}function Dt(ze,Le,cn,wn){var Nn=Ct.useRef(null);Nn.current={open:Le,triggerOpen:cn,customizedTrigger:wn},Ct.useEffect(function(){function Hn(Pe){var We;if(!((We=Nn.current)!==null&&We!==void 0&&We.customizedTrigger)){var pn=Pe.target;pn.shadowRoot&&Pe.composed&&(pn=Pe.composedPath()[0]||pn),Nn.current.open&&ze().filter(function(On){return On}).every(function(On){return!On.contains(pn)&&On!==pn})&&Nn.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Hn),function(){return window.removeEventListener("mousedown",Hn)}},[])}var Zt=Kt(26112),Ft=Kt(11780),qt=function(Le,cn){var wn,Nn,Hn=Le.prefixCls,Pe=Le.id,We=Le.inputElement,pn=Le.disabled,On=Le.tabIndex,Ke=Le.autoFocus,nn=Le.autoComplete,_e=Le.editable,en=Le.activeDescendantId,un=Le.value,sn=Le.maxLength,xn=Le.onKeyDown,gn=Le.onMouseDown,Ln=Le.onChange,Mn=Le.onPaste,Qn=Le.onCompositionStart,ln=Le.onCompositionEnd,ti=Le.open,vi=Le.attrs,oi=We||Ct.createElement("input",null),dn=oi,Rn=dn.ref,Xn=dn.props,hi=Xn.onKeyDown,ei=Xn.onChange,fi=Xn.onMouseDown,Ai=Xn.onCompositionStart,gi=Xn.onCompositionEnd,ii=Xn.style;return(0,Rt.Kp)(!("maxLength"in oi.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),oi=Ct.cloneElement(oi,(0,Qt.Z)((0,Qt.Z)((0,Qt.Z)({type:"search"},Xn),{},{id:Pe,ref:(0,tt.sQ)(cn,Rn),disabled:pn,tabIndex:On,autoComplete:nn||"off",autoFocus:Ke,className:At()("".concat(Hn,"-selection-search-input"),(wn=oi)===null||wn===void 0||(Nn=wn.props)===null||Nn===void 0?void 0:Nn.className),role:"combobox","aria-label":"Search","aria-expanded":ti||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Pe,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Pe,"_list"),"aria-activedescendant":ti?en:void 0},vi),{},{value:_e?un:"",maxLength:sn,readOnly:!_e,unselectable:_e?null:"on",style:(0,Qt.Z)((0,Qt.Z)({},ii),{},{opacity:_e?null:0}),onKeyDown:function(bn){xn(bn),hi&&hi(bn)},onMouseDown:function(bn){gn(bn),fi&&fi(bn)},onChange:function(bn){Ln(bn),ei&&ei(bn)},onCompositionStart:function(bn){Qn(bn),Ai&&Ai(bn)},onCompositionEnd:function(bn){ln(bn),gi&&gi(bn)},onPaste:Mn})),oi},te=Ct.forwardRef(qt);te.displayName="Input";var Gt=te;function ce(ze){return Array.isArray(ze)?ze:ze!==void 0?[ze]:[]}var ae=typeof window!="undefined"&&window.document&&window.document.documentElement,xe=ae;function ye(ze){return ze!=null}function Te(ze){return!ze&&ze!==0}function me(ze){return["string","number"].includes((0,xt.Z)(ze))}function He(ze){var Le=void 0;return ze&&(me(ze.title)?Le=ze.title.toString():me(ze.label)&&(Le=ze.label.toString())),Le}function fe(ze,Le){xe?Ct.useLayoutEffect(ze,Le):Ct.useEffect(ze,Le)}function $t(ze){var Le;return(Le=ze.key)!==null&&Le!==void 0?Le:ze.value}var ie=function(Le){Le.preventDefault(),Le.stopPropagation()},ue=function(Le){var cn=Le.id,wn=Le.prefixCls,Nn=Le.values,Hn=Le.open,Pe=Le.searchValue,We=Le.autoClearSearchValue,pn=Le.inputRef,On=Le.placeholder,Ke=Le.disabled,nn=Le.mode,_e=Le.showSearch,en=Le.autoFocus,un=Le.autoComplete,sn=Le.activeDescendantId,xn=Le.tabIndex,gn=Le.removeIcon,Ln=Le.maxTagCount,Mn=Le.maxTagTextLength,Qn=Le.maxTagPlaceholder,ln=Qn===void 0?function(ji){return"+ ".concat(ji.length," ...")}:Qn,ti=Le.tagRender,vi=Le.onToggleOpen,oi=Le.onRemove,dn=Le.onInputChange,Rn=Le.onInputPaste,Xn=Le.onInputKeyDown,hi=Le.onInputMouseDown,ei=Le.onInputCompositionStart,fi=Le.onInputCompositionEnd,Ai=Ct.useRef(null),gi=(0,Ct.useState)(0),ii=(0,kt.Z)(gi,2),Li=ii[0],bn=ii[1],er=(0,Ct.useState)(!1),En=(0,kt.Z)(er,2),Oi=En[0],wr=En[1],_i="".concat(wn,"-selection"),kr=Hn||nn==="multiple"&&We===!1||nn==="tags"?Pe:"",gr=nn==="tags"||nn==="multiple"&&We===!1||_e&&(Hn||Oi);fe(function(){bn(Ai.current.scrollWidth)},[kr]);function wi(ji,yr,Ki,rr,Tr){return Ct.createElement("span",{className:At()("".concat(_i,"-item"),(0,Xt.Z)({},"".concat(_i,"-item-disabled"),Ki)),title:He(ji)},Ct.createElement("span",{className:"".concat(_i,"-item-content")},yr),rr&&Ct.createElement(rt,{className:"".concat(_i,"-item-remove"),onMouseDown:ie,onClick:Tr,customizeIcon:gn},"\xD7"))}function yi(ji,yr,Ki,rr,Tr){var Ar=function(Di){ie(Di),vi(!Hn)};return Ct.createElement("span",{onMouseDown:Ar},ti({label:yr,value:ji,disabled:Ki,closable:rr,onClose:Tr}))}function Zi(ji){var yr=ji.disabled,Ki=ji.label,rr=ji.value,Tr=!Ke&&!yr,Ar=Ki;if(typeof Mn=="number"&&(typeof Ki=="string"||typeof Ki=="number")){var Bi=String(Ar);Bi.length>Mn&&(Ar="".concat(Bi.slice(0,Mn),"..."))}var Di=function(lr){lr&&lr.stopPropagation(),oi(ji)};return typeof ti=="function"?yi(rr,Ar,yr,Tr,Di):wi(ji,Ar,yr,Tr,Di)}function Xi(ji){var yr=typeof ln=="function"?ln(ji):ln;return wi({title:yr},yr,!1)}var qn=Ct.createElement("div",{className:"".concat(_i,"-search"),style:{width:Li},onFocus:function(){wr(!0)},onBlur:function(){wr(!1)}},Ct.createElement(Gt,{ref:pn,open:Hn,prefixCls:wn,id:cn,inputElement:null,disabled:Ke,autoFocus:en,autoComplete:un,editable:gr,activeDescendantId:sn,value:kr,onKeyDown:Xn,onMouseDown:hi,onChange:dn,onPaste:Rn,onCompositionStart:ei,onCompositionEnd:fi,tabIndex:xn,attrs:(0,Zt.Z)(Le,!0)}),Ct.createElement("span",{ref:Ai,className:"".concat(_i,"-search-mirror"),"aria-hidden":!0},kr,"\xA0")),Se=Ct.createElement(Ft.Z,{prefixCls:"".concat(_i,"-overflow"),data:Nn,renderItem:Zi,renderRest:Xi,suffix:qn,itemKey:$t,maxCount:Ln});return Ct.createElement(Ct.Fragment,null,Se,!Nn.length&&!kr&&Ct.createElement("span",{className:"".concat(_i,"-placeholder")},On))},ge=ue,he=function(Le){var cn=Le.inputElement,wn=Le.prefixCls,Nn=Le.id,Hn=Le.inputRef,Pe=Le.disabled,We=Le.autoFocus,pn=Le.autoComplete,On=Le.activeDescendantId,Ke=Le.mode,nn=Le.open,_e=Le.values,en=Le.placeholder,un=Le.tabIndex,sn=Le.showSearch,xn=Le.searchValue,gn=Le.activeValue,Ln=Le.maxLength,Mn=Le.onInputKeyDown,Qn=Le.onInputMouseDown,ln=Le.onInputChange,ti=Le.onInputPaste,vi=Le.onInputCompositionStart,oi=Le.onInputCompositionEnd,dn=Le.title,Rn=Ct.useState(!1),Xn=(0,kt.Z)(Rn,2),hi=Xn[0],ei=Xn[1],fi=Ke==="combobox",Ai=fi||sn,gi=_e[0],ii=xn||"";fi&&gn&&!hi&&(ii=gn),Ct.useEffect(function(){fi&&ei(!1)},[fi,gn]);var Li=Ke!=="combobox"&&!nn&&!sn?!1:!!ii,bn=dn===void 0?He(gi):dn,er=function(){if(gi)return null;var Oi=Li?{visibility:"hidden"}:void 0;return Ct.createElement("span",{className:"".concat(wn,"-selection-placeholder"),style:Oi},en)};return Ct.createElement(Ct.Fragment,null,Ct.createElement("span",{className:"".concat(wn,"-selection-search")},Ct.createElement(Gt,{ref:Hn,prefixCls:wn,id:Nn,open:nn,inputElement:cn,disabled:Pe,autoFocus:We,autoComplete:pn,editable:Ai,activeDescendantId:On,value:ii,onKeyDown:Mn,onMouseDown:Qn,onChange:function(Oi){ei(!0),ln(Oi)},onPaste:ti,onCompositionStart:vi,onCompositionEnd:oi,tabIndex:un,attrs:(0,Zt.Z)(Le,!0),maxLength:fi?Ln:void 0})),!fi&&gi?Ct.createElement("span",{className:"".concat(wn,"-selection-item"),title:bn,style:Li?{visibility:"hidden"}:void 0},gi.label):null,er())},De=he;function Ne(ze){return![et.Z.ESC,et.Z.SHIFT,et.Z.BACKSPACE,et.Z.TAB,et.Z.WIN_KEY,et.Z.ALT,et.Z.META,et.Z.WIN_KEY_RIGHT,et.Z.CTRL,et.Z.SEMICOLON,et.Z.EQUALS,et.Z.CAPS_LOCK,et.Z.CONTEXT_MENU,et.Z.F1,et.Z.F2,et.Z.F3,et.Z.F4,et.Z.F5,et.Z.F6,et.Z.F7,et.Z.F8,et.Z.F9,et.Z.F10,et.Z.F11,et.Z.F12].includes(ze)}var $e=function(Le,cn){var wn=(0,Ct.useRef)(null),Nn=(0,Ct.useRef)(!1),Hn=Le.prefixCls,Pe=Le.open,We=Le.mode,pn=Le.showSearch,On=Le.tokenWithEnter,Ke=Le.autoClearSearchValue,nn=Le.onSearch,_e=Le.onSearchSubmit,en=Le.onToggleOpen,un=Le.onInputKeyDown,sn=Le.domRef;Ct.useImperativeHandle(cn,function(){return{focus:function(){wn.current.focus()},blur:function(){wn.current.blur()}}});var xn=Pt(0),gn=(0,kt.Z)(xn,2),Ln=gn[0],Mn=gn[1],Qn=function(ii){var Li=ii.which;(Li===et.Z.UP||Li===et.Z.DOWN)&&ii.preventDefault(),un&&un(ii),Li===et.Z.ENTER&&We==="tags"&&!Nn.current&&!Pe&&(_e==null||_e(ii.target.value)),Ne(Li)&&en(!0)},ln=function(){Mn(!0)},ti=(0,Ct.useRef)(null),vi=function(ii){nn(ii,!0,Nn.current)!==!1&&en(!0)},oi=function(){Nn.current=!0},dn=function(ii){Nn.current=!1,We!=="combobox"&&vi(ii.target.value)},Rn=function(ii){var Li=ii.target.value;if(On&&ti.current&&/[\r\n]/.test(ti.current)){var bn=ti.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Li=Li.replace(bn,ti.current)}ti.current=null,vi(Li)},Xn=function(ii){var Li=ii.clipboardData,bn=Li.getData("text");ti.current=bn},hi=function(ii){var Li=ii.target;if(Li!==wn.current){var bn=document.body.style.msTouchAction!==void 0;bn?setTimeout(function(){wn.current.focus()}):wn.current.focus()}},ei=function(ii){var Li=Ln();ii.target!==wn.current&&!Li&&We!=="combobox"&&ii.preventDefault(),(We!=="combobox"&&(!pn||!Li)||!Pe)&&(Pe&&Ke!==!1&&nn("",!0,!1),en())},fi={inputRef:wn,onInputKeyDown:Qn,onInputMouseDown:ln,onInputChange:Rn,onInputPaste:Xn,onInputCompositionStart:oi,onInputCompositionEnd:dn},Ai=We==="multiple"||We==="tags"?Ct.createElement(ge,(0,zt.Z)({},Le,fi)):Ct.createElement(De,(0,zt.Z)({},Le,fi));return Ct.createElement("div",{ref:sn,className:"".concat(Hn,"-selector"),onClick:hi,onMouseDown:ei},Ai)},Re=Ct.forwardRef($e);Re.displayName="Selector";var tn=Re,Me=Kt(35593),Oe=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Fe=function(Le){var cn=Le===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:cn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:cn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:cn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:cn,adjustY:1},htmlRegion:"scroll"}}},le=function(Le,cn){var wn=Le.prefixCls,Nn=Le.disabled,Hn=Le.visible,Pe=Le.children,We=Le.popupElement,pn=Le.animation,On=Le.transitionName,Ke=Le.dropdownStyle,nn=Le.dropdownClassName,_e=Le.direction,en=_e===void 0?"ltr":_e,un=Le.placement,sn=Le.builtinPlacements,xn=Le.dropdownMatchSelectWidth,gn=Le.dropdownRender,Ln=Le.dropdownAlign,Mn=Le.getPopupContainer,Qn=Le.empty,ln=Le.getTriggerDOMNode,ti=Le.onPopupVisibleChange,vi=Le.onPopupMouseEnter,oi=(0,Bt.Z)(Le,Oe),dn="".concat(wn,"-dropdown"),Rn=We;gn&&(Rn=gn(We));var Xn=Ct.useMemo(function(){return sn||Fe(xn)},[sn,xn]),hi=pn?"".concat(dn,"-").concat(pn):On,ei=typeof xn=="number",fi=Ct.useMemo(function(){return ei?null:xn===!1?"minWidth":"width"},[xn,ei]),Ai=Ke;ei&&(Ai=(0,Qt.Z)((0,Qt.Z)({},Ai),{},{width:xn}));var gi=Ct.useRef(null);return Ct.useImperativeHandle(cn,function(){return{getPopupElement:function(){return gi.current}}}),Ct.createElement(Me.Z,(0,zt.Z)({},oi,{showAction:ti?["click"]:[],hideAction:ti?["click"]:[],popupPlacement:un||(en==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Xn,prefixCls:dn,popupTransitionName:hi,popup:Ct.createElement("div",{ref:gi,onMouseEnter:vi},Rn),stretch:fi,popupAlign:Ln,popupVisible:Hn,getPopupContainer:Mn,popupClassName:At()(nn,(0,Xt.Z)({},"".concat(dn,"-empty"),Qn)),popupStyle:Ai,getTriggerDOMNode:ln,onPopupVisibleChange:ti}),Pe)},Tt=Ct.forwardRef(le);Tt.displayName="SelectTrigger";var bt=Tt,_t=Kt(34589);function Yt(ze,Le){var cn=ze.key,wn;return"value"in ze&&(wn=ze.value),cn!=null?cn:wn!==void 0?wn:"rc-index-key-".concat(Le)}function Mt(ze,Le){var cn=ze||{},wn=cn.label,Nn=cn.value,Hn=cn.options,Pe=cn.groupLabel,We=wn||(Le?"children":"label");return{label:We,value:Nn||"value",options:Hn||"options",groupLabel:Pe||We}}function Ut(ze){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},cn=Le.fieldNames,wn=Le.childrenAsData,Nn=[],Hn=Mt(cn,!1),Pe=Hn.label,We=Hn.value,pn=Hn.options,On=Hn.groupLabel;function Ke(nn,_e){nn.forEach(function(en){if(_e||!(pn in en)){var un=en[We];Nn.push({key:Yt(en,Nn.length),groupOption:_e,data:en,label:en[Pe],value:un})}else{var sn=en[On];sn===void 0&&wn&&(sn=en.label),Nn.push({key:Yt(en,Nn.length),group:!0,data:en,label:sn}),Ke(en[pn],!0)}})}return Ke(ze,!1),Nn}function St(ze){var Le=(0,Qt.Z)({},ze);return"props"in Le||Object.defineProperty(Le,"props",{get:function(){return(0,Rt.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Le}}),Le}function wt(ze,Le){if(!Le||!Le.length)return null;var cn=!1;function wn(Hn,Pe){var We=(0,_t.Z)(Pe),pn=We[0],On=We.slice(1);if(!pn)return[Hn];var Ke=Hn.split(pn);return cn=cn||Ke.length>1,Ke.reduce(function(nn,_e){return[].concat((0,gt.Z)(nn),(0,gt.Z)(wn(_e,On)))},[]).filter(function(nn){return nn})}var Nn=wn(ze,Le);return cn?Nn:null}var jt=["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"],Wt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Vt(ze){return ze==="tags"||ze==="multiple"}var oe=Ct.forwardRef(function(ze,Le){var cn,wn,Nn=ze.id,Hn=ze.prefixCls,Pe=ze.className,We=ze.showSearch,pn=ze.tagRender,On=ze.direction,Ke=ze.omitDomProps,nn=ze.displayValues,_e=ze.onDisplayValuesChange,en=ze.emptyOptions,un=ze.notFoundContent,sn=un===void 0?"Not Found":un,xn=ze.onClear,gn=ze.mode,Ln=ze.disabled,Mn=ze.loading,Qn=ze.getInputElement,ln=ze.getRawInputElement,ti=ze.open,vi=ze.defaultOpen,oi=ze.onDropdownVisibleChange,dn=ze.activeValue,Rn=ze.onActiveValueChange,Xn=ze.activeDescendantId,hi=ze.searchValue,ei=ze.autoClearSearchValue,fi=ze.onSearch,Ai=ze.onSearchSplit,gi=ze.tokenSeparators,ii=ze.allowClear,Li=ze.suffixIcon,bn=ze.clearIcon,er=ze.OptionList,En=ze.animation,Oi=ze.transitionName,wr=ze.dropdownStyle,_i=ze.dropdownClassName,kr=ze.dropdownMatchSelectWidth,gr=ze.dropdownRender,wi=ze.dropdownAlign,yi=ze.placement,Zi=ze.builtinPlacements,Xi=ze.getPopupContainer,qn=ze.showAction,Se=qn===void 0?[]:qn,ji=ze.onFocus,yr=ze.onBlur,Ki=ze.onKeyUp,rr=ze.onKeyDown,Tr=ze.onMouseDown,Ar=(0,Bt.Z)(ze,jt),Bi=Vt(gn),Di=(We!==void 0?We:Bi)||gn==="combobox",Mi=(0,Qt.Z)({},Ar);Wt.forEach(function(Cr){delete Mi[Cr]}),Ke==null||Ke.forEach(function(Cr){delete Mi[Cr]});var lr=Ct.useState(!1),ar=(0,kt.Z)(lr,2),Pi=ar[0],mi=ar[1];Ct.useEffect(function(){mi((0,mt.Z)())},[]);var Wn=Ct.useRef(null),Ti=Ct.useRef(null),Sr=Ct.useRef(null),Br=Ct.useRef(null),Rr=Ct.useRef(null),Vr=pt(),io=(0,kt.Z)(Vr,3),ro=io[0],To=io[1],oo=io[2];Ct.useImperativeHandle(Le,function(){var Cr,Zr;return{focus:(Cr=Br.current)===null||Cr===void 0?void 0:Cr.focus,blur:(Zr=Br.current)===null||Zr===void 0?void 0:Zr.blur,scrollTo:function(Ss){var Go;return(Go=Rr.current)===null||Go===void 0?void 0:Go.scrollTo(Ss)}}});var ko=Ct.useMemo(function(){var Cr;if(gn!=="combobox")return hi;var Zr=(Cr=nn[0])===null||Cr===void 0?void 0:Cr.value;return typeof Zr=="string"||typeof Zr=="number"?String(Zr):""},[hi,gn,nn]),yn=gn==="combobox"&&typeof Qn=="function"&&Qn()||null,so=typeof ln=="function"&&ln(),Pl=(0,tt.x1)(Ti,so==null||(cn=so.props)===null||cn===void 0?void 0:cn.ref),vs=Ct.useState(!1),Nr=(0,kt.Z)(vs,2),Pr=Nr[0],uo=Nr[1];(0,It.Z)(function(){uo(!0)},[]);var Wr=(0,Ot.Z)(!1,{defaultValue:vi,value:ti}),Ji=(0,kt.Z)(Wr,2),$i=Ji[0],Uo=Ji[1],zi=Pr?$i:!1,dr=!sn&&en;(Ln||dr&&zi&&gn==="combobox")&&(zi=!1);var pr=dr?!1:zi,li=Ct.useCallback(function(Cr){var Zr=Cr!==void 0?Cr:!zi;Ln||(Uo(Zr),zi!==Zr&&(oi==null||oi(Zr)))},[Ln,zi,Uo,oi]),no=Ct.useMemo(function(){return(gi||[]).some(function(Cr){return[`
|
|
|
`,`\r
|
|
|
`].includes(Cr)})},[gi]),bo=function(Zr,ys,Ss){var Go=!0,Co=Zr;Rn==null||Rn(null);var Oo=Ss?null:wt(Zr,gi);return gn!=="combobox"&&Oo&&(Co="",Ai==null||Ai(Oo),li(!1),Go=!1),fi&&ko!==Co&&fi(Co,{source:ys?"typing":"effect"}),Go},os=function(Zr){!Zr||!Zr.trim()||fi(Zr,{source:"submit"})};Ct.useEffect(function(){!zi&&!Bi&&gn!=="combobox"&&bo("",!1,!1)},[zi]),Ct.useEffect(function(){$i&&Ln&&Uo(!1),Ln&&To(!1)},[Ln]);var Js=Pt(),wa=(0,kt.Z)(Js,2),si=wa[0],ao=wa[1],No=function(Zr){var ys=si(),Ss=Zr.which;if(Ss===et.Z.ENTER&&(gn!=="combobox"&&Zr.preventDefault(),zi||li(!0)),ao(!!ko),Ss===et.Z.BACKSPACE&&!ys&&Bi&&!ko&&nn.length){for(var Go=(0,gt.Z)(nn),Co=null,Oo=Go.length-1;Oo>=0;Oo-=1){var Ko=Go[Oo];if(!Ko.disabled){Go.splice(Oo,1),Co=Ko;break}}Co&&_e(Go,{type:"remove",values:[Co]})}for(var jo=arguments.length,bl=new Array(jo>1?jo-1:0),za=1;za<jo;za++)bl[za-1]=arguments[za];if(zi&&Rr.current){var Mo;(Mo=Rr.current).onKeyDown.apply(Mo,[Zr].concat(bl))}rr==null||rr.apply(void 0,[Zr].concat(bl))},Pa=function(Zr){for(var ys=arguments.length,Ss=new Array(ys>1?ys-1:0),Go=1;Go<ys;Go++)Ss[Go-1]=arguments[Go];if(zi&&Rr.current){var Co;(Co=Rr.current).onKeyUp.apply(Co,[Zr].concat(Ss))}Ki==null||Ki.apply(void 0,[Zr].concat(Ss))},iu=function(Zr){var ys=nn.filter(function(Ss){return Ss!==Zr});_e(ys,{type:"remove",values:[Zr]})},Ra=Ct.useRef(!1),ur=function(){To(!0),Ln||(ji&&!Ra.current&&ji.apply(void 0,arguments),Se.includes("focus")&&li(!0)),Ra.current=!0},ch=function(){To(!1,function(){Ra.current=!1,li(!1)}),!Ln&&(ko&&(gn==="tags"?fi(ko,{source:"submit"}):gn==="multiple"&&fi("",{source:"blur"})),yr&&yr.apply(void 0,arguments))},Qs=[];Ct.useEffect(function(){return function(){Qs.forEach(function(Cr){return clearTimeout(Cr)}),Qs.splice(0,Qs.length)}},[]);var $s=function(Zr){var ys,Ss=Zr.target,Go=(ys=Sr.current)===null||ys===void 0?void 0:ys.getPopupElement();if(Go&&Go.contains(Ss)){var Co=setTimeout(function(){var bl=Qs.indexOf(Co);if(bl!==-1&&Qs.splice(bl,1),oo(),!Pi&&!Go.contains(document.activeElement)){var za;(za=Br.current)===null||za===void 0||za.focus()}});Qs.push(Co)}for(var Oo=arguments.length,Ko=new Array(Oo>1?Oo-1:0),jo=1;jo<Oo;jo++)Ko[jo-1]=arguments[jo];Tr==null||Tr.apply(void 0,[Zr].concat(Ko))},ta=Ct.useState({}),Bl=(0,kt.Z)(ta,2),ru=Bl[1];function ea(){ru({})}var ba;so&&(ba=function(Zr){li(Zr)}),Dt(function(){var Cr;return[Wn.current,(Cr=Sr.current)===null||Cr===void 0?void 0:Cr.getPopupElement()]},pr,li,!!so);var dh=Ct.useMemo(function(){return(0,Qt.Z)((0,Qt.Z)({},ze),{},{notFoundContent:sn,open:zi,triggerOpen:pr,id:Nn,showSearch:Di,multiple:Bi,toggleOpen:li})},[ze,sn,pr,zi,Nn,Di,Bi,li]),oc=!!Li||Mn,fh;oc&&(fh=Ct.createElement(rt,{className:At()("".concat(Hn,"-arrow"),(0,Xt.Z)({},"".concat(Hn,"-arrow-loading"),Mn)),customizeIcon:Li,customizeIconProps:{loading:Mn,searchValue:ko,open:zi,focused:ro,showSearch:Di}}));var Gc=function(){var Zr;xn==null||xn(),(Zr=Br.current)===null||Zr===void 0||Zr.focus(),_e([],{type:"clear",values:nn}),bo("",!1,!1)},gh=ut(Hn,Gc,nn,ii,bn,Ln,ko,gn),ph=gh.allowClear,Rl=gh.clearIcon,ja=Ct.createElement(er,{ref:Rr}),sc=At()(Hn,Pe,(wn={},(0,Xt.Z)(wn,"".concat(Hn,"-focused"),ro),(0,Xt.Z)(wn,"".concat(Hn,"-multiple"),Bi),(0,Xt.Z)(wn,"".concat(Hn,"-single"),!Bi),(0,Xt.Z)(wn,"".concat(Hn,"-allow-clear"),ii),(0,Xt.Z)(wn,"".concat(Hn,"-show-arrow"),oc),(0,Xt.Z)(wn,"".concat(Hn,"-disabled"),Ln),(0,Xt.Z)(wn,"".concat(Hn,"-loading"),Mn),(0,Xt.Z)(wn,"".concat(Hn,"-open"),zi),(0,Xt.Z)(wn,"".concat(Hn,"-customize-input"),yn),(0,Xt.Z)(wn,"".concat(Hn,"-show-search"),Di),wn)),mh=Ct.createElement(bt,{ref:Sr,disabled:Ln,prefixCls:Hn,visible:pr,popupElement:ja,animation:En,transitionName:Oi,dropdownStyle:wr,dropdownClassName:_i,direction:On,dropdownMatchSelectWidth:kr,dropdownRender:gr,dropdownAlign:wi,placement:yi,builtinPlacements:Zi,getPopupContainer:Xi,empty:en,getTriggerDOMNode:function(){return Ti.current},onPopupVisibleChange:ba,onPopupMouseEnter:ea},so?Ct.cloneElement(so,{ref:Pl}):Ct.createElement(tn,(0,zt.Z)({},ze,{domRef:Ti,prefixCls:Hn,inputElement:yn,ref:Br,id:Nn,showSearch:Di,autoClearSearchValue:ei,mode:gn,activeDescendantId:Xn,tagRender:pn,values:nn,open:zi,onToggleOpen:li,activeValue:dn,searchValue:ko,onSearch:bo,onSearchSubmit:os,onRemove:iu,tokenWithEnter:no}))),vh;return so?vh=mh:vh=Ct.createElement("div",(0,zt.Z)({className:sc},Mi,{ref:Wn,onMouseDown:$s,onKeyDown:No,onKeyUp:Pa,onFocus:ur,onBlur:ch}),ro&&!zi&&Ct.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(nn.map(function(Cr){var Zr=Cr.label,ys=Cr.value;return["number","string"].includes((0,xt.Z)(Zr))?Zr:ys}).join(", "))),mh,fh,ph&&Rl),Ct.createElement(ct.Provider,{value:dh},vh)}),de=oe,Ge=function(ze,Le){var cn=Ct.useRef({values:new Map,options:new Map}),wn=Ct.useMemo(function(){var Hn=cn.current,Pe=Hn.values,We=Hn.options,pn=ze.map(function(nn){if(nn.label===void 0){var _e;return(0,Qt.Z)((0,Qt.Z)({},nn),{},{label:(_e=Pe.get(nn.value))===null||_e===void 0?void 0:_e.label})}return nn}),On=new Map,Ke=new Map;return pn.forEach(function(nn){On.set(nn.value,nn),Ke.set(nn.value,Le.get(nn.value)||We.get(nn.value))}),cn.current.values=On,cn.current.options=Ke,pn},[ze,Le]),Nn=Ct.useCallback(function(Hn){return Le.get(Hn)||cn.current.options.get(Hn)},[Le]);return[wn,Nn]};function Ye(ze,Le){return ce(ze).join("").toUpperCase().includes(Le)}var Ue=function(ze,Le,cn,wn,Nn){return Ct.useMemo(function(){if(!cn||wn===!1)return ze;var Hn=Le.options,Pe=Le.label,We=Le.value,pn=[],On=typeof wn=="function",Ke=cn.toUpperCase(),nn=On?wn:function(en,un){return Nn?Ye(un[Nn],Ke):un[Hn]?Ye(un[Pe!=="children"?Pe:"label"],Ke):Ye(un[We],Ke)},_e=On?function(en){return St(en)}:function(en){return en};return ze.forEach(function(en){if(en[Hn]){var un=nn(cn,_e(en));if(un)pn.push(en);else{var sn=en[Hn].filter(function(xn){return nn(cn,_e(xn))});sn.length&&pn.push((0,Qt.Z)((0,Qt.Z)({},en),{},(0,Xt.Z)({},Hn,sn)))}return}nn(cn,_e(en))&&pn.push(en)}),pn},[ze,wn,Nn,cn,Le])},an=Kt(17115),vn=Kt(11592),ke=["children","value"],Ze=["children"];function hn(ze){var Le=ze,cn=Le.key,wn=Le.props,Nn=wn.children,Hn=wn.value,Pe=(0,Bt.Z)(wn,ke);return(0,Qt.Z)({key:cn,value:Hn!==void 0?Hn:cn,children:Nn},Pe)}function Pn(ze){var Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,vn.Z)(ze).map(function(cn,wn){if(!Ct.isValidElement(cn)||!cn.type)return null;var Nn=cn,Hn=Nn.type.isSelectOptGroup,Pe=Nn.key,We=Nn.props,pn=We.children,On=(0,Bt.Z)(We,Ze);return Le||!Hn?hn(cn):(0,Qt.Z)((0,Qt.Z)({key:"__RC_SELECT_GRP__".concat(Pe===null?wn:Pe,"__"),label:Pe},On),{},{options:Pn(pn)})}).filter(function(cn){return cn})}function In(ze,Le,cn,wn,Nn){return Ct.useMemo(function(){var Hn=ze,Pe=!ze;Pe&&(Hn=Pn(Le));var We=new Map,pn=new Map,On=function(_e,en,un){un&&typeof un=="string"&&_e.set(en[un],en)};function Ke(nn){for(var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,en=0;en<nn.length;en+=1){var un=nn[en];!un[cn.options]||_e?(We.set(un[cn.value],un),On(pn,un,cn.label),On(pn,un,wn),On(pn,un,Nn)):Ke(un[cn.options],!0)}}return Ke(Hn),{options:Hn,valueOptions:We,labelOptions:pn}},[ze,Le,cn,wn,Nn])}function Bn(ze){var Le=Ct.useRef();Le.current=ze;var cn=Ct.useCallback(function(){return Le.current.apply(Le,arguments)},[]);return cn}var Zn=function(){return null};Zn.isSelectOptGroup=!0;var Gn=Zn,ci=function(){return null};ci.isSelectOption=!0;var pi=ci,xi=Kt(80547),Ci=Kt(2738),Gi=Kt(4409),qi=Ct.createContext(null),bi=qi;function Yi(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var ui=["disabled","title","children","style","className"];function ne(ze){return typeof ze=="string"||typeof ze=="number"}var Wi=function(Le,cn){var wn=ft(),Nn=wn.prefixCls,Hn=wn.id,Pe=wn.open,We=wn.multiple,pn=wn.mode,On=wn.searchValue,Ke=wn.toggleOpen,nn=wn.notFoundContent,_e=wn.onPopupScroll,en=Ct.useContext(bi),un=en.flattenOptions,sn=en.onActiveValue,xn=en.defaultActiveFirstOption,gn=en.onSelect,Ln=en.menuItemSelectedIcon,Mn=en.rawValues,Qn=en.fieldNames,ln=en.virtual,ti=en.direction,vi=en.listHeight,oi=en.listItemHeight,dn="".concat(Nn,"-item"),Rn=(0,xi.Z)(function(){return un},[Pe,un],function(wi,yi){return yi[0]&&wi[1]!==yi[1]}),Xn=Ct.useRef(null),hi=function(yi){yi.preventDefault()},ei=function(yi){Xn.current&&Xn.current.scrollTo(typeof yi=="number"?{index:yi}:yi)},fi=function(yi){for(var Zi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Xi=Rn.length,qn=0;qn<Xi;qn+=1){var Se=(yi+qn*Zi+Xi)%Xi,ji=Rn[Se],yr=ji.group,Ki=ji.data;if(!yr&&!Ki.disabled)return Se}return-1},Ai=Ct.useState(function(){return fi(0)}),gi=(0,kt.Z)(Ai,2),ii=gi[0],Li=gi[1],bn=function(yi){var Zi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Li(yi);var Xi={source:Zi?"keyboard":"mouse"},qn=Rn[yi];if(!qn){sn(null,-1,Xi);return}sn(qn.value,yi,Xi)};(0,Ct.useEffect)(function(){bn(xn!==!1?fi(0):-1)},[Rn.length,On]);var er=Ct.useCallback(function(wi){return Mn.has(wi)&&pn!=="combobox"},[pn,(0,gt.Z)(Mn).toString(),Mn.size]);(0,Ct.useEffect)(function(){var wi=setTimeout(function(){if(!We&&Pe&&Mn.size===1){var Zi=Array.from(Mn)[0],Xi=Rn.findIndex(function(qn){var Se=qn.data;return Se.value===Zi});Xi!==-1&&(bn(Xi),ei(Xi))}});if(Pe){var yi;(yi=Xn.current)===null||yi===void 0||yi.scrollTo(void 0)}return function(){return clearTimeout(wi)}},[Pe,On,un.length]);var En=function(yi){yi!==void 0&&gn(yi,{selected:!Mn.has(yi)}),We||Ke(!1)};if(Ct.useImperativeHandle(cn,function(){return{onKeyDown:function(yi){var Zi=yi.which,Xi=yi.ctrlKey;switch(Zi){case et.Z.N:case et.Z.P:case et.Z.UP:case et.Z.DOWN:{var qn=0;if(Zi===et.Z.UP?qn=-1:Zi===et.Z.DOWN?qn=1:Yi()&&Xi&&(Zi===et.Z.N?qn=1:Zi===et.Z.P&&(qn=-1)),qn!==0){var Se=fi(ii+qn,qn);ei(Se),bn(Se,!0)}break}case et.Z.ENTER:{var ji=Rn[ii];ji&&!ji.data.disabled?En(ji.value):En(void 0),Pe&&yi.preventDefault();break}case et.Z.ESC:Ke(!1),Pe&&yi.stopPropagation()}},onKeyUp:function(){},scrollTo:function(yi){ei(yi)}}}),Rn.length===0)return Ct.createElement("div",{role:"listbox",id:"".concat(Hn,"_list"),className:"".concat(dn,"-empty"),onMouseDown:hi},nn);var Oi=Object.keys(Qn).map(function(wi){return Qn[wi]}),wr=function(yi){return yi.label};function _i(wi,yi){var Zi=wi.group;return{role:Zi?"presentation":"option",id:"".concat(Hn,"_list_").concat(yi)}}var kr=function(yi){var Zi=Rn[yi];if(!Zi)return null;var Xi=Zi.data||{},qn=Xi.value,Se=Zi.group,ji=(0,Zt.Z)(Xi,!0),yr=wr(Zi);return Zi?Ct.createElement("div",(0,zt.Z)({"aria-label":typeof yr=="string"&&!Se?yr:null},ji,{key:yi},_i(Zi,yi),{"aria-selected":er(qn)}),qn):null},gr={role:"listbox",id:"".concat(Hn,"_list")};return Ct.createElement(Ct.Fragment,null,ln&&Ct.createElement("div",(0,zt.Z)({},gr,{style:{height:0,width:0,overflow:"hidden"}}),kr(ii-1),kr(ii),kr(ii+1)),Ct.createElement(Gi.Z,{itemKey:"key",ref:Xn,data:Rn,height:vi,itemHeight:oi,fullHeight:!1,onMouseDown:hi,onScroll:_e,virtual:ln,direction:ti,innerProps:ln?null:gr},function(wi,yi){var Zi,Xi=wi.group,qn=wi.groupOption,Se=wi.data,ji=wi.label,yr=wi.value,Ki=Se.key;if(Xi){var rr,Tr=(rr=Se.title)!==null&&rr!==void 0?rr:ne(ji)?ji.toString():void 0;return Ct.createElement("div",{className:At()(dn,"".concat(dn,"-group")),title:Tr},ji!==void 0?ji:Ki)}var Ar=Se.disabled,Bi=Se.title,Di=Se.children,Mi=Se.style,lr=Se.className,ar=(0,Bt.Z)(Se,ui),Pi=(0,Ci.Z)(ar,Oi),mi=er(yr),Wn="".concat(dn,"-option"),Ti=At()(dn,Wn,lr,(Zi={},(0,Xt.Z)(Zi,"".concat(Wn,"-grouped"),qn),(0,Xt.Z)(Zi,"".concat(Wn,"-active"),ii===yi&&!Ar),(0,Xt.Z)(Zi,"".concat(Wn,"-disabled"),Ar),(0,Xt.Z)(Zi,"".concat(Wn,"-selected"),mi),Zi)),Sr=wr(wi),Br=!Ln||typeof Ln=="function"||mi,Rr=typeof Sr=="number"?Sr:Sr||yr,Vr=ne(Rr)?Rr.toString():void 0;return Bi!==void 0&&(Vr=Bi),Ct.createElement("div",(0,zt.Z)({},(0,Zt.Z)(Pi),ln?{}:_i(wi,yi),{"aria-selected":mi,className:Ti,title:Vr,onMouseMove:function(){ii===yi||Ar||bn(yi)},onClick:function(){Ar||En(yr)},style:Mi}),Ct.createElement("div",{className:"".concat(Wn,"-content")},Rr),Ct.isValidElement(Ln)||mi,Br&&Ct.createElement(rt,{className:"".concat(dn,"-option-state"),customizeIcon:Ln,customizeIconProps:{isSelected:mi}},mi?"\u2713":null))}))},Fi=Ct.forwardRef(Wi);Fi.displayName="OptionList";var nr=Fi;function sr(ze){var Le=ze.mode,cn=ze.options,wn=ze.children,Nn=ze.backfill,Hn=ze.allowClear,Pe=ze.placeholder,We=ze.getInputElement,pn=ze.showSearch,On=ze.onSearch,Ke=ze.defaultOpen,nn=ze.autoFocus,_e=ze.labelInValue,en=ze.value,un=ze.inputValue,sn=ze.optionLabelProp,xn=isMultiple(Le),gn=pn!==void 0?pn:xn||Le==="combobox",Ln=cn||convertChildrenToData(wn);if(warning(Le!=="tags"||Ln.every(function(ti){return!ti.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Le==="tags"||Le==="combobox"){var Mn=Ln.some(function(ti){return ti.options?ti.options.some(function(vi){return typeof("value"in vi?vi.value:vi.key)=="number"}):typeof("value"in ti?ti.value:ti.key)=="number"});warning(!Mn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Le!=="combobox"||!sn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Le==="combobox"||!Nn,"`backfill` only works with `combobox` mode."),warning(Le==="combobox"||!We,"`getInputElement` only work with `combobox` mode."),noteOnce(Le!=="combobox"||!We||!Hn||!Pe,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),On&&!gn&&Le!=="combobox"&&Le!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Ke||nn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),en!=null){var Qn=toArray(en);warning(!_e||Qn.every(function(ti){return _typeof(ti)==="object"&&("key"in ti||"value"in ti)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!xn||Array.isArray(en),"`value` should be array when `mode` is `multiple` or `tags`")}if(wn){var ln=null;toNodeArray(wn).some(function(ti){if(!React.isValidElement(ti)||!ti.type)return!1;var vi=ti,oi=vi.type;if(oi.isSelectOption)return!1;if(oi.isSelectOptGroup){var dn=toNodeArray(ti.props.children).every(function(Rn){return!React.isValidElement(Rn)||!ti.type||Rn.type.isSelectOption?!0:(ln=Rn.type,!1)});return!dn}return ln=oi,!0}),ln&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(ln.displayName||ln.name||ln,"`.")),warning(un===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function xr(ze,Le){if(ze){var cn=function wn(Nn){for(var Hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Pe=0;Pe<Nn.length;Pe++){var We=Nn[Pe];if(We[Le==null?void 0:Le.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Hn&&Array.isArray(We[Le==null?void 0:Le.options])&&wn(We[Le==null?void 0:Le.options],!0))break}};cn(ze)}}var vr=null,Jn=["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"],_n=["inputValue"];function qe(ze){return!ze||(0,xt.Z)(ze)!=="object"}var Qe=Ct.forwardRef(function(ze,Le){var cn=ze.id,wn=ze.mode,Nn=ze.prefixCls,Hn=Nn===void 0?"rc-select":Nn,Pe=ze.backfill,We=ze.fieldNames,pn=ze.inputValue,On=ze.searchValue,Ke=ze.onSearch,nn=ze.autoClearSearchValue,_e=nn===void 0?!0:nn,en=ze.onSelect,un=ze.onDeselect,sn=ze.dropdownMatchSelectWidth,xn=sn===void 0?!0:sn,gn=ze.filterOption,Ln=ze.filterSort,Mn=ze.optionFilterProp,Qn=ze.optionLabelProp,ln=ze.options,ti=ze.children,vi=ze.defaultActiveFirstOption,oi=ze.menuItemSelectedIcon,dn=ze.virtual,Rn=ze.direction,Xn=ze.listHeight,hi=Xn===void 0?200:Xn,ei=ze.listItemHeight,fi=ei===void 0?20:ei,Ai=ze.value,gi=ze.defaultValue,ii=ze.labelInValue,Li=ze.onChange,bn=(0,Bt.Z)(ze,Jn),er=(0,an.ZP)(cn),En=Vt(wn),Oi=!!(!ln&&ti),wr=Ct.useMemo(function(){return gn===void 0&&wn==="combobox"?!1:gn},[gn,wn]),_i=Ct.useMemo(function(){return Mt(We,Oi)},[JSON.stringify(We),Oi]),kr=(0,Ot.Z)("",{value:On!==void 0?On:pn,postState:function(dr){return dr||""}}),gr=(0,kt.Z)(kr,2),wi=gr[0],yi=gr[1],Zi=In(ln,ti,_i,Mn,Qn),Xi=Zi.valueOptions,qn=Zi.labelOptions,Se=Zi.options,ji=Ct.useCallback(function(zi){var dr=ce(zi);return dr.map(function(pr){var li,no,bo,os,Js;if(qe(pr))li=pr;else{var wa;bo=pr.key,no=pr.label,li=(wa=pr.value)!==null&&wa!==void 0?wa:bo}var si=Xi.get(li);if(si){var ao;if(no===void 0&&(no=si==null?void 0:si[Qn||_i.label]),bo===void 0&&(bo=(ao=si==null?void 0:si.key)!==null&&ao!==void 0?ao:li),os=si==null?void 0:si.disabled,Js=si==null?void 0:si.title,0)var No}return{label:no,value:li,key:bo,disabled:os,title:Js}})},[_i,Qn,Xi]),yr=(0,Ot.Z)(gi,{value:Ai}),Ki=(0,kt.Z)(yr,2),rr=Ki[0],Tr=Ki[1],Ar=Ct.useMemo(function(){var zi,dr=ji(rr);return wn==="combobox"&&Te((zi=dr[0])===null||zi===void 0?void 0:zi.value)?[]:dr},[rr,ji,wn]),Bi=Ge(Ar,Xi),Di=(0,kt.Z)(Bi,2),Mi=Di[0],lr=Di[1],ar=Ct.useMemo(function(){if(!wn&&Mi.length===1){var zi=Mi[0];if(zi.value===null&&(zi.label===null||zi.label===void 0))return[]}return Mi.map(function(dr){var pr;return(0,Qt.Z)((0,Qt.Z)({},dr),{},{label:(pr=dr.label)!==null&&pr!==void 0?pr:dr.value})})},[wn,Mi]),Pi=Ct.useMemo(function(){return new Set(Mi.map(function(zi){return zi.value}))},[Mi]);Ct.useEffect(function(){if(wn==="combobox"){var zi,dr=(zi=Mi[0])===null||zi===void 0?void 0:zi.value;yi(ye(dr)?String(dr):"")}},[Mi]);var mi=Bn(function(zi,dr){var pr,li=dr!=null?dr:zi;return pr={},(0,Xt.Z)(pr,_i.value,zi),(0,Xt.Z)(pr,_i.label,li),pr}),Wn=Ct.useMemo(function(){if(wn!=="tags")return Se;var zi=(0,gt.Z)(Se),dr=function(li){return Xi.has(li)};return(0,gt.Z)(Mi).sort(function(pr,li){return pr.value<li.value?-1:1}).forEach(function(pr){var li=pr.value;dr(li)||zi.push(mi(li,pr.label))}),zi},[mi,Se,Xi,Mi,wn]),Ti=Ue(Wn,_i,wi,wr,Mn),Sr=Ct.useMemo(function(){return wn!=="tags"||!wi||Ti.some(function(zi){return zi[Mn||"value"]===wi})||Ti.some(function(zi){return zi[_i.value]===wi})?Ti:[mi(wi)].concat((0,gt.Z)(Ti))},[mi,Mn,wn,Ti,wi,_i]),Br=Ct.useMemo(function(){return Ln?(0,gt.Z)(Sr).sort(function(zi,dr){return Ln(zi,dr)}):Sr},[Sr,Ln]),Rr=Ct.useMemo(function(){return Ut(Br,{fieldNames:_i,childrenAsData:Oi})},[Br,_i,Oi]),Vr=function(dr){var pr=ji(dr);if(Tr(pr),Li&&(pr.length!==Mi.length||pr.some(function(bo,os){var Js;return((Js=Mi[os])===null||Js===void 0?void 0:Js.value)!==(bo==null?void 0:bo.value)}))){var li=ii?pr:pr.map(function(bo){return bo.value}),no=pr.map(function(bo){return St(lr(bo.value))});Li(En?li:li[0],En?no:no[0])}},io=Ct.useState(null),ro=(0,kt.Z)(io,2),To=ro[0],oo=ro[1],ko=Ct.useState(0),yn=(0,kt.Z)(ko,2),so=yn[0],Pl=yn[1],vs=vi!==void 0?vi:wn!=="combobox",Nr=Ct.useCallback(function(zi,dr){var pr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},li=pr.source,no=li===void 0?"keyboard":li;Pl(dr),Pe&&wn==="combobox"&&zi!==null&&no==="keyboard"&&oo(String(zi))},[Pe,wn]),Pr=function(dr,pr,li){var no=function(){var Ra,ur=lr(dr);return[ii?{label:ur==null?void 0:ur[_i.label],value:dr,key:(Ra=ur==null?void 0:ur.key)!==null&&Ra!==void 0?Ra:dr}:dr,St(ur)]};if(pr&&en){var bo=no(),os=(0,kt.Z)(bo,2),Js=os[0],wa=os[1];en(Js,wa)}else if(!pr&&un&&li!=="clear"){var si=no(),ao=(0,kt.Z)(si,2),No=ao[0],Pa=ao[1];un(No,Pa)}},uo=Bn(function(zi,dr){var pr,li=En?dr.selected:!0;li?pr=En?[].concat((0,gt.Z)(Mi),[zi]):[zi]:pr=Mi.filter(function(no){return no.value!==zi}),Vr(pr),Pr(zi,li),wn==="combobox"?oo(""):(!Vt||_e)&&(yi(""),oo(""))}),Wr=function(dr,pr){Vr(dr);var li=pr.type,no=pr.values;(li==="remove"||li==="clear")&&no.forEach(function(bo){Pr(bo.value,!1,li)})},Ji=function(dr,pr){if(yi(dr),oo(null),pr.source==="submit"){var li=(dr||"").trim();if(li){var no=Array.from(new Set([].concat((0,gt.Z)(Pi),[li])));Vr(no),Pr(li,!0),yi("")}return}pr.source!=="blur"&&(wn==="combobox"&&Vr(dr),Ke==null||Ke(dr))},$i=function(dr){var pr=dr;wn!=="tags"&&(pr=dr.map(function(no){var bo=qn.get(no);return bo==null?void 0:bo.value}).filter(function(no){return no!==void 0}));var li=Array.from(new Set([].concat((0,gt.Z)(Pi),(0,gt.Z)(pr))));Vr(li),li.forEach(function(no){Pr(no,!0)})},Uo=Ct.useMemo(function(){var zi=dn!==!1&&xn!==!1;return(0,Qt.Z)((0,Qt.Z)({},Zi),{},{flattenOptions:Rr,onActiveValue:Nr,defaultActiveFirstOption:vs,onSelect:uo,menuItemSelectedIcon:oi,rawValues:Pi,fieldNames:_i,virtual:zi,direction:Rn,listHeight:hi,listItemHeight:fi,childrenAsData:Oi})},[Zi,Rr,Nr,vs,uo,oi,Pi,_i,dn,xn,hi,fi,Oi]);return Ct.createElement(bi.Provider,{value:Uo},Ct.createElement(de,(0,zt.Z)({},bn,{id:er,prefixCls:Hn,ref:Le,omitDomProps:_n,mode:wn,displayValues:ar,onDisplayValuesChange:Wr,direction:Rn,searchValue:wi,onSearch:Ji,autoClearSearchValue:_e,onSearchSplit:$i,dropdownMatchSelectWidth:xn,OptionList:nr,emptyOptions:!Rr.length,activeValue:To,activeDescendantId:"".concat(er,"_list_").concat(so)})))}),we=Qe;we.Option=pi,we.OptGroup=Gn;var fn=we,Sn=fn},9296:function(Tn,Cn,Kt){"use strict";Kt.r(Cn),Kt.d(Cn,{ResizableTextArea:function(){return te},default:function(){return Te}});var zt=Kt(92413),gt=Kt(33708),Xt=Kt(400),Qt=Kt(39559),kt=Kt(33606),Bt=Kt(37061),xt=Kt(26407),Ot=Kt(92310),Rt=Kt.n(Ot),Ct=Kt(93681),Lt=Kt(5643),At=Kt(18929),It=Kt(59301),mt=Kt(29301),et=Kt(34280),tt=Kt(16089),st=`
|
|
|
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;
|
|
|
`,rt=["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"],ut={},ct;function ft(me){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,fe=me.getAttribute("id")||me.getAttribute("data-reactid")||me.getAttribute("name");if(He&&ut[fe])return ut[fe];var $t=window.getComputedStyle(me),ie=$t.getPropertyValue("box-sizing")||$t.getPropertyValue("-moz-box-sizing")||$t.getPropertyValue("-webkit-box-sizing"),ue=parseFloat($t.getPropertyValue("padding-bottom"))+parseFloat($t.getPropertyValue("padding-top")),ge=parseFloat($t.getPropertyValue("border-bottom-width"))+parseFloat($t.getPropertyValue("border-top-width")),he=rt.map(function(Ne){return"".concat(Ne,":").concat($t.getPropertyValue(Ne))}).join(";"),De={sizingStyle:he,paddingSize:ue,borderSize:ge,boxSizing:ie};return He&&fe&&(ut[fe]=De),De}function pt(me){var He=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,$t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ct||(ct=document.createElement("textarea"),ct.setAttribute("tab-index","-1"),ct.setAttribute("aria-hidden","true"),document.body.appendChild(ct)),me.getAttribute("wrap")?ct.setAttribute("wrap",me.getAttribute("wrap")):ct.removeAttribute("wrap");var ie=ft(me,He),ue=ie.paddingSize,ge=ie.borderSize,he=ie.boxSizing,De=ie.sizingStyle;ct.setAttribute("style","".concat(De,";").concat(st)),ct.value=me.value||me.placeholder||"";var Ne=void 0,$e=void 0,Re,tn=ct.scrollHeight;if(he==="border-box"?tn+=ge:he==="content-box"&&(tn-=ue),fe!==null||$t!==null){ct.value=" ";var Me=ct.scrollHeight-ue;fe!==null&&(Ne=Me*fe,he==="border-box"&&(Ne=Ne+ue+ge),tn=Math.max(Ne,tn)),$t!==null&&($e=Me*$t,he==="border-box"&&($e=$e+ue+ge),Re=tn>$e?"":"hidden",tn=Math.min($e,tn))}var Oe={height:tn,overflowY:Re,resize:"none"};return Ne&&(Oe.minHeight=Ne),$e&&(Oe.maxHeight=$e),Oe}var Pt=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Dt=0,Zt=1,Ft=2,qt=It.forwardRef(function(me,He){var fe=me,$t=fe.prefixCls,ie=fe.onPressEnter,ue=fe.defaultValue,ge=fe.value,he=fe.autoSize,De=fe.onResize,Ne=fe.className,$e=fe.style,Re=fe.disabled,tn=fe.onChange,Me=fe.onInternalAutoSize,Oe=(0,Bt.Z)(fe,Pt),Fe=(0,At.Z)(ue,{value:ge,postState:function(Gn){return Gn!=null?Gn:""}}),le=(0,kt.Z)(Fe,2),Tt=le[0],bt=le[1],_t=function(Gn){bt(Gn.target.value),tn==null||tn(Gn)},Yt=It.useRef();It.useImperativeHandle(He,function(){return{textArea:Yt.current}});var Mt=It.useMemo(function(){return he&&(0,Qt.Z)(he)==="object"?[he.minRows,he.maxRows]:[]},[he]),Ut=(0,kt.Z)(Mt,2),St=Ut[0],wt=Ut[1],jt=!!he,Wt=function(){try{if(document.activeElement===Yt.current){var Gn=Yt.current,ci=Gn.selectionStart,pi=Gn.selectionEnd,xi=Gn.scrollTop;Yt.current.setSelectionRange(ci,pi),Yt.current.scrollTop=xi}}catch(Ci){}},Vt=It.useState(Ft),oe=(0,kt.Z)(Vt,2),de=oe[0],Ge=oe[1],Ye=It.useState(),Ue=(0,kt.Z)(Ye,2),an=Ue[0],vn=Ue[1],ke=function(){Ge(Dt)};(0,et.Z)(function(){jt&&ke()},[ge,St,wt,jt]),(0,et.Z)(function(){if(de===Dt)Ge(Zt);else if(de===Zt){var Zn=pt(Yt.current,!1,St,wt);Ge(Ft),vn(Zn)}else Wt()},[de]);var Ze=It.useRef(),hn=function(){tt.Z.cancel(Ze.current)},Pn=function(Gn){de===Ft&&(De==null||De(Gn),he&&(hn(),Ze.current=(0,tt.Z)(function(){ke()})))};It.useEffect(function(){return hn},[]);var In=jt?an:null,Bn=(0,gt.Z)((0,gt.Z)({},$e),In);return(de===Dt||de===Zt)&&(Bn.overflowY="hidden",Bn.overflowX="hidden"),It.createElement(mt.Z,{onResize:Pn,disabled:!(he||De)},It.createElement("textarea",(0,zt.Z)({},Oe,{ref:Yt,style:Bn,className:Rt()($t,Ne,(0,Xt.Z)({},"".concat($t,"-disabled"),Re)),disabled:Re,value:Tt,onChange:_t})))}),te=qt,Gt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function ce(me,He){return(0,xt.Z)(me||"").slice(0,He).join("")}function ae(me,He,fe,$t){var ie=fe;return me?ie=ce(fe,$t):(0,xt.Z)(He||"").length<fe.length&&(0,xt.Z)(fe||"").length>$t&&(ie=He),ie}var xe=It.forwardRef(function(me,He){var fe,$t=me.defaultValue,ie=me.value,ue=me.onFocus,ge=me.onBlur,he=me.onChange,De=me.allowClear,Ne=me.maxLength,$e=me.onCompositionStart,Re=me.onCompositionEnd,tn=me.suffix,Me=me.prefixCls,Oe=Me===void 0?"rc-textarea":Me,Fe=me.classes,le=me.showCount,Tt=me.className,bt=me.style,_t=me.disabled,Yt=me.hidden,Mt=me.classNames,Ut=me.styles,St=me.onResize,wt=(0,Bt.Z)(me,Gt),jt=(0,At.Z)($t,{value:ie,defaultValue:$t}),Wt=(0,kt.Z)(jt,2),Vt=Wt[0],oe=Wt[1],de=(0,It.useRef)(null),Ge=It.useState(!1),Ye=(0,kt.Z)(Ge,2),Ue=Ye[0],an=Ye[1],vn=It.useState(!1),ke=(0,kt.Z)(vn,2),Ze=ke[0],hn=ke[1],Pn=It.useRef(),In=It.useRef(0),Bn=It.useState(null),Zn=(0,kt.Z)(Bn,2),Gn=Zn[0],ci=Zn[1],pi=function(){var qe;(qe=de.current)===null||qe===void 0||qe.textArea.focus()};(0,It.useImperativeHandle)(He,function(){return{resizableTextArea:de.current,focus:pi,blur:function(){var qe;(qe=de.current)===null||qe===void 0||qe.textArea.blur()}}}),(0,It.useEffect)(function(){an(function(_n){return!_t&&_n})},[_t]);var xi=Number(Ne)>0,Ci=function(qe){hn(!0),Pn.current=Vt,In.current=qe.currentTarget.selectionStart,$e==null||$e(qe)},Gi=function(qe){hn(!1);var Qe=qe.currentTarget.value;if(xi){var we,fn=In.current>=Ne+1||In.current===((we=Pn.current)===null||we===void 0?void 0:we.length);Qe=ae(fn,Pn.current,Qe,Ne)}Qe!==Vt&&(oe(Qe),(0,Lt.rJ)(qe.currentTarget,qe,he,Qe)),Re==null||Re(qe)},qi=function(qe){var Qe=qe.target.value;if(!Ze&&xi){var we=qe.target.selectionStart>=Ne+1||qe.target.selectionStart===Qe.length||!qe.target.selectionStart;Qe=ae(we,Vt,Qe,Ne)}oe(Qe),(0,Lt.rJ)(qe.currentTarget,qe,he,Qe)},bi=function(qe){var Qe=wt.onPressEnter,we=wt.onKeyDown;qe.key==="Enter"&&Qe&&Qe(qe),we==null||we(qe)},Yi=function(qe){an(!0),ue==null||ue(qe)},ui=function(qe){an(!1),ge==null||ge(qe)},ne=function(qe){var Qe;oe(""),pi(),(0,Lt.rJ)((Qe=de.current)===null||Qe===void 0?void 0:Qe.textArea,qe,he)},Wi=(0,Lt.D7)(Vt);!Ze&&xi&&ie==null&&(Wi=ce(Wi,Ne));var Fi=tn,nr;if(le){var sr=(0,xt.Z)(Wi).length;(0,Qt.Z)(le)==="object"?nr=le.formatter({value:Wi,count:sr,maxLength:Ne}):nr="".concat(sr).concat(xi?" / ".concat(Ne):""),Fi=It.createElement(It.Fragment,null,Fi,It.createElement("span",{className:Rt()("".concat(Oe,"-data-count"),Mt==null?void 0:Mt.count),style:Ut==null?void 0:Ut.count},nr))}var xr=function(qe){var Qe;St==null||St(qe),(Qe=de.current)!==null&&Qe!==void 0&&Qe.textArea.style.height&&ci(!0)},vr=!wt.autoSize&&!le&&!De,Jn=It.createElement(Ct.BaseInput,{value:Wi,allowClear:De,handleReset:ne,suffix:Fi,prefixCls:Oe,classes:{affixWrapper:Rt()(Fe==null?void 0:Fe.affixWrapper,(fe={},(0,Xt.Z)(fe,"".concat(Oe,"-show-count"),le),(0,Xt.Z)(fe,"".concat(Oe,"-textarea-allow-clear"),De),fe))},disabled:_t,focused:Ue,className:Tt,style:(0,gt.Z)((0,gt.Z)({},bt),Gn&&!vr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof nr=="string"?nr:void 0}},hidden:Yt,inputElement:It.createElement(te,(0,zt.Z)({},wt,{onKeyDown:bi,onChange:qi,onFocus:Yi,onBlur:ui,onCompositionStart:Ci,onCompositionEnd:Gi,className:Mt==null?void 0:Mt.textarea,style:(0,gt.Z)((0,gt.Z)({},Ut==null?void 0:Ut.textarea),{},{resize:bt==null?void 0:bt.resize}),disabled:_t,prefixCls:Oe,onResize:xr,ref:de}))});return Jn}),ye=xe,Te=ye},39417:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return Zt}});var zt=Kt(92413),gt=Kt(400),Xt=Kt(37061),Qt=Kt(33708),kt=Kt(6909),Bt=Kt(4771),xt=Kt(25314),Ot=Kt(9427),Rt=Kt(25440),Ct=Kt(92310),Lt=Kt.n(Ct),At=Kt(26112),It=Kt(59301),mt=Kt(39378),et=function(qt){for(var te=qt.prefixCls,Gt=qt.level,ce=qt.isStart,ae=qt.isEnd,xe="".concat(te,"-indent-unit"),ye=[],Te=0;Te<Gt;Te+=1){var me;ye.push(It.createElement("span",{key:Te,className:Lt()(xe,(me={},(0,gt.Z)(me,"".concat(xe,"-start"),ce[Te]),(0,gt.Z)(me,"".concat(xe,"-end"),ae[Te]),me))}))}return It.createElement("span",{"aria-hidden":"true",className:"".concat(te,"-indent")},ye)},tt=It.memo(et),st=Kt(67841),rt=Kt(71430),ut=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ct="open",ft="close",pt="---",Pt=function(Ft){(0,Ot.Z)(te,Ft);var qt=(0,Rt.Z)(te);function te(){var Gt;(0,kt.Z)(this,te);for(var ce=arguments.length,ae=new Array(ce),xe=0;xe<ce;xe++)ae[xe]=arguments[xe];return Gt=qt.call.apply(qt,[this].concat(ae)),Gt.state={dragNodeHighlight:!1},Gt.selectHandle=void 0,Gt.cacheIndent=void 0,Gt.onSelectorClick=function(ye){var Te=Gt.props.context.onNodeClick;Te(ye,(0,rt.F)(Gt.props)),Gt.isSelectable()?Gt.onSelect(ye):Gt.onCheck(ye)},Gt.onSelectorDoubleClick=function(ye){var Te=Gt.props.context.onNodeDoubleClick;Te(ye,(0,rt.F)(Gt.props))},Gt.onSelect=function(ye){if(!Gt.isDisabled()){var Te=Gt.props.context.onNodeSelect;Te(ye,(0,rt.F)(Gt.props))}},Gt.onCheck=function(ye){if(!Gt.isDisabled()){var Te=Gt.props,me=Te.disableCheckbox,He=Te.checked,fe=Gt.props.context.onNodeCheck;if(!(!Gt.isCheckable()||me)){var $t=!He;fe(ye,(0,rt.F)(Gt.props),$t)}}},Gt.onMouseEnter=function(ye){var Te=Gt.props.context.onNodeMouseEnter;Te(ye,(0,rt.F)(Gt.props))},Gt.onMouseLeave=function(ye){var Te=Gt.props.context.onNodeMouseLeave;Te(ye,(0,rt.F)(Gt.props))},Gt.onContextMenu=function(ye){var Te=Gt.props.context.onNodeContextMenu;Te(ye,(0,rt.F)(Gt.props))},Gt.onDragStart=function(ye){var Te=Gt.props.context.onNodeDragStart;ye.stopPropagation(),Gt.setState({dragNodeHighlight:!0}),Te(ye,(0,xt.Z)(Gt));try{ye.dataTransfer.setData("text/plain","")}catch(me){}},Gt.onDragEnter=function(ye){var Te=Gt.props.context.onNodeDragEnter;ye.preventDefault(),ye.stopPropagation(),Te(ye,(0,xt.Z)(Gt))},Gt.onDragOver=function(ye){var Te=Gt.props.context.onNodeDragOver;ye.preventDefault(),ye.stopPropagation(),Te(ye,(0,xt.Z)(Gt))},Gt.onDragLeave=function(ye){var Te=Gt.props.context.onNodeDragLeave;ye.stopPropagation(),Te(ye,(0,xt.Z)(Gt))},Gt.onDragEnd=function(ye){var Te=Gt.props.context.onNodeDragEnd;ye.stopPropagation(),Gt.setState({dragNodeHighlight:!1}),Te(ye,(0,xt.Z)(Gt))},Gt.onDrop=function(ye){var Te=Gt.props.context.onNodeDrop;ye.preventDefault(),ye.stopPropagation(),Gt.setState({dragNodeHighlight:!1}),Te(ye,(0,xt.Z)(Gt))},Gt.onExpand=function(ye){var Te=Gt.props,me=Te.loading,He=Te.context.onNodeExpand;me||He(ye,(0,rt.F)(Gt.props))},Gt.setSelectHandle=function(ye){Gt.selectHandle=ye},Gt.getNodeState=function(){var ye=Gt.props.expanded;return Gt.isLeaf()?null:ye?ct:ft},Gt.hasChildren=function(){var ye=Gt.props.eventKey,Te=Gt.props.context.keyEntities,me=(0,st.Z)(Te,ye)||{},He=me.children;return!!(He||[]).length},Gt.isLeaf=function(){var ye=Gt.props,Te=ye.isLeaf,me=ye.loaded,He=Gt.props.context.loadData,fe=Gt.hasChildren();return Te===!1?!1:Te||!He&&!fe||He&&me&&!fe},Gt.isDisabled=function(){var ye=Gt.props.disabled,Te=Gt.props.context.disabled;return!!(Te||ye)},Gt.isCheckable=function(){var ye=Gt.props.checkable,Te=Gt.props.context.checkable;return!Te||ye===!1?!1:Te},Gt.syncLoadData=function(ye){var Te=ye.expanded,me=ye.loading,He=ye.loaded,fe=Gt.props.context,$t=fe.loadData,ie=fe.onNodeLoad;me||$t&&Te&&!Gt.isLeaf()&&!Gt.hasChildren()&&!He&&ie((0,rt.F)(Gt.props))},Gt.isDraggable=function(){var ye=Gt.props,Te=ye.data,me=ye.context.draggable;return!!(me&&(!me.nodeDraggable||me.nodeDraggable(Te)))},Gt.renderDragHandler=function(){var ye=Gt.props.context,Te=ye.draggable,me=ye.prefixCls;return Te!=null&&Te.icon?It.createElement("span",{className:"".concat(me,"-draggable-icon")},Te.icon):null},Gt.renderSwitcherIconDom=function(ye){var Te=Gt.props.switcherIcon,me=Gt.props.context.switcherIcon,He=Te||me;return typeof He=="function"?He((0,Qt.Z)((0,Qt.Z)({},Gt.props),{},{isLeaf:ye})):He},Gt.renderSwitcher=function(){var ye=Gt.props.expanded,Te=Gt.props.context.prefixCls;if(Gt.isLeaf()){var me=Gt.renderSwitcherIconDom(!0);return me!==!1?It.createElement("span",{className:Lt()("".concat(Te,"-switcher"),"".concat(Te,"-switcher-noop"))},me):null}var He=Lt()("".concat(Te,"-switcher"),"".concat(Te,"-switcher_").concat(ye?ct:ft)),fe=Gt.renderSwitcherIconDom(!1);return fe!==!1?It.createElement("span",{onClick:Gt.onExpand,className:He},fe):null},Gt.renderCheckbox=function(){var ye=Gt.props,Te=ye.checked,me=ye.halfChecked,He=ye.disableCheckbox,fe=Gt.props.context.prefixCls,$t=Gt.isDisabled(),ie=Gt.isCheckable();if(!ie)return null;var ue=typeof ie!="boolean"?ie:null;return It.createElement("span",{className:Lt()("".concat(fe,"-checkbox"),Te&&"".concat(fe,"-checkbox-checked"),!Te&&me&&"".concat(fe,"-checkbox-indeterminate"),($t||He)&&"".concat(fe,"-checkbox-disabled")),onClick:Gt.onCheck},ue)},Gt.renderIcon=function(){var ye=Gt.props.loading,Te=Gt.props.context.prefixCls;return It.createElement("span",{className:Lt()("".concat(Te,"-iconEle"),"".concat(Te,"-icon__").concat(Gt.getNodeState()||"docu"),ye&&"".concat(Te,"-icon_loading"))})},Gt.renderSelector=function(){var ye=Gt.state.dragNodeHighlight,Te=Gt.props,me=Te.title,He=me===void 0?pt:me,fe=Te.selected,$t=Te.icon,ie=Te.loading,ue=Te.data,ge=Gt.props.context,he=ge.prefixCls,De=ge.showIcon,Ne=ge.icon,$e=ge.loadData,Re=ge.titleRender,tn=Gt.isDisabled(),Me="".concat(he,"-node-content-wrapper"),Oe;if(De){var Fe=$t||Ne;Oe=Fe?It.createElement("span",{className:Lt()("".concat(he,"-iconEle"),"".concat(he,"-icon__customize"))},typeof Fe=="function"?Fe(Gt.props):Fe):Gt.renderIcon()}else $e&&ie&&(Oe=Gt.renderIcon());var le;typeof He=="function"?le=He(ue):Re?le=Re(ue):le=He;var Tt=It.createElement("span",{className:"".concat(he,"-title")},le);return It.createElement("span",{ref:Gt.setSelectHandle,title:typeof He=="string"?He:"",className:Lt()("".concat(Me),"".concat(Me,"-").concat(Gt.getNodeState()||"normal"),!tn&&(fe||ye)&&"".concat(he,"-node-selected")),onMouseEnter:Gt.onMouseEnter,onMouseLeave:Gt.onMouseLeave,onContextMenu:Gt.onContextMenu,onClick:Gt.onSelectorClick,onDoubleClick:Gt.onSelectorDoubleClick},Oe,Tt,Gt.renderDropIndicator())},Gt.renderDropIndicator=function(){var ye=Gt.props,Te=ye.disabled,me=ye.eventKey,He=Gt.props.context,fe=He.draggable,$t=He.dropLevelOffset,ie=He.dropPosition,ue=He.prefixCls,ge=He.indent,he=He.dropIndicatorRender,De=He.dragOverNodeKey,Ne=He.direction,$e=!!fe,Re=!Te&&$e&&De===me,tn=ge!=null?ge:Gt.cacheIndent;return Gt.cacheIndent=ge,Re?he({dropPosition:ie,dropLevelOffset:$t,indent:tn,prefixCls:ue,direction:Ne}):null},Gt}return(0,Bt.Z)(te,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var ce=this.props.selectable,ae=this.props.context.selectable;return typeof ce=="boolean"?ce:ae}},{key:"render",value:function(){var ce,ae=this.props,xe=ae.eventKey,ye=ae.className,Te=ae.style,me=ae.dragOver,He=ae.dragOverGapTop,fe=ae.dragOverGapBottom,$t=ae.isLeaf,ie=ae.isStart,ue=ae.isEnd,ge=ae.expanded,he=ae.selected,De=ae.checked,Ne=ae.halfChecked,$e=ae.loading,Re=ae.domRef,tn=ae.active,Me=ae.data,Oe=ae.onMouseMove,Fe=ae.selectable,le=(0,Xt.Z)(ae,ut),Tt=this.props.context,bt=Tt.prefixCls,_t=Tt.filterTreeNode,Yt=Tt.keyEntities,Mt=Tt.dropContainerKey,Ut=Tt.dropTargetKey,St=Tt.draggingNodeKey,wt=this.isDisabled(),jt=(0,At.Z)(le,{aria:!0,data:!0}),Wt=(0,st.Z)(Yt,xe)||{},Vt=Wt.level,oe=ue[ue.length-1],de=this.isDraggable(),Ge=!wt&&de,Ye=St===xe,Ue=Fe!==void 0?{"aria-selected":!!Fe}:void 0;return It.createElement("div",(0,zt.Z)({ref:Re,className:Lt()(ye,"".concat(bt,"-treenode"),(ce={},(0,gt.Z)(ce,"".concat(bt,"-treenode-disabled"),wt),(0,gt.Z)(ce,"".concat(bt,"-treenode-switcher-").concat(ge?"open":"close"),!$t),(0,gt.Z)(ce,"".concat(bt,"-treenode-checkbox-checked"),De),(0,gt.Z)(ce,"".concat(bt,"-treenode-checkbox-indeterminate"),Ne),(0,gt.Z)(ce,"".concat(bt,"-treenode-selected"),he),(0,gt.Z)(ce,"".concat(bt,"-treenode-loading"),$e),(0,gt.Z)(ce,"".concat(bt,"-treenode-active"),tn),(0,gt.Z)(ce,"".concat(bt,"-treenode-leaf-last"),oe),(0,gt.Z)(ce,"".concat(bt,"-treenode-draggable"),de),(0,gt.Z)(ce,"dragging",Ye),(0,gt.Z)(ce,"drop-target",Ut===xe),(0,gt.Z)(ce,"drop-container",Mt===xe),(0,gt.Z)(ce,"drag-over",!wt&&me),(0,gt.Z)(ce,"drag-over-gap-top",!wt&&He),(0,gt.Z)(ce,"drag-over-gap-bottom",!wt&&fe),(0,gt.Z)(ce,"filter-node",_t&&_t((0,rt.F)(this.props))),ce)),style:Te,draggable:Ge,"aria-grabbed":Ye,onDragStart:Ge?this.onDragStart:void 0,onDragEnter:de?this.onDragEnter:void 0,onDragOver:de?this.onDragOver:void 0,onDragLeave:de?this.onDragLeave:void 0,onDrop:de?this.onDrop:void 0,onDragEnd:de?this.onDragEnd:void 0,onMouseMove:Oe},Ue,jt),It.createElement(tt,{prefixCls:bt,level:Vt,isStart:ie,isEnd:ue}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),te}(It.Component),Dt=function(qt){return It.createElement(mt.k.Consumer,null,function(te){return It.createElement(Pt,(0,zt.Z)({},qt,{context:te}))})};Dt.displayName="TreeNode",Dt.isTreeNode=1;var Zt=Dt},39378:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{k:function(){return gt}});var zt=Kt(59301),gt=zt.createContext(null)},23130:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{O:function(){return Zt.Z},Z:function(){return Tt}});var zt=Kt(92413),gt=Kt(400),Xt=Kt(39559),Qt=Kt(33708),kt=Kt(26407),Bt=Kt(6909),xt=Kt(4771),Ot=Kt(25314),Rt=Kt(9427),Ct=Kt(25440),Lt=Kt(92310),At=Kt.n(Lt),It=Kt(10228),mt=Kt(26112),et=Kt(48736),tt=Kt(59301),st=Kt(39378);function rt(bt){var _t=bt.dropPosition,Yt=bt.dropLevelOffset,Mt=bt.indent,Ut={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(_t){case-1:Ut.top=0,Ut.left=-Yt*Mt;break;case 1:Ut.bottom=0,Ut.left=-Yt*Mt;break;case 0:Ut.bottom=0,Ut.left=Mt;break}return tt.createElement("div",{style:Ut})}function ut(bt){if(bt==null)throw new TypeError("Cannot destructure "+bt)}var ct=Kt(33606),ft=Kt(37061),pt=Kt(34280),Pt=Kt(4409),Dt=Kt(77900),Zt=Kt(39417);function Ft(bt,_t){var Yt=tt.useState(!1),Mt=(0,ct.Z)(Yt,2),Ut=Mt[0],St=Mt[1];tt.useLayoutEffect(function(){if(Ut)return bt(),function(){_t()}},[Ut]),tt.useLayoutEffect(function(){return St(!0),function(){St(!1)}},[])}var qt=Kt(71430),te=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Gt=function(_t,Yt){var Mt=_t.className,Ut=_t.style,St=_t.motion,wt=_t.motionNodes,jt=_t.motionType,Wt=_t.onMotionStart,Vt=_t.onMotionEnd,oe=_t.active,de=_t.treeNodeRequiredProps,Ge=(0,ft.Z)(_t,te),Ye=tt.useState(!0),Ue=(0,ct.Z)(Ye,2),an=Ue[0],vn=Ue[1],ke=tt.useContext(st.k),Ze=ke.prefixCls,hn=wt&&jt!=="hide";(0,pt.Z)(function(){wt&&hn!==an&&vn(hn)},[wt]);var Pn=function(){wt&&Wt()},In=tt.useRef(!1),Bn=function(){wt&&!In.current&&(In.current=!0,Vt())};Ft(Pn,Bn);var Zn=function(ci){hn===ci&&Bn()};return wt?tt.createElement(Dt.default,(0,zt.Z)({ref:Yt,visible:an},St,{motionAppear:jt==="show",onVisibleChanged:Zn}),function(Gn,ci){var pi=Gn.className,xi=Gn.style;return tt.createElement("div",{ref:ci,className:At()("".concat(Ze,"-treenode-motion"),pi),style:xi},wt.map(function(Ci){var Gi=(0,zt.Z)({},(ut(Ci.data),Ci.data)),qi=Ci.title,bi=Ci.key,Yi=Ci.isStart,ui=Ci.isEnd;delete Gi.children;var ne=(0,qt.H8)(bi,de);return tt.createElement(Zt.Z,(0,zt.Z)({},Gi,ne,{title:qi,active:oe,data:Ci.data,key:bi,isStart:Yi,isEnd:ui}))}))}):tt.createElement(Zt.Z,(0,zt.Z)({domRef:Yt,className:Mt,style:Ut},Ge,{active:oe}))};Gt.displayName="MotionTreeNode";var ce=tt.forwardRef(Gt),ae=ce;function xe(){var bt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],_t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Yt=bt.length,Mt=_t.length;if(Math.abs(Yt-Mt)!==1)return{add:!1,key:null};function Ut(St,wt){var jt=new Map;St.forEach(function(Vt){jt.set(Vt,!0)});var Wt=wt.filter(function(Vt){return!jt.has(Vt)});return Wt.length===1?Wt[0]:null}return Yt<Mt?{add:!0,key:Ut(bt,_t)}:{add:!1,key:Ut(_t,bt)}}function ye(bt,_t,Yt){var Mt=bt.findIndex(function(jt){return jt.key===Yt}),Ut=bt[Mt+1],St=_t.findIndex(function(jt){return jt.key===Yt});if(Ut){var wt=_t.findIndex(function(jt){return jt.key===Ut.key});return _t.slice(St+1,wt)}return _t.slice(St+1)}var Te=["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"],me={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},He=function(){},fe="RC_TREE_MOTION_".concat(Math.random()),$t={key:fe},ie={key:fe,level:0,index:0,pos:"0",node:$t,nodes:[$t]},ue={parent:null,children:[],pos:ie.pos,data:$t,title:null,key:fe,isStart:[],isEnd:[]};function ge(bt,_t,Yt,Mt){return _t===!1||!Yt?bt:bt.slice(0,Math.ceil(Yt/Mt)+1)}function he(bt){var _t=bt.key,Yt=bt.pos;return(0,qt.km)(_t,Yt)}function De(bt){for(var _t=String(bt.data.key),Yt=bt;Yt.parent;)Yt=Yt.parent,_t="".concat(Yt.data.key," > ").concat(_t);return _t}var Ne=tt.forwardRef(function(bt,_t){var Yt=bt.prefixCls,Mt=bt.data,Ut=bt.selectable,St=bt.checkable,wt=bt.expandedKeys,jt=bt.selectedKeys,Wt=bt.checkedKeys,Vt=bt.loadedKeys,oe=bt.loadingKeys,de=bt.halfCheckedKeys,Ge=bt.keyEntities,Ye=bt.disabled,Ue=bt.dragging,an=bt.dragOverNodeKey,vn=bt.dropPosition,ke=bt.motion,Ze=bt.height,hn=bt.itemHeight,Pn=bt.virtual,In=bt.focusable,Bn=bt.activeItem,Zn=bt.focused,Gn=bt.tabIndex,ci=bt.onKeyDown,pi=bt.onFocus,xi=bt.onBlur,Ci=bt.onActiveChange,Gi=bt.onListChangeStart,qi=bt.onListChangeEnd,bi=(0,ft.Z)(bt,Te),Yi=tt.useRef(null),ui=tt.useRef(null);tt.useImperativeHandle(_t,function(){return{scrollTo:function(nn){Yi.current.scrollTo(nn)},getIndentWidth:function(){return ui.current.offsetWidth}}});var ne=tt.useState(wt),Wi=(0,ct.Z)(ne,2),Fi=Wi[0],nr=Wi[1],sr=tt.useState(Mt),xr=(0,ct.Z)(sr,2),vr=xr[0],Jn=xr[1],_n=tt.useState(Mt),qe=(0,ct.Z)(_n,2),Qe=qe[0],we=qe[1],fn=tt.useState([]),Sn=(0,ct.Z)(fn,2),ze=Sn[0],Le=Sn[1],cn=tt.useState(null),wn=(0,ct.Z)(cn,2),Nn=wn[0],Hn=wn[1],Pe=tt.useRef(Mt);Pe.current=Mt;function We(){var Ke=Pe.current;Jn(Ke),we(Ke),Le([]),Hn(null),qi()}(0,pt.Z)(function(){nr(wt);var Ke=xe(Fi,wt);if(Ke.key!==null)if(Ke.add){var nn=vr.findIndex(function(gn){var Ln=gn.key;return Ln===Ke.key}),_e=ge(ye(vr,Mt,Ke.key),Pn,Ze,hn),en=vr.slice();en.splice(nn+1,0,ue),we(en),Le(_e),Hn("show")}else{var un=Mt.findIndex(function(gn){var Ln=gn.key;return Ln===Ke.key}),sn=ge(ye(Mt,vr,Ke.key),Pn,Ze,hn),xn=Mt.slice();xn.splice(un+1,0,ue),we(xn),Le(sn),Hn("hide")}else vr!==Mt&&(Jn(Mt),we(Mt))},[wt,Mt]),tt.useEffect(function(){Ue||We()},[Ue]);var pn=ke?Qe:Mt,On={expandedKeys:wt,selectedKeys:jt,loadedKeys:Vt,loadingKeys:oe,checkedKeys:Wt,halfCheckedKeys:de,dragOverNodeKey:an,dropPosition:vn,keyEntities:Ge};return tt.createElement(tt.Fragment,null,Zn&&Bn&&tt.createElement("span",{style:me,"aria-live":"assertive"},De(Bn)),tt.createElement("div",null,tt.createElement("input",{style:me,disabled:In===!1||Ye,tabIndex:In!==!1?Gn:null,onKeyDown:ci,onFocus:pi,onBlur:xi,value:"",onChange:He,"aria-label":"for screen reader"})),tt.createElement("div",{className:"".concat(Yt,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},tt.createElement("div",{className:"".concat(Yt,"-indent")},tt.createElement("div",{ref:ui,className:"".concat(Yt,"-indent-unit")}))),tt.createElement(Pt.Z,(0,zt.Z)({},bi,{data:pn,itemKey:he,height:Ze,fullHeight:!1,virtual:Pn,itemHeight:hn,prefixCls:"".concat(Yt,"-list"),ref:Yi,onVisibleChange:function(nn,_e){var en=new Set(nn),un=_e.filter(function(sn){return!en.has(sn)});un.some(function(sn){return he(sn)===fe})&&We()}}),function(Ke){var nn=Ke.pos,_e=(0,zt.Z)({},(ut(Ke.data),Ke.data)),en=Ke.title,un=Ke.key,sn=Ke.isStart,xn=Ke.isEnd,gn=(0,qt.km)(un,nn);delete _e.key,delete _e.children;var Ln=(0,qt.H8)(gn,On);return tt.createElement(ae,(0,zt.Z)({},_e,Ln,{title:en,active:!!Bn&&un===Bn.key,pos:nn,data:Ke.data,isStart:sn,isEnd:xn,motion:ke,motionNodes:un===fe?ze:null,motionType:Nn,onMotionStart:Gi,onMotionEnd:We,treeNodeRequiredProps:On,onMouseMove:function(){Ci(null)}}))}))});Ne.displayName="NodeList";var $e=Ne,Re=Kt(35654),tn=Kt(90782),Me=Kt(67841),Oe=10,Fe=function(bt){(0,Rt.Z)(Yt,bt);var _t=(0,Ct.Z)(Yt);function Yt(){var Mt;(0,Bt.Z)(this,Yt);for(var Ut=arguments.length,St=new Array(Ut),wt=0;wt<Ut;wt++)St[wt]=arguments[wt];return Mt=_t.call.apply(_t,[this].concat(St)),Mt.destroyed=!1,Mt.delayedDragEnterLogic=void 0,Mt.loadingRetryTimes={},Mt.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,qt.w$)()},Mt.dragStartMousePosition=null,Mt.dragNode=void 0,Mt.currentMouseOverDroppableNodeKey=null,Mt.listRef=tt.createRef(),Mt.onNodeDragStart=function(jt,Wt){var Vt=Mt.state,oe=Vt.expandedKeys,de=Vt.keyEntities,Ge=Mt.props.onDragStart,Ye=Wt.props.eventKey;Mt.dragNode=Wt,Mt.dragStartMousePosition={x:jt.clientX,y:jt.clientY};var Ue=(0,Re._5)(oe,Ye);Mt.setState({draggingNodeKey:Ye,dragChildrenKeys:(0,Re.wA)(Ye,de),indent:Mt.listRef.current.getIndentWidth()}),Mt.setExpandedKeys(Ue),window.addEventListener("dragend",Mt.onWindowDragEnd),Ge==null||Ge({event:jt,node:(0,qt.F)(Wt.props)})},Mt.onNodeDragEnter=function(jt,Wt){var Vt=Mt.state,oe=Vt.expandedKeys,de=Vt.keyEntities,Ge=Vt.dragChildrenKeys,Ye=Vt.flattenNodes,Ue=Vt.indent,an=Mt.props,vn=an.onDragEnter,ke=an.onExpand,Ze=an.allowDrop,hn=an.direction,Pn=Wt.props,In=Pn.pos,Bn=Pn.eventKey,Zn=(0,Ot.Z)(Mt),Gn=Zn.dragNode;if(Mt.currentMouseOverDroppableNodeKey!==Bn&&(Mt.currentMouseOverDroppableNodeKey=Bn),!Gn){Mt.resetDragState();return}var ci=(0,Re.OM)(jt,Gn,Wt,Ue,Mt.dragStartMousePosition,Ze,Ye,de,oe,hn),pi=ci.dropPosition,xi=ci.dropLevelOffset,Ci=ci.dropTargetKey,Gi=ci.dropContainerKey,qi=ci.dropTargetPos,bi=ci.dropAllowed,Yi=ci.dragOverNodeKey;if(Ge.indexOf(Ci)!==-1||!bi){Mt.resetDragState();return}if(Mt.delayedDragEnterLogic||(Mt.delayedDragEnterLogic={}),Object.keys(Mt.delayedDragEnterLogic).forEach(function(ui){clearTimeout(Mt.delayedDragEnterLogic[ui])}),Gn.props.eventKey!==Wt.props.eventKey&&(jt.persist(),Mt.delayedDragEnterLogic[In]=window.setTimeout(function(){if(Mt.state.draggingNodeKey!==null){var ui=(0,kt.Z)(oe),ne=(0,Me.Z)(de,Wt.props.eventKey);ne&&(ne.children||[]).length&&(ui=(0,Re.L0)(oe,Wt.props.eventKey)),"expandedKeys"in Mt.props||Mt.setExpandedKeys(ui),ke==null||ke(ui,{node:(0,qt.F)(Wt.props),expanded:!0,nativeEvent:jt.nativeEvent})}},800)),Gn.props.eventKey===Ci&&xi===0){Mt.resetDragState();return}Mt.setState({dragOverNodeKey:Yi,dropPosition:pi,dropLevelOffset:xi,dropTargetKey:Ci,dropContainerKey:Gi,dropTargetPos:qi,dropAllowed:bi}),vn==null||vn({event:jt,node:(0,qt.F)(Wt.props),expandedKeys:oe})},Mt.onNodeDragOver=function(jt,Wt){var Vt=Mt.state,oe=Vt.dragChildrenKeys,de=Vt.flattenNodes,Ge=Vt.keyEntities,Ye=Vt.expandedKeys,Ue=Vt.indent,an=Mt.props,vn=an.onDragOver,ke=an.allowDrop,Ze=an.direction,hn=(0,Ot.Z)(Mt),Pn=hn.dragNode;if(Pn){var In=(0,Re.OM)(jt,Pn,Wt,Ue,Mt.dragStartMousePosition,ke,de,Ge,Ye,Ze),Bn=In.dropPosition,Zn=In.dropLevelOffset,Gn=In.dropTargetKey,ci=In.dropContainerKey,pi=In.dropAllowed,xi=In.dropTargetPos,Ci=In.dragOverNodeKey;oe.indexOf(Gn)!==-1||!pi||(Pn.props.eventKey===Gn&&Zn===0?Mt.state.dropPosition===null&&Mt.state.dropLevelOffset===null&&Mt.state.dropTargetKey===null&&Mt.state.dropContainerKey===null&&Mt.state.dropTargetPos===null&&Mt.state.dropAllowed===!1&&Mt.state.dragOverNodeKey===null||Mt.resetDragState():Bn===Mt.state.dropPosition&&Zn===Mt.state.dropLevelOffset&&Gn===Mt.state.dropTargetKey&&ci===Mt.state.dropContainerKey&&xi===Mt.state.dropTargetPos&&pi===Mt.state.dropAllowed&&Ci===Mt.state.dragOverNodeKey||Mt.setState({dropPosition:Bn,dropLevelOffset:Zn,dropTargetKey:Gn,dropContainerKey:ci,dropTargetPos:xi,dropAllowed:pi,dragOverNodeKey:Ci}),vn==null||vn({event:jt,node:(0,qt.F)(Wt.props)}))}},Mt.onNodeDragLeave=function(jt,Wt){Mt.currentMouseOverDroppableNodeKey===Wt.props.eventKey&&!jt.currentTarget.contains(jt.relatedTarget)&&(Mt.resetDragState(),Mt.currentMouseOverDroppableNodeKey=null);var Vt=Mt.props.onDragLeave;Vt==null||Vt({event:jt,node:(0,qt.F)(Wt.props)})},Mt.onWindowDragEnd=function(jt){Mt.onNodeDragEnd(jt,null,!0),window.removeEventListener("dragend",Mt.onWindowDragEnd)},Mt.onNodeDragEnd=function(jt,Wt){var Vt=Mt.props.onDragEnd;Mt.setState({dragOverNodeKey:null}),Mt.cleanDragState(),Vt==null||Vt({event:jt,node:(0,qt.F)(Wt.props)}),Mt.dragNode=null,window.removeEventListener("dragend",Mt.onWindowDragEnd)},Mt.onNodeDrop=function(jt,Wt){var Vt,oe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,de=Mt.state,Ge=de.dragChildrenKeys,Ye=de.dropPosition,Ue=de.dropTargetKey,an=de.dropTargetPos,vn=de.dropAllowed;if(vn){var ke=Mt.props.onDrop;if(Mt.setState({dragOverNodeKey:null}),Mt.cleanDragState(),Ue!==null){var Ze=(0,Qt.Z)((0,Qt.Z)({},(0,qt.H8)(Ue,Mt.getTreeNodeRequiredProps())),{},{active:((Vt=Mt.getActiveItem())===null||Vt===void 0?void 0:Vt.key)===Ue,data:(0,Me.Z)(Mt.state.keyEntities,Ue).node}),hn=Ge.indexOf(Ue)!==-1;(0,et.ZP)(!hn,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Pn=(0,Re.yx)(an),In={event:jt,node:(0,qt.F)(Ze),dragNode:Mt.dragNode?(0,qt.F)(Mt.dragNode.props):null,dragNodesKeys:[Mt.dragNode.props.eventKey].concat(Ge),dropToGap:Ye!==0,dropPosition:Ye+Number(Pn[Pn.length-1])};oe||ke==null||ke(In),Mt.dragNode=null}}},Mt.cleanDragState=function(){var jt=Mt.state.draggingNodeKey;jt!==null&&Mt.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),Mt.dragStartMousePosition=null,Mt.currentMouseOverDroppableNodeKey=null},Mt.triggerExpandActionExpand=function(jt,Wt){var Vt=Mt.state,oe=Vt.expandedKeys,de=Vt.flattenNodes,Ge=Wt.expanded,Ye=Wt.key,Ue=Wt.isLeaf;if(!(Ue||jt.shiftKey||jt.metaKey||jt.ctrlKey)){var an=de.filter(function(ke){return ke.key===Ye})[0],vn=(0,qt.F)((0,Qt.Z)((0,Qt.Z)({},(0,qt.H8)(Ye,Mt.getTreeNodeRequiredProps())),{},{data:an.data}));Mt.setExpandedKeys(Ge?(0,Re._5)(oe,Ye):(0,Re.L0)(oe,Ye)),Mt.onNodeExpand(jt,vn)}},Mt.onNodeClick=function(jt,Wt){var Vt=Mt.props,oe=Vt.onClick,de=Vt.expandAction;de==="click"&&Mt.triggerExpandActionExpand(jt,Wt),oe==null||oe(jt,Wt)},Mt.onNodeDoubleClick=function(jt,Wt){var Vt=Mt.props,oe=Vt.onDoubleClick,de=Vt.expandAction;de==="doubleClick"&&Mt.triggerExpandActionExpand(jt,Wt),oe==null||oe(jt,Wt)},Mt.onNodeSelect=function(jt,Wt){var Vt=Mt.state.selectedKeys,oe=Mt.state,de=oe.keyEntities,Ge=oe.fieldNames,Ye=Mt.props,Ue=Ye.onSelect,an=Ye.multiple,vn=Wt.selected,ke=Wt[Ge.key],Ze=!vn;Ze?an?Vt=(0,Re.L0)(Vt,ke):Vt=[ke]:Vt=(0,Re._5)(Vt,ke);var hn=Vt.map(function(Pn){var In=(0,Me.Z)(de,Pn);return In?In.node:null}).filter(function(Pn){return Pn});Mt.setUncontrolledState({selectedKeys:Vt}),Ue==null||Ue(Vt,{event:"select",selected:Ze,node:Wt,selectedNodes:hn,nativeEvent:jt.nativeEvent})},Mt.onNodeCheck=function(jt,Wt,Vt){var oe=Mt.state,de=oe.keyEntities,Ge=oe.checkedKeys,Ye=oe.halfCheckedKeys,Ue=Mt.props,an=Ue.checkStrictly,vn=Ue.onCheck,ke=Wt.key,Ze,hn={event:"check",node:Wt,checked:Vt,nativeEvent:jt.nativeEvent};if(an){var Pn=Vt?(0,Re.L0)(Ge,ke):(0,Re._5)(Ge,ke),In=(0,Re._5)(Ye,ke);Ze={checked:Pn,halfChecked:In},hn.checkedNodes=Pn.map(function(xi){return(0,Me.Z)(de,xi)}).filter(function(xi){return xi}).map(function(xi){return xi.node}),Mt.setUncontrolledState({checkedKeys:Pn})}else{var Bn=(0,tn.S)([].concat((0,kt.Z)(Ge),[ke]),!0,de),Zn=Bn.checkedKeys,Gn=Bn.halfCheckedKeys;if(!Vt){var ci=new Set(Zn);ci.delete(ke);var pi=(0,tn.S)(Array.from(ci),{checked:!1,halfCheckedKeys:Gn},de);Zn=pi.checkedKeys,Gn=pi.halfCheckedKeys}Ze=Zn,hn.checkedNodes=[],hn.checkedNodesPositions=[],hn.halfCheckedKeys=Gn,Zn.forEach(function(xi){var Ci=(0,Me.Z)(de,xi);if(Ci){var Gi=Ci.node,qi=Ci.pos;hn.checkedNodes.push(Gi),hn.checkedNodesPositions.push({node:Gi,pos:qi})}}),Mt.setUncontrolledState({checkedKeys:Zn},!1,{halfCheckedKeys:Gn})}vn==null||vn(Ze,hn)},Mt.onNodeLoad=function(jt){var Wt=jt.key,Vt=new Promise(function(oe,de){Mt.setState(function(Ge){var Ye=Ge.loadedKeys,Ue=Ye===void 0?[]:Ye,an=Ge.loadingKeys,vn=an===void 0?[]:an,ke=Mt.props,Ze=ke.loadData,hn=ke.onLoad;if(!Ze||Ue.indexOf(Wt)!==-1||vn.indexOf(Wt)!==-1)return null;var Pn=Ze(jt);return Pn.then(function(){var In=Mt.state.loadedKeys,Bn=(0,Re.L0)(In,Wt);hn==null||hn(Bn,{event:"load",node:jt}),Mt.setUncontrolledState({loadedKeys:Bn}),Mt.setState(function(Zn){return{loadingKeys:(0,Re._5)(Zn.loadingKeys,Wt)}}),oe()}).catch(function(In){if(Mt.setState(function(Zn){return{loadingKeys:(0,Re._5)(Zn.loadingKeys,Wt)}}),Mt.loadingRetryTimes[Wt]=(Mt.loadingRetryTimes[Wt]||0)+1,Mt.loadingRetryTimes[Wt]>=Oe){var Bn=Mt.state.loadedKeys;(0,et.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),Mt.setUncontrolledState({loadedKeys:(0,Re.L0)(Bn,Wt)}),oe()}de(In)}),{loadingKeys:(0,Re.L0)(vn,Wt)}})});return Vt.catch(function(){}),Vt},Mt.onNodeMouseEnter=function(jt,Wt){var Vt=Mt.props.onMouseEnter;Vt==null||Vt({event:jt,node:Wt})},Mt.onNodeMouseLeave=function(jt,Wt){var Vt=Mt.props.onMouseLeave;Vt==null||Vt({event:jt,node:Wt})},Mt.onNodeContextMenu=function(jt,Wt){var Vt=Mt.props.onRightClick;Vt&&(jt.preventDefault(),Vt({event:jt,node:Wt}))},Mt.onFocus=function(){var jt=Mt.props.onFocus;Mt.setState({focused:!0});for(var Wt=arguments.length,Vt=new Array(Wt),oe=0;oe<Wt;oe++)Vt[oe]=arguments[oe];jt==null||jt.apply(void 0,Vt)},Mt.onBlur=function(){var jt=Mt.props.onBlur;Mt.setState({focused:!1}),Mt.onActiveChange(null);for(var Wt=arguments.length,Vt=new Array(Wt),oe=0;oe<Wt;oe++)Vt[oe]=arguments[oe];jt==null||jt.apply(void 0,Vt)},Mt.getTreeNodeRequiredProps=function(){var jt=Mt.state,Wt=jt.expandedKeys,Vt=jt.selectedKeys,oe=jt.loadedKeys,de=jt.loadingKeys,Ge=jt.checkedKeys,Ye=jt.halfCheckedKeys,Ue=jt.dragOverNodeKey,an=jt.dropPosition,vn=jt.keyEntities;return{expandedKeys:Wt||[],selectedKeys:Vt||[],loadedKeys:oe||[],loadingKeys:de||[],checkedKeys:Ge||[],halfCheckedKeys:Ye||[],dragOverNodeKey:Ue,dropPosition:an,keyEntities:vn}},Mt.setExpandedKeys=function(jt){var Wt=Mt.state,Vt=Wt.treeData,oe=Wt.fieldNames,de=(0,qt.oH)(Vt,jt,oe);Mt.setUncontrolledState({expandedKeys:jt,flattenNodes:de},!0)},Mt.onNodeExpand=function(jt,Wt){var Vt=Mt.state.expandedKeys,oe=Mt.state,de=oe.listChanging,Ge=oe.fieldNames,Ye=Mt.props,Ue=Ye.onExpand,an=Ye.loadData,vn=Wt.expanded,ke=Wt[Ge.key];if(!de){var Ze=Vt.indexOf(ke),hn=!vn;if((0,et.ZP)(vn&&Ze!==-1||!vn&&Ze===-1,"Expand state not sync with index check"),hn?Vt=(0,Re.L0)(Vt,ke):Vt=(0,Re._5)(Vt,ke),Mt.setExpandedKeys(Vt),Ue==null||Ue(Vt,{node:Wt,expanded:hn,nativeEvent:jt.nativeEvent}),hn&&an){var Pn=Mt.onNodeLoad(Wt);Pn&&Pn.then(function(){var In=(0,qt.oH)(Mt.state.treeData,Vt,Ge);Mt.setUncontrolledState({flattenNodes:In})}).catch(function(){var In=Mt.state.expandedKeys,Bn=(0,Re._5)(In,ke);Mt.setExpandedKeys(Bn)})}}},Mt.onListChangeStart=function(){Mt.setUncontrolledState({listChanging:!0})},Mt.onListChangeEnd=function(){setTimeout(function(){Mt.setUncontrolledState({listChanging:!1})})},Mt.onActiveChange=function(jt){var Wt=Mt.state.activeKey,Vt=Mt.props.onActiveChange;Wt!==jt&&(Mt.setState({activeKey:jt}),jt!==null&&Mt.scrollTo({key:jt}),Vt==null||Vt(jt))},Mt.getActiveItem=function(){var jt=Mt.state,Wt=jt.activeKey,Vt=jt.flattenNodes;return Wt===null?null:Vt.find(function(oe){var de=oe.key;return de===Wt})||null},Mt.offsetActiveKey=function(jt){var Wt=Mt.state,Vt=Wt.flattenNodes,oe=Wt.activeKey,de=Vt.findIndex(function(Ue){var an=Ue.key;return an===oe});de===-1&&jt<0&&(de=Vt.length),de=(de+jt+Vt.length)%Vt.length;var Ge=Vt[de];if(Ge){var Ye=Ge.key;Mt.onActiveChange(Ye)}else Mt.onActiveChange(null)},Mt.onKeyDown=function(jt){var Wt=Mt.state,Vt=Wt.activeKey,oe=Wt.expandedKeys,de=Wt.checkedKeys,Ge=Wt.fieldNames,Ye=Mt.props,Ue=Ye.onKeyDown,an=Ye.checkable,vn=Ye.selectable;switch(jt.which){case It.Z.UP:{Mt.offsetActiveKey(-1),jt.preventDefault();break}case It.Z.DOWN:{Mt.offsetActiveKey(1),jt.preventDefault();break}}var ke=Mt.getActiveItem();if(ke&&ke.data){var Ze=Mt.getTreeNodeRequiredProps(),hn=ke.data.isLeaf===!1||!!(ke.data[Ge.children]||[]).length,Pn=(0,qt.F)((0,Qt.Z)((0,Qt.Z)({},(0,qt.H8)(Vt,Ze)),{},{data:ke.data,active:!0}));switch(jt.which){case It.Z.LEFT:{hn&&oe.includes(Vt)?Mt.onNodeExpand({},Pn):ke.parent&&Mt.onActiveChange(ke.parent.key),jt.preventDefault();break}case It.Z.RIGHT:{hn&&!oe.includes(Vt)?Mt.onNodeExpand({},Pn):ke.children&&ke.children.length&&Mt.onActiveChange(ke.children[0].key),jt.preventDefault();break}case It.Z.ENTER:case It.Z.SPACE:{an&&!Pn.disabled&&Pn.checkable!==!1&&!Pn.disableCheckbox?Mt.onNodeCheck({},Pn,!de.includes(Vt)):!an&&vn&&!Pn.disabled&&Pn.selectable!==!1&&Mt.onNodeSelect({},Pn);break}}}Ue==null||Ue(jt)},Mt.setUncontrolledState=function(jt){var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Vt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Mt.destroyed){var oe=!1,de=!0,Ge={};Object.keys(jt).forEach(function(Ye){if(Ye in Mt.props){de=!1;return}oe=!0,Ge[Ye]=jt[Ye]}),oe&&(!Wt||de)&&Mt.setState((0,Qt.Z)((0,Qt.Z)({},Ge),Vt))}},Mt.scrollTo=function(jt){Mt.listRef.current.scrollTo(jt)},Mt}return(0,xt.Z)(Yt,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Ut=this.props.activeKey;Ut!==void 0&&Ut!==this.state.activeKey&&(this.setState({activeKey:Ut}),Ut!==null&&this.scrollTo({key:Ut}))}},{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 Ut,St=this.state,wt=St.focused,jt=St.flattenNodes,Wt=St.keyEntities,Vt=St.draggingNodeKey,oe=St.activeKey,de=St.dropLevelOffset,Ge=St.dropContainerKey,Ye=St.dropTargetKey,Ue=St.dropPosition,an=St.dragOverNodeKey,vn=St.indent,ke=this.props,Ze=ke.prefixCls,hn=ke.className,Pn=ke.style,In=ke.showLine,Bn=ke.focusable,Zn=ke.tabIndex,Gn=Zn===void 0?0:Zn,ci=ke.selectable,pi=ke.showIcon,xi=ke.icon,Ci=ke.switcherIcon,Gi=ke.draggable,qi=ke.checkable,bi=ke.checkStrictly,Yi=ke.disabled,ui=ke.motion,ne=ke.loadData,Wi=ke.filterTreeNode,Fi=ke.height,nr=ke.itemHeight,sr=ke.virtual,xr=ke.titleRender,vr=ke.dropIndicatorRender,Jn=ke.onContextMenu,_n=ke.onScroll,qe=ke.direction,Qe=ke.rootClassName,we=ke.rootStyle,fn=(0,mt.Z)(this.props,{aria:!0,data:!0}),Sn;return Gi&&((0,Xt.Z)(Gi)==="object"?Sn=Gi:typeof Gi=="function"?Sn={nodeDraggable:Gi}:Sn={}),tt.createElement(st.k.Provider,{value:{prefixCls:Ze,selectable:ci,showIcon:pi,icon:xi,switcherIcon:Ci,draggable:Sn,draggingNodeKey:Vt,checkable:qi,checkStrictly:bi,disabled:Yi,keyEntities:Wt,dropLevelOffset:de,dropContainerKey:Ge,dropTargetKey:Ye,dropPosition:Ue,dragOverNodeKey:an,indent:vn,direction:qe,dropIndicatorRender:vr,loadData:ne,filterTreeNode:Wi,titleRender:xr,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}},tt.createElement("div",{role:"tree",className:At()(Ze,hn,Qe,(Ut={},(0,gt.Z)(Ut,"".concat(Ze,"-show-line"),In),(0,gt.Z)(Ut,"".concat(Ze,"-focused"),wt),(0,gt.Z)(Ut,"".concat(Ze,"-active-focused"),oe!==null),Ut)),style:we},tt.createElement($e,(0,zt.Z)({ref:this.listRef,prefixCls:Ze,style:Pn,data:jt,disabled:Yi,selectable:ci,checkable:!!qi,motion:ui,dragging:Vt!==null,height:Fi,itemHeight:nr,virtual:sr,focusable:Bn,focused:wt,tabIndex:Gn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Jn,onScroll:_n},this.getTreeNodeRequiredProps(),fn))))}}],[{key:"getDerivedStateFromProps",value:function(Ut,St){var wt=St.prevProps,jt={prevProps:Ut};function Wt(Bn){return!wt&&Bn in Ut||wt&&wt[Bn]!==Ut[Bn]}var Vt,oe=St.fieldNames;if(Wt("fieldNames")&&(oe=(0,qt.w$)(Ut.fieldNames),jt.fieldNames=oe),Wt("treeData")?Vt=Ut.treeData:Wt("children")&&((0,et.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Vt=(0,qt.zn)(Ut.children)),Vt){jt.treeData=Vt;var de=(0,qt.I8)(Vt,{fieldNames:oe});jt.keyEntities=(0,Qt.Z)((0,gt.Z)({},fe,ie),de.keyEntities)}var Ge=jt.keyEntities||St.keyEntities;if(Wt("expandedKeys")||wt&&Wt("autoExpandParent"))jt.expandedKeys=Ut.autoExpandParent||!wt&&Ut.defaultExpandParent?(0,Re.r7)(Ut.expandedKeys,Ge):Ut.expandedKeys;else if(!wt&&Ut.defaultExpandAll){var Ye=(0,Qt.Z)({},Ge);delete Ye[fe],jt.expandedKeys=Object.keys(Ye).map(function(Bn){return Ye[Bn].key})}else!wt&&Ut.defaultExpandedKeys&&(jt.expandedKeys=Ut.autoExpandParent||Ut.defaultExpandParent?(0,Re.r7)(Ut.defaultExpandedKeys,Ge):Ut.defaultExpandedKeys);if(jt.expandedKeys||delete jt.expandedKeys,Vt||jt.expandedKeys){var Ue=(0,qt.oH)(Vt||St.treeData,jt.expandedKeys||St.expandedKeys,oe);jt.flattenNodes=Ue}if(Ut.selectable&&(Wt("selectedKeys")?jt.selectedKeys=(0,Re.BT)(Ut.selectedKeys,Ut):!wt&&Ut.defaultSelectedKeys&&(jt.selectedKeys=(0,Re.BT)(Ut.defaultSelectedKeys,Ut))),Ut.checkable){var an;if(Wt("checkedKeys")?an=(0,Re.E6)(Ut.checkedKeys)||{}:!wt&&Ut.defaultCheckedKeys?an=(0,Re.E6)(Ut.defaultCheckedKeys)||{}:Vt&&(an=(0,Re.E6)(Ut.checkedKeys)||{checkedKeys:St.checkedKeys,halfCheckedKeys:St.halfCheckedKeys}),an){var vn=an,ke=vn.checkedKeys,Ze=ke===void 0?[]:ke,hn=vn.halfCheckedKeys,Pn=hn===void 0?[]:hn;if(!Ut.checkStrictly){var In=(0,tn.S)(Ze,!0,Ge);Ze=In.checkedKeys,Pn=In.halfCheckedKeys}jt.checkedKeys=Ze,jt.halfCheckedKeys=Pn}}return Wt("loadedKeys")&&(jt.loadedKeys=Ut.loadedKeys),jt}}]),Yt}(tt.Component);Fe.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:rt,allowDrop:function(){return!0},expandAction:!1},Fe.TreeNode=Zt.Z;var le=Fe,Tt=le},35654:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{BT:function(){return tt},E6:function(){return ut},L0:function(){return Ct},OM:function(){return et},_5:function(){return Rt},r7:function(){return ct},wA:function(){return At},yx:function(){return Lt}});var zt=Kt(26407),gt=Kt(39559),Xt=Kt(48736),Qt=Kt(59301),kt=Kt(39417),Bt=Kt(67841),xt=Kt(71430),Ot=null;function Rt(ft,pt){if(!ft)return[];var Pt=ft.slice(),Dt=Pt.indexOf(pt);return Dt>=0&&Pt.splice(Dt,1),Pt}function Ct(ft,pt){var Pt=(ft||[]).slice();return Pt.indexOf(pt)===-1&&Pt.push(pt),Pt}function Lt(ft){return ft.split("-")}function At(ft,pt){var Pt=[],Dt=(0,Bt.Z)(pt,ft);function Zt(){var Ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ft.forEach(function(qt){var te=qt.key,Gt=qt.children;Pt.push(te),Zt(Gt)})}return Zt(Dt.children),Pt}function It(ft){if(ft.parent){var pt=Lt(ft.pos);return Number(pt[pt.length-1])===ft.parent.children.length-1}return!1}function mt(ft){var pt=Lt(ft.pos);return Number(pt[pt.length-1])===0}function et(ft,pt,Pt,Dt,Zt,Ft,qt,te,Gt,ce){var ae,xe=ft.clientX,ye=ft.clientY,Te=ft.target.getBoundingClientRect(),me=Te.top,He=Te.height,fe=(ce==="rtl"?-1:1)*(((Zt==null?void 0:Zt.x)||0)-xe),$t=(fe-12)/Dt,ie=(0,Bt.Z)(te,Pt.props.eventKey);if(ye<me+He/2){var ue=qt.findIndex(function(Tt){return Tt.key===ie.key}),ge=ue<=0?0:ue-1,he=qt[ge].key;ie=(0,Bt.Z)(te,he)}var De=ie.key,Ne=ie,$e=ie.key,Re=0,tn=0;if(!Gt.includes(De))for(var Me=0;Me<$t&&It(ie);Me+=1)ie=ie.parent,tn+=1;var Oe=pt.props.data,Fe=ie.node,le=!0;return mt(ie)&&ie.level===0&&ye<me+He/2&&Ft({dragNode:Oe,dropNode:Fe,dropPosition:-1})&&ie.key===Pt.props.eventKey?Re=-1:(Ne.children||[]).length&&Gt.includes($e)?Ft({dragNode:Oe,dropNode:Fe,dropPosition:0})?Re=0:le=!1:tn===0?$t>-1.5?Ft({dragNode:Oe,dropNode:Fe,dropPosition:1})?Re=1:le=!1:Ft({dragNode:Oe,dropNode:Fe,dropPosition:0})?Re=0:Ft({dragNode:Oe,dropNode:Fe,dropPosition:1})?Re=1:le=!1:Ft({dragNode:Oe,dropNode:Fe,dropPosition:1})?Re=1:le=!1,{dropPosition:Re,dropLevelOffset:tn,dropTargetKey:ie.key,dropTargetPos:ie.pos,dragOverNodeKey:$e,dropContainerKey:Re===0?null:((ae=ie.parent)===null||ae===void 0?void 0:ae.key)||null,dropAllowed:le}}function tt(ft,pt){if(ft){var Pt=pt.multiple;return Pt?ft.slice():ft.length?[ft[0]]:ft}}var st=function(pt){return pt};function rt(ft,pt){if(!ft)return[];var Pt=pt||{},Dt=Pt.processProps,Zt=Dt===void 0?st:Dt,Ft=Array.isArray(ft)?ft:[ft];return Ft.map(function(qt){var te=qt.children,Gt=_objectWithoutProperties(qt,Ot),ce=rt(te,pt);return React.createElement(TreeNode,_extends({key:Gt.key},Zt(Gt)),ce)})}function ut(ft){if(!ft)return null;var pt;if(Array.isArray(ft))pt={checkedKeys:ft,halfCheckedKeys:void 0};else if((0,gt.Z)(ft)==="object")pt={checkedKeys:ft.checked||void 0,halfCheckedKeys:ft.halfChecked||void 0};else return(0,Xt.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return pt}function ct(ft,pt){var Pt=new Set;function Dt(Zt){if(!Pt.has(Zt)){var Ft=(0,Bt.Z)(pt,Zt);if(Ft){Pt.add(Zt);var qt=Ft.parent,te=Ft.node;te.disabled||qt&&Dt(qt.key)}}}return(ft||[]).forEach(function(Zt){Dt(Zt)}),(0,zt.Z)(Pt)}},90782:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{S:function(){return xt}});var zt=Kt(48736),gt=Kt(67841);function Xt(Ot,Rt){var Ct=new Set;return Ot.forEach(function(Lt){Rt.has(Lt)||Ct.add(Lt)}),Ct}function Qt(Ot){var Rt=Ot||{},Ct=Rt.disabled,Lt=Rt.disableCheckbox,At=Rt.checkable;return!!(Ct||Lt)||At===!1}function kt(Ot,Rt,Ct,Lt){for(var At=new Set(Ot),It=new Set,mt=0;mt<=Ct;mt+=1){var et=Rt.get(mt)||new Set;et.forEach(function(ut){var ct=ut.key,ft=ut.node,pt=ut.children,Pt=pt===void 0?[]:pt;At.has(ct)&&!Lt(ft)&&Pt.filter(function(Dt){return!Lt(Dt.node)}).forEach(function(Dt){At.add(Dt.key)})})}for(var tt=new Set,st=Ct;st>=0;st-=1){var rt=Rt.get(st)||new Set;rt.forEach(function(ut){var ct=ut.parent,ft=ut.node;if(!(Lt(ft)||!ut.parent||tt.has(ut.parent.key))){if(Lt(ut.parent.node)){tt.add(ct.key);return}var pt=!0,Pt=!1;(ct.children||[]).filter(function(Dt){return!Lt(Dt.node)}).forEach(function(Dt){var Zt=Dt.key,Ft=At.has(Zt);pt&&!Ft&&(pt=!1),!Pt&&(Ft||It.has(Zt))&&(Pt=!0)}),pt&&At.add(ct.key),Pt&&It.add(ct.key),tt.add(ct.key)}})}return{checkedKeys:Array.from(At),halfCheckedKeys:Array.from(Xt(It,At))}}function Bt(Ot,Rt,Ct,Lt,At){for(var It=new Set(Ot),mt=new Set(Rt),et=0;et<=Lt;et+=1){var tt=Ct.get(et)||new Set;tt.forEach(function(ct){var ft=ct.key,pt=ct.node,Pt=ct.children,Dt=Pt===void 0?[]:Pt;!It.has(ft)&&!mt.has(ft)&&!At(pt)&&Dt.filter(function(Zt){return!At(Zt.node)}).forEach(function(Zt){It.delete(Zt.key)})})}mt=new Set;for(var st=new Set,rt=Lt;rt>=0;rt-=1){var ut=Ct.get(rt)||new Set;ut.forEach(function(ct){var ft=ct.parent,pt=ct.node;if(!(At(pt)||!ct.parent||st.has(ct.parent.key))){if(At(ct.parent.node)){st.add(ft.key);return}var Pt=!0,Dt=!1;(ft.children||[]).filter(function(Zt){return!At(Zt.node)}).forEach(function(Zt){var Ft=Zt.key,qt=It.has(Ft);Pt&&!qt&&(Pt=!1),!Dt&&(qt||mt.has(Ft))&&(Dt=!0)}),Pt||It.delete(ft.key),Dt&&mt.add(ft.key),st.add(ft.key)}})}return{checkedKeys:Array.from(It),halfCheckedKeys:Array.from(Xt(mt,It))}}function xt(Ot,Rt,Ct,Lt){var At=[],It;Lt?It=Lt:It=Qt;var mt=new Set(Ot.filter(function(rt){var ut=!!(0,gt.Z)(Ct,rt);return ut||At.push(rt),ut})),et=new Map,tt=0;Object.keys(Ct).forEach(function(rt){var ut=Ct[rt],ct=ut.level,ft=et.get(ct);ft||(ft=new Set,et.set(ct,ft)),ft.add(ut),tt=Math.max(tt,ct)}),(0,zt.ZP)(!At.length,"Tree missing follow keys: ".concat(At.slice(0,100).map(function(rt){return"'".concat(rt,"'")}).join(", ")));var st;return Rt===!0?st=kt(mt,et,tt,It):st=Bt(mt,Rt.halfCheckedKeys,et,tt,It),st}},67841:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return zt}});function zt(gt,Xt){return gt[Xt]}},71430:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{F:function(){return ct},H8:function(){return ut},I8:function(){return rt},km:function(){return At},oH:function(){return tt},w$:function(){return It},zn:function(){return et}});var zt=Kt(39559),gt=Kt(26407),Xt=Kt(33708),Qt=Kt(37061),kt=Kt(11592),Bt=Kt(2738),xt=Kt(48736),Ot=Kt(67841),Rt=["children"];function Ct(ft,pt){return"".concat(ft,"-").concat(pt)}function Lt(ft){return ft&&ft.type&&ft.type.isTreeNode}function At(ft,pt){return ft!=null?ft:pt}function It(ft){var pt=ft||{},Pt=pt.title,Dt=pt._title,Zt=pt.key,Ft=pt.children,qt=Pt||"title";return{title:qt,_title:Dt||[qt],key:Zt||"key",children:Ft||"children"}}function mt(ft,pt){var Pt=new Map;function Dt(Zt){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Zt||[]).forEach(function(qt){var te=qt[pt.key],Gt=qt[pt.children];warning(te!=null,"Tree node must have a certain key: [".concat(Ft).concat(te,"]"));var ce=String(te);warning(!Pt.has(ce)||te===null||te===void 0,"Same 'key' exist in the Tree: ".concat(ce)),Pt.set(ce,!0),Dt(Gt,"".concat(Ft).concat(ce," > "))})}Dt(ft)}function et(ft){function pt(Pt){var Dt=(0,kt.Z)(Pt);return Dt.map(function(Zt){if(!Lt(Zt))return(0,xt.ZP)(!Zt,"Tree/TreeNode can only accept TreeNode as children."),null;var Ft=Zt.key,qt=Zt.props,te=qt.children,Gt=(0,Qt.Z)(qt,Rt),ce=(0,Xt.Z)({key:Ft},Gt),ae=pt(te);return ae.length&&(ce.children=ae),ce}).filter(function(Zt){return Zt})}return pt(ft)}function tt(ft,pt,Pt){var Dt=It(Pt),Zt=Dt._title,Ft=Dt.key,qt=Dt.children,te=new Set(pt===!0?[]:pt),Gt=[];function ce(ae){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return ae.map(function(ye,Te){for(var me=Ct(xe?xe.pos:"0",Te),He=At(ye[Ft],me),fe,$t=0;$t<Zt.length;$t+=1){var ie=Zt[$t];if(ye[ie]!==void 0){fe=ye[ie];break}}var ue=(0,Xt.Z)((0,Xt.Z)({},(0,Bt.Z)(ye,[].concat((0,gt.Z)(Zt),[Ft,qt]))),{},{title:fe,key:He,parent:xe,pos:me,children:null,data:ye,isStart:[].concat((0,gt.Z)(xe?xe.isStart:[]),[Te===0]),isEnd:[].concat((0,gt.Z)(xe?xe.isEnd:[]),[Te===ae.length-1])});return Gt.push(ue),pt===!0||te.has(He)?ue.children=ce(ye[qt]||[],ue):ue.children=[],ue})}return ce(ft),Gt}function st(ft,pt,Pt){var Dt={};(0,zt.Z)(Pt)==="object"?Dt=Pt:Dt={externalGetKey:Pt},Dt=Dt||{};var Zt=Dt,Ft=Zt.childrenPropName,qt=Zt.externalGetKey,te=Zt.fieldNames,Gt=It(te),ce=Gt.key,ae=Gt.children,xe=Ft||ae,ye;qt?typeof qt=="string"?ye=function(He){return He[qt]}:typeof qt=="function"&&(ye=function(He){return qt(He)}):ye=function(He,fe){return At(He[ce],fe)};function Te(me,He,fe,$t){var ie=me?me[xe]:ft,ue=me?Ct(fe.pos,He):"0",ge=me?[].concat((0,gt.Z)($t),[me]):[];if(me){var he=ye(me,ue),De={node:me,index:He,pos:ue,key:he,parentPos:fe.node?fe.pos:null,level:fe.level+1,nodes:ge};pt(De)}ie&&ie.forEach(function(Ne,$e){Te(Ne,$e,{node:me,pos:ue,level:fe?fe.level+1:-1},ge)})}Te(null)}function rt(ft){var pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pt=pt.initWrapper,Dt=pt.processEntity,Zt=pt.onProcessFinished,Ft=pt.externalGetKey,qt=pt.childrenPropName,te=pt.fieldNames,Gt=arguments.length>2?arguments[2]:void 0,ce=Ft||Gt,ae={},xe={},ye={posEntities:ae,keyEntities:xe};return Pt&&(ye=Pt(ye)||ye),st(ft,function(Te){var me=Te.node,He=Te.index,fe=Te.pos,$t=Te.key,ie=Te.parentPos,ue=Te.level,ge=Te.nodes,he={node:me,nodes:ge,index:He,key:$t,pos:fe,level:ue},De=At($t,fe);ae[fe]=he,xe[De]=he,he.parent=ae[ie],he.parent&&(he.parent.children=he.parent.children||[],he.parent.children.push(he)),Dt&&Dt(he,ye)},{externalGetKey:ce,childrenPropName:qt,fieldNames:te}),Zt&&Zt(ye),ye}function ut(ft,pt){var Pt=pt.expandedKeys,Dt=pt.selectedKeys,Zt=pt.loadedKeys,Ft=pt.loadingKeys,qt=pt.checkedKeys,te=pt.halfCheckedKeys,Gt=pt.dragOverNodeKey,ce=pt.dropPosition,ae=pt.keyEntities,xe=(0,Ot.Z)(ae,ft),ye={eventKey:ft,expanded:Pt.indexOf(ft)!==-1,selected:Dt.indexOf(ft)!==-1,loaded:Zt.indexOf(ft)!==-1,loading:Ft.indexOf(ft)!==-1,checked:qt.indexOf(ft)!==-1,halfChecked:te.indexOf(ft)!==-1,pos:String(xe?xe.pos:""),dragOver:Gt===ft&&ce===0,dragOverGapTop:Gt===ft&&ce===-1,dragOverGapBottom:Gt===ft&&ce===1};return ye}function ct(ft){var pt=ft.data,Pt=ft.expanded,Dt=ft.selected,Zt=ft.checked,Ft=ft.loaded,qt=ft.loading,te=ft.halfChecked,Gt=ft.dragOver,ce=ft.dragOverGapTop,ae=ft.dragOverGapBottom,xe=ft.pos,ye=ft.active,Te=ft.eventKey,me=(0,Xt.Z)((0,Xt.Z)({},pt),{},{expanded:Pt,selected:Dt,checked:Zt,loaded:Ft,loading:qt,halfChecked:te,dragOver:Gt,dragOverGapTop:ce,dragOverGapBottom:ae,pos:xe,active:ye,key:Te});return"props"in me||Object.defineProperty(me,"props",{get:function(){return(0,xt.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),ft}}),me}},8224:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return gt}});var zt=Kt(4676);function gt(Xt,Qt,kt,Bt){var xt=zt.unstable_batchedUpdates?function(Rt){zt.unstable_batchedUpdates(kt,Rt)}:kt;return Xt!=null&&Xt.addEventListener&&Xt.addEventListener(Qt,xt,Bt),{remove:function(){Xt!=null&&Xt.removeEventListener&&Xt.removeEventListener(Qt,xt,Bt)}}}},55468:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{g1:function(){return Lt},os:function(){return It}});var zt=/margin|padding|width|height|max|min|offset/,gt={left:!0,top:!0},Xt={cssFloat:1,styleFloat:1,float:1};function Qt(mt){return mt.nodeType===1?mt.ownerDocument.defaultView.getComputedStyle(mt,null):{}}function kt(mt,et,tt){if(et=et.toLowerCase(),tt==="auto"){if(et==="height")return mt.offsetHeight;if(et==="width")return mt.offsetWidth}return et in gt||(gt[et]=zt.test(et)),gt[et]?parseFloat(tt)||0:tt}function Bt(mt,et){var tt=arguments.length,st=Qt(mt);return et=Xt[et]?"cssFloat"in mt.style?"cssFloat":"styleFloat":et,tt===1?st:kt(mt,et,st[et]||mt.style[et])}function xt(mt,et,tt){var st=arguments.length;if(et=Xt[et]?"cssFloat"in mt.style?"cssFloat":"styleFloat":et,st===3)return typeof tt=="number"&&zt.test(et)&&(tt="".concat(tt,"px")),mt.style[et]=tt,tt;for(var rt in et)et.hasOwnProperty(rt)&&xt(mt,rt,et[rt]);return Qt(mt)}function Ot(mt){return mt===document.body?document.documentElement.clientWidth:mt.offsetWidth}function Rt(mt){return mt===document.body?window.innerHeight||document.documentElement.clientHeight:mt.offsetHeight}function Ct(){var mt=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),et=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:mt,height:et}}function Lt(){var mt=document.documentElement.clientWidth,et=window.innerHeight||document.documentElement.clientHeight;return{width:mt,height:et}}function At(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function It(mt){var et=mt.getBoundingClientRect(),tt=document.documentElement;return{left:et.left+(window.pageXOffset||tt.scrollLeft)-(tt.clientLeft||document.body.clientLeft||0),top:et.top+(window.pageYOffset||tt.scrollTop)-(tt.clientTop||document.body.clientTop||0)}}},4409:function(Tn,Cn,Kt){"use strict";Kt.d(Cn,{Z:function(){return le}});var zt=Kt(92413),gt=Kt(39559),Xt=Kt(33708),Qt=Kt(400),kt=Kt(33606),Bt=Kt(37061),xt=Kt(92310),Ot=Kt.n(xt),Rt=Kt(29301),Ct=Kt(70425),Lt=Kt(34280),At=Kt(59301),It=Kt(4676),mt=At.forwardRef(function(Tt,bt){var _t=Tt.height,Yt=Tt.offsetY,Mt=Tt.offsetX,Ut=Tt.children,St=Tt.prefixCls,wt=Tt.onInnerResize,jt=Tt.innerProps,Wt=Tt.rtl,Vt=Tt.extra,oe={},de={display:"flex",flexDirection:"column"};return Yt!==void 0&&(oe={height:_t,position:"relative",overflow:"hidden"},de=(0,Xt.Z)((0,Xt.Z)({},de),{},(0,Qt.Z)((0,Qt.Z)((0,Qt.Z)((0,Qt.Z)((0,Qt.Z)({transform:"translateY(".concat(Yt,"px)")},Wt?"marginRight":"marginLeft",-Mt),"position","absolute"),"left",0),"right",0),"top",0))),At.createElement("div",{style:oe},At.createElement(Rt.Z,{onResize:function(Ye){var Ue=Ye.offsetHeight;Ue&&wt&&wt()}},At.createElement("div",(0,zt.Z)({style:de,className:Ot()((0,Qt.Z)({},"".concat(St,"-holder-inner"),St)),ref:bt},jt),Ut,Vt)))});mt.displayName="Filler";var et=mt;function tt(Tt){var bt=Tt.children,_t=Tt.setRef,Yt=At.useCallback(function(Mt){_t(Mt)},[]);return At.cloneElement(bt,{ref:Yt})}function st(Tt,bt,_t,Yt,Mt,Ut,St,wt){var jt=wt.getKey;return Tt.slice(bt,_t+1).map(function(Wt,Vt){var oe=bt+Vt,de=St(Wt,oe,{style:{width:Yt},offsetX:Mt}),Ge=jt(Wt);return At.createElement(tt,{key:Ge,setRef:function(Ue){return Ut(Wt,Ue)}},de)})}function rt(Tt,bt,_t,Yt){var Mt=_t-Tt,Ut=bt-_t,St=Math.min(Mt,Ut)*2;if(Yt<=St){var wt=Math.floor(Yt/2);return Yt%2?_t+wt+1:_t-wt}return Mt>Ut?_t-(Yt-Ut):_t+(Yt-Mt)}function ut(Tt,bt,_t){var Yt=Tt.length,Mt=bt.length,Ut,St;if(Yt===0&&Mt===0)return null;Yt<Mt?(Ut=Tt,St=bt):(Ut=bt,St=Tt);var wt={__EMPTY_ITEM__:!0};function jt(Ye){return Ye!==void 0?_t(Ye):wt}for(var Wt=null,Vt=Math.abs(Yt-Mt)!==1,oe=0;oe<St.length;oe+=1){var de=jt(Ut[oe]),Ge=jt(St[oe]);if(de!==Ge){Wt=oe,Vt=Vt||de!==jt(St[oe+1]);break}}return Wt===null?null:{index:Wt,multiple:Vt}}function ct(Tt,bt,_t){var Yt=At.useState(Tt),Mt=(0,kt.Z)(Yt,2),Ut=Mt[0],St=Mt[1],wt=At.useState(null),jt=(0,kt.Z)(wt,2),Wt=jt[0],Vt=jt[1];return At.useEffect(function(){var oe=ut(Ut||[],Tt||[],bt);(oe==null?void 0:oe.index)!==void 0&&(_t==null||_t(oe.index),Vt(Tt[oe.index])),St(Tt)},[Tt]),[Wt]}var ft=Kt(16089),pt=(typeof navigator=="undefined"?"undefined":(0,gt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Pt=pt,Dt=function(Tt,bt,_t,Yt){var Mt=(0,At.useRef)(!1),Ut=(0,At.useRef)(null);function St(){clearTimeout(Ut.current),Mt.current=!0,Ut.current=setTimeout(function(){Mt.current=!1},50)}var wt=(0,At.useRef)({top:Tt,bottom:bt,left:_t,right:Yt});return wt.current.top=Tt,wt.current.bottom=bt,wt.current.left=_t,wt.current.right=Yt,function(jt,Wt){var Vt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,oe=jt?Wt<0&&wt.current.left||Wt>0&&wt.current.right:Wt<0&&wt.current.top||Wt>0&&wt.current.bottom;return Vt&&oe?(clearTimeout(Ut.current),Mt.current=!1):(!oe||Mt.current)&&St(),!Mt.current&&oe}};function Zt(Tt,bt,_t,Yt,Mt,Ut,St){var wt=(0,At.useRef)(0),jt=(0,At.useRef)(null),Wt=(0,At.useRef)(null),Vt=(0,At.useRef)(!1),oe=Dt(bt,_t,Yt,Mt);function de(ke,Ze){if(ft.Z.cancel(jt.current),!oe(!1,Ze)){var hn=ke;if(!hn._virtualHandled)hn._virtualHandled=!0;else return;wt.current+=Ze,Wt.current=Ze,Pt||hn.preventDefault(),jt.current=(0,ft.Z)(function(){var Pn=Vt.current?10:1;St(wt.current*Pn,!1),wt.current=0})}}function Ge(ke,Ze){St(Ze,!0),Pt||ke.preventDefault()}var Ye=(0,At.useRef)(null),Ue=(0,At.useRef)(null);function an(ke){if(Tt){ft.Z.cancel(Ue.current),Ue.current=(0,ft.Z)(function(){Ye.current=null},2);var Ze=ke.deltaX,hn=ke.deltaY,Pn=ke.shiftKey,In=Ze,Bn=hn;(Ye.current==="sx"||!Ye.current&&Pn&&hn&&!Ze)&&(In=hn,Bn=0,Ye.current="sx");var Zn=Math.abs(In),Gn=Math.abs(Bn);Ye.current===null&&(Ye.current=Ut&&Zn>Gn?"x":"y"),Ye.current==="y"?de(ke,Bn):Ge(ke,In)}}function vn(ke){Tt&&(Vt.current=ke.detail===Wt.current)}return[an,vn]}function Ft(Tt,bt,_t,Yt){var Mt=At.useMemo(function(){return[new Map,[]]},[Tt,_t.id,Yt]),Ut=(0,kt.Z)(Mt,2),St=Ut[0],wt=Ut[1],jt=function(Vt){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Vt,de=St.get(Vt),Ge=St.get(oe);if(de===void 0||Ge===void 0)for(var Ye=Tt.length,Ue=wt.length;Ue<Ye;Ue+=1){var an,vn=Tt[Ue],ke=bt(vn);St.set(ke,Ue);var Ze=(an=_t.get(ke))!==null&&an!==void 0?an:Yt;if(wt[Ue]=(wt[Ue-1]||0)+Ze,ke===Vt&&(de=Ue),ke===oe&&(Ge=Ue),de!==void 0&&Ge!==void 0)break}return{top:wt[de-1]||0,bottom:wt[Ge]}};return jt}var qt=Kt(76846),te=Kt(6909),Gt=Kt(4771),ce=function(){function Tt(){(0,te.Z)(this,Tt),(0,Qt.Z)(this,"maps",void 0),(0,Qt.Z)(this,"id",0),(0,Qt.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Gt.Z)(Tt,[{key:"set",value:function(_t,Yt){this.maps[_t]=Yt,this.id+=1,this.diffKeys.add(_t)}},{key:"get",value:function(_t){return this.maps[_t]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),Tt}(),ae=ce;function xe(Tt){var bt=parseFloat(Tt);return isNaN(bt)?0:bt}function ye(Tt,bt,_t){var Yt=At.useState(0),Mt=(0,kt.Z)(Yt,2),Ut=Mt[0],St=Mt[1],wt=(0,At.useRef)(new Map),jt=(0,At.useRef)(new ae),Wt=(0,At.useRef)(0);function Vt(){Wt.current+=1}function oe(){var Ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Vt();var Ye=function(){var vn=!1;wt.current.forEach(function(ke,Ze){if(ke&&ke.offsetParent){var hn=(0,qt.ZP)(ke),Pn=hn.offsetHeight,In=getComputedStyle(hn),Bn=In.marginTop,Zn=In.marginBottom,Gn=xe(Bn),ci=xe(Zn),pi=Pn+Gn+ci;jt.current.get(Ze)!==pi&&(jt.current.set(Ze,pi),vn=!0)}}),vn&&St(function(ke){return ke+1})};if(Ge)Ye();else{Wt.current+=1;var Ue=Wt.current;Promise.resolve().then(function(){Ue===Wt.current&&Ye()})}}function de(Ge,Ye){var Ue=Tt(Ge),an=wt.current.get(Ue);Ye?(wt.current.set(Ue,Ye),oe()):wt.current.delete(Ue),!an!=!Ye&&(Ye?bt==null||bt(Ge):_t==null||_t(Ge))}return(0,At.useEffect)(function(){return Vt},[]),[de,oe,jt.current,Ut]}var Te=14/15;function me(Tt,bt,_t){var Yt=(0,At.useRef)(!1),Mt=(0,At.useRef)(0),Ut=(0,At.useRef)(0),St=(0,At.useRef)(null),wt=(0,At.useRef)(null),jt,Wt=function(Ge){if(Yt.current){var Ye=Math.ceil(Ge.touches[0].pageX),Ue=Math.ceil(Ge.touches[0].pageY),an=Mt.current-Ye,vn=Ut.current-Ue,ke=Math.abs(an)>Math.abs(vn);ke?Mt.current=Ye:Ut.current=Ue;var Ze=_t(ke,ke?an:vn,!1,Ge);Ze&&Ge.preventDefault(),clearInterval(wt.current),Ze&&(wt.current=setInterval(function(){ke?an*=Te:vn*=Te;var hn=Math.floor(ke?an:vn);(!_t(ke,hn,!0)||Math.abs(hn)<=.1)&&clearInterval(wt.current)},16))}},Vt=function(){Yt.current=!1,jt()},oe=function(Ge){jt(),Ge.touches.length===1&&!Yt.current&&(Yt.current=!0,Mt.current=Math.ceil(Ge.touches[0].pageX),Ut.current=Math.ceil(Ge.touches[0].pageY),St.current=Ge.target,St.current.addEventListener("touchmove",Wt,{passive:!1}),St.current.addEventListener("touchend",Vt,{passive:!0}))};jt=function(){St.current&&(St.current.removeEventListener("touchmove",Wt),St.current.removeEventListener("touchend",Vt))},(0,Lt.Z)(function(){return Tt&&bt.current.addEventListener("touchstart",oe,{passive:!0}),function(){var de;(de=bt.current)===null||de===void 0||de.removeEventListener("touchstart",oe),jt(),clearInterval(wt.current)}},[Tt])}function He(Tt){return Math.floor(Math.pow(Tt,.5))}function fe(Tt,bt){var _t="touches"in Tt?Tt.touches[0]:Tt;return _t[bt?"pageX":"pageY"]-window[bt?"scrollX":"scrollY"]}function $t(Tt,bt,_t){At.useEffect(function(){var Yt=bt.current;if(Tt&&Yt){var Mt=!1,Ut,St,wt=function(){ft.Z.cancel(Ut)},jt=function de(){wt(),Ut=(0,ft.Z)(function(){_t(St),de()})},Wt=function(Ge){if(!Ge.target.draggable){var Ye=Ge;Ye._virtualHandled||(Ye._virtualHandled=!0,Mt=!0)}},Vt=function(){Mt=!1,wt()},oe=function(Ge){if(Mt){var Ye=fe(Ge,!1),Ue=Yt.getBoundingClientRect(),an=Ue.top,vn=Ue.bottom;if(Ye<=an){var ke=an-Ye;St=-He(ke),jt()}else if(Ye>=vn){var Ze=Ye-vn;St=He(Ze),jt()}else wt()}};return Yt.addEventListener("mousedown",Wt),Yt.ownerDocument.addEventListener("mouseup",Vt),Yt.ownerDocument.addEventListener("mousemove",oe),function(){Yt.removeEventListener("mousedown",Wt),Yt.ownerDocument.removeEventListener("mouseup",Vt),Yt.ownerDocument.removeEventListener("mousemove",oe),wt()}}},[Tt])}var ie=10;function ue(Tt,bt,_t,Yt,Mt,Ut,St,wt){var jt=At.useRef(),Wt=At.useState(null),Vt=(0,kt.Z)(Wt,2),oe=Vt[0],de=Vt[1];return(0,Lt.Z)(function(){if(oe&&oe.times<ie){if(!Tt.current){de(function(ne){return(0,Xt.Z)({},ne)});return}Ut();var Ge=oe.targetAlign,Ye=oe.originAlign,Ue=oe.index,an=oe.offset,vn=Tt.current.clientHeight,ke=!1,Ze=Ge,hn=null;if(vn){for(var Pn=Ge||Ye,In=0,Bn=0,Zn=0,Gn=Math.min(bt.length-1,Ue),ci=0;ci<=Gn;ci+=1){var pi=Mt(bt[ci]);Bn=In;var xi=_t.get(pi);Zn=Bn+(xi===void 0?Yt:xi),In=Zn}for(var Ci=Pn==="top"?an:vn-an,Gi=Gn;Gi>=0;Gi-=1){var qi=Mt(bt[Gi]),bi=_t.get(qi);if(bi===void 0){ke=!0;break}if(Ci-=bi,Ci<=0)break}switch(Pn){case"top":hn=Bn-an;break;case"bottom":hn=Zn-vn+an;break;default:{var Yi=Tt.current.scrollTop,ui=Yi+vn;Bn<Yi?Ze="top":Zn>ui&&(Ze="bottom")}}hn!==null&&St(hn),hn!==oe.lastTop&&(ke=!0)}ke&&de((0,Xt.Z)((0,Xt.Z)({},oe),{},{times:oe.times+1,targetAlign:Ze,lastTop:hn}))}},[oe,Tt.current]),function(Ge){if(Ge==null){wt();return}if(ft.Z.cancel(jt.current),typeof Ge=="number")St(Ge);else if(Ge&&(0,gt.Z)(Ge)==="object"){var Ye,Ue=Ge.align;"index"in Ge?Ye=Ge.index:Ye=bt.findIndex(function(ke){return Mt(ke)===Ge.key});var an=Ge.offset,vn=an===void 0?0:an;de({times:0,index:Ye,offset:vn,originAlign:Ue})}}}var ge=At.forwardRef(function(Tt,bt){var _t=Tt.prefixCls,Yt=Tt.rtl,Mt=Tt.scrollOffset,Ut=Tt.scrollRange,St=Tt.onStartMove,wt=Tt.onStopMove,jt=Tt.onScroll,Wt=Tt.horizontal,Vt=Tt.spinSize,oe=Tt.containerSize,de=Tt.style,Ge=Tt.thumbStyle,Ye=Tt.showScrollBar,Ue=At.useState(!1),an=(0,kt.Z)(Ue,2),vn=an[0],ke=an[1],Ze=At.useState(null),hn=(0,kt.Z)(Ze,2),Pn=hn[0],In=hn[1],Bn=At.useState(null),Zn=(0,kt.Z)(Bn,2),Gn=Zn[0],ci=Zn[1],pi=!Yt,xi=At.useRef(),Ci=At.useRef(),Gi=At.useState(Ye),qi=(0,kt.Z)(Gi,2),bi=qi[0],Yi=qi[1],ui=At.useRef(),ne=function(){Ye===!0||Ye===!1||(clearTimeout(ui.current),Yi(!0),ui.current=setTimeout(function(){Yi(!1)},3e3))},Wi=Ut-oe||0,Fi=oe-Vt||0,nr=At.useMemo(function(){if(Mt===0||Wi===0)return 0;var fn=Mt/Wi;return fn*Fi},[Mt,Wi,Fi]),sr=function(Sn){Sn.stopPropagation(),Sn.preventDefault()},xr=At.useRef({top:nr,dragging:vn,pageY:Pn,startTop:Gn});xr.current={top:nr,dragging:vn,pageY:Pn,startTop:Gn};var vr=function(Sn){ke(!0),In(fe(Sn,Wt)),ci(xr.current.top),St(),Sn.stopPropagation(),Sn.preventDefault()};At.useEffect(function(){var fn=function(cn){cn.preventDefault()},Sn=xi.current,ze=Ci.current;return Sn.addEventListener("touchstart",fn,{passive:!1}),ze.addEventListener("touchstart",vr,{passive:!1}),function(){Sn.removeEventListener("touchstart",fn),ze.removeEventListener("touchstart",vr)}},[]);var Jn=At.useRef();Jn.current=Wi;var _n=At.useRef();_n.current=Fi,At.useEffect(function(){if(vn){var fn,Sn=function(cn){var wn=xr.current,Nn=wn.dragging,Hn=wn.pageY,Pe=wn.startTop;ft.Z.cancel(fn);var We=xi.current.getBoundingClientRect(),pn=oe/(Wt?We.width:We.height);if(Nn){var On=(fe(cn,Wt)-Hn)*pn,Ke=Pe;!pi&&Wt?Ke-=On:Ke+=On;var nn=Jn.current,_e=_n.current,en=_e?Ke/_e:0,un=Math.ceil(en*nn);un=Math.max(un,0),un=Math.min(un,nn),fn=(0,ft.Z)(function(){jt(un,Wt)})}},ze=function(){ke(!1),wt()};return window.addEventListener("mousemove",Sn,{passive:!0}),window.addEventListener("touchmove",Sn,{passive:!0}),window.addEventListener("mouseup",ze,{passive:!0}),window.addEventListener("touchend",ze,{passive:!0}),function(){window.removeEventListener("mousemove",Sn),window.removeEventListener("touchmove",Sn),window.removeEventListener("mouseup",ze),window.removeEventListener("touchend",ze),ft.Z.cancel(fn)}}},[vn]),At.useEffect(function(){return ne(),function(){clearTimeout(ui.current)}},[Mt]),At.useImperativeHandle(bt,function(){return{delayHidden:ne}});var qe="".concat(_t,"-scrollbar"),Qe={position:"absolute",visibility:bi?null:"hidden"},we={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Wt?(Qe.height=8,Qe.left=0,Qe.right=0,Qe.bottom=0,we.height="100%",we.width=Vt,pi?we.left=nr:we.right=nr):(Qe.width=8,Qe.top=0,Qe.bottom=0,pi?Qe.right=0:Qe.left=0,we.width="100%",we.height=Vt,we.top=nr),At.createElement("div",{ref:xi,className:Ot()(qe,(0,Qt.Z)((0,Qt.Z)((0,Qt.Z)({},"".concat(qe,"-horizontal"),Wt),"".concat(qe,"-vertical"),!Wt),"".concat(qe,"-visible"),bi)),style:(0,Xt.Z)((0,Xt.Z)({},Qe),de),onMouseDown:sr,onMouseMove:ne},At.createElement("div",{ref:Ci,className:Ot()("".concat(qe,"-thumb"),(0,Qt.Z)({},"".concat(qe,"-thumb-moving"),vn)),style:(0,Xt.Z)((0,Xt.Z)({},we),Ge),onMouseDown:vr}))}),he=ge,De=20;function Ne(){var Tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,bt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,_t=Tt/bt*Tt;return isNaN(_t)&&(_t=0),_t=Math.max(_t,De),Math.floor(_t)}var $e=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Re=[],tn={overflowY:"auto",overflowAnchor:"none"};function Me(Tt,bt){var _t=Tt.prefixCls,Yt=_t===void 0?"rc-virtual-list":_t,Mt=Tt.className,Ut=Tt.height,St=Tt.itemHeight,wt=Tt.fullHeight,jt=wt===void 0?!0:wt,Wt=Tt.style,Vt=Tt.data,oe=Tt.children,de=Tt.itemKey,Ge=Tt.virtual,Ye=Tt.direction,Ue=Tt.scrollWidth,an=Tt.component,vn=an===void 0?"div":an,ke=Tt.onScroll,Ze=Tt.onVirtualScroll,hn=Tt.onVisibleChange,Pn=Tt.innerProps,In=Tt.extraRender,Bn=Tt.styles,Zn=Tt.showScrollBar,Gn=Zn===void 0?"optional":Zn,ci=(0,Bt.Z)(Tt,$e),pi=At.useCallback(function(Bi){return typeof de=="function"?de(Bi):Bi==null?void 0:Bi[de]},[de]),xi=ye(pi,null,null),Ci=(0,kt.Z)(xi,4),Gi=Ci[0],qi=Ci[1],bi=Ci[2],Yi=Ci[3],ui=!!(Ge!==!1&&Ut&&St),ne=At.useMemo(function(){return Object.values(bi.maps).reduce(function(Bi,Di){return Bi+Di},0)},[bi.id,bi.maps]),Wi=ui&&Vt&&(Math.max(St*Vt.length,ne)>Ut||!!Ue),Fi=Ye==="rtl",nr=Ot()(Yt,(0,Qt.Z)({},"".concat(Yt,"-rtl"),Fi),Mt),sr=Vt||Re,xr=(0,At.useRef)(),vr=(0,At.useRef)(),Jn=(0,At.useRef)(),_n=(0,At.useState)(0),qe=(0,kt.Z)(_n,2),Qe=qe[0],we=qe[1],fn=(0,At.useState)(0),Sn=(0,kt.Z)(fn,2),ze=Sn[0],Le=Sn[1],cn=(0,At.useState)(!1),wn=(0,kt.Z)(cn,2),Nn=wn[0],Hn=wn[1],Pe=function(){Hn(!0)},We=function(){Hn(!1)},pn={getKey:pi};function On(Bi){we(function(Di){var Mi;typeof Bi=="function"?Mi=Bi(Di):Mi=Bi;var lr=Ai(Mi);return xr.current.scrollTop=lr,lr})}var Ke=(0,At.useRef)({start:0,end:sr.length}),nn=(0,At.useRef)(),_e=ct(sr,pi),en=(0,kt.Z)(_e,1),un=en[0];nn.current=un;var sn=At.useMemo(function(){if(!ui)return{scrollHeight:void 0,start:0,end:sr.length-1,offset:void 0};if(!Wi){var Bi;return{scrollHeight:((Bi=vr.current)===null||Bi===void 0?void 0:Bi.offsetHeight)||0,start:0,end:sr.length-1,offset:void 0}}for(var Di=0,Mi,lr,ar,Pi=sr.length,mi=0;mi<Pi;mi+=1){var Wn=sr[mi],Ti=pi(Wn),Sr=bi.get(Ti),Br=Di+(Sr===void 0?St:Sr);Br>=Qe&&Mi===void 0&&(Mi=mi,lr=Di),Br>Qe+Ut&&ar===void 0&&(ar=mi),Di=Br}return Mi===void 0&&(Mi=0,lr=0,ar=Math.ceil(Ut/St)),ar===void 0&&(ar=sr.length-1),ar=Math.min(ar+1,sr.length-1),{scrollHeight:Di,start:Mi,end:ar,offset:lr}},[Wi,ui,Qe,sr,Yi,Ut]),xn=sn.scrollHeight,gn=sn.start,Ln=sn.end,Mn=sn.offset;Ke.current.start=gn,Ke.current.end=Ln,At.useLayoutEffect(function(){var Bi=bi.getRecord();if(Bi.size===1){var Di=Array.from(Bi)[0],Mi=pi(sr[gn]);if(Mi===Di){var lr=bi.get(Di),ar=lr-St;On(function(Pi){return Pi+ar})}}bi.resetRecord()},[xn]);var Qn=At.useState({width:0,height:Ut}),ln=(0,kt.Z)(Qn,2),ti=ln[0],vi=ln[1],oi=function(Di){vi({width:Di.offsetWidth,height:Di.offsetHeight})},dn=(0,At.useRef)(),Rn=(0,At.useRef)(),Xn=At.useMemo(function(){return Ne(ti.width,Ue)},[ti.width,Ue]),hi=At.useMemo(function(){return Ne(ti.height,xn)},[ti.height,xn]),ei=xn-Ut,fi=(0,At.useRef)(ei);fi.current=ei;function Ai(Bi){var Di=Bi;return Number.isNaN(fi.current)||(Di=Math.min(Di,fi.current)),Di=Math.max(Di,0),Di}var gi=Qe<=0,ii=Qe>=ei,Li=ze<=0,bn=ze>=Ue,er=Dt(gi,ii,Li,bn),En=function(){return{x:Fi?-ze:ze,y:Qe}},Oi=(0,At.useRef)(En()),wr=(0,Ct.useEvent)(function(Bi){if(Ze){var Di=(0,Xt.Z)((0,Xt.Z)({},En()),Bi);(Oi.current.x!==Di.x||Oi.current.y!==Di.y)&&(Ze(Di),Oi.current=Di)}});function _i(Bi,Di){var Mi=Bi;Di?((0,It.flushSync)(function(){Le(Mi)}),wr()):On(Mi)}function kr(Bi){var Di=Bi.currentTarget.scrollTop;Di!==Qe&&On(Di),ke==null||ke(Bi),wr()}var gr=function(Di){var Mi=Di,lr=Ue?Ue-ti.width:0;return Mi=Math.max(Mi,0),Mi=Math.min(Mi,lr),Mi},wi=(0,Ct.useEvent)(function(Bi,Di){Di?((0,It.flushSync)(function(){Le(function(Mi){var lr=Mi+(Fi?-Bi:Bi);return gr(lr)})}),wr()):On(function(Mi){var lr=Mi+Bi;return lr})}),yi=Zt(ui,gi,ii,Li,bn,!!Ue,wi),Zi=(0,kt.Z)(yi,2),Xi=Zi[0],qn=Zi[1];me(ui,xr,function(Bi,Di,Mi,lr){var ar=lr;return er(Bi,Di,Mi)?!1:!ar||!ar._virtualHandled?(ar&&(ar._virtualHandled=!0),Xi({preventDefault:function(){},deltaX:Bi?Di:0,deltaY:Bi?0:Di}),!0):!1}),$t(Wi,xr,function(Bi){On(function(Di){return Di+Bi})}),(0,Lt.Z)(function(){function Bi(Mi){var lr=gi&&Mi.detail<0,ar=ii&&Mi.detail>0;ui&&!lr&&!ar&&Mi.preventDefault()}var Di=xr.current;return Di.addEventListener("wheel",Xi,{passive:!1}),Di.addEventListener("DOMMouseScroll",qn,{passive:!0}),Di.addEventListener("MozMousePixelScroll",Bi,{passive:!1}),function(){Di.removeEventListener("wheel",Xi),Di.removeEventListener("DOMMouseScroll",qn),Di.removeEventListener("MozMousePixelScroll",Bi)}},[ui,gi,ii]),(0,Lt.Z)(function(){if(Ue){var Bi=gr(ze);Le(Bi),wr({x:Bi})}},[ti.width,Ue]);var Se=function(){var Di,Mi;(Di=dn.current)===null||Di===void 0||Di.delayHidden(),(Mi=Rn.current)===null||Mi===void 0||Mi.delayHidden()},ji=ue(xr,sr,bi,St,pi,function(){return qi(!0)},On,Se);At.useImperativeHandle(bt,function(){return{nativeElement:Jn.current,getScrollInfo:En,scrollTo:function(Di){function Mi(lr){return lr&&(0,gt.Z)(lr)==="object"&&("left"in lr||"top"in lr)}Mi(Di)?(Di.left!==void 0&&Le(gr(Di.left)),ji(Di.top)):ji(Di)}}}),(0,Lt.Z)(function(){if(hn){var Bi=sr.slice(gn,Ln+1);hn(Bi,sr)}},[gn,Ln,sr]);var yr=Ft(sr,pi,bi,St),Ki=In==null?void 0:In({start:gn,end:Ln,virtual:Wi,offsetX:ze,offsetY:Mn,rtl:Fi,getSize:yr}),rr=st(sr,gn,Ln,Ue,ze,Gi,oe,pn),Tr=null;Ut&&(Tr=(0,Xt.Z)((0,Qt.Z)({},jt?"height":"maxHeight",Ut),tn),ui&&(Tr.overflowY="hidden",Ue&&(Tr.overflowX="hidden"),Nn&&(Tr.pointerEvents="none")));var Ar={};return Fi&&(Ar.dir="rtl"),At.createElement("div",(0,zt.Z)({ref:Jn,style:(0,Xt.Z)((0,Xt.Z)({},Wt),{},{position:"relative"}),className:nr},Ar,ci),At.createElement(Rt.Z,{onResize:oi},At.createElement(vn,{className:"".concat(Yt,"-holder"),style:Tr,ref:xr,onScroll:kr,onMouseEnter:Se},At.createElement(et,{prefixCls:Yt,height:xn,offsetX:ze,offsetY:Mn,scrollWidth:Ue,onInnerResize:qi,ref:vr,innerProps:Pn,rtl:Fi,extra:Ki},rr))),Wi&&xn>Ut&&At.createElement(he,{ref:dn,prefixCls:Yt,scrollOffset:Qe,scrollRange:xn,rtl:Fi,onScroll:_i,onStartMove:Pe,onStopMove:We,spinSize:hi,containerSize:ti.height,style:Bn==null?void 0:Bn.verticalScrollBar,thumbStyle:Bn==null?void 0:Bn.verticalScrollBarThumb,showScrollBar:Gn}),Wi&&Ue>ti.width&&At.createElement(he,{ref:Rn,prefixCls:Yt,scrollOffset:ze,scrollRange:Ue,rtl:Fi,onScroll:_i,onStartMove:Pe,onStopMove:We,spinSize:Xn,containerSize:ti.width,horizontal:!0,style:Bn==null?void 0:Bn.horizontalScrollBar,thumbStyle:Bn==null?void 0:Bn.horizontalScrollBarThumb,showScrollBar:Gn}))}var Oe=At.forwardRef(Me);Oe.displayName="List";var Fe=Oe,le=Fe},25510:function(Tn){"use strict";Tn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiwAAAIsCAYAAADRd/LpAAAgAElEQVR4Xuyda5BtVXXvV3efc+CAYBQRjaJBeWjiVVKVB0mMUV6GKv0cvVVG/XTrViUlSd0bqUoQg4KapKJW8j3mWinNx1SRSgkciKARYiqi1ycvFZSggHgFDofz6L71m3v/9xk9eq695ty91t67u8eimu6z91zzMcaYY/znGGPOudLEExQICgQFggJBgaBAUGDJKbBC/26+98jGkvczuhcUCAoEBYICQYGgwB6lwJUXnroSgGWPMj+GHRQICgQFggJBgZ1CgS2A5YoLTtkpfY9+BgWCAkGBoEBQICiwyylwy33PpREGYNnljI7hBQWCAkGBoEBQ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e3H//kJ3b3XXfbj0/5if34Jz+1d22xnR197Ddt2rrr2uxZs23s+LEBsLBbJ8Szjhphs+bOC5YO3FOvvPyy/ebMM+zggw6y5595zsaMHm2LTppgL7/wYtiQvOOu/2jv/cAH7P27vc/m2Ov2u4vOtyuuuNyO+eY3bez4Cbbi8svbqy/PtJf+9oLNnTXbRsydZ8d+81u21VZb2wpvfasdcMD+dtIpPwoxLJMmTwrbp595/Anb7O1vt2223Mq+9pWv2siJE+33l15iJ//0p/brs39jy660oj14/73hbKQVV1jBPrznXnbAgQeGocAVRF+gr790rnUBLAWwtCsOC2DJp1wBLAWw5HNNB54ogKUZsMjCcuXlV9hvzzrHvnPccTZ50mRbcurUEAD68ssvhziM0WPG2vhJE23Ft65kxxx/rM18eaZ9fr/97E+3/skmjB9v3zjqKFt6yaXs+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//rW9Y4ft7agjjrT11l03HHgYzhsaafbySy8FlxWuq3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gBIyAETAC9SLQSFjqFdmSGQEjYASMgBEwAqsVge1b1x12GCr/8p6D/12tQrjeRsAIGAEjYASMQN0ITAhL3WJaOiNgBIyAETACRmC1I/C/+Ryxj68oilIAAAAASUVORK5CYII="},32637:function(Tn,Cn,Kt){"use strict";Tn.exports=Kt.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(Tn){"use strict";Tn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvH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ct||Rt!=="hidden")&&Rt!=="visible"&&Rt!=="clip",Xt=(Rt,Ct)=>{if(Rt.clientHeight<Rt.scrollHeight||Rt.clientWidth<Rt.scrollWidth){const Lt=getComputedStyle(Rt,null);return gt(Lt.overflowY,Ct)||gt(Lt.overflowX,Ct)||(At=>{const It=(mt=>{if(!mt.ownerDocument||!mt.ownerDocument.defaultView)return null;try{return mt.ownerDocument.defaultView.frameElement}catch(et){return null}})(At);return!!It&&(It.clientHeight<At.scrollHeight||It.clientWidth<At.scrollWidth)})(Rt)}return!1},Qt=(Rt,Ct,Lt,At,It,mt,et,tt)=>mt<Rt&&et>Ct||mt>Rt&&et<Ct?0:mt<=Rt&&tt<=Lt||et>=Ct&&tt>=Lt?mt-Rt-At:et>Ct&&tt<Lt||mt<Rt&&tt>Lt?et-Ct+It:0,kt=Rt=>{const Ct=Rt.parentElement;return Ct==null?Rt.getRootNode().host||null:Ct},Bt=(Rt,Ct)=>{var Lt,At,It,mt;if(typeof document=="undefined")return[];const{scrollMode:et,block:tt,inline:st,boundary:rt,skipOverflowHiddenElements:ut}=Ct,ct=typeof rt=="function"?rt:ge=>ge!==rt;if(!zt(Rt))throw new TypeError("Invalid target");const ft=document.scrollingElement||document.documentElement,pt=[];let Pt=Rt;for(;zt(Pt)&&ct(Pt);){if(Pt=kt(Pt),Pt===ft){pt.push(Pt);break}Pt!=null&&Pt===document.body&&Xt(Pt)&&!Xt(document.documentElement)||Pt!=null&&Xt(Pt,ut)&&pt.push(Pt)}const Dt=(At=(Lt=window.visualViewport)==null?void 0:Lt.width)!=null?At:innerWidth,Zt=(mt=(It=window.visualViewport)==null?void 0:It.height)!=null?mt:innerHeight,{scrollX:Ft,scrollY:qt}=window,{height:te,width:Gt,top:ce,right:ae,bottom:xe,left:ye}=Rt.getBoundingClientRect(),{top:Te,right:me,bottom:He,left:fe}=(ge=>{const he=window.getComputedStyle(ge);return{top:parseFloat(he.scrollMarginTop)||0,right:parseFloat(he.scrollMarginRight)||0,bottom:parseFloat(he.scrollMarginBottom)||0,left:parseFloat(he.scrollMarginLeft)||0}})(Rt);let $t=tt==="start"||tt==="nearest"?ce-Te:tt==="end"?xe+He:ce+te/2-Te+He,ie=st==="center"?ye+Gt/2-fe+me:st==="end"?ae+me:ye-fe;const ue=[];for(let ge=0;ge<pt.length;ge++){const he=pt[ge],{height:De,width:Ne,top:$e,right:Re,bottom:tn,left:Me}=he.getBoundingClientRect();if(et==="if-needed"&&ce>=0&&ye>=0&&xe<=Zt&&ae<=Dt&&(he===ft&&!Xt(he)||ce>=$e&&xe<=tn&&ye>=Me&&ae<=Re))return ue;const Oe=getComputedStyle(he),Fe=parseInt(Oe.borderLeftWidth,10),le=parseInt(Oe.borderTopWidth,10),Tt=parseInt(Oe.borderRightWidth,10),bt=parseInt(Oe.borderBottomWidth,10);let _t=0,Yt=0;const Mt="offsetWidth"in he?he.offsetWidth-he.clientWidth-Fe-Tt:0,Ut="offsetHeight"in he?he.offsetHeight-he.clientHeight-le-bt:0,St="offsetWidth"in he?he.offsetWidth===0?0:Ne/he.offsetWidth:0,wt="offsetHeight"in he?he.offsetHeight===0?0:De/he.offsetHeight:0;if(ft===he)_t=tt==="start"?$t:tt==="end"?$t-Zt:tt==="nearest"?Qt(qt,qt+Zt,Zt,le,bt,qt+$t,qt+$t+te,te):$t-Zt/2,Yt=st==="start"?ie:st==="center"?ie-Dt/2:st==="end"?ie-Dt:Qt(Ft,Ft+Dt,Dt,Fe,Tt,Ft+ie,Ft+ie+Gt,Gt),_t=Math.max(0,_t+qt),Yt=Math.max(0,Yt+Ft);else{_t=tt==="start"?$t-$e-le:tt==="end"?$t-tn+bt+Ut:tt==="nearest"?Qt($e,tn,De,le,bt+Ut,$t,$t+te,te):$t-($e+De/2)+Ut/2,Yt=st==="start"?ie-Me-Fe:st==="center"?ie-(Me+Ne/2)+Mt/2:st==="end"?ie-Re+Tt+Mt:Qt(Me,Re,Ne,Fe,Tt+Mt,ie,ie+Gt,Gt);const{scrollLeft:jt,scrollTop:Wt}=he;_t=wt===0?0:Math.max(0,Math.min(Wt+_t/wt,he.scrollHeight-De/wt+Ut)),Yt=St===0?0:Math.max(0,Math.min(jt+Yt/St,he.scrollWidth-Ne/St+Mt)),$t+=Wt-_t,ie+=jt-Yt}ue.push({el:he,top:_t,left:Yt})}return ue},xt=Rt=>Rt===!1?{block:"end",inline:"nearest"}:(Ct=>Ct===Object(Ct)&&Object.keys(Ct).length!==0)(Rt)?Rt:{block:"start",inline:"nearest"};function Ot(Rt,Ct){if(!Rt.isConnected||!(It=>{let mt=It;for(;mt&&mt.parentNode;){if(mt.parentNode===document)return!0;mt=mt.parentNode instanceof ShadowRoot?mt.parentNode.host:mt.parentNode}return!1})(Rt))return;const Lt=(It=>{const mt=window.getComputedStyle(It);return{top:parseFloat(mt.scrollMarginTop)||0,right:parseFloat(mt.scrollMarginRight)||0,bottom:parseFloat(mt.scrollMarginBottom)||0,left:parseFloat(mt.scrollMarginLeft)||0}})(Rt);if((It=>typeof It=="object"&&typeof It.behavior=="function")(Ct))return Ct.behavior(Bt(Rt,Ct));const At=typeof Ct=="boolean"||Ct==null?void 0:Ct.behavior;for(const{el:It,top:mt,left:et}of Bt(Rt,xt(Ct))){const tt=mt-Lt.top+Lt.bottom,st=et-Lt.left+Lt.right;It.scroll({top:tt,left:st,behavior:At})}}}}]);
|