|
|
(self.webpackChunk=self.webpackChunk||[]).push([[6076],{10402:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},72295:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},93343:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},24566:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},80205:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},61441:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},30631:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},43971:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},58358:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},52249:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},44757:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},76298:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},16537:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},77042:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},5527:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},86902:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},53878:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},21970:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},96830:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(At,bt){return yt.createElement(Nt.Z,(0,Rt.Z)({},At,{ref:bt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt},79906:function(){"use strict"},93938:function(Nn,An){"use strict";An.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},37404:function(){"use strict";function Nn(vt,et,tt,st){tt===void 0&&(tt=0),st===void 0&&(st=1/0),this._name=vt,this._defaultValue=et,this._minimum=tt,this._maximum=st}Object.defineProperty(Nn.prototype,"name",{get:function(){return this._name},set:function(vt){if(typeof vt!="string"||vt==="")throw new Error("Shape name must be a valid string.");this._name=vt}}),Object.defineProperty(Nn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(vt){if(typeof vt!="number"||isNaN(vt))throw new Error("The default value must be a real number, not: "+vt);this._defaultValue=vt}}),Object.defineProperty(Nn.prototype,"minimum",{get:function(){return this._minimum},set:function(vt){if(typeof vt!="number"||isNaN(vt))throw new Error("Minimum must be a real number, not: "+vt);this._minimum=vt}}),Object.defineProperty(Nn.prototype,"maximum",{get:function(){return this._maximum},set:function(vt){if(typeof vt!="number"||isNaN(vt))throw new Error("Maximum must be a real number, not: "+vt);this._maximum=vt}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(vt,et){var tt=go.Shape._FigureParameters[vt];return tt?tt[et]:null},go.Shape.setFigureParameter=function(vt,et,tt){if(!(tt instanceof Nn))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[vt];st||(st=[],go.Shape._FigureParameters[vt]=st),st[et]=tt};var An=[];function Gt(vt,et){var tt=An.pop();return tt===void 0?new go.Point(vt,et):(tt.x=vt,tt.y=et,tt)}function Rt(){var vt=An.pop();return vt===void 0?new go.Point:vt}function yt(vt){An.push(vt)}function Vt(vt,et,tt,st,rt,ut,ct,pt,mt){mt||(mt=new go.Point);var Ct=vt-tt,Dt=rt-ct,Ut=NaN,Ft=NaN;if(Ct===0)if(Dt===0)vt===tt&&(Ut=vt,Ft=et);else{var Qt=(ut-pt)/Dt,$t=ut-Qt*rt;Ut=vt,Ft=Qt*Ut+$t}else if(Dt===0){var Kt=(et-st)/Ct,ue=et-Kt*vt;Ut=rt,Ft=Kt*Ut+ue}else{var Kt=(et-st)/Ct,Qt=(ut-pt)/Dt,ue=et-Kt*vt,$t=ut-Qt*rt;Ut=($t-ue)/(Kt-Qt),Ft=Kt*Ut+ue}return mt.x=Ut,mt.y=Ft,mt}function Yt(vt,et,tt,st,rt,ut,ct,pt,mt,Ct,Dt,Ut,Ft,Qt){var $t=1-mt,Kt=mt,ue=vt*$t+tt*Kt,oe=et*$t+st*Kt,we=tt*$t+rt*Kt,Se=st*$t+ut*Kt,Ne=rt*$t+ct*Kt,pe=ut*$t+pt*Kt,Ue=ue*$t+we*Kt,de=oe*$t+Se*Kt,Jt=we*$t+Ne*Kt,ee=Se*$t+pe*Kt,ae=Ue*$t+Jt*Kt,fe=de*$t+ee*Kt;Ct.x=ue,Ct.y=oe,Dt.x=Ue,Dt.y=de,Ut.x=ae,Ut.y=fe,Ft.x=Jt,Ft.y=ee,Qt.x=Ne,Qt.y=pe}var Nt=new go.Spot(.156,.156),Wt=new go.Spot(.844,.844),xt=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Nn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(vt,et,tt){var st=vt?vt.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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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=Nt,rt.spot2=Wt,rt.defaultStretch=go.GraphObject.Uniform,rt}),go.Shape.defineFigureGenerator("Line1",function(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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 Nn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(vt,et,tt){var st=vt?vt.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 Nn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(vt,et,tt){var st=vt?vt.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 Nn("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(vt,et,tt){var st=vt?vt.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 Nn("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(vt,et,tt){var st=vt?vt.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 Nn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(vt,et,tt){var st=vt?vt.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 Bt(){var vt=Ot.pop();return vt===void 0?[]:vt}function At(vt){vt.length=0,Ot.push(vt)}function bt(vt){for(var et=Bt(),tt=.5,st=.5,rt=Math.PI*1.5,ut=0,ct=0;ct<vt;ct++)ut=2*Math.PI/vt*ct+rt,et[ct]=new go.Point(st+tt*Math.cos(ut),st+tt*Math.sin(ut));return et.push(et[0]),et}function Tt(vt){var et=It(vt),tt=Bt();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 At(et),tt}function It(vt){for(var et=bt(vt),tt=Bt(),st=Math.floor(et.length/2),rt=et.length-1,ut=vt%2===0?2:1,ct=0;ct<rt;ct++){var pt=et[ct],mt=et[ct+1],Ct=et[(st+ct-1)%rt],Dt=et[(st+ct+ut)%rt];tt[ct*2]=pt,tt[ct*2+1]=Vt(pt.x,pt.y,Ct.x,Ct.y,mt.x,mt.y,Dt.x,Dt.y,new go.Point)}return tt[tt.length]=tt[0],At(et),tt}go.Shape.defineFigureGenerator("Pentagon",function(vt,et,tt){var st=bt(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()),At(st),rt.spot1=new go.Spot(.2,.22),rt.spot2=new go.Spot(.8,.9),rt}),go.Shape.defineFigureGenerator("Hexagon",function(vt,et,tt){var st=bt(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()),At(st),rt.spot1=new go.Spot(.07,.25),rt.spot2=new go.Spot(.93,.75),rt}),go.Shape.defineFigureGenerator("Heptagon",function(vt,et,tt){var st=bt(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()),At(st),rt.spot1=new go.Spot(.2,.15),rt.spot2=new go.Spot(.8,.85),rt}),go.Shape.defineFigureGenerator("Octagon",function(vt,et,tt){var st=bt(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()),At(st),rt.spot1=new go.Spot(.15,.15),rt.spot2=new go.Spot(.85,.85),rt}),go.Shape.defineFigureGenerator("Nonagon",function(vt,et,tt){var st=bt(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()),At(st),rt.spot1=new go.Spot(.17,.13),rt.spot2=new go.Spot(.82,.82),rt}),go.Shape.defineFigureGenerator("Decagon",function(vt,et,tt){var st=bt(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()),At(st),rt.spot1=new go.Spot(.16,.16),rt.spot2=new go.Spot(.84,.84),rt}),go.Shape.defineFigureGenerator("Dodecagon",function(vt,et,tt){var st=bt(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()),At(st),rt.spot1=new go.Spot(.16,.16),rt.spot2=new go.Spot(.84,.84),rt}),go.Shape.defineFigureGenerator("FivePointedStar",function(vt,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()),At(st),rt.spot1=new go.Spot(.266,.333),rt.spot2=new go.Spot(.733,.733),rt}),go.Shape.defineFigureGenerator("SixPointedStar",function(vt,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()),At(st),rt.spot1=new go.Spot(.17,.25),rt.spot2=new go.Spot(.83,.75),rt}),go.Shape.defineFigureGenerator("SevenPointedStar",function(vt,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()),At(st),rt.spot1=new go.Spot(.222,.277),rt.spot2=new go.Spot(.777,.666),rt}),go.Shape.defineFigureGenerator("EightPointedStar",function(vt,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()),At(st),rt.spot1=new go.Spot(.25,.25),rt.spot2=new go.Spot(.75,.75),rt}),go.Shape.defineFigureGenerator("NinePointedStar",function(vt,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()),At(st),rt.spot1=new go.Spot(.222,.277),rt.spot2=new go.Spot(.777,.666),rt}),go.Shape.defineFigureGenerator("TenPointedStar",function(vt,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()),At(st),rt.spot1=new go.Spot(.281,.261),rt.spot2=new go.Spot(.723,.748),rt}),go.Shape.defineFigureGenerator("FivePointedBurst",function(vt,et,tt){var st=Tt(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(),At(st),rt.spot1=new go.Spot(.222,.277),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("SixPointedBurst",function(vt,et,tt){var st=Tt(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(),At(st),rt.spot1=new go.Spot(.17,.222),rt.spot2=new go.Spot(.833,.777),rt}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(vt,et,tt){var st=Tt(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(),At(st),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("EightPointedBurst",function(vt,et,tt){var st=Tt(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(),At(st),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("NinePointedBurst",function(vt,et,tt){var st=Tt(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(),At(st),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.defineFigureGenerator("TenPointedBurst",function(vt,et,tt){var st=Tt(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(),At(st),rt.spot1=new go.Spot(.222,.222),rt.spot2=new go.Spot(.777,.777),rt}),go.Shape.setFigureParameter("FramedRectangle",0,new Nn("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Nn("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(vt,et,tt){var st=vt?vt.parameter1:NaN,rt=vt?vt.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 Nn("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(vt,et,tt){var st=vt?vt.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 pt=Math.max(rt-st,0);return pt>0&&(ct.add(new go.PathSegment(go.PathSegment.Move,et/2+pt,et/2)),ct.add(new go.PathSegment(go.PathSegment.Arc,0,-360,rt,rt,pt,pt).close())),ut.spot1=Nt,ut.spot2=Wt,ut.defaultStretch=go.GraphObject.Uniform,ut}),go.Shape.defineFigureGenerator("Cloud",function(vt,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(vt,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 Nn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Nn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(vt,et,tt){var st=vt?vt.parameter1:NaN,rt=vt?vt.parameter2:NaN;isNaN(st)&&(st=0),isNaN(rt)&&(rt=315);var ut=st%360;ut<0&&(ut+=360);var ct=rt%360,pt=Math.min(et,tt)/2;return new go.Geometry().add(new go.PathFigure(pt,pt).add(new go.PathSegment(go.PathSegment.Arc,ut,ct,pt,pt,pt,pt).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(vt,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 Nn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(vt,et,tt){var st=vt?vt.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 Nn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(vt,et,tt){var st=vt?vt.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 Nn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(vt,et,tt){var st=vt?vt.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,pt=Math.atan2(tt,et),mt=st-Math.min(Math.cos(pt)*st/2,ut),Ct=st-Math.min(Math.sin(pt)*st/2,ct),rt=new go.Geometry,Dt=new go.PathFigure(mt,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-mt,0)),Dt.add(new go.PathSegment(go.PathSegment.Line,et,Ct)),Dt.add(new go.PathSegment(go.PathSegment.Line,.8*et,ct)),Dt.add(new go.PathSegment(go.PathSegment.Line,et,tt-Ct)),Dt.add(new go.PathSegment(go.PathSegment.Line,et-mt,tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,ut,.8*tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,mt,tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,tt-Ct)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ct)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,Ct).close()),rt}}),go.Shape.setFigureParameter("ThinX",0,new Nn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(vt,et,tt){var st=vt?vt.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 Nn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(vt,et,tt){var st=vt?vt.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 Nn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(vt,et,tt){var st=vt?vt.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(vt,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(vt,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(vt,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(vt,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(vt,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,pt=0,mt=ut*xt;return rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5+ut+pt)*tt,(.5-ut+ct)*et,(.5+mt+pt)*tt,(.5-mt+ct)*et,(.5+ut+pt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ut+ct)*et,(.5+pt)*tt,(.5+mt+ct)*et,(.5+ut+pt)*tt,(.5+ut+ct)*et,(.5+mt+pt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5-ut+pt)*tt,(1-.5+ut+ct)*et,(.5-mt+pt)*tt,(.5+mt+ct)*et,(.5-ut+pt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.65*et,.36771243*tt,(.5-mt+ct)*et,(.5-ut+pt)*tt,(.5-ut+ct+.05)*et,(.5-mt+pt-.02)*tt)),ut=.2,ct=0,pt=-.3,mt=ut*xt,rt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ut+ct)*et,(.5+pt)*tt,(.5+mt+ct)*et,(.5+ut+pt)*tt,(.5+ut+ct)*et,(.5+mt+pt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5-ut+pt)*tt,(1-.5+ut+ct)*et,(.5-mt+pt)*tt,(.5+mt+ct)*et,(.5-ut+pt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ut+ct)*et,(.5+pt)*tt,(.5-mt+ct)*et,(.5-ut+pt)*tt,(.5-ut+ct)*et,(.5-mt+pt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-mt+ct)*et,(.5+ut+pt)*tt,(.5-ut+ct)*et,(.5+mt+pt)*tt,(.5-mt+ct)*et,(.5+ut+pt)*tt)),ut=.2,ct=-.3,pt=0,mt=ut*xt,rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5-ut+pt)*tt,(1-.5+ut+ct-.05)*et,(.5-mt+pt-.02)*tt,(.5+mt+ct)*et,(.5-ut+pt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ut+ct)*et,(.5+pt)*tt,(.5-mt+ct)*et,(.5-ut+pt)*tt,(.5-ut+ct)*et,(.5-mt+pt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ct)*et,(.5+ut+pt)*tt,(.5-ut+ct)*et,(.5+mt+pt)*tt,(.5-mt+ct)*et,(.5+ut+pt)*tt)),rt.add(new go.PathSegment(go.PathSegment.Bezier,.4*et,.6*tt,(.5+mt+ct)*et,(.5+ut+pt)*tt,(.5+ut+ct)*et,(.5+mt+pt)*tt).close()),st.setSpots(.06,.33,.93,.68),st}),go.Shape.defineFigureGenerator("YinYang",function(vt,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,pt=.25;return rt.add(new go.PathSegment(go.PathSegment.Move,(ct+ut)*et,pt*tt)),rt.add(new go.PathSegment(go.PathSegment.Arc,0,-360,et*ct,tt*pt,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)),pt=.75,rt=new go.PathFigure((ct+ut)*et,pt*tt,!0),st.add(rt),rt.add(new go.PathSegment(go.PathSegment.Arc,0,360,et*ct,tt*pt,ut*et,ut*et).close()),st.defaultStretch=go.GraphObject.Uniform,st}),go.Shape.defineFigureGenerator("Peace",function(vt,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(vt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=.5,ct=.5,pt=.5,mt=new go.PathFigure(ct*et,(pt-ut)*tt);st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,pt*tt,(ct-rt)*et,(pt-ut)*tt,(ct-ut)*et,(pt-rt)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+ut)*tt,(ct-ut)*et,(pt+rt)*tt,(ct-rt)*et,(pt+ut)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,pt*tt,(ct+rt)*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt-ut)*tt,(ct+ut)*et,(pt-rt)*tt,(ct+rt)*et,(pt-ut)*tt)),ut=.4,rt=xt*.4;var Ct=Rt(),Dt=Rt(),Ut=Rt(),Ft=Rt();Yt(ct,pt-ut,ct+rt,pt-ut,ct+ut,pt-rt,ct+ut,pt,.42,Ct,Dt,Ut,Ft,Ft);var Qt=Rt(),$t=Rt(),Kt=Rt();Yt(ct,pt-ut,ct+rt,pt-ut,ct+ut,pt-rt,ct+ut,pt,.58,Ft,Ft,Kt,Qt,$t);var ue=Rt(),oe=Rt(),we=Rt();Yt(ct,pt+ut,ct-rt,pt+ut,ct-ut,pt+rt,ct-ut,pt,.42,ue,oe,we,Ft,Ft);var Se=Rt(),Ne=Rt(),pe=Rt();return Yt(ct,pt+ut,ct-rt,pt+ut,ct-ut,pt+rt,ct-ut,pt,.58,Ft,Ft,pe,Se,Ne),mt.add(new go.PathSegment(go.PathSegment.Move,pe.x*et,pe.y*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,pt*tt,Se.x*et,Se.y*tt,Ne.x*et,Ne.y*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt-ut)*tt,(ct-ut)*et,(pt-rt)*tt,(ct-rt)*et,(pt-ut)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,Ut.x*et,Ut.y*tt,Ct.x*et,Ct.y*tt,Dt.x*et,Dt.y*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,pe.x*et,pe.y*tt).close()),mt.add(new go.PathSegment(go.PathSegment.Move,we.x*et,we.y*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,Kt.x*et,Kt.y*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,pt*tt,Qt.x*et,Qt.y*tt,$t.x*et,$t.y*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt,(ct+rt)*et,(pt+ut)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,we.x*et,we.y*tt,ue.x*et,ue.y*tt,oe.x*et,oe.y*tt).close()),yt(Ct),yt(Dt),yt(Ut),yt(Ft),yt(Qt),yt($t),yt(Kt),yt(ue),yt(oe),yt(we),yt(Se),yt(Ne),yt(pe),st.defaultStretch=go.GraphObject.Uniform,st}),go.Shape.defineFigureGenerator("Fragile",function(vt,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 Nn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(vt,et,tt){var st=vt?vt.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(vt,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(vt,et,tt){var st=new go.Geometry,rt=xt*.4,ut=.4,ct=.5,pt=.5,mt=Rt(),Ct=Rt(),Dt=Rt(),Ut=Rt(),Ft=new go.PathFigure((ct-ut)*et,pt*tt,!1);st.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt-ut)*tt,(ct-ut)*et,(pt-rt)*tt,(ct-rt)*et,(pt-ut)*tt)),Yt(ct,pt-ut,ct+rt,pt-ut,ct+ut,pt-rt,ct+ut,pt,.44,Dt,Ut,Ct,mt,mt),Ft.add(new go.PathSegment(go.PathSegment.Bezier,Ct.x*et,Ct.y*tt,Dt.x*et,Dt.y*tt,Ut.x*et,Ut.y*tt));var Qt=Gt(Ct.x,Ct.y);Yt(ct,pt-ut,ct+rt,pt-ut,ct+ut,pt-rt,ct+ut,pt,.56,mt,mt,Ct,Dt,Ut);var $t=Gt(Ct.x,Ct.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,($t.x*.1+.9)*et,.15*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,($t.x*.1+.9)*et,($t.y*.1+.05*.9)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Line,$t.x*et,$t.y*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,pt*tt,Dt.x*et,Dt.y*tt,Ut.x*et,Ut.y*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt,(ct+rt)*et,(pt+ut)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,pt*tt,(ct-rt)*et,(pt+ut)*tt,(ct-ut)*et,(pt+rt)*tt)),ut=.35,rt=xt*.35;var Kt=new go.PathFigure(ct*et,(pt-ut)*tt,!1);st.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,pt*tt,(ct-rt)*et,(pt-ut)*tt,(ct-ut)*et,(pt-rt)*tt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+ut)*tt,(ct-ut)*et,(pt+rt)*tt,(ct-rt)*et,(pt+ut)*tt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,pt*tt,(ct+rt)*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt-ut)*tt,(ct+ut)*et,(pt-rt)*tt,(ct+rt)*et,(pt-ut)*tt));var ue=new go.PathFigure((ct-ut)*et,pt*tt,!1);return st.add(ue),yt(mt),yt(Ct),yt(Dt),yt(Ut),yt(Qt),yt($t),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(vt,et,tt){var st=new go.Geometry,rt=.375,ut=0,ct=-.125,pt=rt*xt,mt=new go.PathFigure((.525+ut)*et,(.5+rt+ct)*tt,!1);st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+rt+ut)*et,(.5+ct)*tt,(.5+pt+ut)*et,(.5+rt+ct)*tt,(.5+rt+ut)*et,(.5+pt+ct)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*et,(.5-rt+ct)*tt,(1-.5+rt+ut)*et,(.5-pt+ct)*tt,(.5+pt+ut)*et,(.5-rt+ct)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ut)*et,(.5+ct)*tt,(.5-pt+ut)*et,(.5-rt+ct)*tt,(.5-rt+ut)*et,(.5-pt+ct)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(.475+ut)*et,(.5+rt+ct)*tt,(.5-rt+ut)*et,(.5+pt+ct)*tt,(.5-pt+ut)*et,(.5+rt+ct)*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.475*et,.85*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.85*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.425*et,.9*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.475*et,.9*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.475*et,tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.525*et,tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.9*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.9*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.575*et,.85*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.525*et,.85*tt).close()),rt=.325,ut=0,ct=-.125,pt=rt*xt;var mt=new go.PathFigure((1-.5+rt+ut)*et,(.5+ct)*tt,!1);st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*et,(.5+rt+ct)*tt,(.5+rt+ut)*et,(.5+pt+ct)*tt,(.5+pt+ut)*et,(.5+rt+ct)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ut)*et,(.5+ct)*tt,(.5-pt+ut)*et,(.5+rt+ct)*tt,(.5-rt+ut)*et,(.5+pt+ct)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ut)*et,(.5-rt+ct)*tt,(.5-rt+ut)*et,(.5-pt+ct)*tt,(.5-pt+ut)*et,(.5-rt+ct)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+rt+ut)*et,(.5+ct)*tt,(.5+pt+ut)*et,(.5-rt+ct)*tt,(1-.5+rt+ut)*et,(.5-pt+ct)*tt));var mt=new go.PathFigure((.525+ut)*et,(.5+rt+ct)*tt,!1);return st.add(mt),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(vt,et,tt){var st=vt?vt.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(vt,et,tt){var st=vt?vt.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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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 Nn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Nn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=.3);var rt=vt?vt.parameter2:NaN;isNaN(rt)&&(rt=.3);var ut=(1-st)*et,ct=(.5-rt/2)*tt,pt=(.5+rt/2)*tt,mt=new go.Geometry,Ct=new go.PathFigure(0,ct,!0);mt.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Line,ut,ct)),Ct.add(new go.PathSegment(go.PathSegment.Line,ut,0)),Ct.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),Ct.add(new go.PathSegment(go.PathSegment.Line,ut,tt)),Ct.add(new go.PathSegment(go.PathSegment.Line,ut,pt)),Ct.add(new go.PathSegment(go.PathSegment.Line,0,pt).close()),mt.spot1=new go.Spot(0,ct/tt);var Dt=Vt(0,pt/tt,1,pt/tt,ut/et,1,1,.5,Rt());return mt.spot2=new go.Spot(Dt.x,Dt.y),yt(Dt),mt}),go.Shape.setFigureParameter("Arrow2",0,new Nn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Nn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=30),st>et&&(st=et);var rt=vt?vt.parameter2:NaN;isNaN(rt)&&(rt=30),rt=Math.min(rt,tt/2);var ut=et-st,ct=(tt-rt)/2,pt=ct+rt,mt=new go.Geometry,Ct=new go.PathFigure(0,ct,!0);mt.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Line,ut,ct)),Ct.add(new go.PathSegment(go.PathSegment.Line,ut,0)),Ct.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),Ct.add(new go.PathSegment(go.PathSegment.Line,ut,tt)),Ct.add(new go.PathSegment(go.PathSegment.Line,ut,pt)),Ct.add(new go.PathSegment(go.PathSegment.Line,0,pt).close()),mt.spot1=new go.Spot(0,ct/tt);var Dt=Vt(0,pt/tt,1,pt/tt,ut/et,1,1,.5,Rt());return mt.spot2=new go.Spot(Dt.x,Dt.y),yt(Dt),mt}),go.Shape.defineFigureGenerator("Chevron",function(vt,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(vt,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 Nn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=.3);var rt=(.5-st/2)*tt,ut=(.5+st/2)*tt,ct=new go.Geometry,pt=new go.PathFigure(et,.5*tt,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,.3*et,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,.3*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.3*et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.3*et,rt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close());var mt=Vt(0,.5,.3,0,0,rt/tt,.1,rt/tt,Rt());return ct.spot1=new go.Spot(mt.x,mt.y),mt=Vt(.7,1,1,.5,0,ut/tt,1,ut/tt,mt),ct.spot2=new go.Spot(mt.x,mt.y),yt(mt),ct}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Nn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Nn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=40);var rt=vt?vt.parameter2:NaN;isNaN(rt)&&(rt=100);var ut=(tt-st)/2,ct=ut+st,pt=(tt-rt)/2,mt=pt+rt;(st>tt||rt>tt)&&(rt>st?(st=st*tt/rt,ut=(tt-st)/2,ct=ut+st,pt=0,mt=tt):(ut=0,ct=tt,pt=0,mt=tt));var Ct=new go.Geometry,Dt=new go.PathFigure(et,.5*tt,!0);Ct.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,mt)),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,mt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.3*et,pt)),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,pt).close());var Ut=Vt(0,.5,.3,pt/tt,0,ut/tt,1,ut/tt,Rt());return Ct.spot1=new go.Spot(Ut.x,Ut.y),Ut=Vt(.7,mt/tt,1,.5,0,ct/tt,1,ct/tt,Ut),Ct.spot2=new go.Spot(Ut.x,Ut.y),yt(Ut),Ct}),go.Shape.setFigureParameter("IBeamArrow",0,new Nn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=.3);var rt=(.5-st/2)*tt,ut=(.5+st/2)*tt,ct=new go.Geometry,pt=new go.PathFigure(et,.5*tt,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,tt)),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,.2*et,0)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,rt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),ct.spot1=new go.Spot(0,rt/tt);var mt=Vt(.7,1,1,.5,0,ut/tt,1,ut/tt,Rt());return ct.spot2=new go.Spot(mt.x,mt.y),yt(mt),ct}),go.Shape.setFigureParameter("IBeamArrow2",0,new Nn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Nn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=40);var rt=vt?vt.parameter2:NaN;isNaN(rt)&&(rt=100);var ut=(tt-st)/2,ct=ut+st,pt=(tt-rt)/2,mt=pt+rt;(st>tt||rt>tt)&&(rt>st?(st=st*tt/rt,ut=(tt-st)/2,ct=ut+st,pt=0,mt=tt):(ut=0,ct=tt,pt=0,mt=tt));var Ct=new go.Geometry,Dt=new go.PathFigure(et,.5*tt,!0);Ct.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Line,.7*et,mt)),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,mt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,mt)),Dt.add(new go.PathSegment(go.PathSegment.Line,0,pt)),Dt.add(new go.PathSegment(go.PathSegment.Line,.2*et,pt)),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,pt).close()),Ct.spot1=new go.Spot(0,ut/tt);var Ut=Vt(.7,mt/tt,1,.5,0,ct/tt,1,ct/tt,Rt());return Ct.spot2=new go.Spot(Ut.x,Ut.y),yt(Ut),Ct}),go.Shape.setFigureParameter("Pointer",0,new Nn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(vt,et,tt){var st=vt?vt.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=Vt(.2,.65,1,.65,0,1,1,.5,Rt());return rt.spot2=new go.Spot(ct.x,ct.y),yt(ct),rt}),go.Shape.setFigureParameter("RoundedPointer",0,new Nn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(vt,et,tt){var st=vt?vt.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=Vt(0,.65,1,.65,0,1,1,.5,Rt());return rt.spot2=new go.Spot(ct.x,ct.y),yt(ct),rt}),go.Shape.setFigureParameter("SplitEndArrow",0,new Nn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(vt,et,tt){var st=vt?vt.parameter1:NaN;isNaN(st)&&(st=.4);var rt=(.5-st/2)*tt,ut=(.5+st/2)*tt,ct=new go.Geometry,pt=new go.PathFigure(et,.5*tt,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,0,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,rt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),ct.spot1=new go.Spot(.2,.3);var mt=Vt(.7,1,1,.5,0,ut/tt,1,ut/tt,Rt());return ct.spot2=new go.Spot(mt.x,mt.y),yt(mt),ct}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Nn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(vt,et,tt){var st=vt?vt.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,pt=new go.PathFigure(et,.5*tt,!0);ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,0,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.5*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,rt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,rt)),pt.add(new go.PathSegment(go.PathSegment.Line,.7*et,0).close()),ct.spot1=new go.Spot(.2,rt/tt);var mt=Vt(.7,1,1,.5,0,ut/tt,1,ut/tt,Rt());return ct.spot2=new go.Spot(mt.x,mt.y),yt(mt),ct}),go.Shape.setFigureParameter("SquareArrow",0,new Nn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(vt,et,tt){var st=vt?vt.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(vt,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(vt,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(vt,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(vt,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(vt,et,tt){var st=vt?vt.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 pt=new go.PathFigure(et,st,!1);return rt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,2*st,1*et,2*st-xt*st,(.5+ut)*et,2*st)),pt.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(vt,et,tt){var st=vt?vt.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 pt=new go.PathFigure(0,tt-st,!1);return rt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,tt-2*st,0,tt-st-xt*st,(.5-ut)*et,tt-2*st)),pt.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(vt,et,tt){var st=vt?vt.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 pt=new go.PathFigure(st,0,!1);return rt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,2*st,.5*tt,st+xt*st,0,2*st,(.5-ut)*tt)),pt.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(vt,et,tt){var st=vt?vt.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 pt=new go.PathFigure(et-st,0,!1);return rt.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,et-2*st,.5*tt,et-st-xt*st,0,et-2*st,(.5-ut)*tt)),pt.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(vt,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(vt,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(vt,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(vt,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(vt,et,tt){var st=new go.Geometry,rt=.2,ut=.1,ct=xt*rt,pt=xt*ut,mt=.5,Ct=.1,Dt=new go.PathFigure(mt*et,(Ct+ut)*tt,!0);st.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-rt)*et,Ct*tt,(mt-ct)*et,(Ct+ut)*tt,(mt-rt)*et,(Ct+pt)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Ct-ut)*tt,(mt-rt)*et,(Ct-pt)*tt,(mt-ct)*et,(Ct-ut)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+rt)*et,Ct*tt,(mt+ct)*et,(Ct-ut)*tt,(mt+rt)*et,(Ct-pt)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Ct+ut)*tt,(mt+rt)*et,(Ct+pt)*tt,(mt+ct)*et,(Ct+ut)*tt));var Ut=.05,Ft=xt*Ut;mt=.05,Ct=.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)),mt=.95,Ct=.25,Qt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+Ut)*et,Ct*tt,(mt+Ft)*et,(Ct-Ut)*tt,(mt+Ut)*et,(Ct-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)),Ut=.025,Ft=xt*Ut,mt=.825,Ct=.35,Qt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Ct-Ut)*tt,(mt+Ut)*et,(Ct-Ft)*tt,(mt+Ft)*et,(Ct-Ut)*tt)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-Ut)*et,Ct*tt,(mt-Ft)*et,(Ct-Ut)*tt,(mt-Ut)*et,(Ct-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)),Ut=.05,Ft=xt*Ut,mt=.5,Ct=.7,Qt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Ct-Ut)*tt,(mt+Ut)*et,(Ct-Ft)*tt,(mt+Ft)*et,(Ct-Ut)*tt)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-Ut)*et,Ct*tt,(mt-Ft)*et,(Ct-Ut)*tt,(mt-Ut)*et,(Ct-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)),Ut=.025,Ft=xt*Ut,mt=.175,Ct=.35,Qt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Ct-Ut)*tt,(mt+Ut)*et,(Ct-Ft)*tt,(mt+Ft)*et,(Ct-Ut)*tt)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-Ut)*et,Ct*tt,(mt-Ft)*et,(Ct-Ut)*tt,(mt-Ut)*et,(Ct-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)),Ut=.05,Ft=xt*Ut,mt=.05,Ct=.25,Qt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Ct-Ut)*tt,(mt-Ut)*et,(Ct-Ft)*tt,(mt-Ft)*et,(Ct-Ut)*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 Nn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(vt,et,tt){var st=vt?vt.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(vt,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(vt,et,tt){var st=new go.Geometry,rt=vt?vt.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(vt,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 pt=new go.PathFigure(et,.1*tt,!1);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,et,(.1+ut)*tt,(.5+rt)*et,.2*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*tt,(.5-rt)*et,.2*tt,0,(.1+ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,et,.2*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,et,(.2+ut)*tt,(.5+rt)*et,.3*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*tt,(.5-rt)*et,.3*tt,0,(.2+ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,et,.3*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.4*tt,et,(.3+ut)*tt,(.5+rt)*et,.4*tt)),pt.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(vt,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(vt,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 pt=new go.PathFigure(et,.1*tt,!1);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,et,(.1+ut)*tt,(.5+rt)*et,.2*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*tt,(.5-rt)*et,.2*tt,0,(.1+ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,et,.2*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.3*tt,et,(.2+ut)*tt,(.5+rt)*et,.3*tt)),pt.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(vt,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(vt,et,tt){var st=new go.Geometry,rt=vt?vt.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 pt=new go.PathFigure(0,rt*tt,!1);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,rt*tt)),st}),go.Shape.defineFigureGenerator("DividedProcess",function(vt,et,tt){var st=new go.Geometry,rt=vt?vt.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(vt,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(vt,et,tt){var st=new go.Geometry,rt=vt?vt.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(vt,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(vt,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(vt,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(vt,et,tt){var st=new go.Geometry,rt=vt?vt.parameter1:NaN,ut=vt?vt.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 pt=new go.PathFigure(rt*et,0,!1);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,rt*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Move,0,ut*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,ut*tt)),st}),go.Shape.defineFigureGenerator("Junction",function(vt,et,tt){var st=new go.Geometry,rt=1/Math.SQRT2,ut=(1-1/Math.SQRT2)/2,ct=xt*.5,pt=.5,mt=new go.PathFigure(et,pt*tt,!0);st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,tt,et,(pt+ct)*tt,(pt+ct)*et,tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,pt*tt,(pt-ct)*et,tt,0,(pt+ct)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,0,0,(pt-ct)*tt,(pt-ct)*et,0)),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,pt*tt,(pt+ct)*et,0,et,(pt-ct)*tt));var Ct=new go.PathFigure((ut+rt)*et,(ut+rt)*tt,!1);return st.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Line,ut*et,ut*tt)),Ct.add(new go.PathSegment(go.PathSegment.Move,ut*et,(ut+rt)*tt)),Ct.add(new go.PathSegment(go.PathSegment.Line,(ut+rt)*et,ut*tt)),st}),go.Shape.defineFigureGenerator("LinedDocument",function(vt,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(vt,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(vt,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(vt,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(vt,et,tt){var st=new go.Geometry,rt=vt?vt.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(vt,et,tt){var st=new go.Geometry,rt=vt?vt.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(vt,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(vt,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(vt,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(vt,et,tt){var st=new go.Geometry,rt=vt?vt.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 pt=new go.PathFigure(.5*rt*et,rt*tt,!1);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,(1-.5*rt)*et,rt*tt)),st}),go.Shape.defineFigureGenerator("OffPageConnector",function(vt,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(vt,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 pt=new go.PathFigure(et,.5*tt,!1);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,0,.5*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,.5*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,0)),st}),go.Shape.defineFigureGenerator("PaperTape",function(vt,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(vt,et,tt){var st=new go.Geometry,rt=vt?vt.parameter1:NaN,ut=vt?vt.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(vt,et,tt){var st=new go.Geometry,rt=vt?vt.parameter1:NaN,ut=vt?vt.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(vt,et,tt){var st=new go.Geometry,rt=vt?vt.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(vt,et,tt){var st=new go.Geometry,rt=vt?vt.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(vt,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(vt,et,tt){var st=new go.Geometry,rt=vt?vt.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(vt,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(vt,et,tt){var st=new go.Geometry,rt=vt?vt.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(vt,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(vt,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(vt,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 pt=new go.PathFigure(et,ut*tt,!1);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,ut*tt));var mt=new go.PathFigure(.8*et,.75*tt,!1);return st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.25*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.25*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.6*et,.75*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.75*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.4*et,.25*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.25*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,.2*et,.75*tt)),st}),go.Shape.defineFigureGenerator("Ground",function(vt,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(vt,et,tt){var st=new go.Geometry,rt=xt*.1,ut=.1,ct=.9,pt=.5,mt=new go.PathFigure(.8*et,.5*tt,!0);st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,0,tt)),mt.add(new go.PathSegment(go.PathSegment.Line,0,0)),mt.add(new go.PathSegment(go.PathSegment.Line,.8*et,.5*tt));var Ct=new go.PathFigure((ct+ut)*et,pt*tt,!0);return st.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt,(ct+rt)*et,(pt+ut)*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,pt*tt,(ct-rt)*et,(pt+ut)*tt,(ct-ut)*et,(pt+rt)*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt-ut)*tt,(ct-ut)*et,(pt-rt)*tt,(ct-rt)*et,(pt-ut)*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,pt*tt,(ct+rt)*et,(pt-ut)*tt,(ct+ut)*et,(pt-rt)*tt)),st.spot1=new go.Spot(0,.25),st.spot2=new go.Spot(.4,.75),st}),go.Shape.defineFigureGenerator("NandGate",function(vt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=xt*.4,ct=xt*.1,pt=.1,mt=.9,Ct=.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 Ut=new go.PathFigure((mt+pt)*et,Ct*tt,!0);return st.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Ct+pt)*tt,(mt+pt)*et,(Ct+ct)*tt,(mt+ct)*et,(Ct+pt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(mt-pt)*et,Ct*tt,(mt-ct)*et,(Ct+pt)*tt,(mt-pt)*et,(Ct+ct)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Ct-pt)*tt,(mt-pt)*et,(Ct-ct)*tt,(mt-ct)*et,(Ct-pt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(mt+pt)*et,Ct*tt,(mt+ct)*et,(Ct-pt)*tt,(mt+pt)*et,(Ct-ct)*tt)),st.spot1=new go.Spot(0,.05),st.spot2=new go.Spot(.55,.95),st}),go.Shape.defineFigureGenerator("NorGate",function(vt,et,tt){var st=new go.Geometry,rt=.5,ut=xt*rt,ct=0,pt=.5,mt=new go.PathFigure(.8*et,.5*tt,!0);st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.7*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*et,.75*tt,.25*et,.25*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(ct+ut)*et,(pt-rt)*tt,.7*et,(pt-ut)*tt)),rt=.1,ut=xt*.1,ct=.9,pt=.5;var Ct=new go.PathFigure((ct-rt)*et,pt*tt,!0);return st.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt-rt)*tt,(ct-rt)*et,(pt-ut)*tt,(ct-ut)*et,(pt-rt)*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,pt*tt,(ct+ut)*et,(pt-rt)*tt,(ct+rt)*et,(pt-ut)*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+rt)*tt,(ct+rt)*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,pt*tt,(ct-ut)*et,(pt+rt)*tt,(ct-rt)*et,(pt+ut)*tt)),st.spot1=new go.Spot(.2,.25),st.spot2=new go.Spot(.6,.75),st}),go.Shape.defineFigureGenerator("OrGate",function(vt,et,tt){var st=new go.Geometry,rt=.5,ut=xt*rt,ct=0,pt=.5,mt=new go.PathFigure(0,0,!0);return st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(ct+ut+ut)*et,(pt-rt)*tt,.8*et,(pt-ut)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,0,tt,.8*et,(pt+ut)*tt,(ct+ut+ut)*et,(pt+rt)*tt)),mt.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(vt,et,tt){var st=new go.Geometry,rt=.5,ut=xt*rt,ct=.2,pt=.5,mt=new go.PathFigure(.1*et,0,!1);st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,tt,.35*et,.25*tt,.35*et,.75*tt));var Ct=new go.PathFigure(.8*et,.5*tt,!0);st.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,tt,.7*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,0,.45*et,.75*tt,.45*et,.25*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,.8*et,.5*tt,(ct+ut)*et,(pt-rt)*tt,.7*et,(pt-ut)*tt)),rt=.1,ut=xt*.1,ct=.9,pt=.5;var Dt=new go.PathFigure((ct-rt)*et,pt*tt,!0);return st.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt-rt)*tt,(ct-rt)*et,(pt-ut)*tt,(ct-ut)*et,(pt-rt)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,pt*tt,(ct+ut)*et,(pt-rt)*tt,(ct+rt)*et,(pt-ut)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+rt)*tt,(ct+rt)*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,pt*tt,(ct-ut)*et,(pt+rt)*tt,(ct-rt)*et,(pt+ut)*tt)),st.spot1=new go.Spot(.4,.25),st.spot2=new go.Spot(.65,.75),st}),go.Shape.defineFigureGenerator("XorGate",function(vt,et,tt){var st=new go.Geometry,rt=.5,ut=xt*rt,ct=.2,pt=.5,mt=new go.PathFigure(.1*et,0,!1);st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,.1*et,tt,.35*et,.25*tt,.35*et,.75*tt));var Ct=new go.PathFigure(.2*et,0,!0);return st.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.5*tt,(ct+ut)*et,(pt-rt)*tt,.9*et,(pt-ut)*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,.2*et,tt,.9*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt)),Ct.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(vt,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(vt,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(vt,et,tt){var st=new go.Geometry,rt=xt*.1,ut=.1,ct=.1,pt=.5,mt=new go.PathFigure((ct-rt*.5)*et,tt,!1);return st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-rt)*et,tt,(ct-ut)*et,0)),ct=.3,mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,tt,(ct+ut)*et,0,(ct+rt)*et,tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-rt)*et,tt,(ct-ut)*et,0)),ct=.5,mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,tt,(ct+ut)*et,0,(ct+rt)*et,tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-rt)*et,tt,(ct-ut)*et,0)),ct=.7,mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,tt,(ct+ut)*et,0,(ct+rt)*et,tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,0,(ct-rt)*et,tt,(ct-ut)*et,0)),ct=.9,mt.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(vt,et,tt){var st=new go.Geometry,rt=xt*.5,ut=.5,ct=.5,pt=.5,mt=new go.PathFigure((ct-ut)*et,pt*tt,!1);return st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt-ut)*tt,(ct-ut)*et,(pt-rt)*tt,(ct-rt)*et,(pt-ut)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,pt*tt,(ct+rt)*et,(pt-ut)*tt,(ct+ut)*et,(pt-rt)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt,(ct+rt)*et,(pt+ut)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,pt*tt,(ct-rt)*et,(pt+ut)*tt,(ct-ut)*et,(pt+rt)*tt)),mt.add(new go.PathSegment(go.PathSegment.Move,(ct-ut+.1)*et,pt*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut-.1)*et,pt*tt,ct*et,(pt-ut)*tt,ct*et,(pt+ut)*tt)),st}),go.Shape.defineFigureGenerator("DCvoltageSource",function(vt,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(vt,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(vt,et,tt){var st=new go.Geometry,rt=et,ut=tt;et=et*.38,tt=tt*.6;var ct=xt*.8,pt=.8,mt=0,Ct=.5,Dt=(rt-et)/2,Ut=(ut-tt)/2,Ft=new go.PathFigure(mt*et+Dt,(Ct+pt)*tt+Ut,!0);st.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(mt-pt)*et+Dt,Ct*tt+Ut,(mt-ct)*et+Dt,(Ct+pt)*tt+Ut,(mt-pt)*et+Dt,(Ct+ct)*tt+Ut)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,mt*et+Dt,(Ct-pt)*tt+Ut,(mt-pt)*et+Dt,(Ct-ct)*tt+Ut,(mt-ct)*et+Dt,(Ct-pt)*tt+Ut)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(mt-pt+ct*.5)*et+Dt,Ct*tt+Ut,mt*et+Dt,(Ct-pt)*tt+Ut,(mt-pt+ct*.5)*et+Dt,(Ct-ct)*tt+Ut)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,mt*et+Dt,(Ct+pt)*tt+Ut,(mt-pt+ct*.5)*et+Dt,(Ct+ct)*tt+Ut,mt*et+Dt,(Ct+pt)*tt+Ut).close()),ct=xt*.4,pt=.4,mt=.2,Ct=.5;var Qt=new go.PathFigure(mt*et+Dt,(Ct+pt)*tt+Ut,!0);st.add(Qt),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-pt)*et+Dt,Ct*tt+Ut,(mt-ct)*et+Dt,(Ct+pt)*tt+Ut,(mt-pt)*et+Dt,(Ct+ct)*tt+Ut)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et+Dt,(Ct-pt)*tt+Ut,(mt-pt)*et+Dt,(Ct-ct)*tt+Ut,(mt-ct)*et+Dt,(Ct-pt)*tt+Ut)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-pt+ct*.5)*et+Dt,Ct*tt+Ut,mt*et+Dt,(Ct-pt)*tt+Ut,(mt-pt+ct*.5)*et+Dt,(Ct-ct)*tt+Ut)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et+Dt,(Ct+pt)*tt+Ut,(mt-pt+ct*.5)*et+Dt,(Ct+ct)*tt+Ut,mt*et+Dt,(Ct+pt)*tt+Ut).close()),ct=xt*.2,pt=.2,mt=.5,Ct=.5;var $t=new go.PathFigure((mt-pt)*et+Dt,Ct*tt+Ut,!0);st.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,mt*et+Dt,(Ct-pt)*tt+Ut,(mt-pt)*et+Dt,(Ct-ct)*tt+Ut,(mt-ct)*et+Dt,(Ct-pt)*tt+Ut)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(mt+pt)*et+Dt,Ct*tt+Ut,(mt+ct)*et+Dt,(Ct-pt)*tt+Ut,(mt+pt)*et+Dt,(Ct-ct)*tt+Ut)),$t.add(new go.PathSegment(go.PathSegment.Bezier,mt*et+Dt,(Ct+pt)*tt+Ut,(mt+pt)*et+Dt,(Ct+ct)*tt+Ut,(mt+ct)*et+Dt,(Ct+pt)*tt+Ut)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(mt-pt)*et+Dt,Ct*tt+Ut,(mt-ct)*et+Dt,(Ct+pt)*tt+Ut,(mt-pt)*et+Dt,(Ct+ct)*tt+Ut)),ct=xt*.4,pt=.4,mt=.8,Ct=.5;var Kt=new go.PathFigure(mt*et+Dt,(Ct-pt)*tt+Ut,!0);st.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+pt)*et+Dt,Ct*tt+Ut,(mt+ct)*et+Dt,(Ct-pt)*tt+Ut,(mt+pt)*et+Dt,(Ct-ct)*tt+Ut)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et+Dt,(Ct+pt)*tt+Ut,(mt+pt)*et+Dt,(Ct+ct)*tt+Ut,(mt+ct)*et+Dt,(Ct+pt)*tt+Ut)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+pt-ct*.5)*et+Dt,Ct*tt+Ut,mt*et+Dt,(Ct+pt)*tt+Ut,(mt+pt-ct*.5)*et+Dt,(Ct+ct)*tt+Ut)),Kt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et+Dt,(Ct-pt)*tt+Ut,(mt+pt-ct*.5)*et+Dt,(Ct-ct)*tt+Ut,mt*et+Dt,(Ct-pt)*tt+Ut).close()),ct=xt*.8,pt=.8,mt=1,Ct=.5;var ue=new go.PathFigure(mt*et+Dt,(Ct-pt)*tt+Ut,!0);return st.add(ue),ue.add(new go.PathSegment(go.PathSegment.Bezier,(mt+pt)*et+Dt,Ct*tt+Ut,(mt+ct)*et+Dt,(Ct-pt)*tt+Ut,(mt+pt)*et+Dt,(Ct-ct)*tt+Ut)),ue.add(new go.PathSegment(go.PathSegment.Bezier,mt*et+Dt,(Ct+pt)*tt+Ut,(mt+pt)*et+Dt,(Ct+ct)*tt+Ut,(mt+ct)*et+Dt,(Ct+pt)*tt+Ut)),ue.add(new go.PathSegment(go.PathSegment.Bezier,(mt+pt-ct*.5)*et+Dt,Ct*tt+Ut,mt*et+Dt,(Ct+pt)*tt+Ut,(mt+pt-ct*.5)*et+Dt,(Ct+ct)*tt+Ut)),ue.add(new go.PathSegment(go.PathSegment.Bezier,mt*et+Dt,(Ct-pt)*tt+Ut,(mt+pt-ct*.5)*et+Dt,(Ct-ct)*tt+Ut,mt*et+Dt,(Ct-pt)*tt+Ut).close()),st}),go.Shape.defineFigureGenerator("Email",function(vt,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(vt,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 pt=new go.PathFigure(0,.5*tt,!1);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,.5*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,.5*et,.5*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.5*et,.4*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,.75*et,.5*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.75*et,.6*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,.25*et,.5*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.25*et,.6*tt)),st}),go.Shape.defineFigureGenerator("Power",function(vt,et,tt){var st=new go.Geometry,rt=xt*.4,ut=.4,ct=.5,pt=.5,mt=Rt(),Ct=Rt(),Dt=Rt(),Ut=Rt();Yt(ct,pt-ut,ct+rt,pt-ut,ct+ut,pt-rt,ct+ut,pt,.5,mt,mt,Ct,Dt,Ut);var Ft=Gt(Ct.x,Ct.y),Qt=new go.PathFigure(Ct.x*et,Ct.y*tt,!0);st.add(Qt),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,pt*tt,Dt.x*et,Dt.y*tt,Ut.x*et,Ut.y*tt)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt,(ct+rt)*et,(pt+ut)*tt)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,pt*tt,(ct-rt)*et,(pt+ut)*tt,(ct-ut)*et,(pt+rt)*tt)),Yt(ct-ut,pt,ct-ut,pt-rt,ct-rt,pt-ut,ct,pt-ut,.5,Dt,Ut,Ct,mt,mt),Qt.add(new go.PathSegment(go.PathSegment.Bezier,Ct.x*et,Ct.y*tt,Dt.x*et,Dt.y*tt,Ut.x*et,Ut.y*tt)),rt=xt*.3,ut=.3,Yt(ct-ut,pt,ct-ut,pt-rt,ct-rt,pt-ut,ct,pt-ut,.5,Dt,Ut,Ct,mt,mt),Qt.add(new go.PathSegment(go.PathSegment.Line,Ct.x*et,Ct.y*tt)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-ut)*et,pt*tt,Ut.x*et,Ut.y*tt,Dt.x*et,Dt.y*tt)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+ut)*tt,(ct-ut)*et,(pt+rt)*tt,(ct-rt)*et,(pt+ut)*tt)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+ut)*et,pt*tt,(ct+rt)*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt)),Yt(ct,pt-ut,ct+rt,pt-ut,ct+ut,pt-rt,ct+ut,pt,.5,mt,mt,Ct,Dt,Ut),Qt.add(new go.PathSegment(go.PathSegment.Bezier,Ct.x*et,Ct.y*tt,Ut.x*et,Ut.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()),yt(mt),yt(Ct),yt(Dt),yt(Ut),yt(Ft),st.spot1=new go.Spot(.25,.45),st.spot2=new go.Spot(.75,.8),st}),go.Shape.defineFigureGenerator("Fallout",function(vt,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,pt,mt){ct.add(new go.PathSegment(go.PathSegment.Move,(.3+pt)*et,(.8+mt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(.5+pt)*et,(.5+mt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(.1+pt)*et,(.5+mt)*tt)),ct.add(new go.PathSegment(go.PathSegment.Line,(.3+pt)*et,(.8+mt)*tt).close())}return ut(rt,0,0),ut(rt,.4,0),ut(rt,.2,-.3),st}),go.Shape.defineFigureGenerator("IrritationHazard",function(vt,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(vt,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(vt,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(vt,et,tt){var st=new go.Geometry,rt=.5,ut=0,ct=0,pt=rt*xt,mt=.4*Math.SQRT2/2+.5,Ct=.5-.5*Math.SQRT2/2,Dt=1,Ut=.5,Ft=.5,Qt=0,$t=new go.PathFigure(mt*et,(1-Ct)*tt,!1);return st.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,Ut*tt,Dt*et,.7*tt,Dt*et,Ut*tt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+ut)*et,(Qt+ut)*tt,(.5+rt+ut)*et,(.5-pt+ut)*tt,(.5+pt+ut)*et,(.5-rt+ut)*tt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(.5-rt+ut)*et,(.5+ct)*tt,(.5-pt+ut)*et,(.5-rt+ct)*tt,(.5-rt+ut)*et,(.5-pt+ct)*tt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(.35+ut)*et,.9*tt,(.5-rt+ut)*et,(.5+pt+ct)*tt,(.5-pt+ut)*et,.9*tt)),$t.add(new go.PathSegment(go.PathSegment.Move,(.25+ut)*et,.8*tt)),$t.add(new go.PathSegment(go.PathSegment.Line,(.35+ut)*et,.9*tt)),$t.add(new go.PathSegment(go.PathSegment.Line,(.2+ut)*et,.95*tt)),st}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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,pt=.5,mt=ct,Ct=Math.PI/4,Dt=4*(1-Math.cos(Ct))/(3*Math.sin(Ct)),Ut=Dt*.5,Ft=ct,Qt=ct,$t=Dt*Ft,Kt=Dt*Qt;ut.add(new go.PathSegment(go.PathSegment.Bezier,(pt-Ft)*et,mt*tt,(pt-($t+Ft)/2)*et,(mt+(Qt+Kt)/2)*tt,(pt-Ft)*et,(mt+Kt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,pt*et,(mt-Qt)*tt,(pt-Ft)*et,(mt-Kt)*tt,(pt-$t)*et,(mt-Qt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(pt+Ft)*et,mt*tt,(pt+$t)*et,(mt-Qt)*tt,(pt+Ft)*et,(mt-Kt)*tt)),ut.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*et,(1-.595)*tt,(pt+Ft)*et,(mt+Kt)*tt,(pt+($t+Ft)/2)*et,(mt+(Qt+Kt)/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 ue=new go.PathFigure(.2*et,tt,!1);st.add(ue),ue.add(new go.PathSegment(go.PathSegment.Line,.2*et,.8*tt));var oe=new go.PathFigure(.8*et,tt,!1);return st.add(oe),oe.add(new go.PathSegment(go.PathSegment.Line,.8*et,.8*tt)),st}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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 pt=new go.PathFigure(rt*et,0,!1);return st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,rt*et,.15*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,rt*et,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,rt*et,.85*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,0,rt*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.15*et,rt*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,et,rt*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.85*et,rt*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,rt*et,rt*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.58*et,.1*tt)),pt.add(new go.PathSegment(go.PathSegment.Move,rt*et,rt*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.78*et,.54*tt)),st}),go.Shape.defineFigureGenerator("Package",function(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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,pt=xt*.1,mt=.2,Ct=.9,Dt=new go.PathFigure((mt-ct)*et,Ct*tt,!0);st.add(Dt),Dt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Ct-ct)*tt,(mt-ct)*et,(Ct-pt)*tt,(mt-pt)*et,(Ct-ct)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(mt+ct)*et,Ct*tt,(mt+pt)*et,(Ct-ct)*tt,(mt+ct)*et,(Ct-pt)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Ct+ct)*tt,(mt+ct)*et,(Ct+pt)*tt,(mt+pt)*et,(Ct+ct)*tt)),Dt.add(new go.PathSegment(go.PathSegment.Bezier,(mt-ct)*et,Ct*tt,(mt-pt)*et,(Ct+ct)*tt,(mt-ct)*et,(Ct+pt)*tt).close()),ct=.1,pt=xt*.1,mt=.8,Ct=.9;var Ut=new go.PathFigure((mt-ct)*et,Ct*tt,!0);return st.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Ct-ct)*tt,(mt-ct)*et,(Ct-pt)*tt,(mt-pt)*et,(Ct-ct)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(mt+ct)*et,Ct*tt,(mt+pt)*et,(Ct-ct)*tt,(mt+ct)*et,(Ct-pt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,mt*et,(Ct+ct)*tt,(mt+ct)*et,(Ct+pt)*tt,(mt+pt)*et,(Ct+ct)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(mt-ct)*et,Ct*tt,(mt-pt)*et,(Ct+ct)*tt,(mt-ct)*et,(Ct+pt)*tt).close()),st}),go.Shape.defineFigureGenerator("KanbanPost",function(vt,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(vt,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 pt=new go.PathFigure(.5*et,.7*tt,!1);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et,.7*tt));var mt=.1,Ct=xt*.1,Dt=.1,Ut=.9,Ft=new go.PathFigure((Dt-mt)*et,Ut*tt,!0);st.add(Ft),Ft.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Ut-mt)*tt,(Dt-mt)*et,(Ut-Ct)*tt,(Dt-Ct)*et,(Ut-mt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+mt)*et,Ut*tt,(Dt+Ct)*et,(Ut-mt)*tt,(Dt+mt)*et,(Ut-Ct)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Ut+mt)*tt,(Dt+mt)*et,(Ut+Ct)*tt,(Dt+Ct)*et,(Ut+mt)*tt)),Ft.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-mt)*et,Ut*tt,(Dt-Ct)*et,(Ut+mt)*tt,(Dt-mt)*et,(Ut+Ct)*tt)),mt=.1,Ct=xt*.1,Dt=.4,Ut=.9;var Qt=new go.PathFigure((Dt-mt)*et,Ut*tt,!0);return st.add(Qt),Qt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Ut-mt)*tt,(Dt-mt)*et,(Ut-Ct)*tt,(Dt-Ct)*et,(Ut-mt)*tt)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt+mt)*et,Ut*tt,(Dt+Ct)*et,(Ut-mt)*tt,(Dt+mt)*et,(Ut-Ct)*tt)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,Dt*et,(Ut+mt)*tt,(Dt+mt)*et,(Ut+Ct)*tt,(Dt+Ct)*et,(Ut+mt)*tt)),Qt.add(new go.PathSegment(go.PathSegment.Bezier,(Dt-mt)*et,Ut*tt,(Dt-Ct)*et,(Ut+mt)*tt,(Dt-mt)*et,(Ut+Ct)*tt)),st}),go.Shape.defineFigureGenerator("RailShipment",function(vt,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,Ut=xt*.05,Ft=.175,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-Ut)*tt,(Ft-Ut)*et,(Qt-Dt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Dt)*et,Qt*tt,(Ft+Ut)*et,(Qt-Dt)*tt,(Ft+Dt)*et,(Qt-Ut)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Qt+Dt)*tt,(Ft+Dt)*et,(Qt+Ut)*tt,(Ft+Ut)*et,(Qt+Dt)*tt)),pt.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Dt)*et,Qt*tt,(Ft-Ut)*et,(Qt+Dt)*tt,(Ft-Dt)*et,(Qt+Ut)*tt));var Dt=.05,Ut=xt*.05,Ft=.375,Qt=.95,mt=new go.PathFigure((Ft-Dt)*et,Qt*tt,!0);st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Qt-Dt)*tt,(Ft-Dt)*et,(Qt-Ut)*tt,(Ft-Ut)*et,(Qt-Dt)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Dt)*et,Qt*tt,(Ft+Ut)*et,(Qt-Dt)*tt,(Ft+Dt)*et,(Qt-Ut)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Qt+Dt)*tt,(Ft+Dt)*et,(Qt+Ut)*tt,(Ft+Ut)*et,(Qt+Dt)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Dt)*et,Qt*tt,(Ft-Ut)*et,(Qt+Dt)*tt,(Ft-Dt)*et,(Qt+Ut)*tt));var Dt=.05,Ut=xt*.05,Ft=.625,Qt=.95,Ct=new go.PathFigure((Ft-Dt)*et,Qt*tt,!0);st.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Qt-Dt)*tt,(Ft-Dt)*et,(Qt-Ut)*tt,(Ft-Ut)*et,(Qt-Dt)*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Dt)*et,Qt*tt,(Ft+Ut)*et,(Qt-Dt)*tt,(Ft+Dt)*et,(Qt-Ut)*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Qt+Dt)*tt,(Ft+Dt)*et,(Qt+Ut)*tt,(Ft+Ut)*et,(Qt+Dt)*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Dt)*et,Qt*tt,(Ft-Ut)*et,(Qt+Dt)*tt,(Ft-Dt)*et,(Qt+Ut)*tt));var Dt=.05,Ut=xt*.05,Ft=.825,Qt=.95,$t=new go.PathFigure((Ft-Dt)*et,Qt*tt,!0);st.add($t),$t.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Qt-Dt)*tt,(Ft-Dt)*et,(Qt-Ut)*tt,(Ft-Ut)*et,(Qt-Dt)*tt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft+Dt)*et,Qt*tt,(Ft+Ut)*et,(Qt-Dt)*tt,(Ft+Dt)*et,(Qt-Ut)*tt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,Ft*et,(Qt+Dt)*tt,(Ft+Dt)*et,(Qt+Ut)*tt,(Ft+Ut)*et,(Qt+Dt)*tt)),$t.add(new go.PathSegment(go.PathSegment.Bezier,(Ft-Dt)*et,Qt*tt,(Ft-Ut)*et,(Qt+Dt)*tt,(Ft-Dt)*et,(Qt+Ut)*tt).close());var Kt=new go.PathFigure(0,tt,!1);return st.add(Kt),Kt.add(new go.PathSegment(go.PathSegment.Line,et,tt).close()),st}),go.Shape.defineFigureGenerator("Warehouse",function(vt,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 pt=.05,mt=xt*.05,Ct=.35,Dt=.775,Ut=new go.PathFigure((Ct-pt)*et,Dt*tt,!0);return st.add(Ut),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Ct*et,(Dt-pt)*tt,(Ct-pt)*et,(Dt-mt)*tt,(Ct-mt)*et,(Dt-pt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Ct+pt)*et,Dt*tt,(Ct+mt)*et,(Dt-pt)*tt,(Ct+pt)*et,(Dt-mt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,Ct*et,(Dt+pt)*tt,(Ct+pt)*et,(Dt+mt)*tt,(Ct+mt)*et,(Dt+pt)*tt)),Ut.add(new go.PathSegment(go.PathSegment.Bezier,(Ct-pt)*et,Dt*tt,(Ct-mt)*et,(Dt+pt)*tt,(Ct-pt)*et,(Dt+mt)*tt).close()),st}),go.Shape.defineFigureGenerator("ControlCenter",function(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,et,tt){var st=new go.Geometry,rt=.3,ut=xt*.3,ct=.5,pt=.7,mt=new go.PathFigure((ct-rt)*et,pt*tt,!0);st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt-rt)*tt,(ct-rt)*et,(pt-ut)*tt,(ct-ut)*et,(pt-rt)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,pt*tt,(ct+ut)*et,(pt-rt)*tt,(ct+rt)*et,(pt-ut)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+rt)*tt,(ct+rt)*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,pt*tt,(ct-ut)*et,(pt+rt)*tt,(ct-rt)*et,(pt+ut)*tt));var Ct=new go.PathFigure(0,.7*tt,!1);return st.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Bezier,et,.7*tt,0,0,et,0)),st}),go.Shape.defineFigureGenerator("TripleFanBlades",function(vt,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(vt,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(vt,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(vt,et,tt){var st=new go.Geometry,rt=.5,ut=xt*.5,ct=.5,pt=.5,mt=new go.PathFigure((ct-rt)*et,pt*tt,!0);st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt-rt)*tt,(ct-rt)*et,(pt-ut)*tt,(ct-ut)*et,(pt-rt)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,pt*tt,(ct+ut)*et,(pt-rt)*tt,(ct+rt)*et,(pt-ut)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+rt)*tt,(ct+rt)*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,pt*tt,(ct-ut)*et,(pt+rt)*tt,(ct-rt)*et,(pt+ut)*tt));var Ct=new go.PathFigure(.15*et,.5*tt,!1);return st.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Line,.85*et,.5*tt)),st}),go.Shape.defineFigureGenerator("Flag",function(vt,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(vt,et,tt){var st=new go.Geometry,rt=.5,ut=xt*.5,ct=.5,pt=.5,mt=new go.PathFigure((ct-rt)*et,pt*tt,!1);st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt-rt)*tt,(ct-rt)*et,(pt-ut)*tt,(ct-ut)*et,(pt-rt)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,pt*tt,(ct+ut)*et,(pt-rt)*tt,(ct+rt)*et,(pt-ut)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+rt)*tt,(ct+rt)*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt)),mt.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,pt*tt,(ct-ut)*et,(pt+rt)*tt,(ct-rt)*et,(pt+ut)*tt).close()),rt=.05,ut=xt*.05,ct=.5,pt=.8;var Ct=new go.PathFigure((ct-rt)*et,pt*tt,!1);return st.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt-rt)*tt,(ct-rt)*et,(pt-ut)*tt,(ct-ut)*et,(pt-rt)*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,(ct+rt)*et,pt*tt,(ct+ut)*et,(pt-rt)*tt,(ct+rt)*et,(pt-ut)*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,ct*et,(pt+rt)*tt,(ct+rt)*et,(pt+ut)*tt,(ct+ut)*et,(pt+rt)*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,(ct-rt)*et,pt*tt,(ct-ut)*et,(pt+rt)*tt,(ct-rt)*et,(pt+ut)*tt).close()),Ct.add(new go.PathSegment(go.PathSegment.Move,.5*et,.7*tt)),Ct.add(new go.PathSegment(go.PathSegment.Line,.5*et,.5*tt)),Ct.add(new go.PathSegment(go.PathSegment.Bezier,.5*et,.2*tt,.75*et,.475*tt,.75*et,.225*tt)),Ct.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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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 pt=new go.PathFigure(.678*et,.85*tt,!1);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,.678*et,.45*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.45*tt)),pt.add(new go.PathSegment(go.PathSegment.Line,.874*et,.85*tt).close());var mt=new go.PathFigure(.5*et,.1*tt,!1);return st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*et,.3*tt)),mt.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*et,.3*tt).close()),st}),go.Shape.defineFigureGenerator("Staircase",function(vt,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(vt,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 pt=new go.PathFigure(et*.612,tt,!0);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.612,tt*(1-.184*3))),pt.add(new go.PathSegment(go.PathSegment.Line,et*.796,tt*(1-.184*4))),pt.add(new go.PathSegment(go.PathSegment.Line,et*.796,tt*1).close());var mt=new go.PathFigure(et*.816,tt,!0);return st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et*.816,tt*(1-.184*4))),mt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*(1-.184*5))),mt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*1).close()),st}),go.Shape.defineFigureGenerator("PC",function(vt,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 pt=new go.PathFigure(et*.055,.18*tt,!0);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.18)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.245,tt*.21)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.055,tt*.21).close());var mt=new go.PathFigure(et*1,0,!0);return st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et*.4,0)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.4,tt*.65)),mt.add(new go.PathSegment(go.PathSegment.Line,et*1,tt*.65).close()),st}),go.Shape.defineFigureGenerator("Plane",function(vt,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(vt,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(vt,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 pt=new go.PathFigure(et*(.11+.24133333*1+.028*1),tt*.1,!1);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),tt*.1)),pt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*1),tt*.8)),pt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*1+.028*1),tt*.8).close());var mt=new go.PathFigure(et*(.11+.24133333*2+.028*2),tt*.1,!1);return st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),tt*.1)),mt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*3+.028*2),tt*.8)),mt.add(new go.PathSegment(go.PathSegment.Line,et*(.11+.24133333*2+.028*2),tt*.8).close()),st}),go.Shape.defineFigureGenerator("FloppyDisk",function(vt,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 pt=new go.PathFigure(et*.83,0,!1);st.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et*.83,tt*.3)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*.3)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*0).close());var mt=new go.PathFigure(et*.83,tt*1,!1);st.add(mt),mt.add(new go.PathSegment(go.PathSegment.Line,et*.83,tt*.5)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*.5)),mt.add(new go.PathSegment(go.PathSegment.Line,et*.17,tt*1).close());var Ct=new go.PathFigure(et*.78,tt*.05,!1);return st.add(Ct),Ct.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.05)),Ct.add(new go.PathSegment(go.PathSegment.Line,et*.66,tt*.25)),Ct.add(new go.PathSegment(go.PathSegment.Line,et*.78,tt*.25).close()),st}),go.Shape.defineFigureGenerator("SpeechBubble",function(vt,et,tt){var st=vt?vt.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,pt=new go.PathFigure(st,0,!0);return ct.add(pt),pt.add(new go.PathSegment(go.PathSegment.Line,et-st,0)),pt.add(new go.PathSegment(go.PathSegment.Bezier,et,st,et-rt,0,et,rt)),pt.add(new go.PathSegment(go.PathSegment.Line,et,ut-st)),pt.add(new go.PathSegment(go.PathSegment.Bezier,et-st,ut,et,ut-rt,et-rt,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.7,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.7,tt)),pt.add(new go.PathSegment(go.PathSegment.Line,et*.55,ut)),pt.add(new go.PathSegment(go.PathSegment.Line,st,ut)),pt.add(new go.PathSegment(go.PathSegment.Bezier,0,ut-st,rt,ut,0,ut-rt)),pt.add(new go.PathSegment(go.PathSegment.Line,0,st)),pt.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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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(vt,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")},98598:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Nn={},An="5.0",Gt={},Rt=null,yt=!1,Vt=!1,Yt=null,Nt=!1,Wt=null,xt=null,Ot=0;Ot<arguments.length;Ot++){var Bt=arguments[Ot];if(Bt!==null)switch(typeof Bt){case"number":An=Bt.toFixed(1);break;case"string":Bt.match(new RegExp("^[0-9]\\.[0-9]+$"))?An=Bt:Yt=Bt;break;case"object":typeof Bt.is3D!="undefined"?Rt=Bt:Gt=Bt;break;case"boolean":yt=Bt,Vt=!0;break}}Rt===null&&(Rt={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},Gt.material_id!==void 0&&!Vt&&(yt=!0)),Yt!==null&&Gt.id===void 0&&(Gt.id=Yt);var At="",bt="",Tt=!1,It=null,vt=null,et=null,tt=!1,st=null,rt=null,ut=null,ct=null,pt=null;Gt.height!==void 0&&(Gt.height=Math.round(Gt.height)),Gt.width!==void 0&&(Gt.width=Math.round(Gt.width));var mt=function(se){return parseFloat(se)>4?parseFloat(se):5};Nn.setHTML5Codebase=function(se,De){xt=se,ee(se,De)},Nn.setJavaCodebase=Nn.setJavaCodebaseVersion=Nn.isCompiledInstalled=Nn.setPreCompiledScriptPath=Nn.setPreCompiledResourcePath=function(){},Nn.setHTML5CodebaseVersion=function(se,De){var Oe=parseFloat(se);if(Oe!==NaN&&Oe<5){console.log("The GeoGebra HTML5 codebase version "+Oe+" is deprecated. Using version latest instead.");return}Wt=se,Jt(se,De)},Nn.getHTML5CodebaseVersion=function(){return vt},Nn.getParameters=function(){return Gt},Nn.setFontsCSSURL=function(se){ct=se},Nn.setGiacJSURL=function(se){},Nn.setJNLPFile=function(se){At=se},Nn.setJNLPBaseDir=function(se){},Nn.inject=function(){function se(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var De="auto",Oe=Gt.id,en,We=!1,rn=0;rn<arguments.length;rn++){var ke=arguments[rn];typeof ke=="string"?(ke=ke.toLowerCase(),ke.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?De=ke:Oe=arguments[rn]):typeof ke=="boolean"?We=ke:ke instanceof HTMLElement&&(en=ke)}Ie();function Ie(){if(!Nt){setTimeout(Ie,200);return}De=Ue(De);var je=en||document.getElementById(Oe);if(!je){console.log("possibly bug on ajax loading? ");return}if(Nn.removeExistingApplet(je,!1),Gt.width===void 0&&je.clientWidth&&(Gt.width=je.clientWidth),Gt.height===void 0&&je.clientHeight&&(Gt.height=je.clientHeight),!(Gt.width&&Gt.height)&&De==="html5"&&(delete Gt.width,delete Gt.height),It=De,De==="screenshot")oe(je,Gt);else{var $e=!1;Gt.hasOwnProperty("playButton")&&Gt.playButton||Gt.hasOwnProperty("clickToLoad")&&Gt.clickToLoad?$e=!0:Gt.hasOwnProperty("playButtonAutoDecide")&&Gt.playButtonAutoDecide&&($e=(!Ct()||se())&&Dt()),$e?(It="screenshot",Se(je,Gt,We,De)):ue(je,Gt,We)}}};function Ct(){try{return window.self!==window.top}catch(se){return!0}}function Dt(){return Gt.hasOwnProperty("screenshotGenerator")&&Gt.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Nn.getViews=function(){return Rt},Nn.isJavaInstalled=function(){return!1};var Ut=function(se){var De=function(rn){var ke=JSON.parse(rn),Ie=function(me){return me.type=="G"||me.type=="E"},je=ke.elements?ke.elements.filter(Ie)[0]:ke;if(!je||!je.url){Oe();return}Gt.fileName=je.url,Ft(je.settings||{}),Rt.is3D=!0;var $e="https://www.geogebra.org/images/";Nn.setPreviewImage(st||je.previewUrl,$e+"GeoGebra_loading.png",$e+"applet_play.png"),se()},Oe=function(){Gt.onError&&Gt.onError(),ae("Error: Fetching material (id "+Gt.material_id+") failed.",Gt)},en=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",We="/materials/"+Gt.material_id+"?scope=basic";Qt("https://"+en+"/api/proxy.php?path="+encodeURIComponent(We),De,Oe)};function Ft(se){var De=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Oe){se[Oe]=!!se[Oe]}),De.forEach(function(Oe){Gt[Oe]===void 0&&se[Oe]!==void 0&&(Gt[Oe]=se[Oe])}),Gt.showToolBarHelp===void 0&&(Gt.showToolBarHelp=Gt.showToolBar)}function Qt(se,De,Oe){var en=new XMLHttpRequest;en.open("GET",se),en.onload=function(){De(en.responseText)},en.onerror=Oe,en.send()}Nn.isHTML5Installed=function(){return!0},Nn.getLoadedAppletType=function(){return It},Nn.setPreviewImage=function(se,De,Oe){st=se,rt=De,ut=Oe},Nn.removeExistingApplet=function(se,De){var Oe;typeof se=="string"&&(se=document.getElementById(se)),It=null;var en=null;for(Oe=0;Oe<se.childNodes.length;Oe++){var We=se.childNodes[Oe],rn=We.className;rn==="applet_screenshot"?De?(We.style.display="block",It="screenshot"):We.style.display="none":rn!=="applet_scaler prerender"&&(se.removeChild(We),en=rn&&rn.indexOf("appletParameters")!=-1?We.id:null,Oe--)}var ke=Gt.id!==void 0?Gt.id:en,Ie=window[ke];Ie&&typeof Ie.getBase64=="function"&&(Ie.remove(),window[ke]=null)},Nn.refreshHitPoints=function(){if(mt(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var se=Nn.getAppletObject();return se&&typeof se.recalculateEnvironments=="function"?(se.recalculateEnvironments(),!0):!1},Nn.startAnimation=function(){var se=Nn.getAppletObject();return se&&typeof se.startAnimation=="function"?(se.startAnimation(),!0):!1},Nn.stopAnimation=function(){var se=Nn.getAppletObject();return se&&typeof se.stopAnimation=="function"?(se.stopAnimation(),!0):!1},Nn.getAppletObject=function(){var se=Gt.id!==void 0?Gt.id:"ggbApplet";return window[se]},Nn.resize=function(){};var $t=function(se,De,Oe){var en=document.createElement("param");en.setAttribute("name",De),en.setAttribute("value",Oe),se.appendChild(en)},Kt=function(se){return se&&se!=="false"},ue=function(se,De,Oe){mt(vt)<=4.2&&(Oe=!0);var en=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==vt||ggbHTML5LoadedCodebaseIsWebSimple&&!tt)&&(en=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var We=document.createElement("div");We.classList.add("appletParameters","notranslate");var rn=De.width,ke=De.height;if(De.disableAutoScale=De.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():De.disableAutoScale,De.width!==void 0)if(mt(vt)<=4.4)Kt(De.showToolBar)&&(De.height-=7),Kt(De.showAlgebraInput)&&(De.height-=37),De.width<605&&Kt(De.showToolBar)&&(De.width=605,rn=605);else{var Ie=100;(Kt(De.showToolBar)||Kt(De.showMenuBar))&&(De.hasOwnProperty("customToolBar")&&(De.customToolbar=De.customToolBar),Ie=Kt(De.showMenuBar)?245:155),rn<Ie&&(De.width=Ie,rn=Ie)}We.style.border="none",We.style.display="inline-block";for(var je in De)De.hasOwnProperty(je)&&je!=="appletOnLoad"&&We.setAttribute("data-param-"+je,De[je]);ct&&We.setAttribute("data-param-fontscssurl",ct),Nn.resize=function(){GGBAppletUtils.responsiveResize(se,De)},window.addEventListener("resize",function(gt){Nn.resize()});var $e=typeof De.appletOnLoad=="function"?De.appletOnLoad:function(){};if(!Oe&&De.width!==void 0){De.hasOwnProperty("showSplash")||We.setAttribute("data-param-showSplash","false");var me=se.querySelector(".applet_scaler.prerender"),le=me!==null;if(le)var Ee=me.querySelector(".ggb_preview");else{var Ee=pe(rn,ke,De.borderColor,!1);me=document.createElement("div"),me.className="applet_scaler",me.style.position="relative",me.style.display="block",me.style.width=rn+"px",me.style.height=ke+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(me,"66%"),mt(vt)>=5?(De.appletOnLoad=function(gt){var zt=se.querySelector(".ggb_preview");zt&&zt.parentNode.removeChild(zt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(me),window.GGBT_wsf_view&&$(window).trigger("resize"),$e(gt)},le||me.appendChild(Ee)):We.appendChild(Ee),me.appendChild(We),le||se.appendChild(me),setTimeout(function(){Nn.resize()},1)}else{var ce=document.createElement("div");ce.className="applet_scaler",ce.style.position="relative",ce.style.display="block",ce.appendChild(We),se.appendChild(ce),De.appletOnLoad=function(gt){Nn.resize(),$e(gt)}}function he(gt,zt){zt&&typeof zt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(gt,zt.appletOnLoad):renderGGBElement(gt),ae("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",zt)}function _t(gt,zt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:gt,params:zt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(re){he(re.article,re.params)}),html5AppletsToProcess=null)},mt(vt)<5&&(gt.className+=" geogebraweb")):he(gt,zt)}if(en){scriptLoadStarted=!0;for(var Mt=0;Mt<We.childNodes.length;Mt++){var Et=We.childNodes[Mt].tagName;Et==="TABLE"&&(We.removeChild(We.childNodes[Mt]),Mt--)}if(ggbHTML5LoadedScript!==null){var Ht=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ht!=null&&Ht.parentNode.removeChild(Ht)}var Pt=document.createElement("script"),dt=function(){_t(We,De)};Pt.src=bt+et,ggbHTML5LoadedCodebaseIsWebSimple=tt,ggbHTML5LoadedCodebaseVersion=vt,ggbHTML5LoadedScript=Pt.src,ae("GeoGebra HTML5 codebase loaded: '"+bt+"'.",De),!xt&&(!Wt||Wt=="5.0")?(tt?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),dt()):bt.requirejs?__webpack_require__.e(7374).then(function(){var gt=[__webpack_require__(97374)];dt.apply(null,gt)}.bind(this)).catch(__webpack_require__.oe):(Pt.onload=dt,se.appendChild(Pt))}else _t(We,De);De.height=ke,De.width=rn},oe=function(se,De,Oe){var en=pe(De.width,De.height,De.borderColor,Oe),We=document.createElement("div");We.style.position="relative",We.style.display="block",We.style.width=De.width+"px",We.style.height=De.height+"px",We.className="applet_screenshot applet_scaler"+(Oe?" applet_screenshot_play":""),We.appendChild(en);var rn=GGBAppletUtils.getScale(De,se,Oe);Oe?(se.appendChild(Ne()),window.GGBT_wsf_view||(se.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(We,"66%"),se.appendChild(We),rn!==1&&!isNaN(rn)&&(GGBAppletUtils.scaleElement(We,rn),We.style.width=De.width+"px",We.style.height=De.height+"px",We.parentNode.style.width=De.width*rn+"px",We.parentNode.style.height=De.height*rn+"px"),Nn.resize=function(){we(se,en,We,Oe)},window.addEventListener("resize",function(ke){Nn.resize()}),Nn.resize()};function we(se,De,Oe,en){if(se.contains(De)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(se.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(se)}var We=GGBAppletUtils.getScale(Gt,se,en);Oe.parentNode!==null&&(!isNaN(We)&&We!==1?(GGBAppletUtils.scaleElement(Oe,We),Oe.parentNode.style.width=Gt.width*We+"px",Oe.parentNode.style.height=Gt.height*We+"px"):(GGBAppletUtils.scaleElement(Oe,1),Oe.parentNode.style.width=Gt.width+"px",Oe.parentNode.style.height=Gt.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(se),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Nn.onExitFullscreen=function(se,De){De.appendChild(se)};var Se=function(se,De,Oe,en){oe(se,De,!0);for(var We=function(){var Ie=[];for(ke=0;ke<se.childNodes.length;ke++)Ie.push(se.childNodes[ke]);if(window.GGBT_wsf_view){var je=window.GGBT_wsf_view.renderFullScreen(se,De.id),$e=document.getElementById("fullscreencontainer"),me=jQuery(se).find(".fullscreencontent");me.length>0?(je.remove(),me.attr("id","fullscreencontent").show(),jQuery($e).append(me),window.dispatchEvent(new Event("resize"))):ue(je,De,!1),window.GGBT_wsf_view.launchFullScreen($e)}else It=en,ue(se,De,!1);if(!window.GGBT_wsf_view)for(ke=0;ke<Ie.length;ke++)se.removeChild(Ie[ke])},rn=se.getElementsByClassName("ggb_preview_play"),ke=0;ke<rn.length;ke++)rn[ke].addEventListener("click",We,!1),rn[ke].addEventListener("ontouchstart",We,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(se),Dt()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Ne=function(){var se=document.createElement("div");if(se.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");}',Oe=document.createElement("style");Oe.styleSheet?Oe.styleSheet.cssText=De:Oe.appendChild(document.createTextNode(De)),document.getElementsByTagName("head")[0].appendChild(Oe)}return se},pe=function(se,De,Oe,en){var We=document.createElement("div");We.className="ggb_preview",We.style.position="absolute",We.style.zIndex="90",We.style.width=se-2+"px",We.style.height=De-2+"px",We.style.top="0px",We.style.left="0px",We.style.overflow="hidden",We.style.backgroundColor="white";var rn="lightgrey";Oe!==void 0&&(Oe==="none"?rn="transparent":rn=Oe),We.style.border="1px solid "+rn;var ke=document.createElement("img");if(ke.style.position="relative",ke.style.zIndex="1000",ke.style.top="-1px",ke.style.left="-1px",st!==null&&ke.setAttribute("src",st),ke.style.opacity=.7,rt!==null){var Ie,je,$e;if(!en){Ie=document.createElement("img"),Ie.style.position="absolute",Ie.style.zIndex="1001",Ie.style.opacity=1,ke.style.opacity=.3,je=360,je>se/4*3&&(je=se/4*3),$e=je/5.8,Ie.setAttribute("src",rt),Ie.setAttribute("width",je),Ie.setAttribute("height",$e);var me=(se-je)/2,le=(De-$e)/2;Ie.style.left=me+"px",Ie.style.top=le+"px",We.appendChild(Ie)}}return We.appendChild(ke),We},Ue=function(se){return se=se.toLowerCase(),se==="html5"||se==="screenshot"?se:"html5"},de=["web","webSimple","web3d","tablet","tablet3d","phone"],Jt=function(se,De){if(vt=se,De){ee(vt,!0);return}var Oe=!yt;if(Oe){var en=mt(vt);!isNaN(en)&&en<4.4&&(Oe=!1)}var We,rn;window.location.protocol.substr(0,4)==="http"?We=window.location.protocol:We="http:";var ke=vt.indexOf("//");ke>0?rn=vt:ke===0?rn=We+vt:rn="https://www.geogebra.org/apps/5.2.814.0/";for(var Ie in de)if(vt.slice(de[Ie].length*-1)===de[Ie]||vt.slice((de[Ie].length+1)*-1)===de[Ie]+"/"){ee(rn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Oe&&!Rt.is3D&&!Rt.AV&&!Rt.SV&&!Rt.CV&&!Rt.EV2&&!Rt.CP&&!Rt.PC&&!Rt.DA&&!Rt.FI&&!Rt.PV&&!Kt(Gt.showToolBar)&&!Kt(Gt.showMenuBar)&&!Kt(Gt.showAlgebraInput)&&!Kt(Gt.enableRightClick)&&(!Gt.appName||Gt.appName=="classic")?rn+="webSimple/":rn+="web3d/",ee(rn,!1)},ee=function(se,De){if(se.requirejs){bt=se;return}se.slice(-1)!=="/"&&(se+="/"),bt=se,De===null&&(De=se.indexOf("http")===-1),Tt=De,et="web.nocache.js",tt=!1;var Oe=bt.split("/");Oe.length>1&&(!De&&Oe[Oe.length-2]==="webSimple"?(et="webSimple.nocache.js",tt=!0):de.indexOf(Oe[Oe.length-2])>=0&&(et=Oe[Oe.length-2]+".nocache.js")),Oe=se.split("/"),vt=Oe[Oe.length-3],vt.substr(0,4)==="test"?vt=vt.substr(4,1)+"."+vt.substr(5,1):(vt.substr(0,3)==="war"||vt.substr(0,4)==="beta")&&(vt="5.0");var en=parseFloat(vt);en!==NaN&&en<5&&se.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+en+" is deprecated. Using version latest instead."),Jt("5.0",De))},ae=function(se,De){window.console&&window.console.log&&(!De||typeof De.showLogging=="undefined"||De.showLogging&&De.showLogging!=="false")&&console.log(se)};Gt.material_id!==void 0?Ut(fe):fe();function fe(){var se=An;Wt!==null?se=Wt:parseFloat(se)<5&&(se="5.0"),Jt(se,!1),xt!==null&&ee(xt,Tt),Nt=!0}return Nn},GGBAppletUtils=function(){"use strict";function Nn(){return window.GGBT_wsf_edit!==void 0}function An(Nt,Wt){Wt!=1?(Nt.style.transformOrigin="0% 0% 0px",Nt.style.webkitTransformOrigin="0% 0% 0px",Nt.style.transform="scale("+Wt+","+Wt+")",Nt.style.webkitTransform="scale("+Wt+","+Wt+")",Nt.style.maxWidth="initial",Nt.querySelector(".ggb_preview")!==null&&(Nt.querySelector(".ggb_preview").style.maxWidth="initial"),Nt.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Nt.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Nt.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Nt.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Nt.style.transform="none",Nt.style.webkitTransform="none")}function Gt(Nt,Wt,xt,Ot,Bt,At){var bt=null;if(At!=null&&At!="")for(var Tt=Nt.parentNode;Tt!=null;)if((" "+Tt.className+" ").indexOf(" "+At+" ")>-1){bt=Tt;break}else Tt=Tt.parentNode;var It=0,vt=0,et=0,tt=0,st=0,rt=0,ut=0;if(bt)It=bt.offsetWidth,vt=Math.max(Ot?bt.offsetWidth:0,bt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(It=Math.min(window.innerWidth,document.documentElement.clientWidth),vt=Math.min(window.innerHeight,document.documentElement.clientHeight),et=It):(It=window.innerWidth,vt=window.innerHeight,et=window.innerWidth),Nt){var ct=Nt.getBoundingClientRect();ct.left>0&&ct.left<=It&&(Bt===void 0||!Bt)&&(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(Nt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var pt=Nt.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(tt=40,ut=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(tt=0,ut=40)}}return Nt&&((xt===void 0||!xt)&&Wt>0&&Wt+tt<It?It=Wt:It-=tt,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(xt===void 0||!xt)&&(vt-=ut)),{width:It,height:vt}}function Rt(Nt,Wt,xt,Ot,Bt){if(Nt.isScreenshoGenerator)return 1;var At=Ot!==void 0&&Ot,bt=Nt.noScaleMargin!=null&&Nt.noScaleMargin,Tt=function(pt){return pt&&pt!=="false"},It=Tt(Nt.autoHeight),vt=Gt(Wt,Nt.width,xt,It,At&&window.GGBT_wsf_view||bt,Bt),et=parseInt(vt.width),tt=Nt.width,st=Nt.height;if(tt===void 0){var rt=Wt.querySelector(".appletParameters");rt&&(tt=rt.offsetWidth,st=rt.offsetHeight)}var ut=et/tt,ct=At?1:vt.height/st;return xt!==void 0&&!xt&&(ut=Math.min(1,ut),ct=Math.min(1,ct)),Math.min(ut,ct)}function yt(Nt,Wt,xt){var Ot=1,Bt,At=!1;if(Nt.hasOwnProperty("allowUpscale")&&(At=Nt.allowUpscale),Nt.hasOwnProperty("scale")&&(Ot=parseFloat(Nt.scale),(isNaN(Ot)||Ot===null||Ot===0)&&(Ot=1),Ot>1&&(At=!0)),Wt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(At=!0),!(Nt.hasOwnProperty("disableAutoScale")&&Nt.disableAutoScale))Bt=Rt(Nt,Wt,At,xt,Nt.scaleContainerClass);else return Ot;return At&&(!Nt.hasOwnProperty("scale")||Ot===1)?Bt:Math.min(Ot,Bt)}function Vt(Nt){var Wt=Math.min(window.innerWidth,document.documentElement.clientWidth),xt=Math.min(window.innerHeight,document.documentElement.clientHeight),Ot=Nt.getBoundingClientRect(),Bt=(Wt-Ot.width)/2,At=(xt-Ot.height)/2;At<0&&(At=0),Nt.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Bt<40?Nt.style.left="40px":Nt.style.left=Bt+"px",Nt.style.top=At+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(At<40?Nt.style.top="40px":Nt.style.top=At+"px",Nt.style.left=Bt+"px")}function Yt(Nt,Wt){var xt=Nt.querySelector(".appletParameters");if(xt){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Wt.id!==xt.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Nt)}if(xt.parentElement&&/fullscreen/.test(xt.parentElement.className))return;var Ot=yt(Wt,Nt);Nn()&&xt.setAttribute("data-param-scale",Ot);for(var Bt=null,At=0;At<Nt.childNodes.length;At++)if(Nt.childNodes[At].className!==void 0&&Nt.childNodes[At].className.match(/^applet_scaler/)){Bt=Nt.childNodes[At];break}if(Bt!==null&&Bt.querySelector(".noscale")!==null)return;var bt=Wt.id!==void 0?Wt.id:"ggbApplet",Tt=window[bt];(Tt==null||!Tt.recalculateEnvironments)&&Bt!==null&&!Bt.className.match(/fullscreen/)&&(Bt.parentNode.style.transform="",!isNaN(Ot)&&Ot!==1?(Bt.parentNode.style.width=Wt.width*Ot+"px",Bt.parentNode.style.height=Wt.height*Ot+"px",An(Bt,Ot)):(An(Bt,1),Bt.parentNode.style.width=Wt.width+"px",Bt.parentNode.style.height=Wt.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Vt(Nt),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(xt).parents(".content-added-content"))}}return{responsiveResize:Yt,isFlexibleWorksheetEditor:Nn,positionCenter:Vt,getScale:yt,scaleElement:An}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Nn=n.location.search;return Nn.indexOf(J)!=-1||Nn.indexOf(K)!=-1}function q(Nn,An){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Nn){var An=s[L].bindings;s[L].bindings=function(){for(var Gt=An?An():{},Rt=Nn[webModule.__softPermutationId],yt=O;yt<Rt.length;yt++){var Vt=Rt[yt];Gt[Vt[O]]=Vt[P]}return Gt}};var t;function u(){return v(),t}function v(){if(!t){var Nn=o.createElement(Q);if(Nn.id=L,Nn.style.cssText=R+S,Nn.tabIndex=-1,o.body.appendChild(Nn),t=Nn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var An=document.compatMode==U?V:W;t.write(An+X),t.close()}}}function w(Nn){function An(Rt){function yt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Vt=yt();if(Vt){Rt();return}function Yt(){if(!Vt){if(!yt())return;Vt=!0,Rt(),o.removeEventListener&&o.removeEventListener(Z,Yt,!1),Nt&&clearInterval(Nt)}}o.addEventListener&&o.addEventListener(Z,Yt,!1);var Nt=setInterval(function(){Yt()},$)}function Gt(Rt){var yt=u(),Vt=yt.body,Yt=yt.createElement(_);Yt.language=ab,Yt.crossOrigin=W,Yt.src=Rt,webModule.__errFn&&(Yt.onerror=function(){webModule.__errFn(L,new Error(bb+Rt))}),Vt.appendChild(Yt)}An(function(){Gt(Nn)})}webModule.__startLoadingFragment=function(Nn){return C(Nn)},webModule.__installRunAsyncCode=function(Nn){var An=u(),Gt=An.body,Rt=An.createElement(_);Rt.language=ab,Rt.text=Nn,Gt.appendChild(Rt),Gt.removeChild(Rt)};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(Nn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Nn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Nn){var An=c[Nn];return An==null?null:An},r=d,webModule.__errFn=e}function B(){function Nn(Nt){var Wt=Nt.lastIndexOf(rb);Wt==-1&&(Wt=Nt.length);var xt=Nt.indexOf(sb);xt==-1&&(xt=Nt.length);var Ot=Nt.lastIndexOf(tb,Math.min(xt,Wt));return Ot>=O?Nt.substring(O,Ot+P):W}function An(Nt){if(!Nt.match(/^\w+:\/\//)){var Wt=o.createElement(ub);Wt.src=Nt+vb,Nt=Nn(Wt.src)}return Nt}function Gt(){var Nt=__gwt_getMetaProperty(wb);return Nt!=null?Nt:W}function Rt(){for(var Nt=o.getElementsByTagName(_),Wt=O;Wt<Nt.length;++Wt)if(Nt[Wt].src.indexOf(xb)!=-1)return Nn(Nt[Wt].src);return W}function yt(){var Nt=o.getElementsByTagName(yb);return Nt.length>O?Nt[Nt.length-P].href:W}function Vt(){var Nt=o.location;return Nt.href==Nt.protocol+zb+Nt.host+Nt.pathname+Nt.search+Nt.hash}var Yt=Gt();return Yt==W&&(Yt=Rt()),Yt==W&&(Yt=yt()),Yt==W&&Vt()&&(Yt=Nn(o.location.href)),Yt=An(Yt),Yt}function C(Nn){return Nn.match(/^\//)||Nn.match(/^[a-zA-Z]+:\/\//)?Nn:webModule.__moduleBase+Nn}function D(){var Nn=[],An=O,Gt=[],Rt=[];function yt(Nt){var Wt=Rt[Nt](),xt=Gt[Nt];if(Wt in xt)return Wt;var Ot=[];for(var Bt in xt)Ot[xt[Bt]]=Bt;throw r&&r(Nt,Ot,Wt),null}if(__gwt_isKnownPropertyValue=function(Nt,Wt){return Wt in Gt[Nt]},webModule.__getPropMap=function(){var Nt={};for(var Wt in Gt)Gt.hasOwnProperty(Wt)&&(Nt[Wt]=yt(Wt));return Nt},webModule.__computePropValue=yt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Vt;try{Vt=Cb;var Yt=Vt.indexOf(Db);Yt!=-1&&(An=parseInt(Vt.substring(Yt+P),$),Vt=Vt.substring(O,Yt))}catch(Nt){}return webModule.__softPermutationId=An,C(Vt+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})()},92699:function(Nn,An,Gt){"use strict";Gt.d(An,{$Y:function(){return rn},A0:function(){return De},EP:function(){return Nt},F_:function(){return Ot},Fk:function(){return he},G9:function(){return xt},GB:function(){return ee},GR:function(){return rt},GW:function(){return en},Hh:function(){return _t},Hp:function(){return It},Ir:function(){return yt},N$:function(){return ae},NZ:function(){return we},Nv:function(){return ce},OA:function(){return me},OJ:function(){return pe},QF:function(){return zt},RS:function(){return Ct},RY:function(){return dt},Rj:function(){return Se},SX:function(){return Ft},Tp:function(){return ke},Ui:function(){return se},V1:function(){return de},Vn:function(){return Ut},dL:function(){return Ee},fo:function(){return $t},gG:function(){return Kt},gK:function(){return st},hK:function(){return vt},i3:function(){return At},ib:function(){return et},lS:function(){return tt},m5:function(){return Wt},n4:function(){return Rt},n_:function(){return bt},oP:function(){return Ie},p2:function(){return Oe},pl:function(){return oe},rM:function(){return pt},sM:function(){return Tt},t2:function(){return Dt},tD:function(){return ut},u8:function(){return ct},um:function(){return gt},vm:function(){return le},wQ:function(){return Bt},wj:function(){return Ue},wt:function(){return ue},yS:function(){return mt},yi:function(){return Vt},ym:function(){return Ne},z2:function(){return Yt}});const Rt="FETCH_TASK_START",yt="FETCH_TASK_FAILURE",Vt="FETCH_TASK_SUCCESS",Yt="UPDATE_TASK_DATA",Nt="HIDE_EVALUATE_RESULT",Wt="SHOW_EVALUATE_RESULT",xt="UPDATE_TIMESTRAP",Ot="MOVE_X",Bt="MOVE_Y",At="TRIGGER_RIGHT_PANEL_MASK ",bt="SET_ACTIVE_INDEX",Tt="GET_TASK_LIST",It="SHOW_TASK_LIST",vt="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",pt="PLUS_DISCUSS",mt="SET_ACTION_TYPE",Ct="SHOW_REWARD_DIALOG",Dt="CANCEL_REWARD_DIALOG",Ut="SET_REWARD",Ft="ACTIVE_DISCUSS_INDEX",Qt="CREATE_DISCUSS",$t="DISABLE_DISCUSS",Kt="CHANGE_PAGE",ue="SHOW_ANSWER_LOADING",oe="FETCH_ANSWER_INFO",we="HIGH_TIP_MODAL",Se="SHOW_TIP_MODAL",Ne="SELECT_UNLOCK_ANSWER",pe="SET_CHOOSE_ANSWERS",Ue="EVAL_CHOOSE_START",de="EVAL_CHOOSE_END",Jt="SHOW_REP_loading",ee="FETCH_REP_CONTENT",ae="EDIT_REP_CONTENT",fe="SET_REP_PATH",se="SHOW_EVALUATE_LOADING",De="HIDE_EVALUATE_LOADING",Oe="SET_EVALUATE_MESSAGE",en="SET_SHOW_DIR",We="SET_EDITOR_SETTING",rn="SET_EDITOR_THEME",ke="SET_EDITOR_FONTSIZE",Ie="SET_REPOS",je="SHOW_PATH_LIST",$e="HIDE_PATH_LIST",me="HIDE_PICTURE_VIEW",le="SHOW_PICTURE_VIEW",Ee="SHOW_NOTICE",ce="HIDE_NOTICE",he="SHOW_CASE_NOTICE",_t="HIDE_CASE_NOTICE",Mt="SET_TAB_INDEX",Et="SET_SSH_TABS",Ht="SET_SSH_CONFIGDATA",Pt="SET_SSH_CONFIGDATAARR",dt="SET_VNC_LOADING ",gt="ON_TAB_TO_SPACE ",zt="ON_AUTO_FORMAT "},58788:function(Nn,An,Gt){"use strict";Gt.d(An,{Ax:function(){return Yt},Ds:function(){return Nt},KI:function(){return xt},SI:function(){return Vt},f1:function(){return yt}});var Rt=Gt(10148);function yt(Ot){let Bt=!0;if(Ot.length>0){for(let At=0;At<Ot.length;At++)if(Ot[At].compile_success==0||!Ot[At].compile_success){Bt=!1;break}}else Bt=!1;return Bt}function Vt(Ot,Bt=""){let At=[];for(let bt=0;bt<Ot.length;bt++){let Tt=Ot[bt],It=Bt?`${Bt}/${Tt.name}`:`${Tt.name}`;At.push({title:Tt.name,type:Tt.type,isLeaf:Tt.type!=="tree",key:It})}return At}function Yt(Ot,Bt,At){for(let bt=0;bt<Ot.length;bt++){let Tt=Ot[bt];if(Tt.key===Bt){Tt.children=At;break}Tt.children&&Yt(Tt.children,Bt,At)}return Ot}function Nt(Ot,Bt,At){let bt;return function(){let Tt=this,It=arguments,vt=function(){bt=null,At||Ot.apply(Tt,It)},et=At&&!bt;clearTimeout(bt),bt=setTimeout(vt,Bt),et&&Ot.apply(Tt,It)}}const Wt=!0,xt=Rt.Z.API_SERVER},88477:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return vt}});var Rt=Gt(3113),yt=Gt(59301),Vt=Object.defineProperty,Yt=Object.defineProperties,Nt=Object.getOwnPropertyDescriptors,Wt=Object.getOwnPropertySymbols,xt=Object.prototype.hasOwnProperty,Ot=Object.prototype.propertyIsEnumerable,Bt=(et,tt,st)=>tt in et?Vt(et,tt,{enumerable:!0,configurable:!0,writable:!0,value:st}):et[tt]=st,At=(et,tt)=>{for(var st in tt||(tt={}))xt.call(tt,st)&&Bt(et,st,tt[st]);if(Wt)for(var st of Wt(tt))Ot.call(tt,st)&&Bt(et,st,tt[st]);return et},bt=(et,tt)=>Yt(et,Nt(tt)),Tt=(et,tt)=>{var st={};for(var rt in et)xt.call(et,rt)&&tt.indexOf(rt)<0&&(st[rt]=et[rt]);if(et!=null&&Wt)for(var rt of Wt(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=Ct=>{try{mt(st.next(Ct))}catch(Dt){ut(Dt)}},pt=Ct=>{try{mt(st.throw(Ct))}catch(Dt){ut(Dt)}},mt=Ct=>Ct.done?rt(Ct.value):Promise.resolve(Ct.value).then(ct,pt);mt((st=st.apply(et,tt)).next())});const vt=et=>{var tt=et,{children:st}=tt,rt=Tt(tt,["children"]);const[ut,ct]=(0,yt.useState)(!1);return yt.createElement(Rt.ZP,bt(At({},rt),{loading:ut,onClick:pt=>It(void 0,null,function*(){try{ct(!0),yield rt.onClick(pt),ct(!1)}catch(mt){console.error(mt),ct(!1)}})}),st)}},64286:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return At}});var Rt=Gt(59301),yt=Gt(3113),Vt=Gt(8591),Yt=Gt(24645),Nt=Gt(96830),Wt=Gt(33130),xt=Gt(10148),Ot={img:"img___BgL9D"},At=({value:bt,onChange:Tt,getFileProgress:It})=>{const[vt,et]=(0,Rt.useState)(!1),tt=Rt.createElement(yt.ZP,{loading:vt,icon:Rt.createElement(Nt.Z,null)},"\u9009\u62E9\u4E0A\u4F20\u6587\u4EF6"),st=()=>Rt.createElement("div",{className:Ot.img},Rt.createElement("img",{src:xt.Z.API_SERVER+"/api/attachments/"+bt,alt:"avatar",style:{width:288}}),Rt.createElement("div",null,Rt.createElement(Wt.Z,{onClick:()=>Tt(""),style:{fontSize:"16px",color:"red"}}))),rt=ut=>{var ct,pt,mt,Ct,Dt,Ut;if(It&&It(ut),ut.file.status==="uploading"){et(!0);return}if(ut.file.status==="done"){if(et(!1),ut.file.status==="done"&&((pt=(ct=ut.file)==null?void 0:ct.response)==null?void 0:pt.status)===-1){Vt.ZP.error((Ct=(mt=ut.file)==null?void 0:mt.response)==null?void 0:Ct.message);return}Tt((Ut=(Dt=ut==null?void 0:ut.file)==null?void 0:Dt.response)==null?void 0:Ut.id)}};return Rt.createElement(Rt.Fragment,null,bt?st():Rt.createElement("div",null,Rt.createElement(Yt.default,{withCredentials:!0,name:"file",showUploadList:!1,action:`${xt.Z.API_SERVER}/api/attachments.json`,onChange:rt,accept:"image/*"},tt),Rt.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"),Rt.createElement("div",{className:"c-light-black"},"\u5982\u4E0D\u4E0A\u4F20\uFF0C\u9ED8\u8BA4\u4F7F\u7528\u7CFB\u7EDF\u56FE\u7247\u3002")))}},65983:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ht}});var Rt=Gt(59301),yt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Vt=Gt(92310),Yt=Gt.n(Vt),Nt=Gt(71418);var Wt=function(Pt,dt){return(Wt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(gt,zt){gt.__proto__=zt}||function(gt,zt){for(var re in zt)Object.prototype.hasOwnProperty.call(zt,re)&&(gt[re]=zt[re])})(Pt,dt)};function xt(Pt,dt){function gt(){this.constructor=Pt}Wt(Pt,dt),Pt.prototype=dt===null?Object.create(dt):(gt.prototype=dt.prototype,new gt)}function Ot(Pt,dt,gt,zt){return new(gt||(gt=Promise))(function(re,Zt){function ye(Le){try{sn(zt.next(Le))}catch(Re){Zt(Re)}}function Ye(Le){try{sn(zt.throw(Le))}catch(Re){Zt(Re)}}function sn(Le){var Re;Le.done?re(Le.value):(Re=Le.value,Re instanceof gt?Re:new gt(function(hn){hn(Re)})).then(ye,Ye)}sn((zt=zt.apply(Pt,dt||[])).next())})}function Bt(Pt,dt){var gt,zt,re,Zt,ye={label:0,sent:function(){if(1&re[0])throw re[1];return re[1]},trys:[],ops:[]};return Zt={next:Ye(0),throw:Ye(1),return:Ye(2)},typeof Symbol=="function"&&(Zt[Symbol.iterator]=function(){return this}),Zt;function Ye(sn){return function(Le){return function(Re){if(gt)throw new TypeError("Generator is already executing.");for(;ye;)try{if(gt=1,zt&&(re=2&Re[0]?zt.return:Re[0]?zt.throw||((re=zt.return)&&re.call(zt),0):zt.next)&&!(re=re.call(zt,Re[1])).done)return re;switch(zt=0,re&&(Re=[2&Re[0],re.value]),Re[0]){case 0:case 1:re=Re;break;case 4:return ye.label++,{value:Re[1],done:!1};case 5:ye.label++,zt=Re[1],Re=[0];continue;case 7:Re=ye.ops.pop(),ye.trys.pop();continue;default:if(re=ye.trys,!((re=re.length>0&&re[re.length-1])||Re[0]!==6&&Re[0]!==2)){ye=0;continue}if(Re[0]===3&&(!re||Re[1]>re[0]&&Re[1]<re[3])){ye.label=Re[1];break}if(Re[0]===6&&ye.label<re[1]){ye.label=re[1],re=Re;break}if(re&&ye.label<re[2]){ye.label=re[2],ye.ops.push(Re);break}re[2]&&ye.ops.pop(),ye.trys.pop();continue}Re=dt.call(Pt,ye)}catch(hn){Re=[6,hn],zt=0}finally{gt=re=0}if(5&Re[0])throw Re[1];return{value:Re[0]?Re[1]:void 0,done:!0}}([sn,Le])}}}function At(){for(var Pt=0,dt=0,gt=arguments.length;dt<gt;dt++)Pt+=arguments[dt].length;var zt=Array(Pt),re=0;for(dt=0;dt<gt;dt++)for(var Zt=arguments[dt],ye=0,Ye=Zt.length;ye<Ye;ye++,re++)zt[re]=Zt[ye];return zt}var bt=function(){function Pt(){}return Pt.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},Pt.setAttributes=function(dt,gt){for(var zt=0,re=gt;zt<re.length;zt++){var Zt=re[zt],ye=Zt[0],Ye=Zt[1];dt.setAttribute(ye,Ye)}},Pt.createRect=function(dt,gt,zt){var re=document.createElementNS("http://www.w3.org/2000/svg","rect");return re.setAttribute("width",dt.toString()),re.setAttribute("height",gt.toString()),zt&&Pt.setAttributes(re,zt),re},Pt.createLine=function(dt,gt,zt,re,Zt){var ye=document.createElementNS("http://www.w3.org/2000/svg","line");return ye.setAttribute("x1",dt.toString()),ye.setAttribute("y1",gt.toString()),ye.setAttribute("x2",zt.toString()),ye.setAttribute("y2",re.toString()),Zt&&Pt.setAttributes(ye,Zt),ye},Pt.createPolygon=function(dt,gt){var zt=document.createElementNS("http://www.w3.org/2000/svg","polygon");return zt.setAttribute("points",dt),gt&&Pt.setAttributes(zt,gt),zt},Pt.createCircle=function(dt,gt){var zt=document.createElementNS("http://www.w3.org/2000/svg","circle");return zt.setAttribute("cx",(dt/2).toString()),zt.setAttribute("cy",(dt/2).toString()),zt.setAttribute("r",dt.toString()),gt&&Pt.setAttributes(zt,gt),zt},Pt.createEllipse=function(dt,gt,zt){var re=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return re.setAttribute("cx",(dt/2).toString()),re.setAttribute("cy",(gt/2).toString()),re.setAttribute("rx",(dt/2).toString()),re.setAttribute("ry",(gt/2).toString()),zt&&Pt.setAttributes(re,zt),re},Pt.createGroup=function(dt){var gt=document.createElementNS("http://www.w3.org/2000/svg","g");return dt&&Pt.setAttributes(gt,dt),gt},Pt.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},Pt.createMarker=function(dt,gt,zt,re,Zt,ye,Ye){var sn=document.createElementNS("http://www.w3.org/2000/svg","marker");return Pt.setAttributes(sn,[["id",dt],["orient",gt],["markerWidth",zt.toString()],["markerHeight",re.toString()],["refX",Zt.toString()],["refY",ye.toString()]]),sn.appendChild(Ye),sn},Pt.createText=function(dt){var gt=document.createElementNS("http://www.w3.org/2000/svg","text");return gt.setAttribute("x","0"),gt.setAttribute("y","0"),dt&&Pt.setAttributes(gt,dt),gt},Pt.createTSpan=function(dt,gt){var zt=document.createElementNS("http://www.w3.org/2000/svg","tspan");return zt.textContent=dt,gt&&Pt.setAttributes(zt,gt),zt},Pt.createImage=function(dt){var gt=document.createElementNS("http://www.w3.org/2000/svg","image");return dt&&Pt.setAttributes(gt,dt),gt},Pt.createPoint=function(dt,gt){var zt=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return zt.x=dt,zt.y=gt,zt},Pt.createPath=function(dt,gt){var zt=document.createElementNS("http://www.w3.org/2000/svg","path");return zt.setAttribute("d",dt),gt&&Pt.setAttributes(zt,gt),zt},Pt}(),Tt=function(){function Pt(){}return Pt.addKey=function(dt){Pt.key=dt},Object.defineProperty(Pt,"isLicensed",{get:function(){return!!Pt.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(Pt.key)},enumerable:!1,configurable:!0}),Pt}(),It=function(){function Pt(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return Pt.prototype.rasterize=function(dt,gt,zt){var re=this;return new Promise(function(Zt){var ye=zt!==void 0?zt:document.createElement("canvas");dt===null&&(re.markersOnly=!0,re.naturalSize=!1);var Ye=document.createElementNS("http://www.w3.org/2000/svg","svg");Ye.setAttribute("xmlns","http://www.w3.org/2000/svg"),Ye.setAttribute("width",gt.width.baseVal.valueAsString),Ye.setAttribute("height",gt.height.baseVal.valueAsString),Ye.setAttribute("viewBox","0 0 "+gt.viewBox.baseVal.width.toString()+" "+gt.viewBox.baseVal.height.toString()),Ye.innerHTML=gt.innerHTML,re.naturalSize===!0?(Ye.width.baseVal.value=dt.naturalWidth,Ye.height.baseVal.value=dt.naturalHeight):re.width!==void 0&&re.height!==void 0&&(Ye.width.baseVal.value=re.width,Ye.height.baseVal.value=re.height),ye.width=Ye.width.baseVal.value,ye.height=Ye.height.baseVal.value;var sn=Ye.outerHTML,Le=ye.getContext("2d");re.markersOnly!==!0&&Le.drawImage(dt,0,0,ye.width,ye.height);var Re=window.URL,hn=new Image(ye.width,ye.height);hn.setAttribute("crossOrigin","anonymous");var wn=new Blob([sn],{type:"image/svg+xml"}),kn=Re.createObjectURL(wn);hn.onload=function(){Le.drawImage(hn,0,0),Re.revokeObjectURL(kn);var Rn=ye.toDataURL(re.imageType,re.imageQuality);Zt(Rn)},hn.src=kn})},Pt}(),vt=function(){},et=function(){function Pt(dt){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+dt+"_"}return Object.defineProperty(Pt.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.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(Pt.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),Pt.prototype.addClass=function(dt){return this.styleSheet===void 0&&this.addStyleSheet(),dt.name=""+this.classNamePrefix+dt.localName,this.classes.push(dt),this.styleSheet.sheet.insertRule("."+dt.name+" {"+dt.style+"}",this.styleSheet.sheet.cssRules.length),dt},Pt.prototype.addRule=function(dt){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(dt),this.styleSheet.sheet.insertRule(dt.selector+" {"+dt.style+"}",this.styleSheet.sheet.cssRules.length)},Pt.prototype.addStyleSheet=function(){var dt;this.styleSheet=document.createElement("style"),((dt=this.styleSheetRoot)!==null&&dt!==void 0?dt:document.head).appendChild(this.styleSheet),this.addRule(new tt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new tt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new tt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new st("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new st("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},Pt.prototype.removeStyleSheet=function(){var dt;this.styleSheet&&(((dt=this.styleSheetRoot)!==null&&dt!==void 0?dt:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},Pt}(),tt=function(Pt,dt){this.selector=Pt,this.style=dt},st=function(Pt,dt){this.localName=Pt,this.style=dt},rt=function(){function Pt(dt,gt,zt,re,Zt){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=dt,this.displayMode=gt,this.markerItems=zt,this.uiStyleSettings=re,this.styles=Zt,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return Pt.prototype.show=function(dt){var gt=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=dt,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var zt=document.createElement("div");zt.className=this.toolbarBlockStyleClass.name,zt.style.whiteSpace="nowrap",this.uiContainer.appendChild(zt),this.addActionButton(zt,'<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(zt,'<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(zt,'<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(zt,'<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(zt,'<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(zt,'<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(zt,'<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(zt,'<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(Zt){var ye=document.createElement("div");ye.className=""+gt.toolbarButtonStyleClass.name,ye.setAttribute("data-type-name",Zt.typeName),ye.innerHTML=Zt.icon,ye.addEventListener("click",function(){gt.markerToolbarButtonClicked(ye,Zt)}),gt.buttons.push(ye),gt.markerButtons.push(ye)}),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 re=document.createElement("div");re.className=this.toolbarBlockStyleClass.name,re.style.whiteSpace="nowrap",re.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(re),this.addActionButton(re,'<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(re,'<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()},Pt.prototype.addButtonClickListener=function(dt){this.buttonClickListeners.push(dt)},Pt.prototype.removeButtonClickListener=function(dt){this.buttonClickListeners.indexOf(dt)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(dt),1)},Pt.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},Pt.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var dt=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var gt=0;gt<this.markerButtons.length;gt++)gt<dt||gt===dt&&this.markerButtons.length-1===dt?this.markerButtonBlock.appendChild(this.markerButtons[gt]):(gt===dt&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[gt]))}},Pt.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")},Pt.prototype.resetButtonStyles=function(){var dt=this;this.buttons.forEach(function(gt){gt.className=gt.className.replace(dt.uiStyleSettings.toolbarButtonStyleColorsClassName?dt.uiStyleSettings.toolbarButtonStyleColorsClassName:dt.toolbarButtonStyleColorsClass.name,"").trim(),gt.className=gt.className.replace(dt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?dt.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:dt.toolbarActiveButtonStyleColorsClass.name,"").trim(),gt.className+=" "+(dt.uiStyleSettings.toolbarButtonStyleColorsClassName?dt.uiStyleSettings.toolbarButtonStyleColorsClassName:dt.toolbarButtonStyleColorsClass.name)})},Pt.prototype.addActionButton=function(dt,gt,zt){var re=this,Zt=document.createElement("div");switch(Zt.className=""+this.toolbarButtonStyleClass.name,Zt.innerHTML=gt,Zt.setAttribute("data-action",zt),Zt.addEventListener("click",function(){re.actionToolbarButtonClicked(Zt,zt)}),zt){case"select":Zt.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":Zt.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":Zt.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":Zt.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":Zt.style.fill=this.uiStyleSettings.closeButtonColor}dt.appendChild(Zt),this.buttons.push(Zt)},Pt.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new st("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 st("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new st("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new st("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 st("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var dt=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new st("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*dt)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*dt)+`px;
|
|
|
padding: `+dt+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new st("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new st("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new tt("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new tt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},Pt.prototype.markerToolbarButtonClicked=function(dt,gt){this.setActiveButton(dt),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(zt){return zt("marker",gt)}),this.markerButtonOverflowBlock.style.display="none"},Pt.prototype.actionToolbarButtonClicked=function(dt,gt){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(zt){return zt("action",gt)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},Pt.prototype.setActiveButton=function(dt){this.resetButtonStyles(),dt.className=dt.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),dt.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},Pt.prototype.setActiveMarkerButton=function(dt){var gt=this.markerButtons.find(function(zt){return zt.getAttribute("data-type-name")===dt});gt&&this.setActiveButton(gt)},Pt.prototype.setCurrentMarker=function(dt){var gt=this;this.currentMarker=dt,this.buttons.filter(function(zt){return/delete|notes/.test(zt.getAttribute("data-action"))}).forEach(function(zt){gt.currentMarker===void 0?(zt.style.fillOpacity="0.4",zt.style.pointerEvents="none"):(zt.style.fillOpacity="1",zt.style.pointerEvents="all")})},Pt}(),ut=function(){function Pt(dt,gt,zt,re){this.panels=[],this.panelButtons=[],this.markerjsContainer=dt,this.displayMode=gt,this.uiStyleSettings=zt,this.styles=re,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return Pt.prototype.addStyles=function(){var dt;this.toolboxStyleClass=this.styles.addClass(new st("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 st("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var gt=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new st("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new st("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new st("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 st("toolbox-panel-row_colors",`
|
|
|
background-color: `+((dt=this.uiStyleSettings.toolboxBackgroundColor)!==null&&dt!==void 0?dt:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new st("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*gt)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*gt)+`px;
|
|
|
padding: `+gt+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new st("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new st("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new tt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new tt("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},Pt.prototype.show=function(dt){var gt;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=dt,this.uiContainer.className=this.toolboxStyleClass.name+" "+((gt=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&>!==void 0?gt:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},Pt.prototype.setPanelButtons=function(dt){var gt,zt,re=this;this.panels=dt,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((gt=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&>!==void 0?gt:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((zt=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&zt!==void 0?zt:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(Zt){var ye;Zt.uiStyleSettings=re.uiStyleSettings;var Ye=document.createElement("div");Ye.className=re.toolboxButtonStyleClass.name+" "+((ye=re.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ye!==void 0?ye:re.toolboxButtonStyleColorsClass.name),Ye.innerHTML=Zt.icon,Ye.title=Zt.title,Ye.addEventListener("click",function(){re.panelButtonClick(Zt)}),re.panelButtons.push(Ye),re.buttonRow.appendChild(Ye)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},Pt.prototype.panelButtonClick=function(dt){var gt=this,zt=-1;if(dt!==this.activePanel){zt=this.panels.indexOf(dt),this.panelRow.innerHTML="";var re=dt.getUi();re.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(re),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=dt}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){gt.displayMode==="inline"?gt.panelRow.style.display="none":gt.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(Zt,ye){var Ye,sn;Zt.className=gt.toolboxButtonStyleClass.name+" "+(ye===zt?""+((Ye=gt.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Ye!==void 0?Ye:gt.toolboxActiveButtonStyleColorsClass.name):""+((sn=gt.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&sn!==void 0?sn:gt.toolboxButtonStyleColorsClass.name))})},Pt}(),ct=function(Pt,dt){this.title=Pt,this.icon=dt},pt=function(Pt){function dt(gt,zt,re,Zt){var ye=Pt.call(this,gt,Zt||'<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 ye.colors=[],ye.addTransparent=!1,ye.colorBoxes=[],ye.colors=zt,ye.currentColor=re,ye.setCurrentColor=ye.setCurrentColor.bind(ye),ye.getColorBox=ye.getColorBox.bind(ye),ye}return xt(dt,Pt),dt.prototype.getUi=function(){var gt=this,zt=document.createElement("div");return zt.style.overflow="hidden",zt.style.whiteSpace="nowrap",this.colors.forEach(function(re){var Zt=gt.getColorBox(re);zt.appendChild(Zt),gt.colorBoxes.push(Zt)}),zt},dt.prototype.getColorBox=function(gt){var zt=this,re=this.uiStyleSettings.toolbarHeight/4,Zt=this.uiStyleSettings.toolbarHeight-re,ye=document.createElement("div");ye.style.display="inline-block",ye.style.boxSizing="content-box",ye.style.width=Zt-2+"px",ye.style.height=Zt-2+"px",ye.style.padding="1px",ye.style.marginRight="2px",ye.style.marginBottom="2px",ye.style.borderWidth="2px",ye.style.borderStyle="solid",ye.style.borderRadius=(Zt+2)/2+"px",ye.style.borderColor=gt===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ye.addEventListener("click",function(){zt.setCurrentColor(gt,ye)});var Ye=document.createElement("div");return Ye.style.display="inline-block",Ye.style.width=Zt-2+"px",Ye.style.height=Zt-2+"px",Ye.style.backgroundColor=gt,Ye.style.borderRadius=Zt/2+"px",gt==="transparent"&&(Ye.style.fill=this.uiStyleSettings.toolboxAccentColor,Ye.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>`),ye.appendChild(Ye),ye},dt.prototype.setCurrentColor=function(gt,zt){var re=this;this.currentColor=gt,this.colorBoxes.forEach(function(Zt){Zt.style.borderColor=Zt===zt?re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(gt)},dt}(ct),mt=function(){function Pt(dt,gt,zt){this._state="new",this._isSelected=!1,this._container=dt,this._overlayContainer=gt,this.globalSettings=zt,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(Pt.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),Pt.prototype.ownsTarget=function(dt){return!1},Object.defineProperty(Pt.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),Pt.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},Pt.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},Pt.prototype.pointerDown=function(dt,gt){},Pt.prototype.dblClick=function(dt,gt){},Pt.prototype.manipulate=function(dt){},Pt.prototype.pointerUp=function(dt){this.stateChanged()},Pt.prototype.dispose=function(){},Pt.prototype.addMarkerVisualToContainer=function(dt){this.container.childNodes.length>0?this.container.insertBefore(dt,this.container.childNodes[0]):this.container.appendChild(dt)},Pt.prototype.getState=function(){return{typeName:Pt.typeName,state:this.state,notes:this.notes}},Pt.prototype.restoreState=function(dt){this._state=dt.state,this.notes=dt.notes},Pt.prototype.scale=function(dt,gt){},Pt.prototype.colorChanged=function(dt){this.onColorChanged&&this.onColorChanged(dt),this.stateChanged()},Pt.prototype.fillColorChanged=function(dt){this.onFillColorChanged&&this.onFillColorChanged(dt),this.stateChanged()},Pt.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var dt=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),dt.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(dt)&&this.onStateChanged(this)}},Pt.typeName="MarkerBase",Pt}(),Ct=function(){function Pt(){this.findGripByVisual=this.findGripByVisual.bind(this)}return Pt.prototype.findGripByVisual=function(dt){return this.topLeft.ownsTarget(dt)?this.topLeft:this.topCenter.ownsTarget(dt)?this.topCenter:this.topRight.ownsTarget(dt)?this.topRight:this.centerLeft.ownsTarget(dt)?this.centerLeft:this.centerRight.ownsTarget(dt)?this.centerRight:this.bottomLeft.ownsTarget(dt)?this.bottomLeft:this.bottomCenter.ownsTarget(dt)?this.bottomCenter:this.bottomRight.ownsTarget(dt)?this.bottomRight:void 0},Pt}(),Dt=function(){function Pt(){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 Pt.prototype.ownsTarget=function(dt){return dt===this.visual||dt===this.visual.childNodes[0]||dt===this.visual.childNodes[1]},Pt}(),Ut=function(){function Pt(){}return Pt.toITransformMatrix=function(dt){return{a:dt.a,b:dt.b,c:dt.c,d:dt.d,e:dt.e,f:dt.f}},Pt.toSVGMatrix=function(dt,gt){return dt.a=gt.a,dt.b=gt.b,dt.c=gt.c,dt.d=gt.d,dt.e=gt.e,dt.f=gt.f,dt},Pt}(),Ft=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,zt,re)||this;return Zt.left=0,Zt.top=0,Zt.width=0,Zt.height=0,Zt.defaultSize={x:50,y:20},Zt.offsetX=0,Zt.offsetY=0,Zt.rotationAngle=0,Zt.CB_DISTANCE=10,Zt._suppressMarkerCreateEvent=!1,Zt.container.transform.baseVal.appendItem(bt.createTransform()),Zt.setupControlBox(),Zt}return xt(dt,Pt),Object.defineProperty(dt.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(dt.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(dt.prototype,"visual",{get:function(){return this._visual},set:function(gt){this._visual=gt;var zt=bt.createTransform();this._visual.transform.baseVal.appendItem(zt)},enumerable:!1,configurable:!0}),dt.prototype.ownsTarget=function(gt){return!!Pt.prototype.ownsTarget.call(this,gt)||!!(this.controlGrips.findGripByVisual(gt)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(gt))},dt.prototype.pointerDown=function(gt,zt){Pt.prototype.pointerDown.call(this,gt,zt),this.state==="new"&&(this.left=gt.x,this.top=gt.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var re=this.unrotatePoint(gt);if(this.manipulationStartX=re.x,this.manipulationStartY=re.y,this.offsetX=re.x-this.left,this.offsetY=re.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(zt),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(zt)){this.activeGrip=this.rotatorGrip;var Zt=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=Zt.x-this.width/2,this.top=Zt.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ye=this.container.transform.baseVal.getItem(0);ye.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ye,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},dt.prototype.pointerUp=function(gt){var zt=this.state;Pt.prototype.pointerUp.call(this,gt),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(gt),this._state="select",zt==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},dt.prototype.moveVisual=function(gt){this.visual.style.transform="translate("+gt.x+"px, "+gt.y+"px)"},dt.prototype.manipulate=function(gt){var zt=this.unrotatePoint(gt);this.state==="creating"?this.resize(gt):this.state==="move"?(this.left=this.manipulationStartLeft+(zt.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(zt.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(zt):this.state==="rotate"&&this.rotate(gt)},dt.prototype.resize=function(gt){var zt=this.manipulationStartLeft,re=this.manipulationStartWidth,Zt=this.manipulationStartTop,ye=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:zt=this.manipulationStartLeft+gt.x-this.manipulationStartX,re=this.manipulationStartWidth+this.manipulationStartLeft-zt;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:re=this.manipulationStartWidth+gt.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:Zt=this.manipulationStartTop+gt.y-this.manipulationStartY,ye=this.manipulationStartHeight+this.manipulationStartTop-Zt;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ye=this.manipulationStartHeight+gt.y-this.manipulationStartY}re>=0?(this.left=zt,this.width=re):(this.left=zt+re,this.width=-re),ye>=0?(this.top=Zt,this.height=ye):(this.top=Zt+ye,this.height=-ye),this.setSize()},dt.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},dt.prototype.rotate=function(gt){if(Math.abs(gt.x-this.centerX)>.1){var zt=Math.sign(gt.x-this.centerX);this.rotationAngle=180*Math.atan((gt.y-this.centerY)/(gt.x-this.centerX))/Math.PI+90*zt,this.applyRotation()}},dt.prototype.applyRotation=function(){var gt=this.container.transform.baseVal.getItem(0);gt.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(gt,0)},dt.prototype.rotatePoint=function(gt){if(this.rotationAngle===0)return gt;var zt=this.container.getCTM(),re=bt.createPoint(gt.x,gt.y);return{x:(re=re.matrixTransform(zt)).x,y:re.y}},dt.prototype.unrotatePoint=function(gt){if(this.rotationAngle===0)return gt;var zt=this.container.getCTM();zt=zt.inverse();var re=bt.createPoint(gt.x,gt.y);return{x:(re=re.matrixTransform(zt)).x,y:re.y}},dt.prototype.select=function(){Pt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},dt.prototype.deselect=function(){Pt.prototype.deselect.call(this),this.controlBox.style.display="none"},dt.prototype.setupControlBox=function(){this.controlBox=bt.createGroup();var gt=bt.createTransform();gt.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(gt),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 Ct,this.addControlGrips(),this.controlBox.style.display="none"},dt.prototype.adjustControlBox=function(){var gt=this.controlBox.transform.baseVal.getItem(0);gt.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(gt,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()},dt.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()},dt.prototype.createGrip=function(){var gt=new Dt;return gt.visual.transform.baseVal.appendItem(bt.createTransform()),this.controlBox.appendChild(gt.visual),gt},dt.prototype.positionGrips=function(){var gt=this.controlGrips.topLeft.GRIP_SIZE,zt=-gt/2,re=zt,Zt=(this.width+this.CB_DISTANCE)/2-gt/2,ye=(this.height+this.CB_DISTANCE)/2-gt/2,Ye=this.height+this.CB_DISTANCE-gt/2,sn=this.width+this.CB_DISTANCE-gt/2;this.positionGrip(this.controlGrips.topLeft.visual,zt,re),this.positionGrip(this.controlGrips.topCenter.visual,Zt,re),this.positionGrip(this.controlGrips.topRight.visual,sn,re),this.positionGrip(this.controlGrips.centerLeft.visual,zt,ye),this.positionGrip(this.controlGrips.centerRight.visual,sn,ye),this.positionGrip(this.controlGrips.bottomLeft.visual,zt,Ye),this.positionGrip(this.controlGrips.bottomCenter.visual,Zt,Ye),this.positionGrip(this.controlGrips.bottomRight.visual,sn,Ye),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,Zt,re-3*this.CB_DISTANCE)},dt.prototype.positionGrip=function(gt,zt,re){var Zt=gt.transform.baseVal.getItem(0);Zt.setTranslate(zt,re),gt.transform.baseVal.replaceItem(Zt,0)},dt.prototype.hideControlBox=function(){this.controlBox.style.display="none"},dt.prototype.showControlBox=function(){this.controlBox.style.display=""},dt.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Ut.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Ut.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},Pt.prototype.getState.call(this))},dt.prototype.restoreState=function(gt){Pt.prototype.restoreState.call(this,gt);var zt=gt;this.left=zt.left,this.top=zt.top,this.width=zt.width,this.height=zt.height,this.rotationAngle=zt.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Ut.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,zt.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Ut.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,zt.containerTransformMatrix))},dt.prototype.scale=function(gt,zt){Pt.prototype.scale.call(this,gt,zt);var re=this.rotatePoint({x:this.left,y:this.top}),Zt=this.unrotatePoint({x:re.x*gt,y:re.y*zt});this.left=Zt.x,this.top=Zt.y,this.width=this.width*gt,this.height=this.height*zt,this.adjustControlBox()},dt}(mt),Qt=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,zt,re)||this;return Zt.fillColor="transparent",Zt.strokeColor="transparent",Zt.strokeWidth=0,Zt.strokeDasharray="",Zt.opacity=1,Zt.setStrokeColor=Zt.setStrokeColor.bind(Zt),Zt.setFillColor=Zt.setFillColor.bind(Zt),Zt.setStrokeWidth=Zt.setStrokeWidth.bind(Zt),Zt.setStrokeDasharray=Zt.setStrokeDasharray.bind(Zt),Zt.createVisual=Zt.createVisual.bind(Zt),Zt}return xt(dt,Pt),dt.prototype.ownsTarget=function(gt){return!(!Pt.prototype.ownsTarget.call(this,gt)&>!==this.visual)},dt.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)},dt.prototype.pointerDown=function(gt,zt){Pt.prototype.pointerDown.call(this,gt,zt),this.state==="new"&&(this.createVisual(),this.moveVisual(gt),this._state="creating")},dt.prototype.manipulate=function(gt){Pt.prototype.manipulate.call(this,gt)},dt.prototype.resize=function(gt){Pt.prototype.resize.call(this,gt),this.setSize()},dt.prototype.setSize=function(){Pt.prototype.setSize.call(this),bt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},dt.prototype.pointerUp=function(gt){Pt.prototype.pointerUp.call(this,gt),this.setSize()},dt.prototype.setStrokeColor=function(gt){this.strokeColor=gt,this.visual&&bt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(gt),this.stateChanged()},dt.prototype.setFillColor=function(gt){this.fillColor=gt,this.visual&&bt.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},dt.prototype.setStrokeWidth=function(gt){this.strokeWidth=gt,this.visual&&bt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},dt.prototype.setStrokeDasharray=function(gt){this.strokeDasharray=gt,this.visual&&bt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},dt.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Pt.prototype.getState.call(this))},dt.prototype.restoreState=function(gt){var zt=gt;this.fillColor=zt.fillColor,this.strokeColor=zt.strokeColor,this.strokeWidth=zt.strokeWidth,this.strokeDasharray=zt.strokeDasharray,this.opacity=zt.opacity,this.createVisual(),Pt.prototype.restoreState.call(this,gt),this.setSize()},dt.prototype.scale=function(gt,zt){Pt.prototype.scale.call(this,gt,zt),this.setSize()},dt.title="Rectangle marker",dt}(Ft),$t=function(Pt){function dt(gt,zt,re,Zt){var ye=Pt.call(this,gt,Zt||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return ye.widths=[],ye.widthBoxes=[],ye.widths=zt,ye.currentWidth=re,ye.setCurrentWidth=ye.setCurrentWidth.bind(ye),ye}return xt(dt,Pt),dt.prototype.getUi=function(){var gt=this,zt=document.createElement("div");return zt.style.display="flex",zt.style.overflow="hidden",zt.style.flexGrow="2",this.widths.forEach(function(re){var Zt=document.createElement("div");Zt.style.display="flex",Zt.style.flexGrow="2",Zt.style.alignItems="center",Zt.style.justifyContent="space-between",Zt.style.padding="5px",Zt.style.borderWidth="2px",Zt.style.borderStyle="solid",Zt.style.borderColor=re===gt.currentWidth?gt.uiStyleSettings.toolboxAccentColor:"transparent",Zt.addEventListener("click",function(){gt.setCurrentWidth(re,Zt)}),zt.appendChild(Zt);var ye=document.createElement("div");ye.innerText=re.toString(),ye.style.marginRight="5px",Zt.appendChild(ye);var Ye=document.createElement("div");Ye.style.minHeight="20px",Ye.style.flexGrow="2",Ye.style.display="flex",Ye.style.alignItems="center";var sn=document.createElement("hr");sn.style.minWidth="20px",sn.style.border="0px",sn.style.borderTop=re+"px solid "+gt.uiStyleSettings.toolboxColor,sn.style.flexGrow="2",Ye.appendChild(sn),Zt.appendChild(Ye),gt.widthBoxes.push(Zt)}),zt},dt.prototype.setCurrentWidth=function(gt,zt){var re=this;this.currentWidth=gt,this.widthBoxes.forEach(function(Zt){Zt.style.borderColor=Zt===zt?re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},dt}(ct),Kt=function(Pt){function dt(gt,zt,re,Zt){var ye=Pt.call(this,gt,Zt||'<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 ye.styles=[],ye.styleBoxes=[],ye.styles=zt,ye.currentStyle=re,ye.setCurrentStyle=ye.setCurrentStyle.bind(ye),ye}return xt(dt,Pt),dt.prototype.getUi=function(){var gt=this,zt=document.createElement("div");return zt.style.display="flex",zt.style.overflow="hidden",zt.style.flexGrow="2",this.styles.forEach(function(re){var Zt=document.createElement("div");Zt.style.display="flex",Zt.style.alignItems="center",Zt.style.justifyContent="space-between",Zt.style.padding="5px",Zt.style.borderWidth="2px",Zt.style.borderStyle="solid",Zt.style.overflow="hidden",Zt.style.maxWidth=100/gt.styles.length-5+"%",Zt.style.borderColor=re===gt.currentStyle?gt.uiStyleSettings.toolboxAccentColor:"transparent",Zt.addEventListener("click",function(){gt.setCurrentStyle(re,Zt)}),zt.appendChild(Zt);var ye=document.createElement("div");ye.style.minHeight="20px",ye.style.flexGrow="2",ye.style.overflow="hidden";var Ye=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+gt.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(re!==""?'stroke-dasharray="'+re+'"':"")+` />
|
|
|
</svg>`;ye.innerHTML=Ye,Zt.appendChild(ye),gt.styleBoxes.push(Zt)}),zt},dt.prototype.setCurrentStyle=function(gt,zt){var re=this;this.currentStyle=gt,this.styleBoxes.forEach(function(Zt){Zt.style.borderColor=Zt===zt?re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},dt}(ct),ue=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,zt,re)||this;return Zt.strokeColor=re.defaultColor,Zt.strokeWidth=re.defaultStrokeWidth,Zt.strokeDasharray=re.defaultStrokeDasharray,Zt.strokePanel=new pt("Line color",re.defaultColorSet,re.defaultColor),Zt.strokePanel.onColorChanged=Zt.setStrokeColor,Zt.strokeWidthPanel=new $t("Line width",re.defaultStrokeWidths,re.defaultStrokeWidth),Zt.strokeWidthPanel.onWidthChanged=Zt.setStrokeWidth,Zt.strokeStylePanel=new Kt("Line style",re.defaultStrokeDasharrays,re.defaultStrokeDasharray),Zt.strokeStylePanel.onStyleChanged=Zt.setStrokeDasharray,Zt}return xt(dt,Pt),Object.defineProperty(dt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),dt.prototype.getState=function(){var gt=Pt.prototype.getState.call(this);return gt.typeName=dt.typeName,gt},dt.typeName="FrameMarker",dt.title="Frame marker",dt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',dt}(Qt),oe=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"},we=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,zt,re)||this;return Zt.x1=0,Zt.y1=0,Zt.x2=0,Zt.y2=0,Zt.defaultLength=50,Zt.manipulationStartX=0,Zt.manipulationStartY=0,Zt.manipulationStartX1=0,Zt.manipulationStartY1=0,Zt.manipulationStartX2=0,Zt.manipulationStartY2=0,Zt.setupControlBox(),Zt}return xt(dt,Pt),dt.prototype.ownsTarget=function(gt){return!!Pt.prototype.ownsTarget.call(this,gt)||!(!this.grip1.ownsTarget(gt)&&!this.grip2.ownsTarget(gt))},dt.prototype.pointerDown=function(gt,zt){Pt.prototype.pointerDown.call(this,gt,zt),this.manipulationStartX=gt.x,this.manipulationStartY=gt.y,this.state==="new"&&(this.x1=gt.x,this.y1=gt.y,this.x2=gt.x,this.y2=gt.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(zt)?this.activeGrip=this.grip1:this.grip2.ownsTarget(zt)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},dt.prototype.pointerUp=function(gt){var zt=this.state;Pt.prototype.pointerUp.call(this,gt),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(gt),this._state="select",zt==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},dt.prototype.adjustVisual=function(){},dt.prototype.manipulate=function(gt){this.state==="creating"?this.resize(gt):this.state==="move"?(this.x1=this.manipulationStartX1+gt.x-this.manipulationStartX,this.y1=this.manipulationStartY1+gt.y-this.manipulationStartY,this.x2=this.manipulationStartX2+gt.x-this.manipulationStartX,this.y2=this.manipulationStartY2+gt.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(gt)},dt.prototype.resize=function(gt){switch(this.activeGrip){case this.grip1:this.x1=gt.x,this.y1=gt.y;break;case this.grip2:case void 0:this.x2=gt.x,this.y2=gt.y}this.adjustVisual(),this.adjustControlBox()},dt.prototype.select=function(){Pt.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},dt.prototype.deselect=function(){Pt.prototype.deselect.call(this),this.controlBox.style.display="none"},dt.prototype.setupControlBox=function(){this.controlBox=bt.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},dt.prototype.adjustControlBox=function(){this.positionGrips()},dt.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},dt.prototype.createGrip=function(){var gt=new Dt;return gt.visual.transform.baseVal.appendItem(bt.createTransform()),this.controlBox.appendChild(gt.visual),gt},dt.prototype.positionGrips=function(){var gt=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-gt/2,this.y1-gt/2),this.positionGrip(this.grip2.visual,this.x2-gt/2,this.y2-gt/2)},dt.prototype.positionGrip=function(gt,zt,re){var Zt=gt.transform.baseVal.getItem(0);Zt.setTranslate(zt,re),gt.transform.baseVal.replaceItem(Zt,0)},dt.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},Pt.prototype.getState.call(this))},dt.prototype.restoreState=function(gt){Pt.prototype.restoreState.call(this,gt);var zt=gt;this.x1=zt.x1,this.y1=zt.y1,this.x2=zt.x2,this.y2=zt.y2},dt.prototype.scale=function(gt,zt){Pt.prototype.scale.call(this,gt,zt),this.x1=this.x1*gt,this.y1=this.y1*zt,this.x2=this.x2*gt,this.y2=this.y2*zt,this.adjustVisual(),this.adjustControlBox()},dt}(mt),Se=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,zt,re)||this;return Zt.strokeColor="transparent",Zt.strokeWidth=0,Zt.strokeDasharray="",Zt.setStrokeColor=Zt.setStrokeColor.bind(Zt),Zt.setStrokeWidth=Zt.setStrokeWidth.bind(Zt),Zt.setStrokeDasharray=Zt.setStrokeDasharray.bind(Zt),Zt.strokeColor=re.defaultColor,Zt.strokeWidth=re.defaultStrokeWidth,Zt.strokeDasharray=re.defaultStrokeDasharray,Zt.strokePanel=new pt("Line color",re.defaultColorSet,re.defaultColor),Zt.strokePanel.onColorChanged=Zt.setStrokeColor,Zt.strokeWidthPanel=new $t("Line width",re.defaultStrokeWidths,re.defaultStrokeWidth),Zt.strokeWidthPanel.onWidthChanged=Zt.setStrokeWidth,Zt.strokeStylePanel=new Kt("Line style",re.defaultStrokeDasharrays,re.defaultStrokeDasharray),Zt.strokeStylePanel.onStyleChanged=Zt.setStrokeDasharray,Zt}return xt(dt,Pt),dt.prototype.ownsTarget=function(gt){return!(!Pt.prototype.ownsTarget.call(this,gt)&>!==this.visual&>!==this.selectorLine&>!==this.visibleLine)},dt.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)},dt.prototype.pointerDown=function(gt,zt){Pt.prototype.pointerDown.call(this,gt,zt),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},dt.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()]]))},dt.prototype.setStrokeColor=function(gt){this.strokeColor=gt,this.adjustVisual(),this.colorChanged(gt)},dt.prototype.setStrokeWidth=function(gt){this.strokeWidth=gt,this.adjustVisual()},dt.prototype.setStrokeDasharray=function(gt){this.strokeDasharray=gt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(dt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),dt.prototype.getState=function(){var gt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},Pt.prototype.getState.call(this));return gt.typeName=dt.typeName,gt},dt.prototype.restoreState=function(gt){Pt.prototype.restoreState.call(this,gt);var zt=gt;this.strokeColor=zt.strokeColor,this.strokeWidth=zt.strokeWidth,this.strokeDasharray=zt.strokeDasharray,this.createVisual(),this.adjustVisual()},dt.typeName="LineMarker",dt.title="Line marker",dt.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',dt}(we),Ne=function(Pt){function dt(gt,zt,re,Zt){var ye=Pt.call(this,gt,Zt||'<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 ye.fonts=[],ye.fontBoxes=[],ye.fonts=zt,ye.currentFont=re,ye.setCurrentFont=ye.setCurrentFont.bind(ye),ye}return xt(dt,Pt),dt.prototype.getUi=function(){var gt=this,zt=document.createElement("div");return zt.style.overflow="hidden",zt.style.flexGrow="2",this.fonts.forEach(function(re){var Zt=document.createElement("div");Zt.style.display="inline-block",Zt.style.alignItems="center",Zt.style.justifyContent="space-between",Zt.style.padding="5px",Zt.style.borderWidth="2px",Zt.style.borderStyle="solid",Zt.style.overflow="hidden",Zt.style.maxWidth=100/gt.fonts.length-5+"%",Zt.style.borderColor=re===gt.currentFont?gt.uiStyleSettings.toolboxAccentColor:"transparent",Zt.addEventListener("click",function(){gt.setCurrentFont(re,Zt)}),zt.appendChild(Zt);var ye=document.createElement("div");ye.style.display="flex",ye.style.minHeight="20px",ye.style.flexGrow="2",ye.style.fontFamily=re,ye.style.overflow="hidden";var Ye=document.createElement("div");Ye.style.whiteSpace="nowrap",Ye.style.overflow="hidden",Ye.style.textOverflow="ellipsis",Ye.innerHTML="The quick brown fox jumps over the lazy dog",ye.appendChild(Ye),Zt.appendChild(ye),gt.fontBoxes.push(Zt)}),zt},dt.prototype.setCurrentFont=function(gt,zt){var re=this;this.currentFont=gt,this.fontBoxes.forEach(function(Zt){Zt.style.borderColor=Zt===zt?re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},dt}(ct),pe=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,zt,re)||this;return Zt.color="transparent",Zt.padding=5,Zt.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",Zt.text=Zt.DEFAULT_TEXT,Zt.isMoved=!1,Zt.color=re.defaultColor,Zt.fontFamily=re.defaultFontFamily,Zt.defaultSize={x:100,y:30},Zt.setColor=Zt.setColor.bind(Zt),Zt.setFont=Zt.setFont.bind(Zt),Zt.renderText=Zt.renderText.bind(Zt),Zt.sizeText=Zt.sizeText.bind(Zt),Zt.textEditDivClicked=Zt.textEditDivClicked.bind(Zt),Zt.showTextEditor=Zt.showTextEditor.bind(Zt),Zt.setSize=Zt.setSize.bind(Zt),Zt.positionTextEditor=Zt.positionTextEditor.bind(Zt),Zt.colorPanel=new pt("Color",re.defaultColorSet,re.defaultColor),Zt.colorPanel.onColorChanged=Zt.setColor,Zt.fontFamilyPanel=new Ne("Font",re.defaultFontFamilies,re.defaultFontFamily),Zt.fontFamilyPanel.onFontChanged=Zt.setFont,Zt}return xt(dt,Pt),dt.prototype.ownsTarget=function(gt){if(Pt.prototype.ownsTarget.call(this,gt)||gt===this.visual||gt===this.textElement||gt===this.bgRectangle)return!0;var zt=!1;return this.textElement.childNodes.forEach(function(re){re===gt&&(zt=!0)}),zt},dt.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()},dt.prototype.pointerDown=function(gt,zt){Pt.prototype.pointerDown.call(this,gt,zt),this.isMoved=!1,this.pointerDownPoint=gt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(gt),this._state="creating")},dt.prototype.renderText=function(){var gt=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(zt){gt.textElement.appendChild(bt.createTSpan(zt.trim()===""?" ":zt.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},dt.prototype.getTextScale=function(){var gt=this.textElement.getBBox(),zt=1;if(gt.width>0&>.height>0){var re=(1*this.width-this.width*this.padding*2/100)/gt.width,Zt=(1*this.height-this.height*this.padding*2/100)/gt.height;zt=Math.min(re,Zt)}return zt},dt.prototype.getTextPosition=function(gt){var zt=this.textElement.getBBox(),re=0,Zt=0;return zt.width>0&&zt.height>0&&(re=(this.width-zt.width*gt)/2,Zt=this.height/2-zt.height*gt/2),{x:re,y:Zt}},dt.prototype.sizeText=function(){var gt=this.textElement.getBBox(),zt=this.getTextScale(),re=this.getTextPosition(zt);re.y-=gt.y*zt,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+re.x+"px, "+re.y+"px) scale("+zt+", "+zt+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(re.x,re.y),this.textElement.transform.baseVal.getItem(1).setScale(zt,zt))},dt.prototype.manipulate=function(gt){Pt.prototype.manipulate.call(this,gt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(gt.x-this.pointerDownPoint.x)>5||Math.abs(gt.y-this.pointerDownPoint.y)>5)},dt.prototype.resize=function(gt){Pt.prototype.resize.call(this,gt),this.isMoved=!0,this.setSize(),this.sizeText()},dt.prototype.setSize=function(){Pt.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()]]))},dt.prototype.pointerUp=function(gt){var zt=this.state;zt==="creating"&&(this._suppressMarkerCreateEvent=!0),Pt.prototype.pointerUp.call(this,gt),this.setSize(),(zt==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},dt.prototype.showTextEditor=function(){var gt=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(zt){zt.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var zt=Number.parseFloat(gt.textEditor.style.fontSize);gt.textEditor.clientWidth>=Number.parseInt(gt.textEditor.style.maxWidth)&&zt>.9;)zt-=.1,gt.textEditor.style.fontSize=Math.max(zt,.9)+"em"}),this.textEditor.addEventListener("keyup",function(zt){zt.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(zt){if(zt.clipboardData){var re=zt.clipboardData.getData("text"),Zt=window.getSelection();if(!Zt.rangeCount)return!1;Zt.deleteFromDocument(),Zt.getRangeAt(0).insertNode(document.createTextNode(re)),zt.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){gt.textEditDivClicked(gt.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},dt.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var gt=this.getTextScale(),zt=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),re=this.textElement.getBBox(),Zt={x:re.width*gt,y:re.height*gt};zt.x-=Zt.x/2,zt.y-=Zt.y/2,this.textEditor.style.top=zt.y+"px",this.textEditor.style.left=zt.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-zt.x+"px",this.textEditor.style.fontSize=Math.max(16*gt,12)+"px",this.textElement.style.display="none"}},dt.prototype.textEditDivClicked=function(gt){this.text=gt.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},dt.prototype.select=function(){Pt.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},dt.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),Pt.prototype.deselect.call(this)},dt.prototype.dblClick=function(gt,zt){Pt.prototype.dblClick.call(this,gt,zt),this.showTextEditor()},dt.prototype.setColor=function(gt){this.textElement&&bt.setAttributes(this.textElement,[["fill",gt]]),this.color=gt,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(gt)},dt.prototype.setFont=function(gt){this.textElement&&bt.setAttributes(this.textElement,[["font-family",gt]]),this.fontFamily=gt,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},dt.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},dt.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(dt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),dt.prototype.getState=function(){var gt=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},Pt.prototype.getState.call(this));return gt.typeName=dt.typeName,gt},dt.prototype.restoreState=function(gt){var zt=gt;this.color=zt.color,this.fontFamily=zt.fontFamily,this.padding=zt.padding,this.text=zt.text,this.createVisual(),Pt.prototype.restoreState.call(this,gt),this.setSize()},dt.prototype.scale=function(gt,zt){Pt.prototype.scale.call(this,gt,zt),this.setSize(),this.sizeText(),this.positionTextEditor()},dt.typeName="TextMarker",dt.title="Text marker",dt.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>',dt}(Ft),Ue=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,zt,re)||this;return Zt.color="transparent",Zt.lineWidth=3,Zt.drawing=!1,Zt.pixelRatio=1,Zt.color=re.defaultColor,Zt.lineWidth=re.defaultStrokeWidth,Zt.pixelRatio=re.freehandPixelRatio,Zt.setColor=Zt.setColor.bind(Zt),Zt.addCanvas=Zt.addCanvas.bind(Zt),Zt.finishCreation=Zt.finishCreation.bind(Zt),Zt.setLineWidth=Zt.setLineWidth.bind(Zt),Zt.colorPanel=new pt("Color",re.defaultColorSet,re.defaultColor),Zt.colorPanel.onColorChanged=Zt.setColor,Zt.lineWidthPanel=new $t("Line width",re.defaultStrokeWidths,re.defaultStrokeWidth),Zt.lineWidthPanel.onWidthChanged=Zt.setLineWidth,Zt}return xt(dt,Pt),dt.prototype.ownsTarget=function(gt){return!(!Pt.prototype.ownsTarget.call(this,gt)&>!==this.visual&>!==this.drawingImage)},dt.prototype.createVisual=function(){this.visual=bt.createGroup(),this.drawingImage=bt.createImage(),this.visual.appendChild(this.drawingImage);var gt=bt.createTransform();this.visual.transform.baseVal.appendItem(gt),this.addMarkerVisualToContainer(this.visual)},dt.prototype.pointerDown=function(gt,zt){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(gt.x,gt.y),this.drawing=!0):Pt.prototype.pointerDown.call(this,gt,zt)},dt.prototype.manipulate=function(gt){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(gt.x,gt.y),this.canvasContext.stroke()):Pt.prototype.manipulate.call(this,gt)},dt.prototype.resize=function(gt){Pt.prototype.resize.call(this,gt),bt.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),bt.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},dt.prototype.pointerUp=function(gt){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):Pt.prototype.pointerUp.call(this,gt)},dt.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)},dt.prototype.select=function(){this.state==="creating"&&this.finishCreation(),Pt.prototype.select.call(this)},dt.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),Pt.prototype.deselect.call(this)},dt.prototype.finishCreation=function(){for(var gt=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),zt=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],re=zt[0],Zt=zt[1],ye=zt[2],Ye=zt[3],sn=!1,Le=0;Le<this.canvasElement.height;Le++)for(var Re=0;Re<this.canvasElement.width;Re++)gt.data[Le*this.canvasElement.width*4+4*Re+3]>0&&(sn=!0,Le<Zt&&(Zt=Le),Re<re&&(re=Re),Le>Ye&&(Ye=Le),Re>ye&&(ye=Re));if(sn){this.left=re/this.pixelRatio,this.top=Zt/this.pixelRatio,this.width=(ye-re)/this.pixelRatio,this.height=(Ye-Zt)/this.pixelRatio;var hn=document.createElement("canvas");hn.width=ye-re,hn.height=Ye-Zt,hn.getContext("2d").putImageData(this.canvasContext.getImageData(re,Zt,ye-re,Ye-Zt),0,0),this.drawingImgUrl=hn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},dt.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})},dt.prototype.setColor=function(gt){this.color=gt,this.colorChanged(gt)},dt.prototype.setLineWidth=function(gt){this.lineWidth=gt},Object.defineProperty(dt.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),dt.prototype.getState=function(){var gt=Object.assign({drawingImgUrl:this.drawingImgUrl},Pt.prototype.getState.call(this));return gt.typeName=dt.typeName,gt},dt.prototype.restoreState=function(gt){this.createVisual(),Pt.prototype.restoreState.call(this,gt),this.drawingImgUrl=gt.drawingImgUrl,this.setDrawingImage()},dt.prototype.scale=function(gt,zt){Pt.prototype.scale.call(this,gt,zt),this.setDrawingImage()},dt.typeName="FreehandMarker",dt.title="Freehand marker",dt.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>',dt}(Ft),de=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,re||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return Zt.typeBoxes=[],Zt.currentType=zt,Zt.setCurrentType=Zt.setCurrentType.bind(Zt),Zt}return xt(dt,Pt),dt.prototype.getUi=function(){var gt=this,zt=document.createElement("div");zt.style.display="flex",zt.style.overflow="hidden",zt.style.flexGrow="2";for(var re=function(Ye){var sn="both";switch(Ye){case 0:sn="both";break;case 1:sn="start";break;case 2:sn="end";break;case 3:sn="none"}var Le=document.createElement("div");if(Le.style.display="flex",Le.style.flexGrow="2",Le.style.alignItems="center",Le.style.justifyContent="space-between",Le.style.padding="5px",Le.style.borderWidth="2px",Le.style.borderStyle="solid",Le.style.borderColor=sn===Zt.currentType?Zt.uiStyleSettings.toolboxAccentColor:"transparent",Le.addEventListener("click",function(){gt.setCurrentType(sn,Le)}),zt.appendChild(Le),sn==="both"||sn==="start"){var Re=document.createElement("div");Re.style.display="flex",Re.style.alignItems="center",Re.style.minHeight="20px",Re.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="`+(Zt.uiStyleSettings!==void 0?Zt.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Re.style.marginLeft="5px",Le.appendChild(Re)}var hn=document.createElement("div");hn.style.display="flex",hn.style.alignItems="center",hn.style.minHeight="20px",hn.style.flexGrow="2";var wn=document.createElement("hr");if(wn.style.minWidth="20px",wn.style.border="0px",wn.style.borderTop="3px solid "+(Zt.uiStyleSettings!==void 0?Zt.uiStyleSettings.toolboxColor:"#eeeeee"),wn.style.flexGrow="2",hn.appendChild(wn),Le.appendChild(hn),sn==="both"||sn==="end"){var kn=document.createElement("div");kn.style.display="flex",kn.style.alignItems="center",kn.style.minHeight="20px",kn.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="`+(Zt.uiStyleSettings!==void 0?Zt.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,kn.style.marginRight="5px",Le.appendChild(kn)}Zt.typeBoxes.push(Le)},Zt=this,ye=0;ye<4;ye++)re(ye);return zt},dt.prototype.setCurrentType=function(gt,zt){var re=this;this.currentType=gt,this.typeBoxes.forEach(function(Zt){Zt.style.borderColor=Zt===zt?re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},dt}(ct),Jt=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,zt,re)||this;return Zt.arrowType="end",Zt.arrowBaseHeight=10,Zt.arrowBaseWidth=10,Zt.getArrowPoints=Zt.getArrowPoints.bind(Zt),Zt.setArrowType=Zt.setArrowType.bind(Zt),Zt.arrowTypePanel=new de("Arrow type","end"),Zt.arrowTypePanel.onArrowTypeChanged=Zt.setArrowType,Zt}return xt(dt,Pt),dt.prototype.ownsTarget=function(gt){return!(!Pt.prototype.ownsTarget.call(this,gt)&>!==this.arrow1&>!==this.arrow2)},dt.prototype.getArrowPoints=function(gt,zt){var re=this.arrowBaseWidth+2*this.strokeWidth,Zt=this.arrowBaseHeight+2*this.strokeWidth;return gt-re/2+","+(zt+Zt/2)+" "+gt+","+(zt-Zt/2)+" "+(gt+re/2)+","+(zt+Zt/2)},dt.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)},dt.prototype.pointerDown=function(gt,zt){Pt.prototype.pointerDown.call(this,gt,zt),this.state==="creating"&&this.createTips()},dt.prototype.adjustVisual=function(){if(Pt.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 gt=0;Math.abs(this.x1-this.x2)>.1&&(gt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var zt=this.arrow1.transform.baseVal.getItem(0);zt.setRotate(gt,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(zt,0);var re=this.arrow2.transform.baseVal.getItem(0);re.setRotate(gt+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(re,0)}},dt.prototype.setArrowType=function(gt){this.arrowType=gt,this.adjustVisual(),this.stateChanged()},Object.defineProperty(dt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),dt.prototype.getState=function(){var gt=Object.assign({arrowType:this.arrowType},Pt.prototype.getState.call(this));return gt.typeName=dt.typeName,gt},dt.prototype.restoreState=function(gt){Pt.prototype.restoreState.call(this,gt);var zt=gt;this.arrowType=zt.arrowType,this.createTips(),this.adjustVisual()},dt.typeName="ArrowMarker",dt.title="Arrow marker",dt.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',dt}(Se),ee=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,zt,re)||this;return Zt.fillColor=re.defaultFillColor,Zt.strokeWidth=0,Zt.fillPanel=new pt("Color",re.defaultColorSet,re.defaultFillColor),Zt.fillPanel.onColorChanged=Zt.setFillColor,Zt}return xt(dt,Pt),Object.defineProperty(dt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),dt.prototype.getState=function(){var gt=Pt.prototype.getState.call(this);return gt.typeName=dt.typeName,gt},dt.typeName="CoverMarker",dt.title="Cover marker",dt.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',dt}(Qt),ae=function(Pt){function dt(gt,zt,re,Zt){var ye=Pt.call(this,gt,Zt||'<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 ye.opacities=[],ye.opacityBoxes=[],ye.opacities=zt,ye.currentOpacity=re,ye.setCurrentOpacity=ye.setCurrentOpacity.bind(ye),ye}return xt(dt,Pt),dt.prototype.getUi=function(){var gt=this,zt=document.createElement("div");return zt.style.display="flex",zt.style.overflow="hidden",zt.style.flexGrow="2",zt.style.justifyContent="space-between",this.opacities.forEach(function(re){var Zt=document.createElement("div");Zt.style.display="flex",Zt.style.alignItems="center",Zt.style.justifyContent="center",Zt.style.padding="5px",Zt.style.borderWidth="2px",Zt.style.borderStyle="solid",Zt.style.borderColor=re===gt.currentOpacity?gt.uiStyleSettings.toolboxAccentColor:"transparent",Zt.addEventListener("click",function(){gt.setCurrentOpacity(re,Zt)}),zt.appendChild(Zt);var ye=document.createElement("div");ye.innerText=100*re+"%",Zt.appendChild(ye),gt.opacityBoxes.push(Zt)}),zt},dt.prototype.setCurrentOpacity=function(gt,zt){var re=this;this.currentOpacity=gt,this.opacityBoxes.forEach(function(Zt){Zt.style.borderColor=Zt===zt?re.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},dt}(ct),fe=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,zt,re)||this;return Zt.setOpacity=Zt.setOpacity.bind(Zt),Zt.fillColor=re.defaultHighlightColor,Zt.strokeWidth=0,Zt.opacity=re.defaultHighlightOpacity,Zt.fillPanel=new pt("Color",re.defaultColorSet,Zt.fillColor),Zt.fillPanel.onColorChanged=Zt.setFillColor,Zt.opacityPanel=new ae("Opacity",re.defaultOpacitySteps,Zt.opacity),Zt.opacityPanel.onOpacityChanged=Zt.setOpacity,Zt}return xt(dt,Pt),dt.prototype.setOpacity=function(gt){this.opacity=gt,this.visual&&bt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(dt.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),dt.prototype.getState=function(){var gt=Pt.prototype.getState.call(this);return gt.typeName=dt.typeName,gt},dt.typeName="HighlightMarker",dt.title="Highlight marker",dt.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>',dt}(ee),se='<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>',De='<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>',Oe=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,zt,re)||this;return Zt.bgColor="transparent",Zt.tipPosition={x:0,y:0},Zt.tipBase1Position={x:0,y:0},Zt.tipBase2Position={x:0,y:0},Zt.tipMoving=!1,Zt.color=re.defaultStrokeColor,Zt.bgColor=re.defaultFillColor,Zt.fontFamily=re.defaultFontFamily,Zt.defaultSize={x:100,y:30},Zt.setBgColor=Zt.setBgColor.bind(Zt),Zt.getTipPoints=Zt.getTipPoints.bind(Zt),Zt.positionTip=Zt.positionTip.bind(Zt),Zt.setTipPoints=Zt.setTipPoints.bind(Zt),Zt.colorPanel=new pt("Text color",re.defaultColorSet,Zt.color,se),Zt.colorPanel.onColorChanged=Zt.setColor,Zt.bgColorPanel=new pt("Fill color",re.defaultColorSet,Zt.bgColor,De),Zt.bgColorPanel.onColorChanged=Zt.setBgColor,Zt.fontFamilyPanel=new Ne("Font",re.defaultFontFamilies,re.defaultFontFamily),Zt.fontFamilyPanel.onFontChanged=Zt.setFont,Zt.tipGrip=new Dt,Zt.tipGrip.visual.transform.baseVal.appendItem(bt.createTransform()),Zt.controlBox.appendChild(Zt.tipGrip.visual),Zt}return xt(dt,Pt),dt.prototype.ownsTarget=function(gt){return Pt.prototype.ownsTarget.call(this,gt)||this.tipGrip.ownsTarget(gt)||this.tip===gt},dt.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)},dt.prototype.pointerDown=function(gt,zt){this.state==="new"&&Pt.prototype.pointerDown.call(this,gt,zt),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(zt)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):Pt.prototype.pointerDown.call(this,gt,zt)},dt.prototype.pointerUp=function(gt){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,Pt.prototype.pointerUp.call(this,gt);else{var zt=this.state==="creating";Pt.prototype.pointerUp.call(this,gt),this.setTipPoints(zt),this.positionTip()}},dt.prototype.manipulate=function(gt){if(this.tipMoving){var zt=this.unrotatePoint(gt);this.tipPosition={x:zt.x-this.manipulationStartLeft,y:zt.y-this.manipulationStartTop},this.positionTip()}else Pt.prototype.manipulate.call(this,gt)},dt.prototype.setBgColor=function(gt){this.bgRectangle&&this.tip&&(bt.setAttributes(this.bgRectangle,[["fill",gt]]),bt.setAttributes(this.tip,[["fill",gt]])),this.bgColor=gt,this.fillColorChanged(gt)},dt.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},dt.prototype.setTipPoints=function(gt){gt===void 0&&(gt=!1);var zt=Math.min(this.height/2,15),re=this.height/5;gt&&(this.tipPosition={x:zt+re/2,y:this.height+20});var Zt=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?Zt<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(re=this.width/5,zt=Math.min(this.width/2,15),this.tipBase1Position={x:zt,y:0},this.tipBase2Position={x:zt+re,y:0}):(this.tipBase1Position={x:0,y:zt},this.tipBase2Position={x:0,y:zt+re}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?Zt<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(re=this.width/5,zt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-zt-re,y:0},this.tipBase2Position={x:this.width-zt,y:0}):(this.tipBase1Position={x:this.width,y:zt},this.tipBase2Position={x:this.width,y:zt+re}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?Zt<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(re=this.width/5,zt=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-zt-re,y:this.height},this.tipBase2Position={x:this.width-zt,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-zt-re},this.tipBase2Position={x:this.width,y:this.height-zt}):Zt<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(re=this.width/5,zt=Math.min(this.width/2,15),this.tipBase1Position={x:zt,y:this.height},this.tipBase2Position={x:zt+re,y:this.height}):(this.tipBase1Position={x:0,y:this.height-zt},this.tipBase2Position={x:0,y:this.height-zt-re})},dt.prototype.resize=function(gt){Pt.prototype.resize.call(this,gt),this.positionTip()},dt.prototype.positionTip=function(){bt.setAttributes(this.tip,[["points",this.getTipPoints()]]);var gt=this.tipGrip.visual.transform.baseVal.getItem(0);gt.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(gt,0)},Object.defineProperty(dt.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),dt.prototype.select=function(){this.positionTip(),Pt.prototype.select.call(this)},dt.prototype.getState=function(){var gt=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},Pt.prototype.getState.call(this));return gt.typeName=dt.typeName,gt},dt.prototype.restoreState=function(gt){var zt=gt;this.bgColor=zt.bgColor,this.tipPosition=zt.tipPosition,Pt.prototype.restoreState.call(this,gt),this.createTip(),this.setTipPoints()},dt.prototype.scale=function(gt,zt){Pt.prototype.scale.call(this,gt,zt),this.tipPosition={x:this.tipPosition.x*gt,y:this.tipPosition.y*zt},this.positionTip()},dt.typeName="CalloutMarker",dt.title="Callout marker",dt.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>',dt}(pe),en=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,zt,re)||this;return Zt.fillColor="transparent",Zt.strokeColor="transparent",Zt.strokeWidth=0,Zt.strokeDasharray="",Zt.opacity=1,Zt.strokeColor=re.defaultColor,Zt.strokeWidth=re.defaultStrokeWidth,Zt.strokeDasharray=re.defaultStrokeDasharray,Zt.fillColor=re.defaultFillColor,Zt.setStrokeColor=Zt.setStrokeColor.bind(Zt),Zt.setFillColor=Zt.setFillColor.bind(Zt),Zt.setStrokeWidth=Zt.setStrokeWidth.bind(Zt),Zt.setStrokeDasharray=Zt.setStrokeDasharray.bind(Zt),Zt.setOpacity=Zt.setOpacity.bind(Zt),Zt.createVisual=Zt.createVisual.bind(Zt),Zt.strokePanel=new pt("Line color",At(re.defaultColorSet,["transparent"]),re.defaultColor),Zt.strokePanel.onColorChanged=Zt.setStrokeColor,Zt.fillPanel=new pt("Fill color",At(re.defaultColorSet,["transparent"]),Zt.fillColor,De),Zt.fillPanel.onColorChanged=Zt.setFillColor,Zt.strokeWidthPanel=new $t("Line width",re.defaultStrokeWidths,re.defaultStrokeWidth),Zt.strokeWidthPanel.onWidthChanged=Zt.setStrokeWidth,Zt.strokeStylePanel=new Kt("Line style",re.defaultStrokeDasharrays,re.defaultStrokeDasharray),Zt.strokeStylePanel.onStyleChanged=Zt.setStrokeDasharray,Zt.opacityPanel=new ae("Opacity",re.defaultOpacitySteps,Zt.opacity),Zt.opacityPanel.onOpacityChanged=Zt.setOpacity,Zt}return xt(dt,Pt),dt.prototype.ownsTarget=function(gt){return!(!Pt.prototype.ownsTarget.call(this,gt)&>!==this.visual)},dt.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)},dt.prototype.pointerDown=function(gt,zt){Pt.prototype.pointerDown.call(this,gt,zt),this.state==="new"&&(this.createVisual(),this.moveVisual(gt),this._state="creating")},dt.prototype.manipulate=function(gt){Pt.prototype.manipulate.call(this,gt)},dt.prototype.resize=function(gt){Pt.prototype.resize.call(this,gt),this.setSize()},dt.prototype.setSize=function(){Pt.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()]])},dt.prototype.pointerUp=function(gt){Pt.prototype.pointerUp.call(this,gt),this.setSize()},dt.prototype.setStrokeColor=function(gt){this.strokeColor=gt,this.visual&&bt.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(gt),this.stateChanged()},dt.prototype.setFillColor=function(gt){this.fillColor=gt,this.visual&&bt.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(gt),this.stateChanged()},dt.prototype.setStrokeWidth=function(gt){this.strokeWidth=gt,this.visual&&bt.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},dt.prototype.setStrokeDasharray=function(gt){this.strokeDasharray=gt,this.visual&&bt.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},dt.prototype.setOpacity=function(gt){this.opacity=gt,this.visual&&bt.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(dt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),dt.prototype.getState=function(){var gt=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},Pt.prototype.getState.call(this));return gt.typeName=dt.typeName,gt},dt.prototype.restoreState=function(gt){var zt=gt;this.fillColor=zt.fillColor,this.strokeColor=zt.strokeColor,this.strokeWidth=zt.strokeWidth,this.strokeDasharray=zt.strokeDasharray,this.opacity=zt.opacity,this.createVisual(),Pt.prototype.restoreState.call(this,gt),this.setSize()},dt.prototype.scale=function(gt,zt){Pt.prototype.scale.call(this,gt,zt),this.setSize()},dt.typeName="EllipseMarker",dt.title="Ellipse marker",dt.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>',dt}(Ft),We=function(Pt){function dt(gt,zt,re){return Pt.call(this,gt,zt,re)||this}return xt(dt,Pt),Object.defineProperty(dt.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),dt.prototype.ownsTarget=function(gt){return!(!Pt.prototype.ownsTarget.call(this,gt)&>!==this.tip1&>!==this.tip2)},dt.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)},dt.prototype.pointerDown=function(gt,zt){Pt.prototype.pointerDown.call(this,gt,zt),this.state==="creating"&&this.createTips()},dt.prototype.adjustVisual=function(){if(Pt.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 gt=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),zt=this.tip1.transform.baseVal.getItem(0);zt.setRotate(gt,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(zt,0);var re=this.tip2.transform.baseVal.getItem(0);re.setRotate(gt+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(re,0)}},Object.defineProperty(dt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),dt.prototype.getState=function(){var gt=Pt.prototype.getState.call(this);return gt.typeName=dt.typeName,gt},dt.prototype.restoreState=function(gt){Pt.prototype.restoreState.call(this,gt),this.createTips(),this.adjustVisual()},dt.typeName="MeasurementMarker",dt.title="Measurement marker",dt.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>',dt}(Se),rn=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,zt,re)||this;return Zt.strokePanel.colors=re.defaultColorSet,Zt.fillColor="transparent",Zt}return xt(dt,Pt),Object.defineProperty(dt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),dt.prototype.getState=function(){var gt=Pt.prototype.getState.call(this);return gt.typeName=dt.typeName,gt},dt.typeName="EllipseFrameMarker",dt.title="Ellipse frame marker",dt.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>',dt}(en),ke=function(){function Pt(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(Pt.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),Pt.prototype.addUndoStep=function(dt){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(dt)||(this.undoStack.push(dt),JSON.stringify(this.lastRedoStep)!==JSON.stringify(dt)&&this.redoStack.splice(0,this.redoStack.length))},Pt.prototype.replaceLastUndoStep=function(dt){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=dt)},Pt.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},Pt.prototype.undo=function(){if(this.undoStack.length>1){var dt=this.undoStack.pop();return dt!==void 0&&this.redoStack.push(dt),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},Pt.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},Pt}(),Ie=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,zt,re)||this;return Zt.strokeColor="transparent",Zt.strokeWidth=0,Zt.strokeDasharray="",Zt.curveX=0,Zt.curveY=0,Zt.manipulationStartCurveX=0,Zt.manipulationStartCurveY=0,Zt.setStrokeColor=Zt.setStrokeColor.bind(Zt),Zt.setStrokeWidth=Zt.setStrokeWidth.bind(Zt),Zt.setStrokeDasharray=Zt.setStrokeDasharray.bind(Zt),Zt.positionGrips=Zt.positionGrips.bind(Zt),Zt.addControlGrips=Zt.addControlGrips.bind(Zt),Zt.adjustVisual=Zt.adjustVisual.bind(Zt),Zt.setupControlBox=Zt.setupControlBox.bind(Zt),Zt.resize=Zt.resize.bind(Zt),Zt.strokeColor=re.defaultColor,Zt.strokeWidth=re.defaultStrokeWidth,Zt.strokeDasharray=re.defaultStrokeDasharray,Zt.strokePanel=new pt("Line color",re.defaultColorSet,re.defaultColor),Zt.strokePanel.onColorChanged=Zt.setStrokeColor,Zt.strokeWidthPanel=new $t("Line width",re.defaultStrokeWidths,re.defaultStrokeWidth),Zt.strokeWidthPanel.onWidthChanged=Zt.setStrokeWidth,Zt.strokeStylePanel=new Kt("Line style",re.defaultStrokeDasharrays,re.defaultStrokeDasharray),Zt.strokeStylePanel.onStyleChanged=Zt.setStrokeDasharray,Zt}return xt(dt,Pt),dt.prototype.ownsTarget=function(gt){return!(!Pt.prototype.ownsTarget.call(this,gt)&>!==this.visual&>!==this.selectorCurve&>!==this.visibleCurve&&!this.curveGrip.ownsTarget(gt))},dt.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},dt.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)},dt.prototype.pointerDown=function(gt,zt){Pt.prototype.pointerDown.call(this,gt,zt),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=gt.x,this.curveY=gt.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(zt)&&(this.activeGrip=this.curveGrip,this._state="resize")},dt.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()]]))},dt.prototype.setupControlBox=function(){Pt.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)},dt.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,Pt.prototype.addControlGrips.call(this)},dt.prototype.positionGrips=function(){Pt.prototype.positionGrips.call(this);var gt=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-gt/2,this.curveY-gt/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()))},dt.prototype.manipulate=function(gt){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+gt.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+gt.y-this.manipulationStartY),Pt.prototype.manipulate.call(this,gt)},dt.prototype.resize=function(gt){this.activeGrip===this.curveGrip&&(this.curveX=gt.x,this.curveY=gt.y),Pt.prototype.resize.call(this,gt),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},dt.prototype.setStrokeColor=function(gt){this.strokeColor=gt,this.adjustVisual(),this.colorChanged(gt)},dt.prototype.setStrokeWidth=function(gt){this.strokeWidth=gt,this.adjustVisual()},dt.prototype.setStrokeDasharray=function(gt){this.strokeDasharray=gt,this.adjustVisual()},dt.prototype.scale=function(gt,zt){this.curveX=this.curveX*gt,this.curveY=this.curveY*zt,Pt.prototype.scale.call(this,gt,zt)},Object.defineProperty(dt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),dt.prototype.getState=function(){var gt=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},Pt.prototype.getState.call(this));return gt.typeName=dt.typeName,gt},dt.prototype.restoreState=function(gt){Pt.prototype.restoreState.call(this,gt);var zt=gt;this.strokeColor=zt.strokeColor,this.strokeWidth=zt.strokeWidth,this.strokeDasharray=zt.strokeDasharray,this.curveX=zt.curveX,this.curveY=zt.curveY,this.createVisual(),this.adjustVisual()},dt.typeName="CurveMarker",dt.title="Curve marker",dt.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>',dt}(we),je=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,zt,re)||this;return Zt.fillColor="transparent",Zt.strokeColor="transparent",Zt.strokeWidth=0,Zt.strokeDasharray="",Zt.textColor="transparent",Zt.fontSize="1rem",Zt.isMoved=!1,Zt.captionText="Caption",Zt.PADDING=5,Zt.captionBoxWidth=0,Zt.captionBoxHeight=0,Zt.strokeColor=re.defaultColor,Zt.strokeWidth=re.defaultStrokeWidth,Zt.strokeDasharray=re.defaultStrokeDasharray,Zt.fillColor=re.defaultFillColor,Zt.textColor=re.defaultStrokeColor,Zt.fontFamily=re.defaultFontFamily,Zt.fontSize=re.defaultCaptionFontSize,Zt.captionText=re.defaultCaptionText,Zt.setStrokeColor=Zt.setStrokeColor.bind(Zt),Zt.setFillColor=Zt.setFillColor.bind(Zt),Zt.setStrokeWidth=Zt.setStrokeWidth.bind(Zt),Zt.setStrokeDasharray=Zt.setStrokeDasharray.bind(Zt),Zt.createVisual=Zt.createVisual.bind(Zt),Zt.sizeCaption=Zt.sizeCaption.bind(Zt),Zt.setCaptionText=Zt.setCaptionText.bind(Zt),Zt.showTextEditor=Zt.showTextEditor.bind(Zt),Zt.positionTextEditor=Zt.positionTextEditor.bind(Zt),Zt.finishTextEditing=Zt.finishTextEditing.bind(Zt),Zt.setFont=Zt.setFont.bind(Zt),Zt.setTextColor=Zt.setTextColor.bind(Zt),Zt.strokePanel=new pt("Line color",At(re.defaultColorSet,["transparent"]),Zt.strokeColor),Zt.strokePanel.onColorChanged=Zt.setStrokeColor,Zt.fillPanel=new pt("Fill color",At(re.defaultColorSet,["transparent"]),Zt.fillColor,De),Zt.fillPanel.onColorChanged=Zt.setFillColor,Zt.strokeWidthPanel=new $t("Line width",re.defaultStrokeWidths,re.defaultStrokeWidth),Zt.strokeWidthPanel.onWidthChanged=Zt.setStrokeWidth,Zt.strokeStylePanel=new Kt("Line style",re.defaultStrokeDasharrays,re.defaultStrokeDasharray),Zt.strokeStylePanel.onStyleChanged=Zt.setStrokeDasharray,Zt.fontFamilyPanel=new Ne("Font",re.defaultFontFamilies,re.defaultFontFamily),Zt.fontFamilyPanel.onFontChanged=Zt.setFont,Zt.textColorPanel=new pt("Text color",re.defaultColorSet,Zt.textColor,se),Zt.textColorPanel.onColorChanged=Zt.setTextColor,Zt}return xt(dt,Pt),dt.prototype.ownsTarget=function(gt){return!(!Pt.prototype.ownsTarget.call(this,gt)&>!==this.visual&>!==this.frame&>!==this.captionBg&>!==this.captionElement)},dt.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()},dt.prototype.setCaptionText=function(gt){this.captionText=gt,this.captionElement.textContent=this.captionText,this.sizeCaption()},dt.prototype.pointerDown=function(gt,zt){Pt.prototype.pointerDown.call(this,gt,zt),this.isMoved=!1,this.pointerDownPoint=gt,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(gt),this._state="creating")},dt.prototype.manipulate=function(gt){Pt.prototype.manipulate.call(this,gt),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(gt.x-this.pointerDownPoint.x)>5||Math.abs(gt.y-this.pointerDownPoint.y)>5)},dt.prototype.resize=function(gt){Pt.prototype.resize.call(this,gt),this.setSize()},dt.prototype.sizeCaption=function(){var gt=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=gt.width+2*this.PADDING,this.captionBoxHeight=gt.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')"]])},dt.prototype.showTextEditor=function(){var gt=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(zt){zt.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(zt){zt.key==="Enter"&>.finishTextEditing(gt.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(zt){zt.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){gt.finishTextEditing(gt.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){gt.finishTextEditing(gt.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},dt.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"))},dt.prototype.finishTextEditing=function(gt){this.setCaptionText(gt.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},dt.prototype.setFont=function(gt){this.captionElement&&bt.setAttributes(this.captionElement,[["font-family",gt]]),this.fontFamily=gt,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},dt.prototype.setTextColor=function(gt){this.captionElement&&bt.setAttributes(this.captionElement,[["fill",gt]]),this.textColor=gt,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},dt.prototype.setSize=function(){Pt.prototype.setSize.call(this),bt.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},dt.prototype.pointerUp=function(gt){Pt.prototype.pointerUp.call(this,gt),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},dt.prototype.dblClick=function(gt,zt){Pt.prototype.dblClick.call(this,gt,zt),this.showTextEditor()},dt.prototype.setStrokeColor=function(gt){this.strokeColor=gt,this.frame&&bt.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(gt),this.stateChanged()},dt.prototype.setFillColor=function(gt){this.fillColor=gt,this.captionBg&&bt.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(gt),this.stateChanged()},dt.prototype.setStrokeWidth=function(gt){this.strokeWidth=gt,this.frame&&bt.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},dt.prototype.setStrokeDasharray=function(gt){this.strokeDasharray=gt,this.frame&&bt.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(dt.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),dt.prototype.getState=function(){var gt=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},Pt.prototype.getState.call(this));return gt.typeName=this.typeName,gt},dt.prototype.restoreState=function(gt){var zt=gt;this.fillColor=zt.fillColor,this.strokeColor=zt.strokeColor,this.strokeWidth=zt.strokeWidth,this.strokeDasharray=zt.strokeDasharray,this.textColor=zt.textColor,this.fontFamily=zt.fontFamily,this.captionText=zt.captionText,this.fontSize=zt.fontSize,this.createVisual(),Pt.prototype.restoreState.call(this,gt),this.setSize()},dt.prototype.scale=function(gt,zt){Pt.prototype.scale.call(this,gt,zt),this.setSize()},dt.typeName="CaptionFrameMarker",dt.title="Caption frame marker",dt.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>',dt}(Ft),$e=function(){function Pt(dt,gt){gt===void 0&&(gt=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=dt,this.cancelable=gt}return Object.defineProperty(Pt.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),Pt.prototype.preventDefault=function(){this._defaultPrevented=!0},Pt}(),me=function(Pt){function dt(gt,zt,re){var Zt=Pt.call(this,gt,!1)||this;return Zt.dataUrl=zt,Zt.state=re,Zt}return xt(dt,Pt),dt}($e),le=function(Pt){function dt(gt,zt,re){re===void 0&&(re=!1);var Zt=Pt.call(this,gt,re)||this;return Zt.marker=zt,Zt}return xt(dt,Pt),dt}($e),Ee=function(){function Pt(){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 Pt.prototype.addEventListener=function(dt,gt){this[dt].push(gt)},Pt.prototype.removeEventListener=function(dt,gt){var zt=this[dt].indexOf(gt);zt>-1&&this[dt].splice(zt,1)},Pt}(),ce=function(){function Pt(dt){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new oe,this._isOpen=!1,this.undoRedoManager=new ke,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 Ee,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=Pt.instanceCounter++,this.styles=new et(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=dt,this.targetRoot=document.body,this.width=dt.clientWidth,this.height=dt.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(Pt.prototype,"ALL_MARKER_TYPES",{get:function(){return[ue,Ue,Jt,pe,rn,en,fe,Oe,We,ee,Se,Ie,je]},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[ue,Ue,Jt,pe,en,fe,Oe]},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"BASIC_MARKER_TYPES",{get:function(){return[ue,Ue,Jt,pe,fe]},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(dt){var gt=this;this._availableMarkerTypes.splice(0),dt.forEach(function(zt){if(typeof zt=="string"){var re=gt.ALL_MARKER_TYPES.find(function(Zt){return Zt.typeName===zt});re!==void 0&>._availableMarkerTypes.push(re)}else gt._availableMarkerTypes.push(zt)})},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(Pt.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(dt){this._zoomLevel=dt,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(Pt.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),Pt.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Tt.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},Pt.prototype.show=function(){var dt=this;this.styles.styleSheetRoot===void 0&&vt.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=vt.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(gt){return gt(new $e(dt))})},Pt.prototype.render=function(){return Ot(this,void 0,void 0,function(){var dt;return Bt(this,function(gt){switch(gt.label){case 0:return this.setCurrentMarker(),(dt=new It).naturalSize=this.renderAtNaturalSize,dt.imageType=this.renderImageType,dt.imageQuality=this.renderImageQuality,dt.markersOnly=this.renderMarkersOnly,dt.width=this.renderWidth,dt.height=this.renderHeight,[4,dt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return gt.sent(),[4,dt.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,gt.sent()]}})})},Pt.prototype.close=function(dt){var gt=this;if(dt===void 0&&(dt=!1),this.isOpen){var zt=!1;dt||this.eventListeners.beforeclose.forEach(function(re){var Zt=new $e(gt,!0);re(Zt),Zt.defaultPrevented&&(zt=!0)}),zt||(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(re){return re(new $e(gt))}),this.detachEvents(),this._isOpen=!1)}},Pt.prototype.addMarkersToToolbar=function(){for(var dt,gt=[],zt=0;zt<arguments.length;zt++)gt[zt]=arguments[zt];(dt=this._availableMarkerTypes).push.apply(dt,gt)},Pt.prototype.addRenderEventListener=function(dt){this.addEventListener("render",function(gt){dt(gt.dataUrl,gt.state)})},Pt.prototype.removeRenderEventListener=function(dt){},Pt.prototype.addCloseEventListener=function(dt){this.addEventListener("close",function(){dt()})},Pt.prototype.removeCloseEventListener=function(dt){},Pt.prototype.setupResizeObserver=function(){var dt=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){dt.resize(dt.target.clientWidth,dt.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return dt.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},Pt.prototype.onPopupTargetResize=function(){var dt=1*this.target.clientWidth/this.target.clientHeight,gt=this.editorCanvas.clientWidth/dt>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*dt:this.editorCanvas.clientWidth,zt=gt<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/dt;this.resize(gt,zt)},Pt.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},Pt.prototype.resize=function(dt,gt){this._isResizing=!0;var zt=dt/this.imageWidth,re=gt/this.imageHeight;this.imageWidth=Math.round(dt),this.imageHeight=Math.round(gt),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(zt,re),this._isResizing=!1},Pt.prototype.scaleMarkers=function(dt,gt){var zt,re=this;this._currentMarker&&this._currentMarker instanceof pe?this._currentMarker.scale(dt,gt):(zt=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(Zt){Zt!==re._currentMarker&&Zt.scale(dt,gt)}),zt!==void 0&&this.setCurrentMarker(zt)},Pt.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"},Pt.prototype.setTopLeft=function(){var dt=this.editingTarget.getBoundingClientRect(),gt=this.editorCanvas.getBoundingClientRect();this.left=dt.left-gt.left,this.top=dt.top-gt.top},Pt.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)},Pt.prototype.addDefs=function(){for(var dt,gt=[],zt=0;zt<arguments.length;zt++)gt[zt]=arguments[zt];this.defs=bt.createDefs(),this.addDefsToImage(),(dt=this.defs).append.apply(dt,gt)},Pt.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},Pt.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)},Pt.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},Pt.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},Pt.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)},Pt.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},Pt.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)},Pt.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 dt=document.createElement("a");dt.href="https://markerjs.com/",dt.target="_blank",dt.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>',dt.title="Powered by marker.js",dt.style.display="grid",dt.style.alignItems="center",dt.style.justifyItems="center",dt.style.padding="3px",dt.style.width="20px",dt.style.height="20px",this.logoUI.appendChild(dt),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},Pt.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")},Pt.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"},Pt.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},Pt.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 dt=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=dt+"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 rt(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 ut(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},Pt.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},Pt.prototype.removeMarker=function(dt){this.markerImage.removeChild(dt.container),this.markers.indexOf(dt)>-1&&this.markers.splice(this.markers.indexOf(dt),1),dt.dispose()},Pt.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())},Pt.prototype.toolbarButtonClicked=function(dt,gt){if(dt==="marker"&>!==void 0)this.createNewMarker(gt);else if(dt==="action")switch(gt){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()}},Pt.prototype.deleteSelectedMarker=function(){var dt=this;if(this._currentMarker!==void 0){var gt=!1;if(this.eventListeners.markerbeforedelete.forEach(function(re){var Zt=new le(dt,dt._currentMarker,!0);re(Zt),Zt.defaultPrevented&&(gt=!0)}),!gt){var zt=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(re){return re(new le(dt,zt))})}}},Pt.prototype.clear=function(){var dt=this,gt=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ye){var Ye=new le(dt,void 0,!0);ye(Ye),Ye.defaultPrevented&&(gt=!0)}),!gt)){this.setCurrentMarker();for(var zt=function(ye){var Ye=re.markers[ye];re.setCurrentMarker(re.markers[ye]),re._currentMarker.dispose(),re.markerImage.removeChild(re._currentMarker.container),re.markers.splice(re.markers.indexOf(re._currentMarker),1),re.eventListeners.markerdelete.forEach(function(sn){return sn(new le(dt,Ye))})},re=this,Zt=this.markers.length-1;Zt>=0;Zt--)zt(Zt);this.addUndoStep()}},Object.defineProperty(Pt.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),Pt.prototype.showNotesEditor=function(){var dt;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=(dt=this._currentMarker.notes)!==null&&dt!==void 0?dt:"",this.overlayContainer.appendChild(this.notesArea))},Pt.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)},Pt.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},Pt.prototype.addUndoStep=function(){var dt=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var gt=this.getState(),zt=this.undoRedoManager.getLastUndoStep();if(!zt||zt.width===gt.width&&zt.height===gt.height){var re=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(gt),re<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(Zt){return Zt(new $e(dt))})}else this.undoRedoManager.replaceLastUndoStep(gt),this.eventListeners.statechange.forEach(function(Zt){return Zt(new $e(dt))})}},Pt.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},Pt.prototype.undoStep=function(){var dt=this,gt=this.undoRedoManager.undo();gt!==void 0&&(this.restoreState(gt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(zt){return zt(new $e(dt))}))},Pt.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},Pt.prototype.redoStep=function(){var dt=this,gt=this.undoRedoManager.redo();gt!==void 0&&(this.restoreState(gt),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(zt){return zt(new $e(dt))}))},Pt.prototype.stepZoom=function(){var dt=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=dt<this.zoomSteps.length-1?this.zoomSteps[dt+1]:this.zoomSteps[0]},Pt.prototype.panTo=function(dt){this.contentDiv.scrollBy({left:this.prevPanPoint.x-dt.x,top:this.prevPanPoint.y-dt.y}),this.prevPanPoint=dt},Pt.prototype.startRenderAndClose=function(){return Ot(this,void 0,void 0,function(){var dt,gt,zt=this;return Bt(this,function(re){switch(re.label){case 0:return[4,this.render()];case 1:return dt=re.sent(),gt=this.getState(),this.eventListeners.render.forEach(function(Zt){return Zt(new me(zt,dt,gt))}),this.close(!0),[2]}})})},Pt.prototype.getState=function(dt){dt===!0&&this.setCurrentMarker();var gt={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(zt){return gt.markers.push(zt.getState())}),gt},Pt.prototype.restoreState=function(dt){var gt=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);dt.markers.forEach(function(zt){var re=gt._availableMarkerTypes.find(function(ye){return ye.typeName===zt.typeName});if(re!==void 0){var Zt=gt.addNewMarker(re);Zt.restoreState(zt),gt.markers.push(Zt)}}),dt.width&&dt.height&&(dt.width!==this.imageWidth||dt.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/dt.width,this.imageHeight/dt.height),this.eventListeners.restorestate.forEach(function(zt){return zt(new $e(gt))})},Pt.prototype.addNewMarker=function(dt){var gt=bt.createGroup();return this.markerImage.appendChild(gt),new dt(gt,this.overlayContainer,this.settings)},Pt.prototype.createNewMarker=function(dt){var gt,zt=this;(gt=typeof dt=="string"?this._availableMarkerTypes.find(function(re){return re.typeName===dt}):dt)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(gt),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(gt.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(re){return re(new le(zt,zt._currentMarker))}))},Pt.prototype.markerCreated=function(dt){var gt=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(dt),this.setCurrentMarker(dt),dt instanceof Ue&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ue):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(zt){return zt(new le(gt,gt._currentMarker))})},Pt.prototype.colorChanged=function(dt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=dt,this.settings.defaultStrokeColor=dt)},Pt.prototype.fillColorChanged=function(dt){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=dt)},Pt.prototype.markerStateChanged=function(dt){var gt=this;this.eventListeners.markerchange.forEach(function(zt){return zt(new le(gt,dt))})},Pt.prototype.setCurrentMarker=function(dt){var gt=this;this._currentMarker!==dt&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(zt){return zt(new le(gt,gt._currentMarker))})),this._currentMarker=dt,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(zt){return zt(new le(gt,gt._currentMarker))}))},Pt.prototype.onPointerDown=function(dt){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||dt.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var gt=this.markers.find(function(zt){return zt.ownsTarget(dt.target)});gt!==void 0?(this.setCurrentMarker(gt),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(dt.clientX,dt.clientY),dt.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:dt.clientX,y:dt.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(dt.clientX,dt.clientY))},Pt.prototype.onDblClick=function(dt){if(this._isFocused||this.focus(),this.mode==="select"){var gt=this.markers.find(function(zt){return zt.ownsTarget(dt.target)});gt!==void 0&>!==this._currentMarker&&this.setCurrentMarker(gt),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(dt.clientX,dt.clientY),dt.target):this.setCurrentMarker()}},Pt.prototype.onPointerMove=function(dt){this.touchPoints!==1&&dt.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||dt.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(dt.clientX,dt.clientY)):this.zoomLevel>1&&this.panTo({x:dt.clientX,y:dt.clientY}))},Pt.prototype.onPointerUp=function(dt){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(dt.clientX,dt.clientY)),this.isDragging=!1,this.addUndoStep()},Pt.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},Pt.prototype.onKeyUp=function(dt){this._currentMarker===void 0||this.notesArea!==void 0||dt.key!=="Delete"&&dt.key!=="Backspace"||this.deleteSelectedMarker()},Pt.prototype.clientToLocalCoordinates=function(dt,gt){var zt=this.markerImage.getBoundingClientRect();return{x:(dt-zt.left)/this.zoomLevel,y:(gt-zt.top)/this.zoomLevel}},Pt.prototype.onWindowResize=function(){this.positionUI()},Pt.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var dt=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=dt+"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()},Pt.prototype.addLicenseKey=function(dt){Tt.addKey(dt)},Pt.prototype.addEventListener=function(dt,gt){this.eventListeners.addEventListener(dt,gt)},Pt.prototype.removeEventListener=function(dt,gt){this.eventListeners.removeEventListener(dt,gt)},Pt.prototype.renderState=function(dt){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(dt),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(Pt.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),Pt.prototype.focus=function(){var dt=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(gt){return gt(new $e(dt))}))},Pt.prototype.blur=function(){var dt=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(gt){return gt(new $e(dt))}))},Pt.instanceCounter=0,Pt}(),he=Gt(70635),_t=Gt(58130),Mt=(Pt,dt,gt)=>new Promise((zt,re)=>{var Zt=sn=>{try{Ye(gt.next(sn))}catch(Le){re(Le)}},ye=sn=>{try{Ye(gt.throw(sn))}catch(Le){re(Le)}},Ye=sn=>sn.done?zt(sn.value):Promise.resolve(sn.value).then(Zt,ye);Ye((gt=gt.apply(Pt,dt)).next())}),Ht=({data:Pt,className:dt,fullWidth:gt,style:zt={},onClose:re,onOk:Zt,showFullTools:ye,noAssociationId:Ye})=>{const sn=(0,Rt.useRef)(null),Le=(0,Rt.useRef)(null),Re=(0,Rt.useRef)(null),hn=(0,Rt.useRef)(null),[wn,kn]=(0,Rt.useState)(!1),[Rn,Yn]=(0,Rt.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,Rt.useEffect)(()=>{Re.current||(Re.current=document.createElement("style"),document.head.appendChild(Re.current)),Pt!=null&&Pt.visible?(document.body.setAttribute("data-custom","y-hidden"),Re.current.innerHTML=" html { overflow-y: hidden; }",Pt!=null&&Pt.src&&Kn()):(document.body.removeAttribute("data-custom"),Re.current&&(document.head.removeChild(Re.current),Re.current=null))},[Pt==null?void 0:Pt.visible]);const Kn=()=>Mt(void 0,null,function*(){kn(!0),Yn("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Pi=yield(0,_t.ZJ)(Pt==null?void 0:Pt.src);sn.current.src="",sn.current.src=Pi,sn.current.onload=function(){yi()},kn(!1),Yn("")}),li=Pi=>Mt(void 0,null,function*(){kn(!0),Yn("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Mi=yield(0,he.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Pt.title,file:Pi.dataUrl}});Mi!=null&&Mi.id&&!Ye?(yield(0,he.ZP)(`/api/attachments/${Pt.id}/add_subitem.json`,{method:"post",body:{subitem_id:Mi==null?void 0:Mi.id,settings:JSON.stringify(Pi.state)}})).status===0&&Zt():Mi!=null&&Mi.id&&Zt(Mi),kn(!1),Yn("")}),mi=()=>{const Pi=document.querySelector('a[href="https://markerjs.com/"]');Pi&&Pi.parentNode&&(Pi.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(Gi=>{const bi=document.querySelector(Gi.name);bi&&bi.setAttribute("title",Gi.title)})},yi=()=>{Le.current=new ce(sn.current),Le.current.targetRoot=hn.current,Le.current.addEventListener("render",li),Le.current.addEventListener("beforeclose",re),ye&&(Le.current.availableMarkerTypes=Le.current.ALL_MARKER_TYPES,Le.current.uiStyleSettings.redoButtonVisible=!0,Le.current.uiStyleSettings.notesButtonVisible=!0,Le.current.uiStyleSettings.zoomButtonVisible=!0,Le.current.uiStyleSettings.zoomOutButtonVisible=!0,Le.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Le.current.uiStyleSettings,Le.current.show(),Pt!=null&&Pt.snapshotData&&Le.current.restoreState(Pt.snapshotData),setTimeout(()=>{window.scrollTo(0,0),mi()},300)};return Rt.createElement(Rt.Fragment,null,(Pt==null?void 0:Pt.visible)&&Rt.createElement(Nt.Z,{spinning:wn,tip:Rn,style:{position:"absolute"}},Rt.createElement("div",{ref:hn,className:Yt()(yt.imageDimensions,dt,gt?yt.fullWidth:""),style:zt},Rt.createElement("img",{className:yt.img,ref:sn}))))}},75890:function(Nn,An,Gt){"use strict";var Rt=Gt(59301),yt=Gt(95237),Vt=Gt(43604),Yt=Gt(99313),Nt=Gt(3113),Wt=Gt(25711),xt=Gt(93938),Ot=Gt(48136),Bt=Gt(59301);const At=(0,Rt.forwardRef)(({callback:bt,showSaveButton:Tt,value:It=""},vt)=>{const et=(0,Rt.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=pt=>{et.current.setValue(et.current.getValue()+" "+pt.value+" ")},ut=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Bt.createElement(yt.Z,{className:xt.Z.lists,gutter:[10,10]},tt.map((pt,mt)=>Bt.createElement(Vt.Z,{flex:"110px",className:xt.Z.item},Bt.createElement("div",null,Bt.createElement(Wt.Z,{value:`$$${pt.value}$$`}),pt.name),Bt.createElement("div",{className:xt.Z.children},pt.children.map((Ct,Dt)=>Bt.createElement("div",{key:Dt},Bt.createElement("h1",null,Ct.name),Bt.createElement(yt.Z,{gutter:[10,10]},Ct.data.map((Ut,Ft)=>Bt.createElement(Vt.Z,{key:Ft,onClick:()=>rt(Ut),className:xt.Z.diamond},Bt.createElement(Wt.Z,{value:"`$$"+Ut.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Bt.createElement(yt.Z,{className:xt.Z.lists,gutter:[10,10]},st.map((pt,mt)=>Bt.createElement(Vt.Z,{flex:"110px",className:xt.Z.item},Bt.createElement("div",null,Bt.createElement(Wt.Z,{value:"`$$"+pt.value+"$$`"}),pt.name),Bt.createElement("div",{className:xt.Z.children},pt.children.map((Ct,Dt)=>Bt.createElement("div",{key:Dt},Ct.name&&Bt.createElement("h1",null,Ct.name),Bt.createElement(yt.Z,{gutter:[10,10]},Ct.data.map((Ut,Ft)=>Bt.createElement(Vt.Z,{key:Ft,onClick:()=>rt(Ut),className:xt.Z.diamond},Bt.createElement(Wt.Z,{value:"`$$"+Ut.value+"$$`"}))))))))))}],ct=()=>{var pt=document.createElement("div");pt.innerHTML=et.current.getValue();var mt=pt.innerText;return bt&&bt(mt),mt};return(0,Rt.useImperativeHandle)(vt,()=>({getData:ct})),Bt.createElement("div",{className:xt.Z.mathWrap},Bt.createElement(Yt.default,{defaultActiveKey:"1",items:ut}),Bt.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||""),Tt&&Bt.createElement("div",{className:xt.Z.button},Bt.createElement(Nt.ZP,{size:"large",onClick:ct,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});An.Z=At},57203:function(Nn,An,Gt){"use strict";Gt.d(An,{z:function(){return Ue},Z:function(){return de}});var Rt=Gt(59301),yt=Gt(24645),Vt=Gt(8591),Yt=Gt(43418),Nt=Gt(3113),Wt=Gt(10148),xt=Gt(76904),Ot=Object.defineProperty,Bt=Object.getOwnPropertySymbols,At=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,Tt=(Jt,ee,ae)=>ee in Jt?Ot(Jt,ee,{enumerable:!0,configurable:!0,writable:!0,value:ae}):Jt[ee]=ae,It=(Jt,ee)=>{for(var ae in ee||(ee={}))At.call(ee,ae)&&Tt(Jt,ae,ee[ae]);if(Bt)for(var ae of Bt(ee))bt.call(ee,ae)&&Tt(Jt,ae,ee[ae]);return Jt},vt=(Jt,ee,ae)=>new Promise((fe,se)=>{var De=We=>{try{en(ae.next(We))}catch(rn){se(rn)}},Oe=We=>{try{en(ae.throw(We))}catch(rn){se(rn)}},en=We=>We.done?fe(We.value):Promise.resolve(We.value).then(De,Oe);en((ae=ae.apply(Jt,ee)).next())});const et="\u3000\u3000";function tt(Jt){var ee=["Bytes","KB","MB","GB","TB"];if(Jt==0)return"0 Byte";var ae=parseInt(""+Math.floor(Math.log(Jt)/Math.log(1024)),10);return(Jt/Math.pow(1024,ae)).toFixed(1)+" "+ee[ae]}var st=({value:Jt=[],action:ee,onChange:ae,className:fe,maxSize:se=150,title:De="\u6587\u4EF6\u4E0A\u4F20",accept:Oe=null})=>{const en={multiple:!1,fileList:Jt,accept:Oe,withCredentials:!0,beforeUpload:rn=>rn.size/1024/1024<se?!0:(message.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${se}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(rn){var ke,Ie,je,$e;let me=[...rn.fileList];if(me=me.map(le=>(le.name.indexOf(et)===-1&&(le.name=`${le.name}${et}${tt(le.size)}`),It({},le))),rn.file.status==="done"&&((Ie=(ke=rn.file)==null?void 0:ke.response)==null?void 0:Ie.status)===-1){message.error(($e=(je=rn.file)==null?void 0:je.response)==null?void 0:$e.message),ae([]);return}ae(me)},onRemove:rn=>vt(void 0,null,function*(){const ke=rn.size/1024/1024;return rn.status==="uploading"?!0:ke<se&&(rn.response?rn.response.id:rn.uid)?yield removeAttachment(rn.response?rn.response.id:rn.id):!0})};function We(rn){rn.preventDefault(),rn.stopPropagation()}return React.createElement("div",{className:`single-upload ${fe||""}`},React.createElement(Upload,It({},en),React.createElement(Button,{type:"primary",title:Jt.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:Jt.length>0,ghost:!0},De),React.createElement("span",{onClick:We,style:{marginLeft:10}},"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927",se,"M)"," ")))},rt=Gt(76298),ut=Gt(89392),ct=Object.defineProperty,pt=Object.getOwnPropertySymbols,mt=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,Dt=(Jt,ee,ae)=>ee in Jt?ct(Jt,ee,{enumerable:!0,configurable:!0,writable:!0,value:ae}):Jt[ee]=ae,Ut=(Jt,ee)=>{for(var ae in ee||(ee={}))mt.call(ee,ae)&&Dt(Jt,ae,ee[ae]);if(pt)for(var ae of pt(ee))Ct.call(ee,ae)&&Dt(Jt,ae,ee[ae]);return Jt};const Ft=Jt=>React.createElement("svg",Ut({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Jt),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=",$t=Object.defineProperty,Kt=Object.getOwnPropertySymbols,ue=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,we=(Jt,ee,ae)=>ee in Jt?$t(Jt,ee,{enumerable:!0,configurable:!0,writable:!0,value:ae}):Jt[ee]=ae,Se=(Jt,ee)=>{for(var ae in ee||(ee={}))ue.call(ee,ae)&&we(Jt,ae,ee[ae]);if(Kt)for(var ae of Kt(ee))oe.call(ee,ae)&&we(Jt,ae,ee[ae]);return Jt},Ne=(Jt,ee,ae)=>new Promise((fe,se)=>{var De=We=>{try{en(ae.next(We))}catch(rn){se(rn)}},Oe=We=>{try{en(ae.throw(We))}catch(rn){se(rn)}},en=We=>We.done?fe(We.value):Promise.resolve(We.value).then(De,Oe);en((ae=ae.apply(Jt,ee)).next())});const{Dragger:pe}=yt.default;function Ue(Jt){let ee=[];return Jt&&Jt.length>0&&(ee=Jt.map(ae=>({uid:ae.id,id:ae.id,name:ae.title+et+ae.filesize,url:ae.url,filesize:ae.filesize,status:"done",response:{id:ae.id}}))),ee}var de=({value:Jt,onChange:ee,action:ae,data:fe,className:se,maxSize:De=150,title:Oe="\u4E0A\u4F20\u9644\u4EF6",showRemoveModal:en=!1,accept:We="",additionalText:rn,isDragger:ke,number:Ie=1e3,aloneClear:je=!1,realTimeRemove:$e=!0,uploadText:me,setFileProgress:le,showFileProgress:Ee})=>{const[ce,he]=(0,Rt.useState)(!1);let[_t,Mt]=(0,Rt.useState)(Jt||[]),[Et,Ht]=(0,Rt.useState)(1);(0,Rt.useEffect)(()=>{Jt&&(Et===1&&Mt([...Jt]),Ht(2),Ie===(Jt==null?void 0:Jt.length)&&he(!0))},[Jt]);const Pt=()=>{setTimeout(()=>{_t.pop(),Mt([..._t])},500)};Ee&&le(_t.some(zt=>zt.status==="uploading"));const dt={multiple:!0,disabled:ce,accept:We,withCredentials:!0,fileList:_t,beforeUpload:(zt,re)=>{const Zt=zt.size/1024/1024;return _t.concat(re).length>Ie?(_t.pop(),Mt([..._t]),Vt.ZP.error(`\u6700\u591A\u53EA\u80FD\u4E0A\u4F20${Ie}\u4E2A\u6587\u4EF6`),je?Promise.reject():(Pt(),!1)):Zt<De?!0:(Vt.ZP.error(`\u8BE5\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(${De}MB).`),je?Promise.reject():(Pt(),!1))},data:fe,action:ae||`${Wt.Z.API_SERVER}/api/attachments.json`,onChange(zt){var re,Zt,ye,Ye;if(zt.file.status==="removed"?_t=zt.fileList:_t=(0,ut.uniqBy)([...zt.fileList,..._t],"uid"),zt.file.status==="done"&&((Zt=(re=zt.file)==null?void 0:re.response)==null?void 0:Zt.status)===-1){Vt.ZP.error((Ye=(ye=zt.file)==null?void 0:ye.response)==null?void 0:Ye.message);return}_t.length>=Ie?he(!0):he(!1),Mt([..._t]),_t=_t.map(sn=>{var Le,Re;return(Le=sn==null?void 0:sn.response)!=null&&Le.id&&(sn.url=(Re=sn==null?void 0:sn.response)==null?void 0:Re.url),sn.name.indexOf(et)===-1&&(sn.name=`${sn.name}${et}${tt(sn.size)}`),Se({},sn)}),console.log("info:",zt,_t),ee(_t)},onRemove:zt=>Ne(void 0,null,function*(){if(!$e)return!0;const re=()=>Ne(void 0,null,function*(){if(zt.response?zt.response.id:zt.id){let ye=yield(0,xt.JZ)(zt.response?zt.response.id:zt.uid);return Promise.resolve(ye)}else return!0});return en?new Promise((Zt,ye)=>{Yt.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Rt.createElement("div",{className:"tc font16"},"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),onOk:()=>Ne(void 0,null,function*(){const Ye=yield re();Vt.ZP.success("\u5220\u9664\u6210\u529F"),Zt(!0)}),onCancel:()=>Zt(!1)})}):yield re()})};function gt(zt){zt.preventDefault(),zt.stopPropagation()}return Rt.createElement("div",{className:`multi-upload ${se||""}`},ke&&Rt.createElement(pe,Se({},dt),Rt.createElement("p",{className:"ant-upload-drag-icon"},Rt.createElement(rt.Z,null)),Rt.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",Rt.createElement("br",null),"(\u5355\u4E2A\u6587\u4EF6\u6700\u5927\u9650\u5236\u4E3A",De,"MB)"," "),rn),!ke&&Rt.createElement(yt.default,Se({},dt),Rt.createElement(Nt.ZP,{disabled:ce,className:"upload_button"},Rt.createElement("img",{className:"aBtn_img",src:Qt}),Oe),Rt.createElement("span",{onClick:gt,className:"upload_text"},me||`(\u5355\u4E2A\u6587\u4EF6\u6700\u5927${De}MB)`)))}},97267:function(Nn,An,Gt){"use strict";var Rt=Gt(59301),yt=Gt(93314),Vt=Gt(3113),Yt=Object.defineProperty,Nt=Object.defineProperties,Wt=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,Ot=Object.prototype.hasOwnProperty,Bt=Object.prototype.propertyIsEnumerable,At=(vt,et,tt)=>et in vt?Yt(vt,et,{enumerable:!0,configurable:!0,writable:!0,value:tt}):vt[et]=tt,bt=(vt,et)=>{for(var tt in et||(et={}))Ot.call(et,tt)&&At(vt,tt,et[tt]);if(xt)for(var tt of xt(et))Bt.call(et,tt)&&At(vt,tt,et[tt]);return vt},Tt=(vt,et)=>Nt(vt,Wt(et));const It=({img:vt,buttonProps:et={},styles:tt={},customText:st,ButtonText:rt,ButtonClick:ut,Buttonclass:ct,ButtonTwo:pt,imgStyles:mt,loading:Ct=!1})=>Rt.createElement("section",{className:"tc animated fadeIn",style:bt(bt({},{color:"#999",margin:"100px auto",visibility:Ct?"hidden":"visible"}),tt)},Rt.createElement("img",{src:vt||yt,style:Tt(bt({},mt),{pointerEvents:"none",userSelect:"none"})}),Rt.createElement("p",{className:"mt20 font14"},st||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),rt&&Rt.createElement(Vt.ZP,bt({className:ct,onClick:ut},et),rt),pt&&pt);An.Z=It},79646:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return ct}});var Rt=Gt(59301),yt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},Vt=Gt(3113),Yt=Gt(63093),Nt=Gt(48551),Wt=Gt(6848),xt=Gt(58130),Ot=Gt(79124),Bt=Gt(97267),At=Gt(10148),bt=Gt(63486),Tt=Gt(59301),It=Object.defineProperty,vt=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,tt=Object.prototype.propertyIsEnumerable,st=(pt,mt,Ct)=>mt in pt?It(pt,mt,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):pt[mt]=Ct,rt=(pt,mt)=>{for(var Ct in mt||(mt={}))et.call(mt,Ct)&&st(pt,Ct,mt[Ct]);if(vt)for(var Ct of vt(mt))tt.call(mt,Ct)&&st(pt,Ct,mt[Ct]);return pt},ut=(pt,mt,Ct)=>new Promise((Dt,Ut)=>{var Ft=Kt=>{try{$t(Ct.next(Kt))}catch(ue){Ut(ue)}},Qt=Kt=>{try{$t(Ct.throw(Kt))}catch(ue){Ut(ue)}},$t=Kt=>Kt.done?Dt(Kt.value):Promise.resolve(Kt.value).then(Ft,Qt);$t((Ct=Ct.apply(pt,mt)).next())}),ct=({editOffice:pt="view",data:mt,theme:Ct,type:Dt,filename:Ut,monacoEditor:Ft,className:Qt,style:$t,close:Kt,onClose:ue,hasMask:oe,disabledDownload:we,onImgDimensions:Se,showNodata:Ne,recordInfo:pe})=>{const[Ue,de]=(0,Rt.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Jt,ee]=(0,Rt.useState)(""),[ae,fe]=(0,Rt.useState)(),se=window.ENV==="build"?"/react/build":"",De=location.host.startsWith("localhost")?At.Z.PROXY_SERVER:At.Z.API_SERVER,en=10*(1024*1024),We=(0,Rt.useRef)();mt!=null&&mt.startsWith("/api")&&Dt!=="txt"&&(mt=At.Z.API_SERVER+mt);const rn=$e=>$e.substring($e.lastIndexOf("/")+1).split(".").pop();Ut&&Ft&&(Ft.filename=Ut),(0,Rt.useEffect)(()=>{var $e,me;const le=(me=($e=document.cookie)==null?void 0:$e.replace(/\s/g,""))==null?void 0:me.split(";");le==null||le.map(Ee=>{let ce=Ee.split("=");ce[0]==="_educoder_session"&&ee(ce[1])})},[]),(0,Rt.useEffect)(()=>{Dt==="office"&&(mt.indexOf("bigfilescdn.")>-1||mt.indexOf("bigfiles1")>-1?fe({url:mt,fileType:rn(mt),model:mt.indexOf("model=edit")?"edit":"view"}):ke())},[Dt,mt]);const ke=()=>ut(void 0,null,function*(){console.log("data:",mt);let $e=mt;mt.startsWith("http")||($e=location.origin+$e);let me=new URL($e).pathname.split("/").pop();const le=yield(0,Ot.gJ)({attachment_id:me});le.url=De+le.url,fe(le)}),Ie=()=>{if(mt.startsWith("http")||mt.startsWith("blob:")){je();return}(0,xt.Sv)(Ut||"educoder",mt,Ut)},je=()=>{pe&&(0,bt.fc)({id:pe==null?void 0:pe.id,watch_type:1,course_id:pe==null?void 0:pe.course_id}),(0,xt.Nd)(Ut||"educoder",decodeURIComponent(mt))};return Tt.createElement("div",{style:rt({},$t||{}),className:`${oe&&yt.bgBlack} ${Dt?yt.wrp:"hide"}`},Kt&&Tt.createElement("div",{className:yt.close,ref:We},!!Se&&Tt.createElement(Wt.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>We.current},Tt.createElement("span",{onClick:()=>{ue(),Se()}},Tt.createElement("i",{className:"icon-yulanpizhu"}))),!we&&Tt.createElement(Wt.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>We.current},Tt.createElement("span",{onClick:je},Tt.createElement("i",{className:"icon-quxiaozhiding"}))),Tt.createElement(Wt.Z,{title:"\u5173\u95ED",getPopupContainer:()=>We.current},Tt.createElement("span",{className:"",onClick:ue},Tt.createElement("i",{className:"icon-guanbi1"})))),Tt.createElement("div",{className:`${yt[Qt]} ${Qt} ${yt.monaco} ${Dt==="txt"?"show":"hide"}`},Dt==="txt"&&Tt.createElement(Tt.Fragment,null,Tt.createElement(Nt.ZP,rt({},Ft)))),Dt==="audio"&&Tt.createElement("audio",{src:`${(mt==null?void 0:mt.indexOf("http://"))>-1||(mt==null?void 0:mt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${mt}`,autoPlay:!0}),Dt==="video"&&Tt.createElement(Tt.Fragment,null,(mt==null?void 0:mt.indexOf("http"))>-1?Tt.createElement("video",{controls:!0,src:`${mt}`,autoPlay:!0}):Tt.createElement("video",{controls:!0,src:`data:video/mp4;base64,${mt}`,autoPlay:!0})),Dt==="office"&&ae&&Tt.createElement("iframe",{src:`${se}/office.html?key=${ae.key}&url=${btoa(ae.url)}&callbackUrl=${De+(ae.callbackUrl||"")}&fileType=${ae.fileType}&title=${ae.title||""}&model=${pt}&officeServer=${At.Z.ONLYOFFICE}&disabledDownload=${!!we}`}),Dt==="html"&&Tt.createElement("iframe",{src:mt+"&disposition=inline"}),Dt==="pdf"&&Tt.createElement("iframe",{src:`${se}/js/pdfview/index.html?filename=${Ut||"educoder.pdf"}&url=${encodeURIComponent(mt)}&disabledDownload=${!!we}`}),Dt==="image"&&Tt.createElement("img",{src:`${(mt==null?void 0:mt.indexOf("http://"))>-1||(mt==null?void 0:mt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${mt}`}),(Dt==="other"||Dt==="download")&&Tt.createElement(Tt.Fragment,null,Ne?Tt.createElement(Bt.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Tt.createElement(Vt.ZP,{icon:Tt.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Ie,disabled:we},"\u4E0B\u8F7D")}):Tt.createElement(Vt.ZP,{type:"primary",size:"middle",onClick:Ie,disabled:we},Tt.createElement(Yt.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},25711:function(Nn,An,Gt){"use strict";Gt.d(An,{z:function(){return Dt},Z:function(){return Ut}});var Rt=Gt(59301),yt=Gt(1751),Vt=Gt(31087),Yt=Gt(64018),Nt=Gt(37312),Wt=Gt(10148),xt=Gt(58130),Ot=Gt(15342),Bt=Gt(1012),At=Gt(79646),bt=Gt(59301),It=({html:Ft})=>{const Qt=(0,Rt.useRef)(null),$t=(0,Rt.useRef)(null),Kt=`.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,Rt.useEffect)(()=>{const ue=Qt.current.attachShadow({mode:"open"});$t.current=document.createElement("div"),$t.current.className="markdown-body",$t.current.innerHTML=Ft,ue.appendChild($t.current);const oe=document.createElement("style");return oe.textContent=Kt,ue.appendChild(oe),()=>{ue.innerHTML=""}},[]),(0,Rt.useEffect)(()=>{$t.current&&($t.current.innerHTML=Ft)},[Ft]),bt.createElement("div",{ref:Qt})},vt=Object.defineProperty,et=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,rt=(Ft,Qt,$t)=>Qt in Ft?vt(Ft,Qt,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Ft[Qt]=$t,ut=(Ft,Qt)=>{for(var $t in Qt||(Qt={}))tt.call(Qt,$t)&&rt(Ft,$t,Qt[$t]);if(et)for(var $t of et(Qt))st.call(Qt,$t)&&rt(Ft,$t,Qt[$t]);return Ft};const ct="@\u2581\u2581@",pt="@\u2581@",mt=/<pre[^>]*>/g;function Ct(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 $t=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Kt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ue=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,oe=/(?: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($t,(we,Se,Ne,pe,Ue,de,Jt)=>{const ee=Se||pe||de,ae=Ne||Ue||Jt||"?";return Wt.Z.API_SERVER+"/api/attachments/"+ee+ae+"&t="+(0,xt.Jn)(ee,Date.now())+(we.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Ft=Ft.replace(oe,(we,Se,Ne,pe,Ue,de,Jt)=>{const ee=Se||pe||de,ae=Ne||Ue||Jt||"?";return Wt.Z.API_SERVER+"/attachments/download/"+ee+ae+"&t="+(0,xt.Jn)(ee,Date.now())+(we.indexOf(")")>-1?")":"&")}).replace($t,(we,Se,Ne,pe,Ue,de,Jt)=>{const ee=Se||pe||de,ae=Ne||Ue||Jt||"?";return Wt.Z.API_SERVER+"/api/attachments/"+ee+ae+"&t="+(0,xt.Jn)(ee,Date.now())+(we.indexOf(")")>-1?")":"&")}).replace(Kt,(we,Se,Ne,pe,Ue)=>{const de=Se||pe,Jt=Ne||Ue||"";return'"'+Wt.Z.API_SERVER+"/api/attachments/"+de+Jt+de+Jt+"&t="+(0,xt.Jn)(de,Date.now())}).replace(ue,(we,Se,Ne,pe,Ue)=>{const de=Se||pe,Jt=Ne||Ue||"";return"("+Wt.Z.API_SERVER+"/files/uploads/"+de+Jt+de+Jt+"&t="+(0,xt.Jn)(de,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 Ut=({value:Ft="",className:Qt,showTextOnly:$t,showLines:Kt,style:ue={},stylesPrev:oe={},highlightKeywords:we,showProgramFill:Se,isProgramFill:Ne,disabledFill:pe=!1,programFillValue:Ue,onFillChange:de=ae=>{},onFillBlur:Jt=()=>{},onFillFocus:ee=()=>{}})=>{let ae=String(Ft);const[fe,se]=(0,Rt.useState)(""),[De,Oe]=(0,Rt.useState)("office"),[en,We]=(0,Rt.useState)([]),rn=(0,Rt.useRef)("a"+(0,Bt.Z)()),ke={},Ie=(Pt,dt,gt)=>{const zt=document.createElement(Pt===pt?"input":"textarea");zt.style.width="100%",zt.style.height=Pt===pt?"40px":"151px",zt.rows=5,zt.spellcheck=!1,zt.name="edu-program-fill",zt.placeholder="\u8BF7\u8F93\u5165",zt.dataset.id=dt;const re=Object.keys(ke).length;return ke[re]=zt,`<span class="edu-program-fill-wrap ${Pt===pt?"":"show"}" style="width:${Pt===pt?"400px":"100%"}" title=${gt||""}><span>${zt.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function je(Pt){return Pt=Pt.replace(/!\[.*?\]\(.*?\)/g,""),Pt=Pt.replace(/\[.*?\]\(.*?\)/g,""),Pt=Pt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Pt=Pt.replace(/<embed.*?>/g,""),Pt=Pt.replace(/<img.*?>/g,""),Pt=Pt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Pt=Pt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Pt=Pt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Pt=Pt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Pt}const $e=Pt=>Pt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(dt,gt){let zt=gt.replace(/(\n|\r)/g,"").split("}"),re=[];return zt.map(Zt=>{Zt!=""&&re.push(`.${rn.current} ${Zt}`)}),`<style>${re.join("}")}</style>`}),me=(0,Rt.useMemo)(()=>{try{const zt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,re=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Zt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,ye=/\(\/attachments\/download\//g;ae=ae.replace(ye,"("+Wt.Z.API_SERVER+"/attachments/download/").replace(zt,"("+Wt.Z.API_SERVER+"/api/attachments/").replace(re,'"'+Wt.Z.API_SERVER+"/api/attachments/").replace(Zt,'"'+Wt.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(zt){}if(Se){let zt=-1;return ae=ae.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(re,Zt,ye){var Ye;return++zt,Ie(re,zt,(Ye=Ue==null?void 0:Ue[zt])==null?void 0:Ye.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${$e(ae||"")}</pre>`}let Pt=$e(ae);Pt=(0,Vt.ZP)(Pt);const dt=(0,Vt.ez)();ae.match(/\[TOC\]/)&&(Pt=Pt.replace("<p>[TOC]</p>",(0,Vt.Qv)()),(0,Vt.Iy)()),Pt=Pt.replace(/(__special_katext_id_\d+__)/g,(zt,re)=>{const{type:Zt,expression:ye}=dt[re];return(0,Ot.renderToString)(Ct(ye)||"",{displayMode:Zt==="block",throwOnError:!1,output:"html"})}),Pt=Pt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Vt.AL)();const gt=document.createElement("div");if(gt.innerHTML=Pt,$t)return gt.innerText;if(we){const zt=we.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return he(gt,zt),gt.innerHTML}return setTimeout(()=>Et(),500),gt.innerHTML},[ae,we]);(0,Rt.useEffect)(()=>{_t.current&&_t.current.querySelectorAll(["input","textarea"]).forEach(dt=>{dt.oninput=le,dt.onblur=Ee,dt.onfocus=ce})},[en]),(0,Rt.useEffect)(()=>{var Pt,dt,gt,zt,re;if(Ue!=null&&Ue.length)try{const Zt=_t.current.querySelectorAll(".edu-program-fill-score"),ye=_t.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ye,sn]of ye.entries())sn.value=((Pt=Ue==null?void 0:Ue[Ye])==null?void 0:Pt.value)||"",((dt=Ue==null?void 0:Ue[Ye])==null?void 0:dt.type)==="warning"?sn.className="program-fill-warning":((gt=Ue==null?void 0:Ue[Ye])==null?void 0:gt.type)==="success"?sn.className="program-fill-success":sn.className="";for(const[Ye,sn]of Zt.entries())sn.innerHTML=(zt=Ue==null?void 0:Ue[Ye])!=null&&zt.score?`${(re=Ue==null?void 0:Ue[Ye])==null?void 0:re.score}\u5206`:"";We(Ue)}catch(Zt){console.log(Zt,"error")}},[Ue]);const le=Pt=>{en[Pt.target.dataset.id]=en[Pt.target.dataset.id]||{},en[Pt.target.dataset.id].value=Pt.target.value,We([...en]),de(en,Pt.target.dataset.id)},Ee=Pt=>{en[Pt.target.dataset.id]=en[Pt.target.dataset.id]||{},en[Pt.target.dataset.id].value=Pt.target.value,We([...en]),Jt(en,Pt.target.dataset.id)},ce=Pt=>{en[Pt.target.dataset.id]=en[Pt.target.dataset.id]||{},en[Pt.target.dataset.id].value=Pt.target.value,We([...en]),ee(en,Pt.target.dataset.id)};function he(Pt,dt){return Pt.childNodes.forEach(gt=>{var zt;if(gt.childNodes.length>0)he(gt,dt);else if(gt.nodeName!=="IMG")if(gt.innerHTML)gt.innerHTML=(zt=gt.innerHTML)==null?void 0:zt.replace(new RegExp(dt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const re=document.createElement("span");re.innerHTML=gt.textContent.replace(new RegExp(dt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),gt.replaceWith(re)}})}const _t=(0,Rt.useRef)();Vt.jb.WebkitLineClamp=Kt,Kt&&(ue=ut(ut({},ue),Vt.jb));function Mt(Pt){let dt=Pt.target;if(dt.tagName.toUpperCase()==="A"){let gt=dt.getAttribute("href");if(gt.indexOf("office")>-1)Pt.preventDefault(),se(gt),Oe("office");else if(gt.indexOf("application/pdf")>-1)Pt.preventDefault(),se(gt),Oe("pdf");else if(gt.indexOf("text/html")>-1)Pt.preventDefault(),se(gt),Oe("html");else if(gt.startsWith("#")){Pt.preventDefault();let zt=document.getElementById(gt.replace("#",""));zt&&zt.scrollIntoView(!0)}}}const Et=()=>{var Pt;const dt=(Pt=_t.current)==null?void 0:Pt.querySelectorAll("video");dt==null||dt.forEach(gt=>{if(gt.oncontextmenu=()=>!1,gt.src.indexOf(".m3u8")>-1&&!gt.canPlayType("application/vnd.apple.mpegurl")){if(Nt.ZP.isSupported()){var zt=new Nt.ZP;zt.loadSource(gt.src),zt.attachMedia(gt)}}})};(0,Rt.useEffect)(()=>{if(_t.current&&me&&me.match(mt)&&window.PR.prettyPrint(),_t.current)return _t.current.addEventListener("click",Mt),()=>{var Pt;(Pt=_t.current)==null||Pt.removeEventListener("click",Mt),(0,Vt.AL)(),(0,Vt.Iy)()}},[me,_t.current,Mt]),(0,Rt.useEffect)(()=>{var Pt;const dt=gt=>{gt.preventDefault(),gt.clipboardData.setData("text",window.getSelection().toString())};return(Pt=_t.current)==null||Pt.addEventListener("copy",dt),()=>{var gt;(gt=_t.current)==null||gt.removeEventListener("copy",dt)}},[_t.current]);const Ht=Pt=>/<style[\s\S]*?>/i.test(Pt||"");return Rt.createElement(Rt.Fragment,null,$t&&Rt.createElement("div",{ref:_t},me),!$t&&!Ht(me)&&Rt.createElement("div",{ref:_t,style:ut({},ue),className:`${Qt||""} ${pe?"disabled-fill":""} markdown-body ${rn.current}`,dangerouslySetInnerHTML:{__html:me}}),!$t&&Ht(me)&&Rt.createElement(It,{html:me}),Rt.createElement(At.Z,{close:!0,data:fe,type:fe!=null&&fe.length?De:"",style:ut({},oe),onClose:()=>se("")}))}},2307:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return mn}});var Rt=Gt(59301),yt=Gt(86766),Vt=Gt(30631),Yt=Gt(92310),Nt=Gt.n(Yt),Wt=Gt(5891),xt=Gt(57259),Ot=Gt(80962),Bt=Gt(29043),At=Gt(80665),bt=Gt(19149),Tt=Gt(21783),It=Gt(35788),vt=["crossOrigin","decoding","draggable","loading","referrerPolicy","sizes","srcSet","useMap","alt"],et=Rt.createContext(null),tt=0;function st(Me,Ge){var fn=Rt.useState(function(){return tt+=1,String(tt)}),In=(0,Bt.Z)(fn,1),Ke=In[0],cn=Rt.useContext(et),_e={data:Ge,canPreview:Me};return Rt.useEffect(function(){if(cn)return cn.register(Ke,_e)},[]),Rt.useEffect(function(){cn&&cn.register(Ke,_e)},[Me,Ge]),Ke}function rt(Me){return new Promise(function(Ge){var fn=document.createElement("img");fn.onerror=function(){return Ge(!1)},fn.onload=function(){return Ge(!0)},fn.src=Me})}function ut(Me){var Ge=Me.src,fn=Me.isCustomPlaceholder,In=Me.fallback,Ke=(0,Rt.useState)(fn?"loading":"normal"),cn=(0,Bt.Z)(Ke,2),_e=cn[0],on=cn[1],dn=(0,Rt.useRef)(!1),ln=_e==="error";(0,Rt.useEffect)(function(){rt(Ge).then(function(On){On||on("error")})},[Ge]),(0,Rt.useEffect)(function(){fn&&!dn.current?on("loading"):ln&&on("normal")},[Ge]);var xn=function(){on("normal")},yn=function(En){dn.current=!1,_e==="loading"&&En!=null&&En.complete&&(En.naturalWidth||En.naturalHeight)&&(dn.current=!0,xn())},Mn=ln&&In?{src:In}:{onLoad:xn,src:Ge};return[yn,Mn,_e]}var ct=Gt(86923),pt=Gt(8178),mt=Gt(85108),Ct=Gt(51395);function Dt(Me,Ge,fn,In){var Ke=Ge+fn,cn=(fn-In)/2;if(fn>In){if(Ge>0)return(0,Ot.Z)({},Me,cn);if(Ge<0&&Ke<In)return(0,Ot.Z)({},Me,-cn)}else if(Ge<0||Ke>In)return(0,Ot.Z)({},Me,Ge<0?cn:-cn);return{}}function Ut(Me,Ge,fn,In){var Ke=(0,Tt.g1)(),cn=Ke.width,_e=Ke.height,on=null;return Me<=cn&&Ge<=_e?on={x:0,y:0}:(Me>cn||Ge>_e)&&(on=(0,xt.Z)((0,xt.Z)({},Dt("x",fn,Me,cn)),Dt("y",In,Ge,_e))),on}var Ft=Gt(51346),Qt=Gt(23073),$t={x:0,y:0,rotate:0,scale:1,flipX:!1,flipY:!1};function Kt(Me,Ge,fn,In){var Ke=(0,Rt.useRef)(null),cn=(0,Rt.useRef)([]),_e=(0,Rt.useState)($t),on=(0,Bt.Z)(_e,2),dn=on[0],ln=on[1],xn=function(En){ln($t),In&&!(0,Ft.Z)($t,dn)&&In({transform:$t,action:En})},yn=function(En,jn){Ke.current===null&&(cn.current=[],Ke.current=(0,Qt.Z)(function(){ln(function(ei){var pi=ei;return cn.current.forEach(function(ii){pi=(0,xt.Z)((0,xt.Z)({},pi),ii)}),Ke.current=null,In==null||In({transform:pi,action:jn}),pi})})),cn.current.push((0,xt.Z)((0,xt.Z)({},dn),En))},Mn=function(En,jn,ei,pi){var ii=Me.current,qe=ii.width,Xn=ii.height,ti=ii.offsetWidth,Qn=ii.offsetHeight,Li=ii.offsetLeft,fi=ii.offsetTop,ki=En,gi=dn.scale*En;gi>fn?(ki=fn/dn.scale,gi=fn):gi<Ge&&(ki=Ge/dn.scale,gi=Ge);var oi=ei!=null?ei:innerWidth/2,Fi=pi!=null?pi:innerHeight/2,Cn=ki-1,nr=Cn*qe*.5,Ln=Cn*Xn*.5,Bi=Cn*(oi-dn.x-Li),wr=Cn*(Fi-dn.y-fi),Hi=dn.x-(Bi-nr),Or=dn.y-(wr-Ln);if(En<1&&gi===1){var pr=ti*gi,Si=Qn*gi,vi=(0,Tt.g1)(),Xi=vi.width,Zi=vi.height;pr<=Xi&&Si<=Zi&&(Hi=0,Or=0)}yn({x:Hi,y:Or,scale:gi},jn)};return{transform:dn,resetTransform:xn,updateTransform:yn,dispatchZoomChange:Mn}}var ue=Gt(43403),oe=Gt(43469),we=function(Ge){var fn=Ge.visible,In=Ge.maskTransitionName,Ke=Ge.getContainer,cn=Ge.prefixCls,_e=Ge.rootClassName,on=Ge.icons,dn=Ge.countRender,ln=Ge.showSwitch,xn=Ge.showProgress,yn=Ge.current,Mn=Ge.transform,On=Ge.count,En=Ge.scale,jn=Ge.minScale,ei=Ge.maxScale,pi=Ge.closeIcon,ii=Ge.onSwitchLeft,qe=Ge.onSwitchRight,Xn=Ge.onClose,ti=Ge.onZoomIn,Qn=Ge.onZoomOut,Li=Ge.onRotateRight,fi=Ge.onRotateLeft,ki=Ge.onFlipX,gi=Ge.onFlipY,oi=Ge.toolbarRender,Fi=(0,Rt.useContext)(et),Cn=on.rotateLeft,nr=on.rotateRight,Ln=on.zoomIn,Bi=on.zoomOut,wr=on.close,Hi=on.left,Or=on.right,pr=on.flipX,Si=on.flipY,vi="".concat(cn,"-operations-operation");Rt.useEffect(function(){var xe=function(Ar){Ar.keyCode===mt.Z.ESC&&Xn()};return fn&&window.addEventListener("keydown",xe),function(){window.removeEventListener("keydown",xe)}},[fn]);var Xi=[{icon:Si,onClick:gi,type:"flipY"},{icon:pr,onClick:ki,type:"flipX"},{icon:Cn,onClick:fi,type:"rotateLeft"},{icon:nr,onClick:Li,type:"rotateRight"},{icon:Bi,onClick:Qn,type:"zoomOut",disabled:En===jn},{icon:Ln,onClick:ti,type:"zoomIn",disabled:En===ei}],Zi=Xi.map(function(xe){var Ri,Ar=xe.icon,zi=xe.onClick,ir=xe.type,Oi=xe.disabled;return Rt.createElement("div",{className:Nt()(vi,(Ri={},(0,Ot.Z)(Ri,"".concat(cn,"-operations-operation-").concat(ir),!0),(0,Ot.Z)(Ri,"".concat(cn,"-operations-operation-disabled"),!!Oi),Ri)),onClick:zi,key:ir},Ar)}),Jn=Rt.createElement("div",{className:"".concat(cn,"-operations")},Zi);return Rt.createElement(oe.default,{visible:fn,motionName:In},function(xe){var Ri=xe.className,Ar=xe.style;return Rt.createElement(ue.Z,{open:!0,getContainer:Ke!=null?Ke:document.body},Rt.createElement("div",{className:Nt()("".concat(cn,"-operations-wrapper"),Ri,_e),style:Ar},pi===null?null:Rt.createElement("button",{className:"".concat(cn,"-close"),onClick:Xn},pi||wr),ln&&Rt.createElement(Rt.Fragment,null,Rt.createElement("div",{className:Nt()("".concat(cn,"-switch-left"),(0,Ot.Z)({},"".concat(cn,"-switch-left-disabled"),yn===0)),onClick:ii},Hi),Rt.createElement("div",{className:Nt()("".concat(cn,"-switch-right"),(0,Ot.Z)({},"".concat(cn,"-switch-right-disabled"),yn===On-1)),onClick:qe},Or)),Rt.createElement("div",{className:"".concat(cn,"-footer")},xn&&Rt.createElement("div",{className:"".concat(cn,"-progress")},dn?dn(yn+1,On):"".concat(yn+1," / ").concat(On)),oi?oi(Jn,(0,xt.Z)({icons:{flipYIcon:Zi[0],flipXIcon:Zi[1],rotateLeftIcon:Zi[2],rotateRightIcon:Zi[3],zoomOutIcon:Zi[4],zoomInIcon:Zi[5]},actions:{onFlipY:gi,onFlipX:ki,onRotateLeft:fi,onRotateRight:Li,onZoomOut:Qn,onZoomIn:ti},transform:Mn},Fi?{current:yn,total:On}:{})):Jn)))})},Se=we,Ne=1,pe=1,Ue=["fallback","src","imgRef"],de=["prefixCls","src","alt","fallback","movable","onClose","visible","icons","rootClassName","closeIcon","getContainer","current","count","countRender","scaleStep","minScale","maxScale","transitionName","maskTransitionName","imageRender","imgCommonProps","toolbarRender","onTransform","onChange"],Jt=function(Ge){var fn=Ge.fallback,In=Ge.src,Ke=Ge.imgRef,cn=(0,bt.Z)(Ge,Ue),_e=ut({src:In,fallback:fn}),on=(0,Bt.Z)(_e,2),dn=on[0],ln=on[1];return Rt.createElement("img",(0,Wt.Z)({ref:function(yn){Ke.current=yn,dn(yn)}},cn,ln))},ee=function(Ge){var fn=Ge.prefixCls,In=Ge.src,Ke=Ge.alt,cn=Ge.fallback,_e=Ge.movable,on=_e===void 0?!0:_e,dn=Ge.onClose,ln=Ge.visible,xn=Ge.icons,yn=xn===void 0?{}:xn,Mn=Ge.rootClassName,On=Ge.closeIcon,En=Ge.getContainer,jn=Ge.current,ei=jn===void 0?0:jn,pi=Ge.count,ii=pi===void 0?1:pi,qe=Ge.countRender,Xn=Ge.scaleStep,ti=Xn===void 0?.5:Xn,Qn=Ge.minScale,Li=Qn===void 0?1:Qn,fi=Ge.maxScale,ki=fi===void 0?50:fi,gi=Ge.transitionName,oi=gi===void 0?"zoom":gi,Fi=Ge.maskTransitionName,Cn=Fi===void 0?"fade":Fi,nr=Ge.imageRender,Ln=Ge.imgCommonProps,Bi=Ge.toolbarRender,wr=Ge.onTransform,Hi=Ge.onChange,Or=(0,bt.Z)(Ge,de),pr=(0,Rt.useRef)(),Si=(0,Rt.useRef)({deltaX:0,deltaY:0,transformX:0,transformY:0}),vi=(0,Rt.useState)(!1),Xi=(0,Bt.Z)(vi,2),Zi=Xi[0],Jn=Xi[1],xe=(0,Rt.useContext)(et),Ri=xe&&ii>1,Ar=xe&&ii>=1,zi=Kt(pr,Li,ki,wr),ir=zi.transform,Oi=zi.resetTransform,Ci=zi.updateTransform,tr=zi.dispatchZoomChange,yr=(0,Rt.useState)(!0),_i=(0,Bt.Z)(yr,2),Mr=_i[0],xi=_i[1],di=ir.rotate,Ai=ir.scale,zn=ir.x,hr=ir.y,Tr=Nt()((0,Ot.Z)({},"".concat(fn,"-moving"),Zi));(0,Rt.useEffect)(function(){Mr||xi(!0)},[Mr]);var Qr=function(){Oi("close")},kr=function(){tr(Ne+ti,"zoomIn")},Xr=function(){tr(Ne/(Ne+ti),"zoomOut")},io=function(){Ci({rotate:di+90},"rotateRight")},Wo=function(){Ci({rotate:di-90},"rotateLeft")},vo=function(){Ci({flipX:!ir.flipX},"flipX")},Uo=function(){Ci({flipY:!ir.flipY},"flipY")},To=function(Ji){Ji==null||Ji.preventDefault(),Ji==null||Ji.stopPropagation(),ei>0&&(xi(!1),Oi("prev"),Hi==null||Hi(ei-1,ei))},Sn=function(Ji){Ji==null||Ji.preventDefault(),Ji==null||Ji.stopPropagation(),ei<ii-1&&(xi(!1),Oi("next"),Hi==null||Hi(ei+1,ei))},yo=function(){if(ln&&Zi){Jn(!1);var Ji=Si.current,ao=Ji.transformX,$i=Ji.transformY,cr=zn!==ao&&hr!==$i;if(!cr)return;var fr=pr.current.offsetWidth*Ai,hi=pr.current.offsetHeight*Ai,no=pr.current.getBoundingClientRect(),bo=no.left,os=no.top,Js=di%180!==0,Pa=Ut(Js?hi:fr,Js?fr:hi,bo,os);Pa&&Ci((0,xt.Z)({},Pa),"dragRebound")}},da=function(Ji){!on||Ji.button!==0||(Ji.preventDefault(),Ji.stopPropagation(),Si.current={deltaX:Ji.pageX-ir.x,deltaY:Ji.pageY-ir.y,transformX:ir.x,transformY:ir.y},Jn(!0))},_s=function(Ji){ln&&Zi&&Ci({x:Ji.pageX-Si.current.deltaX,y:Ji.pageY-Si.current.deltaY},"move")},mr=function(Ji){if(!(!ln||Ji.deltaY==0)){var ao=Math.abs(Ji.deltaY/100),$i=Math.min(ao,pe),cr=Ne+$i*ti;Ji.deltaY>0&&(cr=Ne/cr),tr(cr,"wheel",Ji.clientX,Ji.clientY)}},Wr=function(Ji){!ln||!Ri||(Ji.keyCode===mt.Z.LEFT?To():Ji.keyCode===mt.Z.RIGHT&&Sn())},so=function(Ji){ln&&(Ai!==1?Ci({x:0,y:0,scale:1},"doubleClick"):tr(Ne+ti,"doubleClick",Ji.clientX,Ji.clientY))};(0,Rt.useEffect)(function(){var qi,Ji,ao,$i;if(on){ao=(0,pt.Z)(window,"mouseup",yo,!1),$i=(0,pt.Z)(window,"mousemove",_s,!1);try{window.top!==window.self&&(qi=(0,pt.Z)(window.top,"mouseup",yo,!1),Ji=(0,pt.Z)(window.top,"mousemove",_s,!1))}catch(cr){(0,Ct.Kp)(!1,"[rc-image] ".concat(cr))}}return function(){var cr,fr,hi,no;(cr=ao)===null||cr===void 0||cr.remove(),(fr=$i)===null||fr===void 0||fr.remove(),(hi=qi)===null||hi===void 0||hi.remove(),(no=Ji)===null||no===void 0||no.remove()}},[ln,Zi,zn,hr,di,on]),(0,Rt.useEffect)(function(){var qi=(0,pt.Z)(window,"keydown",Wr,!1);return function(){qi.remove()}},[ln,Ri,ei]);var zr=Rt.createElement(Jt,(0,Wt.Z)({},Ln,{width:Ge.width,height:Ge.height,imgRef:pr,className:"".concat(fn,"-img"),alt:Ke,style:{transform:"translate3d(".concat(ir.x,"px, ").concat(ir.y,"px, 0) scale3d(").concat(ir.flipX?"-":"").concat(Ai,", ").concat(ir.flipY?"-":"").concat(Ai,", 1) rotate(").concat(di,"deg)"),transitionDuration:!Mr&&"0s"},fallback:cn,src:In,onWheel:mr,onMouseDown:da,onDoubleClick:so}));return Rt.createElement(Rt.Fragment,null,Rt.createElement(ct.Z,(0,Wt.Z)({transitionName:oi,maskTransitionName:Cn,closable:!1,keyboard:!0,prefixCls:fn,onClose:dn,visible:ln,wrapClassName:Tr,rootClassName:Mn,getContainer:En},Or,{afterClose:Qr}),Rt.createElement("div",{className:"".concat(fn,"-img-wrapper")},nr?nr(zr,(0,xt.Z)({transform:ir},xe?{current:ei}:{})):zr)),Rt.createElement(Se,{visible:ln,transform:ir,maskTransitionName:Cn,closeIcon:On,getContainer:En,prefixCls:fn,rootClassName:Mn,icons:yn,countRender:qe,showSwitch:Ri,showProgress:Ar,current:ei,count:ii,scale:Ai,minScale:Li,maxScale:ki,toolbarRender:Bi,onSwitchLeft:To,onSwitchRight:Sn,onZoomIn:kr,onZoomOut:Xr,onRotateRight:io,onRotateLeft:Wo,onFlipX:vo,onFlipY:Uo,onClose:dn}))},ae=ee,fe=Gt(26390);function se(Me){var Ge=Rt.useState({}),fn=(0,Bt.Z)(Ge,2),In=fn[0],Ke=fn[1],cn=Rt.useCallback(function(on,dn){return Ke(function(ln){return(0,xt.Z)((0,xt.Z)({},ln),{},(0,Ot.Z)({},on,dn))}),function(){Ke(function(ln){var xn=(0,xt.Z)({},ln);return delete xn[on],xn})}},[]),_e=Rt.useMemo(function(){return Me?Me.map(function(on){if(typeof on=="string")return{data:{src:on}};var dn={};return Object.keys(on).forEach(function(ln){["src"].concat((0,fe.Z)(vt)).includes(ln)&&(dn[ln]=on[ln])}),{data:dn}}):Object.keys(In).reduce(function(on,dn){var ln=In[dn],xn=ln.canPreview,yn=ln.data;return xn&&on.push({data:yn,id:dn}),on},[])},[Me,In]);return[_e,cn]}var De=["visible","onVisibleChange","getContainer","current","movable","minScale","maxScale","countRender","closeIcon","onChange","onTransform","toolbarRender","imageRender"],Oe=["src"],en=function(Ge){var fn,In=Ge.previewPrefixCls,Ke=In===void 0?"rc-image-preview":In,cn=Ge.children,_e=Ge.icons,on=_e===void 0?{}:_e,dn=Ge.items,ln=Ge.preview,xn=Ge.fallback,yn=(0,At.Z)(ln)==="object"?ln:{},Mn=yn.visible,On=yn.onVisibleChange,En=yn.getContainer,jn=yn.current,ei=yn.movable,pi=yn.minScale,ii=yn.maxScale,qe=yn.countRender,Xn=yn.closeIcon,ti=yn.onChange,Qn=yn.onTransform,Li=yn.toolbarRender,fi=yn.imageRender,ki=(0,bt.Z)(yn,De),gi=se(dn),oi=(0,Bt.Z)(gi,2),Fi=oi[0],Cn=oi[1],nr=(0,It.Z)(0,{value:jn}),Ln=(0,Bt.Z)(nr,2),Bi=Ln[0],wr=Ln[1],Hi=(0,Rt.useState)(!1),Or=(0,Bt.Z)(Hi,2),pr=Or[0],Si=Or[1],vi=((fn=Fi[Bi])===null||fn===void 0?void 0:fn.data)||{},Xi=vi.src,Zi=(0,bt.Z)(vi,Oe),Jn=(0,It.Z)(!!Mn,{value:Mn,onChange:function(di,Ai){On==null||On(di,Ai,Bi)}}),xe=(0,Bt.Z)(Jn,2),Ri=xe[0],Ar=xe[1],zi=(0,Rt.useState)(null),ir=(0,Bt.Z)(zi,2),Oi=ir[0],Ci=ir[1],tr=Rt.useCallback(function(xi,di,Ai){var zn=Fi.findIndex(function(hr){return hr.id===xi});Ar(!0),Ci({x:di,y:Ai}),wr(zn<0?0:zn),Si(!0)},[Fi]);Rt.useEffect(function(){Ri?pr||wr(0):Si(!1)},[Ri]);var yr=function(di,Ai){wr(di),ti==null||ti(di,Ai)},_i=function(){Ar(!1),Ci(null)},Mr=Rt.useMemo(function(){return{register:Cn,onPreview:tr}},[Cn,tr]);return Rt.createElement(et.Provider,{value:Mr},cn,Rt.createElement(ae,(0,Wt.Z)({"aria-hidden":!Ri,movable:ei,visible:Ri,prefixCls:Ke,closeIcon:Xn,onClose:_i,mousePosition:Oi,imgCommonProps:Zi,src:Xi,fallback:xn,icons:on,minScale:pi,maxScale:ii,getContainer:En,current:Bi,count:Fi.length,countRender:qe,onTransform:Qn,toolbarRender:Li,imageRender:fi,onChange:yr},ki)))},We=en,rn=["src","alt","onPreviewClose","prefixCls","previewPrefixCls","placeholder","fallback","width","height","style","preview","className","onClick","onError","wrapperClassName","wrapperStyle","rootClassName"],ke=["src","visible","onVisibleChange","getContainer","mask","maskClassName","movable","icons","scaleStep","minScale","maxScale","imageRender","toolbarRender"],Ie=function(Ge){var fn=Ge.src,In=Ge.alt,Ke=Ge.onPreviewClose,cn=Ge.prefixCls,_e=cn===void 0?"rc-image":cn,on=Ge.previewPrefixCls,dn=on===void 0?"".concat(_e,"-preview"):on,ln=Ge.placeholder,xn=Ge.fallback,yn=Ge.width,Mn=Ge.height,On=Ge.style,En=Ge.preview,jn=En===void 0?!0:En,ei=Ge.className,pi=Ge.onClick,ii=Ge.onError,qe=Ge.wrapperClassName,Xn=Ge.wrapperStyle,ti=Ge.rootClassName,Qn=(0,bt.Z)(Ge,rn),Li=ln&&ln!==!0,fi=(0,At.Z)(jn)==="object"?jn:{},ki=fi.src,gi=fi.visible,oi=gi===void 0?void 0:gi,Fi=fi.onVisibleChange,Cn=Fi===void 0?Ke:Fi,nr=fi.getContainer,Ln=nr===void 0?void 0:nr,Bi=fi.mask,wr=fi.maskClassName,Hi=fi.movable,Or=fi.icons,pr=fi.scaleStep,Si=fi.minScale,vi=fi.maxScale,Xi=fi.imageRender,Zi=fi.toolbarRender,Jn=(0,bt.Z)(fi,ke),xe=ki!=null?ki:fn,Ri=(0,It.Z)(!!oi,{value:oi,onChange:Cn}),Ar=(0,Bt.Z)(Ri,2),zi=Ar[0],ir=Ar[1],Oi=ut({src:fn,isCustomPlaceholder:Li,fallback:xn}),Ci=(0,Bt.Z)(Oi,3),tr=Ci[0],yr=Ci[1],_i=Ci[2],Mr=(0,Rt.useState)(null),xi=(0,Bt.Z)(Mr,2),di=xi[0],Ai=xi[1],zn=(0,Rt.useContext)(et),hr=!!jn,Tr=function(){ir(!1),Ai(null)},Qr=Nt()(_e,qe,ti,(0,Ot.Z)({},"".concat(_e,"-error"),_i==="error")),kr=(0,Rt.useMemo)(function(){var vo={};return vt.forEach(function(Uo){Ge[Uo]!==void 0&&(vo[Uo]=Ge[Uo])}),vo},vt.map(function(vo){return Ge[vo]})),Xr=(0,Rt.useMemo)(function(){return(0,xt.Z)((0,xt.Z)({},kr),{},{src:xe})},[xe,kr]),io=st(hr,Xr),Wo=function(Uo){var To=(0,Tt.os)(Uo.target),Sn=To.left,yo=To.top;zn?zn.onPreview(io,Sn,yo):(Ai({x:Sn,y:yo}),ir(!0)),pi==null||pi(Uo)};return Rt.createElement(Rt.Fragment,null,Rt.createElement("div",(0,Wt.Z)({},Qn,{className:Qr,onClick:hr?Wo:pi,style:(0,xt.Z)({width:yn,height:Mn},Xn)}),Rt.createElement("img",(0,Wt.Z)({},kr,{className:Nt()("".concat(_e,"-img"),(0,Ot.Z)({},"".concat(_e,"-img-placeholder"),ln===!0),ei),style:(0,xt.Z)({height:Mn},On),ref:tr},yr,{width:yn,height:Mn,onError:ii})),_i==="loading"&&Rt.createElement("div",{"aria-hidden":"true",className:"".concat(_e,"-placeholder")},ln),Bi&&hr&&Rt.createElement("div",{className:Nt()("".concat(_e,"-mask"),wr),style:{display:(On==null?void 0:On.display)==="none"?"none":void 0}},Bi)),!zn&&hr&&Rt.createElement(ae,(0,Wt.Z)({"aria-hidden":!zi,visible:zi,prefixCls:dn,onClose:Tr,mousePosition:di,src:xe,alt:In,fallback:xn,getContainer:Ln,icons:Or,movable:Hi,scaleStep:pr,minScale:Si,maxScale:vi,rootClassName:ti,imageRender:Xi,imgCommonProps:kr,toolbarRender:Zi},Jn)))};Ie.PreviewGroup=We,Ie.displayName="Image";var je=Ie,$e=je,me=Gt(62892),le=Gt(36355),Ee=Gt(31724),ce=Gt(72119),he=Gt(16537),_t=Gt(53878),Mt={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"},Et=Mt,Ht=Gt(88853),Pt=function(Ge,fn){return Rt.createElement(Ht.Z,(0,Wt.Z)({},Ge,{ref:fn,icon:Et}))},dt=Rt.forwardRef(Pt),gt=dt,zt={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"},re=zt,Zt=function(Ge,fn){return Rt.createElement(Ht.Z,(0,Wt.Z)({},Ge,{ref:fn,icon:re}))},ye=Rt.forwardRef(Zt),Ye=ye,sn={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"},Le=sn,Re=function(Ge,fn){return Rt.createElement(Ht.Z,(0,Wt.Z)({},Ge,{ref:fn,icon:Le}))},hn=Rt.forwardRef(Re),wn=hn,kn={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"},Rn=kn,Yn=function(Ge,fn){return Rt.createElement(Ht.Z,(0,Wt.Z)({},Ge,{ref:fn,icon:Rn}))},Kn=Rt.forwardRef(Yn),li=Kn,mi={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"},yi=mi,Pi=function(Ge,fn){return Rt.createElement(Ht.Z,(0,Wt.Z)({},Ge,{ref:fn,icon:yi}))},Mi=Rt.forwardRef(Pi),Gi=Mi,bi=Gt(64993),Ki=Gt(73819),ui=Gt(17313),te=Gt(29878),Yi=Gt(1950),Ti=Gt(83116),or=Gt(37613);const Sr=Me=>({position:Me||"absolute",inset:0}),Er=Me=>{const{iconCls:Ge,motionDurationSlow:fn,paddingXXS:In,marginXXS:Ke,prefixCls:cn,colorTextLightSolid:_e}=Me;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 ${fn}`,[`.${cn}-mask-info`]:Object.assign(Object.assign({},ui.vS),{padding:`0 ${In}px`,[Ge]:{marginInlineEnd:Ke,svg:{verticalAlign:"baseline"}}})}},vr=Me=>{const{previewCls:Ge,modalMaskBg:fn,paddingSM:In,marginXL:Ke,margin:cn,paddingLG:_e,previewOperationColorDisabled:on,previewOperationHoverColor:dn,motionDurationSlow:ln,iconCls:xn,colorTextLightSolid:yn}=Me,Mn=new bi.C(fn).setAlpha(.1),On=Mn.clone().setAlpha(.2);return{[`${Ge}-footer`]:{position:"fixed",bottom:Ke,left:{_skip_check_:!0,value:0},width:"100%",display:"flex",flexDirection:"column",alignItems:"center",color:Me.previewOperationColor},[`${Ge}-progress`]:{marginBottom:cn},[`${Ge}-close`]:{position:"fixed",top:Ke,right:{_skip_check_:!0,value:Ke},display:"flex",color:yn,backgroundColor:Mn.toRgbString(),borderRadius:"50%",padding:In,outline:0,border:0,cursor:"pointer",transition:`all ${ln}`,"&:hover":{backgroundColor:On.toRgbString()},[`& > ${xn}`]:{fontSize:Me.previewOperationSize}},[`${Ge}-operations`]:{display:"flex",alignItems:"center",padding:`0 ${_e}px`,backgroundColor:Mn.toRgbString(),borderRadius:100,"&-operation":{marginInlineStart:In,padding:In,cursor:"pointer",transition:`all ${ln}`,userSelect:"none",[`&:not(${Ge}-operations-operation-disabled):hover > ${xn}`]:{color:dn},"&-disabled":{color:on,cursor:"not-allowed"},"&:first-of-type":{marginInlineStart:0},[`& > ${xn}`]:{fontSize:Me.previewOperationSize}}}}},qn=Me=>{const{modalMaskBg:Ge,iconCls:fn,previewOperationColorDisabled:In,previewCls:Ke,zIndexPopup:cn,motionDurationSlow:_e}=Me,on=new bi.C(Ge).setAlpha(.1),dn=on.clone().setAlpha(.2);return{[`${Ke}-switch-left, ${Ke}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:cn+1,display:"flex",alignItems:"center",justifyContent:"center",width:Me.imagePreviewSwitchSize,height:Me.imagePreviewSwitchSize,marginTop:-Me.imagePreviewSwitchSize/2,color:Me.previewOperationColor,background:on.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${_e}`,userSelect:"none","&:hover":{background:dn.toRgbString()},"&-disabled":{"&, &:hover":{color:In,background:"transparent",cursor:"not-allowed",[`> ${fn}`]:{cursor:"not-allowed"}}},[`> ${fn}`]:{fontSize:Me.previewOperationSize}},[`${Ke}-switch-left`]:{insetInlineStart:Me.marginSM},[`${Ke}-switch-right`]:{insetInlineEnd:Me.marginSM}}},tn=Me=>{const{motionEaseOut:Ge,previewCls:fn,motionDurationSlow:In,componentCls:Ke}=Me;return[{[`${Ke}-preview-root`]:{[fn]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${fn}-body`]:Object.assign(Object.assign({},Sr()),{overflow:"hidden"}),[`${fn}-img`]:{maxWidth:"100%",maxHeight:"70%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${In} ${Ge} 0s`,userSelect:"none","&-wrapper":Object.assign(Object.assign({},Sr()),{transition:`transform ${In} ${Ge} 0s`,display:"flex",justifyContent:"center",alignItems:"center","& > *":{pointerEvents:"auto"},"&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${fn}-moving`]:{[`${fn}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${Ke}-preview-root`]:{[`${fn}-wrap`]:{zIndex:Me.zIndexPopup}}},{[`${Ke}-preview-operations-wrapper`]:{position:"fixed",zIndex:Me.zIndexPopup+1},"&":[vr(Me),qn(Me)]}]},nn=Me=>{const{componentCls:Ge}=Me;return{[Ge]:{position:"relative",display:"inline-block",[`${Ge}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${Ge}-img-placeholder`]:{backgroundColor:Me.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${Ge}-mask`]:Object.assign({},Er(Me)),[`${Ge}-mask:hover`]:{opacity:1},[`${Ge}-placeholder`]:Object.assign({},Sr())}}},Qe=Me=>{const{previewCls:Ge}=Me;return{[`${Ge}-root`]:(0,te._y)(Me,"zoom"),"&":(0,Yi.J$)(Me,!0)}};var Fe=(0,Ti.Z)("Image",Me=>{const Ge=`${Me.componentCls}-preview`,fn=(0,or.TS)(Me,{previewCls:Ge,modalMaskBg:new bi.C("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:Me.controlHeightLG});return[nn(fn),tn(fn),(0,Ki.QA)((0,or.TS)(fn,{componentCls:Ge})),Qe(fn)]},Me=>({zIndexPopup:Me.zIndexPopupBase+80,previewOperationColor:new bi.C(Me.colorTextLightSolid).setAlpha(.65).toRgbString(),previewOperationHoverColor:new bi.C(Me.colorTextLightSolid).setAlpha(.85).toRgbString(),previewOperationColorDisabled:new bi.C(Me.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:Me.fontSizeIcon*1.5})),vn=function(Me,Ge){var fn={};for(var In in Me)Object.prototype.hasOwnProperty.call(Me,In)&&Ge.indexOf(In)<0&&(fn[In]=Me[In]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,In=Object.getOwnPropertySymbols(Me);Ke<In.length;Ke++)Ge.indexOf(In[Ke])<0&&Object.prototype.propertyIsEnumerable.call(Me,In[Ke])&&(fn[In[Ke]]=Me[In[Ke]]);return fn};const bn={rotateLeft:Rt.createElement(gt,null),rotateRight:Rt.createElement(Ye,null),zoomIn:Rt.createElement(li,null),zoomOut:Rt.createElement(Gi,null),close:Rt.createElement(ce.Z,null),left:Rt.createElement(he.Z,null),right:Rt.createElement(_t.Z,null),flipX:Rt.createElement(wn,null),flipY:Rt.createElement(wn,{rotate:90})};var Ae=Me=>{var{previewPrefixCls:Ge,preview:fn}=Me,In=vn(Me,["previewPrefixCls","preview"]);const{getPrefixCls:Ke}=Rt.useContext(le.E_),cn=Ke("image",Ge),_e=`${cn}-preview`,on=Ke(),[dn,ln]=Fe(cn),xn=Rt.useMemo(()=>{var yn;if(fn===!1)return fn;const Mn=typeof fn=="object"?fn:{},On=Nt()(ln,(yn=Mn.rootClassName)!==null&&yn!==void 0?yn:"");return Object.assign(Object.assign({},Mn),{transitionName:(0,me.m)(on,"zoom",Mn.transitionName),maskTransitionName:(0,me.m)(on,"fade",Mn.maskTransitionName),rootClassName:On})},[fn]);return dn(Rt.createElement($e.PreviewGroup,Object.assign({preview:xn,previewPrefixCls:_e,icons:bn},In)))},gn=function(Me,Ge){var fn={};for(var In in Me)Object.prototype.hasOwnProperty.call(Me,In)&&Ge.indexOf(In)<0&&(fn[In]=Me[In]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,In=Object.getOwnPropertySymbols(Me);Ke<In.length;Ke++)Ge.indexOf(In[Ke])<0&&Object.prototype.propertyIsEnumerable.call(Me,In[Ke])&&(fn[In[Ke]]=Me[In[Ke]]);return fn};const Pn=Me=>{const{prefixCls:Ge,preview:fn,className:In,rootClassName:Ke,style:cn}=Me,_e=gn(Me,["prefixCls","preview","className","rootClassName","style"]),{getPrefixCls:on,locale:dn=Ee.Z,getPopupContainer:ln,image:xn}=Rt.useContext(le.E_),yn=on("image",Ge),Mn=on(),On=dn.Image||Ee.Z.Image,[En,jn]=Fe(yn),ei=Nt()(Ke,jn),pi=Nt()(In,jn,xn==null?void 0:xn.className),ii=Rt.useMemo(()=>{if(fn===!1)return fn;const Xn=typeof fn=="object"?fn:{},{getContainer:ti}=Xn,Qn=gn(Xn,["getContainer"]);return Object.assign(Object.assign({mask:Rt.createElement("div",{className:`${yn}-mask-info`},Rt.createElement(Vt.Z,null),On==null?void 0:On.preview),icons:bn},Qn),{getContainer:ti||ln,transitionName:(0,me.m)(Mn,"zoom",Xn.transitionName),maskTransitionName:(0,me.m)(Mn,"fade",Xn.maskTransitionName)})},[fn,On]),qe=Object.assign(Object.assign({},xn==null?void 0:xn.style),cn);return En(Rt.createElement($e,Object.assign({prefixCls:yn,preview:ii,rootClassName:ei,className:pi,style:qe},_e)))};Pn.PreviewGroup=Ae;var Un=Pn,mn=()=>{const[Me,Ge]=(0,Rt.useState)(""),[fn,In]=(0,Rt.useState)(0);let[Ke,cn]=(0,Rt.useState)(),[_e,on]=(0,Rt.useState)();const[dn,ln]=(0,Rt.useState)(!1),xn=(0,Rt.useRef)("");(0,Rt.useEffect)(()=>yt.Z.subscribe("preview-image",ti=>{Ge(ti),console.log(ii.current),document.body.style.overflow="hidden"}),[]),(0,Rt.useEffect)(()=>(document.addEventListener("keydown",yn),()=>{document.removeEventListener("keydown",yn)}),[]),(0,Rt.useEffect)(()=>{xn.current=Me},[Me]);function yn(Xn){Xn.keyCode==27&&xn.current&&Mn()}function Mn(){document.body.style.overflow="auto",cn(void 0),on(void 0),In(0),Ge("")}function On(){In(fn+90)}function En(){Ke=ii.current.width*1.1,_e=ii.current.height*1.1,on(_e),cn(Ke)}function jn(){Ke=ii.current.width/1.1,_e=ii.current.height/1.1,on(_e),cn(Ke)}const ei=(0,Rt.useRef)(),pi=(0,Rt.useRef)(),ii=(0,Rt.useRef)(),qe=Xn=>{(Xn.nativeEvent.target===ei.current||Xn.nativeEvent.target===pi.current)&&Mn()};return Rt.createElement(Rt.Fragment,null,Me?Rt.createElement("div",null,Rt.createElement("div",{className:"preview-wrp-group",ref:pi},Rt.createElement(Un,{className:"image-preview",src:Me,style:{display:"none"},preview:{visible:!0,src:Me,movable:!1,onVisibleChange:Xn=>{Ge("")}},alt:"\u9884\u89C8\u5927\u56FE"}))):null)}},36866:function(Nn,An,Gt){"use strict";Gt.d(An,{h:function(){return pt},Z:function(){return ct}});var Rt=Gt(59301),yt=Gt(57809),Vt=Gt(78241),Yt=Gt(3113),Nt=Gt(89780),Wt=Gt.n(Nt),xt=Gt(79906),Ot=Object.defineProperty,Bt=Object.defineProperties,At=Object.getOwnPropertyDescriptors,bt=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,vt=(mt,Ct,Dt)=>Ct in mt?Ot(mt,Ct,{enumerable:!0,configurable:!0,writable:!0,value:Dt}):mt[Ct]=Dt,et=(mt,Ct)=>{for(var Dt in Ct||(Ct={}))Tt.call(Ct,Dt)&&vt(mt,Dt,Ct[Dt]);if(bt)for(var Dt of bt(Ct))It.call(Ct,Dt)&&vt(mt,Dt,Ct[Dt]);return mt},tt=(mt,Ct)=>Bt(mt,At(Ct));const st=yt.default.Option,rt={labelCol:{span:4},wrapperCol:{span:20}},ut={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};var ct=({callback:mt,onCancel:Ct})=>{const[Dt,Ut]=(0,Rt.useState)("python");function Ft($t){Ut(ut[$t][1])}function Qt($t){mt($t)}return Rt.createElement(Vt.default,tt(et({},rt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Qt,style:{width:500}}),Rt.createElement(Vt.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},Rt.createElement(yt.default,{getPopupContainer:$t=>$t.parentNode,onChange:Ft},Object.keys(ut).map($t=>Rt.createElement(st,{key:$t,value:$t},ut[$t][0])))),Rt.createElement(Vt.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},Rt.createElement(pt,{mode:Dt})),Rt.createElement("div",{className:"flex-container flex-end"},Rt.createElement(Yt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Rt.createElement(Yt.ZP,{type:"ghost",onClick:Ct},"\u53D6\u6D88")))};function pt({value:mt,onChange:Ct,mode:Dt,options:Ut={}}){const Ft=(0,Rt.useRef)(),[Qt,$t]=(0,Rt.useState)();return(0,Rt.useEffect)(()=>{if(Qt){let Kt=function(ue){const oe=ue.getValue();Ct&&Ct(oe)};return Qt.on("change",Kt),()=>{Qt.off("change",Kt)}}},[Qt,Ct]),(0,Rt.useEffect)(()=>{Qt&&Qt.setOption("mode",Dt)},[Qt,Dt]),(0,Rt.useEffect)(()=>{Qt&&(mt!==Qt.getValue()||mt==="")&&setTimeout(()=>{Qt.setValue(mt||"")},300)},[Qt,mt]),(0,Rt.useEffect)(()=>{if(Ft.current&&!Qt){const Kt=Wt().fromTextArea(Ft.current,et({mode:Dt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ut));$t(Kt)}},[Ft.current,Qt]),Rt.createElement("div",{className:"my-codemirror-container"},Rt.createElement("textarea",{ref:Ft}))}},23469:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return qn}});var Rt=Gt(59301),yt=Gt(89780),Vt=Gt.n(yt),Yt=Gt(76374),Nt=Gt(79906),Wt=Gt(6313),xt=Gt(25717),Ot=Gt(99498),Bt=Gt(25419),At=Gt(67549),bt=Gt(25711),Tt=({value:tn="",className:nn,showTextOnly:Qe,showLines:Fe,style:vn={}})=>{const bn=(0,Rt.useMemo)(()=>"",[tn]);return Rt.createElement(Rt.Fragment,null,Rt.createElement("div",{dangerouslySetInnerHTML:{__html:bn}}))},It=Gt(59301),vt=Object.defineProperty,et=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,st=Object.getOwnPropertySymbols,rt=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,ct=(tn,nn,Qe)=>nn in tn?vt(tn,nn,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):tn[nn]=Qe,pt=(tn,nn)=>{for(var Qe in nn||(nn={}))rt.call(nn,Qe)&&ct(tn,Qe,nn[Qe]);if(st)for(var Qe of st(nn))ut.call(nn,Qe)&&ct(tn,Qe,nn[Qe]);return tn},mt=(tn,nn)=>et(tn,tt(nn));let Ct=[{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:tn,title:nn,icon:Qe,actionName:Fe,className:vn="",children:bn}){function Ze(){tn(Fe)}return It.createElement("a",{title:nn,className:vn,onClick:Ze},It.createElement("i",{className:`${Qe}`}),bn)}var Ut=({watch:tn,showNullButton:nn,showNullProgramButton:Qe,onActionCallback:Fe,fullScreen:vn,insertTemp:bn,hidetoolBar:Ze,extraUse:Ae})=>{const gn=[...Ct,{title:`${tn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${tn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return It.createElement("ul",{className:"markdown-toolbar-container"},!Ze&&gn.map((Pn,Un)=>It.createElement("li",{key:Un},Pn.actionName?It.createElement(Dt,mt(pt({},Pn),{onActionCallback:Fe})):It.createElement("span",{className:"v-line"}))),nn?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:Fe},It.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Qe?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:Fe},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:Fe},It.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,bn&&It.createElement("li",null,It.createElement(Dt,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${bn}`,onActionCallback:Fe},It.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Ae&&It.createElement("li",null,Ae),It.createElement("li",{className:"btn-full-screen"},It.createElement(Dt,{icon:`${vn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:vn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Fe})))},Ft=Gt(50474),Qt=Gt(78241),$t=Gt(92832),Kt=Gt(3113),ue=Object.defineProperty,oe=Object.defineProperties,we=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable,Ue=(tn,nn,Qe)=>nn in tn?ue(tn,nn,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):tn[nn]=Qe,de=(tn,nn)=>{for(var Qe in nn||(nn={}))Ne.call(nn,Qe)&&Ue(tn,Qe,nn[Qe]);if(Se)for(var Qe of Se(nn))pe.call(nn,Qe)&&Ue(tn,Qe,nn[Qe]);return tn},Jt=(tn,nn)=>oe(tn,we(nn));const ee={labelCol:{span:4},wrapperCol:{span:20}};var ae=({callback:tn,onCancel:nn})=>{function Qe(Fe){tn(Fe)}return Rt.createElement(Qt.default,Jt(de({},ee),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Qe,style:{width:500}}),Rt.createElement(Qt.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},Rt.createElement($t.default,null)),Rt.createElement(Qt.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},Rt.createElement($t.default,null)),Rt.createElement("div",{className:"flex-container flex-end"},Rt.createElement(Kt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Rt.createElement(Kt.ZP,{type:"ghost",onClick:nn},"\u53D6\u6D88")))},fe=Gt(36866),se=Gt(56701),De=Gt(43418),Oe=Gt(95237),en=Gt(65983),We=Gt(59301),rn=({callback:tn,onCancel:nn})=>{const Qe=document.createElement("canvas"),Fe=Qe.getContext("2d");Qe.width=1e3,Qe.height=800,Fe.fillStyle="#ffffff",Fe.fillRect(0,0,Qe.width,Qe.height);const vn=Qe.toDataURL("image/png");return We.createElement(De.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},We.createElement(Oe.Z,{style:{height:"100vh"}},We.createElement(en.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:vn,visible:!0,title:String(Date.now())},onOk:bn=>{tn({src:bn.url})},onClose:nn})))},ke=Gt(12378);function Ie(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Ie,go.CommandHandler),Ie.prototype.canAlignSelection=function(){var tn=this.diagram;return!(tn===null||tn.isReadOnly||tn.isModelReadOnly||tn.selection.count<2)},Ie.prototype.alignLeft=function(){var tn=this.diagram;tn.startTransaction("aligning left");var nn=1/0;tn.selection.each(function(Qe){Qe instanceof go.Link||(nn=Math.min(Qe.position.x,nn))}),tn.selection.each(function(Qe){Qe instanceof go.Link||Qe.move(new go.Point(nn,Qe.position.y))}),tn.commitTransaction("aligning left")},Ie.prototype.alignRight=function(){var tn=this.diagram;tn.startTransaction("aligning right");var nn=-1/0;tn.selection.each(function(Qe){if(!(Qe instanceof go.Link)){var Fe=Qe.actualBounds.x+Qe.actualBounds.width;nn=Math.max(Fe,nn)}}),tn.selection.each(function(Qe){Qe instanceof go.Link||Qe.move(new go.Point(nn-Qe.actualBounds.width,Qe.position.y))}),tn.commitTransaction("aligning right")},Ie.prototype.alignTop=function(){var tn=this.diagram;tn.startTransaction("alignTop");var nn=1/0;tn.selection.each(function(Qe){Qe instanceof go.Link||(nn=Math.min(Qe.position.y,nn))}),tn.selection.each(function(Qe){Qe instanceof go.Link||Qe.move(new go.Point(Qe.position.x,nn))}),tn.commitTransaction("alignTop")},Ie.prototype.alignBottom=function(){var tn=this.diagram;tn.startTransaction("aligning bottom");var nn=-1/0;tn.selection.each(function(Qe){if(!(Qe instanceof go.Link)){var Fe=Qe.actualBounds.y+Qe.actualBounds.height;nn=Math.max(Fe,nn)}}),tn.selection.each(function(Qe){Qe instanceof go.Link||Qe.move(new go.Point(Qe.actualBounds.x,nn-Qe.actualBounds.height))}),tn.commitTransaction("aligning bottom")},Ie.prototype.alignCenterX=function(){var tn=this.diagram,nn=tn.selection.first();if(nn){tn.startTransaction("aligning Center X");var Qe=nn.actualBounds.x+nn.actualBounds.width/2;tn.selection.each(function(Fe){Fe instanceof go.Link||Fe.move(new go.Point(Qe-Fe.actualBounds.width/2,Fe.actualBounds.y))}),tn.commitTransaction("aligning Center X")}},Ie.prototype.alignCenterY=function(){var tn=this.diagram,nn=tn.selection.first();if(nn){tn.startTransaction("aligning Center Y");var Qe=nn.actualBounds.y+nn.actualBounds.height/2;tn.selection.each(function(Fe){Fe instanceof go.Link||Fe.move(new go.Point(Fe.actualBounds.x,Qe-Fe.actualBounds.height/2))}),tn.commitTransaction("aligning Center Y")}},Ie.prototype.alignColumn=function(tn){var nn=this.diagram;nn.startTransaction("align Column"),tn===void 0&&(tn=0),tn=parseFloat(tn);var Qe=new Array;nn.selection.each(function(Ae){Ae instanceof go.Link||Qe.push(Ae)});for(var Fe=0;Fe<Qe.length-1;Fe++){var vn=Qe[Fe],bn=vn.actualBounds.y+vn.actualBounds.height+tn,Ze=Qe[Fe+1];Ze.move(new go.Point(vn.actualBounds.x,bn))}nn.commitTransaction("align Column")},Ie.prototype.alignRow=function(tn){tn===void 0&&(tn=0),tn=parseFloat(tn);var nn=this.diagram;nn.startTransaction("align Row");var Qe=new Array;nn.selection.each(function(Ae){Ae instanceof go.Link||Qe.push(Ae)});for(var Fe=0;Fe<Qe.length-1;Fe++){var vn=Qe[Fe],bn=vn.actualBounds.x+vn.actualBounds.width+tn,Ze=Qe[Fe+1];Ze.move(new go.Point(bn,vn.actualBounds.y))}nn.commitTransaction("align Row")},Ie.prototype.canRotate=function(tn){var nn=this.diagram;return!(nn===null||nn.isReadOnly||nn.isModelReadOnly||nn.selection.count<1)},Ie.prototype.rotate=function(tn){tn===void 0&&(tn=90);var nn=this.diagram;nn.startTransaction("rotate "+tn.toString());var nn=this.diagram;nn.selection.each(function(Qe){Qe instanceof go.Link||Qe instanceof go.Group||(Qe.angle+=tn)}),nn.commitTransaction("rotate "+tn.toString())},Ie.prototype.pullToFront=function(){var tn=this.diagram;tn.startTransaction("pullToFront");var nn=new go.Map;tn.selection.each(function(Qe){nn.set(Qe.layer,0)}),nn.iteratorKeys.each(function(Qe){var Fe=0;Qe.parts.each(function(vn){if(!vn.isSelected){var bn=vn.zOrder;isNaN(bn)?vn.zOrder=0:Fe=Math.max(Fe,bn)}}),nn.set(Qe,Fe)}),tn.selection.each(function(Qe){Ie._assignZOrder(Qe,nn.get(Qe.layer)+1)}),tn.commitTransaction("pullToFront")},Ie.prototype.pushToBack=function(){var tn=this.diagram;tn.startTransaction("pushToBack");var nn=new go.Map;tn.selection.each(function(Qe){nn.set(Qe.layer,0)}),nn.iteratorKeys.each(function(Qe){var Fe=0;Qe.parts.each(function(vn){if(!vn.isSelected){var bn=vn.zOrder;isNaN(bn)?vn.zOrder=0:Fe=Math.min(Fe,bn)}}),nn.set(Qe,Fe)}),tn.selection.each(function(Qe){Ie._assignZOrder(Qe,nn.get(Qe.layer)-1-Ie._findGroupDepth(Qe))}),tn.commitTransaction("pushToBack")},Ie._assignZOrder=function(tn,nn,Qe){Qe===void 0&&(Qe=tn),tn.layer===Qe.layer&&(tn.zOrder=nn),tn instanceof go.Group&&tn.memberParts.each(function(Fe){Ie._assignZOrder(Fe,nn+1,Qe)})},Ie._findGroupDepth=function(tn){if(tn instanceof go.Group){var nn=0;return tn.memberParts.each(function(Qe){nn=Math.max(nn,Ie._findGroupDepth(Qe))}),nn+1}else return 0},Ie.prototype.doKeyDown=function(){var tn=this.diagram;if(tn!==null){var nn=tn.lastInput;if(nn.key==="Up"||nn.key==="Down"||nn.key==="Left"||nn.key==="Right"){var Qe=this.arrowKeyBehavior;if(Qe==="none")return;if(Qe==="select"){this._arrowKeySelect();return}else if(Qe==="move"){this._arrowKeyMove();return}else if(Qe==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Ie.prototype._getAllParts=function(){var tn=new Array;return this.diagram.nodes.each(function(nn){tn.push(nn)}),this.diagram.parts.each(function(nn){tn.push(nn)}),tn},Ie.prototype._arrowKeyMove=function(){var tn=this.diagram,nn=tn.lastInput,Qe=0,Fe=0;if(nn.control||nn.meta)Qe=1,Fe=1;else if(tn.grid!==null){var vn=tn.grid.gridCellSize;Fe=vn.width,Qe=vn.height}tn.startTransaction("arrowKeyMove"),tn.selection.each(function(bn){nn.key==="Up"?bn.move(new go.Point(bn.actualBounds.x,bn.actualBounds.y-Qe)):nn.key==="Down"?bn.move(new go.Point(bn.actualBounds.x,bn.actualBounds.y+Qe)):nn.key==="Left"?bn.move(new go.Point(bn.actualBounds.x-Fe,bn.actualBounds.y)):nn.key==="Right"&&bn.move(new go.Point(bn.actualBounds.x+Fe,bn.actualBounds.y))}),tn.commitTransaction("arrowKeyMove")},Ie.prototype._arrowKeySelect=function(){var tn=this.diagram,nn=tn.lastInput,Qe=null;nn.key==="Up"?Qe=this._findNearestPartTowards(270):nn.key==="Down"?Qe=this._findNearestPartTowards(90):nn.key==="Left"?Qe=this._findNearestPartTowards(180):nn.key==="Right"&&(Qe=this._findNearestPartTowards(0)),Qe!==null&&(nn.shift?Qe.isSelected=!0:nn.control||nn.meta?Qe.isSelected=!Qe.isSelected:tn.select(Qe))},Ie.prototype._findNearestPartTowards=function(tn){var nn=this.diagram.selection.first();if(nn===null)return null;for(var Qe=nn.actualBounds.center,Fe=this._getAllParts(),vn=1/0,bn=nn,Ze=0;Ze<Fe.length;Ze++){var Ae=Fe[Ze];if(Ae!==nn&&Ae.canSelect()){var gn=Ae.actualBounds.center,Pn=Qe.directionPoint(gn),Un=this._angleCloseness(Pn,tn);if(Un<=45){var mn=Qe.distanceSquaredPoint(gn);mn*=1+Math.sin(Un*Math.PI/180),mn<vn&&(vn=mn,bn=Ae)}}}return bn},Ie.prototype._angleCloseness=function(tn,nn){return Math.min(Math.abs(nn-tn),Math.min(Math.abs(nn+360-tn),Math.abs(nn-360-tn)))},Ie.prototype._arrowKeyTree=function(){var tn=this.diagram,nn=tn.selection.first();if(nn instanceof go.Node){var Qe=tn.lastInput;if(Qe.key==="Right"){if(!nn.isTreeLeaf)if(!nn.isTreeExpanded)tn.commandHandler.canExpandTree(nn)&&tn.commandHandler.expandTree(nn);else{var Fe=this._sortTreeChildrenByY(nn).first();Fe!==null&&tn.select(Fe)}}else if(Qe.key==="Left")if(!nn.isTreeLeaf&&nn.isTreeExpanded)tn.commandHandler.canCollapseTree(nn)&&tn.commandHandler.collapseTree(nn);else{var vn=nn.findTreeParentNode();vn!==null&&tn.select(vn)}else if(Qe.key==="Up"){var vn=nn.findTreeParentNode();if(vn!==null){var bn=this._sortTreeChildrenByY(vn),Ze=bn.indexOf(nn);if(Ze>0){for(var Ae=bn.elt(Ze-1);Ae!==null&&Ae.isTreeExpanded&&!Ae.isTreeLeaf;){var gn=this._sortTreeChildrenByY(Ae);Ae=gn.last()}Ae!==null&&tn.select(Ae)}else tn.select(vn)}}else if(Qe.key==="Down")if(nn.isTreeExpanded&&!nn.isTreeLeaf){var Fe=this._sortTreeChildrenByY(nn).first();Fe!==null&&tn.select(Fe)}else for(;nn!==null;){var vn=nn.findTreeParentNode();if(vn===null)break;var bn=this._sortTreeChildrenByY(vn),Ze=bn.indexOf(nn);if(Ze<bn.length-1){tn.select(bn.elt(Ze+1));break}else nn=vn}var Pn=tn.selection.first();Pn!==null&&tn.scrollToRect(Pn.actualBounds)}},Ie.prototype._sortTreeChildrenByY=function(tn){var nn=new go.List().addAll(tn.findTreeChildrenNodes());return nn.sort(function(Qe,Fe){var vn=Qe.location,bn=Fe.location;return vn.y<bn.y?-1:vn.y>bn.y?1:vn.x<bn.x?-1:vn.x>bn.x?1:0}),nn},Ie.prototype.copyToClipboard=function(tn){go.CommandHandler.prototype.copyToClipboard.call(this,tn),this._lastPasteOffset.set(this.pasteOffset)},Ie.prototype.pasteFromClipboard=function(){var tn=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(tn,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),tn},Object.defineProperty(Ie.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(tn){if(tn!=="move"&&tn!=="select"&&tn!=="scroll"&&tn!=="tree"&&tn!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+tn);this._arrowKeyBehavior=tn}}),Object.defineProperty(Ie.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(tn){if(!(tn instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+tn);this._pasteOffset.set(tn)}});var je=Ie,$e=Gt(37404),me=Gt(43604),le=Gt(70635),Ee={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},ce=Gt(59301),he=(tn,nn,Qe)=>new Promise((Fe,vn)=>{var bn=gn=>{try{Ae(Qe.next(gn))}catch(Pn){vn(Pn)}},Ze=gn=>{try{Ae(Qe.throw(gn))}catch(Pn){vn(Pn)}},Ae=gn=>gn.done?Fe(gn.value):Promise.resolve(gn.value).then(bn,Ze);Ae((Qe=Qe.apply(tn,nn)).next())});function _t({onCancel:tn,callback:nn}){let Qe=(0,Rt.useRef)(),Fe=(0,Rt.useRef)(),vn=(0,Rt.useRef)(),bn=(0,Rt.useRef)(!1);const Ze=(0,Rt.useRef)(!1),[Ae,gn]=(0,Rt.useState)(0);function Pn(){const mn=ke.bx.make,Me={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"};Qe.current=new ke.S0(Fe.current,{padding:20,grid:mn(ke.s_,"Grid",mn(ke.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),mn(ke.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:qe=>{var Xn=qe.diagram.commandHandler.addTopLevelParts(qe.diagram.selection,!0);Xn||qe.diagram.currentTool.doCancel()},commandHandler:mn(je),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:qe=>{var Xn=qe.subject;Xn.location=Xn.location.copy().snapToGridPoint(qe.diagram.grid.gridOrigin,qe.diagram.grid.gridCellSize),setTimeout(()=>{qe.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:qe=>{var Xn=qe.subject;setTimeout(()=>{qe.diagram.commandHandler.editTextBlock()})},LinkRelinked:qe=>{var Xn=qe.parameter.part;Xn.invalidateConnectedLinks();var ti=qe.subject;qe.diagram.toolManager.linkingTool.isForwards?ti.toNode.invalidateConnectedLinks():ti.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Qe.current.nodeTemplate=mn(ke.NB,"Auto",{locationSpot:ke.z6.Center,locationObjectName:"SHAPE",desiredSize:new ke.$u(120,60),minSize:new ke.$u(40,40),resizable:!0,resizeCellSize:new ke.$u(10,10),rotatable:!0},new ke.KX("location","loc",ke.E9.parse).makeTwoWay(ke.E9.stringify),new ke.KX("desiredSize","size",ke.$u.parse).makeTwoWay(ke.$u.stringify),mn(ke.bn,{name:"SHAPE",fill:Me.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ke.z6.AllSides,toSpot:ke.z6.AllSides},new ke.KX("figure"),new ke.KX("fill"),new ke.KX("stroke","borderColor"),new ke.KX("strokeWidth","thickness"),new ke.KX("strokeDashArray","dash")),mn(ke.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),mn(ke.al,{margin:1,textAlign:"center",overflow:ke.al.OverflowEllipsis,editable:!0},new ke.KX("text").makeTwoWay(),new ke.KX("stroke","color"))),Qe.current.nodeTemplate.toolTip=mn("ToolTip",mn(ke.s_,"Vertical",{maxSize:new ke.$u(200,NaN)},mn(ke.al,{font:"bold 10pt sans-serif",textAlign:"center"},new ke.KX("text")),mn(ke.al,{font:"10pt sans-serif",textAlign:"center"},new ke.KX("text","details"))));function Ge(qe,Xn){var ti=(Qn,Li)=>{Qn.handled=!0,Qn.diagram.model.commit(fi=>{var ki=Li.part.adornedPart,gi=new ke.E9().setRectSpot(ki.actualBounds,qe);gi.subtract(ki.location),gi.scale(2,2),gi.x+=Math.sign(gi.x)*130,gi.y+=Math.sign(gi.y)*130,gi.add(ki.location),gi.snapToGridPoint(Qn.diagram.grid.gridOrigin,Qn.diagram.grid.gridCellSize);var oi=fi.copyNodeData(ki.data);fi.setGroupKeyForNodeData(oi,fi.getGroupKeyForNodeData(ki.data)),fi.addNodeData(oi);var Fi={from:ki.key,to:fi.getKeyForNodeData(oi)};fi.addLinkData(Fi);var Cn=Qn.diagram.findNodeForData(oi);Cn.location=gi,Qn.diagram.select(Cn),setTimeout(()=>{Qn.diagram.commandHandler.editTextBlock()},20)})};return mn(ke.bn,{figure:Xn,alignment:qe,alignmentFocus:qe.opposite(),width:qe.equals(ke.z6.Top)||qe.equals(ke.z6.Bottom)?25:18,height:qe.equals(ke.z6.Top)||qe.equals(ke.z6.Bottom)?18:25,fill:"orange",stroke:Me.white,strokeWidth:4,mouseEnter:(Qn,Li)=>Li.fill="dodgerblue",mouseLeave:(Qn,Li)=>Li.fill="orange",isActionable:!0,click:ti,contextClick:ti})}function fn(qe){return mn(ke.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,ti)=>ti.fill="dodgerblue",mouseLeave:(Xn,ti)=>ti.fill="orange",click:(Xn,ti)=>{Xn.diagram.commandHandler.showContextMenu(ti.part.adornedPart)}},qe||{})}Qe.current.nodeTemplate.selectionAdornmentTemplate=mn(ke.uz,"Spot",mn(ke.Vm,{padding:10}),Ge(ke.z6.Top,"TriangleUp"),Ge(ke.z6.Left,"TriangleLeft"),Ge(ke.z6.Right,"TriangleRight"),Ge(ke.z6.Bottom,"TriangleDown"),fn({alignment:new ke.z6(.75,0)}));function In(qe,Xn){return(ti,Qn)=>{ti.handled=!0,ti.diagram.model.commit(Li=>{Li.set(Qn.part.adornedPart.data,qe,Xn)})}}function Ke(qe,Xn){return Xn||(Xn="color"),mn(ke.bn,{width:16,height:16,stroke:"lightgray",fill:qe,margin:1,background:"transparent",mouseEnter:(ti,Qn)=>Qn.stroke="dodgerblue",mouseLeave:(ti,Qn)=>Qn.stroke="lightgray",click:In(Xn,qe),contextClick:In(Xn,qe)})}function cn(){return[mn("ContextMenuButton",mn(ke.s_,"Horizontal",Ke(Me.white,"fill"),Ke(Me.beige,"fill"),Ke(Me.extralightblue,"fill"),Ke(Me.extralightred,"fill"))),mn("ContextMenuButton",mn(ke.s_,"Horizontal",Ke(Me.lightgray,"fill"),Ke(Me.lightgreen,"fill"),Ke(Me.lightblue,"fill"),Ke(Me.lightred,"fill")))]}function _e(){return[mn("ContextMenuButton",mn(ke.s_,"Horizontal",Ke(Me.black),Ke(Me.green),Ke(Me.blue),Ke(Me.red))),mn("ContextMenuButton",mn(ke.s_,"Horizontal",Ke(Me.white),Ke(Me.magenta),Ke(Me.purple),Ke(Me.orange)))]}function on(qe,Xn){return Xn||(Xn="thickness"),mn(ke.bn,"LineH",{width:16,height:16,strokeWidth:qe,margin:1,background:"transparent",mouseEnter:(ti,Qn)=>Qn.background="dodgerblue",mouseLeave:(ti,Qn)=>Qn.background="transparent",click:In(Xn,qe),contextClick:In(Xn,qe)})}function dn(qe,Xn){return Xn||(Xn="dash"),mn(ke.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:qe,margin:1,background:"transparent",mouseEnter:(ti,Qn)=>Qn.background="dodgerblue",mouseLeave:(ti,Qn)=>Qn.background="transparent",click:In(Xn,qe),contextClick:In(Xn,qe)})}function ln(){return[mn("ContextMenuButton",mn(ke.s_,"Horizontal",on(1),on(2),on(3),on(4))),mn("ContextMenuButton",mn(ke.s_,"Horizontal",dn(null),dn([2,4]),dn([4,4])))]}function xn(qe,Xn){return Xn||(Xn="figure"),mn(ke.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:qe,margin:1,background:"transparent",mouseEnter:(ti,Qn)=>Qn.fill="dodgerblue",mouseLeave:(ti,Qn)=>Qn.fill="lightgray",click:In(Xn,qe),contextClick:In(Xn,qe)})}Qe.current.nodeTemplate.contextMenu=mn("ContextMenu",mn("ContextMenuButton",mn(ke.s_,"Horizontal",xn("Rectangle"),xn("RoundedRectangle"),xn("Ellipse"),xn("Diamond"))),mn("ContextMenuButton",mn(ke.s_,"Horizontal",xn("Parallelogram2"),xn("ManualOperation"),xn("Procedure"),xn("Cylinder1"))),mn("ContextMenuButton",mn(ke.s_,"Horizontal",xn("Terminator"),xn("CreateRequest"),xn("Document"),xn("TriangleDown"))),cn(),_e(),ln()),Qe.current.groupTemplate=mn(ke.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:ke.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(qe,Xn)=>{var ti=Xn.addMembers(Xn.diagram.selection,!0);ti||Xn.diagram.currentTool.doCancel()},avoidable:!1},new ke.KX("location","loc",ke.E9.parse).makeTwoWay(ke.E9.stringify),mn(ke.s_,"Auto",{name:"BODY"},mn(ke.bn,{parameter1:10,fill:Me.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:ke.z6.AllSides,toSpot:ke.z6.AllSides},new ke.KX("fill"),new ke.KX("stroke","color"),new ke.KX("strokeWidth","thickness"),new ke.KX("strokeDashArray","dash")),mn(ke.Vm,{background:"transparent",margin:20})),mn(ke.al,{alignment:ke.z6.Top,alignmentFocus:ke.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new ke.KX("text"),new ke.KX("stroke","color"))),Qe.current.groupTemplate.selectionAdornmentTemplate=mn(ke.uz,"Spot",mn(ke.s_,"Auto",mn(ke.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),mn(ke.Vm,{margin:1.5})),fn({alignment:ke.z6.TopRight,alignmentFocus:ke.z6.BottomRight})),Qe.current.groupTemplate.contextMenu=mn("ContextMenu",cn(),_e(),ln()),Qe.current.linkTemplate=mn(ke.rU,{layerName:"Foreground",routing:ke.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new ke.KX("fromSpot","fromSpot",ke.z6.parse),new ke.KX("toSpot","toSpot",ke.z6.parse),new ke.KX("fromShortLength","dir",qe=>qe>=1?10:0),new ke.KX("toShortLength","dir",qe=>qe>=1?10:0),new ke.KX("points").makeTwoWay(),mn(ke.bn,{strokeWidth:2},new ke.KX("stroke","color"),new ke.KX("strokeWidth","thickness"),new ke.KX("strokeDashArray","dash")),mn(ke.bn,{segmentIndex:0,segmentOffset:new ke.E9(15,0),segmentOrientation:ke.rU.OrientAlong,alignmentFocus:ke.z6.Right,figure:"circle",width:10,strokeWidth:0},new ke.KX("fill","color"),new ke.KX("visible","dir",qe=>qe===1)),mn(ke.bn,{segmentIndex:-1,segmentOffset:new ke.E9(-10,6),segmentOrientation:ke.rU.OrientPlus90,alignmentFocus:ke.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ke.KX("fill","color"),new ke.KX("visible","dir",qe=>qe>=1),new ke.KX("width","thickness",qe=>7+3*qe),new ke.KX("height","thickness",qe=>7+3*qe),new ke.KX("segmentOffset","thickness",qe=>new ke.E9(-15,4+1.5*qe))),mn(ke.bn,{segmentIndex:0,segmentOffset:new ke.E9(15,-6),segmentOrientation:ke.rU.OrientMinus90,alignmentFocus:ke.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new ke.KX("fill","color"),new ke.KX("visible","dir",qe=>qe===2),new ke.KX("width","thickness",qe=>7+3*qe),new ke.KX("height","thickness",qe=>7+3*qe),new ke.KX("segmentOffset","thickness",qe=>new ke.E9(-15,4+1.5*qe))),mn(ke.al,{alignmentFocus:new ke.z6(0,1,-4,0),editable:!0},new ke.KX("text").makeTwoWay(),new ke.KX("stroke","color"))),Qe.current.linkTemplate.selectionAdornmentTemplate=mn(ke.uz,mn(ke.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:yn(2)},new ke.KX("pathPattern","thickness",yn)),fn({alignmentFocus:new ke.z6(0,0,-6,-4)}));function yn(qe){return mn(ke.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(qe+4).toString()+" H3"})}function Mn(qe){var Xn="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return qe===0?Xn="M0 0 M16 16 M0 8 L16 8":qe===2&&(Xn="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),mn(ke.bn,{geometryString:Xn,margin:2,background:"transparent",mouseEnter:(ti,Qn)=>Qn.background="dodgerblue",mouseLeave:(ti,Qn)=>Qn.background="transparent",click:In("dir",qe),contextClick:In("dir",qe)})}function On(qe){var Xn=(ti,Qn)=>{ti.handled=!0,ti.diagram.model.commit(Li=>{var fi=Qn.part.adornedPart;Li.set(fi.data,qe?"toSpot":"fromSpot",ke.z6.stringify(ke.z6.AllSides)),(qe?fi.toNode:fi.fromNode).invalidateConnectedLinks()})};return mn(ke.bn,{width:12,height:12,fill:"transparent",mouseEnter:(ti,Qn)=>Qn.background="dodgerblue",mouseLeave:(ti,Qn)=>Qn.background="transparent",click:Xn,contextClick:Xn})}function En(qe,Xn){var ti=0,Qn=ke.z6.RightSide;qe.equals(ke.z6.Top)?(ti=270,Qn=ke.z6.TopSide):qe.equals(ke.z6.Left)?(ti=180,Qn=ke.z6.LeftSide):qe.equals(ke.z6.Bottom)&&(ti=90,Qn=ke.z6.BottomSide),Xn||(ti-=180);var Li=(fi,ki)=>{fi.handled=!0,fi.diagram.model.commit(gi=>{var oi=ki.part.adornedPart;gi.set(oi.data,Xn?"toSpot":"fromSpot",ke.z6.stringify(Qn)),(Xn?oi.toNode:oi.fromNode).invalidateConnectedLinks()})};return mn(ke.bn,{alignment:qe,alignmentFocus:qe.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:ti,background:"transparent",mouseEnter:(fi,ki)=>ki.background="dodgerblue",mouseLeave:(fi,ki)=>ki.background="transparent",click:Li,contextClick:Li})}Qe.current.linkTemplate.contextMenu=mn("ContextMenu",_e(),ln(),mn("ContextMenuButton",mn(ke.s_,"Horizontal",Mn(0),Mn(1),Mn(2))),mn("ContextMenuButton",mn(ke.s_,"Horizontal",mn(ke.s_,"Spot",On(!1),En(ke.z6.Top,!1),En(ke.z6.Left,!1),En(ke.z6.Right,!1),En(ke.z6.Bottom,!1)),mn(ke.s_,"Spot",{margin:new ke.Zt(0,0,0,2)},On(!0),En(ke.z6.Top,!0),En(ke.z6.Left,!0),En(ke.z6.Right,!0),En(ke.z6.Bottom,!0)))));const jn=`{ "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 ei=["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 pi(qe){return console.log("shapeName:",qe),ei.indexOf(qe)>=0}var ii=new ke.YI(vn.current,{maxSelectionCount:1,linkTemplate:mn(ke.rU,{locationSpot:ke.z6.Center,selectionAdornmentTemplate:mn(ke.uz,"Link",{locationSpot:ke.z6.Center},mn(ke.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),mn(ke.bn,{toArrow:"Standard",stroke:null}))},{routing:ke.rU.AvoidsNodes,curve:ke.rU.JumpOver,corner:5,toShortLength:4},new ke.KX("points"),mn(ke.bn,{isPanelMain:!0,strokeWidth:2}),mn(ke.bn,{toArrow:"Standard",stroke:null})),model:new ke.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...ke.bn.getFigureGenerators().toArray().map(qe=>({text:"\u672A\u547D\u540D",size:"100 100",figure:qe.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Qe.current.addDiagramListener("TextEdited",function(qe){var Xn;const ti=qe.subject.part;var Qn=(Xn=document.activeElement)==null?void 0:Xn.value;typeof Qn=="string"&&Qn.trim()===""&&Qe.current.model.commit(function(Li){Li.set(ti.data,"text","\u672A\u547D\u540D"),Qe.current.commandHandler.stopCommand()},"increment")}),ii.nodeTemplate=mn(ke.NB,"Auto",{locationSpot:ke.z6.Center},new ke.KX("location","location",ke.E9.parse).makeTwoWay(ke.E9.stringify),mn(ke.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 ke.KX("stroke").makeTwoWay(),new ke.KX("fill").makeTwoWay(),new ke.KX("figure")),mn(ke.al,{margin:new ke.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new ke.$u(16,16),maxSize:new ke.$u(10,NaN),textAlign:"center",editable:!0},new ke.KX("key").makeTwoWay())),setTimeout(()=>{Qe.current.grid=mn(ke.s_,"Grid",mn(ke.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),mn(ke.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Qe.current.grid.visible=!0,Qe.current.grid.gridCellStroke="darkgray",Qe.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Qe.current,Qe.current}const Un=()=>he(this,null,function*(){var mn=Qe.current.makeImage();const Me=yield(0,le.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:mn.src}});nn({src:Me.url})});return(0,Rt.useEffect)(()=>(setTimeout(()=>{Pn()},500),gn(Ae+1),()=>{Qe.current=null}),[]),ce.createElement("div",{ref:Ze,className:bn.current?`${Ee.maxH60} body-overflow-initial`:"body-overflow-initial"},ce.createElement(De.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!Ae,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:ce.createElement(Oe.Z,null,ce.createElement(me.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ce.createElement(me.Z,{onClick:()=>{var mn,Me,Ge=Qe.current.selection.first();if(bn.current=!bn.current,document.activeElement&&Ge){let fn=(Me=(mn=document.activeElement)==null?void 0:mn.value)==null?void 0:Me.trim();typeof fn=="string"&&Qe.current.model.commit(function(In){In.set(Ge.data,"text",fn||"\u672A\u547D\u540D"),Qe.current.commandHandler.stopCommand()},"increment")}gn(Ae+1)}},ce.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:tn},ce.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative"},className:Ee.flowChartWrp},ce.createElement("div",{style:{display:"flex",height:"100%"}},ce.createElement("div",{style:{width:"300px",height:"100%"}},ce.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),ce.createElement("div",{style:{height:"calc(100% - 50px)"},className:Ee.myPaletteDiv,ref:vn})),ce.createElement("div",{style:{flex:1,position:"relative"}},ce.createElement("div",{ref:Fe,style:{height:"80vh"}}))),ce.createElement("div",{className:"tr"},ce.createElement(Kt.ZP,{size:"large",onClick:Un,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Mt=_t,Et=Gt(5112),Ht=Gt(88897);const Pt=Et.ZP.Group,dt={margin:"0 8px"};var gt=({callback:tn,onCancel:nn})=>{function Qe(Fe){tn(Fe)}return Rt.createElement(Qt.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Qe},Rt.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},Rt.createElement("span",{style:dt},"\u5355\u5143\u683C\u6570\uFF1A"),Rt.createElement("span",{style:dt},"\u884C\u6570"),Rt.createElement(Qt.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},Rt.createElement(Ht.Z,null)),Rt.createElement("span",{style:dt},"\u5217\u6570"),Rt.createElement(Qt.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},Rt.createElement(Ht.Z,null))),Rt.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},Rt.createElement("span",{style:dt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),Rt.createElement(Qt.default.Item,{name:"align"},Rt.createElement(Pt,null,Rt.createElement(Et.ZP,{value:"default"},Rt.createElement("i",{className:"fa fa-align-justify"})),Rt.createElement(Et.ZP,{value:"left"},Rt.createElement("i",{className:"fa fa-align-left"})),Rt.createElement(Et.ZP,{value:"center"},Rt.createElement("i",{className:"fa fa-align-center"})),Rt.createElement(Et.ZP,{value:"right"},Rt.createElement("i",{className:"fa fa-align-right"}))))),Rt.createElement("div",{className:"flex-container flex-end"},Rt.createElement(Kt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Rt.createElement(Kt.ZP,{type:"ghost",onClick:nn},"\u53D6\u6D88")))},zt=Gt(78673),re=Gt(98598),Zt=Gt.n(re),Ye=(0,Rt.forwardRef)(({use3d:tn,width:nn,height:Qe,callback:Fe,showSaveButton:vn},bn)=>{const Ze=(0,Rt.useRef)(),Ae=(0,Rt.useRef)(),[gn,Pn]=(0,Rt.useState)(!1),Un=(0,Rt.useRef)({id:Ze,appName:"graphing",width:nn||1e3,height:Qe||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,Rt.useEffect)(()=>{Ae.current=new(Zt())(Un.current,!0),window.onload=function(){Ae.current.inject("applet_container")}},[]);const mn=()=>{var Me=window.ggbApplet.getPNGBase64(1,!0,72);return Fe&&Fe(Me),Me};return(0,Rt.useEffect)(()=>{Un.current.appName=gn?"3D":"graphing",Ae.current.inject("applet_container")},[gn]),(0,Rt.useEffect)(()=>{Pn(tn)},[tn]),(0,Rt.useImperativeHandle)(bn,()=>({getImgData:mn})),Rt.createElement(Rt.Fragment,null,Rt.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Ze}),Rt.createElement(Oe.Z,{align:"middle"},Rt.createElement(me.Z,{flex:1},Rt.createElement(zt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:gn,onChange:Me=>Pn(Me)})),Rt.createElement(me.Z,null,Rt.createElement(Kt.ZP,{size:"large",onClick:mn,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),sn=Gt(75890),Le=Gt(8591);const Re="link",hn="upload-image",wn="add-flowchart",kn="draw-image",Rn="add-flowchart",Yn="code-block",Kn="add-table",li="------------",mi={default:li,left:`:${li}`,center:`:${li}:`,right:`${li}:`};var yi=Gt(91300);function Pi(){}let Mi=0;const Gi=1e4,bi="\u2581",Ki="@\u2581\u2581@",ui="@\u2581@",te=`
|
|
|
**\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`,Yi=["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 Ti(tn){return/^\d+$/.test(tn)?`${tn}px`:tn}const Sr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Er={[Sr+"-B"]:"bold",[Sr+"-I"]:"italic"},vr={[Re]:"\u6DFB\u52A0\u94FE\u63A5",[Yn]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[hn]:"\u6DFB\u52A0\u56FE\u7247",[kn]:"\u6DFB\u52A0\u753B\u56FE",[wn]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Kn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var qn=({defaultValue:tn="",onChange:nn,width:Qe="100%",height:Fe=400,miniToolbar:vn=!1,isFocus:bn=!1,watch:Ze,insertTemp:Ae,mode:gn="markdown",id:Pn="markdown-editor-id",showResizeBar:Un=!1,noStorage:mn=!1,showNullButton:Me=!1,showNullProgramButton:Ge=!1,hidetoolBar:fn=!1,fullScreen:In=!1,onBlur:Ke,onCMBeforeChange:cn,onFullScreen:_e,className:on="",disablePaste:dn=!1,disabled:ln=!1,disabledFill:xn=!1,placeholder:yn="",values:Mn="",extraUse:On})=>{const[En,jn]=(0,Rt.useState)(null),[ei,pi]=(0,Rt.useState)(tn),[ii,qe]=(0,Rt.useState)(Ze),[Xn,ti]=(0,Rt.useState)(In),[Qn,Li]=(0,Rt.useState)(""),[fi,ki]=(0,Rt.useState)(0),[gi,oi]=(0,Rt.useState)(Fe),[Fi,Cn]=(0,Rt.useState)(!1),[nr,Ln]=(0,Rt.useState)(0),[Bi,wr]=(0,Rt.useState)(0),Hi=(0,Rt.useRef)(),Or=(0,Rt.useRef)(),pr=(0,Rt.useRef)(),Si=(0,Rt.useRef)();(0,Rt.useEffect)(()=>{const xi=window.scrollY||window.pageYOffset;pi(Mn),En==null||En.setValue(Mn),window.scrollTo(0,xi)},[Mn]),(0,Rt.useEffect)(()=>{_e==null||_e(Xn)},[Xn]),(0,Rt.useEffect)(()=>{if(Hi.current){let xi=function(Ai,zn){var hr;if(dn){zn.preventDefault();return}const Tr=zn.clipboardData;if(Tr){const Qr=Tr.types.toString(),kr=Tr.items;if(Qr==="Files"||Tr.types.indexOf("Files")>-1){if(zn.preventDefault(),gn=="stex")return;try{let Xr=kr[1];((hr=kr[0])==null?void 0:hr.kind)==="file"&&(Xr=kr[0]);const io=Xr.getAsFile(),Wo=io.name.split(".").pop();(0,se.I)(io,vo=>{var Uo,To,Sn;vo.id?((Uo=io==null?void 0:io.type)==null?void 0:Uo.indexOf("image"))>-1?di.replaceSelection(``):((To=io==null?void 0:io.type)==null?void 0:To.indexOf("video"))>-1?di.replaceSelection(`<video width="100%" controls src="/api/attachments/${vo.id}"></video>`):((Sn=io==null?void 0:io.type)==null?void 0:Sn.indexOf("pdf"))>-1?di.replaceSelection(`<a href="/api/attachments/${vo.id}?type=${io.type}&disposition=inline" target="_blank">${io.name}</a>`):Yi.includes(Wo)?di.replaceSelection(`<a href="/api/attachments/${vo.id}?type=office&disposition=inline" target="_blank">${io.name}</a>`):di.replaceSelection(`[${io.name}](/api/attachments/${vo.id}?type=${vo.content_type})`):(vo==null?void 0:vo.status)===401&&(document.location.href="/user/login")})}catch(Xr){Le.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const di=Vt().fromTextArea(Hi.current,{mode:gn,lineNumbers:!vn,lineWrapping:!0,value:tn,autoCloseTags:!0,autoCloseBrackets:!0});return di.on("keyup",function(Ai,zn){zn.keyCode===8&&(Ai.getValue()==""?di.setOption("placeholder",yn):di.setOption("placeholder",null))}),di.on("keydown",function(Ai,zn){if(zn.keyCode===8){var hr=Xi(Ai);hr&&zn.preventDefault()}}),bn&&di.focus(),di.on("paste",xi),ln&&di.on("beforeChange",function(Ai,zn){(zn.origin==="paste"||zn.origin==="+input")&&zn.cancel()}),jn(di),()=>{di.off("paste",xi)}}},[]);const vi=(0,Rt.useCallback)(()=>{if(Or.current)try{}catch(xi){console.log(xi,"---- to set md editor body height")}},[gi,Or,Xn]);(0,Rt.useEffect)(()=>{function xi(){let di=new Yt.Z(Ai=>{for(let zn of Ai)(zn.target.offsetHeight>0||zn.target.offsetWidth>0)&&(vi(),En.setSize("100%","100%"),En.refresh())});return di.observe(Hi.current.parentElement),di}if(En){const di=xi();return()=>{var Ai,zn;(Ai=Hi.current)!=null&&Ai.parentElement&&di.unobserve((zn=Hi.current)==null?void 0:zn.parentElement)}}},[En,vi]),(0,Rt.useEffect)(()=>{if(En){let xi=[];for(const[di,Ai]of Object.entries(Er)){let zn={[di]:()=>{Zi(Ai)}};xi.push(zn),En.addKeyMap(zn)}return()=>{for(let di of xi)En.removeKeyMap(di)}}},[En]),(0,Rt.useEffect)(()=>{In!==Xn&&ti(In)},[In]),(0,yi.Z)(()=>{if(!mn&&fi>0){let xi=new Date().getTime(),di=window.sessionStorage.getItem(Pn);xi>=fi+Gi&&(!di||di!==ei)&&(window.sessionStorage.setItem(Pn,ei),Cn(!0))}},Gi),(0,Rt.useEffect)(()=>{qe(Ze)},[En,Ze]),(0,Rt.useEffect)(()=>{En&&bn&&En.focus()},[En,bn]),(0,Rt.useEffect)(()=>{if(ii&&En){let xi=function(Ai){let zn=Ai.target;if(Si.current){let hr=zn.scrollTop/zn.scrollHeight;Si.current.scrollTop=Si.current.scrollHeight*hr}};const di=En.getScrollerElement();return di.addEventListener("scroll",xi),()=>{di.removeEventListener("scroll",xi)}}},[En,ii]),(0,Rt.useEffect)(()=>{if(En&&cn){let xi=function(di,Ai){cn(di,Ai)};return En.on("beforeChange",xi),()=>{En.off("beforeChange",xi)}}},[En,cn]),(0,Rt.useEffect)(()=>{if(En&&Ke){let xi=function(){Ke(En.getValue())};return En.on("blur",xi),()=>{En.off("blur",xi)}}},[En,Ke]);function Xi(xi,di){var Ai=xi.getDoc(),zn=Ai.getCursor(),hr=Ai.getLine(zn.line),Tr=hr.charAt(zn.ch-1),Qr=hr.lastIndexOf("@\u2581@",zn.ch),kr=hr.lastIndexOf("@\u2581\u2581@",zn.ch),Xr=Qr>kr?Qr:kr,io=Qr>kr?3:4;if(Ki.indexOf(Tr)===-1)return null;if(console.log("change1:",di,xi,hr,zn,Xr,Qr,kr,Tr),Xr>=0&&zn.ch-Xr<5){var Wo=Xr+io;return Ai.replaceRange("",{line:zn.line,ch:Xr},{line:zn.line,ch:Wo}),{line:zn.line,ch:Wo}}return null}(0,Rt.useEffect)(()=>{if(En){let xi=function(di,Ai){const zn=di.getValue();pi(zn),ki(new Date().getTime()),di.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),nn&&(Ge?nn(zn,Ci(zn)):nn(zn))};return En.on("change",xi),()=>{En.off("change",xi)}}},[En,nn]),(0,Rt.useEffect)(()=>{if(En)if(tn==null)En.setValue(""),pi("");else{const xi=window.scrollY||window.pageYOffset;tn!==En.getValue()&&(En.setValue(tn),pi(tn),En.setCursor(ln?1:En.lineCount(),0),window.scrollTo(0,xi))}},[En,tn]);const Zi=(0,Rt.useCallback)(xi=>{const di=En.getCursor(),Ai=En.getSelection();let zn=Ai.split(`
|
|
|
`);switch(xi){case"bold":return En.replaceSelection("**"+Ai+"**"),Ai===""&&En.setCursor(di.line,di.ch+2),En.focus();case"italic":return En.replaceSelection("*"+Ai+"*"),Ai===""&&En.setCursor(di.line,di.ch+1),En.focus();case"code":return En.replaceSelection("`"+Ai+"`"),Ai===""&&En.setCursor(di.line,di.ch+1),En.focus();case"inline-latex":return Li("inline-latex"),En.focus();case"latex":return En.replaceSelection("```latex\n"+Ai+"\n```"),En.setCursor(di.line+1,Ai.length+1),En.focus();case"line-break":return En.replaceSelection(`<br/>
|
|
|
`),En.focus();case"list-ul":return Ai===""?En.replaceSelection("- "+Ai):En.replaceSelection(zn.map(hr=>hr===""?"":`- ${hr}`).join(`
|
|
|
`)),En.focus();case"list-ol":return Ai===""?En.replaceSelection("1. "+Ai):En.replaceSelection(zn.map((hr,Tr)=>hr===""?"":`${Tr+1}. ${hr}`).join(`
|
|
|
`)),En.focus();case"add-null-ch":return Ai===""&&En.setCursor(di.line,di.ch),En.replaceSelection(bi),En.focus();case"add-signal":return Ai===""&&En.setCursor(di.line,di.ch),En.replaceSelection(ui),En.focus();case"add-multiple":return Ai===""&&En.setCursor(di.line,di.ch),En.replaceSelection(Ki),En.focus();case"inster-template-1":return Ai===""&&En.setCursor(di.line,di.ch),En.replaceSelection(te),En.focus();case"eraser":return En.setValue(""),En.focus();case"trigger-watch":return qe(!ii),En.focus();case"trigger-full-screen":return ti(!Xn),En.focus();case Re:Li(Re);return;case Yn:Li(Yn);return;case hn:Li(hn);return;case kn:Li(kn);return;case"maths-latex":Li("maths-latex");return;case wn:Li(wn);return;case Kn:Li(Kn);return;default:throw new Error}},[En,ii,Xn]),Jn=(0,Rt.useCallback)((xi,di)=>{var Ai,zn,hr,Tr,Qr,kr;switch(Li(""),Qn){case Re:const{title:Uo,link:To}=xi;return En.replaceSelection(`[${Uo}](${To})`),En.focus();case Yn:const{language:Sn,content:yo}=xi;return En.replaceSelection(["```"+Sn,yo,"```"].join(`
|
|
|
`)),En.focus();case"maths-latex":for(var Xr=atob(xi),io=new Uint8Array(Xr.length),Wo=0;Wo<Xr.length;Wo++)io[Wo]=Xr.charCodeAt(Wo);var vo=new Blob([io],{type:"image/png"});(0,se.I)(vo,ao=>{ao.id?En.replaceSelection(``):(ao==null?void 0:ao.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":En.replaceSelection("`$$"+xi+"$$`");break;case hn:case kn:case Rn:const{src:da,alt:_s}=xi,mr=di,Wr=(hr=(zn=(Ai=mr==null?void 0:mr.name)==null?void 0:Ai.split("."))==null?void 0:zn.pop)==null?void 0:hr.call(zn);return((Tr=mr==null?void 0:mr.type)==null?void 0:Tr.indexOf("image"))>-1||!(mr!=null&&mr.type)?_s?En.replaceSelection(``):En.replaceSelection(``):((Qr=mr==null?void 0:mr.type)==null?void 0:Qr.indexOf("video"))>-1?En.replaceSelection(`<video width="100%" controls src="${da}"></video>`):((kr=mr==null?void 0:mr.type)==null?void 0:kr.indexOf("pdf"))>-1?En.replaceSelection(`<a href="${da}?type=${mr.type}&disposition=inline" target="_blank">${mr.name}</a>`):Yi.includes(Wr)?En.replaceSelection(`<a href="${da}?type=office&disposition=inline" target="_blank">${mr.name}</a>`):En.replaceSelection(`[${mr.name}](${da})`),En.focus();case Kn:const{row:so,col:zr,align:qi}=xi;let Ji=`
|
|
|
`;for(let ao=0;ao<so;ao++){let $i=[],cr=[];for(let fr=0;fr<zr;fr++)ao===1&&cr.push(mi[qi]),$i.push(" ");ao===1&&(Ji+=`| ${cr.join(" | ")} |
|
|
|
`),Ji+=`| ${$i.join(zr===1?"":" | ")} |
|
|
|
`}return En.replaceSelection(Ji+`
|
|
|
`),En.focus();default:throw new Error}},[En,Qn]),xe=(0,Rt.useMemo)(()=>{switch(Qn){case Re:return Rt.createElement(ae,{callback:Jn,onCancel:Ri});case Yn:return Rt.createElement(fe.Z,{callback:Jn,onCancel:Ri});case hn:return Rt.createElement(se.Z,{callback:Jn,onCancel:Ri});case wn:return Rt.createElement(Mt,{callback:Jn,onCancel:Ri});case Kn:return Rt.createElement(gt,{callback:Jn,onCancel:Ri});case"maths-latex":return Rt.createElement(Ye,{showSaveButton:!0,callback:Jn});case"inline-latex":return Rt.createElement(sn.Z,{showSaveButton:!0,callback:Jn});default:return null}},[Qn]);function Ri(){Li("")}(0,Rt.useEffect)(()=>{if(pr.current){let xi=function(Qr){hr=!0,Tr=Qr.pageY},di=function(){hr=!1},Ai=function(Qr){if(hr){let kr=Qr.pageY-Tr;kr<0&&(kr=0),kr>300&&(kr=300);let Xr=Fe+kr+"px";oi(Xr)}},zn=pr.current,hr=!1,Tr=0;return zn.addEventListener("mousedown",xi),document.addEventListener("mousemove",Ai),document.addEventListener("mouseup",di),()=>{zn.removeEventListener("mousedown",xi),document.removeEventListener("mousemove",Ai),document.removeEventListener("mouseup",di)}}},[En,pr]),(0,Rt.useEffect)(()=>{oi(Fe)},[Fe]);const Ar=Ti(Qe),zi=Ti(gi),ir={width:Ar,height:zi},Oi=(0,Rt.useMemo)(()=>{if(fi){let xi=new Date(fi),di=xi.getHours(),Ai=xi.getMinutes(),zn=xi.getSeconds();return di=di<10?"0"+di:di,Ai=Ai<10?"0"+Ai:Ai,zn=zn<10?"0"+zn:zn,`${di}:${Ai}:${zn}`}return 0},[fi]),Ci=xi=>{const di=[];if(Ge){let Ai=-1;xi=xi.replace(/(@▁▁@|@▁@)/g,function(zn,hr,Tr){di.push({multiLine:zn!==ui})})}return di};function tr(){window.sessionStorage.removeItem(Pn),Cn(!1),ki(0)}function yr(){Cn(!1),ki(0),En.setValue(window.sessionStorage.getItem(Pn))}(0,Rt.useEffect)(()=>{vr[Qn]&&Qn!==kn&&Qn!==wn&&setTimeout(()=>{const xi=document.getElementsByClassName("markdown-popup-form")[0],di=window.innerWidth/2-xi.offsetWidth/2,Ai=window.innerHeight/2-xi.offsetHeight/2;Ln(di),wr(Ai)},0)},[Qn]);const _i=xi=>{xi.preventDefault();const di=xi.clientX-nr,Ai=xi.clientY-Bi;document.body.onmousemove=zn=>{let hr=zn.clientX-di,Tr=zn.clientY-Ai;const Qr=document.getElementsByClassName("markdown-popup-form")[0],kr=window.innerWidth-Qr.offsetWidth,Xr=window.innerHeight-Qr.offsetHeight;hr=Math.max(0,Math.min(hr,kr)),Tr=Math.max(0,Math.min(Tr,Xr)),Mr(zn.clientX,zn.clientY,di,Ai)&&(Ln(hr),wr(Tr))},document.body.onmouseup=function(){document.body.onmousemove=null}},Mr=(xi,di,Ai,zn)=>{const hr=document.body.clientHeight,Tr=document.body.clientWidth;return xi<20&&Ai>xi||xi>Tr-20&&Ai<xi||di<20&&zn>di||di>hr-20&&zn<di?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return Rt.createElement(Rt.Fragment,null,Rt.createElement("div",{className:"markdown-editor-wrapper",ref:Or},Rt.createElement("div",{className:`markdown-editor-container ${on} ${ii?"on-preview":""} ${vn?"mini":""} ${Xn?"full-screen":""}`,style:ir},Rt.createElement(Ut,{insertTemp:Ae,watch:ii,fullScreen:Xn,showNullButton:Me,showNullProgramButton:Ge,onActionCallback:Zi,hidetoolBar:fn,extraUse:On}),Rt.createElement("div",{className:"markdown-editor-body"},Rt.createElement("div",{className:"codemirror-container"},Rt.createElement("textarea",{ref:Hi,placeholder:yn})),ii?Rt.createElement("div",{ref:Si,className:"preview-container"},gn==="stex"&&Rt.createElement(Tt,{value:ei}),gn!=="stex"&&Rt.createElement(bt.Z,{disabledFill:xn,showProgramFill:Ge,value:ei})):null))),Un?Rt.createElement("a",{ref:pr,className:"editor-resize"}):null,Qn===kn&&Rt.createElement(rn,{callback:Jn,onCancel:Ri}),Qn===wn&&Rt.createElement(Mt,{callback:Jn,onCancel:Ri}),Rt.createElement(Ft.Z,null,vr[Qn]&&Qn!==kn&&Qn!==wn?Rt.createElement(De.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:nr,top:Bi},title:Rt.createElement("div",{style:{cursor:"move"},onMouseDown:_i},vr[Qn]),open:!0,onCancel:Ri,footer:null,destroyOnClose:!0,width:Qn===wn?"1200px":null,height:Qn===wn?"80vh":null,className:"markdown-popup-form"},xe):null))}},56701:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return ct},I:function(){return mt}});var Rt=Gt(78241),yt=Gt(8591),Vt=Gt(92832),Yt=Gt(3113),Nt=Gt(58788),Wt=Gt(59301),xt=Gt(59301),Ot=Object.defineProperty,Bt=Object.defineProperties,At=Object.getOwnPropertyDescriptors,bt=Object.getOwnPropertySymbols,Tt=Object.prototype.hasOwnProperty,It=Object.prototype.propertyIsEnumerable,vt=(Ct,Dt,Ut)=>Dt in Ct?Ot(Ct,Dt,{enumerable:!0,configurable:!0,writable:!0,value:Ut}):Ct[Dt]=Ut,et=(Ct,Dt)=>{for(var Ut in Dt||(Dt={}))Tt.call(Dt,Ut)&&vt(Ct,Ut,Dt[Ut]);if(bt)for(var Ut of bt(Dt))It.call(Dt,Ut)&&vt(Ct,Ut,Dt[Ut]);return Ct},tt=(Ct,Dt)=>Bt(Ct,At(Dt));const{useForm:st}=Rt.default,rt={width:280,marginRight:10},ut={labelCol:{span:5},wrapperCol:{span:19}};var ct=({callback:Ct,onCancel:Dt})=>{const[Ut]=st();let Ft=(0,Wt.useRef)();function Qt(ue){Ct(ue,Ft.current)}function $t(ue,oe){if(ue.status===-1){yt.ZP.error(ue.message);return}Ut.setFieldsValue({src:`/api/attachments/${ue.id}`,type:oe.type})}function Kt(ue){let oe=ue.target.files[0];Ft.current=oe,mt(oe,$t)}return xt.createElement(Rt.default,tt(et({form:Ut},ut),{className:"upload-image-panel",onFinish:Qt,style:{width:470,overflow:"hidden"}}),xt.createElement(Rt.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},xt.createElement("div",{className:"flex-container"},xt.createElement(Rt.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},xt.createElement(Vt.default,{style:rt})),xt.createElement(pt,{onFileChange:Kt}))),xt.createElement(Rt.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},xt.createElement(Vt.default,{style:{width:264}})),xt.createElement(Rt.default.Item,{style:{textAlign:"right"}},xt.createElement(Yt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),xt.createElement(Yt.ZP,{type:"default",onClick:Dt},"\u53D6\u6D88")))};function pt({onFileChange:Ct}){return xt.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",xt.createElement("input",{type:"file",onChange:Ct}))}function mt(Ct,Dt){if(!Ct)throw new String("\u6CA1\u6709\u6587\u4EF6");let Ut=new FormData;Ut.append("editormd-image-file",Ct),Ut.append("file_param_name","editormd-image-file"),Ut.append("byxhr","true");var Ft=new window.XMLHttpRequest;Ft.withCredentials=!0,Ft.addEventListener("load",function(Qt){Dt(JSON.parse(Qt.target.responseText),Ct)},!1),Ft.addEventListener("error",function(Qt){console.error(Qt)},!1),Ft.open("POST",`${Nt.KI}/api/attachments.json`),Ft.send(Ut)}},50474:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Vt}});var Rt=Gt(59301),yt=Gt(4676);class Vt extends Rt.Component{constructor(Nt){super(Nt);const Wt=window.document;this.node=Wt.createElement("div"),Wt.body.appendChild(this.node)}render(){const{children:Nt}=this.props;return(0,yt.createPortal)(Nt,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},48551:function(Nn,An,Gt){"use strict";Gt.d(An,{SV:function(){return _t},ZP:function(){return he}});var Rt=Gt(59301),yt=Gt(76374);const Vt={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"]},Yt={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"]},Nt={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(`
|
|
|
`)}]},Wt={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=Gt(86061),Bt=Gt.n(Ot),At=Object.defineProperty,bt=Object.defineProperties,Tt=Object.getOwnPropertyDescriptors,It=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,tt=(Mt,Et,Ht)=>Et in Mt?At(Mt,Et,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):Mt[Et]=Ht,st=(Mt,Et)=>{for(var Ht in Et||(Et={}))vt.call(Et,Ht)&&tt(Mt,Ht,Et[Ht]);if(It)for(var Ht of It(Et))et.call(Et,Ht)&&tt(Mt,Ht,Et[Ht]);return Mt},rt=(Mt,Et)=>bt(Mt,Tt(Et)),ut=(Mt,Et,Ht)=>new Promise((Pt,dt)=>{var gt=Zt=>{try{re(Ht.next(Zt))}catch(ye){dt(ye)}},zt=Zt=>{try{re(Ht.throw(Zt))}catch(ye){dt(ye)}},re=Zt=>Zt.done?Pt(Zt.value):Promise.resolve(Zt.value).then(gt,zt);re((Ht=Ht.apply(Mt,Et)).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"]}},pt=(Mt,Et)=>Et.map(Ht=>({label:Ht,kind:Mt.languages.CompletionItemKind.Keyword,insertText:Ht})),mt=Mt=>Object.keys(ct.tables).map(Et=>({label:Et,kind:Mt.languages.CompletionItemKind.Variable,insertText:Et})),Ct=(Mt,Et)=>{const Ht=ct.tables[Mt];return Ht?Ht.map(Pt=>({label:Pt,kind:Et.languages.CompletionItemKind.Field,insertText:Pt})):[]};function Dt(Mt,Et,Ht,Pt,dt){let gt=Et.getWordUntilPosition(Ht),zt={startLineNumber:Ht.lineNumber,endLineNumber:Ht.lineNumber,startColumn:gt.startColumn,endColumn:gt.endColumn},re=Pt.map(Zt=>({label:Zt,kind:Mt.languages.CompletionItemKind.Keyword,insertText:Zt,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:zt}));return dt.map(Zt=>{re.push(rt(st({},Zt),{range:zt}))}),re}var Ut=Mt=>{ct.languages.map(dt=>(Mt.languages.registerDocumentFormattingEditProvider(dt,{provideDocumentFormattingEdits(gt,zt,re){return ut(this,null,function*(){const Zt=Bt()(gt.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:gt.getFullModelRange(),text:Zt}]})}}),dt));const Et=Nt.quickKey.map(dt=>({label:dt.label,kind:Mt.languages.CompletionItemKind.Method,insertText:dt.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Ht=Wt.quickKey.map(dt=>({label:dt.label,kind:Mt.languages.CompletionItemKind.Method,insertText:dt.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Pt=Yt.quickKey.map(dt=>({label:dt.label,kind:Mt.languages.CompletionItemKind.Method,insertText:dt.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Mt.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(dt,gt){var zt=dt.getWordUntilPosition(gt),re={startLineNumber:gt.lineNumber,endLineNumber:gt.lineNumber,startColumn:zt.startColumn,endColumn:zt.endColumn},Zt=dt.getLineContent(gt.lineNumber).substring(zt.startColumn-2,zt.endColumn);return{suggestions:[...Nt.keywords.map(ye=>({label:ye,kind:Mt.languages.CompletionItemKind.Function,documentation:ye,insertText:ye,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:re})),...Nt.quickKey.map(ye=>({label:ye.label,kind:Mt.languages.CompletionItemKind.Function,documentation:ye.content,insertText:Zt.startsWith("#")?ye.content.replace(/#/,""):ye.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:re}))]}}}),Mt.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(dt,gt){var zt=dt.getWordUntilPosition(gt),re={startLineNumber:gt.lineNumber,endLineNumber:gt.lineNumber,startColumn:zt.startColumn,endColumn:zt.endColumn};return{suggestions:[...Vt.keywords.map(Zt=>({label:Zt,kind:Mt.languages.CompletionItemKind.Function,documentation:Zt,insertText:Zt,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:re}))]}}}),Mt.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(dt,gt){var zt=dt.getWordUntilPosition(gt),re={startLineNumber:gt.lineNumber,endLineNumber:gt.lineNumber,startColumn:zt.startColumn,endColumn:zt.endColumn},Zt=dt.getLineContent(gt.lineNumber).substring(zt.startColumn-2,zt.endColumn);return{suggestions:[...Yt.keywords.map(ye=>({label:ye,kind:Mt.languages.CompletionItemKind.Function,documentation:ye,insertText:ye,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:re})),...Yt.quickKey.map(ye=>({label:ye.label,kind:Mt.languages.CompletionItemKind.Function,documentation:ye.content,insertText:Zt.startsWith("#")?ye.content.replace(/#/,""):ye.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:re}))]}}}),Mt.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(dt,gt){var zt=dt.getWordUntilPosition(gt),re={startLineNumber:gt.lineNumber,endLineNumber:gt.lineNumber,startColumn:zt.startColumn,endColumn:zt.endColumn},Zt=dt.getLineContent(gt.lineNumber).substring(zt.startColumn-2,zt.endColumn);return{suggestions:[...xt.keywords.map(ye=>({label:ye,kind:Mt.languages.CompletionItemKind.Function,documentation:ye,insertText:ye,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:re})),...xt.quickKey.map(ye=>({label:ye.label,kind:Mt.languages.CompletionItemKind.Function,documentation:ye.content,insertText:Zt.startsWith("#")?ye.content.replace(/#/,""):ye.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:re}))]}}}),Mt.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(dt,gt){var zt=dt.getWordUntilPosition(gt),re={startLineNumber:gt.lineNumber,endLineNumber:gt.lineNumber,startColumn:zt.startColumn,endColumn:zt.endColumn},Zt=dt.getLineContent(gt.lineNumber).substring(zt.startColumn-2,zt.endColumn);return{suggestions:[...Wt.keywords.map(ye=>({label:ye,kind:Mt.languages.CompletionItemKind.Function,documentation:ye,insertText:ye,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:re})),...Wt.quickKey.map(ye=>({label:ye.label,kind:Mt.languages.CompletionItemKind.Function,documentation:ye.content,insertText:Zt.startsWith("#")?ye.content.replace(/#/,""):ye.content,insertTextRules:Mt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:re}))]}}})};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,$t=(Mt,Et,Ht)=>Et in Mt?Qt(Mt,Et,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):Mt[Et]=Ht,Kt=(Mt,Et,Ht)=>$t(Mt,typeof Et!="symbol"?Et+"":Et,Ht);const ue=class mx{constructor(Et,Ht,Pt){this.placeholder=Et,this.editor=Ht,this.monaco=Pt,Ht.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)}};Kt(ue,"ID","editor.widget.placeholderHint");var we=ue,Se=Gt(96236),Ne=Gt(8591),pe=Gt(6848),Ue=Gt(89392),de=Gt(86766),Jt=Gt(56102),ee=Object.defineProperty,ae=Object.defineProperties,fe=Object.getOwnPropertyDescriptors,se=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,Oe=Object.prototype.propertyIsEnumerable,en=(Mt,Et,Ht)=>Et in Mt?ee(Mt,Et,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):Mt[Et]=Ht,We=(Mt,Et)=>{for(var Ht in Et||(Et={}))De.call(Et,Ht)&&en(Mt,Ht,Et[Ht]);if(se)for(var Ht of se(Et))Oe.call(Et,Ht)&&en(Mt,Ht,Et[Ht]);return Mt},rn=(Mt,Et)=>ae(Mt,fe(Et)),ke=(Mt,Et)=>{var Ht={};for(var Pt in Mt)De.call(Mt,Pt)&&Et.indexOf(Pt)<0&&(Ht[Pt]=Mt[Pt]);if(Mt!=null&&se)for(var Pt of se(Mt))Et.indexOf(Pt)<0&&Oe.call(Mt,Pt)&&(Ht[Pt]=Mt[Pt]);return Ht},Ie=(Mt,Et,Ht)=>new Promise((Pt,dt)=>{var gt=Zt=>{try{re(Ht.next(Zt))}catch(ye){dt(ye)}},zt=Zt=>{try{re(Ht.throw(Zt))}catch(ye){dt(ye)}},re=Zt=>Zt.done?Pt(Zt.value):Promise.resolve(Zt.value).then(gt,zt);re((Ht=Ht.apply(Mt,Et)).next())});function je(Mt){return/^\d+$/.test(Mt)?`${Mt}px`:Mt}function $e(){}let me=!1;const le={"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 Ee(Mt=[]){let Et=Mt;if(Array.isArray(Mt)){for(let Ht=0;Ht<Mt.length;Ht++){let Pt=le[Mt[Ht]];if(Pt)return Pt}return Et[0]}return le[Et]||Et}let ce=null;var he=Mt=>{var Et=Mt,{width:Ht="100%",height:Pt="100%",value:dt,language:gt="javascript",style:zt={},options:re={},overrideServices:Zt={},theme:ye="vs-dark",onEditBlur:Ye,isCopy:sn=!1,onSave:Le,autoHeight:Re=!1,forbidCopy:hn=!1,onChange:wn=$e,editorDidMount:kn=$e,onFocus:Rn=$e,onBreakPoint:Yn=$e,breakPointValue:Kn=[],filename:li="educoder.txt",errorLine:mi,errorContent:yi="",highlightLine:Pi,openBreakPoint:Mi=!1,placeholder:Gi=""}=Et,bi=ke(Et,["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 Ki=(0,Rt.useRef)(),ui=(0,Rt.useRef)({}),te=(0,Rt.useRef)(),Yi=(0,Rt.useRef)(),Ti=(0,Rt.useRef)([]),or=(0,Rt.useRef)(!1),Sr=(0,Rt.useRef)(),Er=(0,Rt.useRef)(),vr=(0,Rt.useRef)(!1),[qn,tn]=(0,Rt.useState)(!1);function nn(){let Ke;return Ki.current&&(Ke=new yt.Z(cn=>{for(let _e of cn)(_e.target.offsetHeight>0||_e.target.offsetWidth>0)&&ui.current.instance.layout()}),Ke.observe(Ki.current)),Ke}function Qe(){Ne.ZP.warning({content:decodeURIComponent(Ft),key:"monaco-editor-tip"})}const Fe=()=>{let Ke=ui.current.instance;if(dt!=null&&Ke&&qn){const cn=Ke.getModel();cn&&dt!==cn.getValue()&&(me=!0,cn.setValue(dt),Ke.layout(),me=!1)}};(0,Rt.useEffect)(()=>{const Ke=de.Z.subscribe("formatDocument",cn=>{var _e;let on=ui.current.instance;(_e=on==null?void 0:on.getAction)==null||_e.call(on,"editor.action.formatDocument").run()});return window.updateMonacoValue=cn=>{wn(cn)},Ke},[]),(0,Rt.useEffect)(()=>{var Ke;let cn=ui.current.instance;Yi.current&&clearTimeout(Yi.current),Yi.current=setTimeout(()=>{Fe()},500),dt&&(dt!=null&&dt.length)&&((Ke=cn==null?void 0:cn.updateOptions)==null||Ke.call(cn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(dt.split(/\r\n|\r|\n/g).length))+3,5)}))},[dt,qn,ui.current]),(0,Rt.useEffect)(()=>{if(mi&&ui.current&&ui.current.instance){let cn=ui.current.instance;cn.changeViewZones(function(_e){var on=document.createElement("div");on.style.padding="10px 20px",on.style.width="calc(100% - 20px)",on.className="my-error-line-wrp",on.innerHTML=yi,_e.addZone({afterLineNumber:mi||11,heightInLines:3,domNode:on})});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}};cn.addOverlayWidget(Ke),cn.revealPositionInCenter({lineNumber:20,column:1})}},[mi,ui.current,qn]);const vn=(Ke="",cn)=>{if(!Ke||Ke.trim()==="")return!0;const on=ui.current.instance.getModel().getLineTokens(cn);let dn=!1;for(let ln=0;ln<2;ln++)on.getStandardTokenType(ln)===1&&(dn=!0);return dn};(0,Rt.useEffect)(()=>{var Ke;const cn=(Ke=ui.current)==null?void 0:Ke.instance;if(cn&&qn&&hn){const _e=cn.onDidBlurEditorWidget(()=>{vr.current=!1}),on=cn.onDidFocusEditorText(()=>{vr.current=!0});return()=>{_e.dispose(),on.dispose()}}},[ui.current,qn,hn]),(0,Rt.useEffect)(()=>{var Ke;if((Ke=ui.current)!=null&&Ke.instance&&qn&&Mi){let cn=ui.current.instance,_e=cn.getModel();if(!_e)return;(()=>{var ii;let qe=[],Xn=[];const ti=_e.getAllDecorations();for(let Li of ti)Li.options.className==="highlighted-line"&&(qe.push((ii=Li==null?void 0:Li.range)==null?void 0:ii.startLineNumber),Xn.push(Li==null?void 0:Li.id));if(Pi===qe[0])return;_e.deltaDecorations(Xn,[]);const Qn=_e.getLineCount();Pi&&Pi<=Qn&&(cn.deltaDecorations([],[{range:new ce.Range(Pi,1,Pi,_e.getLineMaxColumn(Pi)),options:{isWholeLine:!0,className:"highlighted-line"}}]),cn.revealLineInCenter(Pi))})();const dn=(ii=!1)=>{var qe;let Xn=[],ti=[];const Qn=_e.getAllDecorations();for(let Li of Qn)Li.options.linesDecorationsClassName==="breakpoints-select"&&(Xn.push((qe=Li==null?void 0:Li.range)==null?void 0:qe.startLineNumber),ti.push(Li==null?void 0:Li.id));if(ii)return{lines:Xn,ids:ti};Yn(Xn)},ln=ii=>Ie(void 0,null,function*(){let qe={range:new ce.Range(ii,1,ii,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield _e.deltaDecorations([],[qe]),dn()}),xn=ii=>Ie(void 0,null,function*(){let qe=[];const Xn=cn.getLineDecorations(ii);for(let ti of Xn)ti.options.linesDecorationsClassName==="breakpoints-select"&&qe.push(ti.id);yield _e.deltaDecorations(qe,[]),dn()}),yn=ii=>{let qe=cn.getLineDecorations(ii);for(let Xn of qe)if(Xn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Ue.isEqual)(Kn,dn(!0).lines)){_e.deltaDecorations(dn(!0).ids,[]);const ii=Kn.map(qe=>({range:new ce.Range(qe,1,qe,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));_e.deltaDecorations([],ii)}const Mn=cn.onDidChangeModelContent(ii=>{let qe=cn.getPosition();if(qe){let Xn=qe.lineNumber;clearTimeout(Er.current),Er.current=setTimeout(()=>{vn(_e.getLineContent(Xn),Xn)?xn(Xn):yn(Xn)?(xn(Xn),ln(Xn)):dn()},100)}}),On=cn.onMouseDown(ii=>{var qe,Xn,ti;if(ii.target.detail&&((ti=(Xn=(qe=ii.target)==null?void 0:qe.element)==null?void 0:Xn.className)!=null&&ti.includes("line-numbers"))){let Qn=ii.target.position.lineNumber;if(vn(_e.getLineContent(Qn),Qn))return;yn(Qn)?xn(Qn):ln(Qn)}}),En=ii=>{let qe={range:new ce.Range(ii,1,ii,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Ti.current=cn.deltaDecorations(Ti.current,[qe])},jn=()=>{Ti.current=cn.deltaDecorations(Ti.current,[])},ei=cn.onMouseMove(ii=>{var qe,Xn,ti;if(jn(),ii.target.detail&&((ti=(Xn=(qe=ii.target)==null?void 0:qe.element)==null?void 0:Xn.className)!=null&&ti.includes("line-numbers"))){let Qn=ii.target.position.lineNumber;if(vn(_e.getLineContent(Qn),Qn))return;En(Qn)}}),pi=cn.onMouseLeave(()=>{jn()});return()=>{Mn.dispose(),On.dispose(),ei.dispose(),pi.dispose()}}},[ui.current,qn,Kn,Pi,Mi,gt]),(0,Rt.useEffect)(()=>{var Ke;(Ke=ui.current)!=null&&Ke.instance&&Mi&&ui.current.instance.setPosition({lineNumber:0,column:0})},[Pi]);function bn(){let Ke=ui.current.instance;if(Ke){const cn=Ke.getSelection(),_e=ui.current.pastePos||{},on=new ce.Range(_e.startLineNumber||cn.endLineNumber,_e.startColumn||cn.endColumn,_e.endLineNumber||cn.endLineNumber,_e.endColumn||cn.endColumn);setTimeout(()=>{Ke.executeEdits("",[{range:on,text:""}])},300)}}function Ze(Ke){(window.navigator.platform.match("Mac")?Ke.metaKey:Ke.ctrlKey)&&Ke.keyCode==83&&(Ke.preventDefault(),Le())}const Ae=()=>{if(Re&&ui.current.instance){const Ke=ui.current.instance.getContentHeight();fn(Ke<Pt?Pt:Ke)}else fn(Pt)};function gn(Ke){var cn=document.createEvent("MouseEvents");cn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Ke.dispatchEvent(cn)}const Pn=Ke=>{if(!vr.current)return;const{keyCode:cn,ctrlKey:_e,metaKey:on,target:dn,type:ln}=Ke;return(ln==="paste"||(cn===67||cn===86)&&(on||_e))&&dn.nodeName==="TEXTAREA"&&(Qe(),Ke.preventDefault()),!1};function Un(Ke,cn){var _e=window.URL||window.webkitURL||window,on=new Blob([cn]),dn=document.createElementNS("http://www.w3.org/1999/xhtml","a");dn.href=_e.createObjectURL(on),dn.download=Ke,gn(dn)}(0,Rt.useEffect)(()=>{Ae()},[Ae]),(0,Rt.useEffect)(()=>{Ki.current&&!qn&&Promise.all([Gt.e(8909),Gt.e(1810)]).then(Gt.bind(Gt,71448)).then(Ke=>{try{ce=Ke,ui.current.instance=ce.editor.create(Ki.current,{value:dt,language:Ee(gt),theme:ye,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0},Zt);const cn=ui.current.instance;let dn=[...Se.BH._menuItems].find(Mn=>Mn[0]._debugName=="EditorContext")[1],ln=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],xn=(Mn,On)=>{var En,jn;let ei=Mn._first;do On.includes((jn=(En=ei.element)==null?void 0:En.command)==null?void 0:jn.id)&&Mn._remove(ei);while(ei=ei.next)};if(kn(cn,ce),setTimeout(()=>{Ae(),ui.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Un(li||"educoder.txt",cn.getValue())}})},500),ui.current.subscription=cn.onDidChangeModelContent(Mn=>{or.current?clearTimeout(Sr.current):(Ae(),wn(cn.getValue(),Mn)),Sr.current=setTimeout(()=>{or.current=!1},500)}),window.Monaco||Ut(ce,Ee(gt)),hn&&(xn(dn,ln),Ki.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Pn),window.removeEventListener("paste",Pn),window.addEventListener("keydown",Pn),window.addEventListener("paste",Pn)),window.Monaco=ce,Ye&&cn.onDidBlurEditorWidget(()=>{Ye(cn.getValue())}),Rn&&cn.onDidFocusEditorText(()=>{Rn(cn.getValue())}),hn)try{cn.onDidPaste(Mn=>{const On=cn.getSelection(),En=ui.current.pastePos||{},jn=new ce.Range(En.startLineNumber||On.endLineNumber,En.startColumn||On.endColumn,En.endLineNumber||On.endLineNumber,En.endColumn||On.endColumn);cn.executeEdits("",[{range:Mn.range,text:""}])})}catch(Mn){}let yn=nn();return Gi&&typeof Gi=="string"&&new we(Gi,cn,ce),tn(!0),()=>{const Mn=ui.current.instance;Mn.dispose();const On=Mn.getModel();On&&On.dispose(),ui.current.subscription&&ui.current.subscription.dispose(),yn.unobserve(Ki.current)}}catch(cn){}})},[]),(0,Rt.useEffect)(()=>{if(ui.current.instance&&qn)return document.addEventListener("keydown",Ze,!1),()=>{document.removeEventListener("keydown",Ze)}},[Le,qn]),(0,Rt.useEffect)(()=>{let Ke=ui.current.instance;if(Ke&&qn){let cn=Ee(gt);ce.editor.setModelLanguage(Ke.getModel(),cn)}},[gt,qn]),(0,Rt.useEffect)(()=>{ui.current.instance&&qn&&ce.editor.setTheme(ye)},[ye,qn]),(0,Rt.useEffect)(()=>{let Ke=ui.current.instance;te.current=re,Ke&&qn&&(Ke.updateOptions(We({},re)),setTimeout(()=>{Ke.getModel().updateOptions(We({},re))},200))},[JSON.stringify(re),qn]),(0,Rt.useEffect)(()=>{let Ke=ui.current.instance;Ke&&qn&&Ke.layout()},[Ht,Pt,qn]);const[mn,Me]=(0,Rt.useState)(je(Ht)),[Ge,fn]=(0,Rt.useState)(je(Pt)),In=rn(We({},zt),{width:mn,height:Ge,position:"relative"});return Rt.createElement("div",{className:"my-monaco-editor",ref:Ki,style:In},sn&&Rt.createElement(Jt.CopyToClipboard,{text:dt,onCopy:()=>Ne.ZP.success("\u590D\u5236\u6210\u529F")},Rt.createElement(pe.Z,{title:"\u590D\u5236\u4EE3\u7801"},Rt.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},Rt.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function _t({width:Mt="100%",height:Et="100%",original:Ht,modified:Pt,language:dt,options:gt={}}){const zt=(0,Rt.useRef)(),[re,Zt]=(0,Rt.useState)(null);function ye(Re){let hn;return zt.current&&(hn=new yt.Z(wn=>{for(let kn of wn)(kn.target.offsetHeight>0||kn.target.offsetWidth>0)&&Re.layout()}),hn.observe(zt.current)),hn}(0,Rt.useEffect)(()=>(zt.current&&Promise.all([Gt.e(8909),Gt.e(9404)]).then(Gt.bind(Gt,2550)).then(Re=>{ce=Re;const hn=ce.editor.createDiffEditor(zt.current,rn(We({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},gt),{wordWrap:!0}));Zt(hn);let wn=ye(hn);return()=>{hn.dispose();const kn=hn.getModel();kn&&kn.dispose(),wn.unobserve(zt.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,Rt.useEffect)(()=>{re&&re.setModel({original:ce.editor.createModel(Ht,dt),modified:ce.editor.createModel(Pt,dt)})},[Ht,Pt,dt,re]);const Ye=je(Mt),sn=je(Et),Le={width:Ye,height:sn};return Rt.createElement("div",{className:"my-diff-editor",ref:zt,style:Le})}},94606:function(Nn,An,Gt){"use strict";Gt.d(An,{jL:function(){return Nt},w9:function(){return De},QD:function(){return wn},cQ:function(){return Jt},op:function(){return ye},O5:function(){return vr},_b:function(){return mi},t7:function(){return rt},Gi:function(){return Ie},YG:function(){return rn},qp:function(){return bt},vr:function(){return Yn},qE:function(){return Le},Je:function(){return pt},wb:function(){return Se},cq:function(){return ce},tp:function(){return vt}});var Rt=Gt(59301),yt={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"},Vt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLv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cels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Nt=({dataSource:qn=[],img:tn,imgWidth:nn=346,title:Qe,sunTitle:Fe,bannerExtraContent:vn})=>Rt.createElement("div",{className:yt.banner},Rt.createElement("div",{className:yt.content},Rt.createElement("aside",null,Rt.createElement("p",null,Rt.createElement("b",null,Qe),Rt.createElement("span",null,Fe)),qn.length>0&&Rt.createElement("div",{className:yt.btns},qn.map((bn,Ze)=>Rt.createElement("div",{key:Ze,onClick:bn.click},bn.name,bn.sign?Rt.createElement("img",{src:Vt,width:39}):null))),vn),tn&&Rt.createElement("img",{style:{marginTop:33,marginRight:38},src:tn,width:nn}))),Wt={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=Gt(92310),Ot=Gt.n(xt),Bt=Gt(89392),bt=({dataSource:qn=[],value:tn,onChange:nn,onTitleChange:Qe,className:Fe,title:vn,titleWidth:bn=41,style:Ze={},fontColor:Ae="#6A7283",showCount:gn})=>{const[Pn,Un]=(0,Rt.useState)(0),[mn,Me]=(0,Rt.useState)(!1),Ge=(0,Rt.useRef)(null),fn=(0,Rt.useRef)(null);return(0,Rt.useEffect)(()=>{var In;qn.length!==0&&(((In=Ge==null?void 0:Ge.current)==null?void 0:In.clientHeight)>97?Un(1):Un(0)),qn.length===0&&Un(0),Me(!1)},[qn]),Rt.createElement("div",{className:Ot()(Wt.row,Fe),style:Ze},Rt.createElement("div",{onClick:(0,Bt.throttle)(()=>Qe==null?void 0:Qe(),2e3),style:{width:bn,marginTop:mn?12:4},className:`${Wt.title} ${Qe?"current":""}`},vn),Rt.createElement("div",{className:mn?`${Wt.tagsWrap} ${Wt.tagsBorderWrap}`:Wt.tagsWrap},Rt.createElement("div",{className:Wt.bar,ref:fn,style:Pn>0?{height:Pn===1?97:"auto",overflow:Pn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},Rt.createElement("div",{className:Wt.tag,ref:Ge},qn==null?void 0:qn.map(In=>Rt.createElement("span",{onClick:()=>nn(In.id),key:In.id,style:{color:Ae},className:tn===In.id?Wt.active:""},Rt.createElement("span",{title:In.name,className:Wt.name},In.name),!!gn&&Rt.createElement("span",{className:Wt.num},In.count))))),!!Pn&&Rt.createElement(Rt.Fragment,null,Pn===1?Rt.createElement("div",{onClick:()=>{var In;Un(2),((In=Ge==null?void 0:Ge.current)==null?void 0:In.clientHeight)>245?Me(!0):Me(!1)},className:Wt.action},"\u5C55\u5F00",Rt.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):Rt.createElement("div",{onClick:()=>{fn.current.scrollTop=0,Un(1),Me(!1)},className:Wt.action},"\u6536\u8D77",Rt.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Tt={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"},vt=({dataSource:qn=[],value:tn,onChange:nn,className:Qe,style:Fe={}})=>Rt.createElement("div",{style:Fe,className:Ot()(Tt.tabs,Qe)},qn.map(vn=>Rt.createElement("span",{onClick:()=>nn(vn.id),className:tn===vn.id?Tt.active:"",key:vn.id},vn.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=Gt(92832),rt=({dataSource:qn=[],value:tn="",onChange:nn,onInputChange:Qe=()=>{},className:Fe,style:vn={},placeholder:bn,allowClear:Ze=!1})=>{var Ae;const[gn,Pn]=(0,Rt.useState)(""),[Un,mn]=(0,Rt.useState)("");(0,Rt.useEffect)(()=>{var fn;let In=tn;(fn=JSON.stringify(tn))!=null&&fn.includes("{")&&(Pn(tn.id),In=tn.value||"");try{mn(decodeURIComponent(In||""))}catch(Ke){mn(decodeURIComponent(In||""))}},[tn]);const Me=()=>{nn(encodeURIComponent(Un),gn||null)},Ge=fn=>{fn!==gn&&(Pn(fn),nn(encodeURIComponent(Un),fn))};return Rt.createElement("div",{className:Ot()(et.input,Fe),style:vn},!!qn.length&&Rt.createElement("div",{className:et.dropdown},Rt.createElement("div",{className:et.text},(Ae=qn.find(fn=>fn.id===gn))==null?void 0:Ae.name,Rt.createElement("i",{className:"iconfont icon-zhankai4"}),Rt.createElement("b",{className:et.b1}),Rt.createElement("b",{className:et.b2})),Rt.createElement("div",{className:et.menu},qn.map((fn,In)=>Rt.createElement("div",{key:In,onClick:()=>Ge(fn.id)},fn.name)))),Rt.createElement(tt.default,{onPressEnter:Me,value:Un,onChange:fn=>{mn(fn.target.value),Qe(encodeURIComponent(fn.target.value),gn||null)},bordered:!1,placeholder:bn}),Rt.createElement("i",{onClick:Me,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"},pt=({value:qn,onChange:tn,className:nn,total:Qe,pageSize:Fe,style:vn={}})=>{const bn=qn<2,Ze=qn>=Math.ceil(Qe/Fe);return Qe<=Fe?Rt.createElement(Rt.Fragment,null):Rt.createElement("div",{className:Ot()(ut.quickPager,nn),style:vn},Rt.createElement("div",{onClick:()=>{bn||tn(qn-1,"prev")},className:bn?ut.disabled:""},"\u4E0A\u4E00\u9875"),Rt.createElement("div",{onClick:()=>{Ze||tn(qn+1,"next")},className:Ze?ut.disabled:""},"\u4E0B\u4E00\u9875"))},mt={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"},Ct=Gt(71418),Dt=Gt(6848),Ut=Gt(39978),Ft=Gt(10148),Qt=Gt(58130),$t=Gt(96908),Kt=Gt(57177),ue=Gt(81378),oe=Gt(97267),Se=({className:qn,dataSource:tn=[],col:nn=4,right:Qe,bottom:Fe=23,precision:vn=0,wrapWidth:bn=1200,trackEventItems:Ze,loading:Ae})=>{const gn=Math.floor((bn-(nn-1)*Qe)/nn);return Rt.createElement(Ct.Z,{spinning:Ae},Rt.createElement("div",{className:Ot()(mt.list,qn)},!!tn.length&&tn.map((Pn,Un)=>{const{name:mn,id:Me,identifier:Ge,power:fn,cover_image_id:In,pic:Ke}=Pn;return Rt.createElement("div",{className:mt.wrap,key:Me,style:{width:gn,marginRight:(1+Un)%nn===0?0:Qe+vn,marginBottom:Fe}},Rt.createElement("a",{target:"_blank",href:`/shixuns/${Ge}/challenges`,className:mt.li,onClick:cn=>{cn.preventDefault(),Ze&&(0,Qt.L9)([Ze]),fn&&(0,Qt.xg)(`/shixuns/${Ge}/challenges`)}},Rt.createElement("div",{className:mt.img},Rt.createElement("img",{className:mt.cover,src:`${Ke}`}),Pn.is_jupyter&&Rt.createElement("img",{className:mt.sign,src:$t}),Pn.is_jupyter_lab&&Rt.createElement("img",{className:mt.sign,src:Kt}),Pn.is_unity_3d&&Rt.createElement("img",{className:mt.sign,src:ue})),Rt.createElement("div",{className:mt.name},Rt.createElement(Dt.Z,{title:mn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},Rt.createElement("span",{className:mt.e},mn||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),Rt.createElement("div",{className:mt.tags},Rt.createElement(Dt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},Rt.createElement("span",null,Rt.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),Rt.createElement("span",null,Pn.challenges_count))),!!Pn.myshixuns_count&&Rt.createElement(Dt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Rt.createElement("span",null,Rt.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),Rt.createElement("span",null,Pn.myshixuns_count))),Rt.createElement(Dt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},Rt.createElement("span",null,Rt.createElement("span",null,Pn.level))),Rt.createElement("div",{className:mt.rate},Rt.createElement(Ut.Z,{allowHalf:!0,disabled:!0,defaultValue:Pn.score_info}),Rt.createElement("span",null,"\xA0",Pn.score_info?`${Pn.score_info}\u5206`:"5\u5206")))),!fn&&Rt.createElement("div",{className:mt.lockWrap},Rt.createElement("img",{src:`${Ft.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Rt.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!tn.length&&Rt.createElement(oe.Z,null)))},Ne={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"},pe=Gt(2119),Ue=Gt(59301),Jt=({className:qn,dataSource:tn=[],col:nn=4,right:Qe,bottom:Fe=23,precision:vn=0,wrapWidth:bn=1200,trackEventItems:Ze,loading:Ae,onRemove:gn=()=>{},isCurrent:Pn=!0,showAlias:Un=!1})=>{const mn=Math.floor((bn-(nn-1)*Qe)/nn),Me=[{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 Ue.createElement(Ct.Z,{spinning:Ae},Ue.createElement("div",{className:Ot()(Ne.list,qn)},!!(tn!=null&&tn.length)&&(tn==null?void 0:tn.map((Ge,fn)=>{var In;const{name:Ke,id:cn,identifier:_e,featured:on,school_name:dn,image_url:ln,excellent:xn,is_plan:yn}=Ge;return Ue.createElement("div",{key:cn,className:Ne.wrap,style:{width:mn,marginRight:(1+fn)%nn===0?0:Qe+vn,marginBottom:Fe}},Ue.createElement("a",{className:Ne.li,onClick:Mn=>{Mn.preventDefault(),Mn.stopPropagation(),Ze&&(0,Qt.L9)([Ze]),(0,Qt.xg)(`/paths/${_e}`)}},Ue.createElement("div",{className:Ne.img},Ue.createElement("img",{className:Ne.cover,src:`${ln}`}),Pn&&(0,pe.bg)()&&(Ge==null?void 0:Ge.studying)&&Ue.createElement("div",{className:`${Ne.movebq} user-path-items`,onClick:Mn=>{Mn.stopPropagation(),gn(Ge)}},Ue.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),Ue.createElement("span",{className:"c-red"},"\u79FB\u9664")),(In=Ge==null?void 0:Ge.subject_tags)==null?void 0:In.map((Mn,On)=>{var En,jn;if(On===0){const pi=(En=Me.find(ii=>ii.name==Mn))==null?void 0:En.swimg;return Ue.createElement("img",{className:Ne.sign,src:pi,style:{left:"-4px"}})}const ei=(jn=Me.find(pi=>pi.name==Mn))==null?void 0:jn.ptimg;return Ue.createElement("img",{className:Ne.sign,src:ei,style:{left:`${48+52*(On-1)+2*On}px`}})}),Ue.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(Ge==null?void 0:Ge.excellent)&&Ue.createElement("div",{className:Ne.bq},"\u5F00\u653E\u8BFE\u7A0B"))),Ue.createElement("div",{className:Ne.name},Ue.createElement(Dt.Z,{title:Un&&(Ge!=null&&Ge.excellent_alias_name)?Ue.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Ke}`,Ue.createElement("br",null),Ue.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Ge==null?void 0:Ge.excellent_alias_name}`)):Ke},Ue.createElement("span",{className:Ne.e},Un&&(Ge==null?void 0:Ge.excellent_alias_name)||Ke))),Ue.createElement(Dt.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${dn}`},Ue.createElement("div",{className:Ne.unit},Ue.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),dn)),Ue.createElement("div",{className:Ne.tags},Ue.createElement("div",null,Ue.createElement(Dt.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Ue.createElement("span",null,Ue.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Ue.createElement("span",null,Ge.stages_count))),Ue.createElement(Dt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Ue.createElement("span",null,Ue.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Ue.createElement("span",null,Ge.members_count)))))))})),!tn.length&&Ue.createElement(oe.Z,null)))},ee={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"},ae="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9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8cseAAAAAElFTkSuQmCC",fe=Gt(59301),De=({className:qn,dataSource:tn=[],col:nn=4,right:Qe,bottom:Fe=23,precision:vn=0,wrapWidth:bn=1200,trackEventItems:Ze,loading:Ae})=>{const gn=Math.floor((bn-(nn-1)*Qe)/nn);return fe.createElement(Ct.Z,{spinning:Ae},fe.createElement("div",{className:Ot()(ee.list,qn)},!!tn.length&&tn.map((Pn,Un)=>{const{subject_identifier:mn,id:Me,identifier:Ge,power:fn}=Pn,In=Pn.is_public!=0&&Pn.is_public;return fe.createElement("div",{className:ee.wrap,key:Me,style:{width:gn,marginRight:(1+Un)%nn===0?0:Qe+vn,marginBottom:Fe}},fe.createElement("a",{className:ee.li,onClick:Ke=>{Ke.preventDefault(),Ze&&(0,Qt.L9)([Ze]),(0,Qt.xg)(Pn.first_category_url)}},fe.createElement("div",{className:ee.top},fe.createElement(Dt.Z,{title:Pn.name},fe.createElement("div",{className:ee.name},Pn.name)),fe.createElement("img",{className:ee.img,src:Ft.Z.IMG_SERVER+"/images/"+Pn.avatar_url}),fe.createElement("div",{className:ee.text,title:Pn.creator},Pn.creator),mn&&fe.createElement("div",{className:ee.btns},fe.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),fe.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),In&&fe.createElement("div",{className:ee.sign},"\u516C\u5F00")),fe.createElement("div",{className:ee.bottom},Pn.visits>0&&fe.createElement(Dt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},fe.createElement("span",null,fe.createElement("i",{className:"iconfont icon-liulanyan"}),fe.createElement("span",null,Pn.visits))),Pn.course_members_count>0&&fe.createElement(Dt.Z,{title:"\u6210\u5458",placement:"bottom"},fe.createElement("span",null,fe.createElement("i",{className:"iconfont icon-chengyuan"}),Pn.course_members_count)),Pn.tasks_count>0&&fe.createElement(Dt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},fe.createElement("span",null,fe.createElement("i",{className:"iconfont icon-zuoye"}),Pn.tasks_count)),Pn.is_end?fe.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):fe.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Pn.is_accessible&&fe.createElement("div",{className:ee.lockWrap},fe.createElement("img",{src:`${Ft.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),fe.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!tn.length&&fe.createElement(oe.Z,null)))},Oe={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"},en=Gt(42203),rn=({dataSource:qn=[],value:tn,onChange:nn,className:Qe,style:Fe={},tabBarExtraContent:vn})=>Rt.createElement("div",{className:Ot()(Oe.tabs,Qe),style:Fe},Rt.createElement("div",{className:Oe.tabsWrap},qn.map((bn,Ze)=>Rt.createElement("aside",{className:Oe.tab,onClick:()=>{nn(bn.id),bn.link&&en.history.push(bn.link)},key:Ze},Rt.createElement("div",{className:tn===bn.id?Oe.active:""},bn.name),(bn==null?void 0:bn.resetCount)==null&&(bn==null?void 0:bn.total)!==void 0&&Rt.createElement("span",null,"\uFF08",bn==null?void 0:bn.total,"\uFF09"),(bn==null?void 0:bn.resetCount)!==void 0&&(bn==null?void 0:bn.total)!==void 0&&Rt.createElement(Dt.Z,{title:(bn==null?void 0:bn.tip)!=null?bn==null?void 0:bn.tip:""},Rt.createElement("span",{style:{color:"#9096A3"}},"\uFF08",Rt.createElement("span",{style:{color:"#000"}},bn==null?void 0:bn.resetCount),"/",Rt.createElement("span",null,bn==null?void 0:bn.total),"\uFF09"))))),Rt.createElement("div",{className:Oe.tabBar},vn)),Ie=({className:qn,style:tn={},children:nn})=>Rt.createElement("div",{className:Ot()(qn),style:tn},nn),je={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"},$e=Gt(38854),me=Gt(20834);const le=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var ce=({sortValue:qn,dropValue:tn,className:nn,onSort:Qe,onDrop:Fe,dataSource:vn=le})=>{var bn;return Rt.createElement("div",{className:Ot()(je.orderWrap,nn)},Rt.createElement($e.Z,{dropdownRender:()=>Rt.createElement(me.default,null,vn.map((Ze,Ae)=>Rt.createElement(me.default.Item,{key:Ae,onClick:()=>Fe(Ze.id)},Ze.name)))},Rt.createElement("span",{className:je.orderTextWrap},(bn=vn.find(Ze=>tn===Ze.id))==null?void 0:bn.name)),Rt.createElement("span",{className:je.orderIconWrap},Rt.createElement("span",{className:je.orderAsc},Rt.createElement("i",{className:qn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${je.cursorPointer} ${je.active}`:`iconfont icon-sanjiaoxing-up font12 ${je.cursorPointer}`,onClick:()=>Qe(qn==="asc"?"desc":"asc")})),Rt.createElement("span",{className:je.orderDesc},Rt.createElement("i",{className:qn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${je.cursorPointer} ${je.active}`:`iconfont icon-sanjiaoxing-down font12 ${je.cursorPointer}`,onClick:()=>Qe(qn==="asc"?"desc":"asc")}))))},he={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"},_t=Gt(3113),Mt=Object.defineProperty,Et=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,Pt=Object.prototype.propertyIsEnumerable,dt=(qn,tn,nn)=>tn in qn?Mt(qn,tn,{enumerable:!0,configurable:!0,writable:!0,value:nn}):qn[tn]=nn,gt=(qn,tn)=>{for(var nn in tn||(tn={}))Ht.call(tn,nn)&&dt(qn,nn,tn[nn]);if(Et)for(var nn of Et(tn))Pt.call(tn,nn)&&dt(qn,nn,tn[nn]);return qn},zt=(qn,tn)=>{var nn={};for(var Qe in qn)Ht.call(qn,Qe)&&tn.indexOf(Qe)<0&&(nn[Qe]=qn[Qe]);if(qn!=null&&Et)for(var Qe of Et(qn))tn.indexOf(Qe)<0&&Pt.call(qn,Qe)&&(nn[Qe]=qn[Qe]);return nn},re=(qn,tn,nn)=>new Promise((Qe,Fe)=>{var vn=Ae=>{try{Ze(nn.next(Ae))}catch(gn){Fe(gn)}},bn=Ae=>{try{Ze(nn.throw(Ae))}catch(gn){Fe(gn)}},Ze=Ae=>Ae.done?Qe(Ae.value):Promise.resolve(Ae.value).then(vn,bn);Ze((nn=nn.apply(qn,tn)).next())}),ye=qn=>{var tn=qn,{className:nn,style:Qe,children:Fe,loading:vn=!1,openLoading:bn,onClick:Ze=()=>{},size:Ae="middle",shape:gn="round"}=tn,Pn=zt(tn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Un,mn]=(0,Rt.useState)(!1);return Rt.createElement(_t.ZP,gt({onClick:(0,Bt.throttle)(Me=>re(void 0,null,function*(){bn&&mn(!0);try{yield Ze(Me)}catch(Ge){console.log("error",Ge)}bn&&mn(!1)}),2e3,{leading:!0,trailing:!1}),className:Ot()(he.btn,he[`${Ae}-${gn}`],nn),style:Qe,size:Ae,shape:gn,loading:Un||vn},Pn),Fe)},Ye={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"},Le=({className:qn,style:tn,children:nn=null,onClick:Qe,title:Fe})=>Rt.createElement("div",{className:Ot()(Ye.head,qn),style:tn},Rt.createElement("span",{className:"primary-hover",onClick:Qe},Rt.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),Rt.createElement("b",{title:Fe},Fe),Rt.createElement("div",{className:Ye.node},nn)),Re={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"},wn=({confirmShow:qn=!0,confirmTitle:tn,confirmClick:nn,cancelShow:Qe=!0,cancelTitle:Fe,cancelClick:vn,className:bn,style:Ze,confirmLoading:Ae=!1})=>Rt.createElement("div",{className:Ot()(Re.btns,bn),style:Ze},qn&&Rt.createElement(_t.ZP,{loading:Ae,onClick:nn,type:"primary",className:Re.confirm},tn),Qe&&Rt.createElement(_t.ZP,{onClick:vn,className:Re.cancel},Fe)),kn={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"},Yn=({className:qn,style:tn={},LeftContent:nn,children:Qe,RightContent:Fe})=>Rt.createElement("div",{className:Ot()(kn.fixedBottom,qn),style:tn},Rt.createElement("div",{className:kn.wrap},Rt.createElement("div",{className:kn.left},nn),Rt.createElement("div",{className:kn.center},Qe),Rt.createElement("div",{className:kn.right},Fe))),Kn={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},mi=({className:qn,style:tn={},dataSource:nn=[]})=>Rt.createElement("div",{className:Ot()(Kn.crumbs,qn),style:tn},nn.map((Qe,Fe)=>Fe<nn.length-1?Rt.createElement(Rt.Fragment,{key:Fe},Qe.path||Qe.onClick?Rt.createElement("span",{className:Kn.hover,onClick:Qe!=null&&Qe.onClick?Qe.onClick:()=>en.history.push(Qe.path)},Qe.name):Rt.createElement("span",null,Qe.name),Rt.createElement("span",null,"\xA0",">","\xA0")):Rt.createElement("span",{key:Fe,style:{color:"#5F6368"}},Qe.name))),yi=Gt(31797),Pi=Object.defineProperty,Mi=Object.defineProperties,Gi=Object.getOwnPropertyDescriptors,bi=Object.getOwnPropertySymbols,Ki=Object.prototype.hasOwnProperty,ui=Object.prototype.propertyIsEnumerable,te=(qn,tn,nn)=>tn in qn?Pi(qn,tn,{enumerable:!0,configurable:!0,writable:!0,value:nn}):qn[tn]=nn,Yi=(qn,tn)=>{for(var nn in tn||(tn={}))Ki.call(tn,nn)&&te(qn,nn,tn[nn]);if(bi)for(var nn of bi(tn))ui.call(tn,nn)&&te(qn,nn,tn[nn]);return qn},Ti=(qn,tn)=>Mi(qn,Gi(tn)),or=(qn,tn)=>{var nn={};for(var Qe in qn)Ki.call(qn,Qe)&&tn.indexOf(Qe)<0&&(nn[Qe]=qn[Qe]);if(qn!=null&&bi)for(var Qe of bi(qn))tn.indexOf(Qe)<0&&ui.call(qn,Qe)&&(nn[Qe]=qn[Qe]);return nn};const{Countdown:Sr}=yi.default;var vr=qn=>{var tn=qn,{onChange:nn}=tn,Qe=or(tn,["onChange"]);const[Fe,vn]=(0,Rt.useState)(null);(0,Rt.useEffect)(()=>{typeof Fe=="number"&&Fe>=0&&nn(Fe)},[Fe]);const bn=Ze=>{const Ae=Math.floor(Ze/1e3);vn(Ae)};return Rt.createElement(Sr,Ti(Yi({},Qe),{onChange:bn}))}},91300:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return yt}});var Rt=Gt(59301);function yt(Vt,Yt){const Nt=(0,Rt.useRef)();(0,Rt.useEffect)(()=>{Nt.current=Vt}),(0,Rt.useEffect)(()=>{function Wt(){Nt.current()}if(Yt!==null){let xt=setInterval(Wt,Yt);return()=>clearInterval(xt)}},[Yt])}},76904:function(Nn,An,Gt){"use strict";Gt.d(An,{$J:function(){return Vt},JZ:function(){return Nt},bN:function(){return xt},jP:function(){return Wt},rO:function(){return Yt}});var Rt=Gt(70635),yt=(Ot,Bt,At)=>new Promise((bt,Tt)=>{var It=tt=>{try{et(At.next(tt))}catch(st){Tt(st)}},vt=tt=>{try{et(At.throw(tt))}catch(st){Tt(st)}},et=tt=>tt.done?bt(tt.value):Promise.resolve(tt.value).then(It,vt);et((At=At.apply(Ot,Bt)).next())});function Vt(Ot){return(0,Rt.U2)(`libraries/${Ot}.json`)}function Yt(){return(0,Rt.U2)("library_tags.json")}function Nt(Ot){return yt(this,null,function*(){return(yield(0,Rt.IV)(`attachments/${Ot}.json`)).status===0})}function Wt(Ot){return(0,Rt.v_)("libraries.json",Ot)}function xt(Ot,Bt){return(0,Rt.gz)(`libraries/${Ot}.json`,Bt)}},21015:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ut}});var Rt=Gt(59301),yt=Gt(42203),Vt=Gt(92832),Yt=Gt(78241),Nt=Gt(8591),Wt=Gt(43418),xt=Gt(93948),Ot=Gt(24905),Bt=Gt(12563),At={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"},bt=Gt(72917),Tt=Gt(64286),It=Gt(2119),vt=Object.defineProperty,et=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,rt=(Ft,Qt,$t)=>Qt in Ft?vt(Ft,Qt,{enumerable:!0,configurable:!0,writable:!0,value:$t}):Ft[Qt]=$t,ut=(Ft,Qt)=>{for(var $t in Qt||(Qt={}))tt.call(Qt,$t)&&rt(Ft,$t,Qt[$t]);if(et)for(var $t of et(Qt))st.call(Qt,$t)&&rt(Ft,$t,Qt[$t]);return Ft},ct=(Ft,Qt,$t)=>new Promise((Kt,ue)=>{var oe=Ne=>{try{Se($t.next(Ne))}catch(pe){ue(pe)}},we=Ne=>{try{Se($t.throw(Ne))}catch(pe){ue(pe)}},Se=Ne=>Ne.done?Kt(Ne.value):Promise.resolve(Ne.value).then(oe,we);Se(($t=$t.apply(Ft,Qt)).next())});const{TextArea:pt}=Vt.default,mt=1024,Ct=(Ft,Qt)=>{var $t;const{uploadInfo:Kt={}}=Qt.payload||{};switch(Qt.type){case"addVideo":return{videoList:[...Ft.videoList,{name:Kt.file.name,size:Kt.file.size,type:Kt.file.type,fileHash:Kt.fileHash,state:Kt.state,videoId:Kt.videoId,loaded:Kt.loaded||0,title:""}]};case"removeVideo":return{videoList:Ft.videoList.filter(ue=>ue.name!==Qt.payload.name)};case"removeAll":return{videoList:[]};case"updateProgress":return{videoList:Ft.videoList.map(ue=>ue.name===Qt.payload.uploadInfo.file.name?ut(ut({},ue),{loaded:Qt.payload.progressPercent,videoId:Kt.videoId,fileHash:Kt.fileHash}):ue)};case"updateTitle":return{videoList:($t=Ft.videoList)==null?void 0:$t.map(ue=>ue.name===Qt.payload.item.name?ut(ut({},ue),{title:Qt.payload.title}):ue)};default:return{videoList:[]}}},Dt=({user:Ft,globalSetting:Qt,loading:$t,dispatch:Kt,visible:ue,editData:oe,onCancel:we=()=>{},onOk:Se=()=>{},queryParams:Ne={}})=>{var pe;const Ue=(0,yt.useParams)(),[de]=Yt.default.useForm(),[Jt,ee]=(0,Rt.useReducer)(Ct,{videoList:[]}),[ae,fe]=(0,Rt.useState)(!1),se=(0,Rt.useRef)(),[De,Oe]=(0,Rt.useState)(),[en,We]=(0,Rt.useState)(!1),[rn,ke]=(0,Rt.useState)(!1),Ie=(0,It.Ny)()?3:1;(0,Rt.useEffect)(()=>{var dt,gt,zt;ue&&oe&&(We(oe.is_link),Oe(oe.link),!oe.is_link&&ee({type:"addVideo",payload:{uploadInfo:{file:{name:oe.filename||""},videoId:oe.video_id,loaded:100}}}),Et(((dt=oe==null?void 0:oe.tags)==null?void 0:dt.map(re=>re==null?void 0:re.name))||[]),de.setFieldsValue({name:oe.name,description:oe.description,attachment_id:(gt=oe==null?void 0:oe.video)==null?void 0:gt.attachment_id,allow_skip:(zt=oe==null?void 0:oe.video_item)==null?void 0:zt.allow_skip}))},[oe,ue]);const je=()=>{const dt=document.getElementById("fileUpload");dt.value=""},$e=dt=>{var gt;We(!1);const zt=dt.target.files[0];if(!zt){je();return}const re=zt.name.toLowerCase();if(re&&re.indexOf(".avi")==-1&&re.indexOf(".flv")==-1&&re.indexOf(".f4v")==-1&&re.indexOf(".m4v")==-1&&re.indexOf(".mov")==-1&&re.indexOf(".mp4")==-1&&re.indexOf(".rmvb")==-1&&re.indexOf(".swf")==-1&&re.indexOf(".webm")==-1&&re.indexOf(".wmv")==-1){Nt.ZP.info("\u4E0D\u652F\u6301\u7684\u89C6\u9891\u683C\u5F0F"),je();return}if(zt.size>mt*Ie*1024*1024){Nt.ZP.info(`\u89C6\u9891\u5927\u5C0F\u8D85\u8FC7${Ie}G`),je();return}if((gt=Jt.videoList)!=null&>.find(Zt=>Zt.name===zt.name)){Nt.ZP.info("\u4F60\u4E0D\u80FD\u4E0A\u4F20\u540C\u4E00\u4E2A\u89C6\u9891\u6587\u4EF6\u540D\u79F0\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9\u3002"),je();return}le(zt)},me=(dt,gt)=>{Wt.default.confirm({title:"\u63D0\u793A",centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",content:Rt.createElement("div",{className:"tc"},"\u60A8\u786E\u8BA4\u8981",gt?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20","\u8BE5\u89C6\u9891\u5417\uFF1F"),onOk:()=>{je(),ee({type:"removeVideo",payload:{name:dt}})}})},le=dt=>{var gt,zt='{"Vod":{}}';if(fe(!0),se.current){se.current.addFile(dt,null,null,null,zt);return}(0,bt.o)((gt=Ft.userInfo)==null?void 0:gt.login,"",{create:!se,addFileSuccess:re=>{ee({type:"addVideo",payload:{uploadInfo:re}})},onUploadProgress:(re,Zt,ye)=>{const Ye=Math.ceil(ye*100);ee({type:"updateProgress",payload:{uploadInfo:re,progressPercent:Ye}}),je()},onUploadFailed:re=>{Nt.ZP.info("\u89C6\u9891\u4E91\u670D\u52A1\u51FA\u73B0\u5F02\u5E38\uFF0C\u8BF7\u91CD\u65B0\u4E0A\u4F20\u3002")},onUploadEnd:re=>{fe(!1)},onUploadSucceed:re=>{fe(!1)},onUploadError:re=>{fe(!1)},gotUploader:re=>{re.addFile(dt,null,null,null,zt),se.current=re}})},Ee=()=>ct(void 0,null,function*(){var dt,gt;if(yield de.validateFields(),!en&&!((dt=Jt.videoList)!=null&&dt.length)||en&&!De){Nt.ZP.info("\u8BF7\u5148\u4E0A\u4F20\u89C6\u9891\u6216\u8005\u6DFB\u52A0\u5916\u94FE");return}ke(!0);const zt=en?{link:De}:{video_id:(gt=Jt.videoList)==null?void 0:gt[0].videoId},re=yield Se(ut(ut(ut({},zt),Ne),{name:de.getFieldValue("name"),attachment_id:de.getFieldValue("attachment_id"),description:de.getFieldValue("description"),tags:de.getFieldValue("tag"),allow_skip:de.getFieldValue("allow_skip")}));ke(!1),re.id&&ce()}),ce=()=>{de.resetFields(),ee({type:"removeAll"}),Oe(null),Et([]),We(null)},he=()=>{we(),ce()},_t=()=>{var dt,gt,zt,re,Zt,ye,Ye,sn,Le,Re,hn,wn;return Rt.createElement(Rt.Fragment,null,!en&&!!((dt=Jt.videoList)!=null&&dt.length)&&Rt.createElement("div",{className:At.fileProgress},((zt=(gt=Jt.videoList)==null?void 0:gt[0])==null?void 0:zt.loaded)==100?Rt.createElement("div",{className:`${At.videoName} font14`},(Zt=(re=Jt.videoList)==null?void 0:re[0])==null?void 0:Zt.name):Rt.createElement(xt.Z,{style:{width:"80%"},percent:(Ye=(ye=Jt.videoList)==null?void 0:ye[0])==null?void 0:Ye.loaded,status:((Le=(sn=Jt.videoList)==null?void 0:sn[0])==null?void 0:Le.loaded)==100?"normal":"active"}),Rt.createElement("div",{className:At.fileCancel,onClick:()=>{var kn,Rn,Yn,Kn;return me((Rn=(kn=Jt.videoList)==null?void 0:kn[0])==null?void 0:Rn.name,((Kn=(Yn=Jt.videoList)==null?void 0:Yn[0])==null?void 0:Kn.loaded)==100)}},((hn=(Re=Jt.videoList)==null?void 0:Re[0])==null?void 0:hn.loaded)===100?"\u5220\u9664":"\u53D6\u6D88\u4E0A\u4F20")),!((wn=Jt.videoList)!=null&&wn.length)&&Rt.createElement("div",{className:At.uploadWrap},Rt.createElement("label",{htmlFor:"fileUpload",className:At.upload},Rt.createElement("i",{className:"iconfont icon-shangchuanshipin1 mr5"}),"\u4E0A\u4F20\u89C6\u9891"),Rt.createElement("label",{className:`${At.upload} ${At.uploadLink}`,onClick:()=>We(!0)},Rt.createElement("i",{className:"iconfont icon-lianjie1 mr5"}),"\u6DFB\u52A0\u5916\u94FE")),en&&Rt.createElement(Vt.default,{className:"mt5",placeholder:"\u8BF7\u8F93\u5165\u89C6\u9891\u94FE\u63A5",value:De,onChange:kn=>Oe(kn.target.value)}))},[Mt,Et]=(0,Rt.useState)([]),Ht=dt=>{if(dt.key=="Enter"){const gt=de.getFieldValue("tag");if(de.setFieldsValue({tag:""}),!gt){Nt.ZP.info("\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A");return}if(Mt.filter(zt=>zt===gt).length>0){Nt.ZP.info("\u5DF2\u6709\u76F8\u540C\u540D\u79F0\u6807\u7B7E");return}Mt.push(gt),Et([...Mt])}},Pt=(dt,gt)=>{dt.preventDefault(),Et([...Mt.filter(zt=>zt!=gt)])};return Rt.createElement(Wt.default,{centered:!0,maskClosable:!1,destroyOnClose:!0,title:oe?"\u7F16\u8F91\u89C6\u9891\u9879\u76EE":"\u65B0\u5EFA\u89C6\u9891\u9879\u76EE",width:740,className:At.modal,open:ue,confirmLoading:rn,onOk:Ee,onCancel:he},Rt.createElement(Yt.default,{form:de},Rt.createElement("input",{type:"file",id:"fileUpload",style:{display:"none"},onChange:$e,accept:".mkv, .flv, .f4v, .rmvb, .swf, video/mp4,video/x-m4v,video/flv,video/f4v,video/rmvb,video/swf,video/*"}),Rt.createElement(Yt.default.Item,{label:"\u9879\u76EE\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0"}]},Rt.createElement(Vt.default,{maxLength:40,placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC740\u5B57\u7684\u9879\u76EE\u540D\u79F0"})),Rt.createElement(Yt.default.Item,{label:"\u9879\u76EE\u5185\u5BB9",name:"content",className:At.contentItem},_t()),Rt.createElement(Yt.default.Item,{name:"attachment_id",label:"\u4E0A\u4F20\u5C01\u9762\u56FE:"},Rt.createElement(Tt.Z,{getFileProgress:dt=>{if(dt.file.status==="uploading"){ke(!0);return}dt.file.status==="done"&&ke(!1)}})),Rt.createElement(Yt.default.Item,{label:"\u9879\u76EE\u7B80\u4ECB",name:"description",className:"ml8"},Rt.createElement(pt,{rows:5,maxLength:800,placeholder:"\u8BF7\u8F93\u5165\u672C\u89C6\u9891\u7B80\u4ECB\uFF0C\u6700\u591A\u4E0D\u8D85\u8FC7800\u5B57"})),Rt.createElement(Yt.default.Item,{label:"\u77E5\u8BC6\u6807\u7B7E",name:"tag",className:"ml8"},Rt.createElement(Vt.default,{onKeyUp:Ht})),Rt.createElement(Yt.default.Item,{label:"\u64AD\u653E\u8BBE\u7F6E",name:"allow_skip",valuePropName:"checked",className:"ml8",initialValue:!0},Rt.createElement(Ot.default,null,"\u5141\u8BB8\u5FEB\u8FDB\u64AD\u653E")),Rt.createElement("div",{className:At["tagsList-content"]},Mt.map((dt,gt)=>Rt.createElement(Bt.default,{key:gt+dt,closable:!0,onClose:zt=>{Pt(zt,dt)}},dt))),Rt.createElement("div",{className:"c-grey-999"},Rt.createElement("div",null,"\u6CE8\u610F\uFF1A"),Rt.createElement("div",null,"1\u3001\u4E0A\u4F20\u89C6\u9891\uFF0C\u5373\u8868\u793A\u60A8\u5DF2\u540C\u610F",Rt.createElement(yt.Link,{to:`/users/${(pe=Ft.userInfo)==null?void 0:pe.login}/videos/protocol`,target:"_blank",className:At.colorBlue},"\u4E0A\u4F20\u5185\u5BB9\u534F\u8BAE"),"\uFF0C\u4E0D\u5F97\u4E0A\u4F20\u672A\u7ECF\u4ED6\u4EBA\u6388\u6743\u7684\u4F5C\u54C1\uFF1B"),Rt.createElement("div",null,"2\u3001\u4E0D\u652F\u6301\u65AD\u70B9\u7EED\u4F20\uFF0C\u6587\u4EF6\u5927\u5C0F\u8BF7\u52FF\u8D85\u8FC7",Ie,"G\uFF1B"),Rt.createElement("div",null,"3\u3001\u652F\u6301\u6587\u4EF6\u683C\u5F0F\uFF1Aavi\u3001flv\u3001f4v\u3001m4v\u3001mov\u3001mp4\u3001rmvb\u3001swf\u3001webm\u3001wmv\uFF1B"),Rt.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 Ut=(0,yt.connect)(({user:Ft,loading:Qt,globalSetting:$t})=>({user:Ft,globalSetting:$t,loading:Qt}))(Dt)},72917:function(Nn,An,Gt){"use strict";Gt.d(An,{o:function(){return Bt}});var Rt=Gt(70635),yt=Gt(93125),Vt=Gt.n(yt);let Yt="",Nt,Wt="";function xt(At){Ot(At)}function Ot(At){Nt=new(Vt()).Vod({timeout:6e4,partSize:1048576,parallel:5,retryCount:3,retryDuration:2,region:"ap-southeast-1",userId:0x6803cbd867207,enableUploadProgress:!1,addFileSuccess:function(bt){console.log("addFileSuccess: "+bt.file.name),At.addFileSuccess&&At.addFileSuccess(bt),Nt.startUpload()},onUploadstarted:function(bt){const Tt=bt.file.name;if(bt.videoId){var vt=`/api/users/${Yt}/video_auths.json`;(0,Rt.ZP)(vt,{method:"put",body:{video_id:bt.videoId,title:Tt,file_name:Tt,virtual_classroom_id:Wt}}).then(et=>{if(et.status==-1){At.onUploadError&&At.onUploadError(bt);return}const tt=et.data;var st=tt.UploadAuth,rt=tt.UploadAddress,ut=tt.VideoId;Nt.setUploadAuthAndAddress(bt,st,rt)}).catch(et=>{Nt.deleteFile(Nt._curIndex),Nt.nextUpload(),console.log(et)})}else{var It=`/api/users/${Yt}/video_auths.json`;const et="";(0,Rt.ZP)(It,{method:"Post",body:{title:et+Tt,file_name:et+Tt,virtual_classroom_id:Wt}}).then(tt=>{if(tt){const ct=tt.data;var st=ct.UploadAuth,rt=ct.UploadAddress,ut=ct.VideoId;Nt.setUploadAuthAndAddress(bt,st,rt,ut)}}).catch(tt=>{Nt.deleteFile(Nt._curIndex),Nt.nextUpload(),console.log(tt)}),console.log("\u6587\u4EF6\u5F00\u59CB\u4E0A\u4F20...")}},onUploadSucceed:function(bt){At.onUploadSucceed&&At.onUploadSucceed(bt),console.log("\u6587\u4EF6\u4E0A\u4F20\u6210\u529F!")},onUploadFailed:function(bt,Tt,It){At.onUploadFailed&&At.onUploadFailed(bt),console.log("\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25!")},onUploadCanceled:function(bt,Tt,It){console.log("\u6587\u4EF6\u4E0A\u4F20\u5DF2\u6682\u505C!")},onUploadProgress:function(bt,Tt,It){At.onUploadProgress&&At.onUploadProgress(bt,Tt,It);var vt=Math.ceil(It*100);console.log("\u6587\u4EF6\u4E0A\u4F20\u4E2D...")},onUploadTokenExpired:function(bt){console.log("\u6587\u4EF6\u4E0A\u4F20\u8D85\u65F6!");var Tt=`/api/users/${Yt}/video_auths.json`;(0,Rt.ZP)(Tt,{method:"put",body:{video_id:bt.videoId}}).then(It=>{var et=It.data.UploadAuth;Nt.resumeUploadWithAuth(et)}).catch(It=>{console.log(It)})},onUploadEnd:function(bt){At.onUploadEnd&&At.onUploadEnd(bt),console.log("onUploadEnd: uploaded all the files")}}),At.gotUploader&&At.gotUploader(Nt)}function Bt(At,bt,Tt){At&&(Yt=At),bt&&(Wt=bt),xt(Tt)}},31087:function(Nn,An,Gt){"use strict";Gt.d(An,{AL:function(){return pt},Iy:function(){return bt},Qv:function(){return vt},ez:function(){return ct},jb:function(){return Tt}});var Rt=Gt(32834),yt=Gt.n(Rt),Vt=Gt(11690),Yt=Gt.n(Vt);let Nt=1;function Wt(Ft,Qt){const $t=Ft.match(/^(\s+)(?:```)/);if($t===null)return Qt;const Kt=$t[1];return Qt.split(`
|
|
|
`).map(ue=>{const oe=ue.match(/^\s+/);if(oe===null)return ue;const[we]=oe;return we.length>=Kt.length?ue.slice(Kt.length):ue}).join(`
|
|
|
`)}let xt=[],Ot=["<ul>"];const Bt=new(yt()).Renderer,At=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function bt(){xt.length=0,Ot=["<ul>"]}const Tt={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function It(Ft,Qt,$t,Kt){if(Qt>=Ft.length||Ft[Qt].level<=$t)return Qt;var ue=Ft[Qt];Kt.push("<li><a href='#"+Nt+ue.anchor+"'>"+ue.text+"</a>"),Qt++;var oe=[];return Qt=It(Ft,Qt,ue.level,oe),oe.length>0&&(Kt.push("<ul>"),oe.forEach(function(we){Kt.push(we)}),Kt.push("</ul>")),Kt.push("</li>"),Qt=It(Ft,Qt,$t,Kt),Qt}function vt(){return It(xt,0,0,Ot),Ot.push("</ul>"),Ot.join("")}const et={heading(Ft){const Qt=At.exec(Ft);if(Nt+=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 $t=Qt[0];let Kt=Wt($t,Qt[3]||"");const ue=Qt[2]?Qt[2].trim():Qt[2];if(["latex","katex","math"].indexOf(ue)>=0){const oe=rt(),we=Kt;Kt=oe,ut[oe]={type:"block",expression:we}}return{type:"code",raw:$t,lang:ue,text:Kt}}}},tt=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let st=0;const rt=()=>`__special_katext_id_${st++}__`;let ut={};function ct(){return ut}function pt(){st=0,ut={}}function mt(Ft){return Ft=Ft.replace(tt,(Qt,$t)=>{const Kt=rt();return ut[Kt]={type:"inline",expression:$t},Kt}),Ft}const Ct=Bt.listitem;Bt.listitem=function(Ft){return Ct(mt(Ft))};const Dt=Bt.paragraph;Bt.paragraph=function(Ft){return Dt(mt(Ft))};const Ut=Bt.tablecell;Bt.tablecell=function(Ft,Qt){return Ut(mt(Ft),Qt)},Bt.code=function(Ft,Qt,$t){const Kt=(Qt||"").match(/\S*/)[0];return Kt?["latex","katex","math"].indexOf(Kt)>=0?`<p class='editormd-tex'>${Ft}</p>`:`<pre class="prettyprint linenums"><code class="language-${Qt}">${$t?Ft:(0,Vt.escape)(Ft,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+($t?Ft:(0,Vt.escape)(Ft,!0))+"</code></pre>"},Bt.heading=function(Ft,Qt,$t){let Kt=this.options.headerPrefix+$t.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return xt.push({anchor:Kt,level:Qt,text:Ft}),"<h"+Qt+' id="'+Nt+Kt+'">'+Ft+"</h"+Qt+">"},yt().setOptions({silent:!0,gfm:!0,pedantic:!1}),yt().use({tokenizer:et,renderer:Bt}),An.ZP=yt()},18032:function(Nn,An,Gt){"use strict";Gt.d(An,{rX:function(){return pt},pW:function(){return mt},gy:function(){return Ct},xY:function(){return ct},O5:function(){return ut},tJ:function(){return vt},o1:function(){return et},Rd:function(){return rt}});var Rt=Gt(42203),yt=Gt(43418),Vt=Gt(28103),Yt=Gt(8591),Nt=Gt(2119),Wt=Gt(58130),xt=Gt(80205),Ot=Gt(25510),Bt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UIIBgBAgeR0AwAAjEJgAQAZCCwAIAOBBQBkILAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMxfhbOedOt7a/nKUmcrbT2aIUxned8Xaa/DhMbsi2dppk8nO3ovG27XnbemTbDmE4wgIAQhBYAEAGAgsAyEBgAQAZCCwAIAOBBQBk5DGsIaedO3dWVFRY3cpVq1atXLnS4JuNj3WwgvF7tCbHZFhxe9u2dZp8Z04uHGlhxbAbKz44F/6KB2I2sCoqKqqqqqzuajgctnoTACMWoV8xTgkBgAwEFgCQgcACADIQWABABgILAMgwe5cwJ5O3jVtaWgp+z8KKW+bOPvjuwq1bMaTD+OLG2+ks2/aSSS78FTMcYQEAIQgsACADgQUAZCCwAIAMBBYAkIHAAgA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DIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",At=Gt.p+"static/newqrcode.a8740efb.png",bt=Gt(32637),Tt=Gt(59301),It=(Dt,Ut,Ft)=>new Promise((Qt,$t)=>{var Kt=we=>{try{oe(Ft.next(we))}catch(Se){$t(Se)}},ue=we=>{try{oe(Ft.throw(we))}catch(Se){$t(Se)}},oe=we=>we.done?Qt(we.value):Promise.resolve(we.value).then(Kt,ue);oe((Ft=Ft.apply(Dt,Ut)).next())});const vt=(Dt,Ut=!1)=>!!(et(Dt)&&tt(Ut)),et=Dt=>(0,Nt.bg)()?!0:(Dt({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),tt=(Dt=!1)=>{var Ut;const{user:Ft}=(0,Rt.getDvaApp)()._store.getState();return(Ut=Ft.userInfo)!=null&&Ut.profile_completed?!0:(yt.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,Wt.xg)("/account/profile/edit"),st()}}),!1)},st=()=>{yt.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=()=>{yt.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:Tt.createElement("div",{style:{textAlign:"center"}},Tt.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"),Tt.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:bt}),Tt.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:Ut}=(0,Rt.getDvaApp)()._store.getState();return(Dt=Ut.userInfo)!=null&&Dt.professional_certification?!0:(yt.default.confirm({title:"\u63D0\u793A",centered:!0,content:Tt.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,Wt.xg)("/account/certification")}}),!1)},ct=()=>(0,Nt.V9)()?!0:(yt.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:Tt.createElement("div",{className:"tc",style:{marginLeft:-38}},Tt.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),Tt.createElement("img",{src:At,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),pt=(Dt,Ut)=>Dt?!0:(yt.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:Tt.createElement("div",null,Tt.createElement("p",null,Ut||"\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"),Tt.createElement("div",{style:{marginLeft:"110px"}},Tt.createElement("img",{src:Bt,width:200}),Tt.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,Wt.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),mt=Dt=>{yt.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:Tt.createElement("div",null,Tt.createElement("div",null,Tt.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"),Tt.createElement(Vt.Z,null),Tt.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Tt.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 ",Tt.createElement("a",null,Dt),"\u5929\u3002"),Tt.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Tt.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")),Tt.createElement("div",{style:{textAlign:"center",marginTop:30}},Tt.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Ot,alt:"\u4E8C\u7EF4\u7801",width:160})))})},Ct=(Dt,Ut="")=>{const{shixunsDetail:{detail:Ft}}=(0,Rt.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"),yt.default.info({centered:!0,icon:Tt.createElement(xt.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:Tt.createElement("div",{className:"tc",style:{marginLeft:-38}},Tt.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},Tt.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",Qt,"\uFF0C",Ut,"\u3002"),Tt.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),Tt.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?(yt.default.confirm({centered:!0,icon:Tt.createElement(xt.Z,null),title:"\u63D0\u793A",content:Tt.createElement("div",null,Tt.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",Ut,"\u3002"),Tt.createElement("br",null),Tt.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:()=>{yt.default.confirm({width:440,centered:!0,icon:Tt.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&&(Yt.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(Nn,An,Gt){(function(Rt){if(1)window.OSS=Rt(),Nn.exports=Rt();else var yt})(function(){var Rt;return function(){function yt(Vt,Yt,Nt){function Wt(Bt,At){if(!Yt[Bt]){if(!Vt[Bt]){var bt=void 0;if(!At&&bt)return require(Bt,!0);if(xt)return xt(Bt,!0);var Tt=new Error("Cannot find module '"+Bt+"'");throw Tt.code="MODULE_NOT_FOUND",Tt}var It=Yt[Bt]={exports:{}};Vt[Bt][0].call(It.exports,function(vt){return Wt(Vt[Bt][1][vt]||vt)},It,It.exports,yt,Vt,Yt,Nt)}return Yt[Bt].exports}for(var xt=void 0,Ot=0;Ot<Nt.length;Ot++)Wt(Nt[Ot]);return Wt}return yt}()({1:[function(yt,Vt,Yt){"use strict";var Nt=yt("./browser/client");Nt.Buffer=yt("buffer").Buffer,Nt.co=yt("co"),Nt.urllib=yt("../shims/xhr"),Nt.version=yt("./browser/version").version,Vt.exports=Nt},{"../shims/xhr":244,"./browser/client":2,"./browser/version":5,buffer:38,co:41}],2:[function(yt,Vt,Yt){(function(Nt,Wt){"use strict";function xt(Jt){return Jt&&Jt.__esModule?Jt:{default:Jt}}function Ot(Jt,ee){return Jt[ee]||Jt[ee.toLowerCase()]}function Bt(Jt,ee){var ae=Ft.parse(Jt);if(!ae.protocol){var fe=ee?"https://":"http://";ae=Ft.parse(fe+Jt)}if(ae.protocol!=="http:"&&ae.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return ae}function At(Jt,ee,ae){var fe=ae?"https://":"http://",se=ee?"-internal.aliyuncs.com":".aliyuncs.com";return Jt.substr(0,14)==="vpc100-oss-cn-"&&(se=".aliyuncs.com"),Ft.parse(fe+Jt+se)}function bt(){return document&&document.location&&document.location.protocol==="https:"}function Tt(Jt,ee){if(!(this instanceof Tt))return new Tt(Jt,ee);Jt&&Jt.inited?this.options=Jt:this.options=Tt.initOptions(Jt),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=ue,this.agent=this.options.agent||Ue),this.ctx=ee,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}var It=yt("babel-runtime/regenerator"),vt=xt(It),et=yt("babel-runtime/core-js/object/keys"),tt=xt(et),st=yt("debug")("ali-oss"),rt=yt("./../../shims/crypto/crypto.js"),ut=yt("path"),ct=yt("copy-to"),pt=yt("mime"),mt=yt("xml2js"),Ct=yt("humanize-ms"),Dt=yt("agentkeepalive"),Ut=yt("merge-descriptors"),Ft=yt("url"),Qt=yt("is-type-of"),$t=yt("platform"),Kt=yt("utility"),ue=yt("urllib"),oe=yt("./version"),we=yt("dateformat"),Se=yt("bowser"),Ne=yt("../common/signUtils"),pe=yt("../common/utils"),Ue=new Dt;Vt.exports=Tt,Tt.initOptions=function(Jt){if(!Jt||!Jt.accessKeyId||!Jt.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");var ee=bt(),ae={region:"oss-cn-hangzhou",internal:!1,secure:ee,bucket:null,endpoint:null,cname:!1};if((0,tt.default)(Jt).forEach(function(fe){Jt[fe]!==void 0&&(ae[fe]=Jt[fe])}),ae.accessKeyId=ae.accessKeyId.trim(),ae.accessKeySecret=ae.accessKeySecret.trim(),ae.timeout&&(ae.timeout=Ct(ae.timeout)),ae.endpoint)ae.endpoint=Bt(ae.endpoint,ae.secure);else{if(!ae.region)throw new Error("require options.endpoint or options.region");ae.endpoint=At(ae.region,ae.internal,ae.secure)}return ae.inited=!0,ae};var de=Tt.prototype;Ut(de,yt("./object")),Ut(de,yt("./managed_upload")),Ut(de,yt("../common/multipart")),Ut(de,yt("../common/thunkpool.js")),Tt.Wrapper=yt("./wrapper"),de.signature=function(Jt){return st("authorization stringToSign: %s",Jt),Ne.computeSignature(this.options.accessKeySecret,Jt)},de.authorization=function(Jt,ee,ae,fe){var se=Ne.buildCanonicalString(Jt.toUpperCase(),ee,{headers:fe,parameters:ae});return Ne.authorization(this.options.accessKeyId,this.options.accessKeySecret,se)},de.createRequest=function(Jt){var ee={"x-oss-date":we(+new Date+this.options.amendTimeSkewed,"UTC:ddd, dd mmm yyyy HH:MM:ss 'GMT'"),"x-oss-user-agent":this.userAgent};this.options.stsToken&&(ee["x-oss-security-token"]=this.options.stsToken),ct(Jt.headers).to(ee),Ot(ee,"Content-Type")||(Jt.mime===pt.default_type&&(Jt.mime=""),Jt.mime&&Jt.mime.indexOf("/")>0?ee["Content-Type"]=Jt.mime:ee["Content-Type"]=pt.getType(Jt.mime||ut.extname(Jt.object||""))||"application/octet-stream"),Jt.content&&(ee["Content-Md5"]=rt.createHash("md5").update(new Wt(Jt.content,"utf8")).digest("base64"),ee["Content-Length"]||(ee["Content-Length"]=Jt.content.length));var ae=this._getResource(Jt);ee.authorization=this.authorization(Jt.method,ae,Jt.subres,ee);var fe=this._getReqUrl(Jt);st("request %s %s, with headers %j, !!stream: %s",Jt.method,fe,ee,!!Jt.stream);var se=Jt.timeout||this.options.timeout;return{url:fe,params:{agent:this.agent,method:Jt.method,content:Jt.content,stream:Jt.stream,headers:ee,timeout:se,writeStream:Jt.writeStream,customResponse:Jt.customResponse,ctx:Jt.ctx||this.ctx}}},de.request=vt.default.mark(function Jt(ee){var ae,fe,se,De;return vt.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:return ae=this.createRequest(ee),fe=void 0,se=void 0,Oe.prev=3,Oe.next=6,this.urllib.request(ae.url,ae.params);case 6:fe=Oe.sent,st("response %s %s, got %s, headers: %j",ee.method,ae.url,fe.status,fe.headers),Oe.next=13;break;case 10:Oe.prev=10,Oe.t0=Oe.catch(3),se=Oe.t0;case 13:if(De=void 0,!fe||!ee.successStatuses||ee.successStatuses.indexOf(fe.status)!==-1){Oe.next=26;break}return Oe.next=17,this.requestError(fe);case 17:if(De=Oe.sent,De.code!=="RequestTimeTooSkewed"){Oe.next=23;break}return this.options.amendTimeSkewed=+new Date(De.serverTime)-new Date,Oe.next=22,this.request(ee);case 22:return Oe.abrupt("return",Oe.sent);case 23:De.params=ee,Oe.next=30;break;case 26:if(!se){Oe.next=30;break}return Oe.next=29,this.requestError(se);case 29:De=Oe.sent;case 30:if(!De){Oe.next=32;break}throw De;case 32:if(!ee.xmlResponse){Oe.next=36;break}return Oe.next=35,this.parseXML(fe.data);case 35:fe.data=Oe.sent;case 36:return Oe.abrupt("return",fe);case 37:case"end":return Oe.stop()}},Jt,this,[[3,10]])}),de._getResource=function(Jt){var ee="/";return Jt.bucket&&(ee+=Jt.bucket+"/"),Jt.object&&(ee+=Jt.object),ee},de._isIP=function(Jt){return pe._isIP(Jt)},de._escape=function(Jt){return Kt.encodeURIComponent(Jt).replace(/%2F/g,"/")},de._getReqUrl=function(Jt){var ee={};ct(this.options.endpoint).to(ee);var ae=this._isIP(ee.hostname),fe=this.options.cname;!Jt.bucket||fe||ae||(ee.host=Jt.bucket+"."+ee.host);var se="/";Jt.bucket&&ae&&(se+=Jt.bucket+"/"),Jt.object&&(se+=this._escape(Jt.object).replace(/\+/g,"%2B")),ee.pathname=se;var De={};if(Jt.query&&Ut(De,Jt.query),Jt.subres){var Oe={};Qt.string(Jt.subres)?Oe[Jt.subres]="":Qt.array(Jt.subres)?Jt.subres.forEach(function(en){Oe[en]=""}):Oe=Jt.subres,Ut(De,Oe)}return ee.query=De,Ft.format(ee)},de._getUserAgent=function(){var Jt=Nt&&Nt.browser?"js":"nodejs",ee="aliyun-sdk-"+Jt+"/"+oe.version,ae=$t.description;return!ae&&Nt&&(ae="Node.js "+Nt.version.slice(1)+" on "+Nt.platform+" "+Nt.arch),this._checkUserAgent(ee+" "+ae)},de._checkUserAgent=function(Jt){return Jt.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta")},de.checkBrowserAndVersion=function(Jt,ee){return Se.name===Jt&&Se.version.split(".")[0]===ee},de.parseXML=function(Jt){return function(ee){Wt.isBuffer(Jt)&&(Jt=Jt.toString()),mt.parseString(Jt,{explicitRoot:!1,explicitArray:!1},ee)}},de.requestError=vt.default.mark(function Jt(ee){var ae,fe,se,De;return vt.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(ae=null,ee.data&&ee.data.length){Oe.next=5;break}ee.status===-1||ee.status===-2?(ae=new Error(ee.message),ae.name=ee.name,ae.status=ee.status,ae.code=ee.name):(ee.status===404?(ae=new Error("Object not exists"),ae.name="NoSuchKeyError",ae.status=404,ae.code="NoSuchKey"):ee.status===412?(ae=new Error("Pre condition failed"),ae.name="PreconditionFailedError",ae.status=412,ae.code="PreconditionFailed"):(ae=new Error("Unknow error, status: "+ee.status),ae.name="UnknowError",ae.status=ee.status),ae.requestId=ee.headers["x-oss-request-id"],ae.host=""),Oe.next=30;break;case 5:return fe=String(ee.data),st("request response error data: %s",fe),se=void 0,Oe.prev=8,Oe.next=11,this.parseXML(fe)||{};case 11:se=Oe.sent,Oe.next=21;break;case 14:return Oe.prev=14,Oe.t0=Oe.catch(8),st(fe),Oe.t0.message+=`
|
|
|
raw xml: `+fe,Oe.t0.status=ee.status,Oe.t0.requestId=ee.headers["x-oss-request-id"],Oe.abrupt("return",Oe.t0);case 21:De=se.Message||"unknow request error, status: "+ee.status,se.Condition&&(De+=" (condition: "+se.Condition+")"),ae=new Error(De),ae.name=se.Code?se.Code+"Error":"UnknowError",ae.status=ee.status,ae.code=se.Code,ae.requestId=se.RequestId,ae.hostId=se.HostId,ae.serverTime=se.ServerTime;case 30:return st("generate error %j",ae),Oe.abrupt("return",ae);case 32:case"end":return Oe.stop()}},Jt,this,[[8,14]])})}).call(this,yt("_process"),yt("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(yt,Vt,Yt){(function(Nt){"use strict";function Wt(ct){return ct&&ct.__esModule?ct:{default:ct}}function xt(ct,pt){if(!(this instanceof xt))return new xt(ct,pt);ut.call(this,pt),this.file=ct,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}var Ot=yt("babel-runtime/core-js/array/from"),Bt=Wt(Ot),At=yt("babel-runtime/regenerator"),bt=Wt(At),Tt=yt("is-type-of"),It=yt("util"),vt=yt("path"),et=yt("mime"),tt=yt("copy-to"),st=Yt;st.multipartUpload=bt.default.mark(function ct(pt,mt,Ct){var Dt,Ut,Ft,Qt,$t,Kt,ue,oe,we;return bt.default.wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:if(this.resetCancelFlag(),Ct=Ct||{},!Ct.checkpoint||!Ct.checkpoint.uploadId){Se.next=6;break}return Se.next=5,this._resumeMultipart(Ct.checkpoint,Ct);case 5:return Se.abrupt("return",Se.sent);case 6:return Dt=102400,Ct.mime||(Tt.file(mt)?Ct.mime=et.getType(vt.extname(mt.name)):Tt.blob(mt)?Ct.mime=mt.type:Ct.mime=et.getType(vt.extname(mt))),Ct.headers=Ct.headers||{},this._convertMetaToHeaders(Ct.meta,Ct.headers),Se.next=12,this._getFileSize(mt);case 12:if(!((Ut=Se.sent)<Dt)){Se.next=25;break}return Ft=this._createStream(mt,0,Ut),Ct.contentLength=Ut,Se.next=18,this.putStream(pt,Ft,Ct);case 18:if(Qt=Se.sent,!Ct||!Ct.progress){Se.next=22;break}return Se.next=22,Ct.progress(1);case 22:return $t={res:Qt.res,bucket:this.options.bucket,name:pt,etag:Qt.res.headers.etag},(Ct.headers&&Ct.headers["x-oss-callback"]||Ct.callback)&&($t.data=Qt.data),Se.abrupt("return",$t);case 25:if(!(Ct.partSize&&Ct.partSize<Dt)){Se.next=27;break}throw new Error("partSize must not be smaller than "+Dt);case 27:return Se.next=29,this.initMultipartUpload(pt,Ct);case 29:if(Kt=Se.sent,ue=Kt.uploadId,oe=this._getPartSize(Ut,Ct.partSize),we={file:mt,name:pt,fileSize:Ut,partSize:oe,uploadId:ue,doneParts:[]},!Ct||!Ct.progress){Se.next=36;break}return Se.next=36,Ct.progress(0,we,Kt.res);case 36:return Se.next=38,this._resumeMultipart(we,Ct);case 38:return Se.abrupt("return",Se.sent);case 39:case"end":return Se.stop()}},ct,this)}),st._resumeMultipart=bt.default.mark(function ct(pt,mt){var Ct,Dt,Ut,Ft,Qt,$t,Kt,ue,oe,we,Se,Ne,pe,Ue,de,Jt,ee,ae,fe,se,De;return bt.default.wrap(function(Oe){for(;;)switch(Oe.prev=Oe.next){case 0:if(!this.isCancel()){Oe.next=2;break}throw this._makeCancelEvent();case 2:if(Ct=pt.file,Dt=pt.fileSize,Ut=pt.partSize,Ft=pt.uploadId,Qt=pt.doneParts,$t=pt.name,Kt=[],Qt.length>0&&tt(Qt).to(Kt),ue=this._divideParts(Dt,Ut),oe=ue.length,we=!1,Se=bt.default.mark(function en(We,rn){var ke,Ie,je;return bt.default.wrap(function($e){for(;;)switch($e.prev=$e.next){case 0:if(We.isCancel()){$e.next=21;break}return $e.prev=1,ke=ue[rn-1],Ie={stream:We._createStream(Ct,ke.start,ke.end),size:ke.end-ke.start},$e.next=6,We._uploadPart($t,Ft,rn,Ie);case 6:if(je=$e.sent,We.isCancel()||we){$e.next=13;break}if(pt.doneParts.push({number:rn,etag:je.res.headers.etag}),Kt.push({number:rn,etag:je.res.headers.etag}),!mt||!mt.progress){$e.next=13;break}return $e.next=13,mt.progress(Qt.length/oe,pt,je.res);case 13:$e.next=21;break;case 15:if($e.prev=15,$e.t0=$e.catch(1),We.isCancel()){$e.next=21;break}throw We.cancel(),$e.t0.partNum=rn,$e.t0;case 21:case"end":return $e.stop()}},en,this,[[1,15]])}),Ne=(0,Bt.default)(new Array(oe),function(en,We){return We+1}),pe=Kt.map(function(en){return en.number}),Ue=Ne.filter(function(en){return pe.indexOf(en)<0}),de=5,Jt=mt.parallel||de,!this.checkBrowserAndVersion("Internet Explorer","10")&&Jt!==1){Oe.next=26;break}ee=0;case 16:if(!(ee<Ue.length)){Oe.next=24;break}if(!this.isCancel()){Oe.next=19;break}throw this._makeCancelEvent();case 19:return Oe.next=21,Se(this,Ue[ee]);case 21:ee++,Oe.next=16;break;case 24:Oe.next=40;break;case 26:for(ae=[],fe=0;fe<Ue.length;fe++)ae.push(Se(this,Ue[fe]));return Oe.next=30,this._thunkPool(ae,Jt);case 30:if(se=Oe.sent,we=!0,!(se&&se.length>0)){Oe.next=37;break}throw this.resetCancelFlag(),De=se[0],De.message="Failed to upload some parts with error: "+De.toString()+" part_num: "+De.partNum,De;case 37:if(!this.isCancel()){Oe.next=40;break}throw ae=null,this._makeCancelEvent();case 40:return Oe.next=42,this.completeMultipartUpload($t,Ft,Kt,mt);case 42:return Oe.abrupt("return",Oe.sent);case 43:case"end":return Oe.stop()}},ct,this)}),Tt.file=function(ct){return typeof File!="undefined"&&ct instanceof File},Tt.blob=function(ct){return typeof Blob!="undefined"&&ct instanceof Blob},st._getFileSize=bt.default.mark(function ct(pt){var mt;return bt.default.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:if(!Tt.buffer(pt)){Ct.next=4;break}return Ct.abrupt("return",pt.length);case 4:if(!Tt.blob(pt)&&!Tt.file(pt)){Ct.next=6;break}return Ct.abrupt("return",pt.size);case 6:if(!Tt.string(pt)){Ct.next=11;break}return Ct.next=9,this._statFile(pt);case 9:return mt=Ct.sent,Ct.abrupt("return",mt.size);case 11:throw new Error("_getFileSize requires Buffer/File/String.");case 12:case"end":return Ct.stop()}},ct,this)});var rt=yt("stream"),ut=rt.Readable;It.inherits(xt,ut),xt.prototype.readFileAndPush=function(ct){if(this.fileBuffer)for(var pt=!0;pt&&this.fileBuffer&&this.start<this.fileBuffer.length;){var mt=this.start,Ct=mt+ct;Ct=Ct>this.fileBuffer.length?this.fileBuffer.length:Ct,this.start=Ct,pt=this.push(this.fileBuffer.slice(mt,Ct))}},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 pt=this;this.reader.onload=function(mt){pt.fileBuffer=new Nt(new Uint8Array(mt.target.result)),pt.file=null,pt.readFileAndPush(ct)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(ct)},st._createStream=function(ct,pt,mt){if(Tt.blob(ct)||Tt.file(ct))return new xt(ct.slice(pt,mt));throw new Error("_createStream requires File/String.")},st._getPartSize=function(ct,pt){return pt?Math.max(Math.ceil(ct/1e4),pt):1048576},st._divideParts=function(ct,pt){for(var mt=Math.ceil(ct/pt),Ct=[],Dt=0;Dt<mt;Dt++){var Ut=pt*Dt,Ft=Math.min(Ut+pt,ct);Ct.push({start:Ut,end:Ft})}return Ct},st._makeCancelEvent=function(){return{status:0,name:"cancel"}}}).call(this,yt("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(yt,Vt,Yt){"use strict";function Nt(pt){return pt&&pt.__esModule?pt:{default:pt}}var Wt=yt("babel-runtime/core-js/object/keys"),xt=Nt(Wt),Ot=yt("babel-runtime/regenerator"),Bt=Nt(Ot),At=yt("debug")("ali-oss:object"),bt=yt("utility"),Tt=yt("fs"),It=yt("is-type-of"),vt=yt("url"),et=yt("copy-to"),tt=yt("path"),st=yt("mime"),rt=yt("../common/callback"),ut=yt("../common/signUtils"),ct=Yt;ct.append=Bt.default.mark(function pt(mt,Ct,Dt){var Ut;return Bt.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(mt,Ct,Dt);case 6:return Ut=Ft.sent,Ut.nextAppendPosition=Ut.res.headers["x-oss-next-append-position"],Ft.abrupt("return",Ut);case 9:case"end":return Ft.stop()}},pt,this)}),ct.put=Bt.default.mark(function pt(mt,Ct,Dt){var Ut,Ft,Qt,$t,Kt,ue;return Bt.default.wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:if(Ut=void 0,Dt=Dt||{},!It.buffer(Ct)){oe.next=6;break}Ut=Ct,oe.next=18;break;case 6:if(!It.blob(Ct)&&!It.file(Ct)){oe.next=17;break}return Dt.mime||(It.file(Ct)?Dt.mime=st.getType(tt.extname(Ct.name)):Dt.mime=Ct.type),Ft=this._createStream(Ct,0,Ct.size),oe.next=11,this._getFileSize(Ct);case 11:return Dt.contentLength=oe.sent,oe.next=14,this.putStream(mt,Ft,Dt);case 14:return oe.abrupt("return",oe.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",$t=this._objectRequestParams(Qt,mt,Dt),rt.encodeCallback($t,Dt),$t.mime=Dt.mime,$t.content=Ut,$t.successStatuses=[200],oe.next=28,this.request($t);case 28:return Kt=oe.sent,ue={name:mt,url:this._objectUrl(mt),res:Kt.res},$t.headers&&$t.headers["x-oss-callback"]&&(ue.data=JSON.parse(Kt.data.toString())),oe.abrupt("return",ue);case 32:case"end":return oe.stop()}},pt,this)}),ct.putStream=Bt.default.mark(function pt(mt,Ct,Dt){var Ut,Ft,Qt,$t;return Bt.default.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.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),Ut=Dt.method||"PUT",Ft=this._objectRequestParams(Ut,mt,Dt),rt.encodeCallback(Ft,Dt),Ft.mime=Dt.mime,Ft.stream=Ct,Ft.successStatuses=[200],Kt.next=12,this.request(Ft);case 12:return Qt=Kt.sent,$t={name:mt,url:this._objectUrl(mt),res:Qt.res},Ft.headers&&Ft.headers["x-oss-callback"]&&($t.data=JSON.parse(Qt.data.toString())),Kt.abrupt("return",$t);case 16:case"end":return Kt.stop()}},pt,this)}),ct.head=Bt.default.mark(function pt(mt,Ct){var Dt,Ut,Ft;return Bt.default.wrap(function(Qt){for(;;)switch(Qt.prev=Qt.next){case 0:return Dt=this._objectRequestParams("HEAD",mt,Ct),Dt.successStatuses=[200,304],Qt.next=4,this.request(Dt);case 4:return Ut=Qt.sent,Ft={meta:null,res:Ut.res,status:Ut.status},Ut.status===200&&(0,xt.default)(Ut.headers).forEach(function($t){$t.indexOf("x-oss-meta-")===0&&(Ft.meta||(Ft.meta={}),Ft.meta[$t.substring(11)]=Ut.headers[$t])}),Qt.abrupt("return",Ft);case 8:case"end":return Qt.stop()}},pt,this)}),ct.get=Bt.default.mark(function pt(mt,Ct,Dt){var Ut,Ft,Qt,$t;return Bt.default.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:return Ut=null,Ft=!1,It.writableStream(Ct)?Ut=Ct:It.string(Ct)?(Ut=Tt.createWriteStream(Ct),Ft=!0):Dt=Ct,Dt=Dt||{},Dt.process&&(Dt.subres=Dt.subres||{},Dt.subres["x-oss-process"]=Dt.process),Qt=void 0,Kt.prev=6,$t=this._objectRequestParams("GET",mt,Dt),$t.writeStream=Ut,$t.successStatuses=[200,206,304],Kt.next=12,this.request($t);case 12:Qt=Kt.sent,Ft&&Ut.destroy(),Kt.next=24;break;case 16:if(Kt.prev=16,Kt.t0=Kt.catch(6),!Ft){Kt.next=23;break}return Ut.destroy(),At("get error: %s, delete the exists file %s",Kt.t0,Ct),Kt.next=23,this._deleteFileSafe(Ct);case 23:throw Kt.t0;case 24:return Kt.abrupt("return",{res:Qt.res,content:Qt.data});case 25:case"end":return Kt.stop()}},pt,this,[[6,16]])}),ct.getStream=Bt.default.mark(function pt(mt,Ct){var Dt,Ut;return Bt.default.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Ct=Ct||{},Dt=this._objectRequestParams("GET",mt,Ct),Dt.customResponse=!0,Dt.successStatuses=[200,206,304],Ft.next=6,this.request(Dt);case 6:return Ut=Ft.sent,Ft.abrupt("return",{stream:Ut.res,res:{status:Ut.status,headers:Ut.headers}});case 8:case"end":return Ft.stop()}},pt,this)}),ct.delete=Bt.default.mark(function pt(mt,Ct){var Dt,Ut;return Bt.default.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Dt=this._objectRequestParams("DELETE",mt,Ct),Dt.successStatuses=[204],Ft.next=4,this.request(Dt);case 4:return Ut=Ft.sent,Ft.abrupt("return",{res:Ut.res});case 6:case"end":return Ft.stop()}},pt,this)}),ct.deleteMulti=Bt.default.mark(function pt(mt,Ct){var Dt,Ut,Ft,Qt,$t,Kt;return Bt.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:for(Ct=Ct||{},Dt=`<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<Delete>
|
|
|
`,Ct.quiet?Dt+=` <Quiet>true</Quiet>
|
|
|
`:Dt+=` <Quiet>false</Quiet>
|
|
|
`,Ut=0;Ut<mt.length;Ut++)Dt+=" <Object><Key>"+bt.escape(this._objectName(mt[Ut]))+`</Key></Object>
|
|
|
`;return Dt+="</Delete>",At("delete multi objects: %s",Dt),Ct.subres="delete",Ft=this._objectRequestParams("POST","",Ct),Ft.mime="xml",Ft.content=Dt,Ft.xmlResponse=!0,Ft.successStatuses=[200],ue.next=14,this.request(Ft);case 14:return Qt=ue.sent,$t=Qt.data,Kt=$t&&$t.Deleted||null,Kt&&(Array.isArray(Kt)||(Kt=[Kt]),Kt=Kt.map(function(oe){return oe.Key})),ue.abrupt("return",{res:Qt.res,deleted:Kt});case 19:case"end":return ue.stop()}},pt,this)}),ct.copy=Bt.default.mark(function pt(mt,Ct,Dt){var Ut,Ft,Qt;return Bt.default.wrap(function($t){for(;;)switch($t.prev=$t.next){case 0:return Dt=Dt||{},Dt.headers=Dt.headers||{},(0,xt.default)(Dt.headers).forEach(function(Kt){Dt.headers["x-oss-copy-source-"+Kt.toLowerCase()]=Dt.headers[Kt]}),Dt.meta&&(Dt.headers["x-oss-metadata-directive"]="REPLACE"),this._convertMetaToHeaders(Dt.meta,Dt.headers),Ct=Ct[0]!=="/"?"/"+this.options.bucket+"/"+encodeURIComponent(Ct):"/"+encodeURIComponent(Ct.slice(1)),Dt.headers["x-oss-copy-source"]=Ct,Ut=this._objectRequestParams("PUT",mt,Dt),Ut.xmlResponse=!0,Ut.successStatuses=[200,304],$t.next=12,this.request(Ut);case 12:return Ft=$t.sent,Qt=Ft.data,Qt&&(Qt={etag:Qt.ETag,lastModified:Qt.LastModified}),$t.abrupt("return",{data:Qt,res:Ft.res});case 16:case"end":return $t.stop()}},pt,this)}),ct.putMeta=Bt.default.mark(function pt(mt,Ct,Dt){return Bt.default.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:return Ut.next=2,this.copy(mt,mt,{meta:Ct||{},timeout:Dt&&Dt.timeout,ctx:Dt&&Dt.ctx});case 2:return Ut.abrupt("return",Ut.sent);case 3:case"end":return Ut.stop()}},pt,this)}),ct.list=Bt.default.mark(function pt(mt,Ct){var Dt,Ut,Ft,Qt,$t;return Bt.default.wrap(function(Kt){for(;;)switch(Kt.prev=Kt.next){case 0:return Dt=this._objectRequestParams("GET","",Ct),Dt.query=mt,Dt.xmlResponse=!0,Dt.successStatuses=[200],Kt.next=6,this.request(Dt);case 6:return Ut=Kt.sent,Ft=Ut.data.Contents,Qt=this,Ft&&(Array.isArray(Ft)||(Ft=[Ft]),Ft=Ft.map(function(ue){return{name:ue.Key,url:Qt._objectUrl(ue.Key),lastModified:ue.LastModified,etag:ue.ETag,type:ue.Type,size:Number(ue.Size),storageClass:ue.StorageClass,owner:{id:ue.Owner.ID,displayName:ue.Owner.DisplayName}}})),$t=Ut.data.CommonPrefixes||null,$t&&(Array.isArray($t)||($t=[$t]),$t=$t.map(function(ue){return ue.Prefix})),Kt.abrupt("return",{res:Ut.res,objects:Ft,prefixes:$t,nextMarker:Ut.data.NextMarker||null,isTruncated:Ut.data.IsTruncated==="true"});case 13:case"end":return Kt.stop()}},pt,this)}),ct.putACL=Bt.default.mark(function pt(mt,Ct,Dt){var Ut,Ft;return Bt.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"]=Ct,mt=this._objectName(mt),Ut=this._objectRequestParams("PUT",mt,Dt),Ut.successStatuses=[200],Qt.next=9,this.request(Ut);case 9:return Ft=Qt.sent,Qt.abrupt("return",{res:Ft.res});case 11:case"end":return Qt.stop()}},pt,this)}),ct.getACL=Bt.default.mark(function pt(mt,Ct){var Dt,Ut;return Bt.default.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Ct=Ct||{},Ct.subres="acl",mt=this._objectName(mt),Dt=this._objectRequestParams("GET",mt,Ct),Dt.successStatuses=[200],Dt.xmlResponse=!0,Ft.next=8,this.request(Dt);case 8:return Ut=Ft.sent,Ft.abrupt("return",{acl:Ut.data.AccessControlList.Grant,owner:{id:Ut.data.Owner.ID,displayName:Ut.data.Owner.DisplayName},res:Ut.res});case 10:case"end":return Ft.stop()}},pt,this)}),ct.restore=Bt.default.mark(function pt(mt,Ct){var Dt,Ut;return Bt.default.wrap(function(Ft){for(;;)switch(Ft.prev=Ft.next){case 0:return Ct=Ct||{},Ct.subres="restore",Dt=this._objectRequestParams("POST",mt,Ct),Dt.successStatuses=[202],Ft.next=6,this.request(Dt);case 6:return Ut=Ft.sent,Ft.abrupt("return",{res:Ut.res});case 8:case"end":return Ft.stop()}},pt,this)}),ct.signatureUrl=function(pt,mt){mt=mt||{},pt=this._objectName(pt),mt.method=mt.method||"GET";var Ct=bt.timestamp()+(mt.expires||1800),Dt={bucket:this.options.bucket,object:pt},Ut=this._getResource(Dt);this.options.stsToken&&(mt["security-token"]=this.options.stsToken);var Ft=ut._signatureForURL(this.options.accessKeySecret,mt,Ut,Ct),Qt=vt.parse(this._getReqUrl(Dt));return Qt.query={OSSAccessKeyId:this.options.accessKeyId,Expires:Ct,Signature:Ft.Signature},et(Ft.subResource).to(Qt.query),Qt.format()},ct.getObjectUrl=function(pt,mt){return mt?mt[mt.length-1]!=="/"&&(mt+="/"):mt=this.options.endpoint.format(),mt+this._escape(this._objectName(pt))},ct._objectUrl=function(pt){return this._getReqUrl({bucket:this.options.bucket,object:pt})},ct.generateObjectUrl=function(pt,mt){if(mt)mt[mt.length-1]!=="/"&&(mt+="/");else{mt=this.options.endpoint.format();var Ct=vt.parse(mt),Dt=this.options.bucket;Ct.hostname=Dt+"."+Ct.hostname,Ct.host=Dt+"."+Ct.host,mt=Ct.format()}return mt+this._escape(this._objectName(pt))},ct._objectRequestParams=function(pt,mt,Ct){if(!this.options.bucket)throw new Error("Please create a bucket first");Ct=Ct||{},mt=this._objectName(mt);var Dt={object:mt,bucket:this.options.bucket,method:pt,subres:Ct&&Ct.subres,timeout:Ct&&Ct.timeout,ctx:Ct&&Ct.ctx};return Ct.headers&&(Dt.headers={},et(Ct.headers).to(Dt.headers)),Dt},ct._objectName=function(pt){return pt.replace(/^\/+/,"")},ct._statFile=function(pt){return function(mt){Tt.stat(pt,mt)}},ct._convertMetaToHeaders=function(pt,mt){pt&&(0,xt.default)(pt).forEach(function(Ct){mt["x-oss-meta-"+Ct]=pt[Ct]})},ct._deleteFileSafe=function(pt){return function(mt){Tt.exists(pt,function(Ct){Ct?Tt.unlink(pt,function(Dt){Dt&&At("unlink %j error: %s",pt,Dt),mt()}):mt()})}}},{"../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(yt,Vt,Yt){"use strict";Yt.version="5.3.1"},{}],6:[function(yt,Vt,Yt){"use strict";function Nt(tt){return tt&&tt.__esModule?tt:{default:tt}}function Wt(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"||Wt(st.prototype)||Wt(tt.prototype))}function Ot(tt,st){var rt=new tt(st),ut=(0,It.default)(rt),ct=(0,It.default)((0,bt.default)(rt));ut.concat(ct).forEach(function(pt){xt(rt[pt])?this[pt]=vt.wrap(rt[pt]).bind(rt):this[pt]=rt[pt]},this)}function Bt(tt){if(!(this instanceof Bt))return new Bt(tt);Ot.call(this,et,tt)}var At=yt("babel-runtime/core-js/object/get-prototype-of"),bt=Nt(At),Tt=yt("babel-runtime/core-js/object/keys"),It=Nt(Tt),vt=yt("co"),et=yt("./client");Vt.exports=Bt,Bt.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(yt,Vt,Yt){(function(Nt){"use strict";function Wt(bt){return bt&&bt.__esModule?bt:{default:bt}}var xt=yt("babel-runtime/core-js/object/keys"),Ot=Wt(xt),Bt=yt("babel-runtime/core-js/json/stringify"),At=Wt(Bt);Yt.encodeCallback=function(bt,Tt){if(bt.headers=bt.headers||{},!Object.prototype.hasOwnProperty.call(bt.headers,"x-oss-callback")&&Tt.callback){var It={callbackUrl:encodeURI(Tt.callback.url),callbackBody:Tt.callback.body};Tt.callback.host&&(It.callbackHost=Tt.callback.host),Tt.callback.contentType&&(It.callbackBodyType=Tt.callback.contentType);var vt=new Nt((0,At.default)(It)).toString("base64");if(bt.headers["x-oss-callback"]=vt,Tt.callback.customValue){var et={};(0,Ot.default)(Tt.callback.customValue).forEach(function(tt){et["x:"+tt]=Tt.callback.customValue[tt]}),bt.headers["x-oss-callback-var"]=new Nt((0,At.default)(et)).toString("base64")}}}}).call(this,yt("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":17,"babel-runtime/core-js/object/keys":23,buffer:38}],8:[function(yt,Vt,Yt){"use strict";var Nt=yt("babel-runtime/regenerator"),Wt=function(At){return At&&At.__esModule?At:{default:At}}(Nt),xt=yt("copy-to"),Ot=yt("./callback"),Bt=Yt;Bt.listUploads=Wt.default.mark(function At(bt,Tt){var It,vt,et,tt;return Wt.default.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return Tt=Tt||{},It={},xt(Tt).to(It),It.subres="uploads",vt=this._objectRequestParams("GET","",It),vt.query=bt,vt.xmlResponse=!0,vt.successStatuses=[200],st.next=10,this.request(vt);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()}},At,this)}),Bt.listParts=Wt.default.mark(function At(bt,Tt,It,vt){var et,tt,st;return Wt.default.wrap(function(rt){for(;;)switch(rt.prev=rt.next){case 0:return vt=vt||{},et={},xt(vt).to(et),et.subres={uploadId:Tt},tt=this._objectRequestParams("GET",bt,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()}},At,this)}),Bt.abortMultipartUpload=Wt.default.mark(function At(bt,Tt,It){var vt,et,tt;return Wt.default.wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return this.cancel(),It=It||{},vt={},xt(It).to(vt),vt.subres={uploadId:Tt},et=this._objectRequestParams("DELETE",bt,vt),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()}},At,this)}),Bt.initMultipartUpload=Wt.default.mark(function At(bt,Tt){var It,vt,et;return Wt.default.wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return Tt=Tt||{},It={},xt(Tt).to(It),It.headers=It.headers||{},this._convertMetaToHeaders(Tt.meta,It.headers),It.subres="uploads",vt=this._objectRequestParams("POST",bt,It),vt.mime=Tt.mime,vt.xmlResponse=!0,vt.successStatuses=[200],tt.next=12,this.request(vt);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()}},At,this)}),Bt.uploadPart=Wt.default.mark(function At(bt,Tt,It,vt,et,tt,st){var rt;return Wt.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return rt={stream:this._createStream(vt,et,tt),size:tt-et},ut.next=3,this._uploadPart(bt,Tt,It,rt,st);case 3:return ut.abrupt("return",ut.sent);case 4:case"end":return ut.stop()}},At,this)}),Bt.completeMultipartUpload=Wt.default.mark(function At(bt,Tt,It,vt){var et,tt,st,rt,ut,ct,pt,mt;return Wt.default.wrap(function(Ct){for(;;)switch(Ct.prev=Ct.next){case 0:for(et=It.concat().sort(function(Dt,Ut){return Dt.number-Ut.number}).filter(function(Dt,Ut,Ft){return!Ut||Dt.number!==Ft[Ut-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>",vt=vt||{},ut={},xt(vt).to(ut),ut.subres={uploadId:Tt},ct=this._objectRequestParams("POST",bt,ut),Ot.encodeCallback(ct,ut),ct.mime="xml",ct.content=tt,ct.headers&&ct.headers["x-oss-callback"]||(ct.xmlResponse=!0),ct.successStatuses=[200],Ct.next=16,this.request(ct);case 16:return pt=Ct.sent,mt={res:pt.res,bucket:ct.bucket,name:bt,etag:pt.res.headers.etag},ct.headers&&ct.headers["x-oss-callback"]&&(mt.data=JSON.parse(pt.data.toString())),Ct.abrupt("return",mt);case 20:case"end":return Ct.stop()}},At,this)}),Bt._uploadPart=Wt.default.mark(function At(bt,Tt,It,vt,et){var tt,st,rt;return Wt.default.wrap(function(ut){for(;;)switch(ut.prev=ut.next){case 0:return et=et||{},tt={},xt(et).to(tt),tt.headers={"Content-Length":vt.size},tt.subres={partNumber:It,uploadId:Tt},st=this._objectRequestParams("PUT",bt,tt),st.mime=tt.mime,st.stream=vt.stream,st.successStatuses=[200],ut.next=11,this.request(st);case 11:return rt=ut.sent,vt.stream=null,st.stream=null,ut.abrupt("return",{name:bt,etag:rt.res.headers.etag,res:rt.res});case 15:case"end":return ut.stop()}},At,this)})},{"./callback":7,"babel-runtime/regenerator":33,"copy-to":43}],9:[function(yt,Vt,Yt){(function(Nt){"use strict";function Wt(It){return It&&It.__esModule?It:{default:It}}var xt=yt("babel-runtime/core-js/json/stringify"),Ot=Wt(xt),Bt=yt("babel-runtime/core-js/object/keys"),At=Wt(Bt),bt=yt("./../../shims/crypto/crypto.js"),Tt=yt("is-type-of");Yt.buildCanonicalizedResource=function(It,vt){var et=""+It,tt="?";if(Tt.string(vt)&&vt.trim()!=="")et+=tt+vt;else if(Tt.array(vt))vt.sort(),et+=tt+vt.join("&");else if(vt){var st=function(ut,ct){return ut[0]>ct[0]?1:ut[0]<ct[0]?-1:0},rt=function(ut){et+=tt+ut,vt[ut]&&(et+="="+vt[ut]),tt="&"};(0,At.default)(vt).sort(st).forEach(rt)}return et},Yt.buildCanonicalString=function(It,vt,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,At.default)(st).forEach(function(pt){var mt=pt.toLowerCase();mt.indexOf("x-oss-")===0&&(ut[mt]=String(st[pt]).trim())}),(0,At.default)(ut).sort().forEach(function(pt){rt.push(pt+":"+ut[pt])}),ct=ct.concat(rt),ct.push(this.buildCanonicalizedResource(vt,et.parameters)),ct.join(`
|
|
|
`)},Yt.computeSignature=function(It,vt){return bt.createHmac("sha1",It).update(new Nt(vt,"utf8")).digest("base64")},Yt.authorization=function(It,vt,et){return"OSS "+It+":"+this.computeSignature(vt,et)},Yt._signatureForURL=function(It,vt,et,tt){var st={},rt={};if(vt.process&&(rt["x-oss-process"]=vt.process),vt.response&&(0,At.default)(vt.response).forEach(function(mt){var Ct="response-"+mt.toLowerCase();rt[Ct]=vt.response[mt]}),(0,At.default)(vt).forEach(function(mt){var Ct=mt.toLowerCase(),Dt=vt[mt];Ct.indexOf("x-oss-")===0?st[Ct]=Dt:Ct.indexOf("content-md5")===0||Ct.indexOf("content-type")===0?st[mt]=Dt:Ct!=="expires"&&Ct!=="response"&&Ct!=="process"&&Ct!=="method"&&(rt[Ct]=Dt)}),Object.prototype.hasOwnProperty.call(vt,"security-token")&&(rt["security-token"]=vt["security-token"]),Object.prototype.hasOwnProperty.call(vt,"callback")){var ut={callbackUrl:encodeURI(vt.callback.url),callbackBody:vt.callback.body};if(vt.callback.host&&(ut.callbackHost=vt.callback.host),vt.callback.contentType&&(ut.callbackBodyType=vt.callback.contentType),rt.callback=new Nt((0,Ot.default)(ut)).toString("base64"),vt.callback.customValue){var ct={};(0,At.default)(vt.callback.customValue).forEach(function(mt){ct["x:"+mt]=vt.callback.customValue[mt]}),rt["callback-var"]=new Nt((0,Ot.default)(ct)).toString("base64")}}var pt=this.buildCanonicalString(vt.method,et,{headers:st,parameters:rt},tt.toString());return{Signature:this.computeSignature(It,pt),subResource:rt}}}).call(this,yt("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(yt,Vt,Yt){"use strict";var Nt=yt("babel-runtime/regenerator"),Wt=function(bt){return bt&&bt.__esModule?bt:{default:bt}}(Nt),xt=yt("co"),Ot=yt("co-priority-queue"),Bt=yt("any-promise"),At=Yt;At._thunkPool=function(bt,Tt){function It(rt,ut){++tt===rt.length&&ut(st)}function vt(rt,ut){function ct(){var Ft;return Wt.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,Ct.next();case 4:return Ft=Qt.sent,Qt.next=7,Ft();case 7:Qt.next=1;break;case 9:Dt+=1,Dt===rt&&(Ct.fns=[],Ct.buffer=[],ut(st));case 11:case"end":return Qt.stop()}},mt,this)}function pt(Ft){console.error(Ft.stack)}for(var mt=Wt.default.mark(ct),Ct=new Ot,Dt=0,Ut=0;Ut<rt;Ut++)xt(ct).catch(pt);return function(Ft,Qt){return function($t){Ct.push(Wt.default.mark(function Kt(){return Wt.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.prev=0,ue.t0=$t,ue.next=4,Ft;case 4:ue.t1=ue.sent,(0,ue.t0)(null,ue.t1),ue.next=11;break;case 8:ue.prev=8,ue.t2=ue.catch(0),$t(ue.t2);case 11:case"end":return ue.stop()}},Kt,this,[[0,8]])}),Qt)}}}var et=this,tt=0,st=[];return new Bt(function(rt){function ut(Dt){return Wt.default.wrap(function(Ut){for(;;)switch(Ut.prev=Ut.next){case 0:return Ut.next=2,mt(bt[Dt]);case 2:It(bt,rt);case 3:case"end":return Ut.stop()}},pt,this)}function ct(Dt){st.push(Dt),It(bt,rt)}for(var pt=Wt.default.mark(ut),mt=new vt(Tt,rt),Ct=0;Ct<bt.length;Ct++)xt(ut(Ct)).catch(ct)})},At.cancel=function(){this.options.cancelFlag=!0},At.isCancel=function(){return this.options.cancelFlag},At.resetCancelFlag=function(){this.options.cancelFlag=!1}},{"any-promise":13,"babel-runtime/regenerator":33,co:41,"co-priority-queue":40}],11:[function(yt,Vt,Yt){"use strict";Yt._isIP=function(Nt){var Wt=/^(25[0-5]|2[0-4]\d|[0-1]?\d?\d)(\.(25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}$/,xt=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/;return Wt.test(Nt)||xt.test(Nt)}},{}],12:[function(yt,Vt,Yt){function Nt(){}Vt.exports=Nt,Vt.exports.HttpsAgent=Nt},{}],13:[function(yt,Vt,Yt){Vt.exports=yt("./register")().Promise},{"./register":15}],14:[function(yt,Vt,Yt){"use strict";var Nt=null;Vt.exports=function(Wt,xt){return function(Ot,Bt){Ot=Ot||null,Bt=Bt||{};var At=Bt.global!==!1;if(Nt===null&&At&&(Nt=Wt["@@any-promise/REGISTRATION"]||null),Nt!==null&&Ot!==null&&Nt.implementation!==Ot)throw new Error('any-promise already defined as "'+Nt.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return Nt===null&&(Nt=Ot!==null&&Bt.Promise!==void 0?{Promise:Bt.Promise,implementation:Ot}:xt(Ot),At&&(Wt["@@any-promise/REGISTRATION"]=Nt)),Nt}}},{}],15:[function(yt,Vt,Yt){"use strict";function Nt(){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"}}Vt.exports=yt("./loader")(window,Nt)},{"./loader":14}],16:[function(yt,Vt,Yt){Vt.exports={default:yt("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":44}],17:[function(yt,Vt,Yt){Vt.exports={default:yt("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":45}],18:[function(yt,Vt,Yt){Vt.exports={default:yt("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":46}],19:[function(yt,Vt,Yt){Vt.exports={default:yt("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":47}],20:[function(yt,Vt,Yt){Vt.exports={default:yt("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":48}],21:[function(yt,Vt,Yt){Vt.exports={default:yt("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":49}],22:[function(yt,Vt,Yt){Vt.exports={default:yt("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":50}],23:[function(yt,Vt,Yt){Vt.exports={default:yt("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":51}],24:[function(yt,Vt,Yt){Vt.exports={default:yt("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":52}],25:[function(yt,Vt,Yt){Vt.exports={default:yt("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":53}],26:[function(yt,Vt,Yt){Vt.exports={default:yt("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":54}],27:[function(yt,Vt,Yt){Vt.exports={default:yt("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":56}],28:[function(yt,Vt,Yt){Vt.exports={default:yt("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":55}],29:[function(yt,Vt,Yt){Vt.exports={default:yt("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":57}],30:[function(yt,Vt,Yt){"use strict";Yt.__esModule=!0,Yt.default=function(Nt,Wt){if(!(Nt instanceof Wt))throw new TypeError("Cannot call a class as a function")}},{}],31:[function(yt,Vt,Yt){"use strict";Yt.__esModule=!0;var Nt=yt("../core-js/object/define-property"),Wt=function(xt){return xt&&xt.__esModule?xt:{default:xt}}(Nt);Yt.default=function(){function xt(Ot,Bt){for(var At=0;At<Bt.length;At++){var bt=Bt[At];bt.enumerable=bt.enumerable||!1,bt.configurable=!0,"value"in bt&&(bt.writable=!0),(0,Wt.default)(Ot,bt.key,bt)}}return function(Ot,Bt,At){return Bt&&xt(Ot.prototype,Bt),At&&xt(Ot,At),Ot}}()},{"../core-js/object/define-property":20}],32:[function(yt,Vt,Yt){"use strict";function Nt(bt){return bt&&bt.__esModule?bt:{default:bt}}Yt.__esModule=!0;var Wt=yt("../core-js/symbol/iterator"),xt=Nt(Wt),Ot=yt("../core-js/symbol"),Bt=Nt(Ot),At=typeof Bt.default=="function"&&typeof xt.default=="symbol"?function(bt){return typeof bt}:function(bt){return bt&&typeof Bt.default=="function"&&bt.constructor===Bt.default&&bt!==Bt.default.prototype?"symbol":typeof bt};Yt.default=typeof Bt.default=="function"&&At(xt.default)==="symbol"?function(bt){return bt===void 0?"undefined":At(bt)}:function(bt){return bt&&typeof Bt.default=="function"&&bt.constructor===Bt.default&&bt!==Bt.default.prototype?"symbol":bt===void 0?"undefined":At(bt)}},{"../core-js/symbol":27,"../core-js/symbol/iterator":29}],33:[function(yt,Vt,Yt){Vt.exports=yt("regenerator-runtime")},{"regenerator-runtime":191}],34:[function(yt,Vt,Yt){"use strict";function Nt(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 Wt(rt){var ut=Nt(rt),ct=ut[0],pt=ut[1];return 3*(ct+pt)/4-pt}function xt(rt,ut,ct){return 3*(ut+ct)/4-ct}function Ot(rt){for(var ut,ct=Nt(rt),pt=ct[0],mt=ct[1],Ct=new vt(xt(rt,pt,mt)),Dt=0,Ut=mt>0?pt-4:pt,Ft=0;Ft<Ut;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)],Ct[Dt++]=ut>>16&255,Ct[Dt++]=ut>>8&255,Ct[Dt++]=255&ut;return mt===2&&(ut=It[rt.charCodeAt(Ft)]<<2|It[rt.charCodeAt(Ft+1)]>>4,Ct[Dt++]=255&ut),mt===1&&(ut=It[rt.charCodeAt(Ft)]<<10|It[rt.charCodeAt(Ft+1)]<<4|It[rt.charCodeAt(Ft+2)]>>2,Ct[Dt++]=ut>>8&255,Ct[Dt++]=255&ut),Ct}function Bt(rt){return Tt[rt>>18&63]+Tt[rt>>12&63]+Tt[rt>>6&63]+Tt[63&rt]}function At(rt,ut,ct){for(var pt,mt=[],Ct=ut;Ct<ct;Ct+=3)pt=(rt[Ct]<<16&16711680)+(rt[Ct+1]<<8&65280)+(255&rt[Ct+2]),mt.push(Bt(pt));return mt.join("")}function bt(rt){for(var ut,ct=rt.length,pt=ct%3,mt=[],Ct=0,Dt=ct-pt;Ct<Dt;Ct+=16383)mt.push(At(rt,Ct,Ct+16383>Dt?Dt:Ct+16383));return pt===1?(ut=rt[ct-1],mt.push(Tt[ut>>2]+Tt[ut<<4&63]+"==")):pt===2&&(ut=(rt[ct-2]<<8)+rt[ct-1],mt.push(Tt[ut>>10]+Tt[ut>>4&63]+Tt[ut<<2&63]+"=")),mt.join("")}Yt.byteLength=Wt,Yt.toByteArray=Ot,Yt.fromByteArray=bt;for(var Tt=[],It=[],vt=typeof Uint8Array!="undefined"?Uint8Array:Array,et="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tt=0,st=et.length;tt<st;++tt)Tt[tt]=et[tt],It[et.charCodeAt(tt)]=tt;It[45]=62,It[95]=63},{}],35:[function(yt,Vt,Yt){(function(Nt,Wt,xt){Vt!==void 0&&Vt.exports?Vt.exports=xt():typeof Rt=="function"&&Rt.amd?Rt("bowser",xt):Nt.bowser=xt()})(this,0,function(){function Nt(It){function vt(Jt){var ee=It.match(Jt);return ee&&ee.length>1&&ee[1]||""}function et(Jt){var ee=It.match(Jt);return ee&&ee.length>1&&ee[2]||""}var tt,st=vt(/(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),pt=!ct&&/nexus\s*[0-9]+/i.test(It),mt=/CrOS/.test(It),Ct=/silk/i.test(It),Dt=/sailfish/i.test(It),Ut=/tizen/i.test(It),Ft=/(web|hpw)os/i.test(It),Qt=/windows phone/i.test(It),$t=(/SamsungBrowser/i.test(It),!Qt&&/windows/i.test(It)),Kt=!st&&!Ct&&/macintosh/i.test(It),ue=!ut&&!Dt&&!Ut&&!Ft&&/linux/i.test(It),oe=et(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),we=vt(/version\/(\d+(\.\d+)?)/i),Se=/tablet/i.test(It)&&!/tablet pc/i.test(It),Ne=!Se&&/[^-]mobi/i.test(It),pe=/xbox/i.test(It);/opera/i.test(It)?tt={name:"Opera",opera:bt,version:we||vt(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(It)?tt={name:"Opera",opera:bt,version:vt(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||we}:/SamsungBrowser/i.test(It)?tt={name:"Samsung Internet for Android",samsungBrowser:bt,version:we||vt(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/coast/i.test(It)?tt={name:"Opera Coast",coast:bt,version:we||vt(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/yabrowser/i.test(It)?tt={name:"Yandex Browser",yandexbrowser:bt,version:we||vt(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(It)?tt={name:"UC Browser",ucbrowser:bt,version:vt(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(It)?tt={name:"Maxthon",maxthon:bt,version:vt(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(It)?tt={name:"Epiphany",epiphany:bt,version:vt(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(It)?tt={name:"Puffin",puffin:bt,version:vt(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(It)?tt={name:"Sleipnir",sleipnir:bt,version:vt(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(It)?tt={name:"K-Meleon",kMeleon:bt,version:vt(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:Qt?(tt={name:"Windows Phone",osname:"Windows Phone",windowsphone:bt},oe?(tt.msedge=bt,tt.version=oe):(tt.msie=bt,tt.version=vt(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(It)?tt={name:"Internet Explorer",msie:bt,version:vt(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:mt?tt={name:"Chrome",osname:"Chrome OS",chromeos:bt,chromeBook:bt,chrome:bt,version:vt(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(It)?tt={name:"Microsoft Edge",msedge:bt,version:oe}:/vivaldi/i.test(It)?tt={name:"Vivaldi",vivaldi:bt,version:vt(/vivaldi\/(\d+(\.\d+)?)/i)||we}:Dt?tt={name:"Sailfish",osname:"Sailfish OS",sailfish:bt,version:vt(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(It)?tt={name:"SeaMonkey",seamonkey:bt,version:vt(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(It)?(tt={name:"Firefox",firefox:bt,version:vt(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(It)&&(tt.firefoxos=bt,tt.osname="Firefox OS")):Ct?tt={name:"Amazon Silk",silk:bt,version:vt(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(It)?tt={name:"PhantomJS",phantom:bt,version:vt(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(It)?tt={name:"SlimerJS",slimer:bt,version:vt(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(It)||/rim\stablet/i.test(It)?tt={name:"BlackBerry",osname:"BlackBerry OS",blackberry:bt,version:we||vt(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:Ft?(tt={name:"WebOS",osname:"WebOS",webos:bt,version:we||vt(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(It)&&(tt.touchpad=bt)):/bada/i.test(It)?tt={name:"Bada",osname:"Bada",bada:bt,version:vt(/dolfin\/(\d+(\.\d+)?)/i)}:Ut?tt={name:"Tizen",osname:"Tizen",tizen:bt,version:vt(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||we}:/qupzilla/i.test(It)?tt={name:"QupZilla",qupzilla:bt,version:vt(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||we}:/chromium/i.test(It)?tt={name:"Chromium",chromium:bt,version:vt(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||we}:/chrome|crios|crmo/i.test(It)?tt={name:"Chrome",chrome:bt,version:vt(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:ut?tt={name:"Android",version:we}:/safari|applewebkit/i.test(It)?(tt={name:"Safari",safari:bt},we&&(tt.version=we)):st?(tt={name:st=="iphone"?"iPhone":st=="ipad"?"iPad":"iPod"},we&&(tt.version=we)):tt=/googlebot/i.test(It)?{name:"Googlebot",googlebot:bt,version:vt(/googlebot\/(\d+(\.\d+))/i)||we}:{name:vt(/^(.*)\/(.*) /),version:et(/^(.*)\/(.*) /)},!tt.msedge&&/(apple)?webkit/i.test(It)?(/(apple)?webkit\/537\.36/i.test(It)?(tt.name=tt.name||"Blink",tt.blink=bt):(tt.name=tt.name||"Webkit",tt.webkit=bt),!tt.version&&we&&(tt.version=we)):!tt.opera&&/gecko\//i.test(It)&&(tt.name=tt.name||"Gecko",tt.gecko=bt,tt.version=tt.version||vt(/gecko\/(\d+(\.\d+)?)/i)),tt.windowsphone||!ut&&!tt.silk?!tt.windowsphone&&st?(tt[st]=bt,tt.ios=bt,tt.osname="iOS"):Kt?(tt.mac=bt,tt.osname="macOS"):pe?(tt.xbox=bt,tt.osname="Xbox"):$t?(tt.windows=bt,tt.osname="Windows"):ue&&(tt.linux=bt,tt.osname="Linux"):(tt.android=bt,tt.osname="Android");var Ue="";tt.windows?Ue=function(Jt){switch(Jt){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}}(vt(/Windows ((NT|XP)( \d\d?.\d)?)/i)):tt.windowsphone?Ue=vt(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):tt.mac?(Ue=vt(/Mac OS X (\d+([_\.\s]\d+)*)/i),Ue=Ue.replace(/[_\s]/g,".")):st?(Ue=vt(/os (\d+([_\s]\d+)*) like mac os x/i),Ue=Ue.replace(/[_\s]/g,".")):ut?Ue=vt(/android[ \/-](\d+(\.\d+)*)/i):tt.webos?Ue=vt(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):tt.blackberry?Ue=vt(/rim\stablet\sos\s(\d+(\.\d+)*)/i):tt.bada?Ue=vt(/bada\/(\d+(\.\d+)*)/i):tt.tizen&&(Ue=vt(/tizen[\/\s](\d+(\.\d+)*)/i)),Ue&&(tt.osversion=Ue);var de=!tt.windows&&Ue.split(".")[0];return Se||pt||st=="ipad"||ut&&(de==3||de>=4&&!Ne)||tt.silk?tt.tablet=bt:(Ne||st=="iphone"||st=="ipod"||ut||ct||tt.blackberry||tt.webos||tt.bada)&&(tt.mobile=bt),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=bt: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=bt:tt.x=bt,tt}function Wt(It){return It.split(".").length}function xt(It,vt){var et,tt=[];if(Array.prototype.map)return Array.prototype.map.call(It,vt);for(et=0;et<It.length;et++)tt.push(vt(It[et]));return tt}function Ot(It){for(var vt=Math.max(Wt(It[0]),Wt(It[1])),et=xt(It,function(tt){var st=vt-Wt(tt);return tt+=new Array(st+1).join(".0"),xt(tt.split("."),function(rt){return new Array(20-rt.length).join("0")+rt}).reverse()});--vt>=0;){if(et[0][vt]>et[1][vt])return 1;if(et[0][vt]!==et[1][vt])return-1;if(vt===0)return 0}}function Bt(It,vt,et){var tt=Tt;typeof vt=="string"&&(et=vt,vt=void 0),vt===void 0&&(vt=!1),et&&(tt=Nt(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 vt}function At(It,vt,et){return!Bt(It,vt,et)}var bt=!0,Tt=Nt(typeof navigator!="undefined"&&navigator.userAgent||"");return Tt.test=function(It){for(var vt=0;vt<It.length;++vt){var et=It[vt];if(typeof et=="string"&&et in Tt)return!0}return!1},Tt.isUnsupportedBrowser=Bt,Tt.compareVersions=Ot,Tt.check=At,Tt._detect=Nt,Tt.detect=Nt,Tt})},{}],36:[function(yt,Vt,Yt){},{}],37:[function(yt,Vt,Yt){function Nt(Tt){if(Tt&&!At(Tt))throw new Error("Unknown encoding: "+Tt)}function Wt(Tt){return Tt.toString(this.encoding)}function xt(Tt){this.charReceived=Tt.length%2,this.charLength=this.charReceived?2:0}function Ot(Tt){this.charReceived=Tt.length%3,this.charLength=this.charReceived?3:0}var Bt=yt("buffer").Buffer,At=Bt.isEncoding||function(Tt){switch(Tt&&Tt.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}},bt=Yt.StringDecoder=function(Tt){switch(this.encoding=(Tt||"utf8").toLowerCase().replace(/[-_]/,""),Nt(Tt),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=Wt)}this.charBuffer=new Bt(6),this.charReceived=0,this.charLength=0};bt.prototype.write=function(Tt){for(var It="";this.charLength;){var vt=Tt.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:Tt.length;if(Tt.copy(this.charBuffer,this.charReceived,0,vt),this.charReceived+=vt,this.charReceived<this.charLength)return"";Tt=Tt.slice(vt,Tt.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,Tt.length===0)return It;break}this.charLength+=this.surrogateSize,It=""}this.detectIncompleteChar(Tt);var et=Tt.length;this.charLength&&(Tt.copy(this.charBuffer,0,Tt.length-this.charReceived,et),et-=this.charReceived),It+=Tt.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),Tt.copy(this.charBuffer,0,0,st),It.substring(0,et)}return It},bt.prototype.detectIncompleteChar=function(Tt){for(var It=Tt.length>=3?3:Tt.length;It>0;It--){var vt=Tt[Tt.length-It];if(It==1&&vt>>5==6){this.charLength=2;break}if(It<=2&&vt>>4==14){this.charLength=3;break}if(It<=3&&vt>>3==30){this.charLength=4;break}}this.charReceived=It},bt.prototype.end=function(Tt){var It="";if(Tt&&Tt.length&&(It=this.write(Tt)),this.charReceived){var vt=this.charReceived,et=this.charBuffer,tt=this.encoding;It+=et.slice(0,vt).toString(tt)}return It}},{buffer:38}],38:[function(yt,Vt,Yt){(function(Nt){"use strict";function Wt(){return Ot.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function xt(Mt,Et){if(Wt()<Et)throw new RangeError("Invalid typed array length");return Ot.TYPED_ARRAY_SUPPORT?(Mt=new Uint8Array(Et),Mt.__proto__=Ot.prototype):(Mt===null&&(Mt=new Ot(Et)),Mt.length=Et),Mt}function Ot(Mt,Et,Ht){if(!(Ot.TYPED_ARRAY_SUPPORT||this instanceof Ot))return new Ot(Mt,Et,Ht);if(typeof Mt=="number"){if(typeof Et=="string")throw new Error("If encoding is specified then the first argument must be a string");return Tt(this,Mt)}return Bt(this,Mt,Et,Ht)}function Bt(Mt,Et,Ht,Pt){if(typeof Et=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&Et instanceof ArrayBuffer?et(Mt,Et,Ht,Pt):typeof Et=="string"?It(Mt,Et,Ht):tt(Mt,Et)}function At(Mt){if(typeof Mt!="number")throw new TypeError('"size" argument must be a number');if(Mt<0)throw new RangeError('"size" argument must not be negative')}function bt(Mt,Et,Ht,Pt){return At(Et),Et<=0?xt(Mt,Et):Ht!==void 0?typeof Pt=="string"?xt(Mt,Et).fill(Ht,Pt):xt(Mt,Et).fill(Ht):xt(Mt,Et)}function Tt(Mt,Et){if(At(Et),Mt=xt(Mt,Et<0?0:0|st(Et)),!Ot.TYPED_ARRAY_SUPPORT)for(var Ht=0;Ht<Et;++Ht)Mt[Ht]=0;return Mt}function It(Mt,Et,Ht){if(typeof Ht=="string"&&Ht!==""||(Ht="utf8"),!Ot.isEncoding(Ht))throw new TypeError('"encoding" must be a valid string encoding');var Pt=0|ut(Et,Ht);Mt=xt(Mt,Pt);var dt=Mt.write(Et,Ht);return dt!==Pt&&(Mt=Mt.slice(0,dt)),Mt}function vt(Mt,Et){var Ht=Et.length<0?0:0|st(Et.length);Mt=xt(Mt,Ht);for(var Pt=0;Pt<Ht;Pt+=1)Mt[Pt]=255&Et[Pt];return Mt}function et(Mt,Et,Ht,Pt){if(Et.byteLength,Ht<0||Et.byteLength<Ht)throw new RangeError("'offset' is out of bounds");if(Et.byteLength<Ht+(Pt||0))throw new RangeError("'length' is out of bounds");return Et=Ht===void 0&&Pt===void 0?new Uint8Array(Et):Pt===void 0?new Uint8Array(Et,Ht):new Uint8Array(Et,Ht,Pt),Ot.TYPED_ARRAY_SUPPORT?(Mt=Et,Mt.__proto__=Ot.prototype):Mt=vt(Mt,Et),Mt}function tt(Mt,Et){if(Ot.isBuffer(Et)){var Ht=0|st(Et.length);return Mt=xt(Mt,Ht),Mt.length===0||Et.copy(Mt,0,0,Ht),Mt}if(Et){if(typeof ArrayBuffer!="undefined"&&Et.buffer instanceof ArrayBuffer||"length"in Et)return typeof Et.length!="number"||me(Et.length)?xt(Mt,0):vt(Mt,Et);if(Et.type==="Buffer"&&ce(Et.data))return vt(Mt,Et.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function st(Mt){if(Mt>=Wt())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Wt().toString(16)+" bytes");return 0|Mt}function rt(Mt){return+Mt!=Mt&&(Mt=0),Ot.alloc(+Mt)}function ut(Mt,Et){if(Ot.isBuffer(Mt))return Mt.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(Mt)||Mt instanceof ArrayBuffer))return Mt.byteLength;typeof Mt!="string"&&(Mt=""+Mt);var Ht=Mt.length;if(Ht===0)return 0;for(var Pt=!1;;)switch(Et){case"ascii":case"latin1":case"binary":return Ht;case"utf8":case"utf-8":case void 0:return rn(Mt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Ht;case"hex":return Ht>>>1;case"base64":return je(Mt).length;default:if(Pt)return rn(Mt).length;Et=(""+Et).toLowerCase(),Pt=!0}}function ct(Mt,Et,Ht){var Pt=!1;if((Et===void 0||Et<0)&&(Et=0),Et>this.length||((Ht===void 0||Ht>this.length)&&(Ht=this.length),Ht<=0)||(Ht>>>=0,Et>>>=0,Ht<=Et))return"";for(Mt||(Mt="utf8");;)switch(Mt){case"hex":return pe(this,Et,Ht);case"utf8":case"utf-8":return oe(this,Et,Ht);case"ascii":return Se(this,Et,Ht);case"latin1":case"binary":return Ne(this,Et,Ht);case"base64":return ue(this,Et,Ht);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ue(this,Et,Ht);default:if(Pt)throw new TypeError("Unknown encoding: "+Mt);Mt=(Mt+"").toLowerCase(),Pt=!0}}function pt(Mt,Et,Ht){var Pt=Mt[Et];Mt[Et]=Mt[Ht],Mt[Ht]=Pt}function mt(Mt,Et,Ht,Pt,dt){if(Mt.length===0)return-1;if(typeof Ht=="string"?(Pt=Ht,Ht=0):Ht>2147483647?Ht=2147483647:Ht<-2147483648&&(Ht=-2147483648),Ht=+Ht,isNaN(Ht)&&(Ht=dt?0:Mt.length-1),Ht<0&&(Ht=Mt.length+Ht),Ht>=Mt.length){if(dt)return-1;Ht=Mt.length-1}else if(Ht<0){if(!dt)return-1;Ht=0}if(typeof Et=="string"&&(Et=Ot.from(Et,Pt)),Ot.isBuffer(Et))return Et.length===0?-1:Ct(Mt,Et,Ht,Pt,dt);if(typeof Et=="number")return Et&=255,Ot.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?dt?Uint8Array.prototype.indexOf.call(Mt,Et,Ht):Uint8Array.prototype.lastIndexOf.call(Mt,Et,Ht):Ct(Mt,[Et],Ht,Pt,dt);throw new TypeError("val must be string, number or Buffer")}function Ct(Mt,Et,Ht,Pt,dt){function gt(Re,hn){return zt===1?Re[hn]:Re.readUInt16BE(hn*zt)}var zt=1,re=Mt.length,Zt=Et.length;if(Pt!==void 0&&((Pt=String(Pt).toLowerCase())==="ucs2"||Pt==="ucs-2"||Pt==="utf16le"||Pt==="utf-16le")){if(Mt.length<2||Et.length<2)return-1;zt=2,re/=2,Zt/=2,Ht/=2}var ye;if(dt){var Ye=-1;for(ye=Ht;ye<re;ye++)if(gt(Mt,ye)===gt(Et,Ye===-1?0:ye-Ye)){if(Ye===-1&&(Ye=ye),ye-Ye+1===Zt)return Ye*zt}else Ye!==-1&&(ye-=ye-Ye),Ye=-1}else for(Ht+Zt>re&&(Ht=re-Zt),ye=Ht;ye>=0;ye--){for(var sn=!0,Le=0;Le<Zt;Le++)if(gt(Mt,ye+Le)!==gt(Et,Le)){sn=!1;break}if(sn)return ye}return-1}function Dt(Mt,Et,Ht,Pt){Ht=Number(Ht)||0;var dt=Mt.length-Ht;Pt?(Pt=Number(Pt))>dt&&(Pt=dt):Pt=dt;var gt=Et.length;if(gt%2!=0)throw new TypeError("Invalid hex string");Pt>gt/2&&(Pt=gt/2);for(var zt=0;zt<Pt;++zt){var re=parseInt(Et.substr(2*zt,2),16);if(isNaN(re))return zt;Mt[Ht+zt]=re}return zt}function Ut(Mt,Et,Ht,Pt){return $e(rn(Et,Mt.length-Ht),Mt,Ht,Pt)}function Ft(Mt,Et,Ht,Pt){return $e(ke(Et),Mt,Ht,Pt)}function Qt(Mt,Et,Ht,Pt){return Ft(Mt,Et,Ht,Pt)}function $t(Mt,Et,Ht,Pt){return $e(je(Et),Mt,Ht,Pt)}function Kt(Mt,Et,Ht,Pt){return $e(Ie(Et,Mt.length-Ht),Mt,Ht,Pt)}function ue(Mt,Et,Ht){return Et===0&&Ht===Mt.length?le.fromByteArray(Mt):le.fromByteArray(Mt.slice(Et,Ht))}function oe(Mt,Et,Ht){Ht=Math.min(Mt.length,Ht);for(var Pt=[],dt=Et;dt<Ht;){var gt=Mt[dt],zt=null,re=gt>239?4:gt>223?3:gt>191?2:1;if(dt+re<=Ht){var Zt,ye,Ye,sn;switch(re){case 1:gt<128&&(zt=gt);break;case 2:Zt=Mt[dt+1],(192&Zt)==128&&(sn=(31>)<<6|63&Zt)>127&&(zt=sn);break;case 3:Zt=Mt[dt+1],ye=Mt[dt+2],(192&Zt)==128&&(192&ye)==128&&(sn=(15>)<<12|(63&Zt)<<6|63&ye)>2047&&(sn<55296||sn>57343)&&(zt=sn);break;case 4:Zt=Mt[dt+1],ye=Mt[dt+2],Ye=Mt[dt+3],(192&Zt)==128&&(192&ye)==128&&(192&Ye)==128&&(sn=(15>)<<18|(63&Zt)<<12|(63&ye)<<6|63&Ye)>65535&&sn<1114112&&(zt=sn)}}zt===null?(zt=65533,re=1):zt>65535&&(zt-=65536,Pt.push(zt>>>10&1023|55296),zt=56320|1023&zt),Pt.push(zt),dt+=re}return we(Pt)}function we(Mt){var Et=Mt.length;if(Et<=he)return String.fromCharCode.apply(String,Mt);for(var Ht="",Pt=0;Pt<Et;)Ht+=String.fromCharCode.apply(String,Mt.slice(Pt,Pt+=he));return Ht}function Se(Mt,Et,Ht){var Pt="";Ht=Math.min(Mt.length,Ht);for(var dt=Et;dt<Ht;++dt)Pt+=String.fromCharCode(127&Mt[dt]);return Pt}function Ne(Mt,Et,Ht){var Pt="";Ht=Math.min(Mt.length,Ht);for(var dt=Et;dt<Ht;++dt)Pt+=String.fromCharCode(Mt[dt]);return Pt}function pe(Mt,Et,Ht){var Pt=Mt.length;(!Et||Et<0)&&(Et=0),(!Ht||Ht<0||Ht>Pt)&&(Ht=Pt);for(var dt="",gt=Et;gt<Ht;++gt)dt+=We(Mt[gt]);return dt}function Ue(Mt,Et,Ht){for(var Pt=Mt.slice(Et,Ht),dt="",gt=0;gt<Pt.length;gt+=2)dt+=String.fromCharCode(Pt[gt]+256*Pt[gt+1]);return dt}function de(Mt,Et,Ht){if(Mt%1!=0||Mt<0)throw new RangeError("offset is not uint");if(Mt+Et>Ht)throw new RangeError("Trying to access beyond buffer length")}function Jt(Mt,Et,Ht,Pt,dt,gt){if(!Ot.isBuffer(Mt))throw new TypeError('"buffer" argument must be a Buffer instance');if(Et>dt||Et<gt)throw new RangeError('"value" argument is out of bounds');if(Ht+Pt>Mt.length)throw new RangeError("Index out of range")}function ee(Mt,Et,Ht,Pt){Et<0&&(Et=65535+Et+1);for(var dt=0,gt=Math.min(Mt.length-Ht,2);dt<gt;++dt)Mt[Ht+dt]=(Et&255<<8*(Pt?dt:1-dt))>>>8*(Pt?dt:1-dt)}function ae(Mt,Et,Ht,Pt){Et<0&&(Et=4294967295+Et+1);for(var dt=0,gt=Math.min(Mt.length-Ht,4);dt<gt;++dt)Mt[Ht+dt]=Et>>>8*(Pt?dt:3-dt)&255}function fe(Mt,Et,Ht,Pt,dt,gt){if(Ht+Pt>Mt.length)throw new RangeError("Index out of range");if(Ht<0)throw new RangeError("Index out of range")}function se(Mt,Et,Ht,Pt,dt){return dt||fe(Mt,Et,Ht,4,34028234663852886e22,-34028234663852886e22),Ee.write(Mt,Et,Ht,Pt,23,4),Ht+4}function De(Mt,Et,Ht,Pt,dt){return dt||fe(Mt,Et,Ht,8,17976931348623157e292,-17976931348623157e292),Ee.write(Mt,Et,Ht,Pt,52,8),Ht+8}function Oe(Mt){if(Mt=en(Mt).replace(_t,""),Mt.length<2)return"";for(;Mt.length%4!=0;)Mt+="=";return Mt}function en(Mt){return Mt.trim?Mt.trim():Mt.replace(/^\s+|\s+$/g,"")}function We(Mt){return Mt<16?"0"+Mt.toString(16):Mt.toString(16)}function rn(Mt,Et){Et=Et||1/0;for(var Ht,Pt=Mt.length,dt=null,gt=[],zt=0;zt<Pt;++zt){if((Ht=Mt.charCodeAt(zt))>55295&&Ht<57344){if(!dt){if(Ht>56319){(Et-=3)>-1&>.push(239,191,189);continue}if(zt+1===Pt){(Et-=3)>-1&>.push(239,191,189);continue}dt=Ht;continue}if(Ht<56320){(Et-=3)>-1&>.push(239,191,189),dt=Ht;continue}Ht=65536+(dt-55296<<10|Ht-56320)}else dt&&(Et-=3)>-1&>.push(239,191,189);if(dt=null,Ht<128){if((Et-=1)<0)break;gt.push(Ht)}else if(Ht<2048){if((Et-=2)<0)break;gt.push(Ht>>6|192,63&Ht|128)}else if(Ht<65536){if((Et-=3)<0)break;gt.push(Ht>>12|224,Ht>>6&63|128,63&Ht|128)}else{if(!(Ht<1114112))throw new Error("Invalid code point");if((Et-=4)<0)break;gt.push(Ht>>18|240,Ht>>12&63|128,Ht>>6&63|128,63&Ht|128)}}return gt}function ke(Mt){for(var Et=[],Ht=0;Ht<Mt.length;++Ht)Et.push(255&Mt.charCodeAt(Ht));return Et}function Ie(Mt,Et){for(var Ht,Pt,dt,gt=[],zt=0;zt<Mt.length&&!((Et-=2)<0);++zt)Ht=Mt.charCodeAt(zt),Pt=Ht>>8,dt=Ht%256,gt.push(dt),gt.push(Pt);return gt}function je(Mt){return le.toByteArray(Oe(Mt))}function $e(Mt,Et,Ht,Pt){for(var dt=0;dt<Pt&&!(dt+Ht>=Et.length||dt>=Mt.length);++dt)Et[dt+Ht]=Mt[dt];return dt}function me(Mt){return Mt!==Mt}var le=yt("base64-js"),Ee=yt("ieee754"),ce=yt("isarray");Yt.Buffer=Ot,Yt.SlowBuffer=rt,Yt.INSPECT_MAX_BYTES=50,Ot.TYPED_ARRAY_SUPPORT=Nt.TYPED_ARRAY_SUPPORT!==void 0?Nt.TYPED_ARRAY_SUPPORT:function(){try{var Mt=new Uint8Array(1);return Mt.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},Mt.foo()===42&&typeof Mt.subarray=="function"&&Mt.subarray(1,1).byteLength===0}catch(Et){return!1}}(),Yt.kMaxLength=Wt(),Ot.poolSize=8192,Ot._augment=function(Mt){return Mt.__proto__=Ot.prototype,Mt},Ot.from=function(Mt,Et,Ht){return Bt(null,Mt,Et,Ht)},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(Mt,Et,Ht){return bt(null,Mt,Et,Ht)},Ot.allocUnsafe=function(Mt){return Tt(null,Mt)},Ot.allocUnsafeSlow=function(Mt){return Tt(null,Mt)},Ot.isBuffer=function(Mt){return!(Mt==null||!Mt._isBuffer)},Ot.compare=function(Mt,Et){if(!Ot.isBuffer(Mt)||!Ot.isBuffer(Et))throw new TypeError("Arguments must be Buffers");if(Mt===Et)return 0;for(var Ht=Mt.length,Pt=Et.length,dt=0,gt=Math.min(Ht,Pt);dt<gt;++dt)if(Mt[dt]!==Et[dt]){Ht=Mt[dt],Pt=Et[dt];break}return Ht<Pt?-1:Pt<Ht?1:0},Ot.isEncoding=function(Mt){switch(String(Mt).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(Mt,Et){if(!ce(Mt))throw new TypeError('"list" argument must be an Array of Buffers');if(Mt.length===0)return Ot.alloc(0);var Ht;if(Et===void 0)for(Et=0,Ht=0;Ht<Mt.length;++Ht)Et+=Mt[Ht].length;var Pt=Ot.allocUnsafe(Et),dt=0;for(Ht=0;Ht<Mt.length;++Ht){var gt=Mt[Ht];if(!Ot.isBuffer(gt))throw new TypeError('"list" argument must be an Array of Buffers');gt.copy(Pt,dt),dt+=gt.length}return Pt},Ot.byteLength=ut,Ot.prototype._isBuffer=!0,Ot.prototype.swap16=function(){var Mt=this.length;if(Mt%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Et=0;Et<Mt;Et+=2)pt(this,Et,Et+1);return this},Ot.prototype.swap32=function(){var Mt=this.length;if(Mt%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Et=0;Et<Mt;Et+=4)pt(this,Et,Et+3),pt(this,Et+1,Et+2);return this},Ot.prototype.swap64=function(){var Mt=this.length;if(Mt%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Et=0;Et<Mt;Et+=8)pt(this,Et,Et+7),pt(this,Et+1,Et+6),pt(this,Et+2,Et+5),pt(this,Et+3,Et+4);return this},Ot.prototype.toString=function(){var Mt=0|this.length;return Mt===0?"":arguments.length===0?oe(this,0,Mt):ct.apply(this,arguments)},Ot.prototype.equals=function(Mt){if(!Ot.isBuffer(Mt))throw new TypeError("Argument must be a Buffer");return this===Mt||Ot.compare(this,Mt)===0},Ot.prototype.inspect=function(){var Mt="",Et=Yt.INSPECT_MAX_BYTES;return this.length>0&&(Mt=this.toString("hex",0,Et).match(/.{2}/g).join(" "),this.length>Et&&(Mt+=" ... ")),"<Buffer "+Mt+">"},Ot.prototype.compare=function(Mt,Et,Ht,Pt,dt){if(!Ot.isBuffer(Mt))throw new TypeError("Argument must be a Buffer");if(Et===void 0&&(Et=0),Ht===void 0&&(Ht=Mt?Mt.length:0),Pt===void 0&&(Pt=0),dt===void 0&&(dt=this.length),Et<0||Ht>Mt.length||Pt<0||dt>this.length)throw new RangeError("out of range index");if(Pt>=dt&&Et>=Ht)return 0;if(Pt>=dt)return-1;if(Et>=Ht)return 1;if(Et>>>=0,Ht>>>=0,Pt>>>=0,dt>>>=0,this===Mt)return 0;for(var gt=dt-Pt,zt=Ht-Et,re=Math.min(gt,zt),Zt=this.slice(Pt,dt),ye=Mt.slice(Et,Ht),Ye=0;Ye<re;++Ye)if(Zt[Ye]!==ye[Ye]){gt=Zt[Ye],zt=ye[Ye];break}return gt<zt?-1:zt<gt?1:0},Ot.prototype.includes=function(Mt,Et,Ht){return this.indexOf(Mt,Et,Ht)!==-1},Ot.prototype.indexOf=function(Mt,Et,Ht){return mt(this,Mt,Et,Ht,!0)},Ot.prototype.lastIndexOf=function(Mt,Et,Ht){return mt(this,Mt,Et,Ht,!1)},Ot.prototype.write=function(Mt,Et,Ht,Pt){if(Et===void 0)Pt="utf8",Ht=this.length,Et=0;else if(Ht===void 0&&typeof Et=="string")Pt=Et,Ht=this.length,Et=0;else{if(!isFinite(Et))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");Et|=0,isFinite(Ht)?(Ht|=0,Pt===void 0&&(Pt="utf8")):(Pt=Ht,Ht=void 0)}var dt=this.length-Et;if((Ht===void 0||Ht>dt)&&(Ht=dt),Mt.length>0&&(Ht<0||Et<0)||Et>this.length)throw new RangeError("Attempt to write outside buffer bounds");Pt||(Pt="utf8");for(var gt=!1;;)switch(Pt){case"hex":return Dt(this,Mt,Et,Ht);case"utf8":case"utf-8":return Ut(this,Mt,Et,Ht);case"ascii":return Ft(this,Mt,Et,Ht);case"latin1":case"binary":return Qt(this,Mt,Et,Ht);case"base64":return $t(this,Mt,Et,Ht);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Kt(this,Mt,Et,Ht);default:if(gt)throw new TypeError("Unknown encoding: "+Pt);Pt=(""+Pt).toLowerCase(),gt=!0}},Ot.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var he=4096;Ot.prototype.slice=function(Mt,Et){var Ht=this.length;Mt=~~Mt,Et=Et===void 0?Ht:~~Et,Mt<0?(Mt+=Ht)<0&&(Mt=0):Mt>Ht&&(Mt=Ht),Et<0?(Et+=Ht)<0&&(Et=0):Et>Ht&&(Et=Ht),Et<Mt&&(Et=Mt);var Pt;if(Ot.TYPED_ARRAY_SUPPORT)Pt=this.subarray(Mt,Et),Pt.__proto__=Ot.prototype;else{var dt=Et-Mt;Pt=new Ot(dt,void 0);for(var gt=0;gt<dt;++gt)Pt[gt]=this[gt+Mt]}return Pt},Ot.prototype.readUIntLE=function(Mt,Et,Ht){Mt|=0,Et|=0,Ht||de(Mt,Et,this.length);for(var Pt=this[Mt],dt=1,gt=0;++gt<Et&&(dt*=256);)Pt+=this[Mt+gt]*dt;return Pt},Ot.prototype.readUIntBE=function(Mt,Et,Ht){Mt|=0,Et|=0,Ht||de(Mt,Et,this.length);for(var Pt=this[Mt+--Et],dt=1;Et>0&&(dt*=256);)Pt+=this[Mt+--Et]*dt;return Pt},Ot.prototype.readUInt8=function(Mt,Et){return Et||de(Mt,1,this.length),this[Mt]},Ot.prototype.readUInt16LE=function(Mt,Et){return Et||de(Mt,2,this.length),this[Mt]|this[Mt+1]<<8},Ot.prototype.readUInt16BE=function(Mt,Et){return Et||de(Mt,2,this.length),this[Mt]<<8|this[Mt+1]},Ot.prototype.readUInt32LE=function(Mt,Et){return Et||de(Mt,4,this.length),(this[Mt]|this[Mt+1]<<8|this[Mt+2]<<16)+16777216*this[Mt+3]},Ot.prototype.readUInt32BE=function(Mt,Et){return Et||de(Mt,4,this.length),16777216*this[Mt]+(this[Mt+1]<<16|this[Mt+2]<<8|this[Mt+3])},Ot.prototype.readIntLE=function(Mt,Et,Ht){Mt|=0,Et|=0,Ht||de(Mt,Et,this.length);for(var Pt=this[Mt],dt=1,gt=0;++gt<Et&&(dt*=256);)Pt+=this[Mt+gt]*dt;return dt*=128,Pt>=dt&&(Pt-=Math.pow(2,8*Et)),Pt},Ot.prototype.readIntBE=function(Mt,Et,Ht){Mt|=0,Et|=0,Ht||de(Mt,Et,this.length);for(var Pt=Et,dt=1,gt=this[Mt+--Pt];Pt>0&&(dt*=256);)gt+=this[Mt+--Pt]*dt;return dt*=128,gt>=dt&&(gt-=Math.pow(2,8*Et)),gt},Ot.prototype.readInt8=function(Mt,Et){return Et||de(Mt,1,this.length),128&this[Mt]?-1*(255-this[Mt]+1):this[Mt]},Ot.prototype.readInt16LE=function(Mt,Et){Et||de(Mt,2,this.length);var Ht=this[Mt]|this[Mt+1]<<8;return 32768&Ht?4294901760|Ht:Ht},Ot.prototype.readInt16BE=function(Mt,Et){Et||de(Mt,2,this.length);var Ht=this[Mt+1]|this[Mt]<<8;return 32768&Ht?4294901760|Ht:Ht},Ot.prototype.readInt32LE=function(Mt,Et){return Et||de(Mt,4,this.length),this[Mt]|this[Mt+1]<<8|this[Mt+2]<<16|this[Mt+3]<<24},Ot.prototype.readInt32BE=function(Mt,Et){return Et||de(Mt,4,this.length),this[Mt]<<24|this[Mt+1]<<16|this[Mt+2]<<8|this[Mt+3]},Ot.prototype.readFloatLE=function(Mt,Et){return Et||de(Mt,4,this.length),Ee.read(this,Mt,!0,23,4)},Ot.prototype.readFloatBE=function(Mt,Et){return Et||de(Mt,4,this.length),Ee.read(this,Mt,!1,23,4)},Ot.prototype.readDoubleLE=function(Mt,Et){return Et||de(Mt,8,this.length),Ee.read(this,Mt,!0,52,8)},Ot.prototype.readDoubleBE=function(Mt,Et){return Et||de(Mt,8,this.length),Ee.read(this,Mt,!1,52,8)},Ot.prototype.writeUIntLE=function(Mt,Et,Ht,Pt){Mt=+Mt,Et|=0,Ht|=0,!Pt&&Jt(this,Mt,Et,Ht,Math.pow(2,8*Ht)-1,0);var dt=1,gt=0;for(this[Et]=255&Mt;++gt<Ht&&(dt*=256);)this[Et+gt]=Mt/dt&255;return Et+Ht},Ot.prototype.writeUIntBE=function(Mt,Et,Ht,Pt){Mt=+Mt,Et|=0,Ht|=0,!Pt&&Jt(this,Mt,Et,Ht,Math.pow(2,8*Ht)-1,0);var dt=Ht-1,gt=1;for(this[Et+dt]=255&Mt;--dt>=0&&(gt*=256);)this[Et+dt]=Mt/gt&255;return Et+Ht},Ot.prototype.writeUInt8=function(Mt,Et,Ht){return Mt=+Mt,Et|=0,Ht||Jt(this,Mt,Et,1,255,0),Ot.TYPED_ARRAY_SUPPORT||(Mt=Math.floor(Mt)),this[Et]=255&Mt,Et+1},Ot.prototype.writeUInt16LE=function(Mt,Et,Ht){return Mt=+Mt,Et|=0,Ht||Jt(this,Mt,Et,2,65535,0),Ot.TYPED_ARRAY_SUPPORT?(this[Et]=255&Mt,this[Et+1]=Mt>>>8):ee(this,Mt,Et,!0),Et+2},Ot.prototype.writeUInt16BE=function(Mt,Et,Ht){return Mt=+Mt,Et|=0,Ht||Jt(this,Mt,Et,2,65535,0),Ot.TYPED_ARRAY_SUPPORT?(this[Et]=Mt>>>8,this[Et+1]=255&Mt):ee(this,Mt,Et,!1),Et+2},Ot.prototype.writeUInt32LE=function(Mt,Et,Ht){return Mt=+Mt,Et|=0,Ht||Jt(this,Mt,Et,4,4294967295,0),Ot.TYPED_ARRAY_SUPPORT?(this[Et+3]=Mt>>>24,this[Et+2]=Mt>>>16,this[Et+1]=Mt>>>8,this[Et]=255&Mt):ae(this,Mt,Et,!0),Et+4},Ot.prototype.writeUInt32BE=function(Mt,Et,Ht){return Mt=+Mt,Et|=0,Ht||Jt(this,Mt,Et,4,4294967295,0),Ot.TYPED_ARRAY_SUPPORT?(this[Et]=Mt>>>24,this[Et+1]=Mt>>>16,this[Et+2]=Mt>>>8,this[Et+3]=255&Mt):ae(this,Mt,Et,!1),Et+4},Ot.prototype.writeIntLE=function(Mt,Et,Ht,Pt){if(Mt=+Mt,Et|=0,!Pt){var dt=Math.pow(2,8*Ht-1);Jt(this,Mt,Et,Ht,dt-1,-dt)}var gt=0,zt=1,re=0;for(this[Et]=255&Mt;++gt<Ht&&(zt*=256);)Mt<0&&re===0&&this[Et+gt-1]!==0&&(re=1),this[Et+gt]=(Mt/zt>>0)-re&255;return Et+Ht},Ot.prototype.writeIntBE=function(Mt,Et,Ht,Pt){if(Mt=+Mt,Et|=0,!Pt){var dt=Math.pow(2,8*Ht-1);Jt(this,Mt,Et,Ht,dt-1,-dt)}var gt=Ht-1,zt=1,re=0;for(this[Et+gt]=255&Mt;--gt>=0&&(zt*=256);)Mt<0&&re===0&&this[Et+gt+1]!==0&&(re=1),this[Et+gt]=(Mt/zt>>0)-re&255;return Et+Ht},Ot.prototype.writeInt8=function(Mt,Et,Ht){return Mt=+Mt,Et|=0,Ht||Jt(this,Mt,Et,1,127,-128),Ot.TYPED_ARRAY_SUPPORT||(Mt=Math.floor(Mt)),Mt<0&&(Mt=255+Mt+1),this[Et]=255&Mt,Et+1},Ot.prototype.writeInt16LE=function(Mt,Et,Ht){return Mt=+Mt,Et|=0,Ht||Jt(this,Mt,Et,2,32767,-32768),Ot.TYPED_ARRAY_SUPPORT?(this[Et]=255&Mt,this[Et+1]=Mt>>>8):ee(this,Mt,Et,!0),Et+2},Ot.prototype.writeInt16BE=function(Mt,Et,Ht){return Mt=+Mt,Et|=0,Ht||Jt(this,Mt,Et,2,32767,-32768),Ot.TYPED_ARRAY_SUPPORT?(this[Et]=Mt>>>8,this[Et+1]=255&Mt):ee(this,Mt,Et,!1),Et+2},Ot.prototype.writeInt32LE=function(Mt,Et,Ht){return Mt=+Mt,Et|=0,Ht||Jt(this,Mt,Et,4,2147483647,-2147483648),Ot.TYPED_ARRAY_SUPPORT?(this[Et]=255&Mt,this[Et+1]=Mt>>>8,this[Et+2]=Mt>>>16,this[Et+3]=Mt>>>24):ae(this,Mt,Et,!0),Et+4},Ot.prototype.writeInt32BE=function(Mt,Et,Ht){return Mt=+Mt,Et|=0,Ht||Jt(this,Mt,Et,4,2147483647,-2147483648),Mt<0&&(Mt=4294967295+Mt+1),Ot.TYPED_ARRAY_SUPPORT?(this[Et]=Mt>>>24,this[Et+1]=Mt>>>16,this[Et+2]=Mt>>>8,this[Et+3]=255&Mt):ae(this,Mt,Et,!1),Et+4},Ot.prototype.writeFloatLE=function(Mt,Et,Ht){return se(this,Mt,Et,!0,Ht)},Ot.prototype.writeFloatBE=function(Mt,Et,Ht){return se(this,Mt,Et,!1,Ht)},Ot.prototype.writeDoubleLE=function(Mt,Et,Ht){return De(this,Mt,Et,!0,Ht)},Ot.prototype.writeDoubleBE=function(Mt,Et,Ht){return De(this,Mt,Et,!1,Ht)},Ot.prototype.copy=function(Mt,Et,Ht,Pt){if(Ht||(Ht=0),Pt||Pt===0||(Pt=this.length),Et>=Mt.length&&(Et=Mt.length),Et||(Et=0),Pt>0&&Pt<Ht&&(Pt=Ht),Pt===Ht||Mt.length===0||this.length===0)return 0;if(Et<0)throw new RangeError("targetStart out of bounds");if(Ht<0||Ht>=this.length)throw new RangeError("sourceStart out of bounds");if(Pt<0)throw new RangeError("sourceEnd out of bounds");Pt>this.length&&(Pt=this.length),Mt.length-Et<Pt-Ht&&(Pt=Mt.length-Et+Ht);var dt,gt=Pt-Ht;if(this===Mt&&Ht<Et&&Et<Pt)for(dt=gt-1;dt>=0;--dt)Mt[dt+Et]=this[dt+Ht];else if(gt<1e3||!Ot.TYPED_ARRAY_SUPPORT)for(dt=0;dt<gt;++dt)Mt[dt+Et]=this[dt+Ht];else Uint8Array.prototype.set.call(Mt,this.subarray(Ht,Ht+gt),Et);return gt},Ot.prototype.fill=function(Mt,Et,Ht,Pt){if(typeof Mt=="string"){if(typeof Et=="string"?(Pt=Et,Et=0,Ht=this.length):typeof Ht=="string"&&(Pt=Ht,Ht=this.length),Mt.length===1){var dt=Mt.charCodeAt(0);dt<256&&(Mt=dt)}if(Pt!==void 0&&typeof Pt!="string")throw new TypeError("encoding must be a string");if(typeof Pt=="string"&&!Ot.isEncoding(Pt))throw new TypeError("Unknown encoding: "+Pt)}else typeof Mt=="number"&&(Mt&=255);if(Et<0||this.length<Et||this.length<Ht)throw new RangeError("Out of range index");if(Ht<=Et)return this;Et>>>=0,Ht=Ht===void 0?this.length:Ht>>>0,Mt||(Mt=0);var gt;if(typeof Mt=="number")for(gt=Et;gt<Ht;++gt)this[gt]=Mt;else{var zt=Ot.isBuffer(Mt)?Mt:rn(new Ot(Mt,Pt).toString()),re=zt.length;for(gt=0;gt<Ht-Et;++gt)this[gt+Et]=zt[gt%re]}return this};var _t=/[^+\/0-9A-Za-z-_]/g}).call(this,typeof Gt.g!="undefined"?Gt.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"base64-js":34,ieee754:161,isarray:166}],39:[function(yt,Vt,Yt){Vt.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(yt,Vt,Yt){"use strict";var Nt=function(){this.buffer=[],this.fns=[]};Nt.prototype.push=function(xt,Ot){if(this.fns.length)return this.fns.shift()(null,xt);var Bt={data:xt,priority:Ot},At=Wt(this.buffer,Bt,function(bt){return bt.priority});this.buffer.splice(At,0,Bt)},Nt.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 Wt=function(xt,Ot,Bt){Ot=Bt(Ot);for(var At=0,bt=xt?xt.length:At;At<bt;){var Tt=At+bt>>>1;Bt(xt[Tt])<Ot?At=Tt+1:bt=Tt}return At};Vt.exports=Nt},{}],41:[function(yt,Vt,Yt){function Nt(et){var tt=this,st=vt.call(arguments,1);return new Promise(function(rt,ut){function ct(Ct){var Dt;try{Dt=et.next(Ct)}catch(Ut){return ut(Ut)}mt(Dt)}function pt(Ct){var Dt;try{Dt=et.throw(Ct)}catch(Ut){return ut(Ut)}mt(Dt)}function mt(Ct){if(Ct.done)return rt(Ct.value);var Dt=Wt.call(tt,Ct.value);return Dt&&At(Dt)?Dt.then(ct,pt):pt(new TypeError('You may only yield a function, promise, generator, array, or object, but the following object was passed: "'+String(Ct.value)+'"'))}if(typeof et=="function"&&(et=et.apply(tt,st)),!et||typeof et.next!="function")return rt(et);ct()})}function Wt(et){return et&&(At(et)?et:Tt(et)||bt(et)?Nt.call(this,et):typeof et=="function"?xt.call(this,et):Array.isArray(et)?Ot.call(this,et):It(et)?Bt.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=vt.call(arguments,1)),st(ct)})})}function Ot(et){return Promise.all(et.map(Wt,this))}function Bt(et){for(var tt=new et.constructor,st=Object.keys(et),rt=[],ut=0;ut<st.length;ut++){var ct=st[ut],pt=Wt.call(this,et[ct]);pt&&At(pt)?function(mt,Ct){tt[Ct]=void 0,rt.push(mt.then(function(Dt){tt[Ct]=Dt}))}(pt,ct):tt[ct]=et[ct]}return Promise.all(rt).then(function(){return tt})}function At(et){return typeof et.then=="function"}function bt(et){return typeof et.next=="function"&&typeof et.throw=="function"}function Tt(et){var tt=et.constructor;return!!tt&&(tt.name==="GeneratorFunction"||tt.displayName==="GeneratorFunction"||bt(tt.prototype))}function It(et){return Object==et.constructor}var vt=Array.prototype.slice;Vt.exports=Nt.default=Nt.co=Nt,Nt.wrap=function(et){function tt(){return Nt.call(this,et.apply(this,arguments))}return tt.__generatorFunction__=et,tt}},{}],42:[function(yt,Vt,Yt){Vt.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(yt,Vt,Yt){"use strict";function Nt(Ot,Bt){if(!(this instanceof Nt))return new Nt(Ot,Bt);this.src=Ot,this._withAccess=Bt}function Wt(Ot,Bt){return Ot[Bt]===void 0&&Ot.__lookupGetter__(Bt)===void 0&&Ot.__lookupSetter__(Bt)===void 0}var xt=Array.prototype.slice;Vt.exports=Nt,Nt.prototype.withAccess=function(Ot){return this._withAccess=Ot!==!1,this},Nt.prototype.pick=function(Ot){return Array.isArray(Ot)||(Ot=xt.call(arguments)),Ot.length&&(this.keys=Ot),this},Nt.prototype.to=function(Ot){if(Ot=Ot||{},!this.src)return Ot;var Bt=this.keys||Object.keys(this.src);if(!this._withAccess){for(var At=0;At<Bt.length;At++)bt=Bt[At],Ot[bt]===void 0&&(Ot[bt]=this.src[bt]);return Ot}for(var At=0;At<Bt.length;At++){var bt=Bt[At];if(Wt(Ot,bt)){var Tt=this.src.__lookupGetter__(bt),It=this.src.__lookupSetter__(bt);Tt&&Ot.__defineGetter__(bt,Tt),It&&Ot.__defineSetter__(bt,It),Tt||It||(Ot[bt]=this.src[bt])}}return Ot},Nt.prototype.toCover=function(Ot){for(var Bt=this.keys||Object.keys(this.src),At=0;At<Bt.length;At++){var bt=Bt[At];delete Ot[bt];var Tt=this.src.__lookupGetter__(bt),It=this.src.__lookupSetter__(bt);Tt&&Ot.__defineGetter__(bt,Tt),It&&Ot.__defineSetter__(bt,It),Tt||It||(Ot[bt]=this.src[bt])}},Nt.prototype.override=Nt.prototype.toCover,Nt.prototype.and=function(Ot){var Bt={};return this.to(Bt),this.src=Ot,this.to(Bt),this.src=Bt,this}},{}],44:[function(yt,Vt,Yt){yt("../../modules/es6.string.iterator"),yt("../../modules/es6.array.from"),Vt.exports=yt("../../modules/_core").Array.from},{"../../modules/_core":65,"../../modules/es6.array.from":133,"../../modules/es6.string.iterator":145}],45:[function(yt,Vt,Yt){var Nt=yt("../../modules/_core"),Wt=Nt.JSON||(Nt.JSON={stringify:JSON.stringify});Vt.exports=function(xt){return Wt.stringify.apply(Wt,arguments)}},{"../../modules/_core":65}],46:[function(yt,Vt,Yt){yt("../../modules/es6.object.assign"),Vt.exports=yt("../../modules/_core").Object.assign},{"../../modules/_core":65,"../../modules/es6.object.assign":136}],47:[function(yt,Vt,Yt){yt("../../modules/es6.object.create");var Nt=yt("../../modules/_core").Object;Vt.exports=function(Wt,xt){return Nt.create(Wt,xt)}},{"../../modules/_core":65,"../../modules/es6.object.create":137}],48:[function(yt,Vt,Yt){yt("../../modules/es6.object.define-property");var Nt=yt("../../modules/_core").Object;Vt.exports=function(Wt,xt,Ot){return Nt.defineProperty(Wt,xt,Ot)}},{"../../modules/_core":65,"../../modules/es6.object.define-property":138}],49:[function(yt,Vt,Yt){yt("../../modules/es6.object.get-own-property-names");var Nt=yt("../../modules/_core").Object;Vt.exports=function(Wt){return Nt.getOwnPropertyNames(Wt)}},{"../../modules/_core":65,"../../modules/es6.object.get-own-property-names":139}],50:[function(yt,Vt,Yt){yt("../../modules/es6.object.get-prototype-of"),Vt.exports=yt("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":65,"../../modules/es6.object.get-prototype-of":140}],51:[function(yt,Vt,Yt){yt("../../modules/es6.object.keys"),Vt.exports=yt("../../modules/_core").Object.keys},{"../../modules/_core":65,"../../modules/es6.object.keys":141}],52:[function(yt,Vt,Yt){yt("../modules/es6.object.to-string"),yt("../modules/es6.string.iterator"),yt("../modules/web.dom.iterable"),yt("../modules/es6.promise"),yt("../modules/es7.promise.finally"),yt("../modules/es7.promise.try"),Vt.exports=yt("../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(yt,Vt,Yt){yt("../modules/web.immediate"),Vt.exports=yt("../modules/_core").setImmediate},{"../modules/_core":65,"../modules/web.immediate":152}],54:[function(yt,Vt,Yt){yt("../../modules/es6.string.from-code-point"),Vt.exports=yt("../../modules/_core").String.fromCodePoint},{"../../modules/_core":65,"../../modules/es6.string.from-code-point":144}],55:[function(yt,Vt,Yt){yt("../../modules/es6.function.has-instance"),Vt.exports=yt("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":130,"../../modules/es6.function.has-instance":135}],56:[function(yt,Vt,Yt){yt("../../modules/es6.symbol"),yt("../../modules/es6.object.to-string"),yt("../../modules/es7.symbol.async-iterator"),yt("../../modules/es7.symbol.observable"),Vt.exports=yt("../../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(yt,Vt,Yt){yt("../../modules/es6.string.iterator"),yt("../../modules/web.dom.iterable"),Vt.exports=yt("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":130,"../../modules/es6.string.iterator":145,"../../modules/web.dom.iterable":151}],58:[function(yt,Vt,Yt){Vt.exports=function(Nt){if(typeof Nt!="function")throw TypeError(Nt+" is not a function!");return Nt}},{}],59:[function(yt,Vt,Yt){Vt.exports=function(){}},{}],60:[function(yt,Vt,Yt){Vt.exports=function(Nt,Wt,xt,Ot){if(!(Nt instanceof Wt)||Ot!==void 0&&Ot in Nt)throw TypeError(xt+": incorrect invocation!");return Nt}},{}],61:[function(yt,Vt,Yt){var Nt=yt("./_is-object");Vt.exports=function(Wt){if(!Nt(Wt))throw TypeError(Wt+" is not an object!");return Wt}},{"./_is-object":85}],62:[function(yt,Vt,Yt){var Nt=yt("./_to-iobject"),Wt=yt("./_to-length"),xt=yt("./_to-absolute-index");Vt.exports=function(Ot){return function(Bt,At,bt){var Tt,It=Nt(Bt),vt=Wt(It.length),et=xt(bt,vt);if(Ot&&At!=At){for(;vt>et;)if((Tt=It[et++])!=Tt)return!0}else for(;vt>et;et++)if((Ot||et in It)&&It[et]===At)return Ot||et||0;return!Ot&&-1}}},{"./_to-absolute-index":121,"./_to-iobject":123,"./_to-length":124}],63:[function(yt,Vt,Yt){var Nt=yt("./_cof"),Wt=yt("./_wks")("toStringTag"),xt=Nt(function(){return arguments}())=="Arguments",Ot=function(Bt,At){try{return Bt[At]}catch(bt){}};Vt.exports=function(Bt){var At,bt,Tt;return Bt===void 0?"Undefined":Bt===null?"Null":typeof(bt=Ot(At=Object(Bt),Wt))=="string"?bt:xt?Nt(At):(Tt=Nt(At))=="Object"&&typeof At.callee=="function"?"Arguments":Tt}},{"./_cof":64,"./_wks":131}],64:[function(yt,Vt,Yt){var Nt={}.toString;Vt.exports=function(Wt){return Nt.call(Wt).slice(8,-1)}},{}],65:[function(yt,Vt,Yt){var Nt=Vt.exports={version:"2.5.7"};typeof __e=="number"&&(__e=Nt)},{}],66:[function(yt,Vt,Yt){"use strict";var Nt=yt("./_object-dp"),Wt=yt("./_property-desc");Vt.exports=function(xt,Ot,Bt){Ot in xt?Nt.f(xt,Ot,Wt(0,Bt)):xt[Ot]=Bt}},{"./_object-dp":98,"./_property-desc":111}],67:[function(yt,Vt,Yt){var Nt=yt("./_a-function");Vt.exports=function(Wt,xt,Ot){if(Nt(Wt),xt===void 0)return Wt;switch(Ot){case 1:return function(Bt){return Wt.call(xt,Bt)};case 2:return function(Bt,At){return Wt.call(xt,Bt,At)};case 3:return function(Bt,At,bt){return Wt.call(xt,Bt,At,bt)}}return function(){return Wt.apply(xt,arguments)}}},{"./_a-function":58}],68:[function(yt,Vt,Yt){Vt.exports=function(Nt){if(Nt==null)throw TypeError("Can't call method on "+Nt);return Nt}},{}],69:[function(yt,Vt,Yt){Vt.exports=!yt("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":74}],70:[function(yt,Vt,Yt){var Nt=yt("./_is-object"),Wt=yt("./_global").document,xt=Nt(Wt)&&Nt(Wt.createElement);Vt.exports=function(Ot){return xt?Wt.createElement(Ot):{}}},{"./_global":76,"./_is-object":85}],71:[function(yt,Vt,Yt){Vt.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],72:[function(yt,Vt,Yt){var Nt=yt("./_object-keys"),Wt=yt("./_object-gops"),xt=yt("./_object-pie");Vt.exports=function(Ot){var Bt=Nt(Ot),At=Wt.f;if(At)for(var bt,Tt=At(Ot),It=xt.f,vt=0;Tt.length>vt;)It.call(Ot,bt=Tt[vt++])&&Bt.push(bt);return Bt}},{"./_object-gops":103,"./_object-keys":106,"./_object-pie":107}],73:[function(yt,Vt,Yt){var Nt=yt("./_global"),Wt=yt("./_core"),xt=yt("./_ctx"),Ot=yt("./_hide"),Bt=yt("./_has"),At=function(bt,Tt,It){var vt,et,tt,st=bt&At.F,rt=bt&At.G,ut=bt&At.S,ct=bt&At.P,pt=bt&At.B,mt=bt&At.W,Ct=rt?Wt:Wt[Tt]||(Wt[Tt]={}),Dt=Ct.prototype,Ut=rt?Nt:ut?Nt[Tt]:(Nt[Tt]||{}).prototype;rt&&(It=Tt);for(vt in It)(et=!st&&Ut&&Ut[vt]!==void 0)&&Bt(Ct,vt)||(tt=et?Ut[vt]:It[vt],Ct[vt]=rt&&typeof Ut[vt]!="function"?It[vt]:pt&&et?xt(tt,Nt):mt&&Ut[vt]==tt?function(Ft){var Qt=function($t,Kt,ue){if(this instanceof Ft){switch(arguments.length){case 0:return new Ft;case 1:return new Ft($t);case 2:return new Ft($t,Kt)}return new Ft($t,Kt,ue)}return Ft.apply(this,arguments)};return Qt.prototype=Ft.prototype,Qt}(tt):ct&&typeof tt=="function"?xt(Function.call,tt):tt,ct&&((Ct.virtual||(Ct.virtual={}))[vt]=tt,bt&At.R&&Dt&&!Dt[vt]&&Ot(Dt,vt,tt)))};At.F=1,At.G=2,At.S=4,At.P=8,At.B=16,At.W=32,At.U=64,At.R=128,Vt.exports=At},{"./_core":65,"./_ctx":67,"./_global":76,"./_has":77,"./_hide":78}],74:[function(yt,Vt,Yt){Vt.exports=function(Nt){try{return!!Nt()}catch(Wt){return!0}}},{}],75:[function(yt,Vt,It){var Nt=yt("./_ctx"),Wt=yt("./_iter-call"),xt=yt("./_is-array-iter"),Ot=yt("./_an-object"),Bt=yt("./_to-length"),At=yt("./core.get-iterator-method"),bt={},Tt={},It=Vt.exports=function(vt,et,tt,st,rt){var ut,ct,pt,mt,Ct=rt?function(){return vt}:At(vt),Dt=Nt(tt,st,et?2:1),Ut=0;if(typeof Ct!="function")throw TypeError(vt+" is not iterable!");if(xt(Ct)){for(ut=Bt(vt.length);ut>Ut;Ut++)if((mt=et?Dt(Ot(ct=vt[Ut])[0],ct[1]):Dt(vt[Ut]))===bt||mt===Tt)return mt}else for(pt=Ct.call(vt);!(ct=pt.next()).done;)if((mt=Wt(pt,Dt,ct.value,et))===bt||mt===Tt)return mt};It.BREAK=bt,It.RETURN=Tt},{"./_an-object":61,"./_ctx":67,"./_is-array-iter":83,"./_iter-call":86,"./_to-length":124,"./core.get-iterator-method":132}],76:[function(yt,Vt,Yt){var Nt=Vt.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=Nt)},{}],77:[function(yt,Vt,Yt){var Nt={}.hasOwnProperty;Vt.exports=function(Wt,xt){return Nt.call(Wt,xt)}},{}],78:[function(yt,Vt,Yt){var Nt=yt("./_object-dp"),Wt=yt("./_property-desc");Vt.exports=yt("./_descriptors")?function(xt,Ot,Bt){return Nt.f(xt,Ot,Wt(1,Bt))}:function(xt,Ot,Bt){return xt[Ot]=Bt,xt}},{"./_descriptors":69,"./_object-dp":98,"./_property-desc":111}],79:[function(yt,Vt,Yt){var Nt=yt("./_global").document;Vt.exports=Nt&&Nt.documentElement},{"./_global":76}],80:[function(yt,Vt,Yt){Vt.exports=!yt("./_descriptors")&&!yt("./_fails")(function(){return Object.defineProperty(yt("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":69,"./_dom-create":70,"./_fails":74}],81:[function(yt,Vt,Yt){Vt.exports=function(Nt,Wt,xt){var Ot=xt===void 0;switch(Wt.length){case 0:return Ot?Nt():Nt.call(xt);case 1:return Ot?Nt(Wt[0]):Nt.call(xt,Wt[0]);case 2:return Ot?Nt(Wt[0],Wt[1]):Nt.call(xt,Wt[0],Wt[1]);case 3:return Ot?Nt(Wt[0],Wt[1],Wt[2]):Nt.call(xt,Wt[0],Wt[1],Wt[2]);case 4:return Ot?Nt(Wt[0],Wt[1],Wt[2],Wt[3]):Nt.call(xt,Wt[0],Wt[1],Wt[2],Wt[3])}return Nt.apply(xt,Wt)}},{}],82:[function(yt,Vt,Yt){var Nt=yt("./_cof");Vt.exports=Object("z").propertyIsEnumerable(0)?Object:function(Wt){return Nt(Wt)=="String"?Wt.split(""):Object(Wt)}},{"./_cof":64}],83:[function(yt,Vt,Yt){var Nt=yt("./_iterators"),Wt=yt("./_wks")("iterator"),xt=Array.prototype;Vt.exports=function(Ot){return Ot!==void 0&&(Nt.Array===Ot||xt[Wt]===Ot)}},{"./_iterators":91,"./_wks":131}],84:[function(yt,Vt,Yt){var Nt=yt("./_cof");Vt.exports=Array.isArray||function(Wt){return Nt(Wt)=="Array"}},{"./_cof":64}],85:[function(yt,Vt,Yt){Vt.exports=function(Nt){return typeof Nt=="object"?Nt!==null:typeof Nt=="function"}},{}],86:[function(yt,Vt,Yt){var Nt=yt("./_an-object");Vt.exports=function(Wt,xt,Ot,Bt){try{return Bt?xt(Nt(Ot)[0],Ot[1]):xt(Ot)}catch(bt){var At=Wt.return;throw At!==void 0&&Nt(At.call(Wt)),bt}}},{"./_an-object":61}],87:[function(yt,Vt,Yt){"use strict";var Nt=yt("./_object-create"),Wt=yt("./_property-desc"),xt=yt("./_set-to-string-tag"),Ot={};yt("./_hide")(Ot,yt("./_wks")("iterator"),function(){return this}),Vt.exports=function(Bt,At,bt){Bt.prototype=Nt(Ot,{next:Wt(1,bt)}),xt(Bt,At+" Iterator")}},{"./_hide":78,"./_object-create":97,"./_property-desc":111,"./_set-to-string-tag":115,"./_wks":131}],88:[function(yt,Vt,Yt){"use strict";var Nt=yt("./_library"),Wt=yt("./_export"),xt=yt("./_redefine"),Ot=yt("./_hide"),Bt=yt("./_iterators"),At=yt("./_iter-create"),bt=yt("./_set-to-string-tag"),Tt=yt("./_object-gpo"),It=yt("./_wks")("iterator"),vt=!([].keys&&"next"in[].keys()),et=function(){return this};Vt.exports=function(tt,st,rt,ut,ct,pt,mt){At(rt,st,ut);var Ct,Dt,Ut,Ft=function(pe){if(!vt&&pe in ue)return ue[pe];switch(pe){case"keys":case"values":return function(){return new rt(this,pe)}}return function(){return new rt(this,pe)}},Qt=st+" Iterator",$t=ct=="values",Kt=!1,ue=tt.prototype,oe=ue[It]||ue["@@iterator"]||ct&&ue[ct],we=oe||Ft(ct),Se=ct?$t?Ft("entries"):we:void 0,Ne=st=="Array"&&ue.entries||oe;if(Ne&&(Ut=Tt(Ne.call(new tt)))!==Object.prototype&&Ut.next&&(bt(Ut,Qt,!0),Nt||typeof Ut[It]=="function"||Ot(Ut,It,et)),$t&&oe&&oe.name!=="values"&&(Kt=!0,we=function(){return oe.call(this)}),Nt&&!mt||!vt&&!Kt&&ue[It]||Ot(ue,It,we),Bt[st]=we,Bt[Qt]=et,ct)if(Ct={values:$t?we:Ft("values"),keys:pt?we:Ft("keys"),entries:Se},mt)for(Dt in Ct)Dt in ue||xt(ue,Dt,Ct[Dt]);else Wt(Wt.P+Wt.F*(vt||Kt),st,Ct);return Ct}},{"./_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(yt,Vt,Yt){var Nt=yt("./_wks")("iterator"),Wt=!1;try{var xt=[7][Nt]();xt.return=function(){Wt=!0},Array.from(xt,function(){throw 2})}catch(Ot){}Vt.exports=function(Ot,Bt){if(!Bt&&!Wt)return!1;var At=!1;try{var bt=[7],Tt=bt[Nt]();Tt.next=function(){return{done:At=!0}},bt[Nt]=function(){return Tt},Ot(bt)}catch(It){}return At}},{"./_wks":131}],90:[function(yt,Vt,Yt){Vt.exports=function(Nt,Wt){return{value:Wt,done:!!Nt}}},{}],91:[function(yt,Vt,Yt){Vt.exports={}},{}],92:[function(yt,Vt,Yt){Vt.exports=!0},{}],93:[function(yt,Vt,Yt){var Nt=yt("./_uid")("meta"),Wt=yt("./_is-object"),xt=yt("./_has"),Ot=yt("./_object-dp").f,Bt=0,At=Object.isExtensible||function(){return!0},bt=!yt("./_fails")(function(){return At(Object.preventExtensions({}))}),Tt=function(st){Ot(st,Nt,{value:{i:"O"+ ++Bt,w:{}}})},It=function(st,rt){if(!Wt(st))return typeof st=="symbol"?st:(typeof st=="string"?"S":"P")+st;if(!xt(st,Nt)){if(!At(st))return"F";if(!rt)return"E";Tt(st)}return st[Nt].i},vt=function(st,rt){if(!xt(st,Nt)){if(!At(st))return!0;if(!rt)return!1;Tt(st)}return st[Nt].w},et=function(st){return bt&&tt.NEED&&At(st)&&!xt(st,Nt)&&Tt(st),st},tt=Vt.exports={KEY:Nt,NEED:!1,fastKey:It,getWeak:vt,onFreeze:et}},{"./_fails":74,"./_has":77,"./_is-object":85,"./_object-dp":98,"./_uid":127}],94:[function(yt,Vt,Yt){var Nt=yt("./_global"),Wt=yt("./_task").set,xt=Nt.MutationObserver||Nt.WebKitMutationObserver,Ot=Nt.process,Bt=Nt.Promise,At=yt("./_cof")(Ot)=="process";Vt.exports=function(){var bt,Tt,It,vt=function(){var rt,ut;for(At&&(rt=Ot.domain)&&rt.exit();bt;){ut=bt.fn,bt=bt.next;try{ut()}catch(ct){throw bt?It():Tt=void 0,ct}}Tt=void 0,rt&&rt.enter()};if(At)It=function(){Ot.nextTick(vt)};else if(!xt||Nt.navigator&&Nt.navigator.standalone)if(Bt&&Bt.resolve){var et=Bt.resolve(void 0);It=function(){et.then(vt)}}else It=function(){Wt.call(Nt,vt)};else{var tt=!0,st=document.createTextNode("");new xt(vt).observe(st,{characterData:!0}),It=function(){st.data=tt=!tt}}return function(rt){var ut={fn:rt,next:void 0};Tt&&(Tt.next=ut),bt||(bt=ut,It()),Tt=ut}}},{"./_cof":64,"./_global":76,"./_task":120}],95:[function(yt,Vt,Yt){"use strict";function Nt(xt){var Ot,Bt;this.promise=new xt(function(At,bt){if(Ot!==void 0||Bt!==void 0)throw TypeError("Bad Promise constructor");Ot=At,Bt=bt}),this.resolve=Wt(Ot),this.reject=Wt(Bt)}var Wt=yt("./_a-function");Vt.exports.f=function(xt){return new Nt(xt)}},{"./_a-function":58}],96:[function(yt,Vt,Yt){"use strict";var Nt=yt("./_object-keys"),Wt=yt("./_object-gops"),xt=yt("./_object-pie"),Ot=yt("./_to-object"),Bt=yt("./_iobject"),At=Object.assign;Vt.exports=!At||yt("./_fails")(function(){var bt={},Tt={},It=Symbol(),vt="abcdefghijklmnopqrst";return bt[It]=7,vt.split("").forEach(function(et){Tt[et]=et}),At({},bt)[It]!=7||Object.keys(At({},Tt)).join("")!=vt})?function(bt,Tt){for(var It=Ot(bt),vt=arguments.length,et=1,tt=Wt.f,st=xt.f;vt>et;)for(var rt,ut=Bt(arguments[et++]),ct=tt?Nt(ut).concat(tt(ut)):Nt(ut),pt=ct.length,mt=0;pt>mt;)st.call(ut,rt=ct[mt++])&&(It[rt]=ut[rt]);return It}:At},{"./_fails":74,"./_iobject":82,"./_object-gops":103,"./_object-keys":106,"./_object-pie":107,"./_to-object":125}],97:[function(yt,Vt,Yt){var Nt=yt("./_an-object"),Wt=yt("./_object-dps"),xt=yt("./_enum-bug-keys"),Ot=yt("./_shared-key")("IE_PROTO"),Bt=function(){},At=function(){var bt,Tt=yt("./_dom-create")("iframe"),It=xt.length;for(Tt.style.display="none",yt("./_html").appendChild(Tt),Tt.src="javascript:",bt=Tt.contentWindow.document,bt.open(),bt.write("<script>document.F=Object<\/script>"),bt.close(),At=bt.F;It--;)delete At.prototype[xt[It]];return At()};Vt.exports=Object.create||function(bt,Tt){var It;return bt!==null?(Bt.prototype=Nt(bt),It=new Bt,Bt.prototype=null,It[Ot]=bt):It=At(),Tt===void 0?It:Wt(It,Tt)}},{"./_an-object":61,"./_dom-create":70,"./_enum-bug-keys":71,"./_html":79,"./_object-dps":99,"./_shared-key":116}],98:[function(yt,Vt,Yt){var Nt=yt("./_an-object"),Wt=yt("./_ie8-dom-define"),xt=yt("./_to-primitive"),Ot=Object.defineProperty;Yt.f=yt("./_descriptors")?Object.defineProperty:function(Bt,At,bt){if(Nt(Bt),At=xt(At,!0),Nt(bt),Wt)try{return Ot(Bt,At,bt)}catch(Tt){}if("get"in bt||"set"in bt)throw TypeError("Accessors not supported!");return"value"in bt&&(Bt[At]=bt.value),Bt}},{"./_an-object":61,"./_descriptors":69,"./_ie8-dom-define":80,"./_to-primitive":126}],99:[function(yt,Vt,Yt){var Nt=yt("./_object-dp"),Wt=yt("./_an-object"),xt=yt("./_object-keys");Vt.exports=yt("./_descriptors")?Object.defineProperties:function(Ot,Bt){Wt(Ot);for(var At,bt=xt(Bt),Tt=bt.length,It=0;Tt>It;)Nt.f(Ot,At=bt[It++],Bt[At]);return Ot}},{"./_an-object":61,"./_descriptors":69,"./_object-dp":98,"./_object-keys":106}],100:[function(yt,Vt,Yt){var Nt=yt("./_object-pie"),Wt=yt("./_property-desc"),xt=yt("./_to-iobject"),Ot=yt("./_to-primitive"),Bt=yt("./_has"),At=yt("./_ie8-dom-define"),bt=Object.getOwnPropertyDescriptor;Yt.f=yt("./_descriptors")?bt:function(Tt,It){if(Tt=xt(Tt),It=Ot(It,!0),At)try{return bt(Tt,It)}catch(vt){}if(Bt(Tt,It))return Wt(!Nt.f.call(Tt,It),Tt[It])}},{"./_descriptors":69,"./_has":77,"./_ie8-dom-define":80,"./_object-pie":107,"./_property-desc":111,"./_to-iobject":123,"./_to-primitive":126}],101:[function(yt,Vt,Yt){var Nt=yt("./_to-iobject"),Wt=yt("./_object-gopn").f,xt={}.toString,Ot=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Bt=function(At){try{return Wt(At)}catch(bt){return Ot.slice()}};Vt.exports.f=function(At){return Ot&&xt.call(At)=="[object Window]"?Bt(At):Wt(Nt(At))}},{"./_object-gopn":102,"./_to-iobject":123}],102:[function(yt,Vt,Yt){var Nt=yt("./_object-keys-internal"),Wt=yt("./_enum-bug-keys").concat("length","prototype");Yt.f=Object.getOwnPropertyNames||function(xt){return Nt(xt,Wt)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],103:[function(yt,Vt,Yt){Yt.f=Object.getOwnPropertySymbols},{}],104:[function(yt,Vt,Yt){var Nt=yt("./_has"),Wt=yt("./_to-object"),xt=yt("./_shared-key")("IE_PROTO"),Ot=Object.prototype;Vt.exports=Object.getPrototypeOf||function(Bt){return Bt=Wt(Bt),Nt(Bt,xt)?Bt[xt]:typeof Bt.constructor=="function"&&Bt instanceof Bt.constructor?Bt.constructor.prototype:Bt instanceof Object?Ot:null}},{"./_has":77,"./_shared-key":116,"./_to-object":125}],105:[function(yt,Vt,Yt){var Nt=yt("./_has"),Wt=yt("./_to-iobject"),xt=yt("./_array-includes")(!1),Ot=yt("./_shared-key")("IE_PROTO");Vt.exports=function(Bt,At){var bt,Tt=Wt(Bt),It=0,vt=[];for(bt in Tt)bt!=Ot&&Nt(Tt,bt)&&vt.push(bt);for(;At.length>It;)Nt(Tt,bt=At[It++])&&(~xt(vt,bt)||vt.push(bt));return vt}},{"./_array-includes":62,"./_has":77,"./_shared-key":116,"./_to-iobject":123}],106:[function(yt,Vt,Yt){var Nt=yt("./_object-keys-internal"),Wt=yt("./_enum-bug-keys");Vt.exports=Object.keys||function(xt){return Nt(xt,Wt)}},{"./_enum-bug-keys":71,"./_object-keys-internal":105}],107:[function(yt,Vt,Yt){Yt.f={}.propertyIsEnumerable},{}],108:[function(yt,Vt,Yt){var Nt=yt("./_export"),Wt=yt("./_core"),xt=yt("./_fails");Vt.exports=function(Ot,Bt){var At=(Wt.Object||{})[Ot]||Object[Ot],bt={};bt[Ot]=Bt(At),Nt(Nt.S+Nt.F*xt(function(){At(1)}),"Object",bt)}},{"./_core":65,"./_export":73,"./_fails":74}],109:[function(yt,Vt,Yt){Vt.exports=function(Nt){try{return{e:!1,v:Nt()}}catch(Wt){return{e:!0,v:Wt}}}},{}],110:[function(yt,Vt,Yt){var Nt=yt("./_an-object"),Wt=yt("./_is-object"),xt=yt("./_new-promise-capability");Vt.exports=function(Ot,Bt){if(Nt(Ot),Wt(Bt)&&Bt.constructor===Ot)return Bt;var At=xt.f(Ot);return(0,At.resolve)(Bt),At.promise}},{"./_an-object":61,"./_is-object":85,"./_new-promise-capability":95}],111:[function(yt,Vt,Yt){Vt.exports=function(Nt,Wt){return{enumerable:!(1&Nt),configurable:!(2&Nt),writable:!(4&Nt),value:Wt}}},{}],112:[function(yt,Vt,Yt){var Nt=yt("./_hide");Vt.exports=function(Wt,xt,Ot){for(var Bt in xt)Ot&&Wt[Bt]?Wt[Bt]=xt[Bt]:Nt(Wt,Bt,xt[Bt]);return Wt}},{"./_hide":78}],113:[function(yt,Vt,Yt){Vt.exports=yt("./_hide")},{"./_hide":78}],114:[function(yt,Vt,Yt){"use strict";var Nt=yt("./_global"),Wt=yt("./_core"),xt=yt("./_object-dp"),Ot=yt("./_descriptors"),Bt=yt("./_wks")("species");Vt.exports=function(At){var bt=typeof Wt[At]=="function"?Wt[At]:Nt[At];Ot&&bt&&!bt[Bt]&&xt.f(bt,Bt,{configurable:!0,get:function(){return this}})}},{"./_core":65,"./_descriptors":69,"./_global":76,"./_object-dp":98,"./_wks":131}],115:[function(yt,Vt,Yt){var Nt=yt("./_object-dp").f,Wt=yt("./_has"),xt=yt("./_wks")("toStringTag");Vt.exports=function(Ot,Bt,At){Ot&&!Wt(Ot=At?Ot:Ot.prototype,xt)&&Nt(Ot,xt,{configurable:!0,value:Bt})}},{"./_has":77,"./_object-dp":98,"./_wks":131}],116:[function(yt,Vt,Yt){var Nt=yt("./_shared")("keys"),Wt=yt("./_uid");Vt.exports=function(xt){return Nt[xt]||(Nt[xt]=Wt(xt))}},{"./_shared":117,"./_uid":127}],117:[function(yt,Vt,Yt){var Nt=yt("./_core"),Wt=yt("./_global"),xt=Wt["__core-js_shared__"]||(Wt["__core-js_shared__"]={});(Vt.exports=function(Ot,Bt){return xt[Ot]||(xt[Ot]=Bt!==void 0?Bt:{})})("versions",[]).push({version:Nt.version,mode:yt("./_library")?"pure":"global",copyright:"\u6F0F 2018 Denis Pushkarev (zloirock.ru)"})},{"./_core":65,"./_global":76,"./_library":92}],118:[function(yt,Vt,Yt){var Nt=yt("./_an-object"),Wt=yt("./_a-function"),xt=yt("./_wks")("species");Vt.exports=function(Ot,Bt){var At,bt=Nt(Ot).constructor;return bt===void 0||(At=Nt(bt)[xt])==null?Bt:Wt(At)}},{"./_a-function":58,"./_an-object":61,"./_wks":131}],119:[function(yt,Vt,Yt){var Nt=yt("./_to-integer"),Wt=yt("./_defined");Vt.exports=function(xt){return function(Ot,Bt){var At,bt,Tt=String(Wt(Ot)),It=Nt(Bt),vt=Tt.length;return It<0||It>=vt?xt?"":void 0:(At=Tt.charCodeAt(It),At<55296||At>56319||It+1===vt||(bt=Tt.charCodeAt(It+1))<56320||bt>57343?xt?Tt.charAt(It):At:xt?Tt.slice(It,It+2):bt-56320+(At-55296<<10)+65536)}}},{"./_defined":68,"./_to-integer":122}],120:[function(yt,Vt,Yt){var Nt,Wt,xt,Ot=yt("./_ctx"),Bt=yt("./_invoke"),At=yt("./_html"),bt=yt("./_dom-create"),Tt=yt("./_global"),It=Tt.process,vt=Tt.setImmediate,et=Tt.clearImmediate,tt=Tt.MessageChannel,st=Tt.Dispatch,rt=0,ut={},ct=function(){var mt=+this;if(ut.hasOwnProperty(mt)){var Ct=ut[mt];delete ut[mt],Ct()}},pt=function(mt){ct.call(mt.data)};vt&&et||(vt=function(mt){for(var Ct=[],Dt=1;arguments.length>Dt;)Ct.push(arguments[Dt++]);return ut[++rt]=function(){Bt(typeof mt=="function"?mt:Function(mt),Ct)},Nt(rt),rt},et=function(mt){delete ut[mt]},yt("./_cof")(It)=="process"?Nt=function(mt){It.nextTick(Ot(ct,mt,1))}:st&&st.now?Nt=function(mt){st.now(Ot(ct,mt,1))}:tt?(Wt=new tt,xt=Wt.port2,Wt.port1.onmessage=pt,Nt=Ot(xt.postMessage,xt,1)):Tt.addEventListener&&typeof postMessage=="function"&&!Tt.importScripts?(Nt=function(mt){Tt.postMessage(mt+"","*")},Tt.addEventListener("message",pt,!1)):Nt="onreadystatechange"in bt("script")?function(mt){At.appendChild(bt("script")).onreadystatechange=function(){At.removeChild(this),ct.call(mt)}}:function(mt){setTimeout(Ot(ct,mt,1),0)}),Vt.exports={set:vt,clear:et}},{"./_cof":64,"./_ctx":67,"./_dom-create":70,"./_global":76,"./_html":79,"./_invoke":81}],121:[function(yt,Vt,Yt){var Nt=yt("./_to-integer"),Wt=Math.max,xt=Math.min;Vt.exports=function(Ot,Bt){return Ot=Nt(Ot),Ot<0?Wt(Ot+Bt,0):xt(Ot,Bt)}},{"./_to-integer":122}],122:[function(yt,Vt,Yt){var Nt=Math.ceil,Wt=Math.floor;Vt.exports=function(xt){return isNaN(xt=+xt)?0:(xt>0?Wt:Nt)(xt)}},{}],123:[function(yt,Vt,Yt){var Nt=yt("./_iobject"),Wt=yt("./_defined");Vt.exports=function(xt){return Nt(Wt(xt))}},{"./_defined":68,"./_iobject":82}],124:[function(yt,Vt,Yt){var Nt=yt("./_to-integer"),Wt=Math.min;Vt.exports=function(xt){return xt>0?Wt(Nt(xt),9007199254740991):0}},{"./_to-integer":122}],125:[function(yt,Vt,Yt){var Nt=yt("./_defined");Vt.exports=function(Wt){return Object(Nt(Wt))}},{"./_defined":68}],126:[function(yt,Vt,Yt){var Nt=yt("./_is-object");Vt.exports=function(Wt,xt){if(!Nt(Wt))return Wt;var Ot,Bt;if(xt&&typeof(Ot=Wt.toString)=="function"&&!Nt(Bt=Ot.call(Wt))||typeof(Ot=Wt.valueOf)=="function"&&!Nt(Bt=Ot.call(Wt))||!xt&&typeof(Ot=Wt.toString)=="function"&&!Nt(Bt=Ot.call(Wt)))return Bt;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":85}],127:[function(yt,Vt,Yt){var Nt=0,Wt=Math.random();Vt.exports=function(xt){return"Symbol(".concat(xt===void 0?"":xt,")_",(++Nt+Wt).toString(36))}},{}],128:[function(yt,Vt,Yt){var Nt=yt("./_global"),Wt=Nt.navigator;Vt.exports=Wt&&Wt.userAgent||""},{"./_global":76}],129:[function(yt,Vt,Yt){var Nt=yt("./_global"),Wt=yt("./_core"),xt=yt("./_library"),Ot=yt("./_wks-ext"),Bt=yt("./_object-dp").f;Vt.exports=function(At){var bt=Wt.Symbol||(Wt.Symbol=xt?{}:Nt.Symbol||{});At.charAt(0)=="_"||At in bt||Bt(bt,At,{value:Ot.f(At)})}},{"./_core":65,"./_global":76,"./_library":92,"./_object-dp":98,"./_wks-ext":130}],130:[function(yt,Vt,Yt){Yt.f=yt("./_wks")},{"./_wks":131}],131:[function(yt,Vt,Yt){var Nt=yt("./_shared")("wks"),Wt=yt("./_uid"),xt=yt("./_global").Symbol,Ot=typeof xt=="function";(Vt.exports=function(Bt){return Nt[Bt]||(Nt[Bt]=Ot&&xt[Bt]||(Ot?xt:Wt)("Symbol."+Bt))}).store=Nt},{"./_global":76,"./_shared":117,"./_uid":127}],132:[function(yt,Vt,Yt){var Nt=yt("./_classof"),Wt=yt("./_wks")("iterator"),xt=yt("./_iterators");Vt.exports=yt("./_core").getIteratorMethod=function(Ot){if(Ot!=null)return Ot[Wt]||Ot["@@iterator"]||xt[Nt(Ot)]}},{"./_classof":63,"./_core":65,"./_iterators":91,"./_wks":131}],133:[function(yt,Vt,Yt){"use strict";var Nt=yt("./_ctx"),Wt=yt("./_export"),xt=yt("./_to-object"),Ot=yt("./_iter-call"),Bt=yt("./_is-array-iter"),At=yt("./_to-length"),bt=yt("./_create-property"),Tt=yt("./core.get-iterator-method");Wt(Wt.S+Wt.F*!yt("./_iter-detect")(function(It){Array.from(It)}),"Array",{from:function(It){var vt,et,tt,st,rt=xt(It),ut=typeof this=="function"?this:Array,ct=arguments.length,pt=ct>1?arguments[1]:void 0,mt=pt!==void 0,Ct=0,Dt=Tt(rt);if(mt&&(pt=Nt(pt,ct>2?arguments[2]:void 0,2)),Dt==null||ut==Array&&Bt(Dt))for(vt=At(rt.length),et=new ut(vt);vt>Ct;Ct++)bt(et,Ct,mt?pt(rt[Ct],Ct):rt[Ct]);else for(st=Dt.call(rt),et=new ut;!(tt=st.next()).done;Ct++)bt(et,Ct,mt?Ot(st,pt,[tt.value,Ct],!0):tt.value);return et.length=Ct,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(yt,Vt,Yt){"use strict";var Nt=yt("./_add-to-unscopables"),Wt=yt("./_iter-step"),xt=yt("./_iterators"),Ot=yt("./_to-iobject");Vt.exports=yt("./_iter-define")(Array,"Array",function(Bt,At){this._t=Ot(Bt),this._i=0,this._k=At},function(){var Bt=this._t,At=this._k,bt=this._i++;return!Bt||bt>=Bt.length?(this._t=void 0,Wt(1)):At=="keys"?Wt(0,bt):At=="values"?Wt(0,Bt[bt]):Wt(0,[bt,Bt[bt]])},"values"),xt.Arguments=xt.Array,Nt("keys"),Nt("values"),Nt("entries")},{"./_add-to-unscopables":59,"./_iter-define":88,"./_iter-step":90,"./_iterators":91,"./_to-iobject":123}],135:[function(yt,Vt,Yt){"use strict";var Nt=yt("./_is-object"),Wt=yt("./_object-gpo"),xt=yt("./_wks")("hasInstance"),Ot=Function.prototype;xt in Ot||yt("./_object-dp").f(Ot,xt,{value:function(Bt){if(typeof this!="function"||!Nt(Bt))return!1;if(!Nt(this.prototype))return Bt instanceof this;for(;Bt=Wt(Bt);)if(this.prototype===Bt)return!0;return!1}})},{"./_is-object":85,"./_object-dp":98,"./_object-gpo":104,"./_wks":131}],136:[function(yt,Vt,Yt){var Nt=yt("./_export");Nt(Nt.S+Nt.F,"Object",{assign:yt("./_object-assign")})},{"./_export":73,"./_object-assign":96}],137:[function(yt,Vt,Yt){var Nt=yt("./_export");Nt(Nt.S,"Object",{create:yt("./_object-create")})},{"./_export":73,"./_object-create":97}],138:[function(yt,Vt,Yt){var Nt=yt("./_export");Nt(Nt.S+Nt.F*!yt("./_descriptors"),"Object",{defineProperty:yt("./_object-dp").f})},{"./_descriptors":69,"./_export":73,"./_object-dp":98}],139:[function(yt,Vt,Yt){yt("./_object-sap")("getOwnPropertyNames",function(){return yt("./_object-gopn-ext").f})},{"./_object-gopn-ext":101,"./_object-sap":108}],140:[function(yt,Vt,Yt){var Nt=yt("./_to-object"),Wt=yt("./_object-gpo");yt("./_object-sap")("getPrototypeOf",function(){return function(xt){return Wt(Nt(xt))}})},{"./_object-gpo":104,"./_object-sap":108,"./_to-object":125}],141:[function(yt,Vt,Yt){var Nt=yt("./_to-object"),Wt=yt("./_object-keys");yt("./_object-sap")("keys",function(){return function(xt){return Wt(Nt(xt))}})},{"./_object-keys":106,"./_object-sap":108,"./_to-object":125}],142:[function(yt,Vt,Yt){arguments[4][36][0].apply(Yt,arguments)},{dup:36}],143:[function(yt,Vt,Yt){"use strict";var Nt,Wt,xt,Ot,Bt=yt("./_library"),At=yt("./_global"),bt=yt("./_ctx"),Tt=yt("./_classof"),It=yt("./_export"),vt=yt("./_is-object"),et=yt("./_a-function"),tt=yt("./_an-instance"),st=yt("./_for-of"),rt=yt("./_species-constructor"),ut=yt("./_task").set,ct=yt("./_microtask")(),pt=yt("./_new-promise-capability"),mt=yt("./_perform"),Ct=yt("./_user-agent"),Dt=yt("./_promise-resolve"),Ut=At.TypeError,Ft=At.process,Qt=Ft&&Ft.versions,$t=Qt&&Qt.v8||"",Kt=At.Promise,ue=Tt(Ft)=="process",oe=function(){},we=Wt=pt.f,Se=!!function(){try{var fe=Kt.resolve(1),se=(fe.constructor={})[yt("./_wks")("species")]=function(De){De(oe,oe)};return(ue||typeof PromiseRejectionEvent=="function")&&fe.then(oe)instanceof se&&$t.indexOf("6.6")!==0&&Ct.indexOf("Chrome/66")===-1}catch(De){}}(),Ne=function(fe){var se;return!(!vt(fe)||typeof(se=fe.then)!="function")&&se},pe=function(fe,se){if(!fe._n){fe._n=!0;var De=fe._c;ct(function(){for(var Oe=fe._v,en=fe._s==1,We=0;De.length>We;)(function(rn){var ke,Ie,je,$e=en?rn.ok:rn.fail,me=rn.resolve,le=rn.reject,Ee=rn.domain;try{$e?(en||(fe._h==2&&Jt(fe),fe._h=1),$e===!0?ke=Oe:(Ee&&Ee.enter(),ke=$e(Oe),Ee&&(Ee.exit(),je=!0)),ke===rn.promise?le(Ut("Promise-chain cycle")):(Ie=Ne(ke))?Ie.call(ke,me,le):me(ke)):le(Oe)}catch(ce){Ee&&!je&&Ee.exit(),le(ce)}})(De[We++]);fe._c=[],fe._n=!1,se&&!fe._h&&Ue(fe)})}},Ue=function(fe){ut.call(At,function(){var se,De,Oe,en=fe._v,We=de(fe);if(We&&(se=mt(function(){ue?Ft.emit("unhandledRejection",en,fe):(De=At.onunhandledrejection)?De({promise:fe,reason:en}):(Oe=At.console)&&Oe.error&&Oe.error("Unhandled promise rejection",en)}),fe._h=ue||de(fe)?2:1),fe._a=void 0,We&&se.e)throw se.v})},de=function(fe){return fe._h!==1&&(fe._a||fe._c).length===0},Jt=function(fe){ut.call(At,function(){var se;ue?Ft.emit("rejectionHandled",fe):(se=At.onrejectionhandled)&&se({promise:fe,reason:fe._v})})},ee=function(fe){var se=this;se._d||(se._d=!0,se=se._w||se,se._v=fe,se._s=2,se._a||(se._a=se._c.slice()),pe(se,!0))},ae=function(fe){var se,De=this;if(!De._d){De._d=!0,De=De._w||De;try{if(De===fe)throw Ut("Promise can't be resolved itself");(se=Ne(fe))?ct(function(){var Oe={_w:De,_d:!1};try{se.call(fe,bt(ae,Oe,1),bt(ee,Oe,1))}catch(en){ee.call(Oe,en)}}):(De._v=fe,De._s=1,pe(De,!1))}catch(Oe){ee.call({_w:De,_d:!1},Oe)}}};Se||(Kt=function(fe){tt(this,Kt,"Promise","_h"),et(fe),Nt.call(this);try{fe(bt(ae,this,1),bt(ee,this,1))}catch(se){ee.call(this,se)}},Nt=function(fe){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},Nt.prototype=yt("./_redefine-all")(Kt.prototype,{then:function(fe,se){var De=we(rt(this,Kt));return De.ok=typeof fe!="function"||fe,De.fail=typeof se=="function"&&se,De.domain=ue?Ft.domain:void 0,this._c.push(De),this._a&&this._a.push(De),this._s&&pe(this,!1),De.promise},catch:function(fe){return this.then(void 0,fe)}}),xt=function(){var fe=new Nt;this.promise=fe,this.resolve=bt(ae,fe,1),this.reject=bt(ee,fe,1)},pt.f=we=function(fe){return fe===Kt||fe===Ot?new xt(fe):Wt(fe)}),It(It.G+It.W+It.F*!Se,{Promise:Kt}),yt("./_set-to-string-tag")(Kt,"Promise"),yt("./_set-species")("Promise"),Ot=yt("./_core").Promise,It(It.S+It.F*!Se,"Promise",{reject:function(fe){var se=we(this);return(0,se.reject)(fe),se.promise}}),It(It.S+It.F*(Bt||!Se),"Promise",{resolve:function(fe){return Dt(Bt&&this===Ot?Kt:this,fe)}}),It(It.S+It.F*!(Se&&yt("./_iter-detect")(function(fe){Kt.all(fe).catch(oe)})),"Promise",{all:function(fe){var se=this,De=we(se),Oe=De.resolve,en=De.reject,We=mt(function(){var rn=[],ke=0,Ie=1;st(fe,!1,function(je){var $e=ke++,me=!1;rn.push(void 0),Ie++,se.resolve(je).then(function(le){me||(me=!0,rn[$e]=le,--Ie||Oe(rn))},en)}),--Ie||Oe(rn)});return We.e&&en(We.v),De.promise},race:function(fe){var se=this,De=we(se),Oe=De.reject,en=mt(function(){st(fe,!1,function(We){se.resolve(We).then(De.resolve,Oe)})});return en.e&&Oe(en.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(yt,Vt,Yt){var Nt=yt("./_export"),Wt=yt("./_to-absolute-index"),xt=String.fromCharCode,Ot=String.fromCodePoint;Nt(Nt.S+Nt.F*(!!Ot&&Ot.length!=1),"String",{fromCodePoint:function(Bt){for(var At,bt=[],Tt=arguments.length,It=0;Tt>It;){if(At=+arguments[It++],Wt(At,1114111)!==At)throw RangeError(At+" is not a valid code point");bt.push(At<65536?xt(At):xt(55296+((At-=65536)>>10),At%1024+56320))}return bt.join("")}})},{"./_export":73,"./_to-absolute-index":121}],145:[function(yt,Vt,Yt){"use strict";var Nt=yt("./_string-at")(!0);yt("./_iter-define")(String,"String",function(Wt){this._t=String(Wt),this._i=0},function(){var Wt,xt=this._t,Ot=this._i;return Ot>=xt.length?{value:void 0,done:!0}:(Wt=Nt(xt,Ot),this._i+=Wt.length,{value:Wt,done:!1})})},{"./_iter-define":88,"./_string-at":119}],146:[function(yt,Vt,Yt){"use strict";var Nt=yt("./_global"),Wt=yt("./_has"),xt=yt("./_descriptors"),Ot=yt("./_export"),Bt=yt("./_redefine"),At=yt("./_meta").KEY,bt=yt("./_fails"),Tt=yt("./_shared"),It=yt("./_set-to-string-tag"),vt=yt("./_uid"),et=yt("./_wks"),tt=yt("./_wks-ext"),st=yt("./_wks-define"),rt=yt("./_enum-keys"),ut=yt("./_is-array"),ct=yt("./_an-object"),pt=yt("./_is-object"),mt=yt("./_to-iobject"),Ct=yt("./_to-primitive"),Dt=yt("./_property-desc"),Ut=yt("./_object-create"),Ft=yt("./_object-gopn-ext"),Qt=yt("./_object-gopd"),$t=yt("./_object-dp"),Kt=yt("./_object-keys"),ue=Qt.f,oe=$t.f,we=Ft.f,Se=Nt.Symbol,Ne=Nt.JSON,pe=Ne&&Ne.stringify,Ue=et("_hidden"),de=et("toPrimitive"),Jt={}.propertyIsEnumerable,ee=Tt("symbol-registry"),ae=Tt("symbols"),fe=Tt("op-symbols"),se=Object.prototype,De=typeof Se=="function",Oe=Nt.QObject,en=!Oe||!Oe.prototype||!Oe.prototype.findChild,We=xt&&bt(function(){return Ut(oe({},"a",{get:function(){return oe(this,"a",{value:7}).a}})).a!=7})?function(Ht,Pt,dt){var gt=ue(se,Pt);gt&&delete se[Pt],oe(Ht,Pt,dt),gt&&Ht!==se&&oe(se,Pt,gt)}:oe,rn=function(Ht){var Pt=ae[Ht]=Ut(Se.prototype);return Pt._k=Ht,Pt},ke=De&&typeof Se.iterator=="symbol"?function(Ht){return typeof Ht=="symbol"}:function(Ht){return Ht instanceof Se},Ie=function(Ht,Pt,dt){return Ht===se&&Ie(fe,Pt,dt),ct(Ht),Pt=Ct(Pt,!0),ct(dt),Wt(ae,Pt)?(dt.enumerable?(Wt(Ht,Ue)&&Ht[Ue][Pt]&&(Ht[Ue][Pt]=!1),dt=Ut(dt,{enumerable:Dt(0,!1)})):(Wt(Ht,Ue)||oe(Ht,Ue,Dt(1,{})),Ht[Ue][Pt]=!0),We(Ht,Pt,dt)):oe(Ht,Pt,dt)},je=function(Ht,Pt){ct(Ht);for(var dt,gt=rt(Pt=mt(Pt)),zt=0,re=gt.length;re>zt;)Ie(Ht,dt=gt[zt++],Pt[dt]);return Ht},$e=function(Ht,Pt){return Pt===void 0?Ut(Ht):je(Ut(Ht),Pt)},me=function(Ht){var Pt=Jt.call(this,Ht=Ct(Ht,!0));return!(this===se&&Wt(ae,Ht)&&!Wt(fe,Ht))&&(!(Pt||!Wt(this,Ht)||!Wt(ae,Ht)||Wt(this,Ue)&&this[Ue][Ht])||Pt)},le=function(Ht,Pt){if(Ht=mt(Ht),Pt=Ct(Pt,!0),Ht!==se||!Wt(ae,Pt)||Wt(fe,Pt)){var dt=ue(Ht,Pt);return!dt||!Wt(ae,Pt)||Wt(Ht,Ue)&&Ht[Ue][Pt]||(dt.enumerable=!0),dt}},Ee=function(Ht){for(var Pt,dt=we(mt(Ht)),gt=[],zt=0;dt.length>zt;)Wt(ae,Pt=dt[zt++])||Pt==Ue||Pt==At||gt.push(Pt);return gt},ce=function(Ht){for(var Pt,dt=Ht===se,gt=we(dt?fe:mt(Ht)),zt=[],re=0;gt.length>re;)!Wt(ae,Pt=gt[re++])||dt&&!Wt(se,Pt)||zt.push(ae[Pt]);return zt};De||(Se=function(){if(this instanceof Se)throw TypeError("Symbol is not a constructor!");var Ht=vt(arguments.length>0?arguments[0]:void 0),Pt=function(dt){this===se&&Pt.call(fe,dt),Wt(this,Ue)&&Wt(this[Ue],Ht)&&(this[Ue][Ht]=!1),We(this,Ht,Dt(1,dt))};return xt&&en&&We(se,Ht,{configurable:!0,set:Pt}),rn(Ht)},Bt(Se.prototype,"toString",function(){return this._k}),Qt.f=le,$t.f=Ie,yt("./_object-gopn").f=Ft.f=Ee,yt("./_object-pie").f=me,yt("./_object-gops").f=ce,xt&&!yt("./_library")&&Bt(se,"propertyIsEnumerable",me,!0),tt.f=function(Ht){return rn(et(Ht))}),Ot(Ot.G+Ot.W+Ot.F*!De,{Symbol:Se});for(var he="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),_t=0;he.length>_t;)et(he[_t++]);for(var Mt=Kt(et.store),Et=0;Mt.length>Et;)st(Mt[Et++]);Ot(Ot.S+Ot.F*!De,"Symbol",{for:function(Ht){return Wt(ee,Ht+="")?ee[Ht]:ee[Ht]=Se(Ht)},keyFor:function(Ht){if(!ke(Ht))throw TypeError(Ht+" is not a symbol!");for(var Pt in ee)if(ee[Pt]===Ht)return Pt},useSetter:function(){en=!0},useSimple:function(){en=!1}}),Ot(Ot.S+Ot.F*!De,"Object",{create:$e,defineProperty:Ie,defineProperties:je,getOwnPropertyDescriptor:le,getOwnPropertyNames:Ee,getOwnPropertySymbols:ce}),Ne&&Ot(Ot.S+Ot.F*(!De||bt(function(){var Ht=Se();return pe([Ht])!="[null]"||pe({a:Ht})!="{}"||pe(Object(Ht))!="{}"})),"JSON",{stringify:function(Ht){for(var Pt,dt,gt=[Ht],zt=1;arguments.length>zt;)gt.push(arguments[zt++]);if(dt=Pt=gt[1],(pt(Pt)||Ht!==void 0)&&!ke(Ht))return ut(Pt)||(Pt=function(re,Zt){if(typeof dt=="function"&&(Zt=dt.call(this,re,Zt)),!ke(Zt))return Zt}),gt[1]=Pt,pe.apply(Ne,gt)}}),Se.prototype[de]||yt("./_hide")(Se.prototype,de,Se.prototype.valueOf),It(Se,"Symbol"),It(Math,"Math",!0),It(Nt.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(yt,Vt,Yt){"use strict";var Nt=yt("./_export"),Wt=yt("./_core"),xt=yt("./_global"),Ot=yt("./_species-constructor"),Bt=yt("./_promise-resolve");Nt(Nt.P+Nt.R,"Promise",{finally:function(At){var bt=Ot(this,Wt.Promise||xt.Promise),Tt=typeof At=="function";return this.then(Tt?function(It){return Bt(bt,At()).then(function(){return It})}:At,Tt?function(It){return Bt(bt,At()).then(function(){throw It})}:At)}})},{"./_core":65,"./_export":73,"./_global":76,"./_promise-resolve":110,"./_species-constructor":118}],148:[function(yt,Vt,Yt){"use strict";var Nt=yt("./_export"),Wt=yt("./_new-promise-capability"),xt=yt("./_perform");Nt(Nt.S,"Promise",{try:function(Ot){var Bt=Wt.f(this),At=xt(Ot);return(At.e?Bt.reject:Bt.resolve)(At.v),Bt.promise}})},{"./_export":73,"./_new-promise-capability":95,"./_perform":109}],149:[function(yt,Vt,Yt){yt("./_wks-define")("asyncIterator")},{"./_wks-define":129}],150:[function(yt,Vt,Yt){yt("./_wks-define")("observable")},{"./_wks-define":129}],151:[function(yt,Vt,Yt){yt("./es6.array.iterator");for(var Nt=yt("./_global"),Wt=yt("./_hide"),xt=yt("./_iterators"),Ot=yt("./_wks")("toStringTag"),Bt="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(","),At=0;At<Bt.length;At++){var bt=Bt[At],Tt=Nt[bt],It=Tt&&Tt.prototype;It&&!It[Ot]&&Wt(It,Ot,bt),xt[bt]=xt.Array}},{"./_global":76,"./_hide":78,"./_iterators":91,"./_wks":131,"./es6.array.iterator":134}],152:[function(yt,Vt,Yt){var Nt=yt("./_export"),Wt=yt("./_task");Nt(Nt.G+Nt.B,{setImmediate:Wt.set,clearImmediate:Wt.clear})},{"./_export":73,"./_task":120}],153:[function(yt,Vt,Yt){(function(Nt){"use strict";function Wt(Ct){return Array.isArray?Array.isArray(Ct):ct(Ct)==="[object Array]"}function xt(Ct){return typeof Ct=="boolean"}function Ot(Ct){return Ct===null}function Bt(Ct){return Ct==null}function At(Ct){return typeof Ct=="number"}function bt(Ct){return typeof Ct=="string"}function Tt(Ct){return(Ct===void 0?"undefined":(0,mt.default)(Ct))==="symbol"}function It(Ct){return Ct===void 0}function vt(Ct){return ct(Ct)==="[object RegExp]"}function et(Ct){return(Ct===void 0?"undefined":(0,mt.default)(Ct))==="object"&&Ct!==null}function tt(Ct){return ct(Ct)==="[object Date]"}function st(Ct){return ct(Ct)==="[object Error]"||Ct instanceof Error}function rt(Ct){return typeof Ct=="function"}function ut(Ct){return Ct===null||typeof Ct=="boolean"||typeof Ct=="number"||typeof Ct=="string"||(Ct===void 0?"undefined":(0,mt.default)(Ct))==="symbol"||Ct===void 0}function ct(Ct){return Object.prototype.toString.call(Ct)}var pt=yt("babel-runtime/helpers/typeof"),mt=function(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}}(pt);Yt.isArray=Wt,Yt.isBoolean=xt,Yt.isNull=Ot,Yt.isNullOrUndefined=Bt,Yt.isNumber=At,Yt.isString=bt,Yt.isSymbol=Tt,Yt.isUndefined=It,Yt.isRegExp=vt,Yt.isObject=et,Yt.isDate=tt,Yt.isError=st,Yt.isFunction=rt,Yt.isPrimitive=ut,Yt.isBuffer=Nt.isBuffer}).call(this,{isBuffer:yt("../../is-buffer/index.js")})},{"../../is-buffer/index.js":163,"babel-runtime/helpers/typeof":32}],154:[function(yt,Vt,Yt){"use strict";var Nt=yt("babel-runtime/helpers/typeof"),Wt=function(xt){return xt&&xt.__esModule?xt:{default:xt}}(Nt);(function(xt){function Ot(It,vt){for(It=String(It),vt=vt||2;It.length<vt;)It="0"+It;return It}function Bt(It){var vt=new Date(It.getFullYear(),It.getMonth(),It.getDate());vt.setDate(vt.getDate()-(vt.getDay()+6)%7+3);var et=new Date(vt.getFullYear(),0,4);et.setDate(et.getDate()-(et.getDay()+6)%7+3);var tt=vt.getTimezoneOffset()-et.getTimezoneOffset();vt.setHours(vt.getHours()-tt);var st=(vt-et)/6048e5;return 1+Math.floor(st)}function At(It){var vt=It.getDay();return vt===0&&(vt=7),vt}function bt(It){return It===null?"null":It===void 0?"undefined":(It===void 0?"undefined":(0,Wt.default)(It))!=="object"?It===void 0?"undefined":(0,Wt.default)(It):Array.isArray(It)?"array":{}.toString.call(It).slice(8,-1).toLowerCase()}var Tt=function(){var It=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZWN]|'[^']*'|'[^']*'/g,vt=/\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||bt(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(Tt.masks[st]||st||Tt.masks.default);var ct=st.slice(0,4);ct!=="UTC:"&&ct!=="GMT:"||(st=st.slice(4),rt=!0,ct==="GMT:"&&(ut=!0));var pt=rt?"getUTC":"get",mt=tt[pt+"Date"](),Ct=tt[pt+"Day"](),Dt=tt[pt+"Month"](),Ut=tt[pt+"FullYear"](),Ft=tt[pt+"Hours"](),Qt=tt[pt+"Minutes"](),$t=tt[pt+"Seconds"](),Kt=tt[pt+"Milliseconds"](),ue=rt?0:tt.getTimezoneOffset(),oe=Bt(tt),we=At(tt),Se={d:mt,dd:Ot(mt),ddd:Tt.i18n.dayNames[Ct],dddd:Tt.i18n.dayNames[Ct+7],m:Dt+1,mm:Ot(Dt+1),mmm:Tt.i18n.monthNames[Dt],mmmm:Tt.i18n.monthNames[Dt+12],yy:String(Ut).slice(2),yyyy:Ut,h:Ft%12||12,hh:Ot(Ft%12||12),H:Ft,HH:Ot(Ft),M:Qt,MM:Ot(Qt),s:$t,ss:Ot($t),l:Ot(Kt,3),L:Ot(Math.round(Kt/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(vt)||[""]).pop().replace(et,""),o:(ue>0?"-":"+")+Ot(100*Math.floor(Math.abs(ue)/60)+Math.abs(ue)%60,4),S:["th","st","nd","rd"][mt%10>3?0:(mt%100-mt%10!=10)*mt%10],W:oe,N:we};return st.replace(It,function(Ne){return Ne in Se?Se[Ne]:Ne.slice(1,Ne.length-1)})}}();Tt.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"},Tt.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 Rt=="function"&&Rt.amd?Rt(function(){return Tt}):(Yt===void 0?"undefined":(0,Wt.default)(Yt))==="object"?Vt.exports=Tt:xt.dateFormat=Tt})(void 0)},{"babel-runtime/helpers/typeof":32}],155:[function(yt,Vt,Yt){(function(Nt){function Wt(){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(bt){var Tt=this.useColors;if(bt[0]=(Tt?"%c":"")+this.namespace+(Tt?" %c":" ")+bt[0]+(Tt?"%c ":" ")+"+"+Yt.humanize(this.diff),Tt){var It="color: "+this.color;bt.splice(1,0,It,"color: inherit");var vt=0,et=0;bt[0].replace(/%[a-zA-Z%]/g,function(tt){tt!=="%%"&&(vt++,tt==="%c"&&(et=vt))}),bt.splice(et,0,It)}}function Ot(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function Bt(bt){try{bt==null?Yt.storage.removeItem("debug"):Yt.storage.debug=bt}catch(Tt){}}function At(){var bt;try{bt=Yt.storage.debug}catch(Tt){}return!bt&&Nt!==void 0&&"env"in Nt&&(bt=Nt.env.DEBUG),bt}Yt=Vt.exports=yt("./debug"),Yt.log=Ot,Yt.formatArgs=xt,Yt.save=Bt,Yt.load=At,Yt.useColors=Wt,Yt.storage=typeof chrome!="undefined"&&chrome.storage!==void 0?chrome.storage.local:function(){try{return window.localStorage}catch(bt){}}(),Yt.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],Yt.formatters.j=function(bt){try{return JSON.stringify(bt)}catch(Tt){return"[UnexpectedJSONParseError]: "+Tt.message}},Yt.enable(At())}).call(this,yt("_process"))},{"./debug":156,_process:173}],156:[function(yt,Vt,Yt){function Nt(Tt){var It,vt=0;for(It in Tt)vt=(vt<<5)-vt+Tt.charCodeAt(It),vt|=0;return Yt.colors[Math.abs(vt)%Yt.colors.length]}function Wt(Tt){function It(){if(It.enabled){var vt=It,et=+new Date,tt=et-(bt||et);vt.diff=tt,vt.prev=bt,vt.curr=et,bt=et;for(var st=new Array(arguments.length),rt=0;rt<st.length;rt++)st[rt]=arguments[rt];st[0]=Yt.coerce(st[0]),typeof st[0]!="string"&&st.unshift("%O");var ut=0;st[0]=st[0].replace(/%([a-zA-Z%])/g,function(ct,pt){if(ct==="%%")return ct;ut++;var mt=Yt.formatters[pt];if(typeof mt=="function"){var Ct=st[ut];ct=mt.call(vt,Ct),st.splice(ut,1),ut--}return ct}),Yt.formatArgs.call(vt,st),(It.log||Yt.log||console.log.bind(console)).apply(vt,st)}}return It.namespace=Tt,It.enabled=Yt.enabled(Tt),It.useColors=Yt.useColors(),It.color=Nt(Tt),typeof Yt.init=="function"&&Yt.init(It),It}function xt(Tt){Yt.save(Tt),Yt.names=[],Yt.skips=[];for(var It=(typeof Tt=="string"?Tt:"").split(/[\s,]+/),vt=It.length,et=0;et<vt;et++)It[et]&&(Tt=It[et].replace(/\*/g,".*?"),Tt[0]==="-"?Yt.skips.push(new RegExp("^"+Tt.substr(1)+"$")):Yt.names.push(new RegExp("^"+Tt+"$")))}function Ot(){Yt.enable("")}function Bt(Tt){var It,vt;for(It=0,vt=Yt.skips.length;It<vt;It++)if(Yt.skips[It].test(Tt))return!1;for(It=0,vt=Yt.names.length;It<vt;It++)if(Yt.names[It].test(Tt))return!0;return!1}function At(Tt){return Tt instanceof Error?Tt.stack||Tt.message:Tt}Yt=Vt.exports=Wt.debug=Wt.default=Wt,Yt.coerce=At,Yt.disable=Ot,Yt.enable=xt,Yt.enabled=Bt,Yt.humanize=yt("ms"),Yt.names=[],Yt.skips=[],Yt.formatters={};var bt},{ms:169}],157:[function(yt,Vt,Yt){"use strict";function Nt(xt){var Ot=""+xt,Bt=Wt.exec(Ot);if(!Bt)return Ot;var At,bt="",Tt=0,It=0;for(Tt=Bt.index;Tt<Ot.length;Tt++){switch(Ot.charCodeAt(Tt)){case 34:At=""";break;case 38:At="&";break;case 39:At="'";break;case 60:At="<";break;case 62:At=">";break;default:continue}It!==Tt&&(bt+=Ot.substring(It,Tt)),It=Tt+1,bt+=At}return It!==Tt?bt+Ot.substring(It,Tt):bt}var Wt=/["'&<>]/;Vt.exports=Nt},{}],158:[function(yt,Vt,Yt){function Nt(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function Wt(At){return typeof At=="function"}function xt(At){return typeof At=="number"}function Ot(At){return typeof At=="object"&&At!==null}function Bt(At){return At===void 0}Vt.exports=Nt,Nt.EventEmitter=Nt,Nt.prototype._events=void 0,Nt.prototype._maxListeners=void 0,Nt.defaultMaxListeners=10,Nt.prototype.setMaxListeners=function(At){if(!xt(At)||At<0||isNaN(At))throw TypeError("n must be a positive number");return this._maxListeners=At,this},Nt.prototype.emit=function(At){var bt,Tt,It,vt,et,tt;if(this._events||(this._events={}),At==="error"&&(!this._events.error||Ot(this._events.error)&&!this._events.error.length)){if((bt=arguments[1])instanceof Error)throw bt;var st=new Error('Uncaught, unspecified "error" event. ('+bt+")");throw st.context=bt,st}if(Tt=this._events[At],Bt(Tt))return!1;if(Wt(Tt))switch(arguments.length){case 1:Tt.call(this);break;case 2:Tt.call(this,arguments[1]);break;case 3:Tt.call(this,arguments[1],arguments[2]);break;default:vt=Array.prototype.slice.call(arguments,1),Tt.apply(this,vt)}else if(Ot(Tt))for(vt=Array.prototype.slice.call(arguments,1),tt=Tt.slice(),It=tt.length,et=0;et<It;et++)tt[et].apply(this,vt);return!0},Nt.prototype.addListener=function(At,bt){var Tt;if(!Wt(bt))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",At,Wt(bt.listener)?bt.listener:bt),this._events[At]?Ot(this._events[At])?this._events[At].push(bt):this._events[At]=[this._events[At],bt]:this._events[At]=bt,Ot(this._events[At])&&!this._events[At].warned&&(Tt=Bt(this._maxListeners)?Nt.defaultMaxListeners:this._maxListeners)&&Tt>0&&this._events[At].length>Tt&&(this._events[At].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[At].length),typeof console.trace=="function"&&console.trace()),this},Nt.prototype.on=Nt.prototype.addListener,Nt.prototype.once=function(At,bt){function Tt(){this.removeListener(At,Tt),It||(It=!0,bt.apply(this,arguments))}if(!Wt(bt))throw TypeError("listener must be a function");var It=!1;return Tt.listener=bt,this.on(At,Tt),this},Nt.prototype.removeListener=function(At,bt){var Tt,It,vt,et;if(!Wt(bt))throw TypeError("listener must be a function");if(!this._events||!this._events[At])return this;if(Tt=this._events[At],vt=Tt.length,It=-1,Tt===bt||Wt(Tt.listener)&&Tt.listener===bt)delete this._events[At],this._events.removeListener&&this.emit("removeListener",At,bt);else if(Ot(Tt)){for(et=vt;et-- >0;)if(Tt[et]===bt||Tt[et].listener&&Tt[et].listener===bt){It=et;break}if(It<0)return this;Tt.length===1?(Tt.length=0,delete this._events[At]):Tt.splice(It,1),this._events.removeListener&&this.emit("removeListener",At,bt)}return this},Nt.prototype.removeAllListeners=function(At){var bt,Tt;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[At]&&delete this._events[At],this;if(arguments.length===0){for(bt in this._events)bt!=="removeListener"&&this.removeAllListeners(bt);return this.removeAllListeners("removeListener"),this._events={},this}if(Tt=this._events[At],Wt(Tt))this.removeListener(At,Tt);else if(Tt)for(;Tt.length;)this.removeListener(At,Tt[Tt.length-1]);return delete this._events[At],this},Nt.prototype.listeners=function(At){return this._events&&this._events[At]?Wt(this._events[At])?[this._events[At]]:this._events[At].slice():[]},Nt.prototype.listenerCount=function(At){if(this._events){var bt=this._events[At];if(Wt(bt))return 1;if(bt)return bt.length}return 0},Nt.listenerCount=function(At,bt){return At.listenerCount(bt)}},{}],159:[function(yt,Vt,Yt){var Nt=yt("http"),Wt=Vt.exports;for(var xt in Nt)Nt.hasOwnProperty(xt)&&(Wt[xt]=Nt[xt]);Wt.request=function(Ot,Bt){return Ot||(Ot={}),Ot.scheme="https",Ot.protocol="https:",Nt.request.call(this,Ot,Bt)}},{http:196}],160:[function(yt,Vt,Yt){"use strict";var Nt=yt("util"),Wt=yt("ms");Vt.exports=function(xt){if(typeof xt=="number")return xt;var Ot=Wt(xt);if(Ot===void 0){var Bt=new Error(Nt.format("humanize-ms(%j) result undefined",xt));console.warn(Bt.stack)}return Ot}},{ms:169,util:207}],161:[function(yt,Vt,Yt){Yt.read=function(Nt,Wt,xt,Ot,Bt){var At,bt,Tt=8*Bt-Ot-1,It=(1<<Tt)-1,vt=It>>1,et=-7,tt=xt?Bt-1:0,st=xt?-1:1,rt=Nt[Wt+tt];for(tt+=st,At=rt&(1<<-et)-1,rt>>=-et,et+=Tt;et>0;At=256*At+Nt[Wt+tt],tt+=st,et-=8);for(bt=At&(1<<-et)-1,At>>=-et,et+=Ot;et>0;bt=256*bt+Nt[Wt+tt],tt+=st,et-=8);if(At===0)At=1-vt;else{if(At===It)return bt?NaN:1/0*(rt?-1:1);bt+=Math.pow(2,Ot),At-=vt}return(rt?-1:1)*bt*Math.pow(2,At-Ot)},Yt.write=function(Nt,Wt,xt,Ot,Bt,At){var bt,Tt,It,vt=8*At-Bt-1,et=(1<<vt)-1,tt=et>>1,st=Bt===23?Math.pow(2,-24)-Math.pow(2,-77):0,rt=Ot?0:At-1,ut=Ot?1:-1,ct=Wt<0||Wt===0&&1/Wt<0?1:0;for(Wt=Math.abs(Wt),isNaN(Wt)||Wt===1/0?(Tt=isNaN(Wt)?1:0,bt=et):(bt=Math.floor(Math.log(Wt)/Math.LN2),Wt*(It=Math.pow(2,-bt))<1&&(bt--,It*=2),Wt+=bt+tt>=1?st/It:st*Math.pow(2,1-tt),Wt*It>=2&&(bt++,It/=2),bt+tt>=et?(Tt=0,bt=et):bt+tt>=1?(Tt=(Wt*It-1)*Math.pow(2,Bt),bt+=tt):(Tt=Wt*Math.pow(2,tt-1)*Math.pow(2,Bt),bt=0));Bt>=8;Nt[xt+rt]=255&Tt,rt+=ut,Tt/=256,Bt-=8);for(bt=bt<<Bt|Tt,vt+=Bt;vt>0;Nt[xt+rt]=255&bt,rt+=ut,bt/=256,vt-=8);Nt[xt+rt-ut]|=128*ct}},{}],162:[function(yt,Vt,Yt){typeof Object.create=="function"?Vt.exports=function(Nt,Wt){Nt.super_=Wt,Nt.prototype=Object.create(Wt.prototype,{constructor:{value:Nt,enumerable:!1,writable:!0,configurable:!0}})}:Vt.exports=function(Nt,Wt){Nt.super_=Wt;var xt=function(){};xt.prototype=Wt.prototype,Nt.prototype=new xt,Nt.prototype.constructor=Nt}},{}],163:[function(yt,Vt,Yt){function Nt(xt){return!!xt.constructor&&typeof xt.constructor.isBuffer=="function"&&xt.constructor.isBuffer(xt)}function Wt(xt){return typeof xt.readFloatLE=="function"&&typeof xt.slice=="function"&&Nt(xt.slice(0,0))}Vt.exports=function(xt){return xt!=null&&(Nt(xt)||Wt(xt)||!!xt._isBuffer)}},{}],164:[function(yt,Vt,Yt){(function(Nt){function Wt(Bt){return Ot.call(Bt).replace(/^[^{]*{\s*/,"").replace(/\s*}[^}]*$/,"")}function xt(Bt){return typeof Bt=="function"&&(/^class(\s|\{\}$)/.test(Ot.call(Bt))||/^.*classCallCheck\(/.test(Wt(Bt)))}var Ot=Function.prototype.toString;Yt!==void 0?(Vt!==void 0&&Vt.exports&&(Yt=Vt.exports=xt),Yt.isClass=xt):typeof Rt=="function"&&Rt.amd?Rt([],function(){return xt}):Nt.isClass=xt})(this)},{}],165:[function(yt,Vt,Yt){"use strict";function Nt(At){var bt=At.slice(2);return bt=bt[0].toLowerCase()+bt.slice(1)}var Wt=yt("core-util-is"),xt=yt("isstream"),Ot=yt("is-class");Object.keys(Wt).map(function(At){Yt[Nt(At)]=Wt[At]}),Yt.stream=xt,Yt.readableStream=xt.isReadable,Yt.writableStream=xt.isWritable,Yt.duplexStream=xt.isDuplex,Yt.class=Ot,Yt.finite=function(At){return Number.isFinite(At)},Yt.NaN=function(At){return Number.isNaN(At)},Yt.generator=function(At){return At&&typeof At.next=="function"&&typeof At.throw=="function"},Yt.generatorFunction=function(At){return At&&At.constructor&&At.constructor.name==="GeneratorFunction"},Yt.asyncFunction=function(At){return At&&At.constructor&&At.constructor.name==="AsyncFunction"},Yt.promise=function(At){return At&&typeof At.then=="function"};var Bt=Math.pow(2,31);Yt.int=function(At){return Wt.isNumber(At)&&At%1==0},Yt.int32=function(At){return Yt.int(At)&&At<Bt&&At>=-Bt},Yt.long=function(At){return Yt.int(At)&&(At>=Bt||At<-Bt)},Yt.Long=function(At){return Yt.object(At)&&Yt.number(At.high)&&Yt.number(At.low)},Yt.double=function(At){return Wt.isNumber(At)&&!isNaN(At)&&At%1!=0},Yt.date=function(At){return At instanceof Date},Yt.regExp=function(At){return At instanceof RegExp},Yt.regexp=Yt.regExp,Yt.error=function(At){return At instanceof Error},Yt.array=function(At){return Array.isArray(At)}},{"core-util-is":153,"is-class":164,isstream:167}],166:[function(yt,Vt,Yt){var Nt={}.toString;Vt.exports=Array.isArray||function(Wt){return Nt.call(Wt)=="[object Array]"}},{}],167:[function(yt,Vt,Yt){function Nt(At){return At instanceof Bt.Stream}function Wt(At){return Nt(At)&&typeof At._read=="function"&&typeof At._readableState=="object"}function xt(At){return Nt(At)&&typeof At._write=="function"&&typeof At._writableState=="object"}function Ot(At){return Wt(At)&&xt(At)}var Bt=yt("stream");Vt.exports=Nt,Vt.exports.isReadable=Wt,Vt.exports.isWritable=xt,Vt.exports.isDuplex=Ot},{stream:195}],168:[function(yt,Vt,Yt){"use strict";function Nt(xt,Ot,Bt){if(!xt)throw new TypeError("argument dest is required");if(!Ot)throw new TypeError("argument src is required");return Bt===void 0&&(Bt=!0),Object.getOwnPropertyNames(Ot).forEach(function(At){if(Bt||!Wt.call(xt,At)){var bt=Object.getOwnPropertyDescriptor(Ot,At);Object.defineProperty(xt,At,bt)}}),xt}Vt.exports=Nt;var Wt=Object.prototype.hasOwnProperty},{}],169:[function(yt,Vt,Yt){function Nt(vt){if(vt=String(vt),!(vt.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(vt);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*Tt;case"hours":case"hour":case"hrs":case"hr":case"h":return tt*bt;case"minutes":case"minute":case"mins":case"min":case"m":return tt*At;case"seconds":case"second":case"secs":case"sec":case"s":return tt*Bt;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return tt;default:return}}}}function Wt(vt){return vt>=Tt?Math.round(vt/Tt)+"d":vt>=bt?Math.round(vt/bt)+"h":vt>=At?Math.round(vt/At)+"m":vt>=Bt?Math.round(vt/Bt)+"s":vt+"ms"}function xt(vt){return Ot(vt,Tt,"day")||Ot(vt,bt,"hour")||Ot(vt,At,"minute")||Ot(vt,Bt,"second")||vt+" ms"}function Ot(vt,et,tt){if(!(vt<et))return vt<1.5*et?Math.floor(vt/et)+" "+tt:Math.ceil(vt/et)+" "+tt+"s"}var Bt=1e3,At=60*Bt,bt=60*At,Tt=24*bt,It=365.25*Tt;Vt.exports=function(vt,et){et=et||{};var tt=typeof vt;if(tt==="string"&&vt.length>0)return Nt(vt);if(tt==="number"&&isNaN(vt)===!1)return et.long?xt(vt):Wt(vt);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(vt))}},{}],170:[function(yt,Vt,Yt){(function(Nt){function Wt(At,bt){for(var Tt=0,It=At.length-1;It>=0;It--){var vt=At[It];vt==="."?At.splice(It,1):vt===".."?(At.splice(It,1),Tt++):Tt&&(At.splice(It,1),Tt--)}if(bt)for(;Tt--;Tt)At.unshift("..");return At}function xt(At){typeof At!="string"&&(At+="");var bt,Tt=0,It=-1,vt=!0;for(bt=At.length-1;bt>=0;--bt)if(At.charCodeAt(bt)===47){if(!vt){Tt=bt+1;break}}else It===-1&&(vt=!1,It=bt+1);return It===-1?"":At.slice(Tt,It)}function Ot(At,bt){if(At.filter)return At.filter(bt);for(var Tt=[],It=0;It<At.length;It++)bt(At[It],It,At)&&Tt.push(At[It]);return Tt}Yt.resolve=function(){for(var At="",bt=!1,Tt=arguments.length-1;Tt>=-1&&!bt;Tt--){var It=Tt>=0?arguments[Tt]:Nt.cwd();if(typeof It!="string")throw new TypeError("Arguments to path.resolve must be strings");It&&(At=It+"/"+At,bt=It.charAt(0)==="/")}return At=Wt(Ot(At.split("/"),function(vt){return!!vt}),!bt).join("/"),(bt?"/":"")+At||"."},Yt.normalize=function(At){var bt=Yt.isAbsolute(At),Tt=Bt(At,-1)==="/";return At=Wt(Ot(At.split("/"),function(It){return!!It}),!bt).join("/"),At||bt||(At="."),At&&Tt&&(At+="/"),(bt?"/":"")+At},Yt.isAbsolute=function(At){return At.charAt(0)==="/"},Yt.join=function(){var At=Array.prototype.slice.call(arguments,0);return Yt.normalize(Ot(At,function(bt,Tt){if(typeof bt!="string")throw new TypeError("Arguments to path.join must be strings");return bt}).join("/"))},Yt.relative=function(At,bt){function Tt(ut){for(var ct=0;ct<ut.length&&ut[ct]==="";ct++);for(var pt=ut.length-1;pt>=0&&ut[pt]==="";pt--);return ct>pt?[]:ut.slice(ct,pt-ct+1)}At=Yt.resolve(At).substr(1),bt=Yt.resolve(bt).substr(1);for(var It=Tt(At.split("/")),vt=Tt(bt.split("/")),et=Math.min(It.length,vt.length),tt=et,st=0;st<et;st++)if(It[st]!==vt[st]){tt=st;break}for(var rt=[],st=tt;st<It.length;st++)rt.push("..");return rt=rt.concat(vt.slice(tt)),rt.join("/")},Yt.sep="/",Yt.delimiter=":",Yt.dirname=function(At){if(typeof At!="string"&&(At+=""),At.length===0)return".";for(var bt=At.charCodeAt(0),Tt=bt===47,It=-1,vt=!0,et=At.length-1;et>=1;--et)if((bt=At.charCodeAt(et))===47){if(!vt){It=et;break}}else vt=!1;return It===-1?Tt?"/":".":Tt&&It===1?"/":At.slice(0,It)},Yt.basename=function(At,bt){var Tt=xt(At);return bt&&Tt.substr(-1*bt.length)===bt&&(Tt=Tt.substr(0,Tt.length-bt.length)),Tt},Yt.extname=function(At){typeof At!="string"&&(At+="");for(var bt=-1,Tt=0,It=-1,vt=!0,et=0,tt=At.length-1;tt>=0;--tt){var st=At.charCodeAt(tt);if(st!==47)It===-1&&(vt=!1,It=tt+1),st===46?bt===-1?bt=tt:et!==1&&(et=1):bt!==-1&&(et=-1);else if(!vt){Tt=tt+1;break}}return bt===-1||It===-1||et===0||et===1&&bt===It-1&&bt===Tt+1?"":At.slice(bt,It)};var Bt=function(At,bt,Tt){return At.substr(bt,Tt)}}).call(this,yt("_process"))},{_process:173}],171:[function(yt,Vt,Yt){(function(Nt){(function(){"use strict";function Wt($t){return $t=String($t),$t.charAt(0).toUpperCase()+$t.slice(1)}function xt($t,Kt,ue){var oe={"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 Kt&&ue&&/^Win/i.test($t)&&!/^Windows Phone /i.test($t)&&(oe=oe[/[\d.]+$/.exec($t)])&&($t="Windows "+oe),$t=String($t),Kt&&ue&&($t=$t.replace(RegExp(Kt,"i"),ue)),$t=Bt($t.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($t,Kt){var ue=-1,oe=$t?$t.length:0;if(typeof oe=="number"&&oe>-1&&oe<=mt)for(;++ue<oe;)Kt($t[ue],ue,$t);else At($t,Kt)}function Bt($t){return $t=et($t),/^(?:webOS|i(?:OS|P))/.test($t)?$t:Wt($t)}function At($t,Kt){for(var ue in $t)Ut.call($t,ue)&&Kt($t[ue],ue,$t)}function bt($t){return $t==null?Wt($t):Ft.call($t).slice(8,-1)}function Tt($t,Kt){var ue=$t!=null?typeof $t[Kt]:"number";return!(/^(?:boolean|number|string|undefined)$/.test(ue)||ue=="object"&&!$t[Kt])}function It($t){return String($t).replace(/([ -])(?!$)/g,"$1?")}function vt($t,Kt){var ue=null;return Ot($t,function(oe,we){ue=Kt(ue,oe,we,$t)}),ue}function et($t){return String($t).replace(/^ +| +$/g,"")}function tt($t){function Kt(Ht){return vt(Ht,function(Pt,dt){var gt=dt.pattern||It(dt);return!Pt&&(Pt=RegExp("\\b"+gt+" *\\d+[.\\w_]*","i").exec($t)||RegExp("\\b"+gt+" *\\w+-[\\w]*","i").exec($t)||RegExp("\\b"+gt+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec($t))&&((Pt=String(dt.label&&!RegExp(gt,"i").test(dt.label)?dt.label:Pt).split("/"))[1]&&!/[\d.]+/.test(Pt[0])&&(Pt[0]+=" "+Pt[1]),dt=dt.label||dt,Pt=Bt(Pt[0].replace(RegExp(gt,"i"),dt).replace(RegExp("; *(?:"+dt+"[_-])?","i")," ").replace(RegExp("("+dt+")[-_.]?(\\w)","i"),"$1 $2"))),Pt})}function ue(){return this.description||""}var oe=rt,we=$t&&typeof $t=="object"&&bt($t)!="String";we&&(oe=$t,$t=null);var Se=oe.navigator||{},Ne=Se.userAgent||"";$t||($t=Ne);var pe,Ue,de=we?!!Se.likeChrome:/\bChrome\b/.test($t)&&!/internal|\n/i.test(Ft.toString()),Jt=we?"Object":"ScriptBridgingProxyObject",ee=we?"Object":"Environment",ae=we&&oe.java?"JavaPackage":bt(oe.java),fe=we?"Object":"RuntimeObject",se=/\bJava/.test(ae)&&oe.java,De=se&&bt(oe.environment)==ee,Oe=se?"a":"\u4F2A",en=se?"b":"\u5C3E",We=oe.document||{},rn=oe.operamini||oe.opera,ke=Ct.test(ke=we&&rn?rn["[[Class]]"]:bt(rn))?ke:rn=null,Ie=$t,je=[],$e=null,me=$t==Ne,le=me&&rn&&typeof rn.version=="function"&&rn.version(),Ee=function(Ht){return vt(Ht,function(Pt,dt){return Pt||RegExp("\\b"+(dt.pattern||It(dt))+"\\b","i").exec($t)&&(dt.label||dt)})}([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),ce=function(Ht){return vt(Ht,function(Pt,dt){return Pt||RegExp("\\b"+(dt.pattern||It(dt))+"\\b","i").exec($t)&&(dt.label||dt)})}(["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"]),he=Kt([{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"]),_t=function(Ht){return vt(Ht,function(Pt,dt,gt){return Pt||(dt[he]||dt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(he)]||RegExp("\\b"+It(gt)+"(?:\\b|\\w*\\d)","i").exec($t))&>})}({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}}),Mt=function(Ht){return vt(Ht,function(Pt,dt){var gt=dt.pattern||It(dt);return!Pt&&(Pt=RegExp("\\b"+gt+"(?:/[\\d.]+|[ \\w.]*)","i").exec($t))&&(Pt=xt(Pt,gt,dt.label||dt)),Pt})}(["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(Ee&&(Ee=[Ee]),_t&&!he&&(he=Kt([_t])),(pe=/\bGoogle TV\b/.exec(he))&&(he=pe[0]),/\bSimulator\b/i.test($t)&&(he=(he?he+" ":"")+"Simulator"),ce=="Opera Mini"&&/\bOPiOS\b/.test($t)&&je.push("running in Turbo/Uncompressed mode"),ce=="IE"&&/\blike iPhone OS\b/.test($t)?(pe=tt($t.replace(/like iPhone OS/,"")),_t=pe.manufacturer,he=pe.product):/^iP/.test(he)?(ce||(ce="Safari"),Mt="iOS"+((pe=/ OS ([\d_]+)/i.exec($t))?" "+pe[1].replace(/_/g,"."):"")):ce!="Konqueror"||/buntu/i.test(Mt)?_t&&_t!="Google"&&(/Chrome/.test(ce)&&!/\bMobile Safari\b/i.test($t)||/\bVita\b/.test(he))||/\bAndroid\b/.test(Mt)&&/^Chrome/.test(ce)&&/\bVersion\//i.test($t)?(ce="Android Browser",Mt=/\bAndroid\b/.test(Mt)?Mt:"Android"):ce=="Silk"?(/\bMobi/i.test($t)||(Mt="Android",je.unshift("desktop mode")),/Accelerated *= *true/i.test($t)&&je.unshift("accelerated")):ce=="PaleMoon"&&(pe=/\bFirefox\/([\d.]+)\b/.exec($t))?je.push("identifying as Firefox "+pe[1]):ce=="Firefox"&&(pe=/\b(Mobile|Tablet|TV)\b/i.exec($t))?(Mt||(Mt="Firefox OS"),he||(he=pe[1])):!ce||(pe=!/\bMinefield\b/i.test($t)&&/\b(?:Firefox|Safari)\b/.exec(ce))?(ce&&!he&&/[\/,]|^[^(]+?\)/.test($t.slice($t.indexOf(pe+"/")+8))&&(ce=null),(pe=he||_t||Mt)&&(he||_t||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Mt))&&(ce=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Mt)?Mt:pe)+" Browser")):ce=="Electron"&&(pe=(/\bChrome\/([\d.]+)\b/.exec($t)||0)[1])&&je.push("Chromium "+pe):Mt="Kubuntu",le||(le=function(Ht){return vt(Ht,function(Pt,dt){return Pt||(RegExp(dt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec($t)||0)[1]||null})}(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",It(ce),"(?:Firefox|Minefield|NetFront)"])),(pe=Ee=="iCab"&&parseFloat(le)>3&&"WebKit"||/\bOpera\b/.test(ce)&&(/\bOPR\b/.test($t)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test($t)&&!/^(?:Trident|EdgeHTML)$/.test(Ee)&&"WebKit"||!Ee&&/\bMSIE\b/i.test($t)&&(Mt=="Mac OS"?"Tasman":"Trident")||Ee=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(ce)&&"NetFront")&&(Ee=[pe]),ce=="IE"&&(pe=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec($t)||0)[1])?(ce+=" Mobile",Mt="Windows Phone "+(/\+$/.test(pe)?pe:pe+".x"),je.unshift("desktop mode")):/\bWPDesktop\b/i.test($t)?(ce="IE Mobile",Mt="Windows Phone 8.x",je.unshift("desktop mode"),le||(le=(/\brv:([\d.]+)/.exec($t)||0)[1])):ce!="IE"&&Ee=="Trident"&&(pe=/\brv:([\d.]+)/.exec($t))&&(ce&&je.push("identifying as "+ce+(le?" "+le:"")),ce="IE",le=pe[1]),me){if(Tt(oe,"global"))if(se&&(pe=se.lang.System,Ie=pe.getProperty("os.arch"),Mt=Mt||pe.getProperty("os.name")+" "+pe.getProperty("os.version")),De){try{le=oe.require("ringo/engine").version.join("."),ce="RingoJS"}catch(Ht){(pe=oe.system)&&pe.global.system==oe.system&&(ce="Narwhal",Mt||(Mt=pe[0].os||null))}ce||(ce="Rhino")}else typeof oe.process=="object"&&!oe.process.browser&&(pe=oe.process)&&(typeof pe.versions=="object"&&(typeof pe.versions.electron=="string"?(je.push("Node "+pe.versions.node),ce="Electron",le=pe.versions.electron):typeof pe.versions.nw=="string"&&(je.push("Chromium "+le,"Node "+pe.versions.node),ce="NW.js",le=pe.versions.nw)),ce||(ce="Node.js",Ie=pe.arch,Mt=pe.platform,le=/[\d.]+/.exec(pe.version),le=le?le[0]:null));else bt(pe=oe.runtime)==Jt?(ce="Adobe AIR",Mt=pe.flash.system.Capabilities.os):bt(pe=oe.phantom)==fe?(ce="PhantomJS",le=(pe=pe.version||null)&&pe.major+"."+pe.minor+"."+pe.patch):typeof We.documentMode=="number"&&(pe=/\bTrident\/(\d+)/i.exec($t))?(le=[le,We.documentMode],(pe=+pe[1]+4)!=le[1]&&(je.push("IE "+le[1]+" mode"),Ee&&(Ee[1]=""),le[1]=pe),le=ce=="IE"?String(le[1].toFixed(1)):le[0]):typeof We.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(ce)&&(je.push("masking as "+ce+" "+le),ce="IE",le="11.0",Ee=["Trident"],Mt="Windows");Mt=Mt&&Bt(Mt)}if(le&&(pe=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(le)||/(?:alpha|beta)(?: ?\d)?/i.exec($t+";"+(me&&Se.appMinorVersion))||/\bMinefield\b/i.test($t)&&"a")&&($e=/b/i.test(pe)?"beta":"alpha",le=le.replace(RegExp(pe+"\\+?$"),"")+($e=="beta"?en:Oe)+(/\d+\+?/.exec(pe)||"")),ce=="Fennec"||ce=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(Mt))ce="Firefox Mobile";else if(ce=="Maxthon"&&le)le=le.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(he))he=="Xbox 360"&&(Mt=null),he=="Xbox 360"&&/\bIEMobile\b/.test($t)&&je.unshift("mobile mode");else if(!/^(?:Chrome|IE|Opera)$/.test(ce)&&(!ce||he||/Browser|Mobi/.test(ce))||Mt!="Windows CE"&&!/Mobi/i.test($t))if(ce=="IE"&&me)try{oe.external===null&&je.unshift("platform preview")}catch(Ht){je.unshift("embedded")}else(/\bBlackBerry\b/.test(he)||/\bBB10\b/.test($t))&&(pe=(RegExp(he.replace(/ +/g," *")+"/([.\\d]+)","i").exec($t)||0)[1]||le)?(pe=[pe,/BB10/.test($t)],Mt=(pe[1]?(he=null,_t="BlackBerry"):"Device Software")+" "+pe[0],le=null):this!=At&&he!="Wii"&&(me&&rn||/Opera/.test(ce)&&/\b(?:MSIE|Firefox)\b/i.test($t)||ce=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(Mt)||ce=="IE"&&(Mt&&!/^Win/.test(Mt)&&le>5.5||/\bWindows XP\b/.test(Mt)&&le>8||le==8&&!/\bTrident\b/.test($t)))&&!Ct.test(pe=tt.call(At,$t.replace(Ct,"")+";"))&&pe.name&&(pe="ing as "+pe.name+((pe=pe.version)?" "+pe:""),Ct.test(ce)?(/\bIE\b/.test(pe)&&Mt=="Mac OS"&&(Mt=null),pe="identify"+pe):(pe="mask"+pe,ce=ke?Bt(ke.replace(/([a-z])([A-Z])/g,"$1 $2")):"Opera",/\bIE\b/.test(pe)&&(Mt=null),me||(le=null)),Ee=["Presto"],je.push(pe));else ce+=" Mobile";(pe=(/\bAppleWebKit\/([\d.]+\+?)/i.exec($t)||0)[1])&&(pe=[parseFloat(pe.replace(/\.(\d)$/,".0$1")),pe],ce=="Safari"&&pe[1].slice(-1)=="+"?(ce="WebKit Nightly",$e="alpha",le=pe[1].slice(0,-1)):le!=pe[1]&&le!=(pe[2]=(/\bSafari\/([\d.]+\+?)/i.exec($t)||0)[1])||(le=null),pe[1]=(/\bChrome\/([\d.]+)/i.exec($t)||0)[1],pe[0]==537.36&&pe[2]==537.36&&parseFloat(pe[1])>=28&&Ee=="WebKit"&&(Ee=["Blink"]),me&&(de||pe[1])?(Ee&&(Ee[1]="like Chrome"),pe=pe[1]||(pe=pe[0],pe<530?1:pe<532?2:pe<532.05?3:pe<533?4:pe<534.03?5:pe<534.07?6:pe<534.1?7:pe<534.13?8:pe<534.16?9:pe<534.24?10:pe<534.3?11:pe<535.01?12:pe<535.02?"13+":pe<535.07?15:pe<535.11?16:pe<535.19?17:pe<536.05?18:pe<536.1?19:pe<537.01?20:pe<537.11?"21+":pe<537.13?23:pe<537.18?24:pe<537.24?25:pe<537.36?26:Ee!="Blink"?"27":"28")):(Ee&&(Ee[1]="like Safari"),pe=pe[0],pe=pe<400?1:pe<500?2:pe<526?3:pe<533?4:pe<534?"4+":pe<535?5:pe<537?6:pe<538?7:pe<601?8:"8"),Ee&&(Ee[1]+=" "+(pe+=typeof pe=="number"?".x":/[.+]/.test(pe)?"":"+")),ce=="Safari"&&(!le||parseInt(le)>45)&&(le=pe)),ce=="Opera"&&(pe=/\bzbov|zvav$/.exec(Mt))?(ce+=" ",je.unshift("desktop mode"),pe=="zvav"?(ce+="Mini",le=null):ce+="Mobile",Mt=Mt.replace(RegExp(" *"+pe+"$"),"")):ce=="Safari"&&/\bChrome\b/.exec(Ee&&Ee[1])&&(je.unshift("desktop mode"),ce="Chrome Mobile",le=null,/\bOS X\b/.test(Mt)?(_t="Apple",Mt="iOS 4.3+"):Mt=null),le&&le.indexOf(pe=/[\d.]+$/.exec(Mt))==0&&$t.indexOf("/"+pe+"-")>-1&&(Mt=et(Mt.replace(pe,""))),Ee&&!/\b(?:Avant|Nook)\b/.test(ce)&&(/Browser|Lunascape|Maxthon/.test(ce)||ce!="Safari"&&/^iOS/.test(Mt)&&/\bSafari\b/.test(Ee[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(ce)&&Ee[1])&&(pe=Ee[Ee.length-1])&&je.push(pe),je.length&&(je=["("+je.join("; ")+")"]),_t&&he&&he.indexOf(_t)<0&&je.push("on "+_t),he&&je.push((/^on /.test(je[je.length-1])?"":"on ")+he),Mt&&(pe=/ ([\d.+]+)$/.exec(Mt),Ue=pe&&Mt.charAt(Mt.length-pe[0].length-1)=="/",Mt={architecture:32,family:pe&&!Ue?Mt.replace(pe[0],""):Mt,version:pe?pe[1]:null,toString:function(){var Ht=this.version;return this.family+(Ht&&!Ue?" "+Ht:"")+(this.architecture==64?" 64-bit":"")}}),(pe=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Ie))&&!/\bi686\b/i.test(Ie)?(Mt&&(Mt.architecture=64,Mt.family=Mt.family.replace(RegExp(" *"+pe),"")),ce&&(/\bWOW64\b/i.test($t)||me&&/\w(?:86|32)$/.test(Se.cpuClass||Se.platform)&&!/\bWin64; x64\b/i.test($t))&&je.unshift("32-bit")):Mt&&/^OS X/.test(Mt.family)&&ce=="Chrome"&&parseFloat(le)>=39&&(Mt.architecture=64),$t||($t=null);var Et={};return Et.description=$t,Et.layout=Ee&&Ee[0],Et.manufacturer=_t,Et.name=ce,Et.prerelease=$e,Et.product=he,Et.ua=$t,Et.version=ce&&le,Et.os=Mt||{architecture:null,family:null,version:null,toString:function(){return"null"}},Et.parse=tt,Et.toString=ue,Et.version&&je.unshift(le),Et.name&&je.unshift(ce),Mt&&ce&&(Mt!=String(Mt).split(" ")[0]||Mt!=ce.split(" ")[0]&&!he)&&je.push(he?"("+Mt+")":"on "+Mt),je.length&&(Et.description=je.join(" ")),Et}var st={function:!0,object:!0},rt=st[typeof window]&&window||this,ut=st[typeof Yt]&&Yt,ct=st[typeof Vt]&&Vt&&!Vt.nodeType&&Vt,pt=ut&&ct&&typeof Nt=="object"&&Nt;!pt||pt.global!==pt&&pt.window!==pt&&pt.self!==pt||(rt=pt);var mt=Math.pow(2,53)-1,Ct=/\bOpera/,Dt=Object.prototype,Ut=Dt.hasOwnProperty,Ft=Dt.toString,Qt=tt();typeof Rt=="function"&&typeof Rt.amd=="object"&&Rt.amd?(rt.platform=Qt,Rt(function(){return Qt})):ut&&ct?At(Qt,function($t,Kt){ut[Kt]=$t}):rt.platform=Qt}).call(this)}).call(this,typeof Gt.g!="undefined"?Gt.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],172:[function(yt,Vt,Yt){(function(Nt){"use strict";function Wt(xt,Ot,Bt,At){if(typeof xt!="function")throw new TypeError('"callback" argument must be a function');var bt,Tt,It=arguments.length;switch(It){case 0:case 1:return Nt.nextTick(xt);case 2:return Nt.nextTick(function(){xt.call(null,Ot)});case 3:return Nt.nextTick(function(){xt.call(null,Ot,Bt)});case 4:return Nt.nextTick(function(){xt.call(null,Ot,Bt,At)});default:for(bt=new Array(It-1),Tt=0;Tt<bt.length;)bt[Tt++]=arguments[Tt];return Nt.nextTick(function(){xt.apply(null,bt)})}}!Nt.version||Nt.version.indexOf("v0.")===0||Nt.version.indexOf("v1.")===0&&Nt.version.indexOf("v1.8.")!==0?Vt.exports={nextTick:Wt}:Vt.exports=Nt}).call(this,yt("_process"))},{_process:173}],173:[function(yt,Vt,Yt){function Nt(){throw new Error("setTimeout has not been defined")}function Wt(){throw new Error("clearTimeout has not been defined")}function xt(ct){if(It===setTimeout)return setTimeout(ct,0);if((It===Nt||!It)&&setTimeout)return It=setTimeout,setTimeout(ct,0);try{return It(ct,0)}catch(pt){try{return It.call(null,ct,0)}catch(mt){return It.call(this,ct,0)}}}function Ot(ct){if(vt===clearTimeout)return clearTimeout(ct);if((vt===Wt||!vt)&&clearTimeout)return vt=clearTimeout,clearTimeout(ct);try{return vt(ct)}catch(pt){try{return vt.call(null,ct)}catch(mt){return vt.call(this,ct)}}}function Bt(){rt&&tt&&(rt=!1,tt.length?st=tt.concat(st):ut=-1,st.length&&At())}function At(){if(!rt){var ct=xt(Bt);rt=!0;for(var pt=st.length;pt;){for(tt=st,st=[];++ut<pt;)tt&&tt[ut].run();ut=-1,pt=st.length}tt=null,rt=!1,Ot(ct)}}function bt(ct,pt){this.fun=ct,this.array=pt}function Tt(){}var It,vt,et=Vt.exports={};(function(){try{It=typeof setTimeout=="function"?setTimeout:Nt}catch(ct){It=Nt}try{vt=typeof clearTimeout=="function"?clearTimeout:Wt}catch(ct){vt=Wt}})();var tt,st=[],rt=!1,ut=-1;et.nextTick=function(ct){var pt=new Array(arguments.length-1);if(arguments.length>1)for(var mt=1;mt<arguments.length;mt++)pt[mt-1]=arguments[mt];st.push(new bt(ct,pt)),st.length!==1||rt||xt(At)},bt.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=Tt,et.addListener=Tt,et.once=Tt,et.off=Tt,et.removeListener=Tt,et.removeAllListeners=Tt,et.emit=Tt,et.prependListener=Tt,et.prependOnceListener=Tt,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(yt,Vt,Yt){(function(Nt){(function(Wt){function xt(ae){throw new RangeError(Ue[ae])}function Ot(ae,fe){for(var se=ae.length,De=[];se--;)De[se]=fe(ae[se]);return De}function Bt(ae,fe){var se=ae.split("@"),De="";return se.length>1&&(De=se[0]+"@",ae=se[1]),ae=ae.replace(pe,"."),De+Ot(ae.split("."),fe).join(".")}function At(ae){for(var fe,se,De=[],Oe=0,en=ae.length;Oe<en;)fe=ae.charCodeAt(Oe++),fe>=55296&&fe<=56319&&Oe<en?(se=ae.charCodeAt(Oe++),(64512&se)==56320?De.push(((1023&fe)<<10)+(1023&se)+65536):(De.push(fe),Oe--)):De.push(fe);return De}function bt(ae){return Ot(ae,function(fe){var se="";return fe>65535&&(fe-=65536,se+=ee(fe>>>10&1023|55296),fe=56320|1023&fe),se+=ee(fe)}).join("")}function Tt(ae){return ae-48<10?ae-22:ae-65<26?ae-65:ae-97<26?ae-97:Ut}function It(ae,fe){return ae+22+75*(ae<26)-((fe!=0)<<5)}function vt(ae,fe,se){var De=0;for(ae=se?Jt(ae/Kt):ae>>1,ae+=Jt(ae/fe);ae>de*Qt>>1;De+=Ut)ae=Jt(ae/de);return Jt(De+(de+1)*ae/(ae+$t))}function et(ae){var fe,se,De,Oe,en,We,rn,ke,Ie,je,$e=[],me=ae.length,le=0,Ee=oe,ce=ue;for(se=ae.lastIndexOf(we),se<0&&(se=0),De=0;De<se;++De)ae.charCodeAt(De)>=128&&xt("not-basic"),$e.push(ae.charCodeAt(De));for(Oe=se>0?se+1:0;Oe<me;){for(en=le,We=1,rn=Ut;Oe>=me&&xt("invalid-input"),ke=Tt(ae.charCodeAt(Oe++)),(ke>=Ut||ke>Jt((Dt-le)/We))&&xt("overflow"),le+=ke*We,Ie=rn<=ce?Ft:rn>=ce+Qt?Qt:rn-ce,!(ke<Ie);rn+=Ut)je=Ut-Ie,We>Jt(Dt/je)&&xt("overflow"),We*=je;fe=$e.length+1,ce=vt(le-en,fe,en==0),Jt(le/fe)>Dt-Ee&&xt("overflow"),Ee+=Jt(le/fe),le%=fe,$e.splice(le++,0,Ee)}return bt($e)}function tt(ae){var fe,se,De,Oe,en,We,rn,ke,Ie,je,$e,me,le,Ee,ce,he=[];for(ae=At(ae),me=ae.length,fe=oe,se=0,en=ue,We=0;We<me;++We)($e=ae[We])<128&&he.push(ee($e));for(De=Oe=he.length,Oe&&he.push(we);De<me;){for(rn=Dt,We=0;We<me;++We)($e=ae[We])>=fe&&$e<rn&&(rn=$e);for(le=De+1,rn-fe>Jt((Dt-se)/le)&&xt("overflow"),se+=(rn-fe)*le,fe=rn,We=0;We<me;++We)if($e=ae[We],$e<fe&&++se>Dt&&xt("overflow"),$e==fe){for(ke=se,Ie=Ut;je=Ie<=en?Ft:Ie>=en+Qt?Qt:Ie-en,!(ke<je);Ie+=Ut)ce=ke-je,Ee=Ut-je,he.push(ee(It(je+ce%Ee,0))),ke=Jt(ce/Ee);he.push(ee(It(ke,0))),en=vt(se,le,De==Oe),se=0,++De}++se,++fe}return he.join("")}function st(ae){return Bt(ae,function(fe){return Se.test(fe)?et(fe.slice(4).toLowerCase()):fe})}function rt(ae){return Bt(ae,function(fe){return Ne.test(fe)?"xn--"+tt(fe):fe})}var ut=typeof Yt=="object"&&Yt&&!Yt.nodeType&&Yt,ct=typeof Vt=="object"&&Vt&&!Vt.nodeType&&Vt,pt=typeof Nt=="object"&&Nt;pt.global!==pt&&pt.window!==pt&&pt.self!==pt||(Wt=pt);var mt,Ct,Dt=2147483647,Ut=36,Ft=1,Qt=26,$t=38,Kt=700,ue=72,oe=128,we="-",Se=/^xn--/,Ne=/[^\x20-\x7E]/,pe=/[\x2E\u3002\uFF0E\uFF61]/g,Ue={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},de=Ut-Ft,Jt=Math.floor,ee=String.fromCharCode;if(mt={version:"1.4.1",ucs2:{decode:At,encode:bt},decode:et,encode:tt,toASCII:rt,toUnicode:st},typeof Rt=="function"&&typeof Rt.amd=="object"&&Rt.amd)Rt("punycode",function(){return mt});else if(ut&&ct)if(Vt.exports==ut)ct.exports=mt;else for(Ct in mt)mt.hasOwnProperty(Ct)&&(ut[Ct]=mt[Ct]);else Wt.punycode=mt})(this)}).call(this,typeof Gt.g!="undefined"?Gt.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],175:[function(yt,Vt,Yt){"use strict";function Nt(xt,Ot){return Object.prototype.hasOwnProperty.call(xt,Ot)}Vt.exports=function(xt,Ot,Bt,At){Ot=Ot||"&",Bt=Bt||"=";var bt={};if(typeof xt!="string"||xt.length===0)return bt;var Tt=/\+/g;xt=xt.split(Ot);var It=1e3;At&&typeof At.maxKeys=="number"&&(It=At.maxKeys);var vt=xt.length;It>0&&vt>It&&(vt=It);for(var et=0;et<vt;++et){var tt,st,rt,ut,ct=xt[et].replace(Tt,"%20"),pt=ct.indexOf(Bt);pt>=0?(tt=ct.substr(0,pt),st=ct.substr(pt+1)):(tt=ct,st=""),rt=decodeURIComponent(tt),ut=decodeURIComponent(st),Nt(bt,rt)?Wt(bt[rt])?bt[rt].push(ut):bt[rt]=[bt[rt],ut]:bt[rt]=ut}return bt};var Wt=Array.isArray||function(xt){return Object.prototype.toString.call(xt)==="[object Array]"}},{}],176:[function(yt,Vt,Yt){"use strict";function Nt(Bt,At){if(Bt.map)return Bt.map(At);for(var bt=[],Tt=0;Tt<Bt.length;Tt++)bt.push(At(Bt[Tt],Tt));return bt}var Wt=function(Bt){switch(typeof Bt){case"string":return Bt;case"boolean":return Bt?"true":"false";case"number":return isFinite(Bt)?Bt:"";default:return""}};Vt.exports=function(Bt,At,bt,Tt){return At=At||"&",bt=bt||"=",Bt===null&&(Bt=void 0),typeof Bt=="object"?Nt(Ot(Bt),function(It){var vt=encodeURIComponent(Wt(It))+bt;return xt(Bt[It])?Nt(Bt[It],function(et){return vt+encodeURIComponent(Wt(et))}).join(At):vt+encodeURIComponent(Wt(Bt[It]))}).join(At):Tt?encodeURIComponent(Wt(Tt))+bt+encodeURIComponent(Wt(Bt)):""};var xt=Array.isArray||function(Bt){return Object.prototype.toString.call(Bt)==="[object Array]"},Ot=Object.keys||function(Bt){var At=[];for(var bt in Bt)Object.prototype.hasOwnProperty.call(Bt,bt)&&At.push(bt);return At}},{}],177:[function(yt,Vt,Yt){"use strict";Yt.decode=Yt.parse=yt("./decode"),Yt.encode=Yt.stringify=yt("./encode")},{"./decode":175,"./encode":176}],178:[function(yt,Vt,Yt){Vt.exports=yt("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":179}],179:[function(yt,Vt,Yt){"use strict";function Nt(rt){if(!(this instanceof Nt))return new Nt(rt);It.call(this,rt),vt.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",Wt)}function Wt(){this.allowHalfOpen||this._writableState.ended||At.nextTick(xt,this)}function xt(rt){rt.end()}var Ot=yt("babel-runtime/core-js/object/keys"),Bt=function(rt){return rt&&rt.__esModule?rt:{default:rt}}(Ot),At=yt("process-nextick-args"),bt=Bt.default||function(rt){var ut=[];for(var ct in rt)ut.push(ct);return ut};Vt.exports=Nt;var Tt=yt("core-util-is");Tt.inherits=yt("inherits");var It=yt("./_stream_readable"),vt=yt("./_stream_writable");Tt.inherits(Nt,It);for(var et=bt(vt.prototype),tt=0;tt<et.length;tt++){var st=et[tt];Nt.prototype[st]||(Nt.prototype[st]=vt.prototype[st])}Object.defineProperty(Nt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(Nt.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)}}),Nt.prototype._destroy=function(rt,ut){this.push(null),this.end(),At.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(yt,Vt,Yt){"use strict";function Nt(Ot){if(!(this instanceof Nt))return new Nt(Ot);Wt.call(this,Ot)}Vt.exports=Nt;var Wt=yt("./_stream_transform"),xt=yt("core-util-is");xt.inherits=yt("inherits"),xt.inherits(Nt,Wt),Nt.prototype._transform=function(Ot,Bt,At){At(null,Ot)}},{"./_stream_transform":182,"core-util-is":153,inherits:162}],181:[function(yt,Vt,Yt){(function(Nt,Wt){"use strict";function xt(me){return se.from(me)}function Ot(me){return se.isBuffer(me)||me instanceof De}function Bt(me,le,Ee){if(typeof me.prependListener=="function")return me.prependListener(le,Ee);me._events&&me._events[le]?ee(me._events[le])?me._events[le].unshift(Ee):me._events[le]=[Ee,me._events[le]]:me.on(le,Ee)}function At(me,le){Jt=Jt||yt("./_stream_duplex"),me=me||{};var Ee=le instanceof Jt;this.objectMode=!!me.objectMode,Ee&&(this.objectMode=this.objectMode||!!me.readableObjectMode);var ce=me.highWaterMark,he=me.readableHighWaterMark,_t=this.objectMode?16:16384;this.highWaterMark=ce||ce===0?ce:Ee&&(he||he===0)?he:_t,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new ke,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=me.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,me.encoding&&(rn||(rn=yt("string_decoder/").StringDecoder),this.decoder=new rn(me.encoding),this.encoding=me.encoding)}function bt(me){if(Jt=Jt||yt("./_stream_duplex"),!(this instanceof bt))return new bt(me);this._readableState=new At(me,this),this.readable=!0,me&&(typeof me.read=="function"&&(this._read=me.read),typeof me.destroy=="function"&&(this._destroy=me.destroy)),fe.call(this)}function Tt(me,le,Ee,ce,he){var _t=me._readableState;if(le===null)_t.reading=!1,rt(me,_t);else{var Mt;he||(Mt=vt(_t,le)),Mt?me.emit("error",Mt):_t.objectMode||le&&le.length>0?(typeof le=="string"||_t.objectMode||(0,Ue.default)(le)===se.prototype||(le=xt(le)),ce?_t.endEmitted?me.emit("error",new Error("stream.unshift() after end event")):It(me,_t,le,!0):_t.ended?me.emit("error",new Error("stream.push() after EOF")):(_t.reading=!1,_t.decoder&&!Ee?(le=_t.decoder.write(le),_t.objectMode||le.length!==0?It(me,_t,le,!1):pt(me,_t)):It(me,_t,le,!1))):ce||(_t.reading=!1)}return et(_t)}function It(me,le,Ee,ce){le.flowing&&le.length===0&&!le.sync?(me.emit("data",Ee),me.read(0)):(le.length+=le.objectMode?1:Ee.length,ce?le.buffer.unshift(Ee):le.buffer.push(Ee),le.needReadable&&ut(me)),pt(me,le)}function vt(me,le){var Ee;return Ot(le)||typeof le=="string"||le===void 0||me.objectMode||(Ee=new TypeError("Invalid non-string/buffer chunk")),Ee}function et(me){return!me.ended&&(me.needReadable||me.length<me.highWaterMark||me.length===0)}function tt(me){return me>=$e?me=$e:(me--,me|=me>>>1,me|=me>>>2,me|=me>>>4,me|=me>>>8,me|=me>>>16,me++),me}function st(me,le){return me<=0||le.length===0&&le.ended?0:le.objectMode?1:me!==me?le.flowing&&le.length?le.buffer.head.data.length:le.length:(me>le.highWaterMark&&(le.highWaterMark=tt(me)),me<=le.length?me:le.ended?le.length:(le.needReadable=!0,0))}function rt(me,le){if(!le.ended){if(le.decoder){var Ee=le.decoder.end();Ee&&Ee.length&&(le.buffer.push(Ee),le.length+=le.objectMode?1:Ee.length)}le.ended=!0,ut(me)}}function ut(me){var le=me._readableState;le.needReadable=!1,le.emittedReadable||(We("emitReadable",le.flowing),le.emittedReadable=!0,le.sync?de.nextTick(ct,me):ct(me))}function ct(me){We("emit readable"),me.emit("readable"),Qt(me)}function pt(me,le){le.readingMore||(le.readingMore=!0,de.nextTick(mt,me,le))}function mt(me,le){for(var Ee=le.length;!le.reading&&!le.flowing&&!le.ended&&le.length<le.highWaterMark&&(We("maybeReadMore read 0"),me.read(0),Ee!==le.length);)Ee=le.length;le.readingMore=!1}function Ct(me){return function(){var le=me._readableState;We("pipeOnDrain",le.awaitDrain),le.awaitDrain&&le.awaitDrain--,le.awaitDrain===0&&ae(me,"data")&&(le.flowing=!0,Qt(me))}}function Dt(me){We("readable nexttick read 0"),me.read(0)}function Ut(me,le){le.resumeScheduled||(le.resumeScheduled=!0,de.nextTick(Ft,me,le))}function Ft(me,le){le.reading||(We("resume read 0"),me.read(0)),le.resumeScheduled=!1,le.awaitDrain=0,me.emit("resume"),Qt(me),le.flowing&&!le.reading&&me.read(0)}function Qt(me){var le=me._readableState;for(We("flow",le.flowing);le.flowing&&me.read()!==null;);}function $t(me,le){if(le.length===0)return null;var Ee;return le.objectMode?Ee=le.buffer.shift():!me||me>=le.length?(Ee=le.decoder?le.buffer.join(""):le.buffer.length===1?le.buffer.head.data:le.buffer.concat(le.length),le.buffer.clear()):Ee=Kt(me,le.buffer,le.decoder),Ee}function Kt(me,le,Ee){var ce;return me<le.head.data.length?(ce=le.head.data.slice(0,me),le.head.data=le.head.data.slice(me)):ce=me===le.head.data.length?le.shift():Ee?ue(me,le):oe(me,le),ce}function ue(me,le){var Ee=le.head,ce=1,he=Ee.data;for(me-=he.length;Ee=Ee.next;){var _t=Ee.data,Mt=me>_t.length?_t.length:me;if(Mt===_t.length?he+=_t:he+=_t.slice(0,me),(me-=Mt)===0){Mt===_t.length?(++ce,Ee.next?le.head=Ee.next:le.head=le.tail=null):(le.head=Ee,Ee.data=_t.slice(Mt));break}++ce}return le.length-=ce,he}function oe(me,le){var Ee=se.allocUnsafe(me),ce=le.head,he=1;for(ce.data.copy(Ee),me-=ce.data.length;ce=ce.next;){var _t=ce.data,Mt=me>_t.length?_t.length:me;if(_t.copy(Ee,Ee.length-me,0,Mt),(me-=Mt)===0){Mt===_t.length?(++he,ce.next?le.head=ce.next:le.head=le.tail=null):(le.head=ce,ce.data=_t.slice(Mt));break}++he}return le.length-=he,Ee}function we(me){var le=me._readableState;if(le.length>0)throw new Error('"endReadable()" called on non-empty stream');le.endEmitted||(le.ended=!0,de.nextTick(Se,le,me))}function Se(me,le){me.endEmitted||me.length!==0||(me.endEmitted=!0,le.readable=!1,le.emit("end"))}function Ne(me,le){for(var Ee=0,ce=me.length;Ee<ce;Ee++)if(me[Ee]===le)return Ee;return-1}var pe=yt("babel-runtime/core-js/object/get-prototype-of"),Ue=function(me){return me&&me.__esModule?me:{default:me}}(pe),de=yt("process-nextick-args");Vt.exports=bt;var Jt,ee=yt("isarray");bt.ReadableState=At;var ae=(yt("events").EventEmitter,function(me,le){return me.listeners(le).length}),fe=yt("./internal/streams/stream"),se=yt("safe-buffer").Buffer,De=Wt.Uint8Array||function(){},Oe=yt("core-util-is");Oe.inherits=yt("inherits");var en=yt("util"),We=void 0;We=en&&en.debuglog?en.debuglog("stream"):function(){};var rn,ke=yt("./internal/streams/BufferList"),Ie=yt("./internal/streams/destroy");Oe.inherits(bt,fe);var je=["error","close","destroy","pause","resume"];Object.defineProperty(bt.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(me){this._readableState&&(this._readableState.destroyed=me)}}),bt.prototype.destroy=Ie.destroy,bt.prototype._undestroy=Ie.undestroy,bt.prototype._destroy=function(me,le){this.push(null),le(me)},bt.prototype.push=function(me,le){var Ee,ce=this._readableState;return ce.objectMode?Ee=!0:typeof me=="string"&&(le=le||ce.defaultEncoding,le!==ce.encoding&&(me=se.from(me,le),le=""),Ee=!0),Tt(this,me,le,!1,Ee)},bt.prototype.unshift=function(me){return Tt(this,me,null,!0,!1)},bt.prototype.isPaused=function(){return this._readableState.flowing===!1},bt.prototype.setEncoding=function(me){return rn||(rn=yt("string_decoder/").StringDecoder),this._readableState.decoder=new rn(me),this._readableState.encoding=me,this};var $e=8388608;bt.prototype.read=function(me){We("read",me),me=parseInt(me,10);var le=this._readableState,Ee=me;if(me!==0&&(le.emittedReadable=!1),me===0&&le.needReadable&&(le.length>=le.highWaterMark||le.ended))return We("read: emitReadable",le.length,le.ended),le.length===0&&le.ended?we(this):ut(this),null;if((me=st(me,le))===0&&le.ended)return le.length===0&&we(this),null;var ce=le.needReadable;We("need readable",ce),(le.length===0||le.length-me<le.highWaterMark)&&(ce=!0,We("length less than watermark",ce)),le.ended||le.reading?(ce=!1,We("reading or ended",ce)):ce&&(We("do read"),le.reading=!0,le.sync=!0,le.length===0&&(le.needReadable=!0),this._read(le.highWaterMark),le.sync=!1,le.reading||(me=st(Ee,le)));var he;return he=me>0?$t(me,le):null,he===null?(le.needReadable=!0,me=0):le.length-=me,le.length===0&&(le.ended||(le.needReadable=!0),Ee!==me&&le.ended&&we(this)),he!==null&&this.emit("data",he),he},bt.prototype._read=function(me){this.emit("error",new Error("_read() is not implemented"))},bt.prototype.pipe=function(me,le){function Ee(sn,Le){We("onunpipe"),sn===dt&&Le&&Le.hasUnpiped===!1&&(Le.hasUnpiped=!0,he())}function ce(){We("onend"),me.end()}function he(){We("cleanup"),me.removeListener("close",Et),me.removeListener("finish",Ht),me.removeListener("drain",Zt),me.removeListener("error",Mt),me.removeListener("unpipe",Ee),dt.removeListener("end",ce),dt.removeListener("end",Pt),dt.removeListener("data",_t),ye=!0,!gt.awaitDrain||me._writableState&&!me._writableState.needDrain||Zt()}function _t(sn){We("ondata"),Ye=!1,me.write(sn)!==!1||Ye||((gt.pipesCount===1&>.pipes===me||gt.pipesCount>1&&Ne(gt.pipes,me)!==-1)&&!ye&&(We("false write response, pause",dt._readableState.awaitDrain),dt._readableState.awaitDrain++,Ye=!0),dt.pause())}function Mt(sn){We("onerror",sn),Pt(),me.removeListener("error",Mt),ae(me,"error")===0&&me.emit("error",sn)}function Et(){me.removeListener("finish",Ht),Pt()}function Ht(){We("onfinish"),me.removeListener("close",Et),Pt()}function Pt(){We("unpipe"),dt.unpipe(me)}var dt=this,gt=this._readableState;switch(gt.pipesCount){case 0:gt.pipes=me;break;case 1:gt.pipes=[gt.pipes,me];break;default:gt.pipes.push(me)}gt.pipesCount+=1,We("pipe count=%d opts=%j",gt.pipesCount,le);var zt=(!le||le.end!==!1)&&me!==Nt.stdout&&me!==Nt.stderr,re=zt?ce:Pt;gt.endEmitted?de.nextTick(re):dt.once("end",re),me.on("unpipe",Ee);var Zt=Ct(dt);me.on("drain",Zt);var ye=!1,Ye=!1;return dt.on("data",_t),Bt(me,"error",Mt),me.once("close",Et),me.once("finish",Ht),me.emit("pipe",dt),gt.flowing||(We("pipe resume"),dt.resume()),me},bt.prototype.unpipe=function(me){var le=this._readableState,Ee={hasUnpiped:!1};if(le.pipesCount===0)return this;if(le.pipesCount===1)return me&&me!==le.pipes?this:(me||(me=le.pipes),le.pipes=null,le.pipesCount=0,le.flowing=!1,me&&me.emit("unpipe",this,Ee),this);if(!me){var ce=le.pipes,he=le.pipesCount;le.pipes=null,le.pipesCount=0,le.flowing=!1;for(var _t=0;_t<he;_t++)ce[_t].emit("unpipe",this,Ee);return this}var Mt=Ne(le.pipes,me);return Mt===-1?this:(le.pipes.splice(Mt,1),le.pipesCount-=1,le.pipesCount===1&&(le.pipes=le.pipes[0]),me.emit("unpipe",this,Ee),this)},bt.prototype.on=function(me,le){var Ee=fe.prototype.on.call(this,me,le);if(me==="data")this._readableState.flowing!==!1&&this.resume();else if(me==="readable"){var ce=this._readableState;ce.endEmitted||ce.readableListening||(ce.readableListening=ce.needReadable=!0,ce.emittedReadable=!1,ce.reading?ce.length&&ut(this):de.nextTick(Dt,this))}return Ee},bt.prototype.addListener=bt.prototype.on,bt.prototype.resume=function(){var me=this._readableState;return me.flowing||(We("resume"),me.flowing=!0,Ut(this,me)),this},bt.prototype.pause=function(){return We("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(We("pause"),this._readableState.flowing=!1,this.emit("pause")),this},bt.prototype.wrap=function(me){var le=this,Ee=this._readableState,ce=!1;me.on("end",function(){if(We("wrapped end"),Ee.decoder&&!Ee.ended){var Mt=Ee.decoder.end();Mt&&Mt.length&&le.push(Mt)}le.push(null)}),me.on("data",function(Mt){We("wrapped data"),Ee.decoder&&(Mt=Ee.decoder.write(Mt)),(!Ee.objectMode||Mt!=null)&&(Ee.objectMode||Mt&&Mt.length)&&(le.push(Mt)||(ce=!0,me.pause()))});for(var he in me)this[he]===void 0&&typeof me[he]=="function"&&(this[he]=function(Mt){return function(){return me[Mt].apply(me,arguments)}}(he));for(var _t=0;_t<je.length;_t++)me.on(je[_t],this.emit.bind(this,je[_t]));return this._read=function(Mt){We("wrapped _read",Mt),ce&&(ce=!1,me.resume())},this},Object.defineProperty(bt.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),bt._fromList=$t}).call(this,yt("_process"),typeof Gt.g!="undefined"?Gt.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(yt,Vt,Yt){"use strict";function Nt(bt,Tt){var It=this._transformState;It.transforming=!1;var vt=It.writecb;if(!vt)return this.emit("error",new Error("write callback called multiple times"));It.writechunk=null,It.writecb=null,Tt!=null&&this.push(Tt),vt(bt);var et=this._readableState;et.reading=!1,(et.needReadable||et.length<et.highWaterMark)&&this._read(et.highWaterMark)}function Wt(bt){if(!(this instanceof Wt))return new Wt(bt);Bt.call(this,bt),this._transformState={afterTransform:Nt.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,bt&&(typeof bt.transform=="function"&&(this._transform=bt.transform),typeof bt.flush=="function"&&(this._flush=bt.flush)),this.on("prefinish",xt)}function xt(){var bt=this;typeof this._flush=="function"?this._flush(function(Tt,It){Ot(bt,Tt,It)}):Ot(this,null,null)}function Ot(bt,Tt,It){if(Tt)return bt.emit("error",Tt);if(It!=null&&bt.push(It),bt._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(bt._transformState.transforming)throw new Error("Calling transform done when still transforming");return bt.push(null)}Vt.exports=Wt;var Bt=yt("./_stream_duplex"),At=yt("core-util-is");At.inherits=yt("inherits"),At.inherits(Wt,Bt),Wt.prototype.push=function(bt,Tt){return this._transformState.needTransform=!1,Bt.prototype.push.call(this,bt,Tt)},Wt.prototype._transform=function(bt,Tt,It){throw new Error("_transform() is not implemented")},Wt.prototype._write=function(bt,Tt,It){var vt=this._transformState;if(vt.writecb=It,vt.writechunk=bt,vt.writeencoding=Tt,!vt.transforming){var et=this._readableState;(vt.needTransform||et.needReadable||et.length<et.highWaterMark)&&this._read(et.highWaterMark)}},Wt.prototype._read=function(bt){var Tt=this._transformState;Tt.writechunk!==null&&Tt.writecb&&!Tt.transforming?(Tt.transforming=!0,this._transform(Tt.writechunk,Tt.writeencoding,Tt.afterTransform)):Tt.needTransform=!0},Wt.prototype._destroy=function(bt,Tt){var It=this;Bt.prototype._destroy.call(this,bt,function(vt){Tt(vt),It.emit("close")})}},{"./_stream_duplex":179,"core-util-is":153,inherits:162}],183:[function(yt,Vt,Yt){(function(Nt,Wt){"use strict";function xt(Ie){return Ie&&Ie.__esModule?Ie:{default:Ie}}function Ot(Ie){var je=this;this.next=null,this.entry=null,this.finish=function(){ue(je,Ie)}}function Bt(Ie){return en.from(Ie)}function At(Ie){return en.isBuffer(Ie)||Ie instanceof We}function bt(){}function Tt(Ie,je){ae=ae||yt("./_stream_duplex"),Ie=Ie||{};var $e=je instanceof ae;this.objectMode=!!Ie.objectMode,$e&&(this.objectMode=this.objectMode||!!Ie.writableObjectMode);var me=Ie.highWaterMark,le=Ie.writableHighWaterMark,Ee=this.objectMode?16:16384;this.highWaterMark=me||me===0?me:$e&&(le||le===0)?le:Ee,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 ce=Ie.decodeStrings===!1;this.decodeStrings=!ce,this.defaultEncoding=Ie.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(he){pt(je,he)},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(Ie){if(ae=ae||yt("./_stream_duplex"),!(ke.call(It,this)||this instanceof ae))return new It(Ie);this._writableState=new Tt(Ie,this),this.writable=!0,Ie&&(typeof Ie.write=="function"&&(this._write=Ie.write),typeof Ie.writev=="function"&&(this._writev=Ie.writev),typeof Ie.destroy=="function"&&(this._destroy=Ie.destroy),typeof Ie.final=="function"&&(this._final=Ie.final)),Oe.call(this)}function vt(Ie,je){var $e=new Error("write after end");Ie.emit("error",$e),ee.nextTick(je,$e)}function et(Ie,je,$e,me){var le=!0,Ee=!1;return $e===null?Ee=new TypeError("May not write null values to stream"):typeof $e=="string"||$e===void 0||je.objectMode||(Ee=new TypeError("Invalid non-string/buffer chunk")),Ee&&(Ie.emit("error",Ee),ee.nextTick(me,Ee),le=!1),le}function tt(Ie,je,$e){return Ie.objectMode||Ie.decodeStrings===!1||typeof je!="string"||(je=en.from(je,$e)),je}function st(Ie,je,$e,me,le,Ee){if(!$e){var ce=tt(je,me,le);me!==ce&&($e=!0,le="buffer",me=ce)}var he=je.objectMode?1:me.length;je.length+=he;var _t=je.length<je.highWaterMark;if(_t||(je.needDrain=!0),je.writing||je.corked){var Mt=je.lastBufferedRequest;je.lastBufferedRequest={chunk:me,encoding:le,isBuf:$e,callback:Ee,next:null},Mt?Mt.next=je.lastBufferedRequest:je.bufferedRequest=je.lastBufferedRequest,je.bufferedRequestCount+=1}else rt(Ie,je,!1,he,me,le,Ee);return _t}function rt(Ie,je,$e,me,le,Ee,ce){je.writelen=me,je.writecb=ce,je.writing=!0,je.sync=!0,$e?Ie._writev(le,je.onwrite):Ie._write(le,Ee,je.onwrite),je.sync=!1}function ut(Ie,je,$e,me,le){--je.pendingcb,$e?(ee.nextTick(le,me),ee.nextTick($t,Ie,je),Ie._writableState.errorEmitted=!0,Ie.emit("error",me)):(le(me),Ie._writableState.errorEmitted=!0,Ie.emit("error",me),$t(Ie,je))}function ct(Ie){Ie.writing=!1,Ie.writecb=null,Ie.length-=Ie.writelen,Ie.writelen=0}function pt(Ie,je){var $e=Ie._writableState,me=$e.sync,le=$e.writecb;if(ct($e),je)ut(Ie,$e,me,je,le);else{var Ee=Ut($e);Ee||$e.corked||$e.bufferProcessing||!$e.bufferedRequest||Dt(Ie,$e),me?fe(mt,Ie,$e,Ee,le):mt(Ie,$e,Ee,le)}}function mt(Ie,je,$e,me){$e||Ct(Ie,je),je.pendingcb--,me(),$t(Ie,je)}function Ct(Ie,je){je.length===0&&je.needDrain&&(je.needDrain=!1,Ie.emit("drain"))}function Dt(Ie,je){je.bufferProcessing=!0;var $e=je.bufferedRequest;if(Ie._writev&&$e&&$e.next){var me=je.bufferedRequestCount,le=new Array(me),Ee=je.corkedRequestsFree;Ee.entry=$e;for(var ce=0,he=!0;$e;)le[ce]=$e,$e.isBuf||(he=!1),$e=$e.next,ce+=1;le.allBuffers=he,rt(Ie,je,!0,je.length,le,"",Ee.finish),je.pendingcb++,je.lastBufferedRequest=null,Ee.next?(je.corkedRequestsFree=Ee.next,Ee.next=null):je.corkedRequestsFree=new Ot(je),je.bufferedRequestCount=0}else{for(;$e;){var _t=$e.chunk,Mt=$e.encoding,Et=$e.callback;if(rt(Ie,je,!1,je.objectMode?1:_t.length,_t,Mt,Et),$e=$e.next,je.bufferedRequestCount--,je.writing)break}$e===null&&(je.lastBufferedRequest=null)}je.bufferedRequest=$e,je.bufferProcessing=!1}function Ut(Ie){return Ie.ending&&Ie.length===0&&Ie.bufferedRequest===null&&!Ie.finished&&!Ie.writing}function Ft(Ie,je){Ie._final(function($e){je.pendingcb--,$e&&Ie.emit("error",$e),je.prefinished=!0,Ie.emit("prefinish"),$t(Ie,je)})}function Qt(Ie,je){je.prefinished||je.finalCalled||(typeof Ie._final=="function"?(je.pendingcb++,je.finalCalled=!0,ee.nextTick(Ft,Ie,je)):(je.prefinished=!0,Ie.emit("prefinish")))}function $t(Ie,je){var $e=Ut(je);return $e&&(Qt(Ie,je),je.pendingcb===0&&(je.finished=!0,Ie.emit("finish"))),$e}function Kt(Ie,je,$e){je.ending=!0,$t(Ie,je),$e&&(je.finished?ee.nextTick($e):Ie.once("finish",$e)),je.ended=!0,Ie.writable=!1}function ue(Ie,je,$e){var me=Ie.entry;for(Ie.entry=null;me;){var le=me.callback;je.pendingcb--,le($e),me=me.next}je.corkedRequestsFree?je.corkedRequestsFree.next=Ie:je.corkedRequestsFree=Ie}var oe=yt("babel-runtime/core-js/object/define-property"),we=xt(oe),Se=yt("babel-runtime/core-js/symbol/has-instance"),Ne=xt(Se),pe=yt("babel-runtime/core-js/symbol"),Ue=xt(pe),de=yt("babel-runtime/core-js/set-immediate"),Jt=xt(de),ee=yt("process-nextick-args");Vt.exports=It;var ae,fe=!Nt.browser&&["v0.10","v0.9."].indexOf(Nt.version.slice(0,5))>-1?Jt.default:ee.nextTick;It.WritableState=Tt;var se=yt("core-util-is");se.inherits=yt("inherits");var De={deprecate:yt("util-deprecate")},Oe=yt("./internal/streams/stream"),en=yt("safe-buffer").Buffer,We=Wt.Uint8Array||function(){},rn=yt("./internal/streams/destroy");se.inherits(It,Oe),Tt.prototype.getBuffer=function(){for(var Ie=this.bufferedRequest,je=[];Ie;)je.push(Ie),Ie=Ie.next;return je},function(){try{Object.defineProperty(Tt.prototype,"buffer",{get:De.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Ie){}}();var ke;typeof Ue.default=="function"&&Ne.default&&typeof Function.prototype[Ne.default]=="function"?(ke=Function.prototype[Ne.default],(0,we.default)(It,Ne.default,{value:function(Ie){return!!ke.call(this,Ie)||this===It&&Ie&&Ie._writableState instanceof Tt}})):ke=function(Ie){return Ie instanceof this},It.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},It.prototype.write=function(Ie,je,$e){var me=this._writableState,le=!1,Ee=!me.objectMode&&At(Ie);return Ee&&!en.isBuffer(Ie)&&(Ie=Bt(Ie)),typeof je=="function"&&($e=je,je=null),Ee?je="buffer":je||(je=me.defaultEncoding),typeof $e!="function"&&($e=bt),me.ended?vt(this,$e):(Ee||et(this,me,Ie,$e))&&(me.pendingcb++,le=st(this,me,Ee,Ie,je,$e)),le},It.prototype.cork=function(){this._writableState.corked++},It.prototype.uncork=function(){var Ie=this._writableState;Ie.corked&&(Ie.corked--,Ie.writing||Ie.corked||Ie.finished||Ie.bufferProcessing||!Ie.bufferedRequest||Dt(this,Ie))},It.prototype.setDefaultEncoding=function(Ie){if(typeof Ie=="string"&&(Ie=Ie.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Ie+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Ie);return this._writableState.defaultEncoding=Ie,this},Object.defineProperty(It.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),It.prototype._write=function(Ie,je,$e){$e(new Error("_write() is not implemented"))},It.prototype._writev=null,It.prototype.end=function(Ie,je,$e){var me=this._writableState;typeof Ie=="function"?($e=Ie,Ie=null,je=null):typeof je=="function"&&($e=je,je=null),Ie!=null&&this.write(Ie,je),me.corked&&(me.corked=1,this.uncork()),me.ending||me.finished||Kt(this,me,$e)},Object.defineProperty(It.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(Ie){this._writableState&&(this._writableState.destroyed=Ie)}}),It.prototype.destroy=rn.destroy,It.prototype._undestroy=rn.undestroy,It.prototype._destroy=function(Ie,je){this.end(),je(Ie)}}).call(this,yt("_process"),typeof Gt.g!="undefined"?Gt.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(yt,Vt,Yt){"use strict";function Nt(Bt,At){if(!(Bt instanceof At))throw new TypeError("Cannot call a class as a function")}function Wt(Bt,At,bt){Bt.copy(At,bt)}var xt=yt("safe-buffer").Buffer,Ot=yt("util");Vt.exports=function(){function Bt(){Nt(this,Bt),this.head=null,this.tail=null,this.length=0}return Bt.prototype.push=function(At){var bt={data:At,next:null};this.length>0?this.tail.next=bt:this.head=bt,this.tail=bt,++this.length},Bt.prototype.unshift=function(At){var bt={data:At,next:this.head};this.length===0&&(this.tail=bt),this.head=bt,++this.length},Bt.prototype.shift=function(){if(this.length!==0){var At=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,At}},Bt.prototype.clear=function(){this.head=this.tail=null,this.length=0},Bt.prototype.join=function(At){if(this.length===0)return"";for(var bt=this.head,Tt=""+bt.data;bt=bt.next;)Tt+=At+bt.data;return Tt},Bt.prototype.concat=function(At){if(this.length===0)return xt.alloc(0);if(this.length===1)return this.head.data;for(var bt=xt.allocUnsafe(At>>>0),Tt=this.head,It=0;Tt;)Wt(Tt.data,bt,It),It+=Tt.data.length,Tt=Tt.next;return bt},Bt}(),Ot&&Ot.inspect&&Ot.inspect.custom&&(Vt.exports.prototype[Ot.inspect.custom]=function(){var Bt=Ot.inspect({length:this.length});return this.constructor.name+" "+Bt})},{"safe-buffer":193,util:36}],185:[function(yt,Vt,Yt){"use strict";function Nt(Bt,At){var bt=this,Tt=this._readableState&&this._readableState.destroyed,It=this._writableState&&this._writableState.destroyed;return Tt||It?(At?At(Bt):!Bt||this._writableState&&this._writableState.errorEmitted||Ot.nextTick(xt,this,Bt),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(Bt||null,function(vt){!At&&vt?(Ot.nextTick(xt,bt,vt),bt._writableState&&(bt._writableState.errorEmitted=!0)):At&&At(vt)}),this)}function Wt(){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(Bt,At){Bt.emit("error",At)}var Ot=yt("process-nextick-args");Vt.exports={destroy:Nt,undestroy:Wt}},{"process-nextick-args":172}],186:[function(yt,Vt,Yt){"use strict";Vt.exports=yt("events").EventEmitter},{events:158}],187:[function(yt,Vt,Yt){Vt.exports=yt("./readable").PassThrough},{"./readable":188}],188:[function(yt,Vt,Yt){Yt=Vt.exports=yt("./lib/_stream_readable.js"),Yt.Stream=Yt,Yt.Readable=Yt,Yt.Writable=yt("./lib/_stream_writable.js"),Yt.Duplex=yt("./lib/_stream_duplex.js"),Yt.Transform=yt("./lib/_stream_transform.js"),Yt.PassThrough=yt("./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(yt,Vt,Yt){Vt.exports=yt("./readable").Transform},{"./readable":188}],190:[function(yt,Vt,Yt){Vt.exports=yt("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":183}],191:[function(yt,Vt,Yt){var Nt=function(){return this}()||Function("return this")(),Wt=Nt.regeneratorRuntime&&Object.getOwnPropertyNames(Nt).indexOf("regeneratorRuntime")>=0,xt=Wt&&Nt.regeneratorRuntime;if(Nt.regeneratorRuntime=void 0,Vt.exports=yt("./runtime"),Wt)Nt.regeneratorRuntime=xt;else try{delete Nt.regeneratorRuntime}catch(Ot){Nt.regeneratorRuntime=void 0}},{"./runtime":192}],192:[function(yt,Vt,Yt){(function(Nt){"use strict";function Wt(Jt,ee,ae,fe){var se=ee&&ee.prototype instanceof Ot?ee:Ot,De=Object.create(se.prototype),Oe=new st(fe||[]);return De._invoke=It(Jt,ae,Oe),De}function xt(Jt,ee,ae){try{return{type:"normal",arg:Jt.call(ee,ae)}}catch(fe){return{type:"throw",arg:fe}}}function Ot(){}function Bt(){}function At(){}function bt(Jt){["next","throw","return"].forEach(function(ee){Jt[ee]=function(ae){return this._invoke(ee,ae)}})}function Tt(Jt){function ee(se,De,Oe,en){var We=xt(Jt[se],Jt,De);if(We.type!=="throw"){var rn=We.arg,ke=rn.value;return ke&&typeof ke=="object"&&mt.call(ke,"__await")?Promise.resolve(ke.__await).then(function(Ie){ee("next",Ie,Oe,en)},function(Ie){ee("throw",Ie,Oe,en)}):Promise.resolve(ke).then(function(Ie){rn.value=Ie,Oe(rn)},en)}en(We.arg)}function ae(se,De){function Oe(){return new Promise(function(en,We){ee(se,De,en,We)})}return fe=fe?fe.then(Oe,Oe):Oe()}var fe;this._invoke=ae}function It(Jt,ee,ae){var fe=Kt;return function(se,De){if(fe===oe)throw new Error("Generator is already running");if(fe===we){if(se==="throw")throw De;return ut()}for(ae.method=se,ae.arg=De;;){var Oe=ae.delegate;if(Oe){var en=vt(Oe,ae);if(en){if(en===Se)continue;return en}}if(ae.method==="next")ae.sent=ae._sent=ae.arg;else if(ae.method==="throw"){if(fe===Kt)throw fe=we,ae.arg;ae.dispatchException(ae.arg)}else ae.method==="return"&&ae.abrupt("return",ae.arg);fe=oe;var We=xt(Jt,ee,ae);if(We.type==="normal"){if(fe=ae.done?we:ue,We.arg===Se)continue;return{value:We.arg,done:ae.done}}We.type==="throw"&&(fe=we,ae.method="throw",ae.arg=We.arg)}}}function vt(Jt,ee){var ae=Jt.iterator[ee.method];if(ae===ct){if(ee.delegate=null,ee.method==="throw"){if(Jt.iterator.return&&(ee.method="return",ee.arg=ct,vt(Jt,ee),ee.method==="throw"))return Se;ee.method="throw",ee.arg=new TypeError("The iterator does not provide a 'throw' method")}return Se}var fe=xt(ae,Jt.iterator,ee.arg);if(fe.type==="throw")return ee.method="throw",ee.arg=fe.arg,ee.delegate=null,Se;var se=fe.arg;return se?se.done?(ee[Jt.resultName]=se.value,ee.next=Jt.nextLoc,ee.method!=="return"&&(ee.method="next",ee.arg=ct),ee.delegate=null,Se):se:(ee.method="throw",ee.arg=new TypeError("iterator result is not an object"),ee.delegate=null,Se)}function et(Jt){var ee={tryLoc:Jt[0]};1 in Jt&&(ee.catchLoc=Jt[1]),2 in Jt&&(ee.finallyLoc=Jt[2],ee.afterLoc=Jt[3]),this.tryEntries.push(ee)}function tt(Jt){var ee=Jt.completion||{};ee.type="normal",delete ee.arg,Jt.completion=ee}function st(Jt){this.tryEntries=[{tryLoc:"root"}],Jt.forEach(et,this),this.reset(!0)}function rt(Jt){if(Jt){var ee=Jt[Dt];if(ee)return ee.call(Jt);if(typeof Jt.next=="function")return Jt;if(!isNaN(Jt.length)){var ae=-1,fe=function se(){for(;++ae<Jt.length;)if(mt.call(Jt,ae))return se.value=Jt[ae],se.done=!1,se;return se.value=ct,se.done=!0,se};return fe.next=fe}}return{next:ut}}function ut(){return{value:ct,done:!0}}var ct,pt=Object.prototype,mt=pt.hasOwnProperty,Ct=typeof Symbol=="function"?Symbol:{},Dt=Ct.iterator||"@@iterator",Ut=Ct.asyncIterator||"@@asyncIterator",Ft=Ct.toStringTag||"@@toStringTag",Qt=typeof Vt=="object",$t=Nt.regeneratorRuntime;if($t)return void(Qt&&(Vt.exports=$t));$t=Nt.regeneratorRuntime=Qt?Vt.exports:{},$t.wrap=Wt;var Kt="suspendedStart",ue="suspendedYield",oe="executing",we="completed",Se={},Ne={};Ne[Dt]=function(){return this};var pe=Object.getPrototypeOf,Ue=pe&&pe(pe(rt([])));Ue&&Ue!==pt&&mt.call(Ue,Dt)&&(Ne=Ue);var de=At.prototype=Ot.prototype=Object.create(Ne);Bt.prototype=de.constructor=At,At.constructor=Bt,At[Ft]=Bt.displayName="GeneratorFunction",$t.isGeneratorFunction=function(Jt){var ee=typeof Jt=="function"&&Jt.constructor;return!!ee&&(ee===Bt||(ee.displayName||ee.name)==="GeneratorFunction")},$t.mark=function(Jt){return Object.setPrototypeOf?Object.setPrototypeOf(Jt,At):(Jt.__proto__=At,Ft in Jt||(Jt[Ft]="GeneratorFunction")),Jt.prototype=Object.create(de),Jt},$t.awrap=function(Jt){return{__await:Jt}},bt(Tt.prototype),Tt.prototype[Ut]=function(){return this},$t.AsyncIterator=Tt,$t.async=function(Jt,ee,ae,fe){var se=new Tt(Wt(Jt,ee,ae,fe));return $t.isGeneratorFunction(ee)?se:se.next().then(function(De){return De.done?De.value:se.next()})},bt(de),de[Ft]="Generator",de[Dt]=function(){return this},de.toString=function(){return"[object Generator]"},$t.keys=function(Jt){var ee=[];for(var ae in Jt)ee.push(ae);return ee.reverse(),function fe(){for(;ee.length;){var se=ee.pop();if(se in Jt)return fe.value=se,fe.done=!1,fe}return fe.done=!0,fe}},$t.values=rt,st.prototype={constructor:st,reset:function(Jt){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),!Jt)for(var ee in this)ee.charAt(0)==="t"&&mt.call(this,ee)&&!isNaN(+ee.slice(1))&&(this[ee]=ct)},stop:function(){this.done=!0;var Jt=this.tryEntries[0],ee=Jt.completion;if(ee.type==="throw")throw ee.arg;return this.rval},dispatchException:function(Jt){function ee(We,rn){return De.type="throw",De.arg=Jt,ae.next=We,rn&&(ae.method="next",ae.arg=ct),!!rn}if(this.done)throw Jt;for(var ae=this,fe=this.tryEntries.length-1;fe>=0;--fe){var se=this.tryEntries[fe],De=se.completion;if(se.tryLoc==="root")return ee("end");if(se.tryLoc<=this.prev){var Oe=mt.call(se,"catchLoc"),en=mt.call(se,"finallyLoc");if(Oe&&en){if(this.prev<se.catchLoc)return ee(se.catchLoc,!0);if(this.prev<se.finallyLoc)return ee(se.finallyLoc)}else if(Oe){if(this.prev<se.catchLoc)return ee(se.catchLoc,!0)}else{if(!en)throw new Error("try statement without catch or finally");if(this.prev<se.finallyLoc)return ee(se.finallyLoc)}}}},abrupt:function(Jt,ee){for(var ae=this.tryEntries.length-1;ae>=0;--ae){var fe=this.tryEntries[ae];if(fe.tryLoc<=this.prev&&mt.call(fe,"finallyLoc")&&this.prev<fe.finallyLoc){var se=fe;break}}se&&(Jt==="break"||Jt==="continue")&&se.tryLoc<=ee&&ee<=se.finallyLoc&&(se=null);var De=se?se.completion:{};return De.type=Jt,De.arg=ee,se?(this.method="next",this.next=se.finallyLoc,Se):this.complete(De)},complete:function(Jt,ee){if(Jt.type==="throw")throw Jt.arg;return Jt.type==="break"||Jt.type==="continue"?this.next=Jt.arg:Jt.type==="return"?(this.rval=this.arg=Jt.arg,this.method="return",this.next="end"):Jt.type==="normal"&&ee&&(this.next=ee),Se},finish:function(Jt){for(var ee=this.tryEntries.length-1;ee>=0;--ee){var ae=this.tryEntries[ee];if(ae.finallyLoc===Jt)return this.complete(ae.completion,ae.afterLoc),tt(ae),Se}},catch:function(Jt){for(var ee=this.tryEntries.length-1;ee>=0;--ee){var ae=this.tryEntries[ee];if(ae.tryLoc===Jt){var fe=ae.completion;if(fe.type==="throw"){var se=fe.arg;tt(ae)}return se}}throw new Error("illegal catch attempt")},delegateYield:function(Jt,ee,ae){return this.delegate={iterator:rt(Jt),resultName:ee,nextLoc:ae},this.method==="next"&&(this.arg=ct),Se}}})(function(){return this}()||Function("return this")())},{}],193:[function(yt,Vt,Yt){function Nt(Bt,At){for(var bt in Bt)At[bt]=Bt[bt]}function Wt(Bt,At,bt){return Ot(Bt,At,bt)}var xt=yt("buffer"),Ot=xt.Buffer;Ot.from&&Ot.alloc&&Ot.allocUnsafe&&Ot.allocUnsafeSlow?Vt.exports=xt:(Nt(xt,Yt),Yt.Buffer=Wt),Nt(Ot,Wt),Wt.from=function(Bt,At,bt){if(typeof Bt=="number")throw new TypeError("Argument must not be a number");return Ot(Bt,At,bt)},Wt.alloc=function(Bt,At,bt){if(typeof Bt!="number")throw new TypeError("Argument must be a number");var Tt=Ot(Bt);return At!==void 0?typeof bt=="string"?Tt.fill(At,bt):Tt.fill(At):Tt.fill(0),Tt},Wt.allocUnsafe=function(Bt){if(typeof Bt!="number")throw new TypeError("Argument must be a number");return Ot(Bt)},Wt.allocUnsafeSlow=function(Bt){if(typeof Bt!="number")throw new TypeError("Argument must be a number");return xt.SlowBuffer(Bt)}},{buffer:38}],194:[function(yt,Vt,Yt){(function(Nt){"use strict";function Wt(ut){return ut&&ut.__esModule?ut:{default:ut}}var xt=yt("babel-runtime/core-js/string/from-code-point"),Ot=Wt(xt),Bt=yt("babel-runtime/core-js/json/stringify"),At=Wt(Bt),bt=yt("babel-runtime/helpers/typeof"),Tt=Wt(bt),It=yt("babel-runtime/core-js/object/define-property"),vt=Wt(It),et=yt("babel-runtime/core-js/object/keys"),tt=Wt(et),st=yt("babel-runtime/core-js/object/create"),rt=Wt(st);(function(ut){function ct(Pt,dt){if(!(this instanceof ct))return new ct(Pt,dt);var gt=this;mt(gt),gt.q=gt.c="",gt.bufferCheckPosition=ut.MAX_BUFFER_LENGTH,gt.opt=dt||{},gt.opt.lowercase=gt.opt.lowercase||gt.opt.lowercasetags,gt.looseCase=gt.opt.lowercase?"toLowerCase":"toUpperCase",gt.tags=[],gt.closed=gt.closedRoot=gt.sawRoot=!1,gt.tag=gt.error=null,gt.strict=!!Pt,gt.noscript=!(!Pt&&!gt.opt.noscript),gt.state=Et.BEGIN,gt.strictEntities=gt.opt.strictEntities,gt.ENTITIES=gt.strictEntities?(0,rt.default)(ut.XML_ENTITIES):(0,rt.default)(ut.ENTITIES),gt.attribList=[],gt.opt.xmlns&&(gt.ns=(0,rt.default)(Ee)),gt.trackPosition=gt.opt.position!==!1,gt.trackPosition&&(gt.position=gt.line=gt.column=0),oe(gt,"onready")}function pt(Pt){for(var dt=Math.max(ut.MAX_BUFFER_LENGTH,10),gt=0,zt=0,re=rn.length;zt<re;zt++){var Zt=Pt[rn[zt]].length;if(Zt>dt)switch(rn[zt]){case"textNode":Se(Pt);break;case"cdata":we(Pt,"oncdata",Pt.cdata),Pt.cdata="";break;case"script":we(Pt,"onscript",Pt.script),Pt.script="";break;default:pe(Pt,"Max buffer length exceeded: "+rn[zt])}gt=Math.max(gt,Zt)}var ye=ut.MAX_BUFFER_LENGTH-gt;Pt.bufferCheckPosition=ye+Pt.position}function mt(Pt){for(var dt=0,gt=rn.length;dt<gt;dt++)Pt[rn[dt]]=""}function Ct(Pt){Se(Pt),Pt.cdata!==""&&(we(Pt,"oncdata",Pt.cdata),Pt.cdata=""),Pt.script!==""&&(we(Pt,"onscript",Pt.script),Pt.script="")}function Dt(Pt,dt){return new Ut(Pt,dt)}function Ut(Pt,dt){if(!(this instanceof Ut))return new Ut(Pt,dt);ke.apply(this),this._parser=new ct(Pt,dt),this.writable=!0,this.readable=!0;var gt=this;this._parser.onend=function(){gt.emit("end")},this._parser.onerror=function(zt){gt.emit("error",zt),gt._parser.error=null},this._decoder=null,Ie.forEach(function(zt){(0,vt.default)(gt,"on"+zt,{get:function(){return gt._parser["on"+zt]},set:function(re){if(!re)return gt.removeAllListeners(zt),gt._parser["on"+zt]=re,re;gt.on(zt,re)},enumerable:!0,configurable:!1})})}function Ft(Pt){return Pt===" "||Pt===`
|
|
|
`||Pt==="\r"||Pt===" "}function Qt(Pt){return Pt==='"'||Pt==="'"}function $t(Pt){return Pt===">"||Ft(Pt)}function Kt(Pt,dt){return Pt.test(dt)}function ue(Pt,dt){return!Kt(Pt,dt)}function oe(Pt,dt,gt){Pt[dt]&&Pt[dt](gt)}function we(Pt,dt,gt){Pt.textNode&&Se(Pt),oe(Pt,dt,gt)}function Se(Pt){Pt.textNode=Ne(Pt.opt,Pt.textNode),Pt.textNode&&oe(Pt,"ontext",Pt.textNode),Pt.textNode=""}function Ne(Pt,dt){return Pt.trim&&(dt=dt.trim()),Pt.normalize&&(dt=dt.replace(/\s+/g," ")),dt}function pe(Pt,dt){return Se(Pt),Pt.trackPosition&&(dt+=`
|
|
|
Line: `+Pt.line+`
|
|
|
Column: `+Pt.column+`
|
|
|
Char: `+Pt.c),dt=new Error(dt),Pt.error=dt,oe(Pt,"onerror",dt),Pt}function Ue(Pt){return Pt.sawRoot&&!Pt.closedRoot&&de(Pt,"Unclosed root tag"),Pt.state!==Et.BEGIN&&Pt.state!==Et.BEGIN_WHITESPACE&&Pt.state!==Et.TEXT&&pe(Pt,"Unexpected end"),Se(Pt),Pt.c="",Pt.closed=!0,oe(Pt,"onend"),ct.call(Pt,Pt.strict,Pt.opt),Pt}function de(Pt,dt){if((Pt===void 0?"undefined":(0,Tt.default)(Pt))!=="object"||!(Pt instanceof ct))throw new Error("bad call to strictFail");Pt.strict&&pe(Pt,dt)}function Jt(Pt){Pt.strict||(Pt.tagName=Pt.tagName[Pt.looseCase]());var dt=Pt.tags[Pt.tags.length-1]||Pt,gt=Pt.tag={name:Pt.tagName,attributes:{}};Pt.opt.xmlns&&(gt.ns=dt.ns),Pt.attribList.length=0,we(Pt,"onopentagstart",gt)}function ee(Pt,dt){var gt=Pt.indexOf(":"),zt=gt<0?["",Pt]:Pt.split(":"),re=zt[0],Zt=zt[1];return dt&&Pt==="xmlns"&&(re="xmlns",Zt=""),{prefix:re,local:Zt}}function ae(Pt){if(Pt.strict||(Pt.attribName=Pt.attribName[Pt.looseCase]()),Pt.attribList.indexOf(Pt.attribName)!==-1||Pt.tag.attributes.hasOwnProperty(Pt.attribName))return void(Pt.attribName=Pt.attribValue="");if(Pt.opt.xmlns){var dt=ee(Pt.attribName,!0),gt=dt.prefix,zt=dt.local;if(gt==="xmlns")if(zt==="xml"&&Pt.attribValue!==me)de(Pt,"xml: prefix must be bound to "+me+`
|
|
|
Actual: `+Pt.attribValue);else if(zt==="xmlns"&&Pt.attribValue!==le)de(Pt,"xmlns: prefix must be bound to "+le+`
|
|
|
Actual: `+Pt.attribValue);else{var re=Pt.tag,Zt=Pt.tags[Pt.tags.length-1]||Pt;re.ns===Zt.ns&&(re.ns=(0,rt.default)(Zt.ns)),re.ns[zt]=Pt.attribValue}Pt.attribList.push([Pt.attribName,Pt.attribValue])}else Pt.tag.attributes[Pt.attribName]=Pt.attribValue,we(Pt,"onattribute",{name:Pt.attribName,value:Pt.attribValue});Pt.attribName=Pt.attribValue=""}function fe(Pt,dt){if(Pt.opt.xmlns){var gt=Pt.tag,zt=ee(Pt.tagName);gt.prefix=zt.prefix,gt.local=zt.local,gt.uri=gt.ns[zt.prefix]||"",gt.prefix&&!gt.uri&&(de(Pt,"Unbound namespace prefix: "+(0,At.default)(Pt.tagName)),gt.uri=zt.prefix);var re=Pt.tags[Pt.tags.length-1]||Pt;gt.ns&&re.ns!==gt.ns&&(0,tt.default)(gt.ns).forEach(function(Yn){we(Pt,"onopennamespace",{prefix:Yn,uri:gt.ns[Yn]})});for(var Zt=0,ye=Pt.attribList.length;Zt<ye;Zt++){var Ye=Pt.attribList[Zt],sn=Ye[0],Le=Ye[1],Re=ee(sn,!0),hn=Re.prefix,wn=Re.local,kn=hn===""?"":gt.ns[hn]||"",Rn={name:sn,value:Le,prefix:hn,local:wn,uri:kn};hn&&hn!=="xmlns"&&!kn&&(de(Pt,"Unbound namespace prefix: "+(0,At.default)(hn)),Rn.uri=hn),Pt.tag.attributes[sn]=Rn,we(Pt,"onattribute",Rn)}Pt.attribList.length=0}Pt.tag.isSelfClosing=!!dt,Pt.sawRoot=!0,Pt.tags.push(Pt.tag),we(Pt,"onopentag",Pt.tag),dt||(Pt.noscript||Pt.tagName.toLowerCase()!=="script"?Pt.state=Et.TEXT:Pt.state=Et.SCRIPT,Pt.tag=null,Pt.tagName=""),Pt.attribName=Pt.attribValue="",Pt.attribList.length=0}function se(Pt){if(!Pt.tagName)return de(Pt,"Weird empty close tag."),Pt.textNode+="</>",void(Pt.state=Et.TEXT);if(Pt.script){if(Pt.tagName!=="script")return Pt.script+="</"+Pt.tagName+">",Pt.tagName="",void(Pt.state=Et.SCRIPT);we(Pt,"onscript",Pt.script),Pt.script=""}var dt=Pt.tags.length,gt=Pt.tagName;Pt.strict||(gt=gt[Pt.looseCase]());for(var zt=gt;dt--&&Pt.tags[dt].name!==zt;)de(Pt,"Unexpected close tag");if(dt<0)return de(Pt,"Unmatched closing tag: "+Pt.tagName),Pt.textNode+="</"+Pt.tagName+">",void(Pt.state=Et.TEXT);Pt.tagName=gt;for(var re=Pt.tags.length;re-- >dt;){var Zt=Pt.tag=Pt.tags.pop();Pt.tagName=Pt.tag.name,we(Pt,"onclosetag",Pt.tagName);var ye={};for(var Ye in Zt.ns)ye[Ye]=Zt.ns[Ye];var sn=Pt.tags[Pt.tags.length-1]||Pt;Pt.opt.xmlns&&Zt.ns!==sn.ns&&(0,tt.default)(Zt.ns).forEach(function(Le){var Re=Zt.ns[Le];we(Pt,"onclosenamespace",{prefix:Le,uri:Re})})}dt===0&&(Pt.closedRoot=!0),Pt.tagName=Pt.attribValue=Pt.attribName="",Pt.attribList.length=0,Pt.state=Et.TEXT}function De(Pt){var dt,gt=Pt.entity,zt=gt.toLowerCase(),re="";return Pt.ENTITIES[gt]?Pt.ENTITIES[gt]:Pt.ENTITIES[zt]?Pt.ENTITIES[zt]:(gt=zt,gt.charAt(0)==="#"&&(gt.charAt(1)==="x"?(gt=gt.slice(2),dt=parseInt(gt,16),re=dt.toString(16)):(gt=gt.slice(1),dt=parseInt(gt,10),re=dt.toString(10))),gt=gt.replace(/^0+/,""),isNaN(dt)||re.toLowerCase()!==gt?(de(Pt,"Invalid character entity"),"&"+Pt.entity+";"):(0,Ot.default)(dt))}function Oe(Pt,dt){dt==="<"?(Pt.state=Et.OPEN_WAKA,Pt.startTagPosition=Pt.position):Ft(dt)||(de(Pt,"Non-whitespace before first tag."),Pt.textNode=dt,Pt.state=Et.TEXT)}function en(Pt,dt){var gt="";return dt<Pt.length&&(gt=Pt.charAt(dt)),gt}function We(Pt){var dt=this;if(this.error)throw this.error;if(dt.closed)return pe(dt,"Cannot write after close. Assign an onready handler.");if(Pt===null)return Ue(dt);(Pt===void 0?"undefined":(0,Tt.default)(Pt))==="object"&&(Pt=Pt.toString());for(var gt=0,zt="";zt=en(Pt,gt++),dt.c=zt,!!zt;)switch(dt.trackPosition&&(dt.position++,zt===`
|
|
|
`?(dt.line++,dt.column=0):dt.column++),dt.state){case Et.BEGIN:if(dt.state=Et.BEGIN_WHITESPACE,zt==="\uFEFF")continue;Oe(dt,zt);continue;case Et.BEGIN_WHITESPACE:Oe(dt,zt);continue;case Et.TEXT:if(dt.sawRoot&&!dt.closedRoot){for(var re=gt-1;zt&&zt!=="<"&&zt!=="&";)(zt=en(Pt,gt++))&&dt.trackPosition&&(dt.position++,zt===`
|
|
|
`?(dt.line++,dt.column=0):dt.column++);dt.textNode+=Pt.substring(re,gt-1)}zt!=="<"||dt.sawRoot&&dt.closedRoot&&!dt.strict?(Ft(zt)||dt.sawRoot&&!dt.closedRoot||de(dt,"Text data outside of root node."),zt==="&"?dt.state=Et.TEXT_ENTITY:dt.textNode+=zt):(dt.state=Et.OPEN_WAKA,dt.startTagPosition=dt.position);continue;case Et.SCRIPT:zt==="<"?dt.state=Et.SCRIPT_ENDING:dt.script+=zt;continue;case Et.SCRIPT_ENDING:zt==="/"?dt.state=Et.CLOSE_TAG:(dt.script+="<"+zt,dt.state=Et.SCRIPT);continue;case Et.OPEN_WAKA:if(zt==="!")dt.state=Et.SGML_DECL,dt.sgmlDecl="";else if(!Ft(zt))if(Kt(ce,zt))dt.state=Et.OPEN_TAG,dt.tagName=zt;else if(zt==="/")dt.state=Et.CLOSE_TAG,dt.tagName="";else if(zt==="?")dt.state=Et.PROC_INST,dt.procInstName=dt.procInstBody="";else{if(de(dt,"Unencoded <"),dt.startTagPosition+1<dt.position){var Zt=dt.position-dt.startTagPosition;zt=new Array(Zt).join(" ")+zt}dt.textNode+="<"+zt,dt.state=Et.TEXT}continue;case Et.SGML_DECL:(dt.sgmlDecl+zt).toUpperCase()===je?(we(dt,"onopencdata"),dt.state=Et.CDATA,dt.sgmlDecl="",dt.cdata=""):dt.sgmlDecl+zt==="--"?(dt.state=Et.COMMENT,dt.comment="",dt.sgmlDecl=""):(dt.sgmlDecl+zt).toUpperCase()===$e?(dt.state=Et.DOCTYPE,(dt.doctype||dt.sawRoot)&&de(dt,"Inappropriately located doctype declaration"),dt.doctype="",dt.sgmlDecl=""):zt===">"?(we(dt,"onsgmldeclaration",dt.sgmlDecl),dt.sgmlDecl="",dt.state=Et.TEXT):(Qt(zt)&&(dt.state=Et.SGML_DECL_QUOTED),dt.sgmlDecl+=zt);continue;case Et.SGML_DECL_QUOTED:zt===dt.q&&(dt.state=Et.SGML_DECL,dt.q=""),dt.sgmlDecl+=zt;continue;case Et.DOCTYPE:zt===">"?(dt.state=Et.TEXT,we(dt,"ondoctype",dt.doctype),dt.doctype=!0):(dt.doctype+=zt,zt==="["?dt.state=Et.DOCTYPE_DTD:Qt(zt)&&(dt.state=Et.DOCTYPE_QUOTED,dt.q=zt));continue;case Et.DOCTYPE_QUOTED:dt.doctype+=zt,zt===dt.q&&(dt.q="",dt.state=Et.DOCTYPE);continue;case Et.DOCTYPE_DTD:dt.doctype+=zt,zt==="]"?dt.state=Et.DOCTYPE:Qt(zt)&&(dt.state=Et.DOCTYPE_DTD_QUOTED,dt.q=zt);continue;case Et.DOCTYPE_DTD_QUOTED:dt.doctype+=zt,zt===dt.q&&(dt.state=Et.DOCTYPE_DTD,dt.q="");continue;case Et.COMMENT:zt==="-"?dt.state=Et.COMMENT_ENDING:dt.comment+=zt;continue;case Et.COMMENT_ENDING:zt==="-"?(dt.state=Et.COMMENT_ENDED,dt.comment=Ne(dt.opt,dt.comment),dt.comment&&we(dt,"oncomment",dt.comment),dt.comment=""):(dt.comment+="-"+zt,dt.state=Et.COMMENT);continue;case Et.COMMENT_ENDED:zt!==">"?(de(dt,"Malformed comment"),dt.comment+="--"+zt,dt.state=Et.COMMENT):dt.state=Et.TEXT;continue;case Et.CDATA:zt==="]"?dt.state=Et.CDATA_ENDING:dt.cdata+=zt;continue;case Et.CDATA_ENDING:zt==="]"?dt.state=Et.CDATA_ENDING_2:(dt.cdata+="]"+zt,dt.state=Et.CDATA);continue;case Et.CDATA_ENDING_2:zt===">"?(dt.cdata&&we(dt,"oncdata",dt.cdata),we(dt,"onclosecdata"),dt.cdata="",dt.state=Et.TEXT):zt==="]"?dt.cdata+="]":(dt.cdata+="]]"+zt,dt.state=Et.CDATA);continue;case Et.PROC_INST:zt==="?"?dt.state=Et.PROC_INST_ENDING:Ft(zt)?dt.state=Et.PROC_INST_BODY:dt.procInstName+=zt;continue;case Et.PROC_INST_BODY:if(!dt.procInstBody&&Ft(zt))continue;zt==="?"?dt.state=Et.PROC_INST_ENDING:dt.procInstBody+=zt;continue;case Et.PROC_INST_ENDING:zt===">"?(we(dt,"onprocessinginstruction",{name:dt.procInstName,body:dt.procInstBody}),dt.procInstName=dt.procInstBody="",dt.state=Et.TEXT):(dt.procInstBody+="?"+zt,dt.state=Et.PROC_INST_BODY);continue;case Et.OPEN_TAG:Kt(he,zt)?dt.tagName+=zt:(Jt(dt),zt===">"?fe(dt):zt==="/"?dt.state=Et.OPEN_TAG_SLASH:(Ft(zt)||de(dt,"Invalid character in tag name"),dt.state=Et.ATTRIB));continue;case Et.OPEN_TAG_SLASH:zt===">"?(fe(dt,!0),se(dt)):(de(dt,"Forward-slash in opening tag not followed by >"),dt.state=Et.ATTRIB);continue;case Et.ATTRIB:if(Ft(zt))continue;zt===">"?fe(dt):zt==="/"?dt.state=Et.OPEN_TAG_SLASH:Kt(ce,zt)?(dt.attribName=zt,dt.attribValue="",dt.state=Et.ATTRIB_NAME):de(dt,"Invalid attribute name");continue;case Et.ATTRIB_NAME:zt==="="?dt.state=Et.ATTRIB_VALUE:zt===">"?(de(dt,"Attribute without value"),dt.attribValue=dt.attribName,ae(dt),fe(dt)):Ft(zt)?dt.state=Et.ATTRIB_NAME_SAW_WHITE:Kt(he,zt)?dt.attribName+=zt:de(dt,"Invalid attribute name");continue;case Et.ATTRIB_NAME_SAW_WHITE:if(zt==="=")dt.state=Et.ATTRIB_VALUE;else{if(Ft(zt))continue;de(dt,"Attribute without value"),dt.tag.attributes[dt.attribName]="",dt.attribValue="",we(dt,"onattribute",{name:dt.attribName,value:""}),dt.attribName="",zt===">"?fe(dt):Kt(ce,zt)?(dt.attribName=zt,dt.state=Et.ATTRIB_NAME):(de(dt,"Invalid attribute name"),dt.state=Et.ATTRIB)}continue;case Et.ATTRIB_VALUE:if(Ft(zt))continue;Qt(zt)?(dt.q=zt,dt.state=Et.ATTRIB_VALUE_QUOTED):(de(dt,"Unquoted attribute value"),dt.state=Et.ATTRIB_VALUE_UNQUOTED,dt.attribValue=zt);continue;case Et.ATTRIB_VALUE_QUOTED:if(zt!==dt.q){zt==="&"?dt.state=Et.ATTRIB_VALUE_ENTITY_Q:dt.attribValue+=zt;continue}ae(dt),dt.q="",dt.state=Et.ATTRIB_VALUE_CLOSED;continue;case Et.ATTRIB_VALUE_CLOSED:Ft(zt)?dt.state=Et.ATTRIB:zt===">"?fe(dt):zt==="/"?dt.state=Et.OPEN_TAG_SLASH:Kt(ce,zt)?(de(dt,"No whitespace between attributes"),dt.attribName=zt,dt.attribValue="",dt.state=Et.ATTRIB_NAME):de(dt,"Invalid attribute name");continue;case Et.ATTRIB_VALUE_UNQUOTED:if(!$t(zt)){zt==="&"?dt.state=Et.ATTRIB_VALUE_ENTITY_U:dt.attribValue+=zt;continue}ae(dt),zt===">"?fe(dt):dt.state=Et.ATTRIB;continue;case Et.CLOSE_TAG:if(dt.tagName)zt===">"?se(dt):Kt(he,zt)?dt.tagName+=zt:dt.script?(dt.script+="</"+dt.tagName,dt.tagName="",dt.state=Et.SCRIPT):(Ft(zt)||de(dt,"Invalid tagname in closing tag"),dt.state=Et.CLOSE_TAG_SAW_WHITE);else{if(Ft(zt))continue;ue(ce,zt)?dt.script?(dt.script+="</"+zt,dt.state=Et.SCRIPT):de(dt,"Invalid tagname in closing tag."):dt.tagName=zt}continue;case Et.CLOSE_TAG_SAW_WHITE:if(Ft(zt))continue;zt===">"?se(dt):de(dt,"Invalid characters in closing tag");continue;case Et.TEXT_ENTITY:case Et.ATTRIB_VALUE_ENTITY_Q:case Et.ATTRIB_VALUE_ENTITY_U:var ye,Ye;switch(dt.state){case Et.TEXT_ENTITY:ye=Et.TEXT,Ye="textNode";break;case Et.ATTRIB_VALUE_ENTITY_Q:ye=Et.ATTRIB_VALUE_QUOTED,Ye="attribValue";break;case Et.ATTRIB_VALUE_ENTITY_U:ye=Et.ATTRIB_VALUE_UNQUOTED,Ye="attribValue"}zt===";"?(dt[Ye]+=De(dt),dt.entity="",dt.state=ye):Kt(dt.entity.length?Mt:_t,zt)?dt.entity+=zt:(de(dt,"Invalid character in entity name"),dt[Ye]+="&"+dt.entity+zt,dt.entity="",dt.state=ye);continue;default:throw new Error(dt,"Unknown state: "+dt.state)}return dt.position>=dt.bufferCheckPosition&&pt(dt),dt}ut.parser=function(Pt,dt){return new ct(Pt,dt)},ut.SAXParser=ct,ut.SAXStream=Ut,ut.createStream=Dt,ut.MAX_BUFFER_LENGTH=65536;var rn=["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(Pt){function dt(){}return dt.prototype=Pt,new dt}),tt.default||(Object.keys=function(Pt){var dt=[];for(var gt in Pt)Pt.hasOwnProperty(gt)&&dt.push(gt);return dt}),ct.prototype={end:function(){Ue(this)},write:We,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){Ct(this)}};var ke;try{ke=yt("stream").Stream}catch(Pt){ke=function(){}}var Ie=ut.EVENTS.filter(function(Pt){return Pt!=="error"&&Pt!=="end"});Ut.prototype=(0,rt.default)(ke.prototype,{constructor:{value:Ut}}),Ut.prototype.write=function(Pt){if(typeof Nt=="function"&&typeof Nt.isBuffer=="function"&&Nt.isBuffer(Pt)){if(!this._decoder){var dt=yt("string_decoder").StringDecoder;this._decoder=new dt("utf8")}Pt=this._decoder.write(Pt)}return this._parser.write(Pt.toString()),this.emit("data",Pt),!0},Ut.prototype.end=function(Pt){return Pt&&Pt.length&&this.write(Pt),this._parser.end(),!0},Ut.prototype.on=function(Pt,dt){var gt=this;return gt._parser["on"+Pt]||Ie.indexOf(Pt)===-1||(gt._parser["on"+Pt]=function(){var zt=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);zt.splice(0,0,Pt),gt.emit.apply(gt,zt)}),ke.prototype.on.call(gt,Pt,dt)};var je="[CDATA[",$e="DOCTYPE",me="http://www.w3.org/XML/1998/namespace",le="http://www.w3.org/2000/xmlns/",Ee={xml:me,xmlns:le},ce=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,he=/[:_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-]/,_t=/[#:_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-]/,Et=0;ut.STATE={BEGIN:Et++,BEGIN_WHITESPACE:Et++,TEXT:Et++,TEXT_ENTITY:Et++,OPEN_WAKA:Et++,SGML_DECL:Et++,SGML_DECL_QUOTED:Et++,DOCTYPE:Et++,DOCTYPE_QUOTED:Et++,DOCTYPE_DTD:Et++,DOCTYPE_DTD_QUOTED:Et++,COMMENT_STARTING:Et++,COMMENT:Et++,COMMENT_ENDING:Et++,COMMENT_ENDED:Et++,CDATA:Et++,CDATA_ENDING:Et++,CDATA_ENDING_2:Et++,PROC_INST:Et++,PROC_INST_BODY:Et++,PROC_INST_ENDING:Et++,OPEN_TAG:Et++,OPEN_TAG_SLASH:Et++,ATTRIB:Et++,ATTRIB_NAME:Et++,ATTRIB_NAME_SAW_WHITE:Et++,ATTRIB_VALUE:Et++,ATTRIB_VALUE_QUOTED:Et++,ATTRIB_VALUE_CLOSED:Et++,ATTRIB_VALUE_UNQUOTED:Et++,ATTRIB_VALUE_ENTITY_Q:Et++,ATTRIB_VALUE_ENTITY_U:Et++,CLOSE_TAG:Et++,CLOSE_TAG_SAW_WHITE:Et++,SCRIPT:Et++,SCRIPT_ENDING:Et++},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(Pt){var dt=ut.ENTITIES[Pt],gt=typeof dt=="number"?String.fromCharCode(dt):dt;ut.ENTITIES[Pt]=gt});for(var Ht in ut.STATE)ut.STATE[ut.STATE[Ht]]=Ht;Et=ut.STATE,Ot.default||function(){var Pt=String.fromCharCode,dt=Math.floor,gt=function(){var zt,re,Zt=[],ye=-1,Ye=arguments.length;if(!Ye)return"";for(var sn="";++ye<Ye;){var Le=Number(arguments[ye]);if(!isFinite(Le)||Le<0||Le>1114111||dt(Le)!==Le)throw RangeError("Invalid code point: "+Le);Le<=65535?Zt.push(Le):(Le-=65536,zt=55296+(Le>>10),re=Le%1024+56320,Zt.push(zt,re)),(ye+1===Ye||Zt.length>16384)&&(sn+=Pt.apply(null,Zt),Zt.length=0)}return sn};vt.default?Object.defineProperty(String,"fromCodePoint",{value:gt,configurable:!0,writable:!0}):String.fromCodePoint=gt}()})(Yt===void 0?(void 0).sax={}:Yt)}).call(this,yt("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(yt,Vt,Yt){function Nt(){Wt.call(this)}Vt.exports=Nt;var Wt=yt("events").EventEmitter;yt("inherits")(Nt,Wt),Nt.Readable=yt("readable-stream/readable.js"),Nt.Writable=yt("readable-stream/writable.js"),Nt.Duplex=yt("readable-stream/duplex.js"),Nt.Transform=yt("readable-stream/transform.js"),Nt.PassThrough=yt("readable-stream/passthrough.js"),Nt.Stream=Nt,Nt.prototype.pipe=function(xt,Ot){function Bt(st){xt.writable&&xt.write(st)===!1&&et.pause&&et.pause()}function At(){et.readable&&et.resume&&et.resume()}function bt(){tt||(tt=!0,xt.end())}function Tt(){tt||(tt=!0,typeof xt.destroy=="function"&&xt.destroy())}function It(st){if(vt(),Wt.listenerCount(this,"error")===0)throw st}function vt(){et.removeListener("data",Bt),xt.removeListener("drain",At),et.removeListener("end",bt),et.removeListener("close",Tt),et.removeListener("error",It),xt.removeListener("error",It),et.removeListener("end",vt),et.removeListener("close",vt),xt.removeListener("close",vt)}var et=this;et.on("data",Bt),xt.on("drain",At),xt._isStdio||Ot&&Ot.end===!1||(et.on("end",bt),et.on("close",Tt));var tt=!1;return et.on("error",It),xt.on("error",It),et.on("end",vt),et.on("close",vt),xt.on("close",vt),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(yt,Vt,Yt){(function(Nt){var Wt=yt("./lib/request"),xt=yt("./lib/response"),Ot=yt("xtend"),Bt=yt("builtin-status-codes"),At=yt("url"),bt=Yt;bt.request=function(Tt,It){Tt=typeof Tt=="string"?At.parse(Tt):Ot(Tt);var vt=Nt.location.protocol.search(/^https?:$/)===-1?"http:":"",et=Tt.protocol||vt,tt=Tt.hostname||Tt.host,st=Tt.port,rt=Tt.path||"/";tt&&tt.indexOf(":")!==-1&&(tt="["+tt+"]"),Tt.url=(tt?et+"//"+tt:"")+(st?":"+st:"")+rt,Tt.method=(Tt.method||"GET").toUpperCase(),Tt.headers=Tt.headers||{};var ut=new Wt(Tt);return It&&ut.on("response",It),ut},bt.get=function(Tt,It){var vt=bt.request(Tt,It);return vt.end(),vt},bt.ClientRequest=Wt,bt.IncomingMessage=xt.IncomingMessage,bt.Agent=function(){},bt.Agent.defaultMaxSockets=4,bt.globalAgent=new bt.Agent,bt.STATUS_CODES=Bt,bt.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 Gt.g!="undefined"?Gt.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(yt,Vt,Yt){(function(Nt){"use strict";function Wt(){if(Bt!==void 0)return Bt;if(Nt.XMLHttpRequest){Bt=new Nt.XMLHttpRequest;try{Bt.open("GET",Nt.XDomainRequest?"/":"https://example.com")}catch(Tt){Bt=null}}else Bt=null;return Bt}function xt(Tt){var It=Wt();if(!It)return!1;try{return It.responseType=Tt,It.responseType===Tt}catch(vt){}return!1}function Ot(Tt){return typeof Tt=="function"}Yt.fetch=Ot(Nt.fetch)&&Ot(Nt.ReadableStream),Yt.writableStream=Ot(Nt.WritableStream),Yt.abortController=Ot(Nt.AbortController),Yt.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),Yt.blobConstructor=!0}catch(Tt){}var Bt,At=Nt.ArrayBuffer!==void 0,bt=At&&Ot(Nt.ArrayBuffer.prototype.slice);Yt.arraybuffer=Yt.fetch||At&&xt("arraybuffer"),Yt.msstream=!Yt.fetch&&bt&&xt("ms-stream"),Yt.mozchunkedarraybuffer=!Yt.fetch&&At&&xt("moz-chunked-arraybuffer"),Yt.overrideMimeType=Yt.fetch||!!Wt()&&Ot(Wt().overrideMimeType),Yt.vbArray=Ot(Nt.VBArray),Bt=null}).call(this,typeof Gt.g!="undefined"?Gt.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],198:[function(yt,Vt,Yt){(function(Nt,Wt,xt){"use strict";function Ot(pt,mt){return Tt.fetch&&mt?"fetch":Tt.mozchunkedarraybuffer?"moz-chunked-arraybuffer":Tt.msstream?"ms-stream":Tt.arraybuffer&&pt?"arraybuffer":Tt.vbArray&&pt?"text:vbarray":"text"}function Bt(pt){try{var mt=pt.status;return mt!==null&&mt!==0}catch(Ct){return!1}}var At=yt("babel-runtime/core-js/object/keys"),bt=function(pt){return pt&&pt.__esModule?pt:{default:pt}}(At),Tt=yt("./capability"),It=yt("inherits"),vt=yt("./response"),et=yt("readable-stream"),tt=yt("to-arraybuffer"),st=vt.IncomingMessage,rt=vt.readyStates,ut=Vt.exports=function(pt){var mt=this;et.Writable.call(mt),mt._opts=pt,mt._body=[],mt._headers={},pt.auth&&mt.setHeader("Authorization","Basic "+new xt(pt.auth).toString("base64")),(0,bt.default)(pt.headers).forEach(function(Ut){mt.setHeader(Ut,pt.headers[Ut])});var Ct,Dt=!0;if(pt.mode==="disable-fetch"||"requestTimeout"in pt&&!Tt.abortController)Dt=!1,Ct=!0;else if(pt.mode==="prefer-streaming")Ct=!1;else if(pt.mode==="allow-wrong-content-type")Ct=!Tt.overrideMimeType;else{if(pt.mode&&pt.mode!=="default"&&pt.mode!=="prefer-fast")throw new Error("Invalid value for opts.mode");Ct=!0}mt._mode=Ot(Ct,Dt),mt._fetchTimer=null,mt.on("finish",function(){mt._onFinish()})};It(ut,et.Writable),ut.prototype.setHeader=function(pt,mt){var Ct=this,Dt=pt.toLowerCase();ct.indexOf(Dt)===-1&&(Ct._headers[Dt]={name:pt,value:mt})},ut.prototype.getHeader=function(pt){var mt=this._headers[pt.toLowerCase()];return mt?mt.value:null},ut.prototype.removeHeader=function(pt){delete this._headers[pt.toLowerCase()]},ut.prototype._onFinish=function(){var pt=this;if(!pt._destroyed){var mt=pt._opts,Ct=pt._headers,Dt=null;mt.method!=="GET"&&mt.method!=="HEAD"&&(Dt=Tt.arraybuffer?tt(xt.concat(pt._body)):Tt.blobConstructor?new Wt.Blob(pt._body.map(function(Kt){return tt(Kt)}),{type:(Ct["content-type"]||{}).value||""}):xt.concat(pt._body).toString());var Ut=[];if((0,bt.default)(Ct).forEach(function(Kt){var ue=Ct[Kt].name,oe=Ct[Kt].value;Array.isArray(oe)?oe.forEach(function(we){Ut.push([ue,we])}):Ut.push([ue,oe])}),pt._mode==="fetch"){var Ft=null;if(Tt.abortController){var Qt=new AbortController;Ft=Qt.signal,pt._fetchAbortController=Qt,"requestTimeout"in mt&&mt.requestTimeout!==0&&(pt._fetchTimer=Wt.setTimeout(function(){pt.emit("requestTimeout"),pt._fetchAbortController&&pt._fetchAbortController.abort()},mt.requestTimeout))}Wt.fetch(pt._opts.url,{method:pt._opts.method,headers:Ut,body:Dt||void 0,mode:"cors",credentials:mt.withCredentials?"include":"same-origin",signal:Ft}).then(function(Kt){pt._fetchResponse=Kt,pt._connect()},function(Kt){Wt.clearTimeout(pt._fetchTimer),pt._destroyed||pt.emit("error",Kt)})}else{var $t=pt._xhr=new Wt.XMLHttpRequest;try{$t.open(pt._opts.method,pt._opts.url,!0)}catch(Kt){return void Nt.nextTick(function(){pt.emit("error",Kt)})}"responseType"in $t&&($t.responseType=pt._mode.split(":")[0]),"withCredentials"in $t&&($t.withCredentials=!!mt.withCredentials),pt._mode==="text"&&"overrideMimeType"in $t&&$t.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in mt&&($t.timeout=mt.requestTimeout,$t.ontimeout=function(){pt.emit("requestTimeout")}),Ut.forEach(function(Kt){$t.setRequestHeader(Kt[0],Kt[1])}),pt._response=null,$t.onreadystatechange=function(){switch($t.readyState){case rt.LOADING:case rt.DONE:pt._onXHRProgress()}},pt._mode==="moz-chunked-arraybuffer"&&($t.onprogress=function(){pt._onXHRProgress()}),$t.onerror=function(){pt._destroyed||pt.emit("error",new Error("XHR error"))};try{$t.send(Dt)}catch(Kt){return void Nt.nextTick(function(){pt.emit("error",Kt)})}}}},ut.prototype._onXHRProgress=function(){var pt=this;Bt(pt._xhr)&&!pt._destroyed&&(pt._response||pt._connect(),pt._response._onXHRProgress())},ut.prototype._connect=function(){var pt=this;pt._destroyed||(pt._response=new st(pt._xhr,pt._fetchResponse,pt._mode,pt._fetchTimer),pt._response.on("error",function(mt){pt.emit("error",mt)}),pt.emit("response",pt._response))},ut.prototype._write=function(pt,mt,Ct){this._body.push(pt),Ct()},ut.prototype.abort=ut.prototype.destroy=function(){var pt=this;pt._destroyed=!0,Wt.clearTimeout(pt._fetchTimer),pt._response&&(pt._response._destroyed=!0),pt._xhr?pt._xhr.abort():pt._fetchAbortController&&pt._fetchAbortController.abort()},ut.prototype.end=function(pt,mt,Ct){var Dt=this;typeof pt=="function"&&(Ct=pt,pt=void 0),et.Writable.prototype.end.call(Dt,pt,mt,Ct)},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,yt("_process"),typeof Gt.g!="undefined"?Gt.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{},yt("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(yt,Vt,Yt){(function(Nt,Wt,xt){"use strict";var Ot=yt("babel-runtime/core-js/promise"),Bt=function(et){return et&&et.__esModule?et:{default:et}}(Ot),At=yt("./capability"),bt=yt("inherits"),Tt=yt("readable-stream"),It=Yt.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},vt=Yt.IncomingMessage=function(et,tt,st,rt){var ut=this;if(Tt.Readable.call(ut),ut._mode=st,ut.headers={},ut.rawHeaders=[],ut.trailers={},ut.rawTrailers=[],ut.on("end",function(){Nt.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,Ut){ut.headers[Ut.toLowerCase()]=Dt,ut.rawHeaders.push(Ut,Dt)}),At.writableStream){var ct=new WritableStream({write:function(Dt){return new Bt.default(function(Ut,Ft){ut._destroyed?Ft():ut.push(new xt(Dt))?Ut():ut._resumeFetch=Ut})},close:function(){Wt.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){Wt.clearTimeout(rt),ut._destroyed||ut.emit("error",Dt)})}catch(Dt){}}var pt=tt.body.getReader();(function Dt(){pt.read().then(function(Ut){if(!ut._destroyed){if(Ut.done)return Wt.clearTimeout(rt),void ut.push(null);ut.push(new xt(Ut.value)),Dt()}}).catch(function(Ut){Wt.clearTimeout(rt),ut._destroyed||ut.emit("error",Ut)})})()}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 Ut=Dt.match(/^([^:]+):\s*(.*)/);if(Ut){var Ft=Ut[1].toLowerCase();Ft==="set-cookie"?(ut.headers[Ft]===void 0&&(ut.headers[Ft]=[]),ut.headers[Ft].push(Ut[2])):ut.headers[Ft]!==void 0?ut.headers[Ft]+=", "+Ut[2]:ut.headers[Ft]=Ut[2],ut.rawHeaders.push(Ut[1],Ut[2])}}),ut._charset="x-user-defined",!At.overrideMimeType){var mt=ut.rawHeaders["mime-type"];if(mt){var Ct=mt.match(/;\s*charset=([^;])(;|$)/);Ct&&(ut._charset=Ct[1].toLowerCase())}ut._charset||(ut._charset="utf-8")}};bt(vt,Tt.Readable),vt.prototype._read=function(){var et=this,tt=et._resumeFetch;tt&&(et._resumeFetch=null,tt())},vt.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 Wt.VBArray(tt.responseBody).toArray()}catch(mt){}if(st!==null){et.push(new xt(st));break}case"text":try{st=tt.responseText}catch(mt){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 pt=new Wt.MSStreamReader;pt.onprogress=function(){pt.result.byteLength>et._pos&&(et.push(new xt(new Uint8Array(pt.result.slice(et._pos)))),et._pos=pt.result.byteLength)},pt.onload=function(){et.push(null)},pt.readAsArrayBuffer(st)}et._xhr.readyState===It.DONE&&et._mode!=="ms-stream"&&et.push(null)}}).call(this,yt("_process"),typeof Gt.g!="undefined"?Gt.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{},yt("buffer").Buffer)},{"./capability":197,_process:173,"babel-runtime/core-js/promise":24,buffer:38,inherits:162,"readable-stream":188}],200:[function(yt,Vt,Yt){"use strict";function Nt(mt){if(!mt)return"utf8";for(var Ct;;)switch(mt){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 mt;default:if(Ct)return;mt=(""+mt).toLowerCase(),Ct=!0}}function Wt(mt){var Ct=Nt(mt);if(typeof Ct!="string"&&(ct.isEncoding===pt||!pt(mt)))throw new Error("Unknown encoding: "+mt);return Ct||mt}function xt(mt){this.encoding=Wt(mt);var Ct;switch(this.encoding){case"utf16le":this.text=vt,this.end=et,Ct=4;break;case"utf8":this.fillLast=bt,Ct=4;break;case"base64":this.text=tt,this.end=st,Ct=3;break;default:return this.write=rt,void(this.end=ut)}this.lastNeed=0,this.lastTotal=0,this.lastChar=ct.allocUnsafe(Ct)}function Ot(mt){return mt<=127?0:mt>>5==6?2:mt>>4==14?3:mt>>3==30?4:mt>>6==2?-1:-2}function Bt(mt,Ct,Dt){var Ut=Ct.length-1;if(Ut<Dt)return 0;var Ft=Ot(Ct[Ut]);return Ft>=0?(Ft>0&&(mt.lastNeed=Ft-1),Ft):--Ut<Dt||Ft===-2?0:(Ft=Ot(Ct[Ut]))>=0?(Ft>0&&(mt.lastNeed=Ft-2),Ft):--Ut<Dt||Ft===-2?0:(Ft=Ot(Ct[Ut]),Ft>=0?(Ft>0&&(Ft===2?Ft=0:mt.lastNeed=Ft-3),Ft):0)}function At(mt,Ct,Dt){if((192&Ct[0])!=128)return mt.lastNeed=0,"\u951F\uFFFD";if(mt.lastNeed>1&&Ct.length>1){if((192&Ct[1])!=128)return mt.lastNeed=1,"\u951F\uFFFD";if(mt.lastNeed>2&&Ct.length>2&&(192&Ct[2])!=128)return mt.lastNeed=2,"\u951F\uFFFD"}}function bt(mt){var Ct=this.lastTotal-this.lastNeed,Dt=At(this,mt,Ct);return Dt!==void 0?Dt:this.lastNeed<=mt.length?(mt.copy(this.lastChar,Ct,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(mt.copy(this.lastChar,Ct,0,mt.length),void(this.lastNeed-=mt.length))}function Tt(mt,Ct){var Dt=Bt(this,mt,Ct);if(!this.lastNeed)return mt.toString("utf8",Ct);this.lastTotal=Dt;var Ut=mt.length-(Dt-this.lastNeed);return mt.copy(this.lastChar,0,Ut),mt.toString("utf8",Ct,Ut)}function It(mt){var Ct=mt&&mt.length?this.write(mt):"";return this.lastNeed?Ct+"\u951F\uFFFD":Ct}function vt(mt,Ct){if((mt.length-Ct)%2==0){var Dt=mt.toString("utf16le",Ct);if(Dt){var Ut=Dt.charCodeAt(Dt.length-1);if(Ut>=55296&&Ut<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=mt[mt.length-2],this.lastChar[1]=mt[mt.length-1],Dt.slice(0,-1)}return Dt}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=mt[mt.length-1],mt.toString("utf16le",Ct,mt.length-1)}function et(mt){var Ct=mt&&mt.length?this.write(mt):"";if(this.lastNeed){var Dt=this.lastTotal-this.lastNeed;return Ct+this.lastChar.toString("utf16le",0,Dt)}return Ct}function tt(mt,Ct){var Dt=(mt.length-Ct)%3;return Dt===0?mt.toString("base64",Ct):(this.lastNeed=3-Dt,this.lastTotal=3,Dt===1?this.lastChar[0]=mt[mt.length-1]:(this.lastChar[0]=mt[mt.length-2],this.lastChar[1]=mt[mt.length-1]),mt.toString("base64",Ct,mt.length-Dt))}function st(mt){var Ct=mt&&mt.length?this.write(mt):"";return this.lastNeed?Ct+this.lastChar.toString("base64",0,3-this.lastNeed):Ct}function rt(mt){return mt.toString(this.encoding)}function ut(mt){return mt&&mt.length?this.write(mt):""}var ct=yt("safe-buffer").Buffer,pt=ct.isEncoding||function(mt){switch((mt=""+mt)&&mt.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}};Yt.StringDecoder=xt,xt.prototype.write=function(mt){if(mt.length===0)return"";var Ct,Dt;if(this.lastNeed){if((Ct=this.fillLast(mt))===void 0)return"";Dt=this.lastNeed,this.lastNeed=0}else Dt=0;return Dt<mt.length?Ct?Ct+this.text(mt,Dt):this.text(mt,Dt):Ct||""},xt.prototype.end=It,xt.prototype.text=Tt,xt.prototype.fillLast=function(mt){if(this.lastNeed<=mt.length)return mt.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);mt.copy(this.lastChar,this.lastTotal-this.lastNeed,0,mt.length),this.lastNeed-=mt.length}},{"safe-buffer":193}],201:[function(yt,Vt,Yt){(function(Nt,Wt){function xt(It,vt){this._id=It,this._clearFn=vt}var Ot=yt("process/browser.js").nextTick,Bt=Function.prototype.apply,At=Array.prototype.slice,bt={},Tt=0;Yt.setTimeout=function(){return new xt(Bt.call(setTimeout,window,arguments),clearTimeout)},Yt.setInterval=function(){return new xt(Bt.call(setInterval,window,arguments),clearInterval)},Yt.clearTimeout=Yt.clearInterval=function(It){It.close()},xt.prototype.unref=xt.prototype.ref=function(){},xt.prototype.close=function(){this._clearFn.call(window,this._id)},Yt.enroll=function(It,vt){clearTimeout(It._idleTimeoutId),It._idleTimeout=vt},Yt.unenroll=function(It){clearTimeout(It._idleTimeoutId),It._idleTimeout=-1},Yt._unrefActive=Yt.active=function(It){clearTimeout(It._idleTimeoutId);var vt=It._idleTimeout;vt>=0&&(It._idleTimeoutId=setTimeout(function(){It._onTimeout&&It._onTimeout()},vt))},Yt.setImmediate=typeof Nt=="function"?Nt:function(It){var vt=Tt++,et=!(arguments.length<2)&&At.call(arguments,1);return bt[vt]=!0,Ot(function(){bt[vt]&&(et?It.apply(null,et):It.call(null),Yt.clearImmediate(vt))}),vt},Yt.clearImmediate=typeof Wt=="function"?Wt:function(It){delete bt[It]}}).call(this,yt("timers").setImmediate,yt("timers").clearImmediate)},{"process/browser.js":173,timers:201}],202:[function(yt,Vt,Yt){var Nt=yt("buffer").Buffer;Vt.exports=function(Wt){if(Wt instanceof Uint8Array){if(Wt.byteOffset===0&&Wt.byteLength===Wt.buffer.byteLength)return Wt.buffer;if(typeof Wt.buffer.slice=="function")return Wt.buffer.slice(Wt.byteOffset,Wt.byteOffset+Wt.byteLength)}if(Nt.isBuffer(Wt)){for(var xt=new Uint8Array(Wt.length),Ot=Wt.length,Bt=0;Bt<Ot;Bt++)xt[Bt]=Wt[Bt];return xt.buffer}throw new Error("Argument must be a Buffer")}},{buffer:38}],203:[function(yt,Vt,Yt){"use strict";function Nt(){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 Wt(Ft,Qt,$t){if(Ft&&bt.isObject(Ft)&&Ft instanceof Nt)return Ft;var Kt=new Nt;return Kt.parse(Ft,Qt,$t),Kt}function xt(Ft){return bt.isString(Ft)&&(Ft=Wt(Ft)),Ft instanceof Nt?Ft.format():Nt.prototype.format.call(Ft)}function Ot(Ft,Qt){return Wt(Ft,!1,!0).resolve(Qt)}function Bt(Ft,Qt){return Ft?Wt(Ft,!1,!0).resolveObject(Qt):Qt}var At=yt("punycode"),bt=yt("./util");Yt.parse=Wt,Yt.resolve=Ot,Yt.resolveObject=Bt,Yt.format=xt,Yt.Url=Nt;var Tt=/^([a-z0-9.+-]+:)/i,It=/:[0-9]*$/,vt=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,et=["<",">",'"',"`"," ","\r",`
|
|
|
`," "],tt=["{","}","|","\\","^","`"].concat(et),st=["'"].concat(tt),rt=["%","/","?",";","#"].concat(st),ut=["/","?","#"],ct=/^[+a-z0-9A-Z_-]{0,63}$/,pt=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,mt={javascript:!0,"javascript:":!0},Ct={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},Ut=yt("querystring");Nt.prototype.parse=function(Ft,Qt,$t){if(!bt.isString(Ft))throw new TypeError("Parameter 'url' must be a string, not "+typeof Ft);var Kt=Ft.indexOf("?"),ue=Kt!==-1&&Kt<Ft.indexOf("#")?"?":"#",oe=Ft.split(ue),we=/\\/g;oe[0]=oe[0].replace(we,"/"),Ft=oe.join(ue);var Se=Ft;if(Se=Se.trim(),!$t&&Ft.split("#").length===1){var Ne=vt.exec(Se);if(Ne)return this.path=Se,this.href=Se,this.pathname=Ne[1],Ne[2]?(this.search=Ne[2],this.query=Qt?Ut.parse(this.search.substr(1)):this.search.substr(1)):Qt&&(this.search="",this.query={}),this}var pe=Tt.exec(Se);if(pe){pe=pe[0];var Ue=pe.toLowerCase();this.protocol=Ue,Se=Se.substr(pe.length)}if($t||pe||Se.match(/^\/\/[^@\/]+@[^@\/]+/)){var de=Se.substr(0,2)==="//";!de||pe&&Ct[pe]||(Se=Se.substr(2),this.slashes=!0)}if(!Ct[pe]&&(de||pe&&!Dt[pe])){for(var Jt=-1,ee=0;ee<ut.length;ee++){var ae=Se.indexOf(ut[ee]);ae!==-1&&(Jt===-1||ae<Jt)&&(Jt=ae)}var fe,se;se=Jt===-1?Se.lastIndexOf("@"):Se.lastIndexOf("@",Jt),se!==-1&&(fe=Se.slice(0,se),Se=Se.slice(se+1),this.auth=decodeURIComponent(fe)),Jt=-1;for(var ee=0;ee<rt.length;ee++){var ae=Se.indexOf(rt[ee]);ae!==-1&&(Jt===-1||ae<Jt)&&(Jt=ae)}Jt===-1&&(Jt=Se.length),this.host=Se.slice(0,Jt),Se=Se.slice(Jt),this.parseHost(),this.hostname=this.hostname||"";var De=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!De)for(var Oe=this.hostname.split(/\./),ee=0,en=Oe.length;ee<en;ee++){var We=Oe[ee];if(We&&!We.match(ct)){for(var rn="",ke=0,Ie=We.length;ke<Ie;ke++)We.charCodeAt(ke)>127?rn+="x":rn+=We[ke];if(!rn.match(ct)){var je=Oe.slice(0,ee),$e=Oe.slice(ee+1),me=We.match(pt);me&&(je.push(me[1]),$e.unshift(me[2])),$e.length&&(Se="/"+$e.join(".")+Se),this.hostname=je.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),De||(this.hostname=At.toASCII(this.hostname));var le=this.port?":"+this.port:"",Ee=this.hostname||"";this.host=Ee+le,this.href+=this.host,De&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),Se[0]!=="/"&&(Se="/"+Se))}if(!mt[Ue])for(var ee=0,en=st.length;ee<en;ee++){var ce=st[ee];if(Se.indexOf(ce)!==-1){var he=encodeURIComponent(ce);he===ce&&(he=escape(ce)),Se=Se.split(ce).join(he)}}var _t=Se.indexOf("#");_t!==-1&&(this.hash=Se.substr(_t),Se=Se.slice(0,_t));var Mt=Se.indexOf("?");if(Mt!==-1?(this.search=Se.substr(Mt),this.query=Se.substr(Mt+1),Qt&&(this.query=Ut.parse(this.query)),Se=Se.slice(0,Mt)):Qt&&(this.search="",this.query={}),Se&&(this.pathname=Se),Dt[Ue]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var le=this.pathname||"",Et=this.search||"";this.path=le+Et}return this.href=this.format(),this},Nt.prototype.format=function(){var Ft=this.auth||"";Ft&&(Ft=encodeURIComponent(Ft),Ft=Ft.replace(/%3A/i,":"),Ft+="@");var Qt=this.protocol||"",$t=this.pathname||"",Kt=this.hash||"",ue=!1,oe="";this.host?ue=Ft+this.host:this.hostname&&(ue=Ft+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(ue+=":"+this.port)),this.query&&bt.isObject(this.query)&&Object.keys(this.query).length&&(oe=Ut.stringify(this.query));var we=this.search||oe&&"?"+oe||"";return Qt&&Qt.substr(-1)!==":"&&(Qt+=":"),this.slashes||(!Qt||Dt[Qt])&&ue!==!1?(ue="//"+(ue||""),$t&&$t.charAt(0)!=="/"&&($t="/"+$t)):ue||(ue=""),Kt&&Kt.charAt(0)!=="#"&&(Kt="#"+Kt),we&&we.charAt(0)!=="?"&&(we="?"+we),$t=$t.replace(/[?#]/g,function(Se){return encodeURIComponent(Se)}),we=we.replace("#","%23"),Qt+ue+$t+we+Kt},Nt.prototype.resolve=function(Ft){return this.resolveObject(Wt(Ft,!1,!0)).format()},Nt.prototype.resolveObject=function(Ft){if(bt.isString(Ft)){var Qt=new Nt;Qt.parse(Ft,!1,!0),Ft=Qt}for(var $t=new Nt,Kt=Object.keys(this),ue=0;ue<Kt.length;ue++){var oe=Kt[ue];$t[oe]=this[oe]}if($t.hash=Ft.hash,Ft.href==="")return $t.href=$t.format(),$t;if(Ft.slashes&&!Ft.protocol){for(var we=Object.keys(Ft),Se=0;Se<we.length;Se++){var Ne=we[Se];Ne!=="protocol"&&($t[Ne]=Ft[Ne])}return Dt[$t.protocol]&&$t.hostname&&!$t.pathname&&($t.path=$t.pathname="/"),$t.href=$t.format(),$t}if(Ft.protocol&&Ft.protocol!==$t.protocol){if(!Dt[Ft.protocol]){for(var pe=Object.keys(Ft),Ue=0;Ue<pe.length;Ue++){var de=pe[Ue];$t[de]=Ft[de]}return $t.href=$t.format(),$t}if($t.protocol=Ft.protocol,Ft.host||Ct[Ft.protocol])$t.pathname=Ft.pathname;else{for(var en=(Ft.pathname||"").split("/");en.length&&!(Ft.host=en.shift()););Ft.host||(Ft.host=""),Ft.hostname||(Ft.hostname=""),en[0]!==""&&en.unshift(""),en.length<2&&en.unshift(""),$t.pathname=en.join("/")}if($t.search=Ft.search,$t.query=Ft.query,$t.host=Ft.host||"",$t.auth=Ft.auth,$t.hostname=Ft.hostname||Ft.host,$t.port=Ft.port,$t.pathname||$t.search){var Jt=$t.pathname||"",ee=$t.search||"";$t.path=Jt+ee}return $t.slashes=$t.slashes||Ft.slashes,$t.href=$t.format(),$t}var ae=$t.pathname&&$t.pathname.charAt(0)==="/",fe=Ft.host||Ft.pathname&&Ft.pathname.charAt(0)==="/",se=fe||ae||$t.host&&Ft.pathname,De=se,Oe=$t.pathname&&$t.pathname.split("/")||[],en=Ft.pathname&&Ft.pathname.split("/")||[],We=$t.protocol&&!Dt[$t.protocol];if(We&&($t.hostname="",$t.port=null,$t.host&&(Oe[0]===""?Oe[0]=$t.host:Oe.unshift($t.host)),$t.host="",Ft.protocol&&(Ft.hostname=null,Ft.port=null,Ft.host&&(en[0]===""?en[0]=Ft.host:en.unshift(Ft.host)),Ft.host=null),se=se&&(en[0]===""||Oe[0]==="")),fe)$t.host=Ft.host||Ft.host===""?Ft.host:$t.host,$t.hostname=Ft.hostname||Ft.hostname===""?Ft.hostname:$t.hostname,$t.search=Ft.search,$t.query=Ft.query,Oe=en;else if(en.length)Oe||(Oe=[]),Oe.pop(),Oe=Oe.concat(en),$t.search=Ft.search,$t.query=Ft.query;else if(!bt.isNullOrUndefined(Ft.search)){if(We){$t.hostname=$t.host=Oe.shift();var rn=!!($t.host&&$t.host.indexOf("@")>0)&&$t.host.split("@");rn&&($t.auth=rn.shift(),$t.host=$t.hostname=rn.shift())}return $t.search=Ft.search,$t.query=Ft.query,bt.isNull($t.pathname)&&bt.isNull($t.search)||($t.path=($t.pathname?$t.pathname:"")+($t.search?$t.search:"")),$t.href=$t.format(),$t}if(!Oe.length)return $t.pathname=null,$t.search?$t.path="/"+$t.search:$t.path=null,$t.href=$t.format(),$t;for(var ke=Oe.slice(-1)[0],Ie=($t.host||Ft.host||Oe.length>1)&&(ke==="."||ke==="..")||ke==="",je=0,$e=Oe.length;$e>=0;$e--)ke=Oe[$e],ke==="."?Oe.splice($e,1):ke===".."?(Oe.splice($e,1),je++):je&&(Oe.splice($e,1),je--);if(!se&&!De)for(;je--;je)Oe.unshift("..");!se||Oe[0]===""||Oe[0]&&Oe[0].charAt(0)==="/"||Oe.unshift(""),Ie&&Oe.join("/").substr(-1)!=="/"&&Oe.push("");var me=Oe[0]===""||Oe[0]&&Oe[0].charAt(0)==="/";if(We){$t.hostname=$t.host=me?"":Oe.length?Oe.shift():"";var rn=!!($t.host&&$t.host.indexOf("@")>0)&&$t.host.split("@");rn&&($t.auth=rn.shift(),$t.host=$t.hostname=rn.shift())}return se=se||$t.host&&Oe.length,se&&!me&&Oe.unshift(""),Oe.length?$t.pathname=Oe.join("/"):($t.pathname=null,$t.path=null),bt.isNull($t.pathname)&&bt.isNull($t.search)||($t.path=($t.pathname?$t.pathname:"")+($t.search?$t.search:"")),$t.auth=Ft.auth||$t.auth,$t.slashes=$t.slashes||Ft.slashes,$t.href=$t.format(),$t},Nt.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(yt,Vt,Yt){"use strict";Vt.exports={isString:function(Nt){return typeof Nt=="string"},isObject:function(Nt){return typeof Nt=="object"&&Nt!==null},isNull:function(Nt){return Nt===null},isNullOrUndefined:function(Nt){return Nt==null}}},{}],205:[function(yt,Vt,Yt){(function(Nt){function Wt(Ot,Bt){function At(){if(!bt){if(xt("throwDeprecation"))throw new Error(Bt);xt("traceDeprecation")?console.trace(Bt):console.warn(Bt),bt=!0}return Ot.apply(this,arguments)}if(xt("noDeprecation"))return Ot;var bt=!1;return At}function xt(Ot){try{if(!Nt.localStorage)return!1}catch(At){return!1}var Bt=Nt.localStorage[Ot];return Bt!=null&&String(Bt).toLowerCase()==="true"}Vt.exports=Wt}).call(this,typeof Gt.g!="undefined"?Gt.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],206:[function(yt,Vt,Yt){Vt.exports=function(Nt){return Nt&&typeof Nt=="object"&&typeof Nt.copy=="function"&&typeof Nt.fill=="function"&&typeof Nt.readUInt8=="function"}},{}],207:[function(yt,Vt,Yt){(function(Nt,Wt){function xt(ee,ae){var fe={seen:[],stylize:Bt};return arguments.length>=3&&(fe.depth=arguments[2]),arguments.length>=4&&(fe.colors=arguments[3]),rt(ae)?fe.showHidden=ae:ae&&Yt._extend(fe,ae),Dt(fe.showHidden)&&(fe.showHidden=!1),Dt(fe.depth)&&(fe.depth=2),Dt(fe.colors)&&(fe.colors=!1),Dt(fe.customInspect)&&(fe.customInspect=!0),fe.colors&&(fe.stylize=Ot),bt(fe,ee,fe.depth)}function Ot(ee,ae){var fe=xt.styles[ae];return fe?"\x1B["+xt.colors[fe][0]+"m"+ee+"\x1B["+xt.colors[fe][1]+"m":ee}function Bt(ee,ae){return ee}function At(ee){var ae={};return ee.forEach(function(fe,se){ae[fe]=!0}),ae}function bt(ee,ae,fe){if(ee.customInspect&&ae&&Kt(ae.inspect)&&ae.inspect!==Yt.inspect&&(!ae.constructor||ae.constructor.prototype!==ae)){var se=ae.inspect(fe,ee);return mt(se)||(se=bt(ee,se,fe)),se}var De=Tt(ee,ae);if(De)return De;var Oe=Object.keys(ae),en=At(Oe);if(ee.showHidden&&(Oe=Object.getOwnPropertyNames(ae)),$t(ae)&&(Oe.indexOf("message")>=0||Oe.indexOf("description")>=0))return It(ae);if(Oe.length===0){if(Kt(ae)){var We=ae.name?": "+ae.name:"";return ee.stylize("[Function"+We+"]","special")}if(Ut(ae))return ee.stylize(RegExp.prototype.toString.call(ae),"regexp");if(Qt(ae))return ee.stylize(Date.prototype.toString.call(ae),"date");if($t(ae))return It(ae)}var rn="",ke=!1,Ie=["{","}"];if(st(ae)&&(ke=!0,Ie=["[","]"]),Kt(ae)&&(rn=" [Function"+(ae.name?": "+ae.name:"")+"]"),Ut(ae)&&(rn=" "+RegExp.prototype.toString.call(ae)),Qt(ae)&&(rn=" "+Date.prototype.toUTCString.call(ae)),$t(ae)&&(rn=" "+It(ae)),Oe.length===0&&(!ke||ae.length==0))return Ie[0]+rn+Ie[1];if(fe<0)return Ut(ae)?ee.stylize(RegExp.prototype.toString.call(ae),"regexp"):ee.stylize("[Object]","special");ee.seen.push(ae);var je;return je=ke?vt(ee,ae,fe,en,Oe):Oe.map(function($e){return et(ee,ae,fe,en,$e,ke)}),ee.seen.pop(),tt(je,rn,Ie)}function Tt(ee,ae){if(Dt(ae))return ee.stylize("undefined","undefined");if(mt(ae)){var fe="'"+JSON.stringify(ae).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return ee.stylize(fe,"string")}return pt(ae)?ee.stylize(""+ae,"number"):rt(ae)?ee.stylize(""+ae,"boolean"):ut(ae)?ee.stylize("null","null"):void 0}function It(ee){return"["+Error.prototype.toString.call(ee)+"]"}function vt(ee,ae,fe,se,De){for(var Oe=[],en=0,We=ae.length;en<We;++en)Ne(ae,String(en))?Oe.push(et(ee,ae,fe,se,String(en),!0)):Oe.push("");return De.forEach(function(rn){rn.match(/^\d+$/)||Oe.push(et(ee,ae,fe,se,rn,!0))}),Oe}function et(ee,ae,fe,se,De,Oe){var en,We,rn;if(rn=Object.getOwnPropertyDescriptor(ae,De)||{value:ae[De]},rn.get?We=rn.set?ee.stylize("[Getter/Setter]","special"):ee.stylize("[Getter]","special"):rn.set&&(We=ee.stylize("[Setter]","special")),Ne(se,De)||(en="["+De+"]"),We||(ee.seen.indexOf(rn.value)<0?(We=ut(fe)?bt(ee,rn.value,null):bt(ee,rn.value,fe-1),We.indexOf(`
|
|
|
`)>-1&&(We=Oe?We.split(`
|
|
|
`).map(function(ke){return" "+ke}).join(`
|
|
|
`).substr(2):`
|
|
|
`+We.split(`
|
|
|
`).map(function(ke){return" "+ke}).join(`
|
|
|
`))):We=ee.stylize("[Circular]","special")),Dt(en)){if(Oe&&De.match(/^\d+$/))return We;en=JSON.stringify(""+De),en.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(en=en.substr(1,en.length-2),en=ee.stylize(en,"name")):(en=en.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),en=ee.stylize(en,"string"))}return en+": "+We}function tt(ee,ae,fe){var se=0;return ee.reduce(function(De,Oe){return se++,Oe.indexOf(`
|
|
|
`)>=0&&se++,De+Oe.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?fe[0]+(ae===""?"":ae+`
|
|
|
`)+" "+ee.join(`,
|
|
|
`)+" "+fe[1]:fe[0]+ae+" "+ee.join(", ")+" "+fe[1]}function st(ee){return Array.isArray(ee)}function rt(ee){return typeof ee=="boolean"}function ut(ee){return ee===null}function ct(ee){return ee==null}function pt(ee){return typeof ee=="number"}function mt(ee){return typeof ee=="string"}function Ct(ee){return typeof ee=="symbol"}function Dt(ee){return ee===void 0}function Ut(ee){return Ft(ee)&&oe(ee)==="[object RegExp]"}function Ft(ee){return typeof ee=="object"&&ee!==null}function Qt(ee){return Ft(ee)&&oe(ee)==="[object Date]"}function $t(ee){return Ft(ee)&&(oe(ee)==="[object Error]"||ee instanceof Error)}function Kt(ee){return typeof ee=="function"}function ue(ee){return ee===null||typeof ee=="boolean"||typeof ee=="number"||typeof ee=="string"||typeof ee=="symbol"||ee===void 0}function oe(ee){return Object.prototype.toString.call(ee)}function we(ee){return ee<10?"0"+ee.toString(10):ee.toString(10)}function Se(){var ee=new Date,ae=[we(ee.getHours()),we(ee.getMinutes()),we(ee.getSeconds())].join(":");return[ee.getDate(),Jt[ee.getMonth()],ae].join(" ")}function Ne(ee,ae){return Object.prototype.hasOwnProperty.call(ee,ae)}var pe=/%[sdj%]/g;Yt.format=function(ee){if(!mt(ee)){for(var ae=[],fe=0;fe<arguments.length;fe++)ae.push(xt(arguments[fe]));return ae.join(" ")}for(var fe=1,se=arguments,De=se.length,Oe=String(ee).replace(pe,function(rn){if(rn==="%%")return"%";if(fe>=De)return rn;switch(rn){case"%s":return String(se[fe++]);case"%d":return Number(se[fe++]);case"%j":try{return JSON.stringify(se[fe++])}catch(ke){return"[Circular]"}default:return rn}}),en=se[fe];fe<De;en=se[++fe])ut(en)||!Ft(en)?Oe+=" "+en:Oe+=" "+xt(en);return Oe},Yt.deprecate=function(ee,ae){function fe(){if(!se){if(Nt.throwDeprecation)throw new Error(ae);Nt.traceDeprecation?console.trace(ae):console.error(ae),se=!0}return ee.apply(this,arguments)}if(Dt(Wt.process))return function(){return Yt.deprecate(ee,ae).apply(this,arguments)};if(Nt.noDeprecation===!0)return ee;var se=!1;return fe};var Ue,de={};Yt.debuglog=function(ee){if(Dt(Ue)&&(Ue=Nt.env.NODE_DEBUG||""),ee=ee.toUpperCase(),!de[ee])if(new RegExp("\\b"+ee+"\\b","i").test(Ue)){var ae=Nt.pid;de[ee]=function(){var fe=Yt.format.apply(Yt,arguments);console.error("%s %d: %s",ee,ae,fe)}}else de[ee]=function(){};return de[ee]},Yt.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"},Yt.isArray=st,Yt.isBoolean=rt,Yt.isNull=ut,Yt.isNullOrUndefined=ct,Yt.isNumber=pt,Yt.isString=mt,Yt.isSymbol=Ct,Yt.isUndefined=Dt,Yt.isRegExp=Ut,Yt.isObject=Ft,Yt.isDate=Qt,Yt.isError=$t,Yt.isFunction=Kt,Yt.isPrimitive=ue,Yt.isBuffer=yt("./support/isBuffer");var Jt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];Yt.log=function(){console.log("%s - %s",Se(),Yt.format.apply(Yt,arguments))},Yt.inherits=yt("inherits"),Yt._extend=function(ee,ae){if(!ae||!Ft(ae))return ee;for(var fe=Object.keys(ae),se=fe.length;se--;)ee[fe[se]]=ae[fe[se]];return ee}}).call(this,yt("_process"),typeof Gt.g!="undefined"?Gt.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":206,_process:173,inherits:162}],208:[function(yt,Vt,Yt){"use strict";(function(){Yt.stripBOM=function(Nt){return Nt[0]==="\uFEFF"?Nt.substring(1):Nt}}).call(void 0)},{}],209:[function(yt,Vt,Yt){"use strict";function Nt(At){return At&&At.__esModule?At:{default:At}}var Wt=yt("babel-runtime/helpers/typeof"),xt=Nt(Wt),Ot=yt("babel-runtime/core-js/object/keys"),Bt=Nt(Ot);(function(){var At,bt,Tt,It,vt,et={}.hasOwnProperty;At=yt("xmlbuilder"),bt=yt("./defaults").defaults,It=function(tt){return typeof tt=="string"&&(tt.indexOf("&")>=0||tt.indexOf(">")>=0||tt.indexOf("<")>=0)},vt=function(tt){return"<![CDATA["+Tt(tt)+"]]>"},Tt=function(tt){return tt.replace("]]>","]]]]><![CDATA[>")},Yt.Builder=function(){function tt(st){var rt,ut,ct;this.options={},ut=bt[.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,pt,mt;return rt=this.options.attrkey,ut=this.options.charkey,(0,Bt.default)(st).length===1&&this.options.rootName===bt[.2].rootName?(mt=(0,Bt.default)(st)[0],st=st[mt]):mt=this.options.rootName,ct=function(Ct){return function(Dt,Ut){var Ft,Qt,$t,Kt,ue,oe;if((Ut===void 0?"undefined":(0,xt.default)(Ut))!=="object")Ct.options.cdata&&It(Ut)?Dt.raw(vt(Ut)):Dt.txt(Ut);else if(Array.isArray(Ut)){for(Kt in Ut)if(et.call(Ut,Kt)){Qt=Ut[Kt];for(ue in Qt)$t=Qt[ue],Dt=ct(Dt.ele(ue),$t).up()}}else for(ue in Ut)if(et.call(Ut,ue))if(Qt=Ut[ue],ue===rt){if((Qt===void 0?"undefined":(0,xt.default)(Qt))==="object")for(Ft in Qt)oe=Qt[Ft],Dt=Dt.att(Ft,oe)}else if(ue===ut)Dt=Ct.options.cdata&&It(Qt)?Dt.raw(vt(Qt)):Dt.txt(Qt);else if(Array.isArray(Qt))for(Kt in Qt)et.call(Qt,Kt)&&($t=Qt[Kt],Dt=typeof $t=="string"?Ct.options.cdata&&It($t)?Dt.ele(ue).raw(vt($t)).up():Dt.ele(ue,$t).up():ct(Dt.ele(ue),$t).up());else(Qt===void 0?"undefined":(0,xt.default)(Qt))==="object"?Dt=ct(Dt.ele(ue),Qt).up():typeof Qt=="string"&&Ct.options.cdata&&It(Qt)?Dt=Dt.ele(ue).raw(vt(Qt)).up():(Qt==null&&(Qt=""),Dt=Dt.ele(ue,Qt.toString()).up());return Dt}}(this),pt=At.create(mt,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),ct(pt,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(yt,Vt,Yt){"use strict";(function(){Yt.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(yt,Vt,Yt){"use strict";function Nt(Tt){return Tt&&Tt.__esModule?Tt:{default:Tt}}var Wt=yt("babel-runtime/core-js/object/get-own-property-names"),xt=Nt(Wt),Ot=yt("babel-runtime/core-js/object/keys"),Bt=Nt(Ot),At=yt("babel-runtime/helpers/typeof"),bt=Nt(At);(function(){var Tt,It,vt,et,tt,st,rt,ut,ct=function(Ct,Dt){return function(){return Ct.apply(Dt,arguments)}},pt=function(Ct,Dt){function Ut(){this.constructor=Ct}for(var Ft in Dt)mt.call(Dt,Ft)&&(Ct[Ft]=Dt[Ft]);return Ut.prototype=Dt.prototype,Ct.prototype=new Ut,Ct.__super__=Dt.prototype,Ct},mt={}.hasOwnProperty;rt=yt("sax"),vt=yt("events"),Tt=yt("./bom"),st=yt("./processors"),ut=yt("timers").setImmediate,It=yt("./defaults").defaults,et=function(Ct){return(Ct===void 0?"undefined":(0,bt.default)(Ct))==="object"&&Ct!=null&&(0,Bt.default)(Ct).length===0},tt=function(Ct,Dt,Ut){var Ft,Qt,$t;for(Ft=0,Qt=Ct.length;Ft<Qt;Ft++)$t=Ct[Ft],Dt=$t(Dt,Ut);return Dt},Yt.Parser=function(Ct){function Dt(Ut){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,$t;if(!(this instanceof Yt.Parser))return new Yt.Parser(Ut);this.options={},Qt=It[.2];for(Ft in Qt)mt.call(Qt,Ft)&&($t=Qt[Ft],this.options[Ft]=$t);for(Ft in Ut)mt.call(Ut,Ft)&&($t=Ut[Ft],this.options[Ft]=$t);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 pt(Dt,Ct),Dt.prototype.processAsync=function(){var Ut,Ft;try{return this.remaining.length<=this.options.chunkSize?(Ut=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(Ut),this.saxParser.close()):(Ut=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(Ut),ut(this.processAsync))}catch(Qt){if(Ft=Qt,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(Ft)}},Dt.prototype.assignOrPush=function(Ut,Ft,Qt){return Ft in Ut?(Ut[Ft]instanceof Array||(Ut[Ft]=[Ut[Ft]]),Ut[Ft].push(Qt)):this.options.explicitArray?Ut[Ft]=[Qt]:Ut[Ft]=Qt},Dt.prototype.reset=function(){var Ut,Ft,Qt,$t;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(Kt){return function(ue){if(Kt.saxParser.resume(),!Kt.saxParser.errThrown)return Kt.saxParser.errThrown=!0,Kt.emit("error",ue)}}(this),this.saxParser.onend=function(Kt){return function(){if(!Kt.saxParser.ended)return Kt.saxParser.ended=!0,Kt.emit("end",Kt.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,$t=[],Ut=this.options.attrkey,Ft=this.options.charkey,this.saxParser.onopentag=function(Kt){return function(ue){var oe,we,Se,Ne,pe;if(Se={},Se[Ft]="",!Kt.options.ignoreAttrs){pe=ue.attributes;for(oe in pe)mt.call(pe,oe)&&(Ut in Se||Kt.options.mergeAttrs||(Se[Ut]={}),we=Kt.options.attrValueProcessors?tt(Kt.options.attrValueProcessors,ue.attributes[oe],oe):ue.attributes[oe],Ne=Kt.options.attrNameProcessors?tt(Kt.options.attrNameProcessors,oe):oe,Kt.options.mergeAttrs?Kt.assignOrPush(Se,Ne,we):Se[Ut][Ne]=we)}return Se["#name"]=Kt.options.tagNameProcessors?tt(Kt.options.tagNameProcessors,ue.name):ue.name,Kt.options.xmlns&&(Se[Kt.options.xmlnskey]={uri:ue.uri,local:ue.local}),$t.push(Se)}}(this),this.saxParser.onclosetag=function(Kt){return function(){var ue,oe,we,Se,Ne,pe,Ue,de,Jt,ee;if(pe=$t.pop(),Ne=pe["#name"],Kt.options.explicitChildren&&Kt.options.preserveChildrenOrder||delete pe["#name"],pe.cdata===!0&&(ue=pe.cdata,delete pe.cdata),Jt=$t[$t.length-1],pe[Ft].match(/^\s*$/)&&!ue?(oe=pe[Ft],delete pe[Ft]):(Kt.options.trim&&(pe[Ft]=pe[Ft].trim()),Kt.options.normalize&&(pe[Ft]=pe[Ft].replace(/\s{2,}/g," ").trim()),pe[Ft]=Kt.options.valueProcessors?tt(Kt.options.valueProcessors,pe[Ft],Ne):pe[Ft],(0,Bt.default)(pe).length===1&&Ft in pe&&!Kt.EXPLICIT_CHARKEY&&(pe=pe[Ft])),et(pe)&&(pe=Kt.options.emptyTag!==""?Kt.options.emptyTag:oe),Kt.options.validator!=null&&(ee="/"+function(){var ae,fe,se;for(se=[],ae=0,fe=$t.length;ae<fe;ae++)Se=$t[ae],se.push(Se["#name"]);return se}().concat(Ne).join("/"),function(){var ae;try{pe=Kt.options.validator(ee,Jt&&Jt[Ne],pe)}catch(fe){return ae=fe,Kt.emit("error",ae)}}()),Kt.options.explicitChildren&&!Kt.options.mergeAttrs&&(pe===void 0?"undefined":(0,bt.default)(pe))==="object")if(Kt.options.preserveChildrenOrder){if(Jt){Jt[Kt.options.childkey]=Jt[Kt.options.childkey]||[],Ue={};for(we in pe)mt.call(pe,we)&&(Ue[we]=pe[we]);Jt[Kt.options.childkey].push(Ue),delete pe["#name"],(0,Bt.default)(pe).length===1&&Ft in pe&&!Kt.EXPLICIT_CHARKEY&&(pe=pe[Ft])}}else Se={},Kt.options.attrkey in pe&&(Se[Kt.options.attrkey]=pe[Kt.options.attrkey],delete pe[Kt.options.attrkey]),!Kt.options.charsAsChildren&&Kt.options.charkey in pe&&(Se[Kt.options.charkey]=pe[Kt.options.charkey],delete pe[Kt.options.charkey]),(0,xt.default)(pe).length>0&&(Se[Kt.options.childkey]=pe),pe=Se;return $t.length>0?Kt.assignOrPush(Jt,Ne,pe):(Kt.options.explicitRoot&&(de=pe,pe={},pe[Ne]=de),Kt.resultObject=pe,Kt.saxParser.ended=!0,Kt.emit("end",Kt.resultObject))}}(this),Qt=function(Kt){return function(ue){var oe,we;if(we=$t[$t.length-1])return we[Ft]+=ue,Kt.options.explicitChildren&&Kt.options.preserveChildrenOrder&&Kt.options.charsAsChildren&&(Kt.options.includeWhiteChars||ue.replace(/\\n/g,"").trim()!=="")&&(we[Kt.options.childkey]=we[Kt.options.childkey]||[],oe={"#name":"__text__"},oe[Ft]=ue,Kt.options.normalize&&(oe[Ft]=oe[Ft].replace(/\s{2,}/g," ").trim()),we[Kt.options.childkey].push(oe)),we}}(this),this.saxParser.ontext=Qt,this.saxParser.oncdata=function(Kt){return function(ue){var oe;if(oe=Qt(ue))return oe.cdata=!0}}()},Dt.prototype.parseString=function(Ut,Ft){var Qt;Ft!=null&&typeof Ft=="function"&&(this.on("end",function($t){return this.reset(),Ft(null,$t)}),this.on("error",function($t){return this.reset(),Ft($t)}));try{return Ut=Ut.toString(),Ut.trim()===""?(this.emit("end",null),!0):(Ut=Tt.stripBOM(Ut),this.options.async?(this.remaining=Ut,ut(this.processAsync),this.saxParser):this.saxParser.write(Ut).close())}catch($t){if(Qt=$t,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",Qt),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw Qt}},Dt}(vt.EventEmitter),Yt.parseString=function(Ct,Dt,Ut){var Ft,Qt,$t;return Ut!=null?(typeof Ut=="function"&&(Ft=Ut),(Dt===void 0?"undefined":(0,bt.default)(Dt))==="object"&&(Qt=Dt)):(typeof Dt=="function"&&(Ft=Dt),Qt={}),$t=new Yt.Parser(Qt),$t.parseString(Ct,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(yt,Vt,Yt){"use strict";(function(){var Nt;Nt=new RegExp(/(?!xmlns)^.*:/),Yt.normalize=function(Wt){return Wt.toLowerCase()},Yt.firstCharLowerCase=function(Wt){return Wt.charAt(0).toLowerCase()+Wt.slice(1)},Yt.stripPrefix=function(Wt){return Wt.replace(Nt,"")},Yt.parseNumbers=function(Wt){return isNaN(Wt)||(Wt=Wt%1==0?parseInt(Wt,10):parseFloat(Wt)),Wt},Yt.parseBooleans=function(Wt){return/^(?:true|false)$/i.test(Wt)&&(Wt=Wt.toLowerCase()==="true"),Wt}}).call(void 0)},{}],213:[function(yt,Vt,Yt){"use strict";(function(){var Nt,Wt,xt,Ot,Bt=function(bt,Tt){function It(){this.constructor=bt}for(var vt in Tt)At.call(Tt,vt)&&(bt[vt]=Tt[vt]);return It.prototype=Tt.prototype,bt.prototype=new It,bt.__super__=Tt.prototype,bt},At={}.hasOwnProperty;Wt=yt("./defaults"),Nt=yt("./builder"),xt=yt("./parser"),Ot=yt("./processors"),Yt.defaults=Wt.defaults,Yt.processors=Ot,Yt.ValidationError=function(bt){function Tt(It){this.message=It}return Bt(Tt,bt),Tt}(Error),Yt.Builder=Nt.Builder,Yt.Parser=xt.Parser,Yt.parseString=xt.parseString}).call(void 0)},{"./builder":209,"./defaults":210,"./parser":211,"./processors":212}],214:[function(yt,Vt,Yt){"use strict";function Nt(Tt){return Tt&&Tt.__esModule?Tt:{default:Tt}}var Wt=yt("babel-runtime/core-js/object/get-prototype-of"),xt=Nt(Wt),Ot=yt("babel-runtime/helpers/typeof"),Bt=Nt(Ot),At=yt("babel-runtime/core-js/object/assign"),bt=Nt(At);(function(){var Tt,It,vt,et,tt,st,rt=[].slice,ut={}.hasOwnProperty;Tt=function(){var ct,pt,mt,Ct,Dt,Ut;if(Ut=arguments[0],Dt=2<=arguments.length?rt.call(arguments,1):[],et(bt.default))bt.default.apply(null,arguments);else for(ct=0,mt=Dt.length;ct<mt;ct++)if((Ct=Dt[ct])!=null)for(pt in Ct)ut.call(Ct,pt)&&(Ut[pt]=Ct[pt]);return Ut},et=function(ct){return!!ct&&Object.prototype.toString.call(ct)==="[object Function]"},tt=function(ct){var pt;return!!ct&&((pt=ct===void 0?"undefined":(0,Bt.default)(ct))==="function"||pt==="object")},It=function(ct){return et(Array.isArray)?Array.isArray(ct):Object.prototype.toString.call(ct)==="[object Array]"},vt=function(ct){var pt;if(It(ct))return!ct.length;for(pt in ct)if(ut.call(ct,pt))return!1;return!0},st=function(ct){var pt,mt;return tt(ct)&&(mt=(0,xt.default)(ct))&&(pt=mt.constructor)&&typeof pt=="function"&&pt instanceof pt&&Function.prototype.toString.call(pt)===Function.prototype.toString.call(Object)},Vt.exports.assign=Tt,Vt.exports.isFunction=et,Vt.exports.isObject=tt,Vt.exports.isArray=It,Vt.exports.isEmpty=vt,Vt.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(yt,Vt,Yt){"use strict";var Nt=yt("babel-runtime/core-js/object/create"),Wt=function(xt){return xt&&xt.__esModule?xt:{default:xt}}(Nt);(function(){Vt.exports=function(){function xt(Ot,Bt,At){if(this.options=Ot.options,this.stringify=Ot.stringify,Bt==null)throw new Error("Missing attribute name of element "+Ot.name);if(At==null)throw new Error("Missing attribute value for attribute "+Bt+" of element "+Ot.name);this.name=this.stringify.attName(Bt),this.value=this.stringify.attValue(At)}return xt.prototype.clone=function(){return(0,Wt.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(yt,Vt,Yt){"use strict";var Nt=yt("babel-runtime/core-js/object/create"),Wt=function(xt){return xt&&xt.__esModule?xt:{default:xt}}(Nt);(function(){var xt,Ot=function(At,bt){function Tt(){this.constructor=At}for(var It in bt)Bt.call(bt,It)&&(At[It]=bt[It]);return Tt.prototype=bt.prototype,At.prototype=new Tt,At.__super__=bt.prototype,At},Bt={}.hasOwnProperty;xt=yt("./XMLNode"),Vt.exports=function(At){function bt(Tt,It){if(bt.__super__.constructor.call(this,Tt),It==null)throw new Error("Missing CDATA text");this.text=this.stringify.cdata(It)}return Ot(bt,At),bt.prototype.clone=function(){return(0,Wt.default)(this)},bt.prototype.toString=function(Tt){return this.options.writer.set(Tt).cdata(this)},bt}(xt)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],217:[function(yt,Vt,Yt){"use strict";var Nt=yt("babel-runtime/core-js/object/create"),Wt=function(xt){return xt&&xt.__esModule?xt:{default:xt}}(Nt);(function(){var xt,Ot=function(At,bt){function Tt(){this.constructor=At}for(var It in bt)Bt.call(bt,It)&&(At[It]=bt[It]);return Tt.prototype=bt.prototype,At.prototype=new Tt,At.__super__=bt.prototype,At},Bt={}.hasOwnProperty;xt=yt("./XMLNode"),Vt.exports=function(At){function bt(Tt,It){if(bt.__super__.constructor.call(this,Tt),It==null)throw new Error("Missing comment text");this.text=this.stringify.comment(It)}return Ot(bt,At),bt.prototype.clone=function(){return(0,Wt.default)(this)},bt.prototype.toString=function(Tt){return this.options.writer.set(Tt).comment(this)},bt}(xt)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],218:[function(yt,Vt,Yt){"use strict";(function(){var Nt,Wt=function(Ot,Bt){function At(){this.constructor=Ot}for(var bt in Bt)xt.call(Bt,bt)&&(Ot[bt]=Bt[bt]);return At.prototype=Bt.prototype,Ot.prototype=new At,Ot.__super__=Bt.prototype,Ot},xt={}.hasOwnProperty;Nt=yt("./XMLNode"),Vt.exports=function(Ot){function Bt(At,bt,Tt,It,vt,et){if(Bt.__super__.constructor.call(this,At),bt==null)throw new Error("Missing DTD element name");if(Tt==null)throw new Error("Missing DTD attribute name");if(!It)throw new Error("Missing DTD attribute type");if(!vt)throw new Error("Missing DTD attribute default");if(vt.indexOf("#")!==0&&(vt="#"+vt),!vt.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT");if(et&&!vt.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT");this.elementName=this.stringify.eleName(bt),this.attributeName=this.stringify.attName(Tt),this.attributeType=this.stringify.dtdAttType(It),this.defaultValue=this.stringify.dtdAttDefault(et),this.defaultValueType=vt}return Wt(Bt,Ot),Bt.prototype.toString=function(At){return this.options.writer.set(At).dtdAttList(this)},Bt}(Nt)}).call(void 0)},{"./XMLNode":227}],219:[function(yt,Vt,Yt){"use strict";(function(){var Nt,Wt=function(Ot,Bt){function At(){this.constructor=Ot}for(var bt in Bt)xt.call(Bt,bt)&&(Ot[bt]=Bt[bt]);return At.prototype=Bt.prototype,Ot.prototype=new At,Ot.__super__=Bt.prototype,Ot},xt={}.hasOwnProperty;Nt=yt("./XMLNode"),Vt.exports=function(Ot){function Bt(At,bt,Tt){if(Bt.__super__.constructor.call(this,At),bt==null)throw new Error("Missing DTD element name");Tt||(Tt="(#PCDATA)"),Array.isArray(Tt)&&(Tt="("+Tt.join(",")+")"),this.name=this.stringify.eleName(bt),this.value=this.stringify.dtdElementValue(Tt)}return Wt(Bt,Ot),Bt.prototype.toString=function(At){return this.options.writer.set(At).dtdElement(this)},Bt}(Nt)}).call(void 0)},{"./XMLNode":227}],220:[function(yt,Vt,Yt){"use strict";(function(){var Nt,Wt,xt=function(Bt,At){function bt(){this.constructor=Bt}for(var Tt in At)Ot.call(At,Tt)&&(Bt[Tt]=At[Tt]);return bt.prototype=At.prototype,Bt.prototype=new bt,Bt.__super__=At.prototype,Bt},Ot={}.hasOwnProperty;Wt=yt("./Utility").isObject,Nt=yt("./XMLNode"),Vt.exports=function(Bt){function At(bt,Tt,It,vt){if(At.__super__.constructor.call(this,bt),It==null)throw new Error("Missing entity name");if(vt==null)throw new Error("Missing entity value");if(this.pe=!!Tt,this.name=this.stringify.eleName(It),Wt(vt)){if(!vt.pubID&&!vt.sysID)throw new Error("Public and/or system identifiers are required for an external entity");if(vt.pubID&&!vt.sysID)throw new Error("System identifier is required for a public external entity");if(vt.pubID!=null&&(this.pubID=this.stringify.dtdPubID(vt.pubID)),vt.sysID!=null&&(this.sysID=this.stringify.dtdSysID(vt.sysID)),vt.nData!=null&&(this.nData=this.stringify.dtdNData(vt.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity")}else this.value=this.stringify.dtdEntityValue(vt)}return xt(At,Bt),At.prototype.toString=function(bt){return this.options.writer.set(bt).dtdEntity(this)},At}(Nt)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],221:[function(yt,Vt,Yt){"use strict";(function(){var Nt,Wt=function(Ot,Bt){function At(){this.constructor=Ot}for(var bt in Bt)xt.call(Bt,bt)&&(Ot[bt]=Bt[bt]);return At.prototype=Bt.prototype,Ot.prototype=new At,Ot.__super__=Bt.prototype,Ot},xt={}.hasOwnProperty;Nt=yt("./XMLNode"),Vt.exports=function(Ot){function Bt(At,bt,Tt){if(Bt.__super__.constructor.call(this,At),bt==null)throw new Error("Missing notation name");if(!Tt.pubID&&!Tt.sysID)throw new Error("Public or system identifiers are required for an external entity");this.name=this.stringify.eleName(bt),Tt.pubID!=null&&(this.pubID=this.stringify.dtdPubID(Tt.pubID)),Tt.sysID!=null&&(this.sysID=this.stringify.dtdSysID(Tt.sysID))}return Wt(Bt,Ot),Bt.prototype.toString=function(At){return this.options.writer.set(At).dtdNotation(this)},Bt}(Nt)}).call(void 0)},{"./XMLNode":227}],222:[function(yt,Vt,Yt){"use strict";(function(){var Nt,Wt,xt=function(Bt,At){function bt(){this.constructor=Bt}for(var Tt in At)Ot.call(At,Tt)&&(Bt[Tt]=At[Tt]);return bt.prototype=At.prototype,Bt.prototype=new bt,Bt.__super__=At.prototype,Bt},Ot={}.hasOwnProperty;Wt=yt("./Utility").isObject,Nt=yt("./XMLNode"),Vt.exports=function(Bt){function At(bt,Tt,It,vt){var et;At.__super__.constructor.call(this,bt),Wt(Tt)&&(et=Tt,Tt=et.version,It=et.encoding,vt=et.standalone),Tt||(Tt="1.0"),this.version=this.stringify.xmlVersion(Tt),It!=null&&(this.encoding=this.stringify.xmlEncoding(It)),vt!=null&&(this.standalone=this.stringify.xmlStandalone(vt))}return xt(At,Bt),At.prototype.toString=function(bt){return this.options.writer.set(bt).declaration(this)},At}(Nt)}).call(void 0)},{"./Utility":214,"./XMLNode":227}],223:[function(yt,Vt,Yt){"use strict";(function(){var Nt,Wt,xt,Ot,Bt,At,bt=function(It,vt){function et(){this.constructor=It}for(var tt in vt)Tt.call(vt,tt)&&(It[tt]=vt[tt]);return et.prototype=vt.prototype,It.prototype=new et,It.__super__=vt.prototype,It},Tt={}.hasOwnProperty;At=yt("./Utility").isObject,Bt=yt("./XMLNode"),Nt=yt("./XMLDTDAttList"),xt=yt("./XMLDTDEntity"),Wt=yt("./XMLDTDElement"),Ot=yt("./XMLDTDNotation"),Vt.exports=function(It){function vt(et,tt,st){var rt,ut;vt.__super__.constructor.call(this,et),this.documentObject=et,At(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 bt(vt,It),vt.prototype.element=function(et,tt){var st;return st=new Wt(this,et,tt),this.children.push(st),this},vt.prototype.attList=function(et,tt,st,rt,ut){var ct;return ct=new Nt(this,et,tt,st,rt,ut),this.children.push(ct),this},vt.prototype.entity=function(et,tt){var st;return st=new xt(this,!1,et,tt),this.children.push(st),this},vt.prototype.pEntity=function(et,tt){var st;return st=new xt(this,!0,et,tt),this.children.push(st),this},vt.prototype.notation=function(et,tt){var st;return st=new Ot(this,et,tt),this.children.push(st),this},vt.prototype.toString=function(et){return this.options.writer.set(et).docType(this)},vt.prototype.ele=function(et,tt){return this.element(et,tt)},vt.prototype.att=function(et,tt,st,rt,ut){return this.attList(et,tt,st,rt,ut)},vt.prototype.ent=function(et,tt){return this.entity(et,tt)},vt.prototype.pent=function(et,tt){return this.pEntity(et,tt)},vt.prototype.not=function(et,tt){return this.notation(et,tt)},vt.prototype.up=function(){return this.root()||this.documentObject},vt}(Bt)}).call(void 0)},{"./Utility":214,"./XMLDTDAttList":218,"./XMLDTDElement":219,"./XMLDTDEntity":220,"./XMLDTDNotation":221,"./XMLNode":227}],224:[function(yt,Vt,Yt){"use strict";(function(){var Nt,Wt,xt,Ot,Bt=function(bt,Tt){function It(){this.constructor=bt}for(var vt in Tt)At.call(Tt,vt)&&(bt[vt]=Tt[vt]);return It.prototype=Tt.prototype,bt.prototype=new It,bt.__super__=Tt.prototype,bt},At={}.hasOwnProperty;Ot=yt("./Utility").isPlainObject,Nt=yt("./XMLNode"),xt=yt("./XMLStringifier"),Wt=yt("./XMLStringWriter"),Vt.exports=function(bt){function Tt(It){Tt.__super__.constructor.call(this,null),It||(It={}),It.writer||(It.writer=new Wt),this.options=It,this.stringify=new xt(It),this.isDocument=!0}return Bt(Tt,bt),Tt.prototype.end=function(It){var vt;return It?Ot(It)&&(vt=It,It=this.options.writer.set(vt)):It=this.options.writer,It.document(this)},Tt.prototype.toString=function(It){return this.options.writer.set(It).document(this)},Tt}(Nt)}).call(void 0)},{"./Utility":214,"./XMLNode":227,"./XMLStringWriter":231,"./XMLStringifier":232}],225:[function(yt,Vt,Yt){"use strict";(function(){var Nt,Wt,xt,Ot,Bt,At,bt,Tt,It,vt,et,tt,st,rt,ut,ct,pt,mt,Ct,Dt={}.hasOwnProperty;Ct=yt("./Utility"),pt=Ct.isObject,ct=Ct.isFunction,mt=Ct.isPlainObject,vt=yt("./XMLElement"),Wt=yt("./XMLCData"),xt=yt("./XMLComment"),tt=yt("./XMLRaw"),ut=yt("./XMLText"),et=yt("./XMLProcessingInstruction"),Tt=yt("./XMLDeclaration"),It=yt("./XMLDocType"),Ot=yt("./XMLDTDAttList"),At=yt("./XMLDTDEntity"),Bt=yt("./XMLDTDElement"),bt=yt("./XMLDTDNotation"),Nt=yt("./XMLAttribute"),rt=yt("./XMLStringifier"),st=yt("./XMLStringWriter"),Vt.exports=function(){function Ut(Ft,Qt,$t){var Kt;Ft||(Ft={}),Ft.writer?mt(Ft.writer)&&(Kt=Ft.writer,Ft.writer=new st(Kt)):Ft.writer=new st(Ft),this.options=Ft,this.writer=Ft.writer,this.stringify=new rt(Ft),this.onDataCallback=Qt||function(){},this.onEndCallback=$t||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return Ut.prototype.node=function(Ft,Qt,$t){var Kt;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(),pt(Qt)||(Kt=[Qt,$t],$t=Kt[0],Qt=Kt[1]),this.currentNode=new vt(this,Ft,Qt),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,$t!=null&&this.text($t),this},Ut.prototype.element=function(Ft,Qt,$t){return this.currentNode&&this.currentNode instanceof It?this.dtdElement.apply(this,arguments):this.node(Ft,Qt,$t)},Ut.prototype.attribute=function(Ft,Qt){var $t,Kt;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()),pt(Ft))for($t in Ft)Dt.call(Ft,$t)&&(Kt=Ft[$t],this.attribute($t,Kt));else ct(Qt)&&(Qt=Qt.apply()),this.options.skipNullAttributes&&Qt==null||(this.currentNode.attributes[Ft]=new Nt(this,Ft,Qt));return this},Ut.prototype.text=function(Ft){var Qt;return this.openCurrent(),Qt=new ut(this,Ft),this.onData(this.writer.text(Qt,this.currentLevel+1)),this},Ut.prototype.cdata=function(Ft){var Qt;return this.openCurrent(),Qt=new Wt(this,Ft),this.onData(this.writer.cdata(Qt,this.currentLevel+1)),this},Ut.prototype.comment=function(Ft){var Qt;return this.openCurrent(),Qt=new xt(this,Ft),this.onData(this.writer.comment(Qt,this.currentLevel+1)),this},Ut.prototype.raw=function(Ft){var Qt;return this.openCurrent(),Qt=new tt(this,Ft),this.onData(this.writer.raw(Qt,this.currentLevel+1)),this},Ut.prototype.instruction=function(Ft,Qt){var $t,Kt,ue,oe,we;if(this.openCurrent(),Ft!=null&&(Ft=Ft.valueOf()),Qt!=null&&(Qt=Qt.valueOf()),Array.isArray(Ft))for($t=0,oe=Ft.length;$t<oe;$t++)Kt=Ft[$t],this.instruction(Kt);else if(pt(Ft))for(Kt in Ft)Dt.call(Ft,Kt)&&(ue=Ft[Kt],this.instruction(Kt,ue));else ct(Qt)&&(Qt=Qt.apply()),we=new et(this,Ft,Qt),this.onData(this.writer.processingInstruction(we,this.currentLevel+1));return this},Ut.prototype.declaration=function(Ft,Qt,$t){var Kt;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node");return Kt=new Tt(this,Ft,Qt,$t),this.onData(this.writer.declaration(Kt,this.currentLevel+1)),this},Ut.prototype.doctype=function(Ft,Qt,$t){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,$t),this.currentNode.rootNodeName=Ft,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},Ut.prototype.dtdElement=function(Ft,Qt){var $t;return this.openCurrent(),$t=new Bt(this,Ft,Qt),this.onData(this.writer.dtdElement($t,this.currentLevel+1)),this},Ut.prototype.attList=function(Ft,Qt,$t,Kt,ue){var oe;return this.openCurrent(),oe=new Ot(this,Ft,Qt,$t,Kt,ue),this.onData(this.writer.dtdAttList(oe,this.currentLevel+1)),this},Ut.prototype.entity=function(Ft,Qt){var $t;return this.openCurrent(),$t=new At(this,!1,Ft,Qt),this.onData(this.writer.dtdEntity($t,this.currentLevel+1)),this},Ut.prototype.pEntity=function(Ft,Qt){var $t;return this.openCurrent(),$t=new At(this,!0,Ft,Qt),this.onData(this.writer.dtdEntity($t,this.currentLevel+1)),this},Ut.prototype.notation=function(Ft,Qt){var $t;return this.openCurrent(),$t=new bt(this,Ft,Qt),this.onData(this.writer.dtdNotation($t,this.currentLevel+1)),this},Ut.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},Ut.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},Ut.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},Ut.prototype.openNode=function(Ft){if(!Ft.isOpen)return!this.root&&this.currentLevel===0&&Ft instanceof vt&&(this.root=Ft),this.onData(this.writer.openNode(Ft,this.currentLevel)),Ft.isOpen=!0},Ut.prototype.closeNode=function(Ft){if(!Ft.isClosed)return this.onData(this.writer.closeNode(Ft,this.currentLevel)),Ft.isClosed=!0},Ut.prototype.onData=function(Ft){return this.documentStarted=!0,this.onDataCallback(Ft)},Ut.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},Ut.prototype.ele=function(){return this.element.apply(this,arguments)},Ut.prototype.nod=function(Ft,Qt,$t){return this.node(Ft,Qt,$t)},Ut.prototype.txt=function(Ft){return this.text(Ft)},Ut.prototype.dat=function(Ft){return this.cdata(Ft)},Ut.prototype.com=function(Ft){return this.comment(Ft)},Ut.prototype.ins=function(Ft,Qt){return this.instruction(Ft,Qt)},Ut.prototype.dec=function(Ft,Qt,$t){return this.declaration(Ft,Qt,$t)},Ut.prototype.dtd=function(Ft,Qt,$t){return this.doctype(Ft,Qt,$t)},Ut.prototype.e=function(Ft,Qt,$t){return this.element(Ft,Qt,$t)},Ut.prototype.n=function(Ft,Qt,$t){return this.node(Ft,Qt,$t)},Ut.prototype.t=function(Ft){return this.text(Ft)},Ut.prototype.d=function(Ft){return this.cdata(Ft)},Ut.prototype.c=function(Ft){return this.comment(Ft)},Ut.prototype.r=function(Ft){return this.raw(Ft)},Ut.prototype.i=function(Ft,Qt){return this.instruction(Ft,Qt)},Ut.prototype.att=function(){return this.currentNode&&this.currentNode instanceof It?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Ut.prototype.a=function(){return this.currentNode&&this.currentNode instanceof It?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},Ut.prototype.ent=function(Ft,Qt){return this.entity(Ft,Qt)},Ut.prototype.pent=function(Ft,Qt){return this.pEntity(Ft,Qt)},Ut.prototype.not=function(Ft,Qt){return this.notation(Ft,Qt)},Ut}()}).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(yt,Vt,Yt){"use strict";var Nt=yt("babel-runtime/core-js/object/create"),Wt=function(xt){return xt&&xt.__esModule?xt:{default:xt}}(Nt);(function(){var xt,Ot,Bt,At,bt,Tt=function(vt,et){function tt(){this.constructor=vt}for(var st in et)It.call(et,st)&&(vt[st]=et[st]);return tt.prototype=et.prototype,vt.prototype=new tt,vt.__super__=et.prototype,vt},It={}.hasOwnProperty;bt=yt("./Utility"),At=bt.isObject,Bt=bt.isFunction,Ot=yt("./XMLNode"),xt=yt("./XMLAttribute"),Vt.exports=function(vt){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 Tt(et,vt),et.prototype.clone=function(){var tt,st,rt,ut;rt=(0,Wt.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 pt;return pt=ct.clone(),pt.parent=rt,rt.children.push(pt)}),rt},et.prototype.attribute=function(tt,st){var rt,ut;if(tt!=null&&(tt=tt.valueOf()),At(tt))for(rt in tt)It.call(tt,rt)&&(ut=tt[rt],this.attribute(rt,ut));else Bt(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(yt,Vt,Yt){"use strict";(function(){var Nt,Wt,xt,Ot,Bt,At,bt,Tt,It,vt,et,tt,st={}.hasOwnProperty;tt=yt("./Utility"),et=tt.isObject,vt=tt.isFunction,It=tt.isEmpty,Bt=null,Nt=null,Wt=null,xt=null,Ot=null,bt=null,Tt=null,At=null,Vt.exports=function(){function rt(ut){this.parent=ut,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.children=[],Bt||(Bt=yt("./XMLElement"),Nt=yt("./XMLCData"),Wt=yt("./XMLComment"),xt=yt("./XMLDeclaration"),Ot=yt("./XMLDocType"),bt=yt("./XMLRaw"),Tt=yt("./XMLText"),At=yt("./XMLProcessingInstruction"))}return rt.prototype.element=function(ut,ct,pt){var mt,Ct,Dt,Ut,Ft,Qt,$t,Kt,ue,oe;if(Qt=null,ct==null&&(ct={}),ct=ct.valueOf(),et(ct)||(ue=[ct,pt],pt=ue[0],ct=ue[1]),ut!=null&&(ut=ut.valueOf()),Array.isArray(ut))for(Dt=0,$t=ut.length;Dt<$t;Dt++)Ct=ut[Dt],Qt=this.element(Ct);else if(vt(ut))Qt=this.element(ut.apply());else if(et(ut)){for(Ft in ut)if(st.call(ut,Ft))if(oe=ut[Ft],vt(oe)&&(oe=oe.apply()),et(oe)&&It(oe)&&(oe=null),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&Ft.indexOf(this.stringify.convertAttKey)===0)Qt=this.attribute(Ft.substr(this.stringify.convertAttKey.length),oe);else if(!this.options.separateArrayItems&&Array.isArray(oe))for(Ut=0,Kt=oe.length;Ut<Kt;Ut++)Ct=oe[Ut],mt={},mt[Ft]=Ct,Qt=this.element(mt);else et(oe)?(Qt=this.element(Ft),Qt.element(oe)):Qt=this.element(Ft,oe)}else Qt=!this.options.ignoreDecorators&&this.stringify.convertTextKey&&ut.indexOf(this.stringify.convertTextKey)===0?this.text(pt):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&ut.indexOf(this.stringify.convertCDataKey)===0?this.cdata(pt):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&ut.indexOf(this.stringify.convertCommentKey)===0?this.comment(pt):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&ut.indexOf(this.stringify.convertRawKey)===0?this.raw(pt):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&ut.indexOf(this.stringify.convertPIKey)===0?this.instruction(ut.substr(this.stringify.convertPIKey.length),pt):this.node(ut,ct,pt);if(Qt==null)throw new Error("Could not create any elements with: "+ut);return Qt},rt.prototype.insertBefore=function(ut,ct,pt){var mt,Ct,Dt;if(this.isRoot)throw new Error("Cannot insert elements at root level");return Ct=this.parent.children.indexOf(this),Dt=this.parent.children.splice(Ct),mt=this.parent.element(ut,ct,pt),Array.prototype.push.apply(this.parent.children,Dt),mt},rt.prototype.insertAfter=function(ut,ct,pt){var mt,Ct,Dt;if(this.isRoot)throw new Error("Cannot insert elements at root level");return Ct=this.parent.children.indexOf(this),Dt=this.parent.children.splice(Ct+1),mt=this.parent.element(ut,ct,pt),Array.prototype.push.apply(this.parent.children,Dt),mt},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,pt){var mt,Ct;return ut!=null&&(ut=ut.valueOf()),ct||(ct={}),ct=ct.valueOf(),et(ct)||(Ct=[ct,pt],pt=Ct[0],ct=Ct[1]),mt=new Bt(this,ut,ct),pt!=null&&mt.text(pt),this.children.push(mt),mt},rt.prototype.text=function(ut){var ct;return ct=new Tt(this,ut),this.children.push(ct),this},rt.prototype.cdata=function(ut){var ct;return ct=new Nt(this,ut),this.children.push(ct),this},rt.prototype.comment=function(ut){var ct;return ct=new Wt(this,ut),this.children.push(ct),this},rt.prototype.commentBefore=function(ut){var ct,pt;return ct=this.parent.children.indexOf(this),pt=this.parent.children.splice(ct),this.parent.comment(ut),Array.prototype.push.apply(this.parent.children,pt),this},rt.prototype.commentAfter=function(ut){var ct,pt;return ct=this.parent.children.indexOf(this),pt=this.parent.children.splice(ct+1),this.parent.comment(ut),Array.prototype.push.apply(this.parent.children,pt),this},rt.prototype.raw=function(ut){var ct;return ct=new bt(this,ut),this.children.push(ct),this},rt.prototype.instruction=function(ut,ct){var pt,mt,Ct,Dt,Ut;if(ut!=null&&(ut=ut.valueOf()),ct!=null&&(ct=ct.valueOf()),Array.isArray(ut))for(Dt=0,Ut=ut.length;Dt<Ut;Dt++)pt=ut[Dt],this.instruction(pt);else if(et(ut))for(pt in ut)st.call(ut,pt)&&(mt=ut[pt],this.instruction(pt,mt));else vt(ct)&&(ct=ct.apply()),Ct=new At(this,ut,ct),this.children.push(Ct);return this},rt.prototype.instructionBefore=function(ut,ct){var pt,mt;return pt=this.parent.children.indexOf(this),mt=this.parent.children.splice(pt),this.parent.instruction(ut,ct),Array.prototype.push.apply(this.parent.children,mt),this},rt.prototype.instructionAfter=function(ut,ct){var pt,mt;return pt=this.parent.children.indexOf(this),mt=this.parent.children.splice(pt+1),this.parent.instruction(ut,ct),Array.prototype.push.apply(this.parent.children,mt),this},rt.prototype.declaration=function(ut,ct,pt){var mt,Ct;return mt=this.document(),Ct=new xt(mt,ut,ct,pt),mt.children[0]instanceof xt?mt.children[0]=Ct:mt.children.unshift(Ct),mt.root()||mt},rt.prototype.doctype=function(ut,ct){var pt,mt,Ct,Dt,Ut,Ft,Qt,$t,Kt,ue;for(mt=this.document(),Ct=new Ot(mt,ut,ct),Kt=mt.children,Dt=Ut=0,Qt=Kt.length;Ut<Qt;Dt=++Ut)if((pt=Kt[Dt])instanceof Ot)return mt.children[Dt]=Ct,Ct;for(ue=mt.children,Dt=Ft=0,$t=ue.length;Ft<$t;Dt=++Ft)if(pt=ue[Dt],pt.isRoot)return mt.children.splice(Dt,0,Ct),Ct;return mt.children.push(Ct),Ct},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,pt){return this.element(ut,ct,pt)},rt.prototype.nod=function(ut,ct,pt){return this.node(ut,ct,pt)},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,pt){return this.declaration(ut,ct,pt)},rt.prototype.dtd=function(ut,ct){return this.doctype(ut,ct)},rt.prototype.e=function(ut,ct,pt){return this.element(ut,ct,pt)},rt.prototype.n=function(ut,ct,pt){return this.node(ut,ct,pt)},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(yt,Vt,Yt){"use strict";var Nt=yt("babel-runtime/core-js/object/create"),Wt=function(xt){return xt&&xt.__esModule?xt:{default:xt}}(Nt);(function(){var xt,Ot=function(At,bt){function Tt(){this.constructor=At}for(var It in bt)Bt.call(bt,It)&&(At[It]=bt[It]);return Tt.prototype=bt.prototype,At.prototype=new Tt,At.__super__=bt.prototype,At},Bt={}.hasOwnProperty;xt=yt("./XMLNode"),Vt.exports=function(At){function bt(Tt,It,vt){if(bt.__super__.constructor.call(this,Tt),It==null)throw new Error("Missing instruction target");this.target=this.stringify.insTarget(It),vt&&(this.value=this.stringify.insValue(vt))}return Ot(bt,At),bt.prototype.clone=function(){return(0,Wt.default)(this)},bt.prototype.toString=function(Tt){return this.options.writer.set(Tt).processingInstruction(this)},bt}(xt)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],229:[function(yt,Vt,Yt){"use strict";var Nt=yt("babel-runtime/core-js/object/create"),Wt=function(xt){return xt&&xt.__esModule?xt:{default:xt}}(Nt);(function(){var xt,Ot=function(At,bt){function Tt(){this.constructor=At}for(var It in bt)Bt.call(bt,It)&&(At[It]=bt[It]);return Tt.prototype=bt.prototype,At.prototype=new Tt,At.__super__=bt.prototype,At},Bt={}.hasOwnProperty;xt=yt("./XMLNode"),Vt.exports=function(At){function bt(Tt,It){if(bt.__super__.constructor.call(this,Tt),It==null)throw new Error("Missing raw text");this.value=this.stringify.raw(It)}return Ot(bt,At),bt.prototype.clone=function(){return(0,Wt.default)(this)},bt.prototype.toString=function(Tt){return this.options.writer.set(Tt).raw(this)},bt}(xt)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],230:[function(yt,Vt,Yt){"use strict";(function(){var Nt,Wt,xt,Ot,Bt,At,bt,Tt,It,vt,et,tt,st,rt=function(ct,pt){function mt(){this.constructor=ct}for(var Ct in pt)ut.call(pt,Ct)&&(ct[Ct]=pt[Ct]);return mt.prototype=pt.prototype,ct.prototype=new mt,ct.__super__=pt.prototype,ct},ut={}.hasOwnProperty;bt=yt("./XMLDeclaration"),Tt=yt("./XMLDocType"),Nt=yt("./XMLCData"),Wt=yt("./XMLComment"),It=yt("./XMLElement"),et=yt("./XMLRaw"),tt=yt("./XMLText"),vt=yt("./XMLProcessingInstruction"),xt=yt("./XMLDTDAttList"),Ot=yt("./XMLDTDElement"),Bt=yt("./XMLDTDEntity"),At=yt("./XMLDTDNotation"),st=yt("./XMLWriterBase"),Vt.exports=function(ct){function pt(mt,Ct){pt.__super__.constructor.call(this,Ct),this.stream=mt}return rt(pt,ct),pt.prototype.document=function(mt){var Ct,Dt,Ut,Ft,Qt,$t,Kt,ue;for($t=mt.children,Dt=0,Ft=$t.length;Dt<Ft;Dt++)Ct=$t[Dt],Ct.isLastRootNode=!1;for(mt.children[mt.children.length-1].isLastRootNode=!0,Kt=mt.children,ue=[],Ut=0,Qt=Kt.length;Ut<Qt;Ut++)switch(Ct=Kt[Ut],!1){case!(Ct instanceof bt):ue.push(this.declaration(Ct));break;case!(Ct instanceof Tt):ue.push(this.docType(Ct));break;case!(Ct instanceof Wt):ue.push(this.comment(Ct));break;case!(Ct instanceof vt):ue.push(this.processingInstruction(Ct));break;default:ue.push(this.element(Ct))}return ue},pt.prototype.attribute=function(mt){return this.stream.write(" "+mt.name+'="'+mt.value+'"')},pt.prototype.cdata=function(mt,Ct){return this.stream.write(this.space(Ct)+"<![CDATA["+mt.text+"]]>"+this.endline(mt))},pt.prototype.comment=function(mt,Ct){return this.stream.write(this.space(Ct)+"<!-- "+mt.text+" -->"+this.endline(mt))},pt.prototype.declaration=function(mt,Ct){return this.stream.write(this.space(Ct)),this.stream.write('<?xml version="'+mt.version+'"'),mt.encoding!=null&&this.stream.write(' encoding="'+mt.encoding+'"'),mt.standalone!=null&&this.stream.write(' standalone="'+mt.standalone+'"'),this.stream.write(this.spacebeforeslash+"?>"),this.stream.write(this.endline(mt))},pt.prototype.docType=function(mt,Ct){var Dt,Ut,Ft,Qt;if(Ct||(Ct=0),this.stream.write(this.space(Ct)),this.stream.write("<!DOCTYPE "+mt.root().name),mt.pubID&&mt.sysID?this.stream.write(' PUBLIC "'+mt.pubID+'" "'+mt.sysID+'"'):mt.sysID&&this.stream.write(' SYSTEM "'+mt.sysID+'"'),mt.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(mt)),Qt=mt.children,Ut=0,Ft=Qt.length;Ut<Ft;Ut++)switch(Dt=Qt[Ut],!1){case!(Dt instanceof xt):this.dtdAttList(Dt,Ct+1);break;case!(Dt instanceof Ot):this.dtdElement(Dt,Ct+1);break;case!(Dt instanceof Bt):this.dtdEntity(Dt,Ct+1);break;case!(Dt instanceof At):this.dtdNotation(Dt,Ct+1);break;case!(Dt instanceof Nt):this.cdata(Dt,Ct+1);break;case!(Dt instanceof Wt):this.comment(Dt,Ct+1);break;case!(Dt instanceof vt):this.processingInstruction(Dt,Ct+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(mt))},pt.prototype.element=function(mt,Ct){var Dt,Ut,Ft,Qt,$t,Kt,ue,oe;Ct||(Ct=0),oe=this.space(Ct),this.stream.write(oe+"<"+mt.name),Kt=mt.attributes;for($t in Kt)ut.call(Kt,$t)&&(Dt=Kt[$t],this.attribute(Dt));if(mt.children.length===0||mt.children.every(function(we){return we.value===""}))this.allowEmpty?this.stream.write("></"+mt.name+">"):this.stream.write(this.spacebeforeslash+"/>");else if(this.pretty&&mt.children.length===1&&mt.children[0].value!=null)this.stream.write(">"),this.stream.write(mt.children[0].value),this.stream.write("</"+mt.name+">");else{for(this.stream.write(">"+this.newline),ue=mt.children,Ft=0,Qt=ue.length;Ft<Qt;Ft++)switch(Ut=ue[Ft],!1){case!(Ut instanceof Nt):this.cdata(Ut,Ct+1);break;case!(Ut instanceof Wt):this.comment(Ut,Ct+1);break;case!(Ut instanceof It):this.element(Ut,Ct+1);break;case!(Ut instanceof et):this.raw(Ut,Ct+1);break;case!(Ut instanceof tt):this.text(Ut,Ct+1);break;case!(Ut instanceof vt):this.processingInstruction(Ut,Ct+1);break;default:throw new Error("Unknown XML node type: "+Ut.constructor.name)}this.stream.write(oe+"</"+mt.name+">")}return this.stream.write(this.endline(mt))},pt.prototype.processingInstruction=function(mt,Ct){return this.stream.write(this.space(Ct)+"<?"+mt.target),mt.value&&this.stream.write(" "+mt.value),this.stream.write(this.spacebeforeslash+"?>"+this.endline(mt))},pt.prototype.raw=function(mt,Ct){return this.stream.write(this.space(Ct)+mt.value+this.endline(mt))},pt.prototype.text=function(mt,Ct){return this.stream.write(this.space(Ct)+mt.value+this.endline(mt))},pt.prototype.dtdAttList=function(mt,Ct){return this.stream.write(this.space(Ct)+"<!ATTLIST "+mt.elementName+" "+mt.attributeName+" "+mt.attributeType),mt.defaultValueType!=="#DEFAULT"&&this.stream.write(" "+mt.defaultValueType),mt.defaultValue&&this.stream.write(' "'+mt.defaultValue+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(mt))},pt.prototype.dtdElement=function(mt,Ct){return this.stream.write(this.space(Ct)+"<!ELEMENT "+mt.name+" "+mt.value),this.stream.write(this.spacebeforeslash+">"+this.endline(mt))},pt.prototype.dtdEntity=function(mt,Ct){return this.stream.write(this.space(Ct)+"<!ENTITY"),mt.pe&&this.stream.write(" %"),this.stream.write(" "+mt.name),mt.value?this.stream.write(' "'+mt.value+'"'):(mt.pubID&&mt.sysID?this.stream.write(' PUBLIC "'+mt.pubID+'" "'+mt.sysID+'"'):mt.sysID&&this.stream.write(' SYSTEM "'+mt.sysID+'"'),mt.nData&&this.stream.write(" NDATA "+mt.nData)),this.stream.write(this.spacebeforeslash+">"+this.endline(mt))},pt.prototype.dtdNotation=function(mt,Ct){return this.stream.write(this.space(Ct)+"<!NOTATION "+mt.name),mt.pubID&&mt.sysID?this.stream.write(' PUBLIC "'+mt.pubID+'" "'+mt.sysID+'"'):mt.pubID?this.stream.write(' PUBLIC "'+mt.pubID+'"'):mt.sysID&&this.stream.write(' SYSTEM "'+mt.sysID+'"'),this.stream.write(this.spacebeforeslash+">"+this.endline(mt))},pt.prototype.endline=function(mt){return mt.isLastRootNode?"":this.newline},pt}(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(yt,Vt,Yt){"use strict";(function(){var Nt,Wt,xt,Ot,Bt,At,bt,Tt,It,vt,et,tt,st,rt=function(ct,pt){function mt(){this.constructor=ct}for(var Ct in pt)ut.call(pt,Ct)&&(ct[Ct]=pt[Ct]);return mt.prototype=pt.prototype,ct.prototype=new mt,ct.__super__=pt.prototype,ct},ut={}.hasOwnProperty;bt=yt("./XMLDeclaration"),Tt=yt("./XMLDocType"),Nt=yt("./XMLCData"),Wt=yt("./XMLComment"),It=yt("./XMLElement"),et=yt("./XMLRaw"),tt=yt("./XMLText"),vt=yt("./XMLProcessingInstruction"),xt=yt("./XMLDTDAttList"),Ot=yt("./XMLDTDElement"),Bt=yt("./XMLDTDEntity"),At=yt("./XMLDTDNotation"),st=yt("./XMLWriterBase"),Vt.exports=function(ct){function pt(mt){pt.__super__.constructor.call(this,mt)}return rt(pt,ct),pt.prototype.document=function(mt){var Ct,Dt,Ut,Ft,Qt;for(this.textispresent=!1,Ft="",Qt=mt.children,Dt=0,Ut=Qt.length;Dt<Ut;Dt++)Ct=Qt[Dt],Ft+=function(){switch(!1){case!(Ct instanceof bt):return this.declaration(Ct);case!(Ct instanceof Tt):return this.docType(Ct);case!(Ct instanceof Wt):return this.comment(Ct);case!(Ct instanceof vt):return this.processingInstruction(Ct);default:return this.element(Ct,0)}}.call(this);return this.pretty&&Ft.slice(-this.newline.length)===this.newline&&(Ft=Ft.slice(0,-this.newline.length)),Ft},pt.prototype.attribute=function(mt){return" "+mt.name+'="'+mt.value+'"'},pt.prototype.cdata=function(mt,Ct){return this.space(Ct)+"<![CDATA["+mt.text+"]]>"+this.newline},pt.prototype.comment=function(mt,Ct){return this.space(Ct)+"<!-- "+mt.text+" -->"+this.newline},pt.prototype.declaration=function(mt,Ct){var Dt;return Dt=this.space(Ct),Dt+='<?xml version="'+mt.version+'"',mt.encoding!=null&&(Dt+=' encoding="'+mt.encoding+'"'),mt.standalone!=null&&(Dt+=' standalone="'+mt.standalone+'"'),Dt+=this.spacebeforeslash+"?>",Dt+=this.newline},pt.prototype.docType=function(mt,Ct){var Dt,Ut,Ft,Qt,$t;if(Ct||(Ct=0),Qt=this.space(Ct),Qt+="<!DOCTYPE "+mt.root().name,mt.pubID&&mt.sysID?Qt+=' PUBLIC "'+mt.pubID+'" "'+mt.sysID+'"':mt.sysID&&(Qt+=' SYSTEM "'+mt.sysID+'"'),mt.children.length>0){for(Qt+=" [",Qt+=this.newline,$t=mt.children,Ut=0,Ft=$t.length;Ut<Ft;Ut++)Dt=$t[Ut],Qt+=function(){switch(!1){case!(Dt instanceof xt):return this.dtdAttList(Dt,Ct+1);case!(Dt instanceof Ot):return this.dtdElement(Dt,Ct+1);case!(Dt instanceof Bt):return this.dtdEntity(Dt,Ct+1);case!(Dt instanceof At):return this.dtdNotation(Dt,Ct+1);case!(Dt instanceof Nt):return this.cdata(Dt,Ct+1);case!(Dt instanceof Wt):return this.comment(Dt,Ct+1);case!(Dt instanceof vt):return this.processingInstruction(Dt,Ct+1);default:throw new Error("Unknown DTD node type: "+Dt.constructor.name)}}.call(this);Qt+="]"}return Qt+=this.spacebeforeslash+">",Qt+=this.newline},pt.prototype.element=function(mt,Ct){var Dt,Ut,Ft,Qt,$t,Kt,ue,oe,we,Se,Ne,pe,Ue;Ct||(Ct=0),Ue=!1,this.textispresent?(this.newline="",this.pretty=!1):(this.newline=this.newlinedefault,this.pretty=this.prettydefault),pe=this.space(Ct),oe="",oe+=pe+"<"+mt.name,we=mt.attributes;for(ue in we)ut.call(we,ue)&&(Dt=we[ue],oe+=this.attribute(Dt));if(mt.children.length===0||mt.children.every(function(de){return de.value===""}))this.allowEmpty?oe+="></"+mt.name+">"+this.newline:oe+=this.spacebeforeslash+"/>"+this.newline;else if(this.pretty&&mt.children.length===1&&mt.children[0].value!=null)oe+=">",oe+=mt.children[0].value,oe+="</"+mt.name+">"+this.newline;else{if(this.dontprettytextnodes){for(Se=mt.children,Ft=0,$t=Se.length;Ft<$t;Ft++)if(Ut=Se[Ft],Ut.value!=null){this.textispresent++,Ue=!0;break}}for(this.textispresent&&(this.newline="",this.pretty=!1,pe=this.space(Ct)),oe+=">"+this.newline,Ne=mt.children,Qt=0,Kt=Ne.length;Qt<Kt;Qt++)Ut=Ne[Qt],oe+=function(){switch(!1){case!(Ut instanceof Nt):return this.cdata(Ut,Ct+1);case!(Ut instanceof Wt):return this.comment(Ut,Ct+1);case!(Ut instanceof It):return this.element(Ut,Ct+1);case!(Ut instanceof et):return this.raw(Ut,Ct+1);case!(Ut instanceof tt):return this.text(Ut,Ct+1);case!(Ut instanceof vt):return this.processingInstruction(Ut,Ct+1);default:throw new Error("Unknown XML node type: "+Ut.constructor.name)}}.call(this);Ue&&this.textispresent--,this.textispresent||(this.newline=this.newlinedefault,this.pretty=this.prettydefault),oe+=pe+"</"+mt.name+">"+this.newline}return oe},pt.prototype.processingInstruction=function(mt,Ct){var Dt;return Dt=this.space(Ct)+"<?"+mt.target,mt.value&&(Dt+=" "+mt.value),Dt+=this.spacebeforeslash+"?>"+this.newline},pt.prototype.raw=function(mt,Ct){return this.space(Ct)+mt.value+this.newline},pt.prototype.text=function(mt,Ct){return this.space(Ct)+mt.value+this.newline},pt.prototype.dtdAttList=function(mt,Ct){var Dt;return Dt=this.space(Ct)+"<!ATTLIST "+mt.elementName+" "+mt.attributeName+" "+mt.attributeType,mt.defaultValueType!=="#DEFAULT"&&(Dt+=" "+mt.defaultValueType),mt.defaultValue&&(Dt+=' "'+mt.defaultValue+'"'),Dt+=this.spacebeforeslash+">"+this.newline},pt.prototype.dtdElement=function(mt,Ct){return this.space(Ct)+"<!ELEMENT "+mt.name+" "+mt.value+this.spacebeforeslash+">"+this.newline},pt.prototype.dtdEntity=function(mt,Ct){var Dt;return Dt=this.space(Ct)+"<!ENTITY",mt.pe&&(Dt+=" %"),Dt+=" "+mt.name,mt.value?Dt+=' "'+mt.value+'"':(mt.pubID&&mt.sysID?Dt+=' PUBLIC "'+mt.pubID+'" "'+mt.sysID+'"':mt.sysID&&(Dt+=' SYSTEM "'+mt.sysID+'"'),mt.nData&&(Dt+=" NDATA "+mt.nData)),Dt+=this.spacebeforeslash+">"+this.newline},pt.prototype.dtdNotation=function(mt,Ct){var Dt;return Dt=this.space(Ct)+"<!NOTATION "+mt.name,mt.pubID&&mt.sysID?Dt+=' PUBLIC "'+mt.pubID+'" "'+mt.sysID+'"':mt.pubID?Dt+=' PUBLIC "'+mt.pubID+'"':mt.sysID&&(Dt+=' SYSTEM "'+mt.sysID+'"'),Dt+=this.spacebeforeslash+">"+this.newline},pt.prototype.openNode=function(mt,Ct){var Dt,Ut,Ft,Qt;if(Ct||(Ct=0),mt instanceof It){Ft=this.space(Ct)+"<"+mt.name,Qt=mt.attributes;for(Ut in Qt)ut.call(Qt,Ut)&&(Dt=Qt[Ut],Ft+=this.attribute(Dt));return Ft+=(mt.children?">":"/>")+this.newline}return Ft=this.space(Ct)+"<!DOCTYPE "+mt.rootNodeName,mt.pubID&&mt.sysID?Ft+=' PUBLIC "'+mt.pubID+'" "'+mt.sysID+'"':mt.sysID&&(Ft+=' SYSTEM "'+mt.sysID+'"'),Ft+=(mt.children?" [":">")+this.newline},pt.prototype.closeNode=function(mt,Ct){switch(Ct||(Ct=0),!1){case!(mt instanceof It):return this.space(Ct)+"</"+mt.name+">"+this.newline;case!(mt instanceof Tt):return this.space(Ct)+"]>"+this.newline}},pt}(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(yt,Vt,Yt){"use strict";(function(){var Nt=function(xt,Ot){return function(){return xt.apply(Ot,arguments)}},Wt={}.hasOwnProperty;Vt.exports=function(){function xt(Ot){this.assertLegalChar=Nt(this.assertLegalChar,this);var Bt,At,bt;Ot||(Ot={}),this.noDoubleEncoding=Ot.noDoubleEncoding,At=Ot.stringify||{};for(Bt in At)Wt.call(At,Bt)&&(bt=At[Bt],this[Bt]=bt)}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 Bt;if(Bt=Ot.match(/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/))throw new Error("Invalid character in string: "+Ot+" at index "+Bt.index);return Ot},xt.prototype.elEscape=function(Ot){var Bt;return Bt=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,Ot.replace(Bt,"&").replace(/</g,"<").replace(/>/g,">").replace(/\r/g,"
")},xt.prototype.attEscape=function(Ot){var Bt;return Bt=this.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,Ot.replace(Bt,"&").replace(/</g,"<").replace(/"/g,""").replace(/\t/g,"	").replace(/\n/g,"
").replace(/\r/g,"
")},xt}()}).call(void 0)},{}],233:[function(yt,Vt,Yt){"use strict";var Nt=yt("babel-runtime/core-js/object/create"),Wt=function(xt){return xt&&xt.__esModule?xt:{default:xt}}(Nt);(function(){var xt,Ot=function(At,bt){function Tt(){this.constructor=At}for(var It in bt)Bt.call(bt,It)&&(At[It]=bt[It]);return Tt.prototype=bt.prototype,At.prototype=new Tt,At.__super__=bt.prototype,At},Bt={}.hasOwnProperty;xt=yt("./XMLNode"),Vt.exports=function(At){function bt(Tt,It){if(bt.__super__.constructor.call(this,Tt),It==null)throw new Error("Missing element text");this.value=this.stringify.eleText(It)}return Ot(bt,At),bt.prototype.clone=function(){return(0,Wt.default)(this)},bt.prototype.toString=function(Tt){return this.options.writer.set(Tt).text(this)},bt}(xt)}).call(void 0)},{"./XMLNode":227,"babel-runtime/core-js/object/create":19}],234:[function(yt,Vt,Yt){"use strict";(function(){var Nt={}.hasOwnProperty;Vt.exports=function(){function Wt(xt){var Ot,Bt,At,bt,Tt,It,vt,et,tt;xt||(xt={}),this.pretty=xt.pretty||!1,this.allowEmpty=(Bt=xt.allowEmpty)!=null&&Bt,this.pretty?(this.indent=(At=xt.indent)!=null?At:" ",this.newline=(bt=xt.newline)!=null?bt:`
|
|
|
`,this.offset=(Tt=xt.offset)!=null?Tt:0,this.dontprettytextnodes=(It=xt.dontprettytextnodes)!=null?It:0):(this.indent="",this.newline="",this.offset=0,this.dontprettytextnodes=0),this.spacebeforeslash=(vt=xt.spacebeforeslash)!=null?vt:"",this.spacebeforeslash===!0&&(this.spacebeforeslash=" "),this.newlinedefault=this.newline,this.prettydefault=this.pretty,et=xt.writer||{};for(Ot in et)Nt.call(et,Ot)&&(tt=et[Ot],this[Ot]=tt)}return Wt.prototype.set=function(xt){var Ot,Bt,At;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,Bt=xt.writer||{};for(Ot in Bt)Nt.call(Bt,Ot)&&(At=Bt[Ot],this[Ot]=At);return this},Wt.prototype.space=function(xt){var Ot;return this.pretty?(Ot=(xt||0)+this.offset+1,Ot>0?new Array(Ot).join(this.indent):""):""},Wt}()}).call(void 0)},{}],235:[function(yt,Vt,Yt){"use strict";(function(){var Nt,Wt,xt,Ot,Bt,At,bt;bt=yt("./Utility"),Bt=bt.assign,At=bt.isFunction,Nt=yt("./XMLDocument"),Wt=yt("./XMLDocumentCB"),Ot=yt("./XMLStringWriter"),xt=yt("./XMLStreamWriter"),Vt.exports.create=function(Tt,It,vt,et){var tt,st;if(Tt==null)throw new Error("Root element needs a name");return et=Bt({},It,vt,et),tt=new Nt(et),st=tt.element(Tt),et.headless||(tt.declaration(et),et.pubID==null&&et.sysID==null||tt.doctype(et)),st},Vt.exports.begin=function(Tt,It,vt){var et;return At(Tt)&&(et=[Tt,It],It=et[0],vt=et[1],Tt={}),It?new Wt(Tt,It,vt):new Nt(Tt)},Vt.exports.stringWriter=function(Tt){return new Ot(Tt)},Vt.exports.streamWriter=function(Tt,It){return new xt(Tt,It)}}).call(void 0)},{"./Utility":214,"./XMLDocument":224,"./XMLDocumentCB":225,"./XMLStreamWriter":230,"./XMLStringWriter":231}],236:[function(yt,Vt,Yt){function Nt(){for(var xt={},Ot=0;Ot<arguments.length;Ot++){var Bt=arguments[Ot];for(var At in Bt)Wt.call(Bt,At)&&(xt[At]=Bt[At])}return xt}Vt.exports=Nt;var Wt=Object.prototype.hasOwnProperty},{}],237:[function(yt,Vt,Yt){"use strict";function Nt(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,vt],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 pt=et(Ot.concat([rt,st]));return et(Ot.concat([ut,pt]))}function Wt(et,tt){et=et||"sha1";var st=Tt[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 pt=Ot.concat(rt),mt=tt?Nt(st,tt,pt):st(pt);return rt=null,ct?mt.toString(ct):mt}}}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=yt("buffer").Buffer,Bt=yt("./sha"),At=yt("./sha256"),bt=yt("./md5"),Tt={sha1:Bt,sha256:At,md5:bt},It=64,vt=new Ot(It);vt.fill(0),Yt.createHash=function(et){return Wt(et)},Yt.createHmac=function(et,tt){return Wt(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){Yt[et]=function(){xt("sorry,",et,"is not implemented yet")}})},{"./md5":239,"./sha":240,"./sha256":241,buffer:38}],238:[function(yt,Vt,Yt){"use strict";function Nt(Tt,It){if(Tt.length%Bt!=0){var vt=Tt.length+(Bt-Tt.length%Bt);Tt=Ot.concat([Tt,At],vt)}for(var et=[],tt=It?Tt.readInt32BE:Tt.readInt32LE,st=0;st<Tt.length;st+=Bt)et.push(tt.call(Tt,st));return et}function Wt(Tt,It,vt){for(var et=new Ot(It),tt=vt?et.writeInt32BE:et.writeInt32LE,st=0;st<Tt.length;st++)tt.call(et,Tt[st],4*st,!0);return et}function xt(Tt,It,vt,et){return Ot.isBuffer(Tt)||(Tt=new Ot(Tt)),Wt(It(Nt(Tt,et),Tt.length*bt),vt,et)}var Ot=yt("buffer").Buffer,Bt=4,At=new Ot(Bt);At.fill(0);var bt=8;Vt.exports={hash:xt}},{buffer:38}],239:[function(yt,Vt,Yt){"use strict";function Nt(vt,et){vt[et>>5]|=128<<et%32,vt[14+(et+64>>>9<<4)]=et;for(var tt=1732584193,st=-271733879,rt=-1732584194,ut=271733878,ct=0;ct<vt.length;ct+=16){var pt=tt,mt=st,Ct=rt,Dt=ut;tt=xt(tt,st,rt,ut,vt[ct+0],7,-680876936),ut=xt(ut,tt,st,rt,vt[ct+1],12,-389564586),rt=xt(rt,ut,tt,st,vt[ct+2],17,606105819),st=xt(st,rt,ut,tt,vt[ct+3],22,-1044525330),tt=xt(tt,st,rt,ut,vt[ct+4],7,-176418897),ut=xt(ut,tt,st,rt,vt[ct+5],12,1200080426),rt=xt(rt,ut,tt,st,vt[ct+6],17,-1473231341),st=xt(st,rt,ut,tt,vt[ct+7],22,-45705983),tt=xt(tt,st,rt,ut,vt[ct+8],7,1770035416),ut=xt(ut,tt,st,rt,vt[ct+9],12,-1958414417),rt=xt(rt,ut,tt,st,vt[ct+10],17,-42063),st=xt(st,rt,ut,tt,vt[ct+11],22,-1990404162),tt=xt(tt,st,rt,ut,vt[ct+12],7,1804603682),ut=xt(ut,tt,st,rt,vt[ct+13],12,-40341101),rt=xt(rt,ut,tt,st,vt[ct+14],17,-1502002290),st=xt(st,rt,ut,tt,vt[ct+15],22,1236535329),tt=Ot(tt,st,rt,ut,vt[ct+1],5,-165796510),ut=Ot(ut,tt,st,rt,vt[ct+6],9,-1069501632),rt=Ot(rt,ut,tt,st,vt[ct+11],14,643717713),st=Ot(st,rt,ut,tt,vt[ct+0],20,-373897302),tt=Ot(tt,st,rt,ut,vt[ct+5],5,-701558691),ut=Ot(ut,tt,st,rt,vt[ct+10],9,38016083),rt=Ot(rt,ut,tt,st,vt[ct+15],14,-660478335),st=Ot(st,rt,ut,tt,vt[ct+4],20,-405537848),tt=Ot(tt,st,rt,ut,vt[ct+9],5,568446438),ut=Ot(ut,tt,st,rt,vt[ct+14],9,-1019803690),rt=Ot(rt,ut,tt,st,vt[ct+3],14,-187363961),st=Ot(st,rt,ut,tt,vt[ct+8],20,1163531501),tt=Ot(tt,st,rt,ut,vt[ct+13],5,-1444681467),ut=Ot(ut,tt,st,rt,vt[ct+2],9,-51403784),rt=Ot(rt,ut,tt,st,vt[ct+7],14,1735328473),st=Ot(st,rt,ut,tt,vt[ct+12],20,-1926607734),tt=Bt(tt,st,rt,ut,vt[ct+5],4,-378558),ut=Bt(ut,tt,st,rt,vt[ct+8],11,-2022574463),rt=Bt(rt,ut,tt,st,vt[ct+11],16,1839030562),st=Bt(st,rt,ut,tt,vt[ct+14],23,-35309556),tt=Bt(tt,st,rt,ut,vt[ct+1],4,-1530992060),ut=Bt(ut,tt,st,rt,vt[ct+4],11,1272893353),rt=Bt(rt,ut,tt,st,vt[ct+7],16,-155497632),st=Bt(st,rt,ut,tt,vt[ct+10],23,-1094730640),tt=Bt(tt,st,rt,ut,vt[ct+13],4,681279174),ut=Bt(ut,tt,st,rt,vt[ct+0],11,-358537222),rt=Bt(rt,ut,tt,st,vt[ct+3],16,-722521979),st=Bt(st,rt,ut,tt,vt[ct+6],23,76029189),tt=Bt(tt,st,rt,ut,vt[ct+9],4,-640364487),ut=Bt(ut,tt,st,rt,vt[ct+12],11,-421815835),rt=Bt(rt,ut,tt,st,vt[ct+15],16,530742520),st=Bt(st,rt,ut,tt,vt[ct+2],23,-995338651),tt=At(tt,st,rt,ut,vt[ct+0],6,-198630844),ut=At(ut,tt,st,rt,vt[ct+7],10,1126891415),rt=At(rt,ut,tt,st,vt[ct+14],15,-1416354905),st=At(st,rt,ut,tt,vt[ct+5],21,-57434055),tt=At(tt,st,rt,ut,vt[ct+12],6,1700485571),ut=At(ut,tt,st,rt,vt[ct+3],10,-1894986606),rt=At(rt,ut,tt,st,vt[ct+10],15,-1051523),st=At(st,rt,ut,tt,vt[ct+1],21,-2054922799),tt=At(tt,st,rt,ut,vt[ct+8],6,1873313359),ut=At(ut,tt,st,rt,vt[ct+15],10,-30611744),rt=At(rt,ut,tt,st,vt[ct+6],15,-1560198380),st=At(st,rt,ut,tt,vt[ct+13],21,1309151649),tt=At(tt,st,rt,ut,vt[ct+4],6,-145523070),ut=At(ut,tt,st,rt,vt[ct+11],10,-1120210379),rt=At(rt,ut,tt,st,vt[ct+2],15,718787259),st=At(st,rt,ut,tt,vt[ct+9],21,-343485551),tt=bt(tt,pt),st=bt(st,mt),rt=bt(rt,Ct),ut=bt(ut,Dt)}return Array(tt,st,rt,ut)}function Wt(vt,et,tt,st,rt,ut){return bt(Tt(bt(bt(et,vt),bt(st,ut)),rt),tt)}function xt(vt,et,tt,st,rt,ut,ct){return Wt(et&tt|~et&st,vt,et,rt,ut,ct)}function Ot(vt,et,tt,st,rt,ut,ct){return Wt(et&st|tt&~st,vt,et,rt,ut,ct)}function Bt(vt,et,tt,st,rt,ut,ct){return Wt(et^tt^st,vt,et,rt,ut,ct)}function At(vt,et,tt,st,rt,ut,ct){return Wt(tt^(et|~st),vt,et,rt,ut,ct)}function bt(vt,et){var tt=(65535&vt)+(65535&et);return(vt>>16)+(et>>16)+(tt>>16)<<16|65535&tt}function Tt(vt,et){return vt<<et|vt>>>32-et}var It=yt("./helpers");Vt.exports=function(vt){return It.hash(vt,Nt,16)}},{"./helpers":238}],240:[function(yt,Vt,Yt){"use strict";function Nt(bt,Tt){bt[Tt>>5]|=128<<24-Tt%32,bt[15+(Tt+64>>9<<4)]=Tt;for(var It=Array(80),vt=1732584193,et=-271733879,tt=-1732584194,st=271733878,rt=-1009589776,ut=0;ut<bt.length;ut+=16){for(var ct=vt,pt=et,mt=tt,Ct=st,Dt=rt,Ut=0;Ut<80;Ut++){It[Ut]=Ut<16?bt[ut+Ut]:Bt(It[Ut-3]^It[Ut-8]^It[Ut-14]^It[Ut-16],1);var Ft=Ot(Ot(Bt(vt,5),Wt(Ut,et,tt,st)),Ot(Ot(rt,It[Ut]),xt(Ut)));rt=st,st=tt,tt=Bt(et,30),et=vt,vt=Ft}vt=Ot(vt,ct),et=Ot(et,pt),tt=Ot(tt,mt),st=Ot(st,Ct),rt=Ot(rt,Dt)}return Array(vt,et,tt,st,rt)}function Wt(bt,Tt,It,vt){return bt<20?Tt&It|~Tt&vt:bt<40?Tt^It^vt:bt<60?Tt&It|Tt&vt|It&vt:Tt^It^vt}function xt(bt){return bt<20?1518500249:bt<40?1859775393:bt<60?-1894007588:-899497514}function Ot(bt,Tt){var It=(65535&bt)+(65535&Tt);return(bt>>16)+(Tt>>16)+(It>>16)<<16|65535&It}function Bt(bt,Tt){return bt<<Tt|bt>>>32-Tt}var At=yt("./helpers");Vt.exports=function(bt){return At.hash(bt,Nt,20,!0)}},{"./helpers":238}],241:[function(yt,Vt,Yt){"use strict";var Nt=yt("./helpers"),Wt=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},Bt=function(tt,st,rt){return tt&st^~tt&rt},At=function(tt,st,rt){return tt&st^tt&rt^st&rt},bt=function(tt){return xt(tt,2)^xt(tt,13)^xt(tt,22)},Tt=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)},vt=function(tt){return xt(tt,17)^xt(tt,19)^Ot(tt,10)},et=function(tt,st){var rt,ut,ct,pt,mt,Ct,Dt,Ut,Ft,Qt,$t,Kt,ue=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),oe=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),we=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=oe[0],ut=oe[1],ct=oe[2],pt=oe[3],mt=oe[4],Ct=oe[5],Dt=oe[6],Ut=oe[7];for(var Qt=0;Qt<64;Qt++)we[Qt]=Qt<16?tt[Qt+Ft]:Wt(Wt(Wt(vt(we[Qt-2]),we[Qt-7]),It(we[Qt-15])),we[Qt-16]),$t=Wt(Wt(Wt(Wt(Ut,Tt(mt)),Bt(mt,Ct,Dt)),ue[Qt]),we[Qt]),Kt=Wt(bt(rt),At(rt,ut,ct)),Ut=Dt,Dt=Ct,Ct=mt,mt=Wt(pt,$t),pt=ct,ct=ut,ut=rt,rt=Wt($t,Kt);oe[0]=Wt(rt,oe[0]),oe[1]=Wt(ut,oe[1]),oe[2]=Wt(ct,oe[2]),oe[3]=Wt(pt,oe[3]),oe[4]=Wt(mt,oe[4]),oe[5]=Wt(Ct,oe[5]),oe[6]=Wt(Dt,oe[6]),oe[7]=Wt(Ut,oe[7])}return oe};Vt.exports=function(tt){return Nt.hash(tt,et,32,!0)}},{"./helpers":238}],242:[function(yt,Vt,Yt){(function(Nt){"use strict";function Wt(et){return et&&et.__esModule?et:{default:et}}var xt=yt("babel-runtime/core-js/object/create"),Ot=Wt(xt),Bt=yt("babel-runtime/helpers/classCallCheck"),At=Wt(Bt),bt=yt("babel-runtime/helpers/createClass"),Tt=Wt(bt),It=yt("babel-runtime/helpers/typeof"),vt=Wt(It);(function(et){if((Yt===void 0?"undefined":(0,vt.default)(Yt))==="object"&&Vt!==void 0)Vt.exports=et();else if(typeof Rt=="function"&&Rt.amd)Rt([],et);else{var tt;tt=typeof window!="undefined"?window:Nt!==void 0?Nt:typeof self!="undefined"?self:this,tt.mime=et()}})(function(){return function et(tt,st,rt){function ut(mt,Ct){if(!st[mt]){if(!tt[mt]){var Dt=typeof yt=="function"&&yt;if(!Ct&&Dt)return Dt(mt,!0);if(ct)return ct(mt,!0);var Ut=new Error("Cannot find module '"+mt+"'");throw Ut.code="MODULE_NOT_FOUND",Ut}var Ft=st[mt]={exports:{}};tt[mt][0].call(Ft.exports,function(Qt){var $t=tt[mt][1][Qt];return ut($t||Qt)},Ft,Ft.exports,et,tt,st,rt)}return st[mt].exports}for(var ct=typeof yt=="function"&&yt,pt=0;pt<rt.length;pt++)ut(rt[pt]);return ut}({1:[function(et,tt,st){var rt=function(){function ut(){(0,At.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,Tt.default)(ut,[{key:"define",value:function(ct,pt){for(var mt in ct){for(var Ct=ct[mt],Dt=0;Dt<Ct.length;Dt++){var Ut=Ct[Dt];if(!pt&&Ut in this._types)throw new Error('Attempt to change mapping for "'+Ut+'" extension from "'+this._types[Ut]+'" to "'+mt+'". Pass `force=true` to allow this, otherwise remove "'+Ut+'" from the list of extensions for "'+mt+'".');this._types[Ut]=mt}!pt&&this._extensions[mt]||(this._extensions[mt]=Ct[0])}}},{key:"getType",value:function(ct){ct=String(ct);var pt=ct.replace(/^.*[\/\\]/,"").toLowerCase(),mt=pt.replace(/^.*\./,"").toLowerCase(),Ct=pt.length<ct.length;return(mt.length<pt.length-1||!Ct)&&this._types[mt]||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 Gt.g!="undefined"?Gt.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(yt,Vt,Yt){"use strict";Yt.encodeURIComponent=function(Nt){try{return encodeURIComponent(Nt)}catch(Wt){return Nt}},Yt.escape=yt("escape-html"),Yt.timestamp=function(Nt){if(Nt){var Wt=Nt;return typeof Wt=="string"&&(Wt=Number(Wt)),String(Nt).length===10&&(Wt*=1e3),new Date(Wt)}return Math.round(Date.now()/1e3)}},{"escape-html":157}],244:[function(yt,Vt,Yt){(function(Nt,Wt){"use strict";function xt(Ut){return Ut&&Ut.__esModule?Ut:{default:Ut}}function Ot(Ut,Ft){return Ut===void 0?Ft:Ut}function Bt(Ut,Ft){return function(Qt,$t,Kt){if(Qt)return Ft(Qt);Ut({data:$t,status:Kt.statusCode,headers:Kt.headers,res:Kt})}}var At,bt=yt("babel-runtime/core-js/json/stringify"),Tt=xt(bt),It=yt("babel-runtime/helpers/typeof"),vt=xt(It),et=yt("util"),tt=yt("url"),st=yt("http"),rt=yt("https"),ut=yt("debug")("urllib"),ct=yt("humanize-ms"),pt=0,mt=Math.pow(2,31)-10,Ct=/^https?:\/\//i;Yt.TIMEOUTS=[ct("300s"),ct("300s")];var Dt=["json","text"];Yt.request=function(Ut,Ft,Qt){return arguments.length===2&&typeof Ft=="function"&&(Qt=Ft,Ft=null),typeof Qt=="function"?Yt.requestWithCallback(Ut,Ft,Qt):(At||(At=yt("any-promise")),new At(function($t,Kt){Yt.requestWithCallback(Ut,Ft,Bt($t,Kt))}))},Yt.requestWithCallback=function(Ut,Ft,Qt){function $t(){he&&(clearTimeout(he),he=null)}function Kt(){_t&&(clearTimeout(_t),_t=null)}function ue(Re,hn,wn){if(Kt(),!Qt)return console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),de,Nt.pid,We.method,Ut),void(Re&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
|
|
|
stack: %s`,Date(),de,Nt.pid,Re.name,Re.message,Re.stack));var kn=Qt;Qt=null;var Rn={};if(wn&&(dt=wn.statusCode,Rn=wn.headers),dt===401&&Rn["www-authenticate"]&&(!Ft.headers||!Ft.headers.Authorization)&&Ft.digestAuth){var Yn=Rn["www-authenticate"];if(Yn.indexOf("Digest ")>=0)return ut("Request#%d %s: got digest auth header WWW-Authenticate: %s",de,Ut,Yn),Ft.headers=Ft.headers||{},Ft.headers.Authorization=digestAuthHeader(We.method,We.path,Yn,Ft.digestAuth),ut("Request#%d %s: auth with digest header: %s",de,Ut,Ft.headers.Authorization),wn.headers["set-cookie"]&&(Ft.headers.Cookie=wn.headers["set-cookie"].join(";")),Yt.requestWithCallback(Ut,Ft,kn)}var Kn=Date.now()-ae;Zt&&(Zt.contentDownload=Kn),ut("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Kn,Pt,dt,We.method,We.host,We.path,Ht,Zt);var li={status:dt,statusCode:dt,headers:Rn,size:Pt,aborted:gt,rt:Kn,keepAliveSocket:Ht,data:hn,requestUrls:Ft.requestUrls,timing:Zt,remoteAddress:zt,remotePort:re};if(Re){var mi="";Oe&&typeof Oe.getCurrentStatus=="function"&&(mi=", agent status: "+(0,Tt.default)(Oe.getCurrentStatus())),Re.message+=", "+We.method+" "+Ut+" "+dt+" (connected: "+Et+", keepalive socket: "+Ht+mi+`)
|
|
|
headers: `+(0,Tt.default)(Rn),Re.data=hn,Re.path=We.path,Re.status=dt,Re.headers=Rn,Re.res=li}kn(Re,hn,Ft.streaming?wn:li),Ft.emitter&&(Jt.url=Ut,Jt.socket=Le&&Le.connection,Jt.options=We,Jt.size=Ee,Ft.emitter.emit("response",{requestId:de,error:Re,ctx:Ft.ctx,req:Jt,res:li}))}function oe(Re){var hn=null;if(Ft.followRedirect&&statuses.redirect[Re.statusCode]){Ft._followRedirectCount=(Ft._followRedirectCount||0)+1;var wn=Re.headers.location;if(wn){if(!(Ft._followRedirectCount>Ft.maxRedirects)){var kn=Ft.formatRedirectUrl?Ft.formatRedirectUrl(Ut,wn):tt.resolve(Ut,wn);ut("Request#%d %s: `redirected` from %s to %s",de,We.path,Ut,kn),Kt(),Ft.headers&&Ft.headers.Host&&Ct.test(wn)&&(Ft.headers.Host=null);var Rn=Qt;return Qt=null,Yt.requestWithCallback(kn,Ft,Rn),{redirect:!0,error:null}}hn=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+Ut),hn.name="MaxRedirectError"}else hn=new Error("Got statusCode "+Re.statusCode+" but cannot resolve next location from headers"),hn.name="FollowRedirectError"}return{redirect:!1,error:hn}}function we(Re,hn,wn){return wn(null,hn,Re.headers["content-encoding"])}function Se(Re){if(Zt&&(Zt.waiting=Date.now()-ae),ut("Request#%d %s `req response` event emit: status %d, headers: %j",de,Ut,Re.statusCode,Re.headers),Ft.streaming){var hn=oe(Re);return hn.redirect?void Re.resume():hn.error?(Re.resume(),ue(hn.error,null,Re)):ue(null,null,Re)}if(Re.on("close",function(){ut("Request#%d %s: `res close` event emit, total size %d",de,Ut,Pt)}),Re.on("error",function(){ut("Request#%d %s: `res error` event emit, total size %d",de,Ut,Pt)}),Re.on("aborted",function(){gt=!0,ut("Request#%d %s: `res aborted` event emit, total size %d",de,Ut,Pt)}),ye){var hn=oe(Re);return hn.redirect?void Re.resume():hn.error?(Re.resume(),ye.end(),ue(hn.error,null,Re)):(Ft.consumeWriteStream===!1?Re.on("end",ue.bind(null,null,null,Re)):isNode010||isNode012?first([[ye,"close"],[Re,"aborted"]],function(Rn,Yn,Kn){ut("Request#%d %s: writeStream or res %s event emitted",de,Ut,Kn),ue(Mt||null,null,Re)}):ye.on("close",function(){ut("Request#%d %s: writeStream close event emitted",de,Ut),ue(Mt||null,null,Re)}),Re.pipe(ye))}var wn=[];Re.on("data",function(kn){ut("Request#%d %s: `res data` event emit, size %d",de,Ut,kn.length),Pt+=kn.length,wn.push(kn)}),Re.on("end",function(){var kn=Wt.concat(wn,Pt);if(ut("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",de,Ut,Pt,Re._dumped),Mt)return ue(Mt,kn,Re);var Rn=oe(Re);if(Rn.error)return ue(Rn.error,kn,Re);Rn.redirect||we(Re,kn,function(Yn,Kn,li){if(Yn)return ue(Yn,kn,Re);if(!li&&Dt.indexOf(Ft.dataType)>=0){try{Kn=decodeBodyByCharset(Kn,Re)}catch(yi){return ut("decodeBodyByCharset error: %s",yi),ue(null,Kn,Re)}if(Ft.dataType==="json")if(Pt===0)Kn=null;else{var mi=parseJSON(Kn,en);mi.error?Yn=mi.error:Kn=mi.data}}gt&&ut("Request#%d %s: Remote socket was terminated before `response.end()` was called",de,Ut),ue(Yn,Kn,Re)})})}function Ne(){ut("Response timer ticking, timeout: %d",sn),_t=setTimeout(function(){_t=null;var Re="Response timeout for "+sn+"ms";Mt=new Error(Re),Mt.name="ResponseTimeoutError",Mt.requestId=de,ut("ResponseTimeout: Request#%d %s %s: %s, connected: %s",de,Ut,Mt.name,Re,Et),pe()},sn)}function pe(){ut("Request#%d %s abort, connected: %s",de,Ut,Et),Le.socket||(Mt.noSocket=!0,ue(Mt)),Le.abort()}if(!Ut||typeof Ut!="string"&&(Ut===void 0?"undefined":(0,vt.default)(Ut))!=="object"){var Ue=et.format("expect request url to be a string or a http request options, but got %j",Ut);throw new Error(Ue)}arguments.length===2&&typeof Ft=="function"&&(Qt=Ft,Ft=null),Ft=Ft||{},pt>=mt&&(pt=0);var de=++pt;Ft.requestUrls=Ft.requestUrls||[];var Jt={requestId:de,url:Ut,args:Ft,ctx:Ft.ctx};Ft.emitter&&Ft.emitter.emit("request",Jt),Ft.timeout=Ft.timeout||Yt.TIMEOUTS,Ft.maxRedirects=Ft.maxRedirects||10,Ft.streaming=Ft.streaming||Ft.customResponse;var ee,ae=Date.now();typeof Ut=="string"?(Ct.test(Ut)||(Ut="http://"+Ut),ee=tt.parse(Ut)):ee=Ut;var fe=(Ft.type||Ft.method||ee.method||"GET").toUpperCase(),se=ee.port||80,De=st,Oe=Ot(Ft.agent,Yt.agent),en=Ft.fixJSONCtlChars;ee.protocol==="https:"&&(De=rt,Oe=Ot(Ft.httpsAgent,Yt.httpsAgent),ee.port||(se=443));var We={host:ee.hostname||ee.host||"localhost",path:ee.path||"/",method:fe,port:se,agent:Oe,headers:Ft.headers||{},lookup:Ft.lookup};Array.isArray(Ft.timeout)?We.requestTimeout=Ft.timeout[Ft.timeout.length-1]:Ft.timeout!==void 0&&(We.requestTimeout=Ft.timeout);for(var rn=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],ke=0;ke<rn.length;ke++){var Ie=rn[ke];Ft.hasOwnProperty(Ie)&&(We[Ie]=Ft[Ie])}We.rejectUnauthorized!==!1||We.hasOwnProperty("secureOptions")||(We.secureOptions=yt("constants").SSL_OP_NO_TLSv1_2);var je=Ft.auth||ee.auth;je&&(We.auth=je);var $e=Ft.content||Ft.data,me=fe==="GET"||fe==="HEAD"||Ft.dataAsQueryString;if(!Ft.content&&$e&&typeof $e!="string"&&!Wt.isBuffer($e))if(me)$e=Ft.nestedQuerystring?qs.stringify($e):querystring.stringify($e);else{var le=We.headers["Content-Type"]||We.headers["content-type"];le||(le=Ft.contentType==="json"?"application/json":"application/x-www-form-urlencoded",We.headers["Content-Type"]=le),$e=parseContentType(le).type==="application/json"?(0,Tt.default)($e):Ft.nestedQuerystring?qs.stringify($e):querystring.stringify($e)}me&&$e&&(We.path+=(ee.query?"&":"?")+$e,$e=null);var Ee=0;if($e){var ce=$e.length;Wt.isBuffer($e)||(ce=Wt.byteLength($e)),Ee=We.headers["Content-Length"]=ce}Ft.dataType==="json"&&(We.headers.Accept="application/json"),typeof Ft.beforeRequest=="function"&&Ft.beforeRequest(We);var he=null,_t=null,Mt=null,Et=!1,Ht=!1,Pt=0,dt=-1,gt=!1,zt="",re="",Zt=null;Ft.timing&&(Zt={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0}),We.headers["User-Agent"]||We.headers["user-agent"]||(We.headers["User-Agent"]=navigator.userAgent),Ft.gzip&&(We.headers["Accept-Encoding"]||We.headers["accept-encoding"]||(We.headers["Accept-Encoding"]="gzip"));var ye=Ft.writeStream;ut("Request#%d %s %s with headers %j, options.path: %s",de,fe,Ut,We.headers,We.path),Ft.requestUrls.push(Ut);var Ye,sn;Array.isArray(Ft.timeout)?(Ye=ct(Ft.timeout[0]),sn=ct(Ft.timeout[1])):Ye=sn=ct(Ft.timeout),ut("ConnectTimeout: %d, ResponseTimeout: %d",Ye,sn);var Le;try{Le=De.request(We,Se)}catch(Re){return ue(Re)}return typeof window=="undefined"?function(){ut("Connect timer ticking, timeout: %d",Ye),he=setTimeout(function(){he=null,dt===-1&&(dt=-2);var Re="Connect timeout for "+Ye+"ms",hn="ConnectionTimeoutError";Le.socket||(hn="SocketAssignTimeoutError",Re+=", working sockets is full"),Mt=new Error(Re),Mt.name=hn,Mt.requestId=de,ut("ConnectTimeout: Request#%d %s %s: %s, connected: %s",de,Ut,Mt.name,Re,Et),pe()},Ye)}():Le.on("requestTimeout",function(){dt===-1&&(dt=-2);var Re="Connect timeout for "+Ye+"ms";Mt=new Error(Re),Mt.name="ConnectionTimeoutError",Mt.requestId=de,pe()}),Zt&&Le.on("finish",function(){Zt.requestSent=Date.now()-ae}),Le.once("socket",function(Re){Zt&&(Zt.queuing=Date.now()-ae),isNode010&&Re.socket&&(Re=Re.socket);var hn=Re.readyState;if(hn==="opening")return Re.once("lookup",function(wn,kn,Rn){ut("Request#%d %s lookup: %s, %s, %s",de,Ut,wn,kn,Rn),Zt&&(Zt.dnslookup=Date.now()-ae),kn&&(zt=kn)}),void Re.once("connect",function(){Zt&&(Zt.connected=Date.now()-ae),$t(),Ne(),ut("Request#%d %s new socket connected",de,Ut),Et=!0,zt||(zt=Re.remoteAddress),re=Re.remotePort});ut("Request#%d %s reuse socket connected, readyState: %s",de,Ut,hn),Et=!0,Ht=!0,zt||(zt=Re.remoteAddress),re=Re.remotePort,$t(),Ne()}),Le.on("error",function(Re){Re.name!=="Error"&&Re.name!=="TypeError"||(Re.name=Et?"ResponseError":"RequestError"),Re.message+=' (req "error")',ut("Request#%d %s `req error` event emit, %s: %s",de,Ut,Re.name,Re.message),ue(Mt||Re)}),ye&&ye.once("error",function(Re){Re.message+=' (writeStream "error")',Mt=Re,ut("Request#%d %s `writeStream error` event emit, %s: %s",de,Ut,Re.name,Re.message),pe()}),Ft.stream?(Ft.stream.pipe(Le),Ft.stream.once("error",function(Re){Re.message+=' (stream "error")',Mt=Re,ut("Request#%d %s `readStream error` event emit, %s: %s",de,Ut,Re.name,Re.message),pe()})):Le.end($e),Le.requestId=de,Le}}).call(this,yt("_process"),yt("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(Rt){function yt(Yt){if(Vt[Yt])return Vt[Yt].exports;var Nt=Vt[Yt]={i:Yt,l:!1,exports:{}};return Rt[Yt].call(Nt.exports,Nt,Nt.exports,yt),Nt.l=!0,Nt.exports}var Vt={};yt.m=Rt,yt.c=Vt,yt.d=function(Yt,Nt,Wt){yt.o(Yt,Nt)||Object.defineProperty(Yt,Nt,{configurable:!1,enumerable:!0,get:Wt})},yt.n=function(Yt){var Nt=Yt&&Yt.__esModule?function(){return Yt.default}:function(){return Yt};return yt.d(Nt,"a",Nt),Nt},yt.o=function(Yt,Nt){return Object.prototype.hasOwnProperty.call(Yt,Nt)},yt.p="",yt(yt.s=12)}([function(Rt,yt,Vt){(function(Yt,Nt){Rt.exports=yt=Nt()})(0,function(){var Yt=Yt||function(Nt,Wt){var xt=Object.create||function(){function rt(){}return function(ut){var ct;return rt.prototype=ut,ct=new rt,rt.prototype=null,ct}}(),Ot={},Bt=Ot.lib={},At=Bt.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)}}}(),bt=Bt.WordArray=At.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,pt=this.sigBytes,mt=rt.sigBytes;if(this.clamp(),pt%4)for(var Ct=0;Ct<mt;Ct++){var Dt=ct[Ct>>>2]>>>24-Ct%4*8&255;ut[pt+Ct>>>2]|=Dt<<24-(pt+Ct)%4*8}else for(var Ct=0;Ct<mt;Ct+=4)ut[pt+Ct>>>2]=ct[Ct>>>2];return this.sigBytes+=mt,this},clamp:function(){var rt=this.words,ut=this.sigBytes;rt[ut>>>2]&=4294967295<<32-ut%4*8,rt.length=Nt.ceil(ut/4)},clone:function(){var rt=At.clone.call(this);return rt.words=this.words.slice(0),rt},random:function(rt){for(var ut,ct=[],pt=0;pt<rt;pt+=4){var mt=function(Dt){var Dt=Dt,Ut=987654321,Ft=4294967295;return function(){Ut=36969*(65535&Ut)+(Ut>>16)&Ft,Dt=18e3*(65535&Dt)+(Dt>>16)&Ft;var Qt=(Ut<<16)+Dt&Ft;return Qt/=4294967296,(Qt+=.5)*(Nt.random()>.5?1:-1)}}(4294967296*(ut||Nt.random()));ut=987654071*mt(),ct.push(4294967296*mt()|0)}return new bt.init(ct,rt)}}),Tt=Ot.enc={},It=Tt.Hex={stringify:function(rt){for(var ut=rt.words,ct=rt.sigBytes,pt=[],mt=0;mt<ct;mt++){var Ct=ut[mt>>>2]>>>24-mt%4*8&255;pt.push((Ct>>>4).toString(16)),pt.push((15&Ct).toString(16))}return pt.join("")},parse:function(rt){for(var ut=rt.length,ct=[],pt=0;pt<ut;pt+=2)ct[pt>>>3]|=parseInt(rt.substr(pt,2),16)<<24-pt%8*4;return new bt.init(ct,ut/2)}},vt=Tt.Latin1={stringify:function(rt){for(var ut=rt.words,ct=rt.sigBytes,pt=[],mt=0;mt<ct;mt++){var Ct=ut[mt>>>2]>>>24-mt%4*8&255;pt.push(String.fromCharCode(Ct))}return pt.join("")},parse:function(rt){for(var ut=rt.length,ct=[],pt=0;pt<ut;pt++)ct[pt>>>2]|=(255&rt.charCodeAt(pt))<<24-pt%4*8;return new bt.init(ct,ut)}},et=Tt.Utf8={stringify:function(rt){try{return decodeURIComponent(escape(vt.stringify(rt)))}catch(ut){throw new Error("Malformed UTF-8 data")}},parse:function(rt){return vt.parse(unescape(encodeURIComponent(rt)))}},tt=Bt.BufferedBlockAlgorithm=At.extend({reset:function(){this._data=new bt.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,pt=ut.sigBytes,mt=this.blockSize,Ct=4*mt,Dt=pt/Ct;Dt=rt?Nt.ceil(Dt):Nt.max((0|Dt)-this._minBufferSize,0);var Ut=Dt*mt,Ft=Nt.min(4*Ut,pt);if(Ut){for(var Qt=0;Qt<Ut;Qt+=mt)this._doProcessBlock(ct,Qt);var $t=ct.splice(0,Ut);ut.sigBytes-=Ft}return new bt.init($t,Ft)},clone:function(){var rt=At.clone.call(this);return rt._data=this._data.clone(),rt},_minBufferSize:0}),st=(Bt.Hasher=tt.extend({cfg:At.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 Yt})},function(Rt,yt,Vt){"use strict";function Yt(xt,Ot){if(!(xt instanceof Ot))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(yt,"__esModule",{value:!0});var Nt=function(){function xt(Ot,Bt){for(var At=0;At<Bt.length;At++){var bt=Bt[At];bt.enumerable=bt.enumerable||!1,bt.configurable=!0,"value"in bt&&(bt.writable=!0),Object.defineProperty(Ot,bt.key,bt)}}return function(Ot,Bt,At){return Bt&&xt(Ot.prototype,Bt),At&&xt(Ot,At),Ot}}(),Wt=function(){function xt(){Yt(this,xt)}return Nt(xt,null,[{key:"detectIEVersion",value:function(){for(var Ot=4,Bt=document.createElement("div"),At=Bt.getElementsByTagName("i");Bt.innerHTML="<!--[if gt IE "+Ot+"]><i></i><![endif]-->",At[0];)Ot++;return Ot>4&&Ot}},{key:"extend",value:function(Ot,Bt){for(var At in Bt)Object.prototype.hasOwnProperty.call(Bt,At)&&Bt[At]&&(Ot[At]=Bt[At])}},{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 Bt(At){return At<10?"0"+At:At}return Ot.getUTCFullYear()+"-"+Bt(Ot.getUTCMonth()+1)+"-"+Bt(Ot.getUTCDate())+"T"+Bt(Ot.getUTCHours())+":"+Bt(Ot.getUTCMinutes())+":"+Bt(Ot.getUTCSeconds())+"Z"}},{key:"isIntNum",value:function(Ot){return!!/^\d+$/.test(Ot)}}]),xt}();yt.default=Wt},function(Rt,yt,Vt){(function(Yt,Nt){Rt.exports=yt=Nt(Vt(0))})(0,function(Yt){return function(Nt){function Wt(st,rt,ut,ct,pt,mt,Ct){var Dt=st+(rt&ut|~rt&ct)+pt+Ct;return(Dt<<mt|Dt>>>32-mt)+rt}function xt(st,rt,ut,ct,pt,mt,Ct){var Dt=st+(rt&ct|ut&~ct)+pt+Ct;return(Dt<<mt|Dt>>>32-mt)+rt}function Ot(st,rt,ut,ct,pt,mt,Ct){var Dt=st+(rt^ut^ct)+pt+Ct;return(Dt<<mt|Dt>>>32-mt)+rt}function Bt(st,rt,ut,ct,pt,mt,Ct){var Dt=st+(ut^(rt|~ct))+pt+Ct;return(Dt<<mt|Dt>>>32-mt)+rt}var At=Yt,bt=At.lib,Tt=bt.WordArray,It=bt.Hasher,vt=At.algo,et=[];(function(){for(var st=0;st<64;st++)et[st]=4294967296*Nt.abs(Nt.sin(st+1))|0})();var tt=vt.MD5=It.extend({_doReset:function(){this._hash=new Tt.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(st,rt){for(var ut=0;ut<16;ut++){var ct=rt+ut,pt=st[ct];st[ct]=16711935&(pt<<8|pt>>>24)|4278255360&(pt<<24|pt>>>8)}var mt=this._hash.words,Ct=st[rt+0],Dt=st[rt+1],Ut=st[rt+2],Ft=st[rt+3],Qt=st[rt+4],$t=st[rt+5],Kt=st[rt+6],ue=st[rt+7],oe=st[rt+8],we=st[rt+9],Se=st[rt+10],Ne=st[rt+11],pe=st[rt+12],Ue=st[rt+13],de=st[rt+14],Jt=st[rt+15],ee=mt[0],ae=mt[1],fe=mt[2],se=mt[3];ee=Wt(ee,ae,fe,se,Ct,7,et[0]),se=Wt(se,ee,ae,fe,Dt,12,et[1]),fe=Wt(fe,se,ee,ae,Ut,17,et[2]),ae=Wt(ae,fe,se,ee,Ft,22,et[3]),ee=Wt(ee,ae,fe,se,Qt,7,et[4]),se=Wt(se,ee,ae,fe,$t,12,et[5]),fe=Wt(fe,se,ee,ae,Kt,17,et[6]),ae=Wt(ae,fe,se,ee,ue,22,et[7]),ee=Wt(ee,ae,fe,se,oe,7,et[8]),se=Wt(se,ee,ae,fe,we,12,et[9]),fe=Wt(fe,se,ee,ae,Se,17,et[10]),ae=Wt(ae,fe,se,ee,Ne,22,et[11]),ee=Wt(ee,ae,fe,se,pe,7,et[12]),se=Wt(se,ee,ae,fe,Ue,12,et[13]),fe=Wt(fe,se,ee,ae,de,17,et[14]),ae=Wt(ae,fe,se,ee,Jt,22,et[15]),ee=xt(ee,ae,fe,se,Dt,5,et[16]),se=xt(se,ee,ae,fe,Kt,9,et[17]),fe=xt(fe,se,ee,ae,Ne,14,et[18]),ae=xt(ae,fe,se,ee,Ct,20,et[19]),ee=xt(ee,ae,fe,se,$t,5,et[20]),se=xt(se,ee,ae,fe,Se,9,et[21]),fe=xt(fe,se,ee,ae,Jt,14,et[22]),ae=xt(ae,fe,se,ee,Qt,20,et[23]),ee=xt(ee,ae,fe,se,we,5,et[24]),se=xt(se,ee,ae,fe,de,9,et[25]),fe=xt(fe,se,ee,ae,Ft,14,et[26]),ae=xt(ae,fe,se,ee,oe,20,et[27]),ee=xt(ee,ae,fe,se,Ue,5,et[28]),se=xt(se,ee,ae,fe,Ut,9,et[29]),fe=xt(fe,se,ee,ae,ue,14,et[30]),ae=xt(ae,fe,se,ee,pe,20,et[31]),ee=Ot(ee,ae,fe,se,$t,4,et[32]),se=Ot(se,ee,ae,fe,oe,11,et[33]),fe=Ot(fe,se,ee,ae,Ne,16,et[34]),ae=Ot(ae,fe,se,ee,de,23,et[35]),ee=Ot(ee,ae,fe,se,Dt,4,et[36]),se=Ot(se,ee,ae,fe,Qt,11,et[37]),fe=Ot(fe,se,ee,ae,ue,16,et[38]),ae=Ot(ae,fe,se,ee,Se,23,et[39]),ee=Ot(ee,ae,fe,se,Ue,4,et[40]),se=Ot(se,ee,ae,fe,Ct,11,et[41]),fe=Ot(fe,se,ee,ae,Ft,16,et[42]),ae=Ot(ae,fe,se,ee,Kt,23,et[43]),ee=Ot(ee,ae,fe,se,we,4,et[44]),se=Ot(se,ee,ae,fe,pe,11,et[45]),fe=Ot(fe,se,ee,ae,Jt,16,et[46]),ae=Ot(ae,fe,se,ee,Ut,23,et[47]),ee=Bt(ee,ae,fe,se,Ct,6,et[48]),se=Bt(se,ee,ae,fe,ue,10,et[49]),fe=Bt(fe,se,ee,ae,de,15,et[50]),ae=Bt(ae,fe,se,ee,$t,21,et[51]),ee=Bt(ee,ae,fe,se,pe,6,et[52]),se=Bt(se,ee,ae,fe,Ft,10,et[53]),fe=Bt(fe,se,ee,ae,Se,15,et[54]),ae=Bt(ae,fe,se,ee,Dt,21,et[55]),ee=Bt(ee,ae,fe,se,oe,6,et[56]),se=Bt(se,ee,ae,fe,Jt,10,et[57]),fe=Bt(fe,se,ee,ae,Kt,15,et[58]),ae=Bt(ae,fe,se,ee,Ue,21,et[59]),ee=Bt(ee,ae,fe,se,Qt,6,et[60]),se=Bt(se,ee,ae,fe,Ne,10,et[61]),fe=Bt(fe,se,ee,ae,Ut,15,et[62]),ae=Bt(ae,fe,se,ee,we,21,et[63]),mt[0]=mt[0]+ee|0,mt[1]=mt[1]+ae|0,mt[2]=mt[2]+fe|0,mt[3]=mt[3]+se|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 pt=Nt.floor(ut/4294967296),mt=ut;rt[15+(ct+64>>>9<<4)]=16711935&(pt<<8|pt>>>24)|4278255360&(pt<<24|pt>>>8),rt[14+(ct+64>>>9<<4)]=16711935&(mt<<8|mt>>>24)|4278255360&(mt<<24|mt>>>8),st.sigBytes=4*(rt.length+1),this._process();for(var Ct=this._hash,Dt=Ct.words,Ut=0;Ut<4;Ut++){var Ft=Dt[Ut];Dt[Ut]=16711935&(Ft<<8|Ft>>>24)|4278255360&(Ft<<24|Ft>>>8)}return Ct},clone:function(){var st=It.clone.call(this);return st._hash=this._hash.clone(),st}});At.MD5=It._createHelper(tt),At.HmacMD5=It._createHmacHelper(tt)}(Math),Yt.MD5})},function(Rt,yt,Vt){"use strict";Object.defineProperty(yt,"__esModule",{value:!0}),yt.UPLOADSTATE={INIT:"init",UPLOADING:"uploading",COMPLETE:"complete",INTERRUPT:"interrupt"},yt.UPLOADSTEP={INIT:"init",PART:"part",COMPLETE:"complete"},yt.UPLOADDEFAULT={PARALLEL:5,PARTSIZE:1048576}},function(Rt,yt,Vt){"use strict";function Yt(tt){return tt&&tt.__esModule?tt:{default:tt}}function Nt(tt,st){if(!(tt instanceof st))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(yt,"__esModule",{value:!0});var Wt=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=Vt(5),Ot=Yt(xt),Bt=Vt(25),At=Yt(Bt),bt=Vt(6),Tt=Yt(bt),It=Vt(7),vt=Yt(It),et=function(){function tt(st){Nt(this,tt);var rt=vt.default.os.name,ut=vt.default.os.version||"",ct=vt.default.browser.name,pt=vt.default.browser.version||"",mt=window.location.href,Ct="";mt&&(Ct=vt.default.getHost(mt));var Dt="pc";vt.default.os.ipad?Dt="pad":(vt.default.os.iphone||vt.default.os.android)&&(Dt="phone"),this._ri=Ot.default.create(),this.initParam={APIVersion:"0.6.0",lv:"1",av:Tt.default.version,pd:"upload",sm:"upload",md:"uploader",uuid:tt.getUuid(),os:rt,ov:ut,et:ct,ev:pt,uat:navigator.userAgent,app_n:Ct,tt:Dt,dm:"h5",ut:""}}return Wt(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 pt=ut.join("&");this.initParam.args=encodeURIComponent(pt==""?"0":pt);var mt=[];for(var ct in this.initParam)mt.push(ct+"="+this.initParam[ct]);var Ct=mt.join("&");AliyunUpload&&AliyunUpload.__logTestCallback__?AliyunUpload.__logTestCallback__(Ct):new Image(0,0).src="https://videocloud.cn-hangzhou.log.aliyuncs.com/logstores/upload/track?"+Ct}}],[{key:"getUuid",value:function(){var st=At.default.get("p_h5_upload_u");return st||(st=Ot.default.create(),At.default.set("p_h5_upload_u",st,730)),st}},{key:"getClientId",value:function(){return At.default.get("p_h5_upload_clientId")}},{key:"setClientId",value:function(st){return st||(st=Ot.default.create()),At.default.set("p_h5_upload_clientId",st,730),st}}]),tt}();yt.default=et},function(Rt,yt,Vt){"use strict";function Yt(xt,Ot){if(!(xt instanceof Ot))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(yt,"__esModule",{value:!0});var Nt=function(){function xt(Ot,Bt){for(var At=0;At<Bt.length;At++){var bt=Bt[At];bt.enumerable=bt.enumerable||!1,bt.configurable=!0,"value"in bt&&(bt.writable=!0),Object.defineProperty(Ot,bt.key,bt)}}return function(Ot,Bt,At){return Bt&&xt(Ot.prototype,Bt),At&&xt(Ot,At),Ot}}(),Wt=function(){function xt(){Yt(this,xt)}return Nt(xt,null,[{key:"create",value:function(Ot,Bt){var At,bt="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),Tt=[];if(Bt=Bt||bt.length,Ot)for(At=0;At<Ot;At++)Tt[At]=bt[0|Math.random()*Bt];else{var It;for(Tt[8]=Tt[13]=Tt[18]=Tt[23]="-",Tt[14]="4",At=0;At<36;At++)Tt[At]||(It=0|16*Math.random(),Tt[At]=bt[At==19?3&It|8:It])}return Tt.join("")}}]),xt}();yt.default=Wt},function(Rt,yt,Vt){"use strict";Object.defineProperty(yt,"__esModule",{value:!0});var Yt={version:"1.5.0"};yt.default=Yt},function(Rt,yt,Vt){"use strict";function Yt(bt,Tt){if(!(bt instanceof Tt))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(yt,"__esModule",{value:!0});var Nt=function(){function bt(Tt,It){for(var vt=0;vt<It.length;vt++){var et=It[vt];et.enumerable=et.enumerable||!1,et.configurable=!0,"value"in et&&(et.writable=!0),Object.defineProperty(Tt,et.key,et)}}return function(Tt,It,vt){return It&&bt(Tt.prototype,It),vt&&bt(Tt,vt),Tt}}(),Wt=function(bt){var Tt=navigator.userAgent,It="other";if(bt.ios)return"iOS";if(bt.android)return"android";if(Tt.indexOf("Baiduspider")>-1)return"Baiduspider";if(Tt.indexOf("PlayStation")>-1)return"PS4";var vt=navigator.platform=="Win32"||navigator.platform=="Windows"||Tt.indexOf("Windows")>-1,et=navigator.platform=="Mac68K"||navigator.platform=="MacPPC"||navigator.platform=="Macintosh"||navigator.platform=="MacIntel";return et&&(It="macOS"),navigator.platform=="X11"&&!vt&&!et&&(It="Unix"),String(navigator.platform).indexOf("Linux")>-1&&(It="Linux"),vt?"windows":It},xt=function(){var bt=navigator.userAgent,Tt="";return(bt.indexOf("Windows NT 5.0")>-1||bt.indexOf("Windows 2000")>-1)&&(Tt="2000"),(bt.indexOf("Windows NT 5.1")>-1||bt.indexOf("Windows XP")>-1)&&(Tt="XP"),(bt.indexOf("Windows NT 5.2")>-1||bt.indexOf("Windows 2003")>-1)&&(Tt="2003"),(bt.indexOf("Windows NT 6.0")>-1||bt.indexOf("Windows Vista")>-1)&&(Tt="Vista"),(bt.indexOf("Windows NT 6.1")>-1||bt.indexOf("Windows 7")>-1)&&(Tt="7"),(bt.indexOf("Windows NT 6.2")>-1||bt.indexOf("Windows 8")>-1)&&(Tt="8"),(bt.indexOf("Windows NT 6.3")>-1||bt.indexOf("Windows 8.1")>-1)&&(Tt="8.1"),(bt.indexOf("Windows NT 10")>-1||bt.indexOf("Windows 10")>-1)&&(Tt="10"),Tt},Ot=function(bt){var Tt=navigator.userAgent.toLowerCase();return bt.chrome?"Chrome":bt.firefox?"Firefox":bt.safari?"Safari":bt.webview?"webview":bt.ie?/edge/.test(Tt)?"Edge":"IE":/baiduspider/.test(Tt)?"Baiduspider":/ucweb/.test(Tt)||/UCBrowser/.test(Tt)?"UC":/opera/.test(Tt)?"Opera":/ucweb/.test(Tt)?"UC":/360se/.test(Tt)?"360\u6D4F\u89C8\u5668":/bidubrowser/.test(Tt)?"\u767E\u5EA6\u6D4F\u89C8\u5668":/metasr/.test(Tt)?"\u641C\u72D7\u6D4F\u89C8\u5668":/lbbrowser/.test(Tt)?"\u730E\u8C79\u6D4F\u89C8\u5668":/micromessenger/.test(Tt)?"\u5FAE\u4FE1\u5185\u7F6E\u6D4F\u89C8\u5668":/qqbrowser/.test(Tt)?"QQ\u6D4F\u89C8\u5668":/playstation/.test(Tt)?"PS4\u6D4F\u89C8\u5668":void 0},Bt=function(){var bt={},Tt={},It=navigator.userAgent,vt=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_]+)/),pt=It.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),mt=/Win\d{2}|Windows/.test(vt),Ct=It.match(/Windows Phone ([\d.]+)/),Dt=pt&&It.match(/TouchPad/),Ut=It.match(/Kindle\/([\d.]+)/),Ft=It.match(/Silk\/([\d._]+)/),Qt=It.match(/(BlackBerry).*Version\/([\d.]+)/),$t=It.match(/(BB10).*Version\/([\d.]+)/),Kt=It.match(/(RIM\sTablet\sOS)\s([\d.]+)/),ue=It.match(/PlayBook/),oe=It.match(/Chrome\/([\d.]+)/)||It.match(/CriOS\/([\d.]+)/),we=It.match(/Firefox\/([\d.]+)/),Se=It.match(/\((?:Mobile|Tablet); rv:([\d.]+)\).*Firefox\/[\d.]+/),Ne=It.match(/MSIE\s([\d.]+)/)||It.match(/Trident\/[\d](?=[^\?]+).*rv:([0-9.].)/),pe=!oe&&It.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/),Ue=pe||It.match(/Version\/([\d.]+)([^S](Safari)|[^M]*(Mobile)[^S]*(Safari))/);if((Tt.webkit=!!et)&&(Tt.version=et[1]),tt&&(bt.android=!0,bt.version=tt[2]),ct&&!ut&&(bt.ios=bt.iphone=!0,bt.version=ct[2].replace(/_/g,".")),rt&&(bt.ios=bt.ipad=!0,bt.version=rt[2].replace(/_/g,".")),ut&&(bt.ios=bt.ipod=!0,bt.version=ut[3]?ut[3].replace(/_/g,"."):null),Ct&&(bt.wp=!0,bt.version=Ct[1]),pt&&(bt.webos=!0,bt.version=pt[2]),Dt&&(bt.touchpad=!0),Qt&&(bt.blackberry=!0,bt.version=Qt[2]),$t&&(bt.bb10=!0,bt.version=$t[2]),Kt&&(bt.rimtabletos=!0,bt.version=Kt[2]),ue&&(Tt.playbook=!0),Ut&&(bt.kindle=!0,bt.version=Ut[1]),Ft&&(Tt.silk=!0,Tt.version=Ft[1]),!Ft&&bt.android&&It.match(/Kindle Fire/)&&(Tt.silk=!0),oe&&(Tt.chrome=!0,Tt.version=oe[1]),we&&(Tt.firefox=!0,Tt.version=we[1]),Se&&(bt.firefoxos=!0,bt.version=Se[1]),Ne&&(Tt.ie=!0,Tt.version=Ne[1]),Ue&&(st||bt.ios||mt||tt)&&(Tt.safari=!0,bt.ios||(Tt.version=Ue[1])),pe&&(Tt.webview=!0),st){var de=It.match(/[\d]*_[\d]*_[\d]*/);de&&de.length>0&&de[0]&&(bt.version=de[0].replace(/_/g,"."))}return bt.tablet=!!(rt||ue||tt&&!It.match(/Mobile/)||we&&It.match(/Tablet/)||Ne&&!It.match(/Phone/)&&It.match(/Touch/)),bt.phone=!(bt.tablet||bt.ipod||!(tt||ct||pt||Qt||$t||oe&&It.match(/Android/)||oe&&It.match(/CriOS\/([\d.]+)/)||we&&It.match(/Mobile/)||Ne&&It.match(/Touch/))),bt.pc=!bt.tablet&&!bt.phone,st?bt.name="macOS":mt?(bt.name="windows",bt.version=xt()):bt.name=Wt(bt),Tt.name=Ot(Tt),{os:bt,browser:Tt}}(),At=function(){function bt(){Yt(this,bt)}return Nt(bt,null,[{key:"getHost",value:function(Tt){var et="";if(Tt===void 0||Tt==null||Tt=="")return"";var It=Tt.indexOf("//"),vt=Tt;It>-1&&(vt=Tt.substring(It+2));var et=vt,tt=vt.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 Bt.os}},{key:"browser",get:function(){var Tt=Bt.browser;return Tt.name||(Tt.name=Ot()),Tt}}]),bt}();yt.default=At},function(Rt,yt,Vt){"use strict";function Yt(xt,Ot){if(!(xt instanceof Ot))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(yt,"__esModule",{value:!0});var Nt=function(){function xt(Ot,Bt){for(var At=0;At<Bt.length;At++){var bt=Bt[At];bt.enumerable=bt.enumerable||!1,bt.configurable=!0,"value"in bt&&(bt.writable=!0),Object.defineProperty(Ot,bt.key,bt)}}return function(Ot,Bt,At){return Bt&&xt(Ot.prototype,Bt),At&&xt(Ot,At),Ot}}(),Wt=function(){function xt(){Yt(this,xt)}return Nt(xt,null,[{key:"get",value:function(Ot,Bt,At,bt,Tt){var It;At=At||function(){},typeof XMLHttpRequest=="undefined"&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(vt){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(vt){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(vt){}throw new Error("This browser does not support XMLHttpRequest.")}),It=new XMLHttpRequest,It.onreadystatechange=function(){It.readyState===4&&(It.status===200?Bt(It.responseText):At(It.responseText))};try{bt===void 0&&(bt=!0),It.open("GET",Ot,bt),Tt&&(It.withCredentials=!0)}catch(vt){return void At(vt)}try{It.send()}catch(vt){At(vt)}}}]),xt}();yt.default=Wt},function(Rt,yt,Vt){"use strict";function Yt(Bt,At){if(!(Bt instanceof At))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(yt,"__esModule",{value:!0});var Nt=function(){function Bt(At,bt){for(var Tt=0;Tt<bt.length;Tt++){var It=bt[Tt];It.enumerable=It.enumerable||!1,It.configurable=!0,"value"in It&&(It.writable=!0),Object.defineProperty(At,It.key,It)}}return function(At,bt,Tt){return bt&&Bt(At.prototype,bt),Tt&&Bt(At,Tt),At}}(),Wt=Vt(27),xt=Vt(30),Ot=(Vt(10),function(){function Bt(){Yt(this,Bt)}return Nt(Bt,null,[{key:"randomUUID",value:function(){for(var At=[],bt="0123456789abcdef",Tt=0;Tt<36;Tt++)At[Tt]=bt.substr(Math.floor(16*Math.random()),1);return At[14]="4",At[19]=bt.substr(3&At[19]|8,1),At[8]=At[13]=At[18]=At[23]="-",At.join("")}},{key:"aliyunEncodeURI",value:function(At){var bt=encodeURIComponent(At);return bt=bt.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(At,bt,Tt){if(!At)throw new Error("PrismPlayer Error: vid should not be null!");var It=[];for(var vt in At)It.push(vt);for(var et=It.sort(),tt="",st=et.length,vt=0;vt<st;vt++){var rt=Bt.aliyunEncodeURI(et[vt]),ut=Bt.aliyunEncodeURI(At[et[vt]]);tt==""?tt=rt+bt+ut:tt+=Tt+rt+bt+ut}return tt}},{key:"makeChangeSiga",value:function(At,bt){if(!At)throw new Error("PrismPlayer Error: vid should not be null!");return xt.stringify(Wt("GET&"+Bt.aliyunEncodeURI("/")+"&"+Bt.aliyunEncodeURI(Bt.makeUTF8sort(At,"=","&")),bt+"&"))}}]),Bt}());yt.default=Ot},function(Rt,yt,Vt){(function(Yt,Nt){Rt.exports=yt=Nt(Vt(0))})(0,function(Yt){return Yt.enc.Utf8})},function(Rt,yt,Vt){(function(Yt,Nt){Rt.exports=yt=Nt(Vt(0))})(0,function(Yt){return Yt.enc.Hex})},function(Rt,yt,Vt){Rt.exports=Vt(13)},function(Rt,yt,Vt){"use strict";var Yt,Nt,Wt=Vt(14),xt=function(Bt){return Bt&&Bt.__esModule?Bt:{default:Bt}}(Wt),Ot={Vod:xt.default};Yt=[],(Nt=function(){return Ot}.apply(yt,Yt))!==void 0&&(Rt.exports=Nt),window.AliyunUpload=Ot,Nn.exports=AliyunUpload},function(Rt,yt,Vt){"use strict";function Yt($t){return $t&&$t.__esModule?$t:{default:$t}}function Nt($t,Kt){if(!($t instanceof Kt))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(yt,"__esModule",{value:!0});var Wt=function(){function $t(Kt,ue){for(var oe=0;oe<ue.length;oe++){var we=ue[oe];we.enumerable=we.enumerable||!1,we.configurable=!0,"value"in we&&(we.writable=!0),Object.defineProperty(Kt,we.key,we)}}return function(Kt,ue,oe){return ue&&$t(Kt.prototype,ue),oe&&$t(Kt,oe),Kt}}(),xt=Vt(15),Ot=Vt(3),Bt=Vt(16),At=Yt(Bt),bt=Vt(18),Tt=Yt(bt),It=Vt(24),vt=Yt(It),et=Vt(4),tt=Yt(et),st=Vt(1),rt=Yt(st),ut=Vt(5),ct=Yt(ut),pt=Vt(26),mt=Yt(pt),Ct=Vt(31),Dt=Yt(Ct),Ut=Vt(32),Ft=Yt(Ut),Qt=(Vt(2),function(){function $t(Kt){Nt(this,$t),this.options=Kt,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 Wt($t,[{key:"init",value:function(Kt,ue,oe,we){return this._retryCount=0,!(oe&&!we||!oe&&we)&&!(Kt&&!ue||!Kt&&ue)&&(this._ossCreditor.accessKeyId=Kt,this._ossCreditor.accessKeySecret=ue,this._ossCreditor.securityToken=oe,this._ossCreditor.expireTime=we,!0)}},{key:"addFile",value:function(Kt,ue,oe,we,Se,Ne){if(!Kt)return!1;if(Kt.size==0)try{this.options.onUploadFailed({file:Kt},"EmptyFile","\u6587\u4EF6\u5927\u5C0F\u4E3A0\uFF0C\u4E0D\u80FD\u4E0A\u4F20")}catch(Jt){console.log(Jt)}for(var pe=(this.options,0);pe<this._uploadList.length;pe++)if(this._uploadList[pe].file==Kt)return!1;var Ue=new Object;if(Ue.file=Kt,Ue._endpoint=ue,Ue._bucket=oe,Ue._object=we,Ue.state=xt.UPLOADSTATE.INIT,Ue.isImage=rt.default.isImage(Kt.name),!Ue.isImage&&this.options.enableUploadProgress){var de=this;Ft.default.getMd5(Kt,function(Jt){Ue.fileHash=Jt;var ee=de._getCheckoutpoint(Ue);de.options.localCheckpoint||ee||de._getCheckoutpointFromCloud(Ue,function(ae){if(ae.UploadPoint){var fe=JSON.parse(ae.UploadPoint);fe.loaded!=1&&(Ue.checkpoint=fe.checkpoint,Ue.loaded=fe.loaded,Ue.videoId=ae.VideoId,de._saveCheckoutpoint(Ue,fe.checkpoint))}},function(ae){try{if((ae=JSON.parse(ae))&&ae.Code=="InvalidParameter"&&ae.Message.indexOf("UserId")>0){de._invalidUserId=!0;var fe=ae.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(fe)}}catch(se){console.log(se)}})})}Se&&(Ue.videoInfo=Se?JSON.parse(Se).Vod:{},Ue.userData=Tt.default.encode(Se)),Ue.ri=ct.default.create(),this._uploadList.push(Ue),this._reportLog("20001",Ue,{ql:this._uploadList.length});try{this.options.addFileSuccess&&this.options.addFileSuccess(Ue)}catch(Jt){console.log(Jt)}return!0}},{key:"deleteFile",value:function(Kt){return!!this.cancelFile(Kt)&&(this._uploadList.splice(Kt,1),!0)}},{key:"cleanList",value:function(){this.stopUpload(),this._uploadList.length=0,this._curIndex=-1}},{key:"cancelFile",value:function(Kt){if(this.options,Kt<0||Kt>=this._uploadList.length)return!1;var ue=this._uploadList[Kt];if(Kt==this._curIndex&&ue.state==xt.UPLOADSTATE.UPLOADING){ue.state=xt.UPLOADSTATE.CANCELED;var oe=this._getCheckoutpoint(ue);oe&&oe.checkpoint&&(oe=oe.checkpoint),oe&&this._ossUpload.abort(ue),this._removeCheckoutpoint(ue),this.nextUpload()}else ue.state!=xt.UPLOADSTATE.SUCCESS&&(ue.state=xt.UPLOADSTATE.CANCELED);return this._reportLog("20008",ue),!0}},{key:"resumeFile",value:function(Kt){if(this.options,Kt<0||Kt>=this._uploadList.length)return!1;var ue=this._uploadList[Kt];return ue.state==xt.UPLOADSTATE.CANCELED&&(ue.state=xt.UPLOADSTATE.INIT,!0)}},{key:"listFiles",value:function(){return this._uploadList}},{key:"getCheckpoint",value:function(Kt){return this._getCheckoutpoint({file:Kt})}},{key:"startUpload",value:function(Kt){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 ue=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(ue),this._state=xt.VODSTATE.START}},{key:"nextUpload",value:function(){var Kt=this.options;if(this._state==xt.VODSTATE.START)if(this._curIndex=this._findUploadIndex(),this._curIndex!=-1){var ue=this._uploadList[this._curIndex];this._ossUpload=null,this._upload(ue)}else{this._state=xt.VODSTATE.END;try{Kt.onUploadEnd&&Kt.onUploadEnd(ue)}catch(oe){console.log(oe)}}}},{key:"clear",value:function(Kt){for(var ue=this.options,oe=0,we=0;we<this._uploadList.length;we++)ue.uploadList[we].state==xt.UPLOADSTATE.SUCCESS&&oe++,this._uploadList[we].state==Kt&&(ue.uploadList.splice(we,1),we--);ue.onClear&&ue.onClear(ue.uploadList.length,oe)}},{key:"stopUpload",value:function(){if((this._state==xt.VODSTATE.START||this._state==xt.VODSTATE.FAILURE||this._curIndex==-1)&&this._curIndex!=-1){var Kt=this._uploadList[this._curIndex];this._state=xt.VODSTATE.STOP,Kt.state=xt.UPLOADSTATE.STOPED,this._changeState(Kt,xt.UPLOADSTATE.STOPED),this._ossUpload.cancel()}}},{key:"resumeUploadWithAuth",value:function(Kt){var ue=this;if(!Kt)return!1;var oe=JSON.parse(Tt.default.decode(Kt));return!!(oe.AccessKeyId&&oe.AccessKeySecret&&oe.SecurityToken&&oe.Expiration)&&ue.resumeUploadWithToken(oe.AccessKeyId,oe.AccessKeySecret,oe.SecurityToken,oe.Expiration)}},{key:"resumeUploadWithToken",value:function(Kt,ue,oe,we){if(this.options,!(Kt&&ue&&oe&&we)||this._state!=xt.VODSTATE.EXPIRE||this._curIndex==-1)return!1;var Se="";return this._uploadList.length>this._curIndex&&(Se=this._uploadList[this._curIndex]),Se&&(this.init(Kt,ue,oe,we),this._state=xt.VODSTATE.START,this._ossUpload=null,this._uploadCore(Se,Se.retry),Se.retry=!1),!0}},{key:"resumeUploadWithSTSToken",value:function(Kt,ue,oe){if(this._curIndex==-1||this._state!=xt.VODSTATE.EXPIRE)return!1;if(this._uploadList.length>this._curIndex){var we=this._uploadList[this._curIndex];we.object?this._refreshSTSTokenUpload(we,Kt,ue,oe):this.setSTSToken(we,Kt,ue,oe)}}},{key:"setSTSTokenDirectlyUpload",value:function(Kt,ue,oe,we,Se){if(!(ue&&oe&&we&&Se))return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken and expiration should not be empty."),!1;this._ut="oss";var Ne=Kt;this.init(ue,oe,we,Se),Ne.endpoint=Ne._endpoint,Ne.bucket=Ne._bucket,Ne.object=Ne._object,this._ossUpload=null,this._uploadCore(Ne,Kt.retry),Kt.retry=!1}},{key:"setSTSToken",value:function(Kt,ue,oe,we){if(!ue||!oe||!we)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;this._ut="vod",this._uploadWay="sts";var Se=Kt.videoInfo,Ne={accessKeyId:ue,securityToken:we,accessKeySecret:oe,fileName:Kt.file.name,title:Se.Title,requestId:Kt.ri,region:this.options.region};Se.ImageType&&(Ne.imageType=Se.ImageType),Se.ImageExt&&(Ne.imageExt=Se.ImageExt),Se.FileSize&&(Ne.fileSize=Se.FileSize),Se.Description&&(Ne.description=Se.Description),Se.CateId&&(Ne.cateId=Se.CateId),Se.Tags&&(Ne.tags=Se.Tags),Se.TemplateGroupId&&(Ne.templateGroupId=Se.TemplateGroupId),Se.StorageLocation&&(Ne.storageLocation=Se.StorageLocation),Se.CoverURL&&(Ne.coverUrl=Se.CoverURL),Se.TransCodeMode&&(Ne.transCodeMode=Se.TransCodeMode),Se.UserData&&(Ne.userData=Se.UserData);var pe=this,Ue="getUploadAuth";Kt.videoId?(Ne.videoId=Kt.videoId,Ue="refreshUploadAuth"):Kt.isImage&&(Ue="getImageUploadAuth"),mt.default[Ue](Ne,function(de){Kt.videoId=de.VideoId?de.VideoId:Kt.videoId,pe.setUploadAuthAndAddress(Kt,de.UploadAuth,de.UploadAddress),pe._state=xt.VODSTATE.START},function(de){pe._error(Kt,{name:de.Code,code:de.Code,message:de.Message,requestId:de.RequestId})})}},{key:"setUploadAuthAndAddress",value:function(Kt,ue,oe,we){if(!Kt||!ue||!oe)return!1;var Se=JSON.parse(Tt.default.decode(ue));if(!(Se.AccessKeyId&&Se.AccessKeySecret&&Se.SecurityToken&&Se.Expiration))return console.error("uploadauth is invalid"),!1;var Ne={},pe=Kt;if(oe){if(Ne=JSON.parse(Tt.default.decode(oe)),!Ne.Endpoint||!Ne.Bucket||!Ne.FileName)return console.error("uploadAddress is invalid"),!1}else Ne.Endpoint=pe.endpoint,Ne.Bucket=pe.bucket,Ne.FileName=pe.object;this._ut="vod",this._uploadWay="vod",this.options.region=Se.Region||this.options.region,this.init(Se.AccessKeyId,Se.AccessKeySecret,Se.SecurityToken,Se.Expiration),pe.endpoint=pe._endpoint?pe._endpoint:Ne.Endpoint,pe.bucket=pe._bucket?pe._bucket:Ne.Bucket,pe.object=pe._object?pe._object:Ne.FileName,pe.region=this.options.region,we&&(pe.videoId=we),this._ossUpload=null,this._uploadCore(pe,Kt.retry),Kt.retry=!1}},{key:"_refreshSTSTokenUpload",value:function(Kt,ue,oe,we){if(!ue||!oe||!we)return console.log("accessKeyId\u3001ccessKeySecret\u3001securityToken should not be empty."),!1;var Se={accessKeyId:ue,securityToken:we,accessKeySecret:oe,videoId:Kt.object,requestId:Kt.ri,region:this.options.region},Ne=this,pe="refreshUploadAuth";Kt.isImage&&(pe="getImageUploadAuth"),mt.default[pe](Se,function(Ue){Ne.setUploadAuthAndAddress(Kt,Ue.UploadAuth,UploadAddress),Ne._state=xt.VODSTATE.START},function(Ue){Ne._error(Kt,{name:Ue.Code,code:Ue.Code,message:Ue.Message,requestId:Ue.RequestId})})}},{key:"_upload",value:function(Kt){var ue=arguments.length>1&&arguments[1]!==void 0&&arguments[1],oe=this.options;if(Kt.retry=ue,oe.onUploadstarted&&!ue)try{var we=this._getCheckoutpoint(Kt);we&&we.state!=xt.UPLOADSTATE.UPLOADING&&(Kt.checkpoint=we,Kt.videoId=we.videoId),oe.onUploadstarted(Kt)}catch(Se){console.log(Se)}}},{key:"_uploadCore",value:function(Kt){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(Kt.state=xt.UPLOADSTATE.UPLOADING,!this._ossUpload){Kt.endpoint=Kt.endpoint||"http://oss-cn-hangzhou.aliyuncs.com";var ue=this;this._ossUpload=new At.default({bucket:Kt.bucket,endpoint:Kt.endpoint,AccessKeyId:this._ossCreditor.accessKeyId,AccessKeySecret:this._ossCreditor.accessKeySecret,SecurityToken:this._ossCreditor.securityToken,timeout:this.options.timeout,cname:this.options.cname},{onerror:function(de,Jt){ue._error.call(ue,de,Jt)},oncomplete:function(de,Jt){ue._complete.call(ue,de,Jt)},onprogress:function(de,Jt,ee){ue._progress.call(ue,de,Jt,ee)}})}var oe=rt.default.getFileType(Kt.file.name),we=this._getCheckoutpoint(Kt),Se="",Ne="";we&&we.checkpoint&&(Ne=we.state,Se=we.videoId,we=we.checkpoint),we&&Se==Kt.videoId&&Ne!=xt.UPLOADSTATE.UPLOADING&&(we.file=Kt.file,Kt.checkpoint=we,we.uploadId);var pe=this._adjustPartSize(Kt);this._reportLog("20002",Kt,{ft:oe,fs:Kt.file.size,bu:Kt.bucket,ok:Kt.object,vid:Kt.videoId||"",fn:Kt.file.name,fw:null,fh:null,ps:pe});var Ue={headers:{"x-oss-notification":Kt.userData?Kt.userData:""},partSize:pe,parallel:this.options.parallel};this._ossUpload.upload(Kt,Ue)}},{key:"_findUploadIndex",value:function(){for(var Kt=-1,ue=0;ue<this._uploadList.length;ue++)if(this._uploadList[ue].state==xt.UPLOADSTATE.INIT){Kt=ue;break}return Kt}},{key:"_error",value:function(Kt,ue){if(ue.name=="cancel")try{this.options.onUploadCanceled(Kt,ue)}catch(we){console.log(we)}else{if(ue.message.indexOf("InvalidAccessKeyIdError")>0||ue.name=="SignatureDoesNotMatchError"||ue.code=="SecurityTokenExpired"||ue.code=="InvalidSecurityToken.Expired"||ue.code=="InvalidAccessKeyId"&&this._ossCreditor.securityToken){if(this.options.onUploadTokenExpired){this._state=xt.VODSTATE.EXPIRE,Kt.state=xt.UPLOADSTATE.FAIlURE;try{this.options.onUploadTokenExpired(Kt,ue)}catch(we){console.log(we)}}return}if((ue.name=="RequestTimeoutError"||ue.name=="ConnectionTimeout"||ue.name=="ConnectionTimeoutError")&&this._retryTotal>this._retryCount){var oe=this;return setTimeout(function(){oe._uploadCore(Kt,!0)},1e3*oe._retryDuration),void this._retryCount++}ue.name=="NoSuchUploadError"&&this._removeCheckoutpoint(Kt),this._handleError(Kt,ue)}}},{key:"_handleError",value:function(Kt,ue){var oe=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2],we=xt.UPLOADSTATE.FAIlURE;if(Kt.state!=xt.UPLOADSTATE.CANCELED&&(Kt.state=xt.UPLOADSTATE.FAIlURE,this._state=xt.VODSTATE.FAILURE,this.options.onUploadFailed&&ue&&ue.code&&ue.message))try{this.options.onUploadFailed(Kt,ue.code,ue.message)}catch(Ne){console.log(Ne)}if(oe&&this._changeState(Kt,we),this._reportLog("20006",Kt,{code:ue.name,message:ue.message,requestId:ue.requestId,fs:Kt.file.size,bu:Kt.bucket,ok:Kt.object,fn:Kt.file.name}),this._reportLog("20004",Kt,{requestId:ue.requestId,fs:Kt.file.size,bu:Kt.bucket,ok:Kt.object,fn:Kt.file.name}),Kt.ri=ct.default.create(),this._findUploadIndex()!=-1){var Se=this;this._state=xt.VODSTATE.START,setTimeout(function(){Se.nextUpload()},100)}}},{key:"_complete",value:function(Kt,ue){if(Kt.state=xt.UPLOADSTATE.SUCCESS,this.options.onUploadSucceed)try{this.options.onUploadSucceed(Kt)}catch(Se){console.log(Se)}var oe=0;ue&&ue.res&&ue.res.headers&&(oe=ue.res.headers["x-oss-request-id"]),this._removeCheckoutpoint(Kt);var we=this;setTimeout(function(){we.nextUpload()},100),this._retryCount=0,this._reportLog("20003",Kt,{requestId:oe})}},{key:"_progress",value:function(Kt,ue,oe){if(this.options.onUploadProgress)try{Kt.loaded=ue.loaded,this.options.onUploadProgress(Kt,ue.total,ue.loaded)}catch(Jt){console.log(Jt)}var we=ue.checkpoint,Se=0;we&&(Kt.checkpoint=we,this._saveCheckoutpoint(Kt,we,xt.UPLOADSTATE.UPLOADING),Se=we.uploadId),this._retryCount=0;var Ne=this._getPortNumber(we),pe=0;if(oe&&oe.headers&&(pe=oe.headers["x-oss-request-id"]),ue.loaded!=0&&this._reportLog("20007",Kt,{pn:Ne,requestId:pe}),ue.loaded!=1&&this._reportLog("20005",Kt,{UploadId:Se,pn:Ne+1,pr:Kt.retry?1:0,fs:Kt.file.size,bu:Kt.bucket,ok:Kt.object,fn:Kt.file.name}),!this._invalidUserId&&!Kt.isImage&&this._ut=="vod"&&this.options.enableUploadProgress){var Ue={file:Kt.file,checkpoint:ue,userId:this.options.userId,videoId:Kt.videoId,region:this.options.region,fileHash:Kt.fileHash};try{var de=this;Dt.default.upload(Ue,function(){},function(Jt){if((Jt=JSON.parse(Jt))&&Jt.Code=="InvalidParameter"&&Jt.Message.indexOf("UserId")>0){de._invalidUserId=!0;var ee=Jt.Message+"\uFF0C\u6B63\u786E\u8D26\u53F7ID(userId)\u8BF7\u53C2\u8003\uFF1Ahttps://help.aliyun.com/knowledge_detail/37196.html";console.log(ee)}})}catch(Jt){console.log(Jt)}}}},{key:"_getPortNumber",value:function(Kt){if(Kt){var ue=Kt.doneParts;if(ue&&ue.length>0)return ue[ue.length-1].number}return 0}},{key:"_removeCheckoutpoint",value:function(Kt){var ue=this._getCheckoutpointKey(Kt);vt.default.remove(ue)}},{key:"_getCheckoutpoint",value:function(Kt){var ue=this._getCheckoutpointKey(Kt),oe=vt.default.get(ue);if(oe)try{return JSON.parse(oe)}catch(we){}return""}},{key:"_saveCheckoutpoint",value:function(Kt,ue,oe){if(ue){var we=this._getCheckoutpointKey(Kt),Se=Kt.file,Ne={fileName:Se.name,lastModified:Se.lastModified,size:Se.size,object:Kt.object,videoId:Kt.videoId,bucket:Kt.bucket,endpoint:Kt.endpoint,checkpoint:ue,loaded:Kt.loaded,state:oe};vt.default.set(we,JSON.stringify(Ne))}}},{key:"_changeState",value:function(Kt,ue){var oe=this._getCheckoutpoint(Kt);oe&&((this._onbeforeunload=!0)&&(ue=xt.UPLOADSTATE.STOPED),this._saveCheckoutpoint(Kt,oe.checkpoint,ue))}},{key:"_getCheckoutpointKey",value:function(Kt){return"upload_"+Kt.file.lastModified+"_"+Kt.file.name+"_"+Kt.file.size}},{key:"_getCheckoutpointFromCloud",value:function(Kt,ue,oe){var we={userId:this.options.userId,uploadInfoList:[{FileName:Kt.file.name,FileSize:Kt.file.size,FileCreateTime:Kt.file.lastModified,FileHash:Kt.fileHash}],region:this.options.region};Dt.default.get(we,function(Se){ue(Se)},oe)}},{key:"_reportLog",value:function(Kt,ue,oe){oe||(oe={}),oe.ri=ue.ri,this._ut&&(oe.ut=this._ut),this._log.log(Kt,oe)}},{key:"_initEvent",value:function(){var Kt=this;window&&(window.onbeforeunload=function(ue){if(Kt._onbeforeunload=!0,Kt._curIndex!=-1&&Kt._uploadList.length>Kt._curIndex){var oe=Kt._uploadList[Kt._curIndex];Kt._changeState(oe,xt.UPLOADSTATE.STOPED)}})}},{key:"_initState",value:function(){for(var Kt=0;Kt<this._uploadList.length;Kt++){var ue=this._uploadList[Kt];ue.state!=xt.UPLOADSTATE.FAIlURE&&ue.state!=xt.UPLOADSTATE.STOPED||(ue.state=xt.UPLOADSTATE.INIT)}this._state=xt.VODSTATE.INIT}},{key:"_adjustPartSize",value:function(Kt){return Kt.file.size/this.options.partSize>1e4?Kt.file.size/9999:this.options.partSize}}]),$t}());yt.default=Qt},function(Rt,yt,Vt){"use strict";Object.defineProperty(yt,"__esModule",{value:!0}),yt.UPLOADSTATE={INIT:"Ready",UPLOADING:"Uploading",SUCCESS:"Success",FAIlURE:"Failure",CANCELED:"Canceled",STOPED:"Stoped"},yt.VODSTATE={INIT:"Init",START:"Start",STOP:"Stop",FAILURE:"Failure",EXPIRE:"Expire",END:"End"}},function(Rt,yt,Vt){"use strict";function Yt(bt){return bt&&bt.__esModule?bt:{default:bt}}function Nt(bt,Tt){if(!(bt instanceof Tt))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(yt,"__esModule",{value:!0});var Wt=function(){function bt(Tt,It){for(var vt=0;vt<It.length;vt++){var et=It[vt];et.enumerable=et.enumerable||!1,et.configurable=!0,"value"in et&&(et.writable=!0),Object.defineProperty(Tt,et.key,et)}}return function(Tt,It,vt){return It&&bt(Tt.prototype,It),vt&&bt(Tt,vt),Tt}}(),xt=Vt(3),Ot=Vt(17),Bt=(Yt(Ot),Vt(1)),At=(Yt(Bt),function(){function bt(Tt,It){if(Nt(this,bt),Tt){this._config=Tt,this.create(this._config),this._uploadInfo=null,this._callback={};var vt=function(){};this._callback.onerror=It.onerror||vt,this._callback.oncomplete=It.oncomplete||vt,this._callback.onprogress=It.onprogress||vt}}return Wt(bt,[{key:"create",value:function(Tt){if(Tt.endpoint=Tt.endpoint||this._config.endpoint,Tt.bucket=Tt.bucket||this._config.bucket,!(Tt.AccessKeyId&&Tt.AccessKeySecret&&Tt.endpoint&&Tt.SecurityToken))throw new Error("AccessKeyId\u3001AccessKeySecret\u3001endpoint should not be null");var It={accessKeyId:Tt.AccessKeyId,accessKeySecret:Tt.AccessKeySecret,stsToken:Tt.SecurityToken,endpoint:Tt.endpoint||this._config.endpoint,bucket:Tt.bucket||this._config.bucket,secure:!0,cname:Tt.cname};Tt.timeout&&(It.timeout=Tt.timeout),this.oss=new OSS.Wrapper(It)}},{key:"abort",value:function(Tt){if(Tt.checkpoint){var It=Tt.checkpoint.uploadId;this.oss.abortMultipartUpload(Tt.object,It)}}},{key:"getVersion",value:function(){}},{key:"cancel",value:function(){this.oss.cancel&&this.oss.cancel()}},{key:"upload",value:function(Tt,It){this._uploadInfo=Tt;var vt=this,et=function(st,rt,ut){return function(ct){vt._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),Tt.checkpoint&&(tt.checkpoint=Tt.checkpoint),Tt.bucket||(this.oss.options.bucket=Tt.bucket),Tt.endpoint||(this.oss.options.endpoint=Tt.endpoint),this.oss.multipartUpload(Tt.object,Tt.file,tt).then(function(st,rt){vt._complete(st)}).catch(function(st){vt.oss.cancel&&(vt.oss&&vt.oss.isCancel()?console.log("oss is cancel as error"):vt.oss.cancel()),vt._error(st)})}},{key:"header",value:function(Tt,It,vt){this.oss.get(Tt.object).then(function(et){It(et)}).catch(function(et){vt(et)})}},{key:"_progress",value:function(Tt,It,vt){this._callback.onprogress(this._uploadInfo,{loaded:Tt,total:this._uploadInfo.file.size,checkpoint:It},vt)}},{key:"_error",value:function(Tt){this._callback.onerror(this._uploadInfo,Tt)}},{key:"_complete",value:function(Tt){this._callback.oncomplete(this._uploadInfo,Tt)}}]),bt}());yt.default=At},function(Rt,yt,Vt){"use strict";function Yt(xt,Ot){if(!(xt instanceof Ot))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(yt,"__esModule",{value:!0});var Nt=function(){function xt(Ot,Bt){for(var At=0;At<Bt.length;At++){var bt=Bt[At];bt.enumerable=bt.enumerable||!1,bt.configurable=!0,"value"in bt&&(bt.writable=!0),Object.defineProperty(Ot,bt.key,bt)}}return function(Ot,Bt,At){return Bt&&xt(Ot.prototype,Bt),At&&xt(Ot,At),Ot}}(),Wt=function(){function xt(){Yt(this,xt)}return Nt(xt,null,[{key:"format",value:function(Ot){if(arguments.length<2)return null;for(var Bt=arguments[1],At=1;At<arguments.length;At++){var bt=new RegExp("\\{"+(At-1)+"\\}","gm");Bt=Bt.replace(bt,arguments[At+1])}return{code:Ot,message:Bt}}},{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}();yt.default=Wt},function(Rt,yt,Vt){"use strict";(function(Yt){function Nt(Ot,Bt){if(!(Ot instanceof Bt))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(yt,"__esModule",{value:!0});var Wt=function(){function Ot(Bt,At){for(var bt=0;bt<At.length;bt++){var Tt=At[bt];Tt.enumerable=Tt.enumerable||!1,Tt.configurable=!0,"value"in Tt&&(Tt.writable=!0),Object.defineProperty(Bt,Tt.key,Tt)}}return function(Bt,At,bt){return At&&Ot(Bt.prototype,At),bt&&Ot(Bt,bt),Bt}}(),xt=function(){function Ot(){Nt(this,Ot)}return Wt(Ot,null,[{key:"encode",value:function(Bt){return new Yt(Bt).toString("base64")}},{key:"decode",value:function(Bt){return new Yt(Bt,"base64").toString()}}]),Ot}();yt.default=xt}).call(yt,Vt(19).Buffer)},function(Rt,yt,Vt){"use strict";(function(Yt){function Nt(){return xt.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Wt(_t,Mt){if(Nt()<Mt)throw new RangeError("Invalid typed array length");return xt.TYPED_ARRAY_SUPPORT?(_t=new Uint8Array(Mt),_t.__proto__=xt.prototype):(_t===null&&(_t=new xt(Mt)),_t.length=Mt),_t}function xt(_t,Mt,Et){if(!(xt.TYPED_ARRAY_SUPPORT||this instanceof xt))return new xt(_t,Mt,Et);if(typeof _t=="number"){if(typeof Mt=="string")throw new Error("If encoding is specified then the first argument must be a string");return bt(this,_t)}return Ot(this,_t,Mt,Et)}function Ot(_t,Mt,Et,Ht){if(typeof Mt=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&Mt instanceof ArrayBuffer?vt(_t,Mt,Et,Ht):typeof Mt=="string"?Tt(_t,Mt,Et):et(_t,Mt)}function Bt(_t){if(typeof _t!="number")throw new TypeError('"size" argument must be a number');if(_t<0)throw new RangeError('"size" argument must not be negative')}function At(_t,Mt,Et,Ht){return Bt(Mt),Mt<=0?Wt(_t,Mt):Et!==void 0?typeof Ht=="string"?Wt(_t,Mt).fill(Et,Ht):Wt(_t,Mt).fill(Et):Wt(_t,Mt)}function bt(_t,Mt){if(Bt(Mt),_t=Wt(_t,Mt<0?0:0|tt(Mt)),!xt.TYPED_ARRAY_SUPPORT)for(var Et=0;Et<Mt;++Et)_t[Et]=0;return _t}function Tt(_t,Mt,Et){if(typeof Et=="string"&&Et!==""||(Et="utf8"),!xt.isEncoding(Et))throw new TypeError('"encoding" must be a valid string encoding');var Ht=0|rt(Mt,Et);_t=Wt(_t,Ht);var Pt=_t.write(Mt,Et);return Pt!==Ht&&(_t=_t.slice(0,Pt)),_t}function It(_t,Mt){var Et=Mt.length<0?0:0|tt(Mt.length);_t=Wt(_t,Et);for(var Ht=0;Ht<Et;Ht+=1)_t[Ht]=255&Mt[Ht];return _t}function vt(_t,Mt,Et,Ht){if(Mt.byteLength,Et<0||Mt.byteLength<Et)throw new RangeError("'offset' is out of bounds");if(Mt.byteLength<Et+(Ht||0))throw new RangeError("'length' is out of bounds");return Mt=Et===void 0&&Ht===void 0?new Uint8Array(Mt):Ht===void 0?new Uint8Array(Mt,Et):new Uint8Array(Mt,Et,Ht),xt.TYPED_ARRAY_SUPPORT?(_t=Mt,_t.__proto__=xt.prototype):_t=It(_t,Mt),_t}function et(_t,Mt){if(xt.isBuffer(Mt)){var Et=0|tt(Mt.length);return _t=Wt(_t,Et),_t.length===0||Mt.copy(_t,0,0,Et),_t}if(Mt){if(typeof ArrayBuffer!="undefined"&&Mt.buffer instanceof ArrayBuffer||"length"in Mt)return typeof Mt.length!="number"||$e(Mt.length)?Wt(_t,0):It(_t,Mt);if(Mt.type==="Buffer"&&Ee(Mt.data))return It(_t,Mt.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function tt(_t){if(_t>=Nt())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Nt().toString(16)+" bytes");return 0|_t}function st(_t){return+_t!=_t&&(_t=0),xt.alloc(+_t)}function rt(_t,Mt){if(xt.isBuffer(_t))return _t.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(_t)||_t instanceof ArrayBuffer))return _t.byteLength;typeof _t!="string"&&(_t=""+_t);var Et=_t.length;if(Et===0)return 0;for(var Ht=!1;;)switch(Mt){case"ascii":case"latin1":case"binary":return Et;case"utf8":case"utf-8":case void 0:return We(_t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*Et;case"hex":return Et>>>1;case"base64":return Ie(_t).length;default:if(Ht)return We(_t).length;Mt=(""+Mt).toLowerCase(),Ht=!0}}function ut(_t,Mt,Et){var Ht=!1;if((Mt===void 0||Mt<0)&&(Mt=0),Mt>this.length||((Et===void 0||Et>this.length)&&(Et=this.length),Et<=0)||(Et>>>=0,Mt>>>=0,Et<=Mt))return"";for(_t||(_t="utf8");;)switch(_t){case"hex":return Ne(this,Mt,Et);case"utf8":case"utf-8":return ue(this,Mt,Et);case"ascii":return we(this,Mt,Et);case"latin1":case"binary":return Se(this,Mt,Et);case"base64":return Kt(this,Mt,Et);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return pe(this,Mt,Et);default:if(Ht)throw new TypeError("Unknown encoding: "+_t);_t=(_t+"").toLowerCase(),Ht=!0}}function ct(_t,Mt,Et){var Ht=_t[Mt];_t[Mt]=_t[Et],_t[Et]=Ht}function pt(_t,Mt,Et,Ht,Pt){if(_t.length===0)return-1;if(typeof Et=="string"?(Ht=Et,Et=0):Et>2147483647?Et=2147483647:Et<-2147483648&&(Et=-2147483648),Et=+Et,isNaN(Et)&&(Et=Pt?0:_t.length-1),Et<0&&(Et=_t.length+Et),Et>=_t.length){if(Pt)return-1;Et=_t.length-1}else if(Et<0){if(!Pt)return-1;Et=0}if(typeof Mt=="string"&&(Mt=xt.from(Mt,Ht)),xt.isBuffer(Mt))return Mt.length===0?-1:mt(_t,Mt,Et,Ht,Pt);if(typeof Mt=="number")return Mt&=255,xt.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Pt?Uint8Array.prototype.indexOf.call(_t,Mt,Et):Uint8Array.prototype.lastIndexOf.call(_t,Mt,Et):mt(_t,[Mt],Et,Ht,Pt);throw new TypeError("val must be string, number or Buffer")}function mt(_t,Mt,Et,Ht,Pt){function dt(Le,Re){return gt===1?Le[Re]:Le.readUInt16BE(Re*gt)}var gt=1,zt=_t.length,re=Mt.length;if(Ht!==void 0&&((Ht=String(Ht).toLowerCase())==="ucs2"||Ht==="ucs-2"||Ht==="utf16le"||Ht==="utf-16le")){if(_t.length<2||Mt.length<2)return-1;gt=2,zt/=2,re/=2,Et/=2}var Zt;if(Pt){var ye=-1;for(Zt=Et;Zt<zt;Zt++)if(dt(_t,Zt)===dt(Mt,ye===-1?0:Zt-ye)){if(ye===-1&&(ye=Zt),Zt-ye+1===re)return ye*gt}else ye!==-1&&(Zt-=Zt-ye),ye=-1}else for(Et+re>zt&&(Et=zt-re),Zt=Et;Zt>=0;Zt--){for(var Ye=!0,sn=0;sn<re;sn++)if(dt(_t,Zt+sn)!==dt(Mt,sn)){Ye=!1;break}if(Ye)return Zt}return-1}function Ct(_t,Mt,Et,Ht){Et=Number(Et)||0;var Pt=_t.length-Et;Ht?(Ht=Number(Ht))>Pt&&(Ht=Pt):Ht=Pt;var dt=Mt.length;if(dt%2!=0)throw new TypeError("Invalid hex string");Ht>dt/2&&(Ht=dt/2);for(var gt=0;gt<Ht;++gt){var zt=parseInt(Mt.substr(2*gt,2),16);if(isNaN(zt))return gt;_t[Et+gt]=zt}return gt}function Dt(_t,Mt,Et,Ht){return je(We(Mt,_t.length-Et),_t,Et,Ht)}function Ut(_t,Mt,Et,Ht){return je(rn(Mt),_t,Et,Ht)}function Ft(_t,Mt,Et,Ht){return Ut(_t,Mt,Et,Ht)}function Qt(_t,Mt,Et,Ht){return je(Ie(Mt),_t,Et,Ht)}function $t(_t,Mt,Et,Ht){return je(ke(Mt,_t.length-Et),_t,Et,Ht)}function Kt(_t,Mt,Et){return Mt===0&&Et===_t.length?me.fromByteArray(_t):me.fromByteArray(_t.slice(Mt,Et))}function ue(_t,Mt,Et){Et=Math.min(_t.length,Et);for(var Ht=[],Pt=Mt;Pt<Et;){var dt=_t[Pt],gt=null,zt=dt>239?4:dt>223?3:dt>191?2:1;if(Pt+zt<=Et){var re,Zt,ye,Ye;switch(zt){case 1:dt<128&&(gt=dt);break;case 2:re=_t[Pt+1],(192&re)==128&&(Ye=(31&dt)<<6|63&re)>127&&(gt=Ye);break;case 3:re=_t[Pt+1],Zt=_t[Pt+2],(192&re)==128&&(192&Zt)==128&&(Ye=(15&dt)<<12|(63&re)<<6|63&Zt)>2047&&(Ye<55296||Ye>57343)&&(gt=Ye);break;case 4:re=_t[Pt+1],Zt=_t[Pt+2],ye=_t[Pt+3],(192&re)==128&&(192&Zt)==128&&(192&ye)==128&&(Ye=(15&dt)<<18|(63&re)<<12|(63&Zt)<<6|63&ye)>65535&&Ye<1114112&&(gt=Ye)}}gt===null?(gt=65533,zt=1):gt>65535&&(gt-=65536,Ht.push(gt>>>10&1023|55296),gt=56320|1023>),Ht.push(gt),Pt+=zt}return oe(Ht)}function oe(_t){var Mt=_t.length;if(Mt<=ce)return String.fromCharCode.apply(String,_t);for(var Et="",Ht=0;Ht<Mt;)Et+=String.fromCharCode.apply(String,_t.slice(Ht,Ht+=ce));return Et}function we(_t,Mt,Et){var Ht="";Et=Math.min(_t.length,Et);for(var Pt=Mt;Pt<Et;++Pt)Ht+=String.fromCharCode(127&_t[Pt]);return Ht}function Se(_t,Mt,Et){var Ht="";Et=Math.min(_t.length,Et);for(var Pt=Mt;Pt<Et;++Pt)Ht+=String.fromCharCode(_t[Pt]);return Ht}function Ne(_t,Mt,Et){var Ht=_t.length;(!Mt||Mt<0)&&(Mt=0),(!Et||Et<0||Et>Ht)&&(Et=Ht);for(var Pt="",dt=Mt;dt<Et;++dt)Pt+=en(_t[dt]);return Pt}function pe(_t,Mt,Et){for(var Ht=_t.slice(Mt,Et),Pt="",dt=0;dt<Ht.length;dt+=2)Pt+=String.fromCharCode(Ht[dt]+256*Ht[dt+1]);return Pt}function Ue(_t,Mt,Et){if(_t%1!=0||_t<0)throw new RangeError("offset is not uint");if(_t+Mt>Et)throw new RangeError("Trying to access beyond buffer length")}function de(_t,Mt,Et,Ht,Pt,dt){if(!xt.isBuffer(_t))throw new TypeError('"buffer" argument must be a Buffer instance');if(Mt>Pt||Mt<dt)throw new RangeError('"value" argument is out of bounds');if(Et+Ht>_t.length)throw new RangeError("Index out of range")}function Jt(_t,Mt,Et,Ht){Mt<0&&(Mt=65535+Mt+1);for(var Pt=0,dt=Math.min(_t.length-Et,2);Pt<dt;++Pt)_t[Et+Pt]=(Mt&255<<8*(Ht?Pt:1-Pt))>>>8*(Ht?Pt:1-Pt)}function ee(_t,Mt,Et,Ht){Mt<0&&(Mt=4294967295+Mt+1);for(var Pt=0,dt=Math.min(_t.length-Et,4);Pt<dt;++Pt)_t[Et+Pt]=Mt>>>8*(Ht?Pt:3-Pt)&255}function ae(_t,Mt,Et,Ht,Pt,dt){if(Et+Ht>_t.length)throw new RangeError("Index out of range");if(Et<0)throw new RangeError("Index out of range")}function fe(_t,Mt,Et,Ht,Pt){return Pt||ae(_t,Mt,Et,4,34028234663852886e22,-34028234663852886e22),le.write(_t,Mt,Et,Ht,23,4),Et+4}function se(_t,Mt,Et,Ht,Pt){return Pt||ae(_t,Mt,Et,8,17976931348623157e292,-17976931348623157e292),le.write(_t,Mt,Et,Ht,52,8),Et+8}function De(_t){if(_t=Oe(_t).replace(he,""),_t.length<2)return"";for(;_t.length%4!=0;)_t+="=";return _t}function Oe(_t){return _t.trim?_t.trim():_t.replace(/^\s+|\s+$/g,"")}function en(_t){return _t<16?"0"+_t.toString(16):_t.toString(16)}function We(_t,Mt){Mt=Mt||1/0;for(var Et,Ht=_t.length,Pt=null,dt=[],gt=0;gt<Ht;++gt){if((Et=_t.charCodeAt(gt))>55295&&Et<57344){if(!Pt){if(Et>56319){(Mt-=3)>-1&&dt.push(239,191,189);continue}if(gt+1===Ht){(Mt-=3)>-1&&dt.push(239,191,189);continue}Pt=Et;continue}if(Et<56320){(Mt-=3)>-1&&dt.push(239,191,189),Pt=Et;continue}Et=65536+(Pt-55296<<10|Et-56320)}else Pt&&(Mt-=3)>-1&&dt.push(239,191,189);if(Pt=null,Et<128){if((Mt-=1)<0)break;dt.push(Et)}else if(Et<2048){if((Mt-=2)<0)break;dt.push(Et>>6|192,63&Et|128)}else if(Et<65536){if((Mt-=3)<0)break;dt.push(Et>>12|224,Et>>6&63|128,63&Et|128)}else{if(!(Et<1114112))throw new Error("Invalid code point");if((Mt-=4)<0)break;dt.push(Et>>18|240,Et>>12&63|128,Et>>6&63|128,63&Et|128)}}return dt}function rn(_t){for(var Mt=[],Et=0;Et<_t.length;++Et)Mt.push(255&_t.charCodeAt(Et));return Mt}function ke(_t,Mt){for(var Et,Ht,Pt,dt=[],gt=0;gt<_t.length&&!((Mt-=2)<0);++gt)Et=_t.charCodeAt(gt),Ht=Et>>8,Pt=Et%256,dt.push(Pt),dt.push(Ht);return dt}function Ie(_t){return me.toByteArray(De(_t))}function je(_t,Mt,Et,Ht){for(var Pt=0;Pt<Ht&&!(Pt+Et>=Mt.length||Pt>=_t.length);++Pt)Mt[Pt+Et]=_t[Pt];return Pt}function $e(_t){return _t!==_t}var me=Vt(21),le=Vt(22),Ee=Vt(23);yt.Buffer=xt,yt.SlowBuffer=st,yt.INSPECT_MAX_BYTES=50,xt.TYPED_ARRAY_SUPPORT=Yt.TYPED_ARRAY_SUPPORT!==void 0?Yt.TYPED_ARRAY_SUPPORT:function(){try{var _t=new Uint8Array(1);return _t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},_t.foo()===42&&typeof _t.subarray=="function"&&_t.subarray(1,1).byteLength===0}catch(Mt){return!1}}(),yt.kMaxLength=Nt(),xt.poolSize=8192,xt._augment=function(_t){return _t.__proto__=xt.prototype,_t},xt.from=function(_t,Mt,Et){return Ot(null,_t,Mt,Et)},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(_t,Mt,Et){return At(null,_t,Mt,Et)},xt.allocUnsafe=function(_t){return bt(null,_t)},xt.allocUnsafeSlow=function(_t){return bt(null,_t)},xt.isBuffer=function(_t){return!(_t==null||!_t._isBuffer)},xt.compare=function(_t,Mt){if(!xt.isBuffer(_t)||!xt.isBuffer(Mt))throw new TypeError("Arguments must be Buffers");if(_t===Mt)return 0;for(var Et=_t.length,Ht=Mt.length,Pt=0,dt=Math.min(Et,Ht);Pt<dt;++Pt)if(_t[Pt]!==Mt[Pt]){Et=_t[Pt],Ht=Mt[Pt];break}return Et<Ht?-1:Ht<Et?1:0},xt.isEncoding=function(_t){switch(String(_t).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(_t,Mt){if(!Ee(_t))throw new TypeError('"list" argument must be an Array of Buffers');if(_t.length===0)return xt.alloc(0);var Et;if(Mt===void 0)for(Mt=0,Et=0;Et<_t.length;++Et)Mt+=_t[Et].length;var Ht=xt.allocUnsafe(Mt),Pt=0;for(Et=0;Et<_t.length;++Et){var dt=_t[Et];if(!xt.isBuffer(dt))throw new TypeError('"list" argument must be an Array of Buffers');dt.copy(Ht,Pt),Pt+=dt.length}return Ht},xt.byteLength=rt,xt.prototype._isBuffer=!0,xt.prototype.swap16=function(){var _t=this.length;if(_t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Mt=0;Mt<_t;Mt+=2)ct(this,Mt,Mt+1);return this},xt.prototype.swap32=function(){var _t=this.length;if(_t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Mt=0;Mt<_t;Mt+=4)ct(this,Mt,Mt+3),ct(this,Mt+1,Mt+2);return this},xt.prototype.swap64=function(){var _t=this.length;if(_t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Mt=0;Mt<_t;Mt+=8)ct(this,Mt,Mt+7),ct(this,Mt+1,Mt+6),ct(this,Mt+2,Mt+5),ct(this,Mt+3,Mt+4);return this},xt.prototype.toString=function(){var _t=0|this.length;return _t===0?"":arguments.length===0?ue(this,0,_t):ut.apply(this,arguments)},xt.prototype.equals=function(_t){if(!xt.isBuffer(_t))throw new TypeError("Argument must be a Buffer");return this===_t||xt.compare(this,_t)===0},xt.prototype.inspect=function(){var _t="",Mt=yt.INSPECT_MAX_BYTES;return this.length>0&&(_t=this.toString("hex",0,Mt).match(/.{2}/g).join(" "),this.length>Mt&&(_t+=" ... ")),"<Buffer "+_t+">"},xt.prototype.compare=function(_t,Mt,Et,Ht,Pt){if(!xt.isBuffer(_t))throw new TypeError("Argument must be a Buffer");if(Mt===void 0&&(Mt=0),Et===void 0&&(Et=_t?_t.length:0),Ht===void 0&&(Ht=0),Pt===void 0&&(Pt=this.length),Mt<0||Et>_t.length||Ht<0||Pt>this.length)throw new RangeError("out of range index");if(Ht>=Pt&&Mt>=Et)return 0;if(Ht>=Pt)return-1;if(Mt>=Et)return 1;if(Mt>>>=0,Et>>>=0,Ht>>>=0,Pt>>>=0,this===_t)return 0;for(var dt=Pt-Ht,gt=Et-Mt,zt=Math.min(dt,gt),re=this.slice(Ht,Pt),Zt=_t.slice(Mt,Et),ye=0;ye<zt;++ye)if(re[ye]!==Zt[ye]){dt=re[ye],gt=Zt[ye];break}return dt<gt?-1:gt<dt?1:0},xt.prototype.includes=function(_t,Mt,Et){return this.indexOf(_t,Mt,Et)!==-1},xt.prototype.indexOf=function(_t,Mt,Et){return pt(this,_t,Mt,Et,!0)},xt.prototype.lastIndexOf=function(_t,Mt,Et){return pt(this,_t,Mt,Et,!1)},xt.prototype.write=function(_t,Mt,Et,Ht){if(Mt===void 0)Ht="utf8",Et=this.length,Mt=0;else if(Et===void 0&&typeof Mt=="string")Ht=Mt,Et=this.length,Mt=0;else{if(!isFinite(Mt))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");Mt|=0,isFinite(Et)?(Et|=0,Ht===void 0&&(Ht="utf8")):(Ht=Et,Et=void 0)}var Pt=this.length-Mt;if((Et===void 0||Et>Pt)&&(Et=Pt),_t.length>0&&(Et<0||Mt<0)||Mt>this.length)throw new RangeError("Attempt to write outside buffer bounds");Ht||(Ht="utf8");for(var dt=!1;;)switch(Ht){case"hex":return Ct(this,_t,Mt,Et);case"utf8":case"utf-8":return Dt(this,_t,Mt,Et);case"ascii":return Ut(this,_t,Mt,Et);case"latin1":case"binary":return Ft(this,_t,Mt,Et);case"base64":return Qt(this,_t,Mt,Et);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $t(this,_t,Mt,Et);default:if(dt)throw new TypeError("Unknown encoding: "+Ht);Ht=(""+Ht).toLowerCase(),dt=!0}},xt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ce=4096;xt.prototype.slice=function(_t,Mt){var Et=this.length;_t=~~_t,Mt=Mt===void 0?Et:~~Mt,_t<0?(_t+=Et)<0&&(_t=0):_t>Et&&(_t=Et),Mt<0?(Mt+=Et)<0&&(Mt=0):Mt>Et&&(Mt=Et),Mt<_t&&(Mt=_t);var Ht;if(xt.TYPED_ARRAY_SUPPORT)Ht=this.subarray(_t,Mt),Ht.__proto__=xt.prototype;else{var Pt=Mt-_t;Ht=new xt(Pt,void 0);for(var dt=0;dt<Pt;++dt)Ht[dt]=this[dt+_t]}return Ht},xt.prototype.readUIntLE=function(_t,Mt,Et){_t|=0,Mt|=0,Et||Ue(_t,Mt,this.length);for(var Ht=this[_t],Pt=1,dt=0;++dt<Mt&&(Pt*=256);)Ht+=this[_t+dt]*Pt;return Ht},xt.prototype.readUIntBE=function(_t,Mt,Et){_t|=0,Mt|=0,Et||Ue(_t,Mt,this.length);for(var Ht=this[_t+--Mt],Pt=1;Mt>0&&(Pt*=256);)Ht+=this[_t+--Mt]*Pt;return Ht},xt.prototype.readUInt8=function(_t,Mt){return Mt||Ue(_t,1,this.length),this[_t]},xt.prototype.readUInt16LE=function(_t,Mt){return Mt||Ue(_t,2,this.length),this[_t]|this[_t+1]<<8},xt.prototype.readUInt16BE=function(_t,Mt){return Mt||Ue(_t,2,this.length),this[_t]<<8|this[_t+1]},xt.prototype.readUInt32LE=function(_t,Mt){return Mt||Ue(_t,4,this.length),(this[_t]|this[_t+1]<<8|this[_t+2]<<16)+16777216*this[_t+3]},xt.prototype.readUInt32BE=function(_t,Mt){return Mt||Ue(_t,4,this.length),16777216*this[_t]+(this[_t+1]<<16|this[_t+2]<<8|this[_t+3])},xt.prototype.readIntLE=function(_t,Mt,Et){_t|=0,Mt|=0,Et||Ue(_t,Mt,this.length);for(var Ht=this[_t],Pt=1,dt=0;++dt<Mt&&(Pt*=256);)Ht+=this[_t+dt]*Pt;return Pt*=128,Ht>=Pt&&(Ht-=Math.pow(2,8*Mt)),Ht},xt.prototype.readIntBE=function(_t,Mt,Et){_t|=0,Mt|=0,Et||Ue(_t,Mt,this.length);for(var Ht=Mt,Pt=1,dt=this[_t+--Ht];Ht>0&&(Pt*=256);)dt+=this[_t+--Ht]*Pt;return Pt*=128,dt>=Pt&&(dt-=Math.pow(2,8*Mt)),dt},xt.prototype.readInt8=function(_t,Mt){return Mt||Ue(_t,1,this.length),128&this[_t]?-1*(255-this[_t]+1):this[_t]},xt.prototype.readInt16LE=function(_t,Mt){Mt||Ue(_t,2,this.length);var Et=this[_t]|this[_t+1]<<8;return 32768&Et?4294901760|Et:Et},xt.prototype.readInt16BE=function(_t,Mt){Mt||Ue(_t,2,this.length);var Et=this[_t+1]|this[_t]<<8;return 32768&Et?4294901760|Et:Et},xt.prototype.readInt32LE=function(_t,Mt){return Mt||Ue(_t,4,this.length),this[_t]|this[_t+1]<<8|this[_t+2]<<16|this[_t+3]<<24},xt.prototype.readInt32BE=function(_t,Mt){return Mt||Ue(_t,4,this.length),this[_t]<<24|this[_t+1]<<16|this[_t+2]<<8|this[_t+3]},xt.prototype.readFloatLE=function(_t,Mt){return Mt||Ue(_t,4,this.length),le.read(this,_t,!0,23,4)},xt.prototype.readFloatBE=function(_t,Mt){return Mt||Ue(_t,4,this.length),le.read(this,_t,!1,23,4)},xt.prototype.readDoubleLE=function(_t,Mt){return Mt||Ue(_t,8,this.length),le.read(this,_t,!0,52,8)},xt.prototype.readDoubleBE=function(_t,Mt){return Mt||Ue(_t,8,this.length),le.read(this,_t,!1,52,8)},xt.prototype.writeUIntLE=function(_t,Mt,Et,Ht){_t=+_t,Mt|=0,Et|=0,!Ht&&de(this,_t,Mt,Et,Math.pow(2,8*Et)-1,0);var Pt=1,dt=0;for(this[Mt]=255&_t;++dt<Et&&(Pt*=256);)this[Mt+dt]=_t/Pt&255;return Mt+Et},xt.prototype.writeUIntBE=function(_t,Mt,Et,Ht){_t=+_t,Mt|=0,Et|=0,!Ht&&de(this,_t,Mt,Et,Math.pow(2,8*Et)-1,0);var Pt=Et-1,dt=1;for(this[Mt+Pt]=255&_t;--Pt>=0&&(dt*=256);)this[Mt+Pt]=_t/dt&255;return Mt+Et},xt.prototype.writeUInt8=function(_t,Mt,Et){return _t=+_t,Mt|=0,Et||de(this,_t,Mt,1,255,0),xt.TYPED_ARRAY_SUPPORT||(_t=Math.floor(_t)),this[Mt]=255&_t,Mt+1},xt.prototype.writeUInt16LE=function(_t,Mt,Et){return _t=+_t,Mt|=0,Et||de(this,_t,Mt,2,65535,0),xt.TYPED_ARRAY_SUPPORT?(this[Mt]=255&_t,this[Mt+1]=_t>>>8):Jt(this,_t,Mt,!0),Mt+2},xt.prototype.writeUInt16BE=function(_t,Mt,Et){return _t=+_t,Mt|=0,Et||de(this,_t,Mt,2,65535,0),xt.TYPED_ARRAY_SUPPORT?(this[Mt]=_t>>>8,this[Mt+1]=255&_t):Jt(this,_t,Mt,!1),Mt+2},xt.prototype.writeUInt32LE=function(_t,Mt,Et){return _t=+_t,Mt|=0,Et||de(this,_t,Mt,4,4294967295,0),xt.TYPED_ARRAY_SUPPORT?(this[Mt+3]=_t>>>24,this[Mt+2]=_t>>>16,this[Mt+1]=_t>>>8,this[Mt]=255&_t):ee(this,_t,Mt,!0),Mt+4},xt.prototype.writeUInt32BE=function(_t,Mt,Et){return _t=+_t,Mt|=0,Et||de(this,_t,Mt,4,4294967295,0),xt.TYPED_ARRAY_SUPPORT?(this[Mt]=_t>>>24,this[Mt+1]=_t>>>16,this[Mt+2]=_t>>>8,this[Mt+3]=255&_t):ee(this,_t,Mt,!1),Mt+4},xt.prototype.writeIntLE=function(_t,Mt,Et,Ht){if(_t=+_t,Mt|=0,!Ht){var Pt=Math.pow(2,8*Et-1);de(this,_t,Mt,Et,Pt-1,-Pt)}var dt=0,gt=1,zt=0;for(this[Mt]=255&_t;++dt<Et&&(gt*=256);)_t<0&&zt===0&&this[Mt+dt-1]!==0&&(zt=1),this[Mt+dt]=(_t/gt>>0)-zt&255;return Mt+Et},xt.prototype.writeIntBE=function(_t,Mt,Et,Ht){if(_t=+_t,Mt|=0,!Ht){var Pt=Math.pow(2,8*Et-1);de(this,_t,Mt,Et,Pt-1,-Pt)}var dt=Et-1,gt=1,zt=0;for(this[Mt+dt]=255&_t;--dt>=0&&(gt*=256);)_t<0&&zt===0&&this[Mt+dt+1]!==0&&(zt=1),this[Mt+dt]=(_t/gt>>0)-zt&255;return Mt+Et},xt.prototype.writeInt8=function(_t,Mt,Et){return _t=+_t,Mt|=0,Et||de(this,_t,Mt,1,127,-128),xt.TYPED_ARRAY_SUPPORT||(_t=Math.floor(_t)),_t<0&&(_t=255+_t+1),this[Mt]=255&_t,Mt+1},xt.prototype.writeInt16LE=function(_t,Mt,Et){return _t=+_t,Mt|=0,Et||de(this,_t,Mt,2,32767,-32768),xt.TYPED_ARRAY_SUPPORT?(this[Mt]=255&_t,this[Mt+1]=_t>>>8):Jt(this,_t,Mt,!0),Mt+2},xt.prototype.writeInt16BE=function(_t,Mt,Et){return _t=+_t,Mt|=0,Et||de(this,_t,Mt,2,32767,-32768),xt.TYPED_ARRAY_SUPPORT?(this[Mt]=_t>>>8,this[Mt+1]=255&_t):Jt(this,_t,Mt,!1),Mt+2},xt.prototype.writeInt32LE=function(_t,Mt,Et){return _t=+_t,Mt|=0,Et||de(this,_t,Mt,4,2147483647,-2147483648),xt.TYPED_ARRAY_SUPPORT?(this[Mt]=255&_t,this[Mt+1]=_t>>>8,this[Mt+2]=_t>>>16,this[Mt+3]=_t>>>24):ee(this,_t,Mt,!0),Mt+4},xt.prototype.writeInt32BE=function(_t,Mt,Et){return _t=+_t,Mt|=0,Et||de(this,_t,Mt,4,2147483647,-2147483648),_t<0&&(_t=4294967295+_t+1),xt.TYPED_ARRAY_SUPPORT?(this[Mt]=_t>>>24,this[Mt+1]=_t>>>16,this[Mt+2]=_t>>>8,this[Mt+3]=255&_t):ee(this,_t,Mt,!1),Mt+4},xt.prototype.writeFloatLE=function(_t,Mt,Et){return fe(this,_t,Mt,!0,Et)},xt.prototype.writeFloatBE=function(_t,Mt,Et){return fe(this,_t,Mt,!1,Et)},xt.prototype.writeDoubleLE=function(_t,Mt,Et){return se(this,_t,Mt,!0,Et)},xt.prototype.writeDoubleBE=function(_t,Mt,Et){return se(this,_t,Mt,!1,Et)},xt.prototype.copy=function(_t,Mt,Et,Ht){if(Et||(Et=0),Ht||Ht===0||(Ht=this.length),Mt>=_t.length&&(Mt=_t.length),Mt||(Mt=0),Ht>0&&Ht<Et&&(Ht=Et),Ht===Et||_t.length===0||this.length===0)return 0;if(Mt<0)throw new RangeError("targetStart out of bounds");if(Et<0||Et>=this.length)throw new RangeError("sourceStart out of bounds");if(Ht<0)throw new RangeError("sourceEnd out of bounds");Ht>this.length&&(Ht=this.length),_t.length-Mt<Ht-Et&&(Ht=_t.length-Mt+Et);var Pt,dt=Ht-Et;if(this===_t&&Et<Mt&&Mt<Ht)for(Pt=dt-1;Pt>=0;--Pt)_t[Pt+Mt]=this[Pt+Et];else if(dt<1e3||!xt.TYPED_ARRAY_SUPPORT)for(Pt=0;Pt<dt;++Pt)_t[Pt+Mt]=this[Pt+Et];else Uint8Array.prototype.set.call(_t,this.subarray(Et,Et+dt),Mt);return dt},xt.prototype.fill=function(_t,Mt,Et,Ht){if(typeof _t=="string"){if(typeof Mt=="string"?(Ht=Mt,Mt=0,Et=this.length):typeof Et=="string"&&(Ht=Et,Et=this.length),_t.length===1){var Pt=_t.charCodeAt(0);Pt<256&&(_t=Pt)}if(Ht!==void 0&&typeof Ht!="string")throw new TypeError("encoding must be a string");if(typeof Ht=="string"&&!xt.isEncoding(Ht))throw new TypeError("Unknown encoding: "+Ht)}else typeof _t=="number"&&(_t&=255);if(Mt<0||this.length<Mt||this.length<Et)throw new RangeError("Out of range index");if(Et<=Mt)return this;Mt>>>=0,Et=Et===void 0?this.length:Et>>>0,_t||(_t=0);var dt;if(typeof _t=="number")for(dt=Mt;dt<Et;++dt)this[dt]=_t;else{var gt=xt.isBuffer(_t)?_t:We(new xt(_t,Ht).toString()),zt=gt.length;for(dt=0;dt<Et-Mt;++dt)this[dt+Mt]=gt[dt%zt]}return this};var he=/[^+\/0-9A-Za-z-_]/g}).call(yt,Vt(20))},function(Rt,yt){var Vt;Vt=function(){return this}();try{Vt=Vt||Function("return this")()||(0,eval)("this")}catch(Yt){typeof window=="object"&&(Vt=window)}Rt.exports=Vt},function(Rt,yt,Vt){"use strict";function Yt(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 Nt(tt){return 3*tt.length/4-Yt(tt)}function Wt(tt){var st,rt,ut,ct,pt,mt=tt.length;ct=Yt(tt),pt=new Tt(3*mt/4-ct),rt=ct>0?mt-4:mt;var Ct=0;for(st=0;st<rt;st+=4)ut=bt[tt.charCodeAt(st)]<<18|bt[tt.charCodeAt(st+1)]<<12|bt[tt.charCodeAt(st+2)]<<6|bt[tt.charCodeAt(st+3)],pt[Ct++]=ut>>16&255,pt[Ct++]=ut>>8&255,pt[Ct++]=255&ut;return ct===2?(ut=bt[tt.charCodeAt(st)]<<2|bt[tt.charCodeAt(st+1)]>>4,pt[Ct++]=255&ut):ct===1&&(ut=bt[tt.charCodeAt(st)]<<10|bt[tt.charCodeAt(st+1)]<<4|bt[tt.charCodeAt(st+2)]>>2,pt[Ct++]=ut>>8&255,pt[Ct++]=255&ut),pt}function xt(tt){return At[tt>>18&63]+At[tt>>12&63]+At[tt>>6&63]+At[63&tt]}function Ot(tt,st,rt){for(var ut,ct=[],pt=st;pt<rt;pt+=3)ut=(tt[pt]<<16)+(tt[pt+1]<<8)+tt[pt+2],ct.push(xt(ut));return ct.join("")}function Bt(tt){for(var st,rt=tt.length,ut=rt%3,ct="",pt=[],mt=0,Ct=rt-ut;mt<Ct;mt+=16383)pt.push(Ot(tt,mt,mt+16383>Ct?Ct:mt+16383));return ut===1?(st=tt[rt-1],ct+=At[st>>2],ct+=At[st<<4&63],ct+="=="):ut===2&&(st=(tt[rt-2]<<8)+tt[rt-1],ct+=At[st>>10],ct+=At[st>>4&63],ct+=At[st<<2&63],ct+="="),pt.push(ct),pt.join("")}yt.byteLength=Nt,yt.toByteArray=Wt,yt.fromByteArray=Bt;for(var At=[],bt=[],Tt=typeof Uint8Array!="undefined"?Uint8Array:Array,It="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",vt=0,et=It.length;vt<et;++vt)At[vt]=It[vt],bt[It.charCodeAt(vt)]=vt;bt[45]=62,bt[95]=63},function(Rt,yt){yt.read=function(Vt,Yt,Nt,Wt,xt){var Ot,Bt,At=8*xt-Wt-1,bt=(1<<At)-1,Tt=bt>>1,It=-7,vt=Nt?xt-1:0,et=Nt?-1:1,tt=Vt[Yt+vt];for(vt+=et,Ot=tt&(1<<-It)-1,tt>>=-It,It+=At;It>0;Ot=256*Ot+Vt[Yt+vt],vt+=et,It-=8);for(Bt=Ot&(1<<-It)-1,Ot>>=-It,It+=Wt;It>0;Bt=256*Bt+Vt[Yt+vt],vt+=et,It-=8);if(Ot===0)Ot=1-Tt;else{if(Ot===bt)return Bt?NaN:1/0*(tt?-1:1);Bt+=Math.pow(2,Wt),Ot-=Tt}return(tt?-1:1)*Bt*Math.pow(2,Ot-Wt)},yt.write=function(Vt,Yt,Nt,Wt,xt,Ot){var Bt,At,bt,Tt=8*Ot-xt-1,It=(1<<Tt)-1,vt=It>>1,et=xt===23?Math.pow(2,-24)-Math.pow(2,-77):0,tt=Wt?0:Ot-1,st=Wt?1:-1,rt=Yt<0||Yt===0&&1/Yt<0?1:0;for(Yt=Math.abs(Yt),isNaN(Yt)||Yt===1/0?(At=isNaN(Yt)?1:0,Bt=It):(Bt=Math.floor(Math.log(Yt)/Math.LN2),Yt*(bt=Math.pow(2,-Bt))<1&&(Bt--,bt*=2),Yt+=Bt+vt>=1?et/bt:et*Math.pow(2,1-vt),Yt*bt>=2&&(Bt++,bt/=2),Bt+vt>=It?(At=0,Bt=It):Bt+vt>=1?(At=(Yt*bt-1)*Math.pow(2,xt),Bt+=vt):(At=Yt*Math.pow(2,vt-1)*Math.pow(2,xt),Bt=0));xt>=8;Vt[Nt+tt]=255&At,tt+=st,At/=256,xt-=8);for(Bt=Bt<<xt|At,Tt+=xt;Tt>0;Vt[Nt+tt]=255&Bt,tt+=st,Bt/=256,Tt-=8);Vt[Nt+tt-st]|=128*rt}},function(Rt,yt){var Vt={}.toString;Rt.exports=Array.isArray||function(Yt){return Vt.call(Yt)=="[object Array]"}},function(Rt,yt,Vt){"use strict";function Yt(xt,Ot){if(!(xt instanceof Ot))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(yt,"__esModule",{value:!0});var Nt=function(){function xt(Ot,Bt){for(var At=0;At<Bt.length;At++){var bt=Bt[At];bt.enumerable=bt.enumerable||!1,bt.configurable=!0,"value"in bt&&(bt.writable=!0),Object.defineProperty(Ot,bt.key,bt)}}return function(Ot,Bt,At){return Bt&&xt(Ot.prototype,Bt),At&&xt(Ot,At),Ot}}(),Wt=function(){function xt(){Yt(this,xt)}return Nt(xt,null,[{key:"set",value:function(Ot,Bt){try{window.localStorage&&localStorage.setItem(Ot,Bt)}catch(At){window[Ot+"_localStorage"]=Bt}}},{key:"get",value:function(Ot){try{if(window.localStorage)return localStorage.getItem(Ot)}catch(Bt){return window[Ot+"_localStorage"]}return""}},{key:"remove",value:function(Ot){try{window.localStorage&&localStorage.removeItem(Ot)}catch(Bt){delete window[Ot+"_localStorage"]}}}]),xt}();yt.default=Wt},function(Rt,yt,Vt){"use strict";function Yt(xt,Ot){if(!(xt instanceof Ot))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(yt,"__esModule",{value:!0});var Nt=function(){function xt(Ot,Bt){for(var At=0;At<Bt.length;At++){var bt=Bt[At];bt.enumerable=bt.enumerable||!1,bt.configurable=!0,"value"in bt&&(bt.writable=!0),Object.defineProperty(Ot,bt.key,bt)}}return function(Ot,Bt,At){return Bt&&xt(Ot.prototype,Bt),At&&xt(Ot,At),Ot}}(),Wt=function(){function xt(){Yt(this,xt)}return Nt(xt,null,[{key:"get",value:function(Ot){for(var Bt=Ot+"",At=document.cookie.split(";"),bt=0;bt<At.length;bt++){var Tt=At[bt].trim();if(Tt.indexOf(Bt)==0)return unescape(Tt.substring(Bt.length+1,Tt.length))}return""}},{key:"set",value:function(Ot,Bt,At){var bt=new Date;bt.setTime(bt.getTime()+24*At*60*60*1e3);var Tt="expires="+bt.toGMTString();document.cookie=Ot+"="+escape(Bt)+"; "+Tt}}]),xt}();yt.default=Wt},function(Rt,yt,Vt){"use strict";function Yt(Tt){return Tt&&Tt.__esModule?Tt:{default:Tt}}function Nt(Tt,It){if(!(Tt instanceof It))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(yt,"__esModule",{value:!0});var Wt=function(){function Tt(It,vt){for(var et=0;et<vt.length;et++){var tt=vt[et];tt.enumerable=tt.enumerable||!1,tt.configurable=!0,"value"in tt&&(tt.writable=!0),Object.defineProperty(It,tt.key,tt)}}return function(It,vt,et){return vt&&Tt(It.prototype,vt),et&&Tt(It,et),It}}(),xt=Vt(8),Ot=Yt(xt),Bt=Vt(9),At=Yt(Bt),bt=function(){function Tt(){Nt(this,Tt)}return Wt(Tt,null,[{key:"refreshUploadAuth",value:function(It,vt,et){var tt=(At.default.randomUUID(),At.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=At.default.makeUTF8sort(st,"=","&")+"&Signature="+At.default.aliyunEncodeURI(At.default.makeChangeSiga(st,It.accessKeySecret)),ut="https://vod."+It.region+".aliyuncs.com/?"+rt;Ot.default.get(ut,function(pt){var pt=JSON.parse(pt);vt&&vt(pt)},function(ct){if(et){var pt=JSON.parse(ct);et(pt)}})}},{key:"getUploadAuth",value:function(It,vt,et){var tt=(At.default.randomUUID(),At.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=At.default.makeUTF8sort(st,"=","&")+"&Signature="+At.default.aliyunEncodeURI(At.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(pt){if(et)return void et({Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"})}vt&&vt(ct)},function(ct){if(et){var pt={Code:"GetUploadAuthFailed",Message:"\u83B7\u53D6uploadauth\u5931\u8D25"};try{pt=JSON.parse(ct)}catch(mt){}et(pt)}})}},{key:"getImageUploadAuth",value:function(It,vt,et){var tt=(At.default.randomUUID(),At.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=At.default.makeUTF8sort(st,"=","&")+"&Signature="+At.default.aliyunEncodeURI(At.default.makeChangeSiga(st,It.accessKeySecret)),ut="https://vod."+It.region+".aliyuncs.com/?"+rt;Ot.default.get(ut,function(ct){ct=JSON.parse(ct),vt&&vt(ct)},function(ct){if(et){var pt=JSON.parse(ct);et(pt)}})}}]),Tt}();yt.default=bt},function(Rt,yt,Vt){(function(Yt,Nt,Wt){Rt.exports=yt=Nt(Vt(0),Vt(28),Vt(29))})(0,function(Yt){return Yt.HmacSHA1})},function(Rt,yt,Vt){(function(Yt,Nt){Rt.exports=yt=Nt(Vt(0))})(0,function(Yt){return function(){var Nt=Yt,Wt=Nt.lib,xt=Wt.WordArray,Ot=Wt.Hasher,Bt=Nt.algo,At=[],bt=Bt.SHA1=Ot.extend({_doReset:function(){this._hash=new xt.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(Tt,It){for(var vt=this._hash.words,et=vt[0],tt=vt[1],st=vt[2],rt=vt[3],ut=vt[4],ct=0;ct<80;ct++){if(ct<16)At[ct]=0|Tt[It+ct];else{var pt=At[ct-3]^At[ct-8]^At[ct-14]^At[ct-16];At[ct]=pt<<1|pt>>>31}var mt=(et<<5|et>>>27)+ut+At[ct];mt+=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=mt}vt[0]=vt[0]+et|0,vt[1]=vt[1]+tt|0,vt[2]=vt[2]+st|0,vt[3]=vt[3]+rt|0,vt[4]=vt[4]+ut|0},_doFinalize:function(){var Tt=this._data,It=Tt.words,vt=8*this._nDataBytes,et=8*Tt.sigBytes;return It[et>>>5]|=128<<24-et%32,It[14+(et+64>>>9<<4)]=Math.floor(vt/4294967296),It[15+(et+64>>>9<<4)]=vt,Tt.sigBytes=4*It.length,this._process(),this._hash},clone:function(){var Tt=Ot.clone.call(this);return Tt._hash=this._hash.clone(),Tt}});Nt.SHA1=Ot._createHelper(bt),Nt.HmacSHA1=Ot._createHmacHelper(bt)}(),Yt.SHA1})},function(Rt,yt,Vt){(function(Yt,Nt){Rt.exports=yt=Nt(Vt(0))})(0,function(Yt){(function(){var Nt=Yt,Wt=Nt.lib,xt=Wt.Base,Ot=Nt.enc,Bt=Ot.Utf8,At=Nt.algo;At.HMAC=xt.extend({init:function(bt,Tt){bt=this._hasher=new bt.init,typeof Tt=="string"&&(Tt=Bt.parse(Tt));var It=bt.blockSize,vt=4*It;Tt.sigBytes>vt&&(Tt=bt.finalize(Tt)),Tt.clamp();for(var et=this._oKey=Tt.clone(),tt=this._iKey=Tt.clone(),st=et.words,rt=tt.words,ut=0;ut<It;ut++)st[ut]^=1549556828,rt[ut]^=909522486;et.sigBytes=tt.sigBytes=vt,this.reset()},reset:function(){var bt=this._hasher;bt.reset(),bt.update(this._iKey)},update:function(bt){return this._hasher.update(bt),this},finalize:function(bt){var Tt=this._hasher,It=Tt.finalize(bt);return Tt.reset(),Tt.finalize(this._oKey.clone().concat(It))}})})()})},function(Rt,yt,Vt){(function(Yt,Nt){Rt.exports=yt=Nt(Vt(0))})(0,function(Yt){return function(){function Nt(At,bt,Tt){for(var It=[],vt=0,et=0;et<bt;et++)if(et%4){var tt=Tt[At.charCodeAt(et-1)]<<et%4*2,st=Tt[At.charCodeAt(et)]>>>6-et%4*2;It[vt>>>2]|=(tt|st)<<24-vt%4*8,vt++}return Ot.create(It,vt)}var Wt=Yt,xt=Wt.lib,Ot=xt.WordArray,Bt=Wt.enc;Bt.Base64={stringify:function(At){var bt=At.words,Tt=At.sigBytes,It=this._map;At.clamp();for(var vt=[],et=0;et<Tt;et+=3)for(var tt=bt[et>>>2]>>>24-et%4*8&255,st=bt[et+1>>>2]>>>24-(et+1)%4*8&255,rt=bt[et+2>>>2]>>>24-(et+2)%4*8&255,ut=tt<<16|st<<8|rt,ct=0;ct<4&&et+.75*ct<Tt;ct++)vt.push(It.charAt(ut>>>6*(3-ct)&63));var pt=It.charAt(64);if(pt)for(;vt.length%4;)vt.push(pt);return vt.join("")},parse:function(At){var bt=At.length,Tt=this._map,It=this._reverseMap;if(!It){It=this._reverseMap=[];for(var vt=0;vt<Tt.length;vt++)It[Tt.charCodeAt(vt)]=vt}var et=Tt.charAt(64);if(et){var tt=At.indexOf(et);tt!==-1&&(bt=tt)}return Nt(At,bt,It)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),Yt.enc.Base64})},function(Rt,yt,Vt){"use strict";function Yt(Ct){return Ct&&Ct.__esModule?Ct:{default:Ct}}function Nt(Ct,Dt){if(!(Ct instanceof Dt))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(yt,"__esModule",{value:!0});var Wt=function(){function Ct(Dt,Ut){for(var Ft=0;Ft<Ut.length;Ft++){var Qt=Ut[Ft];Qt.enumerable=Qt.enumerable||!1,Qt.configurable=!0,"value"in Qt&&(Qt.writable=!0),Object.defineProperty(Dt,Qt.key,Qt)}}return function(Dt,Ut,Ft){return Ut&&Ct(Dt.prototype,Ut),Ft&&Ct(Dt,Ft),Dt}}(),xt=Vt(8),Ot=Yt(xt),Bt=Vt(7),At=Yt(Bt),bt=Vt(4),Tt=Yt(bt),It=Vt(6),vt=Yt(It),et=Vt(1),tt=Yt(et),st=Vt(9),rt=Yt(st),ut=Vt(2),ct=Vt(11),pt=Vt(10),mt=function(){function Ct(){Nt(this,Ct)}return Wt(Ct,null,[{key:"getAuthInfo",value:function(Dt,Ut,Ft){var Qt=Dt+"|f#Ylm&^1TppeRhLg|"+Ft;return Ut&&(Qt=Dt+"|"+Ut+"|f#Ylm&^1TppeRhLg|"+Ft),ut(pt.parse(Qt)).toString(ct)}},{key:"upload",value:function(Dt,Ut,Ft){var Qt=tt.default.ISODateString(new Date),$t=Math.floor(new Date().valueOf()/1e3),Kt=Tt.default.getClientId();Kt=Tt.default.setClientId(Kt);var ue=Ct.getAuthInfo(Dt.userId,Kt,$t),oe=rt.default.randomUUID(),we={Source:"WebSDK",BusinessType:"UploadVideo",Action:"ReportUploadProgress",TerminalType:"H5",DeviceModel:At.default.browser.name+(At.default.browser.version||""),AppVersion:vt.default.version,AuthTimestamp:$t,Timestamp:Qt,AuthInfo:ue,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:oe};Kt&&(we.ClientId=Kt);var Se=rt.default.makeUTF8sort(we,"=","&")+"&Signature="+rt.default.aliyunEncodeURI(rt.default.makeChangeSiga(we,Dt.accessKeySecret)),Ne="https://vod."+Dt.region+".aliyuncs.com/?"+Se;Ot.default.get(Ne,function(pe){Ut&&Ut()},function(pe){pe&&(Ft(pe),console.log(pe))})}},{key:"get",value:function(Dt,Ut,Ft){var Qt=tt.default.ISODateString(new Date),$t=Math.floor(new Date().valueOf()/1e3),Kt=Tt.default.getClientId(),ue=Ct.getAuthInfo(Dt.userId,Kt,$t),oe=rt.default.randomUUID(),we={Source:"WebSDK",BusinessType:"UploadVideo",Action:"GetUploadProgress",TerminalType:"H5",DeviceModel:At.default.browser.name+(At.default.browser.version||""),AppVersion:vt.default.version,AuthTimestamp:$t,Timestamp:Qt,AuthInfo:ue,UserId:Dt.userId,UploadInfoList:JSON.stringify(Dt.uploadInfoList),Version:"2017-03-21",Format:"JSON",SignatureMethod:"HMAC-SHA1",SignatureVersion:"1.0",SignatureNonce:oe};Kt&&(we.ClientId=Kt);var Se=rt.default.makeUTF8sort(we,"=","&")+"&Signature="+rt.default.aliyunEncodeURI(rt.default.makeChangeSiga(we,Dt.accessKeySecret)),Ne="https://vod."+Dt.region+".aliyuncs.com/?"+Se;Ot.default.get(Ne,function(pe){var Ue={},de=Kt;pe=pe?JSON.parse(pe):{},pe.UploadProgress&&pe.UploadProgress.UploadProgressList&&pe.UploadProgress.UploadProgressList.length>0&&(Ue=pe.UploadProgress.UploadProgressList[0],de=Ue.ClientId),Tt.default.setClientId(de),Ut&&Ut(Ue)},function(pe){pe&&(Ft(pe),console.log(pe))})}}]),Ct}();yt.default=mt},function(Rt,yt,Vt){"use strict";function Yt(Bt,At){if(!(Bt instanceof At))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(yt,"__esModule",{value:!0});var Nt=function(){function Bt(At,bt){for(var Tt=0;Tt<bt.length;Tt++){var It=bt[Tt];It.enumerable=It.enumerable||!1,It.configurable=!0,"value"in It&&(It.writable=!0),Object.defineProperty(At,It.key,It)}}return function(At,bt,Tt){return bt&&Bt(At.prototype,bt),Tt&&Bt(At,Tt),At}}(),Wt=Vt(2),xt=Vt(33),Ot=(Vt(11),function(){function Bt(){Yt(this,Bt)}return Nt(Bt,null,[{key:"getMd5",value:function(At,bt,Tt){var It=new FileReader;It.onload=function(tt){try{if(tt&&tt.target){var st=Wt(xt.parse(tt.target.result)),rt=st.toString();bt(rt)}}catch(ut){console.log(ut)}},It.onerror=function(tt){console.log(tt),errorCallback(tt)};var vt=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,et=vt.call(At,0,1024);It.readAsBinaryString(et)}}]),Bt}());yt.default=Ot},function(Rt,yt,Vt){(function(Yt,Nt){Rt.exports=yt=Nt(Vt(0))})(0,function(Yt){return Yt.enc.Latin1})}])},56762:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return yt}});var Rt=Gt(59301);function yt(){const[,Vt]=Rt.useReducer(Yt=>Yt+1,0);return Vt}},24905:function(Nn,An,Gt){"use strict";Gt.d(An,{default:function(){return Dt}});var Rt=Gt(92310),yt=Gt.n(Rt),Vt=Gt(5630),Yt=Gt(59301),Nt=Gt(36355),Wt=Gt(1684),xt=Gt(32441),Bt=Yt.createContext(null),At=Gt(98447),bt=Gt(14088),Tt=Gt(4572),It=function(Ut,Ft){var Qt={};for(var $t in Ut)Object.prototype.hasOwnProperty.call(Ut,$t)&&Ft.indexOf($t)<0&&(Qt[$t]=Ut[$t]);if(Ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Kt=0,$t=Object.getOwnPropertySymbols(Ut);Kt<$t.length;Kt++)Ft.indexOf($t[Kt])<0&&Object.prototype.propertyIsEnumerable.call(Ut,$t[Kt])&&(Qt[$t[Kt]]=Ut[$t[Kt]]);return Qt};const vt=(Ut,Ft)=>{var Qt;const{prefixCls:$t,className:Kt,rootClassName:ue,children:oe,indeterminate:we=!1,style:Se,onMouseEnter:Ne,onMouseLeave:pe,skipGroup:Ue=!1,disabled:de}=Ut,Jt=It(Ut,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:ee,direction:ae,checkbox:fe}=Yt.useContext(Nt.E_),se=Yt.useContext(Bt),{isFormItemInput:De}=Yt.useContext(xt.aM),Oe=Yt.useContext(Wt.Z),en=(Qt=(se==null?void 0:se.disabled)||de)!==null&&Qt!==void 0?Qt:Oe,We=Yt.useRef(Jt.value);Yt.useEffect(()=>{se==null||se.registerValue(Jt.value)},[]),Yt.useEffect(()=>{if(!Ue)return Jt.value!==We.current&&(se==null||se.cancelValue(We.current),se==null||se.registerValue(Jt.value),We.current=Jt.value),()=>se==null?void 0:se.cancelValue(Jt.value)},[Jt.value]);const rn=ee("checkbox",$t),[ke,Ie]=(0,At.ZP)(rn),je=Object.assign({},Jt);se&&!Ue&&(je.onChange=function(){Jt.onChange&&Jt.onChange.apply(Jt,arguments),se.toggleOption&&se.toggleOption({label:oe,value:Jt.value})},je.name=se.name,je.checked=se.value.includes(Jt.value));const $e=yt()(`${rn}-wrapper`,{[`${rn}-rtl`]:ae==="rtl",[`${rn}-wrapper-checked`]:je.checked,[`${rn}-wrapper-disabled`]:en,[`${rn}-wrapper-in-form-item`]:De},fe==null?void 0:fe.className,Kt,ue,Ie),me=yt()({[`${rn}-indeterminate`]:we},Tt.A,Ie),le=we?"mixed":void 0;return ke(Yt.createElement(bt.Z,{component:"Checkbox",disabled:en},Yt.createElement("label",{className:$e,style:Object.assign(Object.assign({},fe==null?void 0:fe.style),Se),onMouseEnter:Ne,onMouseLeave:pe},Yt.createElement(Vt.Z,Object.assign({"aria-checked":le},je,{prefixCls:rn,className:me,disabled:en,ref:Ft})),oe!==void 0&&Yt.createElement("span",null,oe))))};var tt=Yt.forwardRef(vt),st=Gt(26390),rt=Gt(64002),ut=function(Ut,Ft){var Qt={};for(var $t in Ut)Object.prototype.hasOwnProperty.call(Ut,$t)&&Ft.indexOf($t)<0&&(Qt[$t]=Ut[$t]);if(Ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Kt=0,$t=Object.getOwnPropertySymbols(Ut);Kt<$t.length;Kt++)Ft.indexOf($t[Kt])<0&&Object.prototype.propertyIsEnumerable.call(Ut,$t[Kt])&&(Qt[$t[Kt]]=Ut[$t[Kt]]);return Qt};const ct=(Ut,Ft)=>{const{defaultValue:Qt,children:$t,options:Kt=[],prefixCls:ue,className:oe,rootClassName:we,style:Se,onChange:Ne}=Ut,pe=ut(Ut,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Ue,direction:de}=Yt.useContext(Nt.E_),[Jt,ee]=Yt.useState(pe.value||Qt||[]),[ae,fe]=Yt.useState([]);Yt.useEffect(()=>{"value"in pe&&ee(pe.value||[])},[pe.value]);const se=Yt.useMemo(()=>Kt.map(Ee=>typeof Ee=="string"||typeof Ee=="number"?{label:Ee,value:Ee}:Ee),[Kt]),De=Ee=>{fe(ce=>ce.filter(he=>he!==Ee))},Oe=Ee=>{fe(ce=>[].concat((0,st.Z)(ce),[Ee]))},en=Ee=>{const ce=Jt.indexOf(Ee.value),he=(0,st.Z)(Jt);ce===-1?he.push(Ee.value):he.splice(ce,1),"value"in pe||ee(he),Ne==null||Ne(he.filter(_t=>ae.includes(_t)).sort((_t,Mt)=>{const Et=se.findIndex(Pt=>Pt.value===_t),Ht=se.findIndex(Pt=>Pt.value===Mt);return Et-Ht}))},We=Ue("checkbox",ue),rn=`${We}-group`,[ke,Ie]=(0,At.ZP)(We),je=(0,rt.Z)(pe,["value","disabled"]),$e=Kt.length?se.map(Ee=>Yt.createElement(tt,{prefixCls:We,key:Ee.value.toString(),disabled:"disabled"in Ee?Ee.disabled:pe.disabled,value:Ee.value,checked:Jt.includes(Ee.value),onChange:Ee.onChange,className:`${rn}-item`,style:Ee.style,title:Ee.title},Ee.label)):$t,me={toggleOption:en,value:Jt,disabled:pe.disabled,name:pe.name,registerValue:Oe,cancelValue:De},le=yt()(rn,{[`${rn}-rtl`]:de==="rtl"},oe,we,Ie);return ke(Yt.createElement("div",Object.assign({className:le,style:Se},je,{ref:Ft}),Yt.createElement(Bt.Provider,{value:me},$e)))},pt=Yt.forwardRef(ct);var mt=Yt.memo(pt);const Ct=tt;Ct.Group=mt,Ct.__ANT_CHECKBOX=!0;var Dt=Ct},98447:function(Nn,An,Gt){"use strict";Gt.d(An,{C2:function(){return Nt}});var Rt=Gt(17313),yt=Gt(37613),Vt=Gt(83116);const Yt=Wt=>{const{checkboxCls:xt}=Wt,Ot=`${xt}-wrapper`;return[{[`${xt}-group`]:Object.assign(Object.assign({},(0,Rt.Wf)(Wt)),{display:"inline-flex",flexWrap:"wrap",columnGap:Wt.marginXS,[`> ${Wt.antCls}-row`]:{flex:1}}),[Ot]:Object.assign(Object.assign({},(0,Rt.Wf)(Wt)),{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,Rt.Wf)(Wt)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Wt.borderRadiusSM,alignSelf:"center",[`${xt}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${xt}-inner`]:Object.assign({},(0,Rt.oN)(Wt))},[`${xt}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Wt.checkboxSize,height:Wt.checkboxSize,direction:"ltr",backgroundColor:Wt.colorBgContainer,border:`${Wt.lineWidth}px ${Wt.lineType} ${Wt.colorBorder}`,borderRadius:Wt.borderRadiusSM,borderCollapse:"separate",transition:`all ${Wt.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Wt.checkboxSize/14*5,height:Wt.checkboxSize/14*8,border:`${Wt.lineWidthBold}px solid ${Wt.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Wt.motionDurationFast} ${Wt.motionEaseInBack}, opacity ${Wt.motionDurationFast}`}},"& + span":{paddingInlineStart:Wt.paddingXS,paddingInlineEnd:Wt.paddingXS}})},{[`
|
|
|
${Ot}:not(${Ot}-disabled),
|
|
|
${xt}:not(${xt}-disabled)
|
|
|
`]:{[`&:hover ${xt}-inner`]:{borderColor:Wt.colorPrimary}},[`${Ot}:not(${Ot}-disabled)`]:{[`&:hover ${xt}-checked:not(${xt}-disabled) ${xt}-inner`]:{backgroundColor:Wt.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${xt}-checked:not(${xt}-disabled):after`]:{borderColor:Wt.colorPrimaryHover}}},{[`${xt}-checked`]:{[`${xt}-inner`]:{backgroundColor:Wt.colorPrimary,borderColor:Wt.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Wt.motionDurationMid} ${Wt.motionEaseOutBack} ${Wt.motionDurationFast}`}}},[`
|
|
|
${Ot}-checked:not(${Ot}-disabled),
|
|
|
${xt}-checked:not(${xt}-disabled)
|
|
|
`]:{[`&:hover ${xt}-inner`]:{backgroundColor:Wt.colorPrimaryHover,borderColor:"transparent"}}},{[xt]:{"&-indeterminate":{[`${xt}-inner`]:{backgroundColor:Wt.colorBgContainer,borderColor:Wt.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Wt.fontSizeLG/2,height:Wt.fontSizeLG/2,backgroundColor:Wt.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:Wt.colorBgContainerDisabled,borderColor:Wt.colorBorder,"&:after":{borderColor:Wt.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Wt.colorTextDisabled},[`&${xt}-indeterminate ${xt}-inner::after`]:{background:Wt.colorTextDisabled}}}]};function Nt(Wt,xt){const Ot=(0,yt.TS)(xt,{checkboxCls:`.${Wt}`,checkboxSize:xt.controlInteractiveSize});return[Yt(Ot)]}An.ZP=(0,Vt.Z)("Checkbox",(Wt,xt)=>{let{prefixCls:Ot}=xt;return[Nt(Ot,Wt)]})},93891:function(Nn,An,Gt){"use strict";var Rt=Gt(59301),yt=Gt(36355),Vt=Gt(64165);const Yt=Nt=>{const{componentName:Wt}=Nt,{getPrefixCls:xt}=(0,Rt.useContext)(yt.E_),Ot=xt("empty");switch(Wt){case"Table":case"List":return Rt.createElement(Vt.Z,{image:Vt.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return Rt.createElement(Vt.Z,{image:Vt.Z.PRESENTED_IMAGE_SIMPLE,className:`${Ot}-small`});default:return Rt.createElement(Vt.Z,null)}};An.Z=Yt},28103:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Tt}});var Rt=Gt(92310),yt=Gt.n(Rt),Vt=Gt(59301),Yt=Gt(36355),Nt=Gt(17313),Wt=Gt(83116),xt=Gt(37613);const Ot=It=>{const{componentCls:vt,sizePaddingEdgeHorizontal:et,colorSplit:tt,lineWidth:st,textPaddingInline:rt,orientationMargin:ut,verticalMarginInline:ct}=It;return{[vt]:Object.assign(Object.assign({},(0,Nt.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${vt}-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${vt}-with-text-left`]:{"&::before":{width:`${ut*100}%`},"&::after":{width:`${100-ut*100}%`}},[`&-horizontal${vt}-with-text-right`]:{"&::before":{width:`${100-ut*100}%`},"&::after":{width:`${ut*100}%`}},[`${vt}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:rt},"&-dashed":{background:"none",borderColor:tt,borderStyle:"dashed",borderWidth:`${st}px 0 0`},[`&-horizontal${vt}-with-text${vt}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${vt}-dashed`]:{borderInlineStartWidth:st,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${vt}-with-text`]:{color:It.colorText,fontWeight:"normal",fontSize:It.fontSize},[`&-horizontal${vt}-with-text-left${vt}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${vt}-inner-text`]:{paddingInlineStart:et}},[`&-horizontal${vt}-with-text-right${vt}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${vt}-inner-text`]:{paddingInlineEnd:et}}})}};var Bt=(0,Wt.Z)("Divider",It=>{const vt=(0,xt.TS)(It,{dividerHorizontalWithTextGutterMargin:It.margin,dividerHorizontalGutterMargin:It.marginLG,sizePaddingEdgeHorizontal:0});return[Ot(vt)]},It=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:It.marginXS})),At=function(It,vt){var et={};for(var tt in It)Object.prototype.hasOwnProperty.call(It,tt)&&vt.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++)vt.indexOf(tt[st])<0&&Object.prototype.propertyIsEnumerable.call(It,tt[st])&&(et[tt[st]]=It[tt[st]]);return et},Tt=It=>{const{getPrefixCls:vt,direction:et,divider:tt}=Vt.useContext(Yt.E_),{prefixCls:st,type:rt="horizontal",orientation:ut="center",orientationMargin:ct,className:pt,rootClassName:mt,children:Ct,dashed:Dt,plain:Ut,style:Ft}=It,Qt=At(It,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),$t=vt("divider",st),[Kt,ue]=Bt($t),oe=ut.length>0?`-${ut}`:ut,we=!!Ct,Se=ut==="left"&&ct!=null,Ne=ut==="right"&&ct!=null,pe=yt()($t,tt==null?void 0:tt.className,ue,`${$t}-${rt}`,{[`${$t}-with-text`]:we,[`${$t}-with-text${oe}`]:we,[`${$t}-dashed`]:!!Dt,[`${$t}-plain`]:!!Ut,[`${$t}-rtl`]:et==="rtl",[`${$t}-no-default-orientation-margin-left`]:Se,[`${$t}-no-default-orientation-margin-right`]:Ne},pt,mt),Ue=Vt.useMemo(()=>typeof ct=="number"?ct:/^\d+$/.test(ct)?Number(ct):ct,[ct]),de=Object.assign(Object.assign({},Se&&{marginLeft:Ue}),Ne&&{marginRight:Ue});return Kt(Vt.createElement("div",Object.assign({className:pe,style:Object.assign(Object.assign({},tt==null?void 0:tt.style),Ft)},Qt,{role:"separator"}),Ct&&rt!=="vertical"&&Vt.createElement("span",{className:`${$t}-inner-text`,style:de},Ct)))}},43428:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return ke}});var Rt=Gt(92310),yt=Gt.n(Rt),Vt=Gt(57259),Yt=Gt(29043),Nt=Gt(43403),Wt=Gt(28800),xt=Gt(59301),Ot=xt.createContext(null),Bt=xt.createContext({}),At=Ot,bt=Gt(80962),Tt=Gt(5891),It=Gt(43469),vt=Gt(85108),et=Gt(36994),tt=Gt(80764),st=function(je){var $e=je.prefixCls,me=je.className,le=je.style,Ee=je.children,ce=je.containerRef,he=je.id,_t=je.onMouseEnter,Mt=je.onMouseOver,Et=je.onMouseLeave,Ht=je.onClick,Pt=je.onKeyDown,dt=je.onKeyUp,gt={onMouseEnter:_t,onMouseOver:Mt,onMouseLeave:Et,onClick:Ht,onKeyDown:Pt,onKeyUp:dt},zt=xt.useContext(Bt),re=zt.panel,Zt=(0,tt.useComposeRef)(re,ce);return xt.createElement(xt.Fragment,null,xt.createElement("div",(0,Tt.Z)({id:he,className:yt()("".concat($e,"-content"),me),style:(0,Vt.Z)({},le),"aria-modal":"true",role:"dialog",ref:Zt},gt),Ee))},rt=st,ut=Gt(51395);function ct(Ie){return typeof Ie=="string"&&String(Number(Ie))===Ie?((0,ut.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Ie)):Ie}function pt(Ie){warning(!("wrapperClassName"in Ie),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Ie.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var mt={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Ct(Ie,je){var $e,me,le,Ee,ce=Ie.prefixCls,he=Ie.open,_t=Ie.placement,Mt=Ie.inline,Et=Ie.push,Ht=Ie.forceRender,Pt=Ie.autoFocus,dt=Ie.keyboard,gt=Ie.rootClassName,zt=Ie.rootStyle,re=Ie.zIndex,Zt=Ie.className,ye=Ie.id,Ye=Ie.style,sn=Ie.motion,Le=Ie.width,Re=Ie.height,hn=Ie.children,wn=Ie.contentWrapperStyle,kn=Ie.mask,Rn=Ie.maskClosable,Yn=Ie.maskMotion,Kn=Ie.maskClassName,li=Ie.maskStyle,mi=Ie.afterOpenChange,yi=Ie.onClose,Pi=Ie.onMouseEnter,Mi=Ie.onMouseOver,Gi=Ie.onMouseLeave,bi=Ie.onClick,Ki=Ie.onKeyDown,ui=Ie.onKeyUp,te=xt.useRef(),Yi=xt.useRef(),Ti=xt.useRef();xt.useImperativeHandle(je,function(){return te.current});var or=function(mn){var Me=mn.keyCode,Ge=mn.shiftKey;switch(Me){case vt.Z.TAB:{if(Me===vt.Z.TAB){if(!Ge&&document.activeElement===Ti.current){var fn;(fn=Yi.current)===null||fn===void 0||fn.focus({preventScroll:!0})}else if(Ge&&document.activeElement===Yi.current){var In;(In=Ti.current)===null||In===void 0||In.focus({preventScroll:!0})}}break}case vt.Z.ESC:{yi&&dt&&(mn.stopPropagation(),yi(mn));break}}};xt.useEffect(function(){if(he&&Pt){var Un;(Un=te.current)===null||Un===void 0||Un.focus({preventScroll:!0})}},[he]);var Sr=xt.useState(!1),Er=(0,Yt.Z)(Sr,2),vr=Er[0],qn=Er[1],tn=xt.useContext(At),nn;Et===!1?nn={distance:0}:Et===!0?nn={}:nn=Et||{};var Qe=($e=(me=(le=nn)===null||le===void 0?void 0:le.distance)!==null&&me!==void 0?me:tn==null?void 0:tn.pushDistance)!==null&&$e!==void 0?$e:180,Fe=xt.useMemo(function(){return{pushDistance:Qe,push:function(){qn(!0)},pull:function(){qn(!1)}}},[Qe]);xt.useEffect(function(){if(he){var Un;tn==null||(Un=tn.push)===null||Un===void 0||Un.call(tn)}else{var mn;tn==null||(mn=tn.pull)===null||mn===void 0||mn.call(tn)}},[he]),xt.useEffect(function(){return function(){var Un;tn==null||(Un=tn.pull)===null||Un===void 0||Un.call(tn)}},[]);var vn=kn&&xt.createElement(It.default,(0,Tt.Z)({key:"mask"},Yn,{visible:he}),function(Un,mn){var Me=Un.className,Ge=Un.style;return xt.createElement("div",{className:yt()("".concat(ce,"-mask"),Me,Kn),style:(0,Vt.Z)((0,Vt.Z)({},Ge),li),onClick:Rn&&he?yi:void 0,ref:mn})}),bn=typeof sn=="function"?sn(_t):sn,Ze={};if(vr&&Qe)switch(_t){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}_t==="left"||_t==="right"?Ze.width=ct(Le):Ze.height=ct(Re);var Ae={onMouseEnter:Pi,onMouseOver:Mi,onMouseLeave:Gi,onClick:bi,onKeyDown:Ki,onKeyUp:ui},gn=xt.createElement(It.default,(0,Tt.Z)({key:"panel"},bn,{visible:he,forceRender:Ht,onVisibleChanged:function(mn){mi==null||mi(mn)},removeOnLeave:!1,leavedClassName:"".concat(ce,"-content-wrapper-hidden")}),function(Un,mn){var Me=Un.className,Ge=Un.style;return xt.createElement("div",(0,Tt.Z)({className:yt()("".concat(ce,"-content-wrapper"),Me),style:(0,Vt.Z)((0,Vt.Z)((0,Vt.Z)({},Ze),Ge),wn)},(0,et.Z)(Ie,{data:!0})),xt.createElement(rt,(0,Tt.Z)({id:ye,containerRef:mn,prefixCls:ce,className:Zt,style:Ye},Ae),hn))}),Pn=(0,Vt.Z)({},zt);return re&&(Pn.zIndex=re),xt.createElement(At.Provider,{value:Fe},xt.createElement("div",{className:yt()(ce,"".concat(ce,"-").concat(_t),gt,(Ee={},(0,bt.Z)(Ee,"".concat(ce,"-open"),he),(0,bt.Z)(Ee,"".concat(ce,"-inline"),Mt),Ee)),style:Pn,tabIndex:-1,ref:te,onKeyDown:or},vn,xt.createElement("div",{tabIndex:0,ref:Yi,style:mt,"aria-hidden":"true","data-sentinel":"start"}),gn,xt.createElement("div",{tabIndex:0,ref:Ti,style:mt,"aria-hidden":"true","data-sentinel":"end"})))}var Dt=xt.forwardRef(Ct),Ut=Dt,Ft=function(je){var $e=je.open,me=$e===void 0?!1:$e,le=je.prefixCls,Ee=le===void 0?"rc-drawer":le,ce=je.placement,he=ce===void 0?"right":ce,_t=je.autoFocus,Mt=_t===void 0?!0:_t,Et=je.keyboard,Ht=Et===void 0?!0:Et,Pt=je.width,dt=Pt===void 0?378:Pt,gt=je.mask,zt=gt===void 0?!0:gt,re=je.maskClosable,Zt=re===void 0?!0:re,ye=je.getContainer,Ye=je.forceRender,sn=je.afterOpenChange,Le=je.destroyOnClose,Re=je.onMouseEnter,hn=je.onMouseOver,wn=je.onMouseLeave,kn=je.onClick,Rn=je.onKeyDown,Yn=je.onKeyUp,Kn=je.panelRef,li=xt.useState(!1),mi=(0,Yt.Z)(li,2),yi=mi[0],Pi=mi[1],Mi=xt.useState(!1),Gi=(0,Yt.Z)(Mi,2),bi=Gi[0],Ki=Gi[1];(0,Wt.Z)(function(){Ki(!0)},[]);var ui=bi?me:!1,te=xt.useRef(),Yi=xt.useRef();(0,Wt.Z)(function(){ui&&(Yi.current=document.activeElement)},[ui]);var Ti=function(qn){var tn;if(Pi(qn),sn==null||sn(qn),!qn&&Yi.current&&!((tn=te.current)!==null&&tn!==void 0&&tn.contains(Yi.current))){var nn;(nn=Yi.current)===null||nn===void 0||nn.focus({preventScroll:!0})}},or=xt.useMemo(function(){return{panel:Kn}},[Kn]);if(!Ye&&!yi&&!ui&&Le)return null;var Sr={onMouseEnter:Re,onMouseOver:hn,onMouseLeave:wn,onClick:kn,onKeyDown:Rn,onKeyUp:Yn},Er=(0,Vt.Z)((0,Vt.Z)({},je),{},{open:ui,prefixCls:Ee,placement:he,autoFocus:Mt,keyboard:Ht,width:dt,mask:zt,maskClosable:Zt,inline:ye===!1,afterOpenChange:Ti,ref:te},Sr);return xt.createElement(Bt.Provider,{value:or},xt.createElement(Nt.Z,{open:ui||Ye||yi,autoDestroy:!1,getContainer:ye,autoLock:zt&&(ui||yi)},xt.createElement(Ut,Er)))},Qt=Ft,$t=Qt,Kt=Gt(62892),ue=Gt(36355),oe=Gt(32441),we=Gt(47729),Ne=Ie=>{const{prefixCls:je,title:$e,footer:me,extra:le,closeIcon:Ee,closable:ce,onClose:he,headerStyle:_t,drawerStyle:Mt,bodyStyle:Et,footerStyle:Ht,children:Pt}=Ie,dt=xt.useCallback(ye=>xt.createElement("button",{type:"button",onClick:he,"aria-label":"Close",className:`${je}-close`},ye),[he]),[gt,zt]=(0,we.Z)(ce,Ee,dt,void 0,!0),re=xt.useMemo(()=>!$e&&!gt?null:xt.createElement("div",{style:_t,className:yt()(`${je}-header`,{[`${je}-header-close-only`]:gt&&!$e&&!le})},xt.createElement("div",{className:`${je}-header-title`},zt,$e&&xt.createElement("div",{className:`${je}-title`},$e)),le&&xt.createElement("div",{className:`${je}-extra`},le)),[gt,zt,le,_t,je,$e]),Zt=xt.useMemo(()=>{if(!me)return null;const ye=`${je}-footer`;return xt.createElement("div",{className:ye,style:Ht},me)},[me,Ht,je]);return xt.createElement("div",{className:`${je}-wrapper-body`,style:Mt},re,xt.createElement("div",{className:`${je}-body`,style:Et},Pt),Zt)},pe=Gt(33234),Ue=Gt(83116),de=Gt(37613),ee=Ie=>{const{componentCls:je,motionDurationSlow:$e}=Ie,me={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${$e}`}}};return{[je]:{[`${je}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${$e}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${je}-panel-motion`]:{"&-left":[me,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[me,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[me,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[me,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const ae=Ie=>{const{componentCls:je,zIndexPopup:$e,colorBgMask:me,colorBgElevated:le,motionDurationSlow:Ee,motionDurationMid:ce,padding:he,paddingLG:_t,fontSizeLG:Mt,lineHeightLG:Et,lineWidth:Ht,lineType:Pt,colorSplit:dt,marginSM:gt,colorIcon:zt,colorIconHover:re,colorText:Zt,fontWeightStrong:ye,footerPaddingBlock:Ye,footerPaddingInline:sn}=Ie,Le=`${je}-content-wrapper`;return{[je]:{position:"fixed",inset:0,zIndex:$e,pointerEvents:"none","&-pure":{position:"relative",background:le,[`&${je}-left`]:{boxShadow:Ie.boxShadowDrawerLeft},[`&${je}-right`]:{boxShadow:Ie.boxShadowDrawerRight},[`&${je}-top`]:{boxShadow:Ie.boxShadowDrawerUp},[`&${je}-bottom`]:{boxShadow:Ie.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${je}-mask`]:{position:"absolute",inset:0,zIndex:$e,background:me,pointerEvents:"auto"},[Le]:{position:"absolute",zIndex:$e,maxWidth:"100vw",transition:`all ${Ee}`,"&-hidden":{display:"none"}},[`&-left > ${Le}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Ie.boxShadowDrawerLeft},[`&-right > ${Le}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Ie.boxShadowDrawerRight},[`&-top > ${Le}`]:{top:0,insetInline:0,boxShadow:Ie.boxShadowDrawerUp},[`&-bottom > ${Le}`]:{bottom:0,insetInline:0,boxShadow:Ie.boxShadowDrawerDown},[`${je}-content`]:{width:"100%",height:"100%",overflow:"auto",background:le,pointerEvents:"auto"},[`${je}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${je}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${he}px ${_t}px`,fontSize:Mt,lineHeight:Et,borderBottom:`${Ht}px ${Pt} ${dt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${je}-extra`]:{flex:"none"},[`${je}-close`]:{display:"inline-block",marginInlineEnd:gt,color:zt,fontWeight:ye,fontSize:Mt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${ce}`,textRendering:"auto","&:focus, &:hover":{color:re,textDecoration:"none"}},[`${je}-title`]:{flex:1,margin:0,color:Zt,fontWeight:Ie.fontWeightStrong,fontSize:Mt,lineHeight:Et},[`${je}-body`]:{flex:1,minWidth:0,minHeight:0,padding:_t,overflow:"auto"},[`${je}-footer`]:{flexShrink:0,padding:`${Ye}px ${sn}px`,borderTop:`${Ht}px ${Pt} ${dt}`},"&-rtl":{direction:"rtl"}}}};var fe=(0,Ue.Z)("Drawer",Ie=>{const je=(0,de.TS)(Ie,{});return[ae(je),ee(je)]},Ie=>({zIndexPopup:Ie.zIndexPopupBase,footerPaddingBlock:Ie.paddingXS,footerPaddingInline:Ie.padding})),se=Gt(11575),De=function(Ie,je){var $e={};for(var me in Ie)Object.prototype.hasOwnProperty.call(Ie,me)&&je.indexOf(me)<0&&($e[me]=Ie[me]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,me=Object.getOwnPropertySymbols(Ie);le<me.length;le++)je.indexOf(me[le])<0&&Object.prototype.propertyIsEnumerable.call(Ie,me[le])&&($e[me[le]]=Ie[me[le]]);return $e};const Oe=null,en={distance:180},We=Ie=>{var je;const{rootClassName:$e,width:me,height:le,size:Ee="default",mask:ce=!0,push:he=en,open:_t,afterOpenChange:Mt,onClose:Et,prefixCls:Ht,getContainer:Pt,style:dt,className:gt,visible:zt,afterVisibleChange:re}=Ie,Zt=De(Ie,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:ye,getPrefixCls:Ye,direction:sn,drawer:Le}=xt.useContext(ue.E_),Re=Ye("drawer",Ht),[hn,wn]=fe(Re),kn=Pt===void 0&&ye?()=>ye(document.body):Pt,Rn=yt()({"no-mask":!ce,[`${Re}-rtl`]:sn==="rtl"},$e,wn),Yn=xt.useMemo(()=>me!=null?me:Ee==="large"?736:378,[me,Ee]),Kn=xt.useMemo(()=>le!=null?le:Ee==="large"?736:378,[le,Ee]),li={motionName:(0,Kt.m)(Re,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},mi=Pi=>({motionName:(0,Kt.m)(Re,`panel-motion-${Pi}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),yi=(0,se.H)();return hn(xt.createElement(pe.BR,null,xt.createElement(oe.Ux,{status:!0,override:!0},xt.createElement($t,Object.assign({prefixCls:Re,onClose:Et,maskMotion:li,motion:mi},Zt,{open:_t!=null?_t:zt,mask:ce,push:he,width:Yn,height:Kn,style:Object.assign(Object.assign({},Le==null?void 0:Le.style),dt),className:yt()(Le==null?void 0:Le.className,gt),rootClassName:Rn,getContainer:kn,afterOpenChange:Mt!=null?Mt:re,panelRef:yi}),xt.createElement(Ne,Object.assign({prefixCls:Re},Zt,{onClose:Et}))))))},rn=Ie=>{const{prefixCls:je,style:$e,className:me,placement:le="right"}=Ie,Ee=De(Ie,["prefixCls","style","className","placement"]),{getPrefixCls:ce}=xt.useContext(ue.E_),he=ce("drawer",je),[_t,Mt]=fe(he),Et=yt()(he,`${he}-pure`,`${he}-${le}`,Mt,me);return _t(xt.createElement("div",{className:Et,style:$e},xt.createElement(Ne,Object.assign({prefixCls:he},Ee))))};We._InternalPanelDoNotUseOrYouWillBeFired=rn;var ke=We},91857:function(Nn,An,Gt){"use strict";var Rt=Gt(59301),yt=Gt(53878),Vt=Gt(92310),Yt=Gt.n(Vt),Nt=Gt(31561),Wt=Gt(80764),xt=Gt(35788),Ot=Gt(64002),Bt=Gt(79676),At=Gt(53487),bt=Gt(92343),Tt=Gt(36355),It=Gt(20834),vt=Gt(40875),et=Gt(88088),tt=Gt(47211);const st=null,rt=mt=>{const{menu:Ct,arrow:Dt,prefixCls:Ut,children:Ft,trigger:Qt,disabled:$t,dropdownRender:Kt,getPopupContainer:ue,overlayClassName:oe,rootClassName:we,open:Se,onOpenChange:Ne,visible:pe,onVisibleChange:Ue,mouseEnterDelay:de=.15,mouseLeaveDelay:Jt=.1,autoAdjustOverflow:ee=!0,placement:ae="",overlay:fe,transitionName:se}=mt,{getPopupContainer:De,getPrefixCls:Oe,direction:en}=Rt.useContext(Tt.E_),We=Rt.useMemo(()=>{const gt=Oe();return se!==void 0?se:ae.includes("top")?`${gt}-slide-down`:`${gt}-slide-up`},[Oe,ae,se]),rn=Rt.useMemo(()=>ae?ae.includes("Center")?ae.slice(0,ae.indexOf("Center")):ae:en==="rtl"?"bottomRight":"bottomLeft",[ae,en]),ke=Oe("dropdown",Ut),[Ie,je]=(0,tt.Z)(ke),[,$e]=(0,et.Z)(),me=Rt.Children.only(Ft),le=(0,bt.Tm)(me,{className:Yt()(`${ke}-trigger`,{[`${ke}-rtl`]:en==="rtl"},me.props.className),disabled:$t}),Ee=$t?[]:Qt;let ce;Ee&&Ee.includes("contextMenu")&&(ce=!0);const[he,_t]=(0,xt.Z)(!1,{value:Se!=null?Se:pe}),Mt=(0,Wt.useEvent)(gt=>{Ne==null||Ne(gt),Ue==null||Ue(gt),_t(gt)}),Et=Yt()(oe,we,je,{[`${ke}-rtl`]:en==="rtl"}),Ht=(0,Bt.Z)({arrowPointAtCenter:typeof Dt=="object"&&Dt.pointAtCenter,autoAdjustOverflow:ee,offset:$e.marginXXS,arrowWidth:Dt?$e.sizePopupArrow:0,borderRadius:$e.borderRadius}),Pt=Rt.useCallback(()=>{_t(!1)},[]),dt=()=>{let gt;return Ct!=null&&Ct.items?gt=Rt.createElement(It.default,Object.assign({},Ct)):typeof fe=="function"?gt=fe():gt=fe,Kt&&(gt=Kt(gt)),gt=Rt.Children.only(typeof gt=="string"?Rt.createElement("span",null,gt):gt),Rt.createElement(vt.J,{prefixCls:`${ke}-menu`,expandIcon:Rt.createElement("span",{className:`${ke}-menu-submenu-arrow`},Rt.createElement(yt.Z,{className:`${ke}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Pt,validator:zt=>{let{mode:re}=zt}},gt)};return Ie(Rt.createElement(Nt.Z,Object.assign({alignPoint:ce},(0,Ot.Z)(mt,["rootClassName"]),{mouseEnterDelay:de,mouseLeaveDelay:Jt,visible:he,builtinPlacements:Ht,arrow:!!Dt,overlayClassName:Et,prefixCls:ke,getPopupContainer:ue||De,transitionName:We,trigger:Ee,overlay:dt,placement:rn,onVisibleChange:Mt}),le))};function ut(mt){return Object.assign(Object.assign({},mt),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ct=(0,At.Z)(rt,"dropdown",mt=>mt,ut),pt=mt=>Rt.createElement(ct,Object.assign({},mt),Rt.createElement("span",null));rt._InternalPanelDoNotUseOrYouWillBeFired=pt,An.Z=rt},38854:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return et}});var Rt=Gt(91857),yt=Gt(92310),Vt=Gt.n(yt),Yt=Gt(59301),Nt=Gt(19362),Wt=Gt(3113),xt=Gt(36355),Ot=Gt(81327),Bt=Gt(33234),At=Gt(47211),bt=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 Tt=tt=>{const{getPopupContainer:st,getPrefixCls:rt,direction:ut}=Yt.useContext(xt.E_),{prefixCls:ct,type:pt="default",danger:mt,disabled:Ct,loading:Dt,onClick:Ut,htmlType:Ft,children:Qt,className:$t,menu:Kt,arrow:ue,autoFocus:oe,overlay:we,trigger:Se,align:Ne,open:pe,onOpenChange:Ue,placement:de,getPopupContainer:Jt,href:ee,icon:ae=Yt.createElement(Nt.Z,null),title:fe,buttonsRender:se=dt=>dt,mouseEnterDelay:De,mouseLeaveDelay:Oe,overlayClassName:en,overlayStyle:We,destroyPopupOnHide:rn,dropdownRender:ke}=tt,Ie=bt(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"]),je=rt("dropdown",ct),$e=`${je}-button`,[me,le]=(0,At.Z)(je),Ee={menu:Kt,arrow:ue,autoFocus:oe,align:Ne,disabled:Ct,trigger:Ct?[]:Se,onOpenChange:Ue,getPopupContainer:Jt||st,mouseEnterDelay:De,mouseLeaveDelay:Oe,overlayClassName:en,overlayStyle:We,destroyPopupOnHide:rn,dropdownRender:ke},{compactSize:ce,compactItemClassnames:he}=(0,Bt.ri)(je,ut),_t=Vt()($e,he,$t,le);"overlay"in tt&&(Ee.overlay=we),"open"in tt&&(Ee.open=pe),"placement"in tt?Ee.placement=de:Ee.placement=ut==="rtl"?"bottomLeft":"bottomRight";const Mt=Yt.createElement(Wt.ZP,{type:pt,danger:mt,disabled:Ct,loading:Dt,onClick:Ut,htmlType:Ft,href:ee,title:fe},Qt),Et=Yt.createElement(Wt.ZP,{type:pt,danger:mt,icon:ae}),[Ht,Pt]=se([Mt,Et]);return me(Yt.createElement(Ot.Z.Compact,Object.assign({className:_t,size:ce,block:!0},Ie),Ht,Yt.createElement(Rt.Z,Object.assign({},Ee),Pt)))};Tt.__ANT_BUTTON=!0;var It=Tt;const vt=Rt.Z;vt.Button=It;var et=vt},47211:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return bt}});var Rt=Gt(17313),yt=Gt(13826),Vt=Gt(92899),Yt=Gt(29878),Nt=Gt(19447),Wt=Gt(83116),xt=Gt(37613),Bt=Tt=>{const{componentCls:It,menuCls:vt,colorError:et,colorTextLightSolid:tt}=Tt,st=`${vt}-item`;return{[`${It}, ${It}-menu-submenu`]:{[`${vt} ${st}`]:{[`&${st}-danger:not(${st}-disabled)`]:{color:et,"&:hover":{color:tt,backgroundColor:et}}}}}};const At=Tt=>{const{componentCls:It,menuCls:vt,zIndexPopup:et,dropdownArrowDistance:tt,sizePopupArrow:st,antCls:rt,iconCls:ut,motionDurationMid:ct,dropdownPaddingVertical:pt,fontSize:mt,dropdownEdgeChildPadding:Ct,colorTextDisabled:Dt,fontSizeIcon:Ut,controlPaddingHorizontal:Ft,colorBgElevated:Qt}=Tt;return[{[It]:Object.assign(Object.assign({},(0,Rt.Wf)(Tt)),{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:Ut}},[`${It}-wrap`]:{position:"relative",[`${rt}-btn > ${ut}-down`]:{fontSize:Ut},[`${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:yt.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:yt.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:yt.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:yt.ly}})},(0,Nt.ZP)(Tt,{colorBg:Qt,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${It} ${vt}`]:{position:"relative",margin:0},[`${vt}-submenu-popup`]:{position:"absolute",zIndex:et,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${It}, ${It}-menu-submenu`]:{[vt]:Object.assign(Object.assign({padding:Ct,listStyleType:"none",backgroundColor:Qt,backgroundClip:"padding-box",borderRadius:Tt.borderRadiusLG,outline:"none",boxShadow:Tt.boxShadowSecondary},(0,Rt.Qy)(Tt)),{[`${vt}-item-group-title`]:{padding:`${pt}px ${Ft}px`,color:Tt.colorTextDescription,transition:`all ${ct}`},[`${vt}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${vt}-item-icon`]:{minWidth:mt,marginInlineEnd:Tt.marginXS,fontSize:Tt.fontSizeSM},[`${vt}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ct}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${vt}-item, ${vt}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${pt}px ${Ft}px`,color:Tt.colorText,fontWeight:"normal",fontSize:mt,lineHeight:Tt.lineHeight,cursor:"pointer",transition:`all ${ct}`,borderRadius:Tt.borderRadiusSM,"&:hover, &-active":{backgroundColor:Tt.controlItemBgHover}},(0,Rt.Qy)(Tt)),{"&-selected":{color:Tt.colorPrimary,backgroundColor:Tt.controlItemBgActive,"&:hover, &-active":{backgroundColor:Tt.controlItemBgActiveHover}},"&-disabled":{color:Dt,cursor:"not-allowed","&:hover":{color:Dt,backgroundColor:Qt,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Tt.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:Tt.colorSplit},[`${It}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Tt.paddingXS,[`${It}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Tt.colorTextDescription,fontSize:Ut,fontStyle:"normal"}}}),[`${vt}-item-group-list`]:{margin:`0 ${Tt.marginXS}px`,padding:0,listStyle:"none"},[`${vt}-submenu-title`]:{paddingInlineEnd:Ft+Tt.fontSizeSM},[`${vt}-submenu-vertical`]:{position:"relative"},[`${vt}-submenu${vt}-submenu-disabled ${It}-menu-submenu-title`]:{[`&, ${It}-menu-submenu-arrow-icon`]:{color:Dt,backgroundColor:Qt,cursor:"not-allowed"}},[`${vt}-submenu-selected ${It}-menu-submenu-title`]:{color:Tt.colorPrimary}})}},[(0,yt.oN)(Tt,"slide-up"),(0,yt.oN)(Tt,"slide-down"),(0,Vt.Fm)(Tt,"move-up"),(0,Vt.Fm)(Tt,"move-down"),(0,Yt._y)(Tt,"zoom-big")]]};var bt=(0,Wt.Z)("Dropdown",(Tt,It)=>{let{rootPrefixCls:vt}=It;const{marginXXS:et,sizePopupArrow:tt,controlHeight:st,fontSize:rt,lineHeight:ut,paddingXXS:ct,componentCls:pt,borderRadiusLG:mt}=Tt,Ct=(st-rt*ut)/2,{dropdownArrowOffset:Dt}=(0,Nt.fS)({contentRadius:mt}),Ut=(0,xt.TS)(Tt,{menuCls:`${pt}-menu`,rootPrefixCls:vt,dropdownArrowDistance:tt/2+et,dropdownArrowOffset:Dt,dropdownPaddingVertical:Ct,dropdownEdgeChildPadding:ct});return[At(Ut),Bt(Ut)]},Tt=>({zIndexPopup:Tt.zIndexPopupBase+50}))},64165:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return ct}});var Rt=Gt(92310),yt=Gt.n(Rt),Vt=Gt(59301),Yt=Gt(36355),Nt=Gt(9763),Wt=Gt(64993),xt=Gt(88088),Bt=()=>{const[,pt]=(0,xt.Z)(),Ct=new Wt.C(pt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return Vt.createElement("svg",{style:Ct,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},Vt.createElement("g",{fill:"none",fillRule:"evenodd"},Vt.createElement("g",{transform:"translate(24 31.67)"},Vt.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),Vt.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"}),Vt.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)"}),Vt.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"}),Vt.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"})),Vt.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"}),Vt.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},Vt.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),Vt.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},bt=()=>{const[,pt]=(0,xt.Z)(),{colorFill:mt,colorFillTertiary:Ct,colorFillQuaternary:Dt,colorBgContainer:Ut}=pt,{borderColor:Ft,shadowColor:Qt,contentColor:$t}=(0,Vt.useMemo)(()=>({borderColor:new Wt.C(mt).onBackground(Ut).toHexShortString(),shadowColor:new Wt.C(Ct).onBackground(Ut).toHexShortString(),contentColor:new Wt.C(Dt).onBackground(Ut).toHexShortString()}),[mt,Ct,Dt,Ut]);return Vt.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},Vt.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},Vt.createElement("ellipse",{fill:Qt,cx:"32",cy:"33",rx:"32",ry:"7"}),Vt.createElement("g",{fillRule:"nonzero",stroke:Ft},Vt.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"}),Vt.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:$t}))))},Tt=Gt(83116),It=Gt(37613);const vt=pt=>{const{componentCls:mt,margin:Ct,marginXS:Dt,marginXL:Ut,fontSize:Ft,lineHeight:Qt}=pt;return{[mt]:{marginInline:Dt,fontSize:Ft,lineHeight:Qt,textAlign:"center",[`${mt}-image`]:{height:pt.emptyImgHeight,marginBottom:Dt,opacity:pt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${mt}-description`]:{color:pt.colorText},[`${mt}-footer`]:{marginTop:Ct},"&-normal":{marginBlock:Ut,color:pt.colorTextDisabled,[`${mt}-description`]:{color:pt.colorTextDisabled},[`${mt}-image`]:{height:pt.emptyImgHeightMD}},"&-small":{marginBlock:Dt,color:pt.colorTextDisabled,[`${mt}-image`]:{height:pt.emptyImgHeightSM}}}}};var et=(0,Tt.Z)("Empty",pt=>{const{componentCls:mt,controlHeightLG:Ct}=pt,Dt=(0,It.TS)(pt,{emptyImgCls:`${mt}-img`,emptyImgHeight:Ct*2.5,emptyImgHeightMD:Ct,emptyImgHeightSM:Ct*.875});return[vt(Dt)]}),tt=function(pt,mt){var Ct={};for(var Dt in pt)Object.prototype.hasOwnProperty.call(pt,Dt)&&mt.indexOf(Dt)<0&&(Ct[Dt]=pt[Dt]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,Dt=Object.getOwnPropertySymbols(pt);Ut<Dt.length;Ut++)mt.indexOf(Dt[Ut])<0&&Object.prototype.propertyIsEnumerable.call(pt,Dt[Ut])&&(Ct[Dt[Ut]]=pt[Dt[Ut]]);return Ct};const st=Vt.createElement(Bt,null),rt=Vt.createElement(bt,null),ut=pt=>{var{className:mt,rootClassName:Ct,prefixCls:Dt,image:Ut=st,description:Ft,children:Qt,imageStyle:$t,style:Kt}=pt,ue=tt(pt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:oe,direction:we,empty:Se}=Vt.useContext(Yt.E_),Ne=oe("empty",Dt),[pe,Ue]=et(Ne),[de]=(0,Nt.Z)("Empty"),Jt=typeof Ft!="undefined"?Ft:de==null?void 0:de.description,ee=typeof Jt=="string"?Jt:"empty";let ae=null;return typeof Ut=="string"?ae=Vt.createElement("img",{alt:ee,src:Ut}):ae=Ut,pe(Vt.createElement("div",Object.assign({className:yt()(Ue,Ne,Se==null?void 0:Se.className,{[`${Ne}-normal`]:Ut===rt,[`${Ne}-rtl`]:we==="rtl"},mt,Ct),style:Object.assign(Object.assign({},Se==null?void 0:Se.style),Kt)},ue),Vt.createElement("div",{className:`${Ne}-image`,style:$t},ae),Jt&&Vt.createElement("div",{className:`${Ne}-description`},Jt),Qt&&Vt.createElement("div",{className:`${Ne}-footer`},Qt)))};ut.PRESENTED_IMAGE_DEFAULT=st,ut.PRESENTED_IMAGE_SIMPLE=rt;var ct=ut},78241:function(Nn,An,Gt){"use strict";Gt.d(An,{default:function(){return Qe}});var Rt=Gt(26390),yt=Gt(92310),Vt=Gt.n(yt),Yt=Gt(43469),Nt=Gt(59301),Wt=Gt(62892),xt=Gt(32441);function Ot(Fe){const[vn,bn]=Nt.useState(Fe);return Nt.useEffect(()=>{const Ze=setTimeout(()=>{bn(Fe)},Fe.length?0:10);return()=>{clearTimeout(Ze)}},[Fe]),vn}var Bt=Gt(17313),At=Gt(29878),bt=Gt(8378),Tt=Gt(37613),It=Gt(83116),et=Fe=>{const{componentCls:vn}=Fe,bn=`${vn}-show-help`,Ze=`${vn}-show-help-item`;return{[bn]:{transition:`opacity ${Fe.motionDurationSlow} ${Fe.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Ze]:{overflow:"hidden",transition:`height ${Fe.motionDurationSlow} ${Fe.motionEaseInOut},
|
|
|
opacity ${Fe.motionDurationSlow} ${Fe.motionEaseInOut},
|
|
|
transform ${Fe.motionDurationSlow} ${Fe.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=Fe=>({legend:{display:"block",width:"100%",marginBottom:Fe.marginLG,padding:0,color:Fe.colorTextDescription,fontSize:Fe.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Fe.lineWidth}px ${Fe.lineType} ${Fe.colorBorder}`},label:{fontSize:Fe.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 ${Fe.controlOutlineWidth}px ${Fe.controlOutline}`},output:{display:"block",paddingTop:15,color:Fe.colorText,fontSize:Fe.fontSize,lineHeight:Fe.lineHeight}}),st=(Fe,vn)=>{const{formItemCls:bn}=Fe;return{[bn]:{[`${bn}-label > label`]:{height:vn},[`${bn}-control-input`]:{minHeight:vn}}}},rt=Fe=>{const{componentCls:vn}=Fe;return{[Fe.componentCls]:Object.assign(Object.assign(Object.assign({},(0,Bt.Wf)(Fe)),tt(Fe)),{[`${vn}-text`]:{display:"inline-block",paddingInlineEnd:Fe.paddingSM},"&-small":Object.assign({},st(Fe,Fe.controlHeightSM)),"&-large":Object.assign({},st(Fe,Fe.controlHeightLG))})}},ut=Fe=>{const{formItemCls:vn,iconCls:bn,componentCls:Ze,rootPrefixCls:Ae,labelRequiredMarkColor:gn,labelColor:Pn,labelFontSize:Un,labelHeight:mn,labelColonMarginInlineStart:Me,labelColonMarginInlineEnd:Ge,itemMarginBottom:fn}=Fe;return{[vn]:Object.assign(Object.assign({},(0,Bt.Wf)(Fe)),{marginBottom:fn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${Ae}-row`]:{display:"none"},"&-has-warning":{[`${vn}-split`]:{color:Fe.colorError}},"&-has-error":{[`${vn}-split`]:{color:Fe.colorWarning}},[`${vn}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${Fe.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:mn,color:Pn,fontSize:Un,[`> ${bn}`]:{fontSize:Fe.fontSize,verticalAlign:"top"},[`&${vn}-required:not(${vn}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:Fe.marginXXS,color:gn,fontSize:Fe.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${Ze}-hide-required-mark &`]:{display:"none"}},[`${vn}-optional`]:{display:"inline-block",marginInlineStart:Fe.marginXXS,color:Fe.colorTextDescription,[`${Ze}-hide-required-mark &`]:{display:"none"}},[`${vn}-tooltip`]:{color:Fe.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Fe.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Me,marginInlineEnd:Ge},[`&${vn}-no-colon::after`]:{content:'"\\a0"'}}},[`${vn}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Ae}-col-'"]):not([class*="' ${Ae}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Fe.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[vn]:{"&-explain, &-extra":{clear:"both",color:Fe.colorTextDescription,fontSize:Fe.fontSize,lineHeight:Fe.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Fe.controlHeightSM,transition:`color ${Fe.motionDurationMid} ${Fe.motionEaseOut}`},"&-explain":{"&-error":{color:Fe.colorError},"&-warning":{color:Fe.colorWarning}}},[`&-with-help ${vn}-explain`]:{height:"auto",opacity:1},[`${vn}-feedback-icon`]:{fontSize:Fe.fontSize,textAlign:"center",visibility:"visible",animationName:At.kr,animationDuration:Fe.motionDurationMid,animationTimingFunction:Fe.motionEaseOutBack,pointerEvents:"none","&-success":{color:Fe.colorSuccess},"&-error":{color:Fe.colorError},"&-warning":{color:Fe.colorWarning},"&-validating":{color:Fe.colorPrimary}}})}},ct=Fe=>{const{componentCls:vn,formItemCls:bn}=Fe;return{[`${vn}-horizontal`]:{[`${bn}-label`]:{flexGrow:0},[`${bn}-control`]:{flex:"1 1 0",minWidth:0},[`${bn}-label[class$='-24'], ${bn}-label[class*='-24 ']`]:{[`& + ${bn}-control`]:{minWidth:"unset"}}}}},pt=Fe=>{const{componentCls:vn,formItemCls:bn}=Fe;return{[`${vn}-inline`]:{display:"flex",flexWrap:"wrap",[bn]:{flex:"none",marginInlineEnd:Fe.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${bn}-label,
|
|
|
> ${bn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${bn}-label`]:{flex:"none"},[`${vn}-text`]:{display:"inline-block"},[`${bn}-has-feedback`]:{display:"inline-block"}}}}},mt=Fe=>({padding:Fe.verticalLabelPadding,margin:Fe.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),Ct=Fe=>{const{componentCls:vn,formItemCls:bn,rootPrefixCls:Ze}=Fe;return{[`${bn} ${bn}-label`]:mt(Fe),[vn]:{[bn]:{flexWrap:"wrap",[`${bn}-label, ${bn}-control`]:{[`&:not([class*=" ${Ze}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Dt=Fe=>{const{componentCls:vn,formItemCls:bn,rootPrefixCls:Ze}=Fe;return{[`${vn}-vertical`]:{[bn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${vn}-item-control`]:{width:"100%"}}},[`${vn}-vertical ${bn}-label,
|
|
|
.${Ze}-col-24${bn}-label,
|
|
|
.${Ze}-col-xl-24${bn}-label`]:mt(Fe),[`@media (max-width: ${Fe.screenXSMax}px)`]:[Ct(Fe),{[vn]:{[`.${Ze}-col-xs-24${bn}-label`]:mt(Fe)}}],[`@media (max-width: ${Fe.screenSMMax}px)`]:{[vn]:{[`.${Ze}-col-sm-24${bn}-label`]:mt(Fe)}},[`@media (max-width: ${Fe.screenMDMax}px)`]:{[vn]:{[`.${Ze}-col-md-24${bn}-label`]:mt(Fe)}},[`@media (max-width: ${Fe.screenLGMax}px)`]:{[vn]:{[`.${Ze}-col-lg-24${bn}-label`]:mt(Fe)}}}},Ut=(Fe,vn)=>(0,Tt.TS)(Fe,{formItemCls:`${Fe.componentCls}-item`,rootPrefixCls:vn});var Ft=(0,It.Z)("Form",(Fe,vn)=>{let{rootPrefixCls:bn}=vn;const Ze=Ut(Fe,bn);return[rt(Ze),ut(Ze),et(Ze),ct(Ze),pt(Ze),Dt(Ze),(0,bt.Z)(Ze),At.kr]},Fe=>({labelRequiredMarkColor:Fe.colorError,labelColor:Fe.colorTextHeading,labelFontSize:Fe.fontSize,labelHeight:Fe.controlHeight,labelColonMarginInlineStart:Fe.marginXXS/2,labelColonMarginInlineEnd:Fe.marginXS,itemMarginBottom:Fe.marginLG,verticalLabelPadding:`0 0 ${Fe.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Qt=[];function $t(Fe,vn,bn){let Ze=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Fe=="string"?Fe:`${vn}-${Ze}`,error:Fe,errorStatus:bn}}var ue=Fe=>{let{help:vn,helpStatus:bn,errors:Ze=Qt,warnings:Ae=Qt,className:gn,fieldId:Pn,onVisibleChanged:Un}=Fe;const{prefixCls:mn}=Nt.useContext(xt.Rk),Me=`${mn}-item-explain`,[,Ge]=Ft(mn),fn=(0,Nt.useMemo)(()=>(0,Wt.Z)(mn),[mn]),In=Ot(Ze),Ke=Ot(Ae),cn=Nt.useMemo(()=>vn!=null?[$t(vn,"help",bn)]:[].concat((0,Rt.Z)(In.map((on,dn)=>$t(on,"error","error",dn))),(0,Rt.Z)(Ke.map((on,dn)=>$t(on,"warning","warning",dn)))),[vn,bn,In,Ke]),_e={};return Pn&&(_e.id=`${Pn}_help`),Nt.createElement(Yt.default,{motionDeadline:fn.motionDeadline,motionName:`${mn}-show-help`,visible:!!cn.length,onVisibleChanged:Un},on=>{const{className:dn,style:ln}=on;return Nt.createElement("div",Object.assign({},_e,{className:Vt()(Me,dn,gn,Ge),style:ln,role:"alert"}),Nt.createElement(Yt.CSSMotionList,Object.assign({keys:cn},(0,Wt.Z)(mn),{motionName:`${mn}-show-help-item`,component:!1}),xn=>{const{key:yn,error:Mn,errorStatus:On,className:En,style:jn}=xn;return Nt.createElement("div",{key:yn,className:Vt()(En,{[`${Me}-${On}`]:On}),style:jn},Mn)}))})},oe=Gt(95013),we=Gt(36355),Se=Gt(1684),Ne=Gt(52946),pe=Gt(19716),Ue=Gt(16722);const de=["parentNode"],Jt="form_item";function ee(Fe){return Fe===void 0||Fe===!1?[]:Array.isArray(Fe)?Fe:[Fe]}function ae(Fe,vn){if(!Fe.length)return;const bn=Fe.join("_");return vn?`${vn}_${bn}`:de.includes(bn)?`${Jt}_${bn}`:bn}function fe(Fe,vn,bn,Ze,Ae,gn){let Pn=Ze;return gn!==void 0?Pn=gn:bn.validating?Pn="validating":Fe.length?Pn="error":vn.length?Pn="warning":(bn.touched||Ae&&bn.validated)&&(Pn="success"),Pn}function se(Fe){return ee(Fe).join("_")}function De(Fe){const[vn]=(0,oe.useForm)(),bn=Nt.useRef({}),Ze=Nt.useMemo(()=>Fe!=null?Fe:Object.assign(Object.assign({},vn),{__INTERNAL__:{itemRef:Ae=>gn=>{const Pn=se(Ae);gn?bn.current[Pn]=gn:delete bn.current[Pn]}},scrollToField:function(Ae){let gn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const Pn=ee(Ae),Un=ae(Pn,Ze.__INTERNAL__.name),mn=Un?document.getElementById(Un):null;mn&&(0,Ue.Z)(mn,Object.assign({scrollMode:"if-needed",block:"nearest"},gn))},getFieldInstance:Ae=>{const gn=se(Ae);return bn.current[gn]}}),[Fe,vn]);return[Ze]}var Oe=Gt(28726),en=function(Fe,vn){var bn={};for(var Ze in Fe)Object.prototype.hasOwnProperty.call(Fe,Ze)&&vn.indexOf(Ze)<0&&(bn[Ze]=Fe[Ze]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Ze=Object.getOwnPropertySymbols(Fe);Ae<Ze.length;Ae++)vn.indexOf(Ze[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Ze[Ae])&&(bn[Ze[Ae]]=Fe[Ze[Ae]]);return bn};const We=(Fe,vn)=>{const bn=Nt.useContext(Se.Z),{getPrefixCls:Ze,direction:Ae,form:gn}=Nt.useContext(we.E_),{prefixCls:Pn,className:Un,rootClassName:mn,size:Me,disabled:Ge=bn,form:fn,colon:In,labelAlign:Ke,labelWrap:cn,labelCol:_e,wrapperCol:on,hideRequiredMark:dn,layout:ln="horizontal",scrollToFirstError:xn,requiredMark:yn,onFinishFailed:Mn,name:On,style:En,feedbackIcons:jn}=Fe,ei=en(Fe,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),pi=(0,pe.Z)(Me),ii=Nt.useContext(Oe.Z),qe=(0,Nt.useMemo)(()=>yn!==void 0?yn:gn&&gn.requiredMark!==void 0?gn.requiredMark:!dn,[dn,yn,gn]),Xn=In!=null?In:gn==null?void 0:gn.colon,ti=Ze("form",Pn),[Qn,Li]=Ft(ti),fi=Vt()(ti,`${ti}-${ln}`,{[`${ti}-hide-required-mark`]:qe===!1,[`${ti}-rtl`]:Ae==="rtl",[`${ti}-${pi}`]:pi},Li,gn==null?void 0:gn.className,Un,mn),[ki]=De(fn),{__INTERNAL__:gi}=ki;gi.name=On;const oi=(0,Nt.useMemo)(()=>({name:On,labelAlign:Ke,labelCol:_e,labelWrap:cn,wrapperCol:on,vertical:ln==="vertical",colon:Xn,requiredMark:qe,itemRef:gi.itemRef,form:ki,feedbackIcons:jn}),[On,Ke,_e,on,ln,Xn,qe,ki,jn]);Nt.useImperativeHandle(vn,()=>ki);const Fi=(nr,Ln)=>{if(nr){let Bi={block:"nearest"};typeof nr=="object"&&(Bi=nr),ki.scrollToField(Ln,Bi)}},Cn=nr=>{if(Mn==null||Mn(nr),nr.errorFields.length){const Ln=nr.errorFields[0].name;if(xn!==void 0){Fi(xn,Ln);return}gn&&gn.scrollToFirstError!==void 0&&Fi(gn.scrollToFirstError,Ln)}};return Qn(Nt.createElement(Se.n,{disabled:Ge},Nt.createElement(Ne.q,{size:pi},Nt.createElement(xt.RV,Object.assign({},{validateMessages:ii}),Nt.createElement(xt.q3.Provider,{value:oi},Nt.createElement(oe.default,Object.assign({id:On},ei,{name:On,onFinishFailed:Cn,form:ki,style:Object.assign(Object.assign({},gn==null?void 0:gn.style),En),className:fi})))))))};var ke=Nt.forwardRef(We),Ie=Gt(12383),je=Gt(20475),$e=Gt(92343),me=Gt(38298);function le(Fe){if(typeof Fe=="function")return Fe;const vn=(0,me.Z)(Fe);return vn.length<=1?vn[0]:vn}const Ee=()=>{const{status:Fe,errors:vn=[],warnings:bn=[]}=(0,Nt.useContext)(xt.aM);return{status:Fe,errors:vn,warnings:bn}};Ee.Context=xt.aM;var ce=Ee,he=Gt(23073);function _t(Fe){const[vn,bn]=Nt.useState(Fe),Ze=(0,Nt.useRef)(null),Ae=(0,Nt.useRef)([]),gn=(0,Nt.useRef)(!1);Nt.useEffect(()=>(gn.current=!1,()=>{gn.current=!0,he.Z.cancel(Ze.current),Ze.current=null}),[]);function Pn(Un){gn.current||(Ze.current===null&&(Ae.current=[],Ze.current=(0,he.Z)(()=>{Ze.current=null,bn(mn=>{let Me=mn;return Ae.current.forEach(Ge=>{Me=Ge(Me)}),Me})})),Ae.current.push(Un))}return[vn,Pn]}function Mt(){const{itemRef:Fe}=Nt.useContext(xt.q3),vn=Nt.useRef({});function bn(Ze,Ae){const gn=Ae&&typeof Ae=="object"&&Ae.ref,Pn=Ze.join("_");return(vn.current.name!==Pn||vn.current.originRef!==gn)&&(vn.current.name=Pn,vn.current.originRef=gn,vn.current.ref=(0,je.sQ)(Fe(Ze),gn)),vn.current.ref}return bn}var Et=Gt(48886),Ht=Gt(28800),Pt=Gt(64002),dt=Gt(27382),gt=Gt(37028);const zt=Fe=>{const{formItemCls:vn}=Fe;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${vn}-control`]:{display:"flex"}}}};var re=(0,It.b)(["Form","item-item"],(Fe,vn)=>{let{rootPrefixCls:bn}=vn;const Ze=Ut(Fe,bn);return[zt(Ze)]}),ye=Fe=>{const{prefixCls:vn,status:bn,wrapperCol:Ze,children:Ae,errors:gn,warnings:Pn,_internalItemRender:Un,extra:mn,help:Me,fieldId:Ge,marginBottom:fn,onErrorVisibleChanged:In}=Fe,Ke=`${vn}-item`,cn=Nt.useContext(xt.q3),_e=Ze||cn.wrapperCol||{},on=Vt()(`${Ke}-control`,_e.className),dn=Nt.useMemo(()=>Object.assign({},cn),[cn]);delete dn.labelCol,delete dn.wrapperCol;const ln=Nt.createElement("div",{className:`${Ke}-control-input`},Nt.createElement("div",{className:`${Ke}-control-input-content`},Ae)),xn=Nt.useMemo(()=>({prefixCls:vn,status:bn}),[vn,bn]),yn=fn!==null||gn.length||Pn.length?Nt.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},Nt.createElement(xt.Rk.Provider,{value:xn},Nt.createElement(ue,{fieldId:Ge,errors:gn,warnings:Pn,help:Me,helpStatus:bn,className:`${Ke}-explain-connected`,onVisibleChanged:In})),!!fn&&Nt.createElement("div",{style:{width:0,height:fn}})):null,Mn={};Ge&&(Mn.id=`${Ge}_extra`);const On=mn?Nt.createElement("div",Object.assign({},Mn,{className:`${Ke}-extra`}),mn):null,En=Un&&Un.mark==="pro_table_render"&&Un.render?Un.render(Fe,{input:ln,errorList:yn,extra:On}):Nt.createElement(Nt.Fragment,null,ln,yn,On);return Nt.createElement(xt.q3.Provider,{value:dn},Nt.createElement(gt.Z,Object.assign({},_e,{className:on}),En),Nt.createElement(re,{prefixCls:vn}))},Ye=Gt(86902),sn=Gt(31724),Le=Gt(9763),Re=Gt(6848),hn=function(Fe,vn){var bn={};for(var Ze in Fe)Object.prototype.hasOwnProperty.call(Fe,Ze)&&vn.indexOf(Ze)<0&&(bn[Ze]=Fe[Ze]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Ze=Object.getOwnPropertySymbols(Fe);Ae<Ze.length;Ae++)vn.indexOf(Ze[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Ze[Ae])&&(bn[Ze[Ae]]=Fe[Ze[Ae]]);return bn};function wn(Fe){return Fe?typeof Fe=="object"&&!Nt.isValidElement(Fe)?Fe:{title:Fe}:null}var Rn=Fe=>{let{prefixCls:vn,label:bn,htmlFor:Ze,labelCol:Ae,labelAlign:gn,colon:Pn,required:Un,requiredMark:mn,tooltip:Me}=Fe;var Ge;const[fn]=(0,Le.Z)("Form"),{vertical:In,labelAlign:Ke,labelCol:cn,labelWrap:_e,colon:on}=Nt.useContext(xt.q3);if(!bn)return null;const dn=Ae||cn||{},ln=gn||Ke,xn=`${vn}-item-label`,yn=Vt()(xn,ln==="left"&&`${xn}-left`,dn.className,{[`${xn}-wrap`]:!!_e});let Mn=bn;const On=Pn===!0||on!==!1&&Pn!==!1;On&&!In&&typeof bn=="string"&&bn.trim()!==""&&(Mn=bn.replace(/[:|:]\s*$/,""));const jn=wn(Me);if(jn){const{icon:qe=Nt.createElement(Ye.Z,null)}=jn,Xn=hn(jn,["icon"]),ti=Nt.createElement(Re.Z,Object.assign({},Xn),Nt.cloneElement(qe,{className:`${vn}-item-tooltip`,title:""}));Mn=Nt.createElement(Nt.Fragment,null,Mn,ti)}const ei=mn==="optional",pi=typeof mn=="function";pi?Mn=mn(Mn,{required:!!Un}):ei&&!Un&&(Mn=Nt.createElement(Nt.Fragment,null,Mn,Nt.createElement("span",{className:`${vn}-item-optional`,title:""},(fn==null?void 0:fn.optional)||((Ge=sn.Z.Form)===null||Ge===void 0?void 0:Ge.optional))));const ii=Vt()({[`${vn}-item-required`]:Un,[`${vn}-item-required-mark-optional`]:ei||pi,[`${vn}-item-no-colon`]:!On});return Nt.createElement(gt.Z,Object.assign({},dn,{className:yn}),Nt.createElement("label",{htmlFor:Ze,className:ii,title:typeof bn=="string"?bn:""},Mn))},Yn=Gt(79999),Kn=Gt(33130),li=Gt(85404),mi=Gt(50023);const yi={success:Yn.Z,warning:li.Z,error:Kn.Z,validating:mi.Z};function Pi(Fe){let{children:vn,errors:bn,warnings:Ze,hasFeedback:Ae,validateStatus:gn,prefixCls:Pn,meta:Un,noStyle:mn}=Fe;const Me=`${Pn}-item`,{feedbackIcons:Ge}=Nt.useContext(xt.q3),fn=fe(bn,Ze,Un,null,!!Ae,gn),{isFormItemInput:In,status:Ke}=Nt.useContext(xt.aM),cn=Nt.useMemo(()=>{var _e;let on;if(Ae){const xn=Ae!==!0&&Ae.icons||Ge,yn=fn&&((_e=xn==null?void 0:xn({status:fn,errors:bn,warnings:Ze}))===null||_e===void 0?void 0:_e[fn]),Mn=fn&&yi[fn];on=yn!==!1&&Mn?Nt.createElement("span",{className:Vt()(`${Me}-feedback-icon`,`${Me}-feedback-icon-${fn}`)},yn||Nt.createElement(Mn,null)):null}let dn=!0,ln=fn||"";return mn&&(dn=In,ln=(fn!=null?fn:Ke)||""),{status:ln,errors:bn,warnings:Ze,hasFeedback:!!Ae,feedbackIcon:on,isFormItemInput:dn}},[fn,Ae,mn,In,Ke]);return Nt.createElement(xt.aM.Provider,{value:cn},vn)}var Mi=function(Fe,vn){var bn={};for(var Ze in Fe)Object.prototype.hasOwnProperty.call(Fe,Ze)&&vn.indexOf(Ze)<0&&(bn[Ze]=Fe[Ze]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Ze=Object.getOwnPropertySymbols(Fe);Ae<Ze.length;Ae++)vn.indexOf(Ze[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Ze[Ae])&&(bn[Ze[Ae]]=Fe[Ze[Ae]]);return bn};function Gi(Fe){const{prefixCls:vn,className:bn,rootClassName:Ze,style:Ae,help:gn,errors:Pn,warnings:Un,validateStatus:mn,meta:Me,hasFeedback:Ge,hidden:fn,children:In,fieldId:Ke,required:cn,isRequired:_e,onSubItemMetaChange:on}=Fe,dn=Mi(Fe,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),ln=`${vn}-item`,{requiredMark:xn}=Nt.useContext(xt.q3),yn=Nt.useRef(null),Mn=Ot(Pn),On=Ot(Un),En=gn!=null,jn=!!(En||Pn.length||Un.length),ei=!!yn.current&&(0,Et.Z)(yn.current),[pi,ii]=Nt.useState(null);(0,Ht.Z)(()=>{if(jn&&yn.current){const Li=getComputedStyle(yn.current);ii(parseInt(Li.marginBottom,10))}},[jn,ei]);const qe=Li=>{Li||ii(null)},ti=function(){let Li=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const fi=Li?Mn:Me.errors,ki=Li?On:Me.warnings;return fe(fi,ki,Me,"",!!Ge,mn)}(),Qn=Vt()(ln,bn,Ze,{[`${ln}-with-help`]:En||Mn.length||On.length,[`${ln}-has-feedback`]:ti&&Ge,[`${ln}-has-success`]:ti==="success",[`${ln}-has-warning`]:ti==="warning",[`${ln}-has-error`]:ti==="error",[`${ln}-is-validating`]:ti==="validating",[`${ln}-hidden`]:fn});return Nt.createElement("div",{className:Qn,style:Ae,ref:yn},Nt.createElement(dt.Z,Object.assign({className:`${ln}-row`},(0,Pt.Z)(dn,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),Nt.createElement(Rn,Object.assign({htmlFor:Ke},Fe,{requiredMark:xn,required:cn!=null?cn:_e,prefixCls:vn})),Nt.createElement(ye,Object.assign({},Fe,Me,{errors:Mn,warnings:On,prefixCls:vn,status:ti,help:gn,marginBottom:pi,onErrorVisibleChanged:qe}),Nt.createElement(xt.qI.Provider,{value:on},Nt.createElement(Pi,{prefixCls:vn,meta:Me,errors:Me.errors,warnings:Me.warnings,hasFeedback:Ge,validateStatus:ti},In)))),!!pi&&Nt.createElement("div",{className:`${ln}-margin-offset`,style:{marginBottom:-pi}}))}const bi="__SPLIT__",Ki=null,ui=Nt.memo(Fe=>{let{children:vn}=Fe;return vn},(Fe,vn)=>Fe.value===vn.value&&Fe.update===vn.update&&Fe.childProps.length===vn.childProps.length&&Fe.childProps.every((bn,Ze)=>bn===vn.childProps[Ze]));function te(Fe){return Fe!=null}function Yi(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Ti(Fe){const{name:vn,noStyle:bn,className:Ze,dependencies:Ae,prefixCls:gn,shouldUpdate:Pn,rules:Un,children:mn,required:Me,label:Ge,messageVariables:fn,trigger:In="onChange",validateTrigger:Ke,hidden:cn,help:_e}=Fe,{getPrefixCls:on}=Nt.useContext(we.E_),{name:dn}=Nt.useContext(xt.q3),ln=le(mn),xn=typeof ln=="function",yn=Nt.useContext(xt.qI),{validateTrigger:Mn}=Nt.useContext(oe.FieldContext),On=Ke!==void 0?Ke:Mn,En=te(vn),jn=on("form",gn),[ei,pi]=Ft(jn),ii=Nt.useContext(oe.ListContext),qe=Nt.useRef(),[Xn,ti]=_t({}),[Qn,Li]=(0,Ie.Z)(()=>Yi()),fi=Ln=>{const Bi=ii==null?void 0:ii.getKey(Ln.name);if(Li(Ln.destroy?Yi():Ln,!0),bn&&_e!==!1&&yn){let wr=Ln.name;if(Ln.destroy)wr=qe.current||wr;else if(Bi!==void 0){const[Hi,Or]=Bi;wr=[Hi].concat((0,Rt.Z)(Or)),qe.current=wr}yn(Ln,wr)}},ki=(Ln,Bi)=>{ti(wr=>{const Hi=Object.assign({},wr),pr=[].concat((0,Rt.Z)(Ln.name.slice(0,-1)),(0,Rt.Z)(Bi)).join(bi);return Ln.destroy?delete Hi[pr]:Hi[pr]=Ln,Hi})},[gi,oi]=Nt.useMemo(()=>{const Ln=(0,Rt.Z)(Qn.errors),Bi=(0,Rt.Z)(Qn.warnings);return Object.values(Xn).forEach(wr=>{Ln.push.apply(Ln,(0,Rt.Z)(wr.errors||[])),Bi.push.apply(Bi,(0,Rt.Z)(wr.warnings||[]))}),[Ln,Bi]},[Xn,Qn.errors,Qn.warnings]),Fi=Mt();function Cn(Ln,Bi,wr){return bn&&!cn?Nt.createElement(Pi,{prefixCls:jn,hasFeedback:Fe.hasFeedback,validateStatus:Fe.validateStatus,meta:Qn,errors:gi,warnings:oi,noStyle:!0},Ln):Nt.createElement(Gi,Object.assign({key:"row"},Fe,{className:Vt()(Ze,pi),prefixCls:jn,fieldId:Bi,isRequired:wr,errors:gi,warnings:oi,meta:Qn,onSubItemMetaChange:ki}),Ln)}if(!En&&!xn&&!Ae)return ei(Cn(ln));let nr={};return typeof Ge=="string"?nr.label=Ge:vn&&(nr.label=String(vn)),fn&&(nr=Object.assign(Object.assign({},nr),fn)),ei(Nt.createElement(oe.Field,Object.assign({},Fe,{messageVariables:nr,trigger:In,validateTrigger:On,onMetaChange:fi}),(Ln,Bi,wr)=>{const Hi=ee(vn).length&&Bi?Bi.name:[],Or=ae(Hi,dn),pr=Me!==void 0?Me:!!(Un&&Un.some(Xi=>{if(Xi&&typeof Xi=="object"&&Xi.required&&!Xi.warningOnly)return!0;if(typeof Xi=="function"){const Zi=Xi(wr);return Zi&&Zi.required&&!Zi.warningOnly}return!1})),Si=Object.assign({},Ln);let vi=null;if(Array.isArray(ln)&&En)vi=ln;else if(!(xn&&(!(Pn||Ae)||En))){if(!(Ae&&!xn&&!En))if((0,$e.l$)(ln)){const Xi=Object.assign(Object.assign({},ln.props),Si);if(Xi.id||(Xi.id=Or),_e||gi.length>0||oi.length>0||Fe.extra){const xe=[];(_e||gi.length>0)&&xe.push(`${Or}_help`),Fe.extra&&xe.push(`${Or}_extra`),Xi["aria-describedby"]=xe.join(" ")}gi.length>0&&(Xi["aria-invalid"]="true"),pr&&(Xi["aria-required"]="true"),(0,je.Yr)(ln)&&(Xi.ref=Fi(Hi,ln)),new Set([].concat((0,Rt.Z)(ee(In)),(0,Rt.Z)(ee(On)))).forEach(xe=>{Xi[xe]=function(){for(var Ri,Ar,zi,ir,Oi,Ci=arguments.length,tr=new Array(Ci),yr=0;yr<Ci;yr++)tr[yr]=arguments[yr];(zi=Si[xe])===null||zi===void 0||(Ri=zi).call.apply(Ri,[Si].concat(tr)),(Oi=(ir=ln.props)[xe])===null||Oi===void 0||(Ar=Oi).call.apply(Ar,[ir].concat(tr))}});const Jn=[Xi["aria-required"],Xi["aria-invalid"],Xi["aria-describedby"]];vi=Nt.createElement(ui,{value:Si[Fe.valuePropName||"value"],update:ln,childProps:Jn},(0,$e.Tm)(ln,Xi))}else xn&&(Pn||Ae)&&!En?vi=ln(wr):vi=ln}return Cn(vi,Or,pr)}))}const or=Ti;or.useStatus=ce;var Sr=or,Er=function(Fe,vn){var bn={};for(var Ze in Fe)Object.prototype.hasOwnProperty.call(Fe,Ze)&&vn.indexOf(Ze)<0&&(bn[Ze]=Fe[Ze]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Ze=Object.getOwnPropertySymbols(Fe);Ae<Ze.length;Ae++)vn.indexOf(Ze[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Fe,Ze[Ae])&&(bn[Ze[Ae]]=Fe[Ze[Ae]]);return bn},qn=Fe=>{var{prefixCls:vn,children:bn}=Fe,Ze=Er(Fe,["prefixCls","children"]);const{getPrefixCls:Ae}=Nt.useContext(we.E_),gn=Ae("form",vn),Pn=Nt.useMemo(()=>({prefixCls:gn,status:"error"}),[gn]);return Nt.createElement(oe.List,Object.assign({},Ze),(Un,mn,Me)=>Nt.createElement(xt.Rk.Provider,{value:Pn},bn(Un.map(Ge=>Object.assign(Object.assign({},Ge),{fieldKey:Ge.key})),mn,{errors:Me.errors,warnings:Me.warnings})))};function tn(){const{form:Fe}=(0,Nt.useContext)(xt.q3);return Fe}const nn=ke;nn.Item=Sr,nn.List=qn,nn.ErrorList=ue,nn.useForm=De,nn.useFormInstance=tn,nn.useWatch=oe.useWatch,nn.Provider=xt.RV,nn.create=()=>{};var Qe=nn},8628:function(Nn,An,Gt){"use strict";var Rt=Gt(59301),yt=Gt(28800),Vt=Gt(56762),Yt=Gt(69507);function Nt(){let Wt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const xt=(0,Rt.useRef)({}),Ot=(0,Vt.Z)(),Bt=(0,Yt.ZP)();return(0,yt.Z)(()=>{const At=Bt.subscribe(bt=>{xt.current=bt,Wt&&Ot()});return()=>Bt.unsubscribe(At)},[]),xt.current}An.Z=Nt},9432:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return ut},n:function(){return st}});var Rt=Gt(33130),yt=Gt(92310),Vt=Gt.n(yt),Yt=Gt(93681),Nt=Gt(20475),Wt=Gt(59301),xt=Gt(19080),Ot=Gt(36355),Bt=Gt(1684),At=Gt(19716),bt=Gt(32441),Tt=Gt(33234),It=Gt(59412),vt=Gt(9937);function et(ct){return!!(ct.prefix||ct.suffix||ct.allowClear)}var tt=function(ct,pt){var mt={};for(var Ct in ct)Object.prototype.hasOwnProperty.call(ct,Ct)&&pt.indexOf(Ct)<0&&(mt[Ct]=ct[Ct]);if(ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,Ct=Object.getOwnPropertySymbols(ct);Dt<Ct.length;Dt++)pt.indexOf(Ct[Dt])<0&&Object.prototype.propertyIsEnumerable.call(ct,Ct[Dt])&&(mt[Ct[Dt]]=ct[Ct[Dt]]);return mt};function st(ct,pt){if(!ct)return;ct.focus(pt);const{cursor:mt}=pt||{};if(mt){const Ct=ct.value.length;switch(mt){case"start":ct.setSelectionRange(0,0);break;case"end":ct.setSelectionRange(Ct,Ct);break;default:ct.setSelectionRange(0,Ct);break}}}var ut=(0,Wt.forwardRef)((ct,pt)=>{var mt;const{prefixCls:Ct,bordered:Dt=!0,status:Ut,size:Ft,disabled:Qt,onBlur:$t,onFocus:Kt,suffix:ue,allowClear:oe,addonAfter:we,addonBefore:Se,className:Ne,style:pe,styles:Ue,rootClassName:de,onChange:Jt,classNames:ee}=ct,ae=tt(ct,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:fe,direction:se,input:De}=Wt.useContext(Ot.E_),Oe=fe("input",Ct),en=(0,Wt.useRef)(null),[We,rn]=(0,vt.ZP)(Oe),{compactSize:ke,compactItemClassnames:Ie}=(0,Tt.ri)(Oe,se),je=(0,At.Z)(re=>{var Zt;return(Zt=Ft!=null?Ft:ke)!==null&&Zt!==void 0?Zt:re}),$e=Wt.useContext(Bt.Z),me=Qt!=null?Qt:$e,{status:le,hasFeedback:Ee,feedbackIcon:ce}=(0,Wt.useContext)(bt.aM),he=(0,xt.F)(le,Ut),_t=et(ct)||!!Ee,Mt=(0,Wt.useRef)(_t);(0,Wt.useEffect)(()=>{var re;_t&&Mt.current,Mt.current=_t},[_t]);const Et=(0,It.Z)(en,!0),Ht=re=>{Et(),$t==null||$t(re)},Pt=re=>{Et(),Kt==null||Kt(re)},dt=re=>{Et(),Jt==null||Jt(re)},gt=(Ee||ue)&&Wt.createElement(Wt.Fragment,null,ue,Ee&&ce);let zt;return typeof oe=="object"&&(oe!=null&&oe.clearIcon)?zt=oe:oe&&(zt={clearIcon:Wt.createElement(Rt.Z,null)}),We(Wt.createElement(Yt.default,Object.assign({ref:(0,Nt.sQ)(pt,en),prefixCls:Oe,autoComplete:De==null?void 0:De.autoComplete},ae,{disabled:me,onBlur:Ht,onFocus:Pt,style:Object.assign(Object.assign({},De==null?void 0:De.style),pe),styles:Object.assign(Object.assign({},De==null?void 0:De.styles),Ue),suffix:gt,allowClear:zt,className:Vt()(Ne,de,Ie,De==null?void 0:De.className),onChange:dt,addonAfter:we&&Wt.createElement(Tt.BR,null,Wt.createElement(bt.Ux,{override:!0,status:!0},we)),addonBefore:Se&&Wt.createElement(Tt.BR,null,Wt.createElement(bt.Ux,{override:!0,status:!0},Se)),classNames:Object.assign(Object.assign(Object.assign({},ee),De==null?void 0:De.classNames),{input:Vt()({[`${Oe}-sm`]:je==="small",[`${Oe}-lg`]:je==="large",[`${Oe}-rtl`]:se==="rtl",[`${Oe}-borderless`]:!Dt},!_t&&(0,xt.Z)(Oe,he),ee==null?void 0:ee.input,(mt=De==null?void 0:De.classNames)===null||mt===void 0?void 0:mt.input,rn)}),classes:{affixWrapper:Vt()({[`${Oe}-affix-wrapper-sm`]:je==="small",[`${Oe}-affix-wrapper-lg`]:je==="large",[`${Oe}-affix-wrapper-rtl`]:se==="rtl",[`${Oe}-affix-wrapper-borderless`]:!Dt},(0,xt.Z)(`${Oe}-affix-wrapper`,he,Ee),rn),wrapper:Vt()({[`${Oe}-group-rtl`]:se==="rtl"},rn),group:Vt()({[`${Oe}-group-wrapper-sm`]:je==="small",[`${Oe}-group-wrapper-lg`]:je==="large",[`${Oe}-group-wrapper-rtl`]:se==="rtl",[`${Oe}-group-wrapper-disabled`]:me},(0,xt.Z)(`${Oe}-group-wrapper`,he,Ee),rn)}})))})},1643:function(Nn,An,Gt){"use strict";var Rt=Gt(33130),yt=Gt(92310),Vt=Gt.n(yt),Yt=Gt(9296),Nt=Gt(59301),Wt=Gt(19080),xt=Gt(36355),Ot=Gt(1684),Bt=Gt(19716),At=Gt(32441),bt=Gt(9432),Tt=Gt(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 vt=(0,Nt.forwardRef)((et,tt)=>{const{prefixCls:st,bordered:rt=!0,size:ut,disabled:ct,status:pt,allowClear:mt,showCount:Ct,classNames:Dt,rootClassName:Ut,className:Ft}=et,Qt=It(et,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:$t,direction:Kt}=Nt.useContext(xt.E_),ue=(0,Bt.Z)(ut),oe=Nt.useContext(Ot.Z),we=ct!=null?ct:oe,{status:Se,hasFeedback:Ne,feedbackIcon:pe}=Nt.useContext(At.aM),Ue=(0,Wt.F)(Se,pt),de=Nt.useRef(null);Nt.useImperativeHandle(tt,()=>{var se;return{resizableTextArea:(se=de.current)===null||se===void 0?void 0:se.resizableTextArea,focus:De=>{var Oe,en;(0,bt.n)((en=(Oe=de.current)===null||Oe===void 0?void 0:Oe.resizableTextArea)===null||en===void 0?void 0:en.textArea,De)},blur:()=>{var De;return(De=de.current)===null||De===void 0?void 0:De.blur()}}});const Jt=$t("input",st);let ee;typeof mt=="object"&&(mt!=null&&mt.clearIcon)?ee=mt:mt&&(ee={clearIcon:Nt.createElement(Rt.Z,null)});const[ae,fe]=(0,Tt.ZP)(Jt);return ae(Nt.createElement(Yt.default,Object.assign({},Qt,{disabled:we,allowClear:ee,className:Vt()(Ft,Ut),classes:{affixWrapper:Vt()(`${Jt}-textarea-affix-wrapper`,{[`${Jt}-affix-wrapper-rtl`]:Kt==="rtl",[`${Jt}-affix-wrapper-borderless`]:!rt,[`${Jt}-affix-wrapper-sm`]:ue==="small",[`${Jt}-affix-wrapper-lg`]:ue==="large",[`${Jt}-textarea-show-count`]:Ct},(0,Wt.Z)(`${Jt}-affix-wrapper`,Ue),fe)},classNames:Object.assign(Object.assign({},Dt),{textarea:Vt()({[`${Jt}-borderless`]:!rt,[`${Jt}-sm`]:ue==="small",[`${Jt}-lg`]:ue==="large"},(0,Wt.Z)(Jt,Ue),fe,Dt==null?void 0:Dt.textarea)}),prefixCls:Jt,suffix:Ne&&Nt.createElement("span",{className:`${Jt}-textarea-suffix`},pe),showCount:Ct,ref:de})))});An.Z=vt},59412:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return yt}});var Rt=Gt(59301);function yt(Vt,Yt){const Nt=(0,Rt.useRef)([]),Wt=()=>{Nt.current.push(setTimeout(()=>{var xt,Ot,Bt,At;!((xt=Vt.current)===null||xt===void 0)&&xt.input&&((Ot=Vt.current)===null||Ot===void 0?void 0:Ot.input.getAttribute("type"))==="password"&&(!((Bt=Vt.current)===null||Bt===void 0)&&Bt.input.hasAttribute("value"))&&((At=Vt.current)===null||At===void 0||At.input.removeAttribute("value"))}))};return(0,Rt.useEffect)(()=>(Yt&&Wt(),()=>Nt.current.forEach(xt=>{xt&&clearTimeout(xt)})),[]),Wt}},92832:function(Nn,An,Gt){"use strict";Gt.d(An,{default:function(){return ue}});var Rt=Gt(92310),yt=Gt.n(Rt),Vt=Gt(59301),Yt=Gt(36355),Nt=Gt(32441),Wt=Gt(9937),Ot=oe=>{const{getPrefixCls:we,direction:Se}=(0,Vt.useContext)(Yt.E_),{prefixCls:Ne,className:pe}=oe,Ue=we("input-group",Ne),de=we("input"),[Jt,ee]=(0,Wt.ZP)(de),ae=yt()(Ue,{[`${Ue}-lg`]:oe.size==="large",[`${Ue}-sm`]:oe.size==="small",[`${Ue}-compact`]:oe.compact,[`${Ue}-rtl`]:Se==="rtl"},ee,pe),fe=(0,Vt.useContext)(Nt.aM),se=(0,Vt.useMemo)(()=>Object.assign(Object.assign({},fe),{isFormItemInput:!1}),[fe]);return Jt(Vt.createElement("span",{className:ae,style:oe.style,onMouseEnter:oe.onMouseEnter,onMouseLeave:oe.onMouseLeave,onFocus:oe.onFocus,onBlur:oe.onBlur},Vt.createElement(Nt.aM.Provider,{value:se},oe.children)))},Bt=Gt(9432),At=Gt(61441),bt=Gt(30631),Tt=Gt(64002),It=Gt(20475),vt=Gt(59412),et=function(oe,we){var Se={};for(var Ne in oe)Object.prototype.hasOwnProperty.call(oe,Ne)&&we.indexOf(Ne)<0&&(Se[Ne]=oe[Ne]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,Ne=Object.getOwnPropertySymbols(oe);pe<Ne.length;pe++)we.indexOf(Ne[pe])<0&&Object.prototype.propertyIsEnumerable.call(oe,Ne[pe])&&(Se[Ne[pe]]=oe[Ne[pe]]);return Se};const tt=oe=>oe?Vt.createElement(bt.Z,null):Vt.createElement(At.Z,null),st={click:"onClick",hover:"onMouseOver"};var ut=Vt.forwardRef((oe,we)=>{const{visibilityToggle:Se=!0}=oe,Ne=typeof Se=="object"&&Se.visible!==void 0,[pe,Ue]=(0,Vt.useState)(()=>Ne?Se.visible:!1),de=(0,Vt.useRef)(null);Vt.useEffect(()=>{Ne&&Ue(Se.visible)},[Ne,Se]);const Jt=(0,vt.Z)(de),ee=()=>{const{disabled:me}=oe;me||(pe&&Jt(),Ue(le=>{var Ee;const ce=!le;return typeof Se=="object"&&((Ee=Se.onVisibleChange)===null||Ee===void 0||Ee.call(Se,ce)),ce}))},ae=me=>{const{action:le="click",iconRender:Ee=tt}=oe,ce=st[le]||"",he=Ee(pe),_t={[ce]:ee,className:`${me}-icon`,key:"passwordIcon",onMouseDown:Mt=>{Mt.preventDefault()},onMouseUp:Mt=>{Mt.preventDefault()}};return Vt.cloneElement(Vt.isValidElement(he)?he:Vt.createElement("span",null,he),_t)},{className:fe,prefixCls:se,inputPrefixCls:De,size:Oe}=oe,en=et(oe,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:We}=Vt.useContext(Yt.E_),rn=We("input",De),ke=We("input-password",se),Ie=Se&&ae(ke),je=yt()(ke,fe,{[`${ke}-${Oe}`]:!!Oe}),$e=Object.assign(Object.assign({},(0,Tt.Z)(en,["suffix","iconRender","visibilityToggle"])),{type:pe?"text":"password",className:je,prefixCls:rn,suffix:Ie});return Oe&&($e.size=Oe),Vt.createElement(Bt.Z,Object.assign({ref:(0,It.sQ)(we,de)},$e))}),ct=Gt(21970),pt=Gt(92343),mt=Gt(3113),Ct=Gt(19716),Dt=Gt(33234),Ut=function(oe,we){var Se={};for(var Ne in oe)Object.prototype.hasOwnProperty.call(oe,Ne)&&we.indexOf(Ne)<0&&(Se[Ne]=oe[Ne]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,Ne=Object.getOwnPropertySymbols(oe);pe<Ne.length;pe++)we.indexOf(Ne[pe])<0&&Object.prototype.propertyIsEnumerable.call(oe,Ne[pe])&&(Se[Ne[pe]]=oe[Ne[pe]]);return Se},Qt=Vt.forwardRef((oe,we)=>{const{prefixCls:Se,inputPrefixCls:Ne,className:pe,size:Ue,suffix:de,enterButton:Jt=!1,addonAfter:ee,loading:ae,disabled:fe,onSearch:se,onChange:De,onCompositionStart:Oe,onCompositionEnd:en}=oe,We=Ut(oe,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:rn,direction:ke}=Vt.useContext(Yt.E_),Ie=Vt.useRef(!1),je=rn("input-search",Se),$e=rn("input",Ne),{compactSize:me}=(0,Dt.ri)(je,ke),le=(0,Ct.Z)(ye=>{var Ye;return(Ye=Ue!=null?Ue:me)!==null&&Ye!==void 0?Ye:ye}),Ee=Vt.useRef(null),ce=ye=>{ye&&ye.target&&ye.type==="click"&&se&&se(ye.target.value,ye,{source:"clear"}),De&&De(ye)},he=ye=>{var Ye;document.activeElement===((Ye=Ee.current)===null||Ye===void 0?void 0:Ye.input)&&ye.preventDefault()},_t=ye=>{var Ye,sn;se&&se((sn=(Ye=Ee.current)===null||Ye===void 0?void 0:Ye.input)===null||sn===void 0?void 0:sn.value,ye,{source:"input"})},Mt=ye=>{Ie.current||ae||_t(ye)},Et=typeof Jt=="boolean"?Vt.createElement(ct.Z,null):null,Ht=`${je}-button`;let Pt;const dt=Jt||{},gt=dt.type&&dt.type.__ANT_BUTTON===!0;gt||dt.type==="button"?Pt=(0,pt.Tm)(dt,Object.assign({onMouseDown:he,onClick:ye=>{var Ye,sn;(sn=(Ye=dt==null?void 0:dt.props)===null||Ye===void 0?void 0:Ye.onClick)===null||sn===void 0||sn.call(Ye,ye),_t(ye)},key:"enterButton"},gt?{className:Ht,size:le}:{})):Pt=Vt.createElement(mt.ZP,{className:Ht,type:Jt?"primary":void 0,size:le,disabled:fe,key:"enterButton",onMouseDown:he,onClick:_t,loading:ae,icon:Et},Jt),ee&&(Pt=[Pt,(0,pt.Tm)(ee,{key:"addonAfter"})]);const zt=yt()(je,{[`${je}-rtl`]:ke==="rtl",[`${je}-${le}`]:!!le,[`${je}-with-button`]:!!Jt},pe),re=ye=>{Ie.current=!0,Oe==null||Oe(ye)},Zt=ye=>{Ie.current=!1,en==null||en(ye)};return Vt.createElement(Bt.Z,Object.assign({ref:(0,It.sQ)(Ee,we),onPressEnter:Mt},We,{size:le,onCompositionStart:re,onCompositionEnd:Zt,prefixCls:$e,addonAfter:Pt,suffix:de,onChange:ce,className:zt,disabled:fe}))}),$t=Gt(1643);const Kt=Bt.Z;Kt.Group=Ot,Kt.Search=Qt,Kt.TextArea=$t.Z,Kt.Password=ut;var ue=Kt},99580:function(Nn,An,Gt){"use strict";Gt.d(An,{D:function(){return ct},Z:function(){return Ct}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(Ut,Ft){return yt.createElement(Nt.Z,(0,Rt.Z)({},Ut,{ref:Ft,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt,Bt=Gt(16537),At=Gt(53878),bt=Gt(92310),Tt=Gt.n(bt),It=Gt(64002),et=Dt=>!isNaN(parseFloat(Dt))&&isFinite(Dt),tt=Gt(36355),st=Gt(84966),rt=function(Dt,Ut){var Ft={};for(var Qt in Dt)Object.prototype.hasOwnProperty.call(Dt,Qt)&&Ut.indexOf(Qt)<0&&(Ft[Qt]=Dt[Qt]);if(Dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Qt=Object.getOwnPropertySymbols(Dt);$t<Qt.length;$t++)Ut.indexOf(Qt[$t])<0&&Object.prototype.propertyIsEnumerable.call(Dt,Qt[$t])&&(Ft[Qt[$t]]=Dt[Qt[$t]]);return Ft};const ut={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ct=yt.createContext({}),pt=(()=>{let Dt=0;return function(){let Ut=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Dt+=1,`${Ut}${Dt}`}})();var Ct=yt.forwardRef((Dt,Ut)=>{const{prefixCls:Ft,className:Qt,trigger:$t,children:Kt,defaultCollapsed:ue=!1,theme:oe="dark",style:we={},collapsible:Se=!1,reverseArrow:Ne=!1,width:pe=200,collapsedWidth:Ue=80,zeroWidthTriggerStyle:de,breakpoint:Jt,onCollapse:ee,onBreakpoint:ae}=Dt,fe=rt(Dt,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:se}=(0,yt.useContext)(st.Gs),[De,Oe]=(0,yt.useState)("collapsed"in Dt?Dt.collapsed:ue),[en,We]=(0,yt.useState)(!1);(0,yt.useEffect)(()=>{"collapsed"in Dt&&Oe(Dt.collapsed)},[Dt.collapsed]);const rn=(le,Ee)=>{"collapsed"in Dt||Oe(le),ee==null||ee(le,Ee)},ke=(0,yt.useRef)();ke.current=le=>{We(le.matches),ae==null||ae(le.matches),De!==le.matches&&rn(le.matches,"responsive")},(0,yt.useEffect)(()=>{function le(ce){return ke.current(ce)}let Ee;if(typeof window!="undefined"){const{matchMedia:ce}=window;if(ce&&Jt&&Jt in ut){Ee=ce(`(max-width: ${ut[Jt]})`);try{Ee.addEventListener("change",le)}catch(he){Ee.addListener(le)}le(Ee)}}return()=>{try{Ee==null||Ee.removeEventListener("change",le)}catch(ce){Ee==null||Ee.removeListener(le)}}},[Jt]),(0,yt.useEffect)(()=>{const le=pt("ant-sider-");return se.addSider(le),()=>se.removeSider(le)},[]);const Ie=()=>{rn(!De,"clickTrigger")},{getPrefixCls:je}=(0,yt.useContext)(tt.E_),$e=()=>{const le=je("layout-sider",Ft),Ee=(0,It.Z)(fe,["collapsed"]),ce=De?Ue:pe,he=et(ce)?`${ce}px`:String(ce),_t=parseFloat(String(Ue||0))===0?yt.createElement("span",{onClick:Ie,className:Tt()(`${le}-zero-width-trigger`,`${le}-zero-width-trigger-${Ne?"right":"left"}`),style:de},$t||yt.createElement(Ot,null)):null,Ht={expanded:Ne?yt.createElement(At.Z,null):yt.createElement(Bt.Z,null),collapsed:Ne?yt.createElement(Bt.Z,null):yt.createElement(At.Z,null)}[De?"collapsed":"expanded"],Pt=$t!==null?_t||yt.createElement("div",{className:`${le}-trigger`,onClick:Ie,style:{width:he}},$t||Ht):null,dt=Object.assign(Object.assign({},we),{flex:`0 0 ${he}`,maxWidth:he,minWidth:he,width:he}),gt=Tt()(le,`${le}-${oe}`,{[`${le}-collapsed`]:!!De,[`${le}-has-trigger`]:Se&&$t!==null&&!_t,[`${le}-below`]:!!en,[`${le}-zero-width`]:parseFloat(he)===0},Qt);return yt.createElement("aside",Object.assign({className:gt},Ee,{style:dt,ref:Ut}),yt.createElement("div",{className:`${le}-children`},Kt),Se||en&&_t?Pt:null)},me=yt.useMemo(()=>({siderCollapsed:De}),[De]);return yt.createElement(ct.Provider,{value:me},$e())})},84966:function(Nn,An,Gt){"use strict";Gt.d(An,{VY:function(){return ct},$_:function(){return ut},h4:function(){return rt},Gs:function(){return It},ZP:function(){return pt}});var Rt=Gt(26390),yt=Gt(92310),Vt=Gt.n(yt),Yt=Gt(64002),Nt=Gt(59301),Wt=Gt(36355),xt=Gt(83116),Bt=mt=>{const{componentCls:Ct,bodyBg:Dt,lightSiderBg:Ut,lightTriggerBg:Ft,lightTriggerColor:Qt}=mt;return{[`${Ct}-sider-light`]:{background:Ut,[`${Ct}-sider-trigger`]:{color:Qt,background:Ft},[`${Ct}-sider-zero-width-trigger`]:{color:Qt,background:Ft,border:`1px solid ${Dt}`,borderInlineStart:0}}}};const At=mt=>{const{antCls:Ct,componentCls:Dt,colorText:Ut,triggerColor:Ft,footerBg:Qt,triggerBg:$t,headerHeight:Kt,headerPadding:ue,headerColor:oe,footerPadding:we,triggerHeight:Se,zeroTriggerHeight:Ne,zeroTriggerWidth:pe,motionDurationMid:Ue,motionDurationSlow:de,fontSize:Jt,borderRadius:ee,bodyBg:ae,headerBg:fe,siderBg:se}=mt;return{[Dt]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:ae,"&, *":{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:se,transition:`all ${Ue}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${Ct}-menu${Ct}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Se},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Se,color:Ft,lineHeight:`${Se}px`,textAlign:"center",background:$t,cursor:"pointer",transition:`all ${Ue}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Kt,insetInlineEnd:-pe,zIndex:1,width:pe,height:Ne,color:Ft,fontSize:mt.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:se,borderStartStartRadius:0,borderStartEndRadius:ee,borderEndEndRadius:ee,borderEndStartRadius:0,cursor:"pointer",transition:`background ${de} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${de}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-pe,borderStartStartRadius:ee,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:ee}}}}},Bt(mt)),{"&-rtl":{direction:"rtl"}}),[`${Dt}-header`]:{height:Kt,padding:ue,color:oe,lineHeight:`${Kt}px`,background:fe,[`${Ct}-menu`]:{lineHeight:"inherit"}},[`${Dt}-footer`]:{padding:we,color:Ut,fontSize:Jt,background:Qt},[`${Dt}-content`]:{flex:"auto",minHeight:0}}};var bt=(0,xt.Z)("Layout",mt=>[At(mt)],mt=>{const{colorBgLayout:Ct,controlHeight:Dt,controlHeightLG:Ut,colorText:Ft,controlHeightSM:Qt,marginXXS:$t,colorTextLightSolid:Kt,colorBgContainer:ue}=mt,oe=Ut*1.25;return{colorBgHeader:"#001529",colorBgBody:Ct,colorBgTrigger:"#002140",bodyBg:Ct,headerBg:"#001529",headerHeight:Dt*2,headerPadding:`0 ${oe}px`,headerColor:Ft,footerPadding:`${Qt}px ${oe}px`,footerBg:Ct,siderBg:"#001529",triggerHeight:Ut+$t*2,triggerBg:"#002140",triggerColor:Kt,zeroTriggerWidth:Ut,zeroTriggerHeight:Ut,lightSiderBg:ue,lightTriggerBg:ue,lightTriggerColor:Ft}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),Tt=function(mt,Ct){var Dt={};for(var Ut in mt)Object.prototype.hasOwnProperty.call(mt,Ut)&&Ct.indexOf(Ut)<0&&(Dt[Ut]=mt[Ut]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ft=0,Ut=Object.getOwnPropertySymbols(mt);Ft<Ut.length;Ft++)Ct.indexOf(Ut[Ft])<0&&Object.prototype.propertyIsEnumerable.call(mt,Ut[Ft])&&(Dt[Ut[Ft]]=mt[Ut[Ft]]);return Dt};const It=Nt.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function vt(mt){let{suffixCls:Ct,tagName:Dt,displayName:Ut}=mt;return Ft=>Nt.forwardRef(($t,Kt)=>Nt.createElement(Ft,Object.assign({ref:Kt,suffixCls:Ct,tagName:Dt},$t)))}const et=Nt.forwardRef((mt,Ct)=>{const{prefixCls:Dt,suffixCls:Ut,className:Ft,tagName:Qt}=mt,$t=Tt(mt,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Kt}=Nt.useContext(Wt.E_),ue=Kt("layout",Dt),[oe,we]=bt(ue),Se=Ut?`${ue}-${Ut}`:ue;return oe(Nt.createElement(Qt,Object.assign({className:Vt()(Dt||Se,Ft,we),ref:Ct},$t)))}),tt=Nt.forwardRef((mt,Ct)=>{const{direction:Dt}=Nt.useContext(Wt.E_),[Ut,Ft]=Nt.useState([]),{prefixCls:Qt,className:$t,rootClassName:Kt,children:ue,hasSider:oe,tagName:we,style:Se}=mt,Ne=Tt(mt,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),pe=(0,Yt.Z)(Ne,["suffixCls"]),{getPrefixCls:Ue,layout:de}=Nt.useContext(Wt.E_),Jt=Ue("layout",Qt),[ee,ae]=bt(Jt),fe=Vt()(Jt,{[`${Jt}-has-sider`]:typeof oe=="boolean"?oe:Ut.length>0,[`${Jt}-rtl`]:Dt==="rtl"},de==null?void 0:de.className,$t,Kt,ae),se=Nt.useMemo(()=>({siderHook:{addSider:De=>{Ft(Oe=>[].concat((0,Rt.Z)(Oe),[De]))},removeSider:De=>{Ft(Oe=>Oe.filter(en=>en!==De))}}}),[]);return ee(Nt.createElement(It.Provider,{value:se},Nt.createElement(we,Object.assign({ref:Ct,className:fe,style:Object.assign(Object.assign({},de==null?void 0:de.style),Se)},pe),ue)))}),st=vt({tagName:"div",displayName:"Layout"})(tt),rt=vt({suffixCls:"header",tagName:"header",displayName:"Header"})(et),ut=vt({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(et),ct=vt({suffixCls:"content",tagName:"main",displayName:"Content"})(et);var pt=st},40875:function(Nn,An,Gt){"use strict";Gt.d(An,{J:function(){return Wt}});var Rt=Gt(59301),yt=Gt(33234),Vt=Gt(80764),Yt=function(xt,Ot){var Bt={};for(var At in xt)Object.prototype.hasOwnProperty.call(xt,At)&&Ot.indexOf(At)<0&&(Bt[At]=xt[At]);if(xt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var bt=0,At=Object.getOwnPropertySymbols(xt);bt<At.length;bt++)Ot.indexOf(At[bt])<0&&Object.prototype.propertyIsEnumerable.call(xt,At[bt])&&(Bt[At[bt]]=xt[At[bt]]);return Bt};const Nt=Rt.createContext(null),Wt=Rt.forwardRef((xt,Ot)=>{const{children:Bt}=xt,At=Yt(xt,["children"]),bt=Rt.useContext(Nt),Tt=Rt.useMemo(()=>Object.assign(Object.assign({},bt),At),[bt,At.prefixCls,At.mode,At.selectable]);return Rt.createElement(Nt.Provider,{value:Tt},Rt.createElement(yt.BR,null,(0,Vt.supportNodeRef)(Bt)?Rt.cloneElement(Bt,{ref:Ot}):Bt))});An.Z=Nt},20834:function(Nn,An,Gt){"use strict";Gt.d(An,{default:function(){return me}});var Rt=Gt(22798),yt=Gt(59301),Vt=Gt(99580),Yt=Gt(92310),Nt=Gt.n(Yt),Wt=Gt(36355),xt=function(le,Ee){var ce={};for(var he in le)Object.prototype.hasOwnProperty.call(le,he)&&Ee.indexOf(he)<0&&(ce[he]=le[he]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,he=Object.getOwnPropertySymbols(le);_t<he.length;_t++)Ee.indexOf(he[_t])<0&&Object.prototype.propertyIsEnumerable.call(le,he[_t])&&(ce[he[_t]]=le[he[_t]]);return ce},Bt=le=>{const{prefixCls:Ee,className:ce,dashed:he}=le,_t=xt(le,["prefixCls","className","dashed"]),{getPrefixCls:Mt}=yt.useContext(Wt.E_),Et=Mt("menu",Ee),Ht=Nt()({[`${Et}-item-divider-dashed`]:!!he},ce);return yt.createElement(Rt.iz,Object.assign({className:Ht},_t))},At=Gt(38298),bt=Gt(64002),Tt=Gt(6848),It=Gt(92343),et=(0,yt.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),st=le=>{var Ee;const{className:ce,children:he,icon:_t,title:Mt,danger:Et}=le,{prefixCls:Ht,firstLevel:Pt,direction:dt,disableMenuItemTitleTooltip:gt,inlineCollapsed:zt}=yt.useContext(et),re=Re=>{const hn=yt.createElement("span",{className:`${Ht}-title-content`},he);return(!_t||(0,It.l$)(he)&&he.type==="span")&&he&&Re&&Pt&&typeof he=="string"?yt.createElement("div",{className:`${Ht}-inline-collapsed-noicon`},he.charAt(0)):hn},{siderCollapsed:Zt}=yt.useContext(Vt.D);let ye=Mt;typeof Mt=="undefined"?ye=Pt?he:"":Mt===!1&&(ye="");const Ye={title:ye};!Zt&&!zt&&(Ye.title=null,Ye.open=!1);const sn=(0,At.Z)(he).length;let Le=yt.createElement(Rt.ck,Object.assign({},(0,bt.Z)(le,["title","icon","danger"]),{className:Nt()({[`${Ht}-item-danger`]:Et,[`${Ht}-item-only-child`]:(_t?sn+1:sn)===1},ce),title:typeof Mt=="string"?Mt:void 0}),(0,It.Tm)(_t,{className:Nt()((0,It.l$)(_t)?(Ee=_t.props)===null||Ee===void 0?void 0:Ee.className:"",`${Ht}-item-icon`)}),re(zt));return gt||(Le=yt.createElement(Tt.Z,Object.assign({},Ye,{placement:dt==="rtl"?"left":"right",overlayClassName:`${Ht}-inline-collapsed-tooltip`}),Le)),Le},ut=le=>{var Ee;const{popupClassName:ce,icon:he,title:_t,theme:Mt}=le,Et=yt.useContext(et),{prefixCls:Ht,inlineCollapsed:Pt,theme:dt}=Et,gt=(0,Rt.Xl)();let zt;if(!he)zt=Pt&&!gt.length&&_t&&typeof _t=="string"?yt.createElement("div",{className:`${Ht}-inline-collapsed-noicon`},_t.charAt(0)):yt.createElement("span",{className:`${Ht}-title-content`},_t);else{const Zt=(0,It.l$)(_t)&&_t.type==="span";zt=yt.createElement(yt.Fragment,null,(0,It.Tm)(he,{className:Nt()((0,It.l$)(he)?(Ee=he.props)===null||Ee===void 0?void 0:Ee.className:"",`${Ht}-item-icon`)}),Zt?_t:yt.createElement("span",{className:`${Ht}-title-content`},_t))}const re=yt.useMemo(()=>Object.assign(Object.assign({},Et),{firstLevel:!1}),[Et]);return yt.createElement(et.Provider,{value:re},yt.createElement(Rt.Wd,Object.assign({},(0,bt.Z)(le,["icon"]),{title:zt,popupClassName:Nt()(Ht,ce,`${Ht}-${Mt||dt}`)})))},ct=Gt(19362),pt=Gt(80764),mt=Gt(62892),Ct=Gt(40875),Dt=function(le,Ee){var ce={};for(var he in le)Object.prototype.hasOwnProperty.call(le,he)&&Ee.indexOf(he)<0&&(ce[he]=le[he]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,he=Object.getOwnPropertySymbols(le);_t<he.length;_t++)Ee.indexOf(he[_t])<0&&Object.prototype.propertyIsEnumerable.call(le,he[_t])&&(ce[he[_t]]=le[he[_t]]);return ce};function Ut(le){return(le||[]).map((Ee,ce)=>{if(Ee&&typeof Ee=="object"){const he=Ee,{label:_t,children:Mt,key:Et,type:Ht}=he,Pt=Dt(he,["label","children","key","type"]),dt=Et!=null?Et:`tmp-${ce}`;return Mt||Ht==="group"?Ht==="group"?yt.createElement(Rt.BW,Object.assign({key:dt},Pt,{title:_t}),Ut(Mt)):yt.createElement(ut,Object.assign({key:dt},Pt,{title:_t}),Ut(Mt)):Ht==="divider"?yt.createElement(Bt,Object.assign({key:dt},Pt)):yt.createElement(st,Object.assign({key:dt},Pt),_t)}return null}).filter(Ee=>Ee)}function Ft(le){return yt.useMemo(()=>le&&Ut(le),[le])}var Qt=Gt(64993),$t=Gt(17313),Kt=Gt(8378),ue=Gt(13826),oe=Gt(29878),we=Gt(83116),Se=Gt(37613),pe=le=>{const{componentCls:Ee,motionDurationSlow:ce,horizontalLineHeight:he,colorSplit:_t,lineWidth:Mt,lineType:Et,itemPaddingInline:Ht}=le;return{[`${Ee}-horizontal`]:{lineHeight:he,border:0,borderBottom:`${Mt}px ${Et} ${_t}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${Ee}-item, ${Ee}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Ht},[`> ${Ee}-item:hover,
|
|
|
> ${Ee}-item-active,
|
|
|
> ${Ee}-submenu ${Ee}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${Ee}-item, ${Ee}-submenu-title`]:{transition:[`border-color ${ce}`,`background ${ce}`].join(",")},[`${Ee}-submenu-arrow`]:{display:"none"}}}},de=le=>{let{componentCls:Ee,menuArrowOffset:ce}=le;return{[`${Ee}-rtl`]:{direction:"rtl"},[`${Ee}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${Ee}-rtl${Ee}-vertical,
|
|
|
${Ee}-submenu-rtl ${Ee}-vertical`]:{[`${Ee}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${ce})`},"&::after":{transform:`rotate(45deg) translateY(${ce})`}}}}};const Jt=le=>Object.assign({},(0,$t.oN)(le));var ae=(le,Ee)=>{const{componentCls:ce,itemColor:he,itemSelectedColor:_t,groupTitleColor:Mt,itemBg:Et,subMenuItemBg:Ht,itemSelectedBg:Pt,activeBarHeight:dt,activeBarWidth:gt,activeBarBorderWidth:zt,motionDurationSlow:re,motionEaseInOut:Zt,motionEaseOut:ye,itemPaddingInline:Ye,motionDurationMid:sn,itemHoverColor:Le,lineType:Re,colorSplit:hn,itemDisabledColor:wn,dangerItemColor:kn,dangerItemHoverColor:Rn,dangerItemSelectedColor:Yn,dangerItemActiveBg:Kn,dangerItemSelectedBg:li,itemHoverBg:mi,itemActiveBg:yi,menuSubMenuBg:Pi,horizontalItemSelectedColor:Mi,horizontalItemSelectedBg:Gi,horizontalItemBorderRadius:bi,horizontalItemHoverBg:Ki,popupBg:ui}=le;return{[`${ce}-${Ee}, ${ce}-${Ee} > ${ce}`]:{color:he,background:Et,[`&${ce}-root:focus-visible`]:Object.assign({},Jt(le)),[`${ce}-item-group-title`]:{color:Mt},[`${ce}-submenu-selected`]:{[`> ${ce}-submenu-title`]:{color:_t}},[`${ce}-item-disabled, ${ce}-submenu-disabled`]:{color:`${wn} !important`},[`${ce}-item:not(${ce}-item-selected):not(${ce}-submenu-selected)`]:{[`&:hover, > ${ce}-submenu-title:hover`]:{color:Le}},[`&:not(${ce}-horizontal)`]:{[`${ce}-item:not(${ce}-item-selected)`]:{"&:hover":{backgroundColor:mi},"&:active":{backgroundColor:yi}},[`${ce}-submenu-title`]:{"&:hover":{backgroundColor:mi},"&:active":{backgroundColor:yi}}},[`${ce}-item-danger`]:{color:kn,[`&${ce}-item:hover`]:{[`&:not(${ce}-item-selected):not(${ce}-submenu-selected)`]:{color:Rn}},[`&${ce}-item:active`]:{background:Kn}},[`${ce}-item a`]:{"&, &:hover":{color:"inherit"}},[`${ce}-item-selected`]:{color:_t,[`&${ce}-item-danger`]:{color:Yn},"a, a:hover":{color:"inherit"}},[`& ${ce}-item-selected`]:{backgroundColor:Pt,[`&${ce}-item-danger`]:{backgroundColor:li}},[`${ce}-item, ${ce}-submenu-title`]:{[`&:not(${ce}-item-disabled):focus-visible`]:Object.assign({},Jt(le))},[`&${ce}-submenu > ${ce}`]:{backgroundColor:Pi},[`&${ce}-popup > ${ce}`]:{backgroundColor:ui},[`&${ce}-horizontal`]:Object.assign(Object.assign({},Ee==="dark"?{borderBottom:0}:{}),{[`> ${ce}-item, > ${ce}-submenu`]:{top:zt,marginTop:-zt,marginBottom:0,borderRadius:bi,"&::after":{position:"absolute",insetInline:Ye,bottom:0,borderBottom:`${dt}px solid transparent`,transition:`border-color ${re} ${Zt}`,content:'""'},"&:hover, &-active, &-open":{background:Ki,"&::after":{borderBottomWidth:dt,borderBottomColor:Mi}},"&-selected":{color:Mi,backgroundColor:Gi,"&:hover":{backgroundColor:Gi},"&::after":{borderBottomWidth:dt,borderBottomColor:Mi}}}}),[`&${ce}-root`]:{[`&${ce}-inline, &${ce}-vertical`]:{borderInlineEnd:`${zt}px ${Re} ${hn}`}},[`&${ce}-inline`]:{[`${ce}-sub${ce}-inline`]:{background:Ht},[`${ce}-item, ${ce}-submenu-title`]:zt&>?{width:`calc(100% + ${zt}px)`}:{},[`${ce}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${gt}px solid ${_t}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${sn} ${ye}`,`opacity ${sn} ${ye}`].join(","),content:'""'},[`&${ce}-item-danger`]:{"&::after":{borderInlineEndColor:Yn}}},[`${ce}-selected, ${ce}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${sn} ${Zt}`,`opacity ${sn} ${Zt}`].join(",")}}}}}};const fe=le=>{const{componentCls:Ee,itemHeight:ce,itemMarginInline:he,padding:_t,menuArrowSize:Mt,marginXS:Et,itemMarginBlock:Ht}=le,Pt=_t+Mt+Et;return{[`${Ee}-item`]:{position:"relative",overflow:"hidden"},[`${Ee}-item, ${Ee}-submenu-title`]:{height:ce,lineHeight:`${ce}px`,paddingInline:_t,overflow:"hidden",textOverflow:"ellipsis",marginInline:he,marginBlock:Ht,width:`calc(100% - ${he*2}px)`},[`> ${Ee}-item,
|
|
|
> ${Ee}-submenu > ${Ee}-submenu-title`]:{height:ce,lineHeight:`${ce}px`},[`${Ee}-item-group-list ${Ee}-submenu-title,
|
|
|
${Ee}-submenu-title`]:{paddingInlineEnd:Pt}}};var De=le=>{const{componentCls:Ee,iconCls:ce,itemHeight:he,colorTextLightSolid:_t,dropdownWidth:Mt,controlHeightLG:Et,motionDurationMid:Ht,motionEaseOut:Pt,paddingXL:dt,itemMarginInline:gt,fontSizeLG:zt,motionDurationSlow:re,paddingXS:Zt,boxShadowSecondary:ye,collapsedWidth:Ye,collapsedIconSize:sn}=le,Le={height:he,lineHeight:`${he}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[Ee]:{"&-inline, &-vertical":Object.assign({[`&${Ee}-root`]:{boxShadow:"none"}},fe(le))},[`${Ee}-submenu-popup`]:{[`${Ee}-vertical`]:Object.assign(Object.assign({},fe(le)),{boxShadow:ye})}},{[`${Ee}-submenu-popup ${Ee}-vertical${Ee}-sub`]:{minWidth:Mt,maxHeight:`calc(100vh - ${Et*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${Ee}-inline`]:{width:"100%",[`&${Ee}-root`]:{[`${Ee}-item, ${Ee}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${re}`,`background ${re}`,`padding ${Ht} ${Pt}`].join(","),[`> ${Ee}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${Ee}-sub${Ee}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${Ee}-submenu > ${Ee}-submenu-title`]:Le,[`& ${Ee}-item-group-title`]:{paddingInlineStart:dt}},[`${Ee}-item`]:Le}},{[`${Ee}-inline-collapsed`]:{width:Ye,[`&${Ee}-root`]:{[`${Ee}-item, ${Ee}-submenu ${Ee}-submenu-title`]:{[`> ${Ee}-inline-collapsed-noicon`]:{fontSize:zt,textAlign:"center"}}},[`> ${Ee}-item,
|
|
|
> ${Ee}-item-group > ${Ee}-item-group-list > ${Ee}-item,
|
|
|
> ${Ee}-item-group > ${Ee}-item-group-list > ${Ee}-submenu > ${Ee}-submenu-title,
|
|
|
> ${Ee}-submenu > ${Ee}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${zt/2}px - ${gt}px)`,textOverflow:"clip",[`
|
|
|
${Ee}-submenu-arrow,
|
|
|
${Ee}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${Ee}-item-icon, ${ce}`]:{margin:0,fontSize:sn,lineHeight:`${he}px`,"+ span":{display:"inline-block",opacity:0}}},[`${Ee}-item-icon, ${ce}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${Ee}-item-icon, ${ce}`]:{display:"none"},"a, a:hover":{color:_t}},[`${Ee}-item-group-title`]:Object.assign(Object.assign({},$t.vS),{paddingInline:Zt})}}]};const Oe=le=>{const{componentCls:Ee,motionDurationSlow:ce,motionDurationMid:he,motionEaseInOut:_t,motionEaseOut:Mt,iconCls:Et,iconSize:Ht,iconMarginInlineEnd:Pt}=le;return{[`${Ee}-item, ${Ee}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${ce}`,`background ${ce}`,`padding ${ce} ${_t}`].join(","),[`${Ee}-item-icon, ${Et}`]:{minWidth:Ht,fontSize:Ht,transition:[`font-size ${he} ${Mt}`,`margin ${ce} ${_t}`,`color ${ce}`].join(","),"+ span":{marginInlineStart:Pt,opacity:1,transition:[`opacity ${ce} ${_t}`,`margin ${ce}`,`color ${ce}`].join(",")}},[`${Ee}-item-icon`]:Object.assign({},(0,$t.Ro)()),[`&${Ee}-item-only-child`]:{[`> ${Et}, > ${Ee}-item-icon`]:{marginInlineEnd:0}}},[`${Ee}-item-disabled, ${Ee}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${Ee}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},en=le=>{const{componentCls:Ee,motionDurationSlow:ce,motionEaseInOut:he,borderRadius:_t,menuArrowSize:Mt,menuArrowOffset:Et}=le;return{[`${Ee}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:le.margin,width:Mt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${ce} ${he}, opacity ${ce}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Mt*.6,height:Mt*.15,backgroundColor:"currentcolor",borderRadius:_t,transition:[`background ${ce} ${he}`,`transform ${ce} ${he}`,`top ${ce} ${he}`,`color ${ce} ${he}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${Et})`},"&::after":{transform:`rotate(-45deg) translateY(${Et})`}}}}},We=le=>{const{antCls:Ee,componentCls:ce,fontSize:he,motionDurationSlow:_t,motionDurationMid:Mt,motionEaseInOut:Et,paddingXS:Ht,padding:Pt,colorSplit:dt,lineWidth:gt,zIndexPopup:zt,borderRadiusLG:re,subMenuItemBorderRadius:Zt,menuArrowSize:ye,menuArrowOffset:Ye,lineType:sn,menuPanelMaskInset:Le,groupTitleLineHeight:Re,groupTitleFontSize:hn}=le;return[{"":{[`${ce}`]:Object.assign(Object.assign({},(0,$t.dF)()),{"&-hidden":{display:"none"}})},[`${ce}-submenu-hidden`]:{display:"none"}},{[ce]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,$t.Wf)(le)),(0,$t.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:he,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${_t} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${ce}-item`]:{flex:"none"}},[`${ce}-item, ${ce}-submenu, ${ce}-submenu-title`]:{borderRadius:le.itemBorderRadius},[`${ce}-item-group-title`]:{padding:`${Ht}px ${Pt}px`,fontSize:hn,lineHeight:Re,transition:`all ${_t}`},[`&-horizontal ${ce}-submenu`]:{transition:[`border-color ${_t} ${Et}`,`background ${_t} ${Et}`].join(",")},[`${ce}-submenu, ${ce}-submenu-inline`]:{transition:[`border-color ${_t} ${Et}`,`background ${_t} ${Et}`,`padding ${Mt} ${Et}`].join(",")},[`${ce}-submenu ${ce}-sub`]:{cursor:"initial",transition:[`background ${_t} ${Et}`,`padding ${_t} ${Et}`].join(",")},[`${ce}-title-content`]:{transition:`color ${_t}`},[`${ce}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${ce}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:dt,borderStyle:sn,borderWidth:0,borderTopWidth:gt,marginBlock:gt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Oe(le)),{[`${ce}-item-group`]:{[`${ce}-item-group-list`]:{margin:0,padding:0,[`${ce}-item, ${ce}-submenu-title`]:{paddingInline:`${he*2}px ${Pt}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:zt,borderRadius:re,boxShadow:"none",transformOrigin:"0 0",[`&${ce}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Le}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Le},"\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:le.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:le.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:le.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:le.paddingXS},[`> ${ce}`]:Object.assign(Object.assign(Object.assign({borderRadius:re},Oe(le)),en(le)),{[`${ce}-item, ${ce}-submenu > ${ce}-submenu-title`]:{borderRadius:Zt},[`${ce}-submenu-title::after`]:{transition:`transform ${_t} ${Et}`}})}}),en(le)),{[`&-inline-collapsed ${ce}-submenu-arrow,
|
|
|
&-inline ${ce}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ye})`},"&::after":{transform:`rotate(45deg) translateX(-${Ye})`}},[`${ce}-submenu-open${ce}-submenu-inline > ${ce}-submenu-title > ${ce}-submenu-arrow`]:{transform:`translateY(-${ye*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Ye})`},"&::before":{transform:`rotate(45deg) translateX(${Ye})`}}})},{[`${Ee}-layout-header`]:{[ce]:{lineHeight:"inherit"}}}]};var rn=(le,Ee)=>(0,we.Z)("Menu",he=>{if(Ee===!1)return[];const{colorBgElevated:_t,colorPrimary:Mt,colorTextLightSolid:Et,controlHeightLG:Ht,fontSize:Pt,darkItemColor:dt,darkDangerItemColor:gt,darkItemBg:zt,darkSubMenuItemBg:re,darkItemSelectedColor:Zt,darkItemSelectedBg:ye,darkDangerItemSelectedBg:Ye,darkItemHoverBg:sn,darkGroupTitleColor:Le,darkItemHoverColor:Re,darkItemDisabledColor:hn,darkDangerItemHoverColor:wn,darkDangerItemSelectedColor:kn,darkDangerItemActiveBg:Rn}=he,Yn=Pt/7*5,Kn=(0,Se.TS)(he,{menuArrowSize:Yn,menuHorizontalHeight:Ht*1.15,menuArrowOffset:`${Yn*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:_t}),li=(0,Se.TS)(Kn,{itemColor:dt,itemHoverColor:Re,groupTitleColor:Le,itemSelectedColor:Zt,itemBg:zt,popupBg:zt,subMenuItemBg:re,itemActiveBg:"transparent",itemSelectedBg:ye,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:sn,itemDisabledColor:hn,dangerItemColor:gt,dangerItemHoverColor:wn,dangerItemSelectedColor:kn,dangerItemActiveBg:Rn,dangerItemSelectedBg:Ye,menuSubMenuBg:re,horizontalItemSelectedColor:Et,horizontalItemSelectedBg:Mt});return[We(Kn),pe(Kn),De(Kn),ae(Kn,"light"),ae(li,"dark"),de(Kn),(0,Kt.Z)(Kn),(0,ue.oN)(Kn,"slide-up"),(0,ue.oN)(Kn,"slide-down"),(0,oe._y)(Kn,"zoom-big")]},he=>{const{colorPrimary:_t,colorError:Mt,colorTextDisabled:Et,colorErrorBg:Ht,colorText:Pt,colorTextDescription:dt,colorBgContainer:gt,colorFillAlter:zt,colorFillContent:re,lineWidth:Zt,lineWidthBold:ye,controlItemBgActive:Ye,colorBgTextHover:sn,controlHeightLG:Le,lineHeight:Re,colorBgElevated:hn,marginXXS:wn,padding:kn,fontSize:Rn,controlHeightSM:Yn,fontSizeLG:Kn,colorTextLightSolid:li,colorErrorHover:mi}=he,yi=new Qt.C(li).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:he.zIndexPopupBase+50,radiusItem:he.borderRadiusLG,itemBorderRadius:he.borderRadiusLG,radiusSubMenuItem:he.borderRadiusSM,subMenuItemBorderRadius:he.borderRadiusSM,colorItemText:Pt,itemColor:Pt,colorItemTextHover:Pt,itemHoverColor:Pt,colorItemTextHoverHorizontal:_t,horizontalItemHoverColor:_t,colorGroupTitle:dt,groupTitleColor:dt,colorItemTextSelected:_t,itemSelectedColor:_t,colorItemTextSelectedHorizontal:_t,horizontalItemSelectedColor:_t,colorItemBg:gt,itemBg:gt,colorItemBgHover:sn,itemHoverBg:sn,colorItemBgActive:re,itemActiveBg:Ye,colorSubItemBg:zt,subMenuItemBg:zt,colorItemBgSelected:Ye,itemSelectedBg:Ye,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:ye,activeBarHeight:ye,colorActiveBarBorderSize:Zt,activeBarBorderWidth:Zt,colorItemTextDisabled:Et,itemDisabledColor:Et,colorDangerItemText:Mt,dangerItemColor:Mt,colorDangerItemTextHover:Mt,dangerItemHoverColor:Mt,colorDangerItemTextSelected:Mt,dangerItemSelectedColor:Mt,colorDangerItemBgActive:Ht,dangerItemActiveBg:Ht,colorDangerItemBgSelected:Ht,dangerItemSelectedBg:Ht,itemMarginInline:he.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Le,groupTitleLineHeight:Re,collapsedWidth:Le*2,popupBg:hn,itemMarginBlock:wn,itemPaddingInline:kn,horizontalLineHeight:`${Le*1.15}px`,iconSize:Rn,iconMarginInlineEnd:Yn-Rn,collapsedIconSize:Kn,groupTitleFontSize:Rn,darkItemDisabledColor:new Qt.C(li).setAlpha(.25).toRgbString(),darkItemColor:yi,darkDangerItemColor:Mt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:li,darkItemSelectedBg:_t,darkDangerItemSelectedBg:Mt,darkItemHoverBg:"transparent",darkGroupTitleColor:yi,darkItemHoverColor:li,darkDangerItemHoverColor:mi,darkDangerItemSelectedColor:li,darkDangerItemActiveBg:Mt}},{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"]]})(le),ke=function(le,Ee){var ce={};for(var he in le)Object.prototype.hasOwnProperty.call(le,he)&&Ee.indexOf(he)<0&&(ce[he]=le[he]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,he=Object.getOwnPropertySymbols(le);_t<he.length;_t++)Ee.indexOf(he[_t])<0&&Object.prototype.propertyIsEnumerable.call(le,he[_t])&&(ce[he[_t]]=le[he[_t]]);return ce},je=(0,yt.forwardRef)((le,Ee)=>{var ce,he;const _t=yt.useContext(Ct.Z),Mt=_t||{},{getPrefixCls:Et,getPopupContainer:Ht,direction:Pt,menu:dt}=yt.useContext(Wt.E_),gt=Et(),{prefixCls:zt,className:re,style:Zt,theme:ye="light",expandIcon:Ye,_internalDisableMenuItemTitleTooltip:sn,inlineCollapsed:Le,siderCollapsed:Re,items:hn,children:wn,rootClassName:kn,mode:Rn,selectable:Yn,onClick:Kn,overflowedIndicatorPopupClassName:li}=le,mi=ke(le,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),yi=(0,bt.Z)(mi,["collapsedWidth"]),Pi=Ft(hn)||wn;(ce=Mt.validator)===null||ce===void 0||ce.call(Mt,{mode:Rn});const Mi=(0,pt.useEvent)(function(){var vr;Kn==null||Kn.apply(void 0,arguments),(vr=Mt.onClick)===null||vr===void 0||vr.call(Mt)}),Gi=Mt.mode||Rn,bi=Yn!=null?Yn:Mt.selectable,Ki=yt.useMemo(()=>Re!==void 0?Re:Le,[Le,Re]),ui={horizontal:{motionName:`${gt}-slide-up`},inline:(0,mt.Z)(gt),other:{motionName:`${gt}-zoom-big`}},te=Et("menu",zt||Mt.prefixCls),[Yi,Ti]=rn(te,!_t),or=Nt()(`${te}-${ye}`,dt==null?void 0:dt.className,re);let Sr;if(typeof Ye=="function")Sr=Ye;else if(Ye===null||Ye===!1)Sr=null;else if(Mt.expandIcon===null||Mt.expandIcon===!1)Sr=null;else{const vr=Ye!=null?Ye:Mt.expandIcon;Sr=(0,It.Tm)(vr,{className:Nt()(`${te}-submenu-expand-icon`,(0,It.l$)(vr)?(he=vr.props)===null||he===void 0?void 0:he.className:"")})}const Er=yt.useMemo(()=>({prefixCls:te,inlineCollapsed:Ki||!1,direction:Pt,firstLevel:!0,theme:ye,mode:Gi,disableMenuItemTitleTooltip:sn}),[te,Ki,Pt,sn,ye]);return Yi(yt.createElement(Ct.Z.Provider,{value:null},yt.createElement(et.Provider,{value:Er},yt.createElement(Rt.ZP,Object.assign({getPopupContainer:Ht,overflowedIndicator:yt.createElement(ct.Z,null),overflowedIndicatorPopupClassName:Nt()(te,`${te}-${ye}`,li),mode:Gi,selectable:bi,onClick:Mi},yi,{inlineCollapsed:Ki,style:Object.assign(Object.assign({},dt==null?void 0:dt.style),Zt),className:or,prefixCls:te,direction:Pt,defaultMotions:ui,expandIcon:Sr,ref:Ee,rootClassName:Nt()(kn,Ti)}),Pi))))});const $e=(0,yt.forwardRef)((le,Ee)=>{const ce=(0,yt.useRef)(null),he=yt.useContext(Vt.D);return(0,yt.useImperativeHandle)(Ee,()=>({menu:ce.current,focus:_t=>{var Mt;(Mt=ce.current)===null||Mt===void 0||Mt.focus(_t)}})),yt.createElement(je,Object.assign({ref:ce},le,he))});$e.Item=st,$e.SubMenu=ut,$e.Divider=Bt,$e.ItemGroup=Rt.BW;var me=$e},25700:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Mt}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(Ht,Pt){return yt.createElement(Nt.Z,(0,Rt.Z)({},Ht,{ref:Pt,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt,Bt=Gt(93343),At=Gt(16537),bt=Gt(53878),Tt=Gt(92310),It=Gt.n(Tt),vt=Gt(80962),et=Gt(57259),tt=Gt(79545),st=Gt(68550),rt=Gt(17928),ut=Gt(7711),ct=Gt(36994),pt={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},mt=pt,Ct=Gt(91735),Dt=function(Et){(0,rt.Z)(Pt,Et);var Ht=(0,ut.Z)(Pt);function Pt(){var dt;(0,tt.Z)(this,Pt);for(var gt=arguments.length,zt=new Array(gt),re=0;re<gt;re++)zt[re]=arguments[re];return dt=Ht.call.apply(Ht,[this].concat(zt)),dt.state={goInputText:""},dt.getValidValue=function(){var Zt=dt.state.goInputText;return!Zt||Number.isNaN(Zt)?void 0:Number(Zt)},dt.buildOptionText=function(Zt){return"".concat(Zt," ").concat(dt.props.locale.items_per_page)},dt.changeSize=function(Zt){dt.props.changeSize(Number(Zt))},dt.handleChange=function(Zt){dt.setState({goInputText:Zt.target.value})},dt.handleBlur=function(Zt){var ye=dt.props,Ye=ye.goButton,sn=ye.quickGo,Le=ye.rootPrefixCls,Re=dt.state.goInputText;Ye||Re===""||(dt.setState({goInputText:""}),!(Zt.relatedTarget&&(Zt.relatedTarget.className.indexOf("".concat(Le,"-item-link"))>=0||Zt.relatedTarget.className.indexOf("".concat(Le,"-item"))>=0))&&sn(dt.getValidValue()))},dt.go=function(Zt){var ye=dt.state.goInputText;ye!==""&&(Zt.keyCode===mt.ENTER||Zt.type==="click")&&(dt.setState({goInputText:""}),dt.props.quickGo(dt.getValidValue()))},dt}return(0,st.Z)(Pt,[{key:"getPageSizeOptions",value:function(){var gt=this.props,zt=gt.pageSize,re=gt.pageSizeOptions;return re.some(function(Zt){return Zt.toString()===zt.toString()})?re:re.concat([zt.toString()]).sort(function(Zt,ye){var Ye=Number.isNaN(Number(Zt))?0:Number(Zt),sn=Number.isNaN(Number(ye))?0:Number(ye);return Ye-sn})}},{key:"render",value:function(){var gt=this,zt=this.props,re=zt.pageSize,Zt=zt.locale,ye=zt.rootPrefixCls,Ye=zt.changeSize,sn=zt.quickGo,Le=zt.goButton,Re=zt.selectComponentClass,hn=zt.buildOptionText,wn=zt.selectPrefixCls,kn=zt.disabled,Rn=this.state.goInputText,Yn="".concat(ye,"-options"),Kn=Re,li=null,mi=null,yi=null;if(!Ye&&!sn)return null;var Pi=this.getPageSizeOptions();if(Ye&&Kn){var Mi=Pi.map(function(Gi,bi){return yt.createElement(Kn.Option,{key:bi,value:Gi.toString()},(hn||gt.buildOptionText)(Gi))});li=yt.createElement(Kn,{disabled:kn,prefixCls:wn,showSearch:!1,className:"".concat(Yn,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(re||Pi[0]).toString(),onChange:this.changeSize,getPopupContainer:function(bi){return bi.parentNode},"aria-label":Zt.page_size,defaultOpen:!1},Mi)}return sn&&(Le&&(yi=typeof Le=="boolean"?yt.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:kn,className:"".concat(Yn,"-quick-jumper-button")},Zt.jump_to_confirm):yt.createElement("span",{onClick:this.go,onKeyUp:this.go},Le)),mi=yt.createElement("div",{className:"".concat(Yn,"-quick-jumper")},Zt.jump_to,yt.createElement("input",{disabled:kn,type:"text",value:Rn,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Zt.page}),Zt.page,yi)),yt.createElement("li",{className:"".concat(Yn)},li,mi)}}]),Pt}(yt.Component);Dt.defaultProps={pageSizeOptions:["10","20","50","100"]};var Ut=Dt,Ft=function(Ht){var Pt,dt=Ht.rootPrefixCls,gt=Ht.page,zt=Ht.active,re=Ht.className,Zt=Ht.showTitle,ye=Ht.onClick,Ye=Ht.onKeyPress,sn=Ht.itemRender,Le="".concat(dt,"-item"),Re=It()(Le,"".concat(Le,"-").concat(gt),(Pt={},(0,vt.Z)(Pt,"".concat(Le,"-active"),zt),(0,vt.Z)(Pt,"".concat(Le,"-disabled"),!gt),(0,vt.Z)(Pt,Ht.className,re),Pt)),hn=function(){ye(gt)},wn=function(Yn){Ye(Yn,ye,gt)},kn=sn(gt,"page",yt.createElement("a",{rel:"nofollow"},gt));return kn?yt.createElement("li",{title:Zt?gt.toString():null,className:Re,onClick:hn,onKeyPress:wn,tabIndex:0},kn):null},Qt=Ft;function $t(){}function Kt(Et){var Ht=Number(Et);return typeof Ht=="number"&&!Number.isNaN(Ht)&&isFinite(Ht)&&Math.floor(Ht)===Ht}var ue=function(Ht,Pt,dt){return dt};function oe(Et,Ht,Pt){var dt=typeof Et=="undefined"?Ht.pageSize:Et;return Math.floor((Pt.total-1)/dt)+1}var we=function(Et){(0,rt.Z)(Pt,Et);var Ht=(0,ut.Z)(Pt);function Pt(dt){var gt;(0,tt.Z)(this,Pt),gt=Ht.call(this,dt),gt.paginationNode=yt.createRef(),gt.getJumpPrevPage=function(){return Math.max(1,gt.state.current-(gt.props.showLessItems?3:5))},gt.getJumpNextPage=function(){return Math.min(oe(void 0,gt.state,gt.props),gt.state.current+(gt.props.showLessItems?3:5))},gt.getItemIcon=function(Ye,sn){var Le=gt.props.prefixCls,Re=Ye||yt.createElement("button",{type:"button","aria-label":sn,className:"".concat(Le,"-item-link")});return typeof Ye=="function"&&(Re=yt.createElement(Ye,(0,et.Z)({},gt.props))),Re},gt.isValid=function(Ye){var sn=gt.props.total;return Kt(Ye)&&Ye!==gt.state.current&&Kt(sn)&&sn>0},gt.shouldDisplayQuickJumper=function(){var Ye=gt.props,sn=Ye.showQuickJumper,Le=Ye.total,Re=gt.state.pageSize;return Le<=Re?!1:sn},gt.handleKeyDown=function(Ye){(Ye.keyCode===mt.ARROW_UP||Ye.keyCode===mt.ARROW_DOWN)&&Ye.preventDefault()},gt.handleKeyUp=function(Ye){var sn=gt.getValidValue(Ye),Le=gt.state.currentInputValue;sn!==Le&>.setState({currentInputValue:sn}),Ye.keyCode===mt.ENTER?gt.handleChange(sn):Ye.keyCode===mt.ARROW_UP?gt.handleChange(sn-1):Ye.keyCode===mt.ARROW_DOWN&>.handleChange(sn+1)},gt.handleBlur=function(Ye){var sn=gt.getValidValue(Ye);gt.handleChange(sn)},gt.changePageSize=function(Ye){var sn=gt.state.current,Le=oe(Ye,gt.state,gt.props);sn=sn>Le?Le:sn,Le===0&&(sn=gt.state.current),typeof Ye=="number"&&("pageSize"in gt.props||gt.setState({pageSize:Ye}),"current"in gt.props||gt.setState({current:sn,currentInputValue:sn})),gt.props.onShowSizeChange(sn,Ye),"onChange"in gt.props&>.props.onChange&>.props.onChange(sn,Ye)},gt.handleChange=function(Ye){var sn=gt.props,Le=sn.disabled,Re=sn.onChange,hn=gt.state,wn=hn.pageSize,kn=hn.current,Rn=hn.currentInputValue;if(gt.isValid(Ye)&&!Le){var Yn=oe(void 0,gt.state,gt.props),Kn=Ye;return Ye>Yn?Kn=Yn:Ye<1&&(Kn=1),"current"in gt.props||gt.setState({current:Kn}),Kn!==Rn&>.setState({currentInputValue:Kn}),Re(Kn,wn),Kn}return kn},gt.prev=function(){gt.hasPrev()&>.handleChange(gt.state.current-1)},gt.next=function(){gt.hasNext()&>.handleChange(gt.state.current+1)},gt.jumpPrev=function(){gt.handleChange(gt.getJumpPrevPage())},gt.jumpNext=function(){gt.handleChange(gt.getJumpNextPage())},gt.hasPrev=function(){return gt.state.current>1},gt.hasNext=function(){return gt.state.current<oe(void 0,gt.state,gt.props)},gt.runIfEnter=function(Ye,sn){if(Ye.key==="Enter"||Ye.charCode===13){for(var Le=arguments.length,Re=new Array(Le>2?Le-2:0),hn=2;hn<Le;hn++)Re[hn-2]=arguments[hn];sn.apply(void 0,Re)}},gt.runIfEnterPrev=function(Ye){gt.runIfEnter(Ye,gt.prev)},gt.runIfEnterNext=function(Ye){gt.runIfEnter(Ye,gt.next)},gt.runIfEnterJumpPrev=function(Ye){gt.runIfEnter(Ye,gt.jumpPrev)},gt.runIfEnterJumpNext=function(Ye){gt.runIfEnter(Ye,gt.jumpNext)},gt.handleGoTO=function(Ye){(Ye.keyCode===mt.ENTER||Ye.type==="click")&>.handleChange(gt.state.currentInputValue)},gt.renderPrev=function(Ye){var sn=gt.props,Le=sn.prevIcon,Re=sn.itemRender,hn=Re(Ye,"prev",gt.getItemIcon(Le,"prev page")),wn=!gt.hasPrev();return(0,yt.isValidElement)(hn)?(0,yt.cloneElement)(hn,{disabled:wn}):hn},gt.renderNext=function(Ye){var sn=gt.props,Le=sn.nextIcon,Re=sn.itemRender,hn=Re(Ye,"next",gt.getItemIcon(Le,"next page")),wn=!gt.hasNext();return(0,yt.isValidElement)(hn)?(0,yt.cloneElement)(hn,{disabled:wn}):hn};var zt=dt.onChange!==$t,re="current"in dt;re&&!zt&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Zt=dt.defaultCurrent;"current"in dt&&(Zt=dt.current);var ye=dt.defaultPageSize;return"pageSize"in dt&&(ye=dt.pageSize),Zt=Math.min(Zt,oe(ye,void 0,dt)),gt.state={current:Zt,currentInputValue:Zt,pageSize:ye},gt}return(0,st.Z)(Pt,[{key:"componentDidUpdate",value:function(gt,zt){var re=this.props.prefixCls;if(zt.current!==this.state.current&&this.paginationNode.current){var Zt=this.paginationNode.current.querySelector(".".concat(re,"-item-").concat(zt.current));if(Zt&&document.activeElement===Zt){var ye;Zt==null||(ye=Zt.blur)===null||ye===void 0||ye.call(Zt)}}}},{key:"getValidValue",value:function(gt){var zt=gt.target.value,re=oe(void 0,this.state,this.props),Zt=this.state.currentInputValue,ye;return zt===""?ye=zt:Number.isNaN(Number(zt))?ye=Zt:zt>=re?ye=re:ye=Number(zt),ye}},{key:"getShowSizeChanger",value:function(){var gt=this.props,zt=gt.showSizeChanger,re=gt.total,Zt=gt.totalBoundaryShowSizeChanger;return typeof zt!="undefined"?zt:re>Zt}},{key:"render",value:function(){var gt=this.props,zt=gt.prefixCls,re=gt.className,Zt=gt.style,ye=gt.disabled,Ye=gt.hideOnSinglePage,sn=gt.total,Le=gt.locale,Re=gt.showQuickJumper,hn=gt.showLessItems,wn=gt.showTitle,kn=gt.showTotal,Rn=gt.simple,Yn=gt.itemRender,Kn=gt.showPrevNextJumpers,li=gt.jumpPrevIcon,mi=gt.jumpNextIcon,yi=gt.selectComponentClass,Pi=gt.selectPrefixCls,Mi=gt.pageSizeOptions,Gi=this.state,bi=Gi.current,Ki=Gi.pageSize,ui=Gi.currentInputValue;if(Ye===!0&&sn<=Ki)return null;var te=oe(void 0,this.state,this.props),Yi=[],Ti=null,or=null,Sr=null,Er=null,vr=null,qn=Re&&Re.goButton,tn=hn?1:2,nn=bi-1>0?bi-1:0,Qe=bi+1<te?bi+1:te,Fe=(0,ct.Z)(this.props,{aria:!0,data:!0}),vn=kn&&yt.createElement("li",{className:"".concat(zt,"-total-text")},kn(sn,[sn===0?0:(bi-1)*Ki+1,bi*Ki>sn?sn:bi*Ki]));if(Rn){qn&&(typeof qn=="boolean"?vr=yt.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Le.jump_to_confirm):vr=yt.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},qn),vr=yt.createElement("li",{title:wn?"".concat(Le.jump_to).concat(bi,"/").concat(te):null,className:"".concat(zt,"-simple-pager")},vr));var bn=this.renderPrev(nn);return yt.createElement("ul",(0,Rt.Z)({className:It()(zt,"".concat(zt,"-simple"),(0,vt.Z)({},"".concat(zt,"-disabled"),ye),re),style:Zt,ref:this.paginationNode},Fe),vn,bn?yt.createElement("li",{title:wn?Le.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:It()("".concat(zt,"-prev"),(0,vt.Z)({},"".concat(zt,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},bn):null,yt.createElement("li",{title:wn?"".concat(bi,"/").concat(te):null,className:"".concat(zt,"-simple-pager")},yt.createElement("input",{type:"text",value:ui,disabled:ye,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),yt.createElement("span",{className:"".concat(zt,"-slash")},"/"),te),yt.createElement("li",{title:wn?Le.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:It()("".concat(zt,"-next"),(0,vt.Z)({},"".concat(zt,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Qe)),vr)}if(te<=3+tn*2){var Ze={locale:Le,rootPrefixCls:zt,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:wn,itemRender:Yn};te||Yi.push(yt.createElement(Qt,(0,Rt.Z)({},Ze,{key:"noPager",page:1,className:"".concat(zt,"-item-disabled")})));for(var Ae=1;Ae<=te;Ae+=1){var gn=bi===Ae;Yi.push(yt.createElement(Qt,(0,Rt.Z)({},Ze,{key:Ae,page:Ae,active:gn})))}}else{var Pn=hn?Le.prev_3:Le.prev_5,Un=hn?Le.next_3:Le.next_5,mn=Yn(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(li,"prev page")),Me=Yn(this.getJumpNextPage(),"jump-next",this.getItemIcon(mi,"next page"));Kn&&(Ti=mn?yt.createElement("li",{title:wn?Pn:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:It()("".concat(zt,"-jump-prev"),(0,vt.Z)({},"".concat(zt,"-jump-prev-custom-icon"),!!li))},mn):null,or=Me?yt.createElement("li",{title:wn?Un:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:It()("".concat(zt,"-jump-next"),(0,vt.Z)({},"".concat(zt,"-jump-next-custom-icon"),!!mi))},Me):null),Er=yt.createElement(Qt,{locale:Le,last:!0,rootPrefixCls:zt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:te,page:te,active:!1,showTitle:wn,itemRender:Yn}),Sr=yt.createElement(Qt,{locale:Le,rootPrefixCls:zt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:wn,itemRender:Yn});var Ge=Math.max(1,bi-tn),fn=Math.min(bi+tn,te);bi-1<=tn&&(fn=1+tn*2),te-bi<=tn&&(Ge=te-tn*2);for(var In=Ge;In<=fn;In+=1){var Ke=bi===In;Yi.push(yt.createElement(Qt,{locale:Le,rootPrefixCls:zt,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:In,page:In,active:Ke,showTitle:wn,itemRender:Yn}))}bi-1>=tn*2&&bi!==3&&(Yi[0]=(0,yt.cloneElement)(Yi[0],{className:"".concat(zt,"-item-after-jump-prev")}),Yi.unshift(Ti)),te-bi>=tn*2&&bi!==te-2&&(Yi[Yi.length-1]=(0,yt.cloneElement)(Yi[Yi.length-1],{className:"".concat(zt,"-item-before-jump-next")}),Yi.push(or)),Ge!==1&&Yi.unshift(Sr),fn!==te&&Yi.push(Er)}var cn=!this.hasPrev()||!te,_e=!this.hasNext()||!te,on=this.renderPrev(nn),dn=this.renderNext(Qe);return yt.createElement("ul",(0,Rt.Z)({className:It()(zt,re,(0,vt.Z)({},"".concat(zt,"-disabled"),ye)),style:Zt,ref:this.paginationNode},Fe),vn,on?yt.createElement("li",{title:wn?Le.prev_page:null,onClick:this.prev,tabIndex:cn?null:0,onKeyPress:this.runIfEnterPrev,className:It()("".concat(zt,"-prev"),(0,vt.Z)({},"".concat(zt,"-disabled"),cn)),"aria-disabled":cn},on):null,Yi,dn?yt.createElement("li",{title:wn?Le.next_page:null,onClick:this.next,tabIndex:_e?null:0,onKeyPress:this.runIfEnterNext,className:It()("".concat(zt,"-next"),(0,vt.Z)({},"".concat(zt,"-disabled"),_e)),"aria-disabled":_e},dn):null,yt.createElement(Ut,{disabled:ye,locale:Le,rootPrefixCls:zt,selectComponentClass:yi,selectPrefixCls:Pi,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:bi,pageSize:Ki,pageSizeOptions:Mi,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:qn}))}}],[{key:"getDerivedStateFromProps",value:function(gt,zt){var re={};if("current"in gt&&(re.current=gt.current,gt.current!==zt.current&&(re.currentInputValue=re.current)),"pageSize"in gt&>.pageSize!==zt.pageSize){var Zt=zt.current,ye=oe(gt.pageSize,zt,gt);Zt=Zt>ye?ye:Zt,"current"in gt||(re.current=Zt,re.currentInputValue=Zt),re.pageSize=gt.pageSize}return re}}]),Pt}(yt.Component);we.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:$t,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:$t,locale:Ct.Z,style:{},itemRender:ue,totalBoundaryShowSizeChanger:50};var Se=we,Ne=Gt(22075),pe=Gt(36355),Ue=Gt(19716),de=Gt(8628),Jt=Gt(9763),ee=Gt(57809);const ae=Et=>yt.createElement(ee.default,Object.assign({},Et,{showSearch:!0,size:"small"})),fe=Et=>yt.createElement(ee.default,Object.assign({},Et,{showSearch:!0,size:"middle"}));ae.Option=ee.default.Option,fe.Option=ee.default.Option;var se=Gt(9937),De=Gt(17313),Oe=Gt(83116),en=Gt(37613);const We=Et=>{const{componentCls:Ht}=Et;return{[`${Ht}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Ht}-item-link`]:{color:Et.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Ht}-item-link`]:{color:Et.colorTextDisabled,cursor:"not-allowed"}}},[`&${Ht}-disabled`]:{cursor:"not-allowed",[`${Ht}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:Et.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:Et.colorBorder,backgroundColor:Et.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:Et.itemActiveBgDisabled},a:{color:Et.itemActiveColorDisabled}}},[`${Ht}-item-link`]:{color:Et.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Ht}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Ht}-simple-pager`]:{color:Et.colorTextDisabled},[`${Ht}-jump-prev, ${Ht}-jump-next`]:{[`${Ht}-item-link-icon`]:{opacity:0},[`${Ht}-item-ellipsis`]:{opacity:1}}},[`&${Ht}-simple`]:{[`${Ht}-prev, ${Ht}-next`]:{[`&${Ht}-disabled ${Ht}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},rn=Et=>{const{componentCls:Ht}=Et;return{[`&${Ht}-mini ${Ht}-total-text, &${Ht}-mini ${Ht}-simple-pager`]:{height:Et.itemSizeSM,lineHeight:`${Et.itemSizeSM}px`},[`&${Ht}-mini ${Ht}-item`]:{minWidth:Et.itemSizeSM,height:Et.itemSizeSM,margin:0,lineHeight:`${Et.itemSizeSM-2}px`},[`&${Ht}-mini:not(${Ht}-disabled) ${Ht}-item:not(${Ht}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:Et.colorBgTextHover},"&:active":{backgroundColor:Et.colorBgTextActive}},[`&${Ht}-mini ${Ht}-prev, &${Ht}-mini ${Ht}-next`]:{minWidth:Et.itemSizeSM,height:Et.itemSizeSM,margin:0,lineHeight:`${Et.itemSizeSM}px`},[`&${Ht}-mini:not(${Ht}-disabled)`]:{[`${Ht}-prev, ${Ht}-next`]:{[`&:hover ${Ht}-item-link`]:{backgroundColor:Et.colorBgTextHover},[`&:active ${Ht}-item-link`]:{backgroundColor:Et.colorBgTextActive},[`&${Ht}-disabled:hover ${Ht}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${Ht}-mini ${Ht}-prev ${Ht}-item-link,
|
|
|
&${Ht}-mini ${Ht}-next ${Ht}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:Et.itemSizeSM,lineHeight:`${Et.itemSizeSM}px`}},[`&${Ht}-mini ${Ht}-jump-prev, &${Ht}-mini ${Ht}-jump-next`]:{height:Et.itemSizeSM,marginInlineEnd:0,lineHeight:`${Et.itemSizeSM}px`},[`&${Ht}-mini ${Ht}-options`]:{marginInlineStart:Et.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:Et.miniOptionsSizeChangerTop},"&-quick-jumper":{height:Et.itemSizeSM,lineHeight:`${Et.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,se.x0)(Et)),{width:Et.paginationMiniQuickJumperInputWidth,height:Et.controlHeightSM})}}}},ke=Et=>{const{componentCls:Ht}=Et;return{[`
|
|
|
&${Ht}-simple ${Ht}-prev,
|
|
|
&${Ht}-simple ${Ht}-next
|
|
|
`]:{height:Et.itemSizeSM,lineHeight:`${Et.itemSizeSM}px`,verticalAlign:"top",[`${Ht}-item-link`]:{height:Et.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:Et.colorBgTextHover},"&:active":{backgroundColor:Et.colorBgTextActive},"&::after":{height:Et.itemSizeSM,lineHeight:`${Et.itemSizeSM}px`}}},[`&${Ht}-simple ${Ht}-simple-pager`]:{display:"inline-block",height:Et.itemSizeSM,marginInlineEnd:Et.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:Et.marginXS,padding:`0 ${Et.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:Et.itemInputBg,border:`${Et.lineWidth}px ${Et.lineType} ${Et.colorBorder}`,borderRadius:Et.borderRadius,outline:"none",transition:`border-color ${Et.motionDurationMid}`,color:"inherit","&:hover":{borderColor:Et.colorPrimary},"&:focus":{borderColor:Et.colorPrimaryHover,boxShadow:`${Et.inputOutlineOffset}px 0 ${Et.controlOutlineWidth}px ${Et.controlOutline}`},"&[disabled]":{color:Et.colorTextDisabled,backgroundColor:Et.colorBgContainerDisabled,borderColor:Et.colorBorder,cursor:"not-allowed"}}}}},Ie=Et=>{const{componentCls:Ht}=Et;return{[`${Ht}-jump-prev, ${Ht}-jump-next`]:{outline:0,[`${Ht}-item-container`]:{position:"relative",[`${Ht}-item-link-icon`]:{color:Et.colorPrimary,fontSize:Et.fontSizeSM,opacity:0,transition:`all ${Et.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Ht}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:Et.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:Et.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:Et.paginationEllipsisTextIndent,opacity:1,transition:`all ${Et.motionDurationMid}`}},"&:hover":{[`${Ht}-item-link-icon`]:{opacity:1},[`${Ht}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${Ht}-prev,
|
|
|
${Ht}-jump-prev,
|
|
|
${Ht}-jump-next
|
|
|
`]:{marginInlineEnd:Et.marginXS},[`
|
|
|
${Ht}-prev,
|
|
|
${Ht}-next,
|
|
|
${Ht}-jump-prev,
|
|
|
${Ht}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:Et.itemSize,height:Et.itemSize,color:Et.colorText,fontFamily:Et.fontFamily,lineHeight:`${Et.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:Et.borderRadius,cursor:"pointer",transition:`all ${Et.motionDurationMid}`},[`${Ht}-prev, ${Ht}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:Et.colorText,cursor:"pointer",userSelect:"none"},[`${Ht}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:Et.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${Et.lineWidth}px ${Et.lineType} transparent`,borderRadius:Et.borderRadius,outline:"none",transition:`all ${Et.motionDurationMid}`},[`&:hover ${Ht}-item-link`]:{backgroundColor:Et.colorBgTextHover},[`&:active ${Ht}-item-link`]:{backgroundColor:Et.colorBgTextActive},[`&${Ht}-disabled:hover`]:{[`${Ht}-item-link`]:{backgroundColor:"transparent"}}},[`${Ht}-slash`]:{marginInlineEnd:Et.paginationSlashMarginInlineEnd,marginInlineStart:Et.paginationSlashMarginInlineStart},[`${Ht}-options`]:{display:"inline-block",marginInlineStart:Et.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:Et.controlHeight,marginInlineStart:Et.marginXS,lineHeight:`${Et.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,se.ik)(Et)),{width:Et.controlHeightLG*1.25,height:Et.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:Et.marginXS,marginInlineEnd:Et.marginXS})}}}},je=Et=>{const{componentCls:Ht}=Et;return{[`${Ht}-item`]:{display:"inline-block",minWidth:Et.itemSize,height:Et.itemSize,marginInlineEnd:Et.marginXS,fontFamily:Et.fontFamily,lineHeight:`${Et.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${Et.lineWidth}px ${Et.lineType} transparent`,borderRadius:Et.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Et.paginationItemPaddingInline}px`,color:Et.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Ht}-item-active)`]:{"&:hover":{transition:`all ${Et.motionDurationMid}`,backgroundColor:Et.colorBgTextHover},"&:active":{backgroundColor:Et.colorBgTextActive}},"&-active":{fontWeight:Et.fontWeightStrong,backgroundColor:Et.itemActiveBg,borderColor:Et.colorPrimary,a:{color:Et.colorPrimary},"&:hover":{borderColor:Et.colorPrimaryHover},"&:hover a":{color:Et.colorPrimaryHover}}}}},$e=Et=>{const{componentCls:Ht}=Et;return{[Ht]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,De.Wf)(Et)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Ht}-total-text`]:{display:"inline-block",height:Et.itemSize,marginInlineEnd:Et.marginXS,lineHeight:`${Et.itemSize-2}px`,verticalAlign:"middle"}}),je(Et)),Ie(Et)),ke(Et)),rn(Et)),We(Et)),{[`@media only screen and (max-width: ${Et.screenLG}px)`]:{[`${Ht}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${Et.screenSM}px)`]:{[`${Ht}-options`]:{display:"none"}}}),[`&${Et.componentCls}-rtl`]:{direction:"rtl"}}},me=Et=>{const{componentCls:Ht}=Et;return{[`${Ht}${Ht}-disabled:not(${Ht}-mini)`]:{"&, &:hover":{[`${Ht}-item-link`]:{borderColor:Et.colorBorder}},"&:focus-visible":{[`${Ht}-item-link`]:{borderColor:Et.colorBorder}},[`${Ht}-item, ${Ht}-item-link`]:{backgroundColor:Et.colorBgContainerDisabled,borderColor:Et.colorBorder,[`&:hover:not(${Ht}-item-active)`]:{backgroundColor:Et.colorBgContainerDisabled,borderColor:Et.colorBorder,a:{color:Et.colorTextDisabled}},[`&${Ht}-item-active`]:{backgroundColor:Et.itemActiveBgDisabled}},[`${Ht}-prev, ${Ht}-next`]:{"&:hover button":{backgroundColor:Et.colorBgContainerDisabled,borderColor:Et.colorBorder,color:Et.colorTextDisabled},[`${Ht}-item-link`]:{backgroundColor:Et.colorBgContainerDisabled,borderColor:Et.colorBorder}}},[`${Ht}:not(${Ht}-mini)`]:{[`${Ht}-prev, ${Ht}-next`]:{"&:hover button":{borderColor:Et.colorPrimaryHover,backgroundColor:Et.itemBg},[`${Ht}-item-link`]:{backgroundColor:Et.itemLinkBg,borderColor:Et.colorBorder},[`&:hover ${Ht}-item-link`]:{borderColor:Et.colorPrimary,backgroundColor:Et.itemBg,color:Et.colorPrimary},[`&${Ht}-disabled`]:{[`${Ht}-item-link`]:{borderColor:Et.colorBorder,color:Et.colorTextDisabled}}},[`${Ht}-item`]:{backgroundColor:Et.itemBg,border:`${Et.lineWidth}px ${Et.lineType} ${Et.colorBorder}`,[`&:hover:not(${Ht}-item-active)`]:{borderColor:Et.colorPrimary,backgroundColor:Et.itemBg,a:{color:Et.colorPrimary}},"&-active":{borderColor:Et.colorPrimary}}}}},le=Et=>{const{componentCls:Ht}=Et;return{[`${Ht}:not(${Ht}-disabled)`]:{[`${Ht}-item`]:Object.assign({},(0,De.Qy)(Et)),[`${Ht}-jump-prev, ${Ht}-jump-next`]:{"&:focus-visible":Object.assign({[`${Ht}-item-link-icon`]:{opacity:1},[`${Ht}-item-ellipsis`]:{opacity:0}},(0,De.oN)(Et))},[`${Ht}-prev, ${Ht}-next`]:{[`&:focus-visible ${Ht}-item-link`]:Object.assign({},(0,De.oN)(Et))}}}};var Ee=(0,Oe.Z)("Pagination",Et=>{const Ht=(0,en.TS)(Et,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:Et.marginXXS/2,paginationMiniQuickJumperInputWidth:Et.controlHeightLG*1.1,paginationItemPaddingInline:Et.marginXXS*1.5,paginationEllipsisLetterSpacing:Et.marginXXS/2,paginationSlashMarginInlineStart:Et.marginXXS,paginationSlashMarginInlineEnd:Et.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,se.e5)(Et),(0,se.TM)(Et));return[$e(Ht),le(Ht),Et.wireframe&&me(Ht)]},Et=>({itemBg:Et.colorBgContainer,itemSize:Et.controlHeight,itemSizeSM:Et.controlHeightSM,itemActiveBg:Et.colorBgContainer,itemLinkBg:Et.colorBgContainer,itemActiveColorDisabled:Et.colorTextDisabled,itemActiveBgDisabled:Et.controlItemBgActiveDisabled,itemInputBg:Et.colorBgContainer,miniOptionsSizeChangerTop:0})),ce=function(Et,Ht){var Pt={};for(var dt in Et)Object.prototype.hasOwnProperty.call(Et,dt)&&Ht.indexOf(dt)<0&&(Pt[dt]=Et[dt]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gt=0,dt=Object.getOwnPropertySymbols(Et);gt<dt.length;gt++)Ht.indexOf(dt[gt])<0&&Object.prototype.propertyIsEnumerable.call(Et,dt[gt])&&(Pt[dt[gt]]=Et[dt[gt]]);return Pt},_t=Et=>{const{prefixCls:Ht,selectPrefixCls:Pt,className:dt,rootClassName:gt,style:zt,size:re,locale:Zt,selectComponentClass:ye,responsive:Ye,showSizeChanger:sn}=Et,Le=ce(Et,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Re}=(0,de.Z)(Ye),{getPrefixCls:hn,direction:wn,pagination:kn={}}=yt.useContext(pe.E_),Rn=hn("pagination",Ht),[Yn,Kn]=Ee(Rn),li=sn!=null?sn:kn.showSizeChanger,mi=yt.useMemo(()=>{const te=yt.createElement("span",{className:`${Rn}-item-ellipsis`},"\u2022\u2022\u2022"),Yi=yt.createElement("button",{className:`${Rn}-item-link`,type:"button",tabIndex:-1},wn==="rtl"?yt.createElement(bt.Z,null):yt.createElement(At.Z,null)),Ti=yt.createElement("button",{className:`${Rn}-item-link`,type:"button",tabIndex:-1},wn==="rtl"?yt.createElement(At.Z,null):yt.createElement(bt.Z,null)),or=yt.createElement("a",{className:`${Rn}-item-link`},yt.createElement("div",{className:`${Rn}-item-container`},wn==="rtl"?yt.createElement(Bt.Z,{className:`${Rn}-item-link-icon`}):yt.createElement(Ot,{className:`${Rn}-item-link-icon`}),te)),Sr=yt.createElement("a",{className:`${Rn}-item-link`},yt.createElement("div",{className:`${Rn}-item-container`},wn==="rtl"?yt.createElement(Ot,{className:`${Rn}-item-link-icon`}):yt.createElement(Bt.Z,{className:`${Rn}-item-link-icon`}),te));return{prevIcon:Yi,nextIcon:Ti,jumpPrevIcon:or,jumpNextIcon:Sr}},[wn,Rn]),[yi]=(0,Jt.Z)("Pagination",Ne.Z),Pi=Object.assign(Object.assign({},yi),Zt),Mi=(0,Ue.Z)(re),Gi=Mi==="small"||!!(Re&&!Mi&&Ye),bi=hn("select",Pt),Ki=It()({[`${Rn}-mini`]:Gi,[`${Rn}-rtl`]:wn==="rtl"},kn==null?void 0:kn.className,dt,gt,Kn),ui=Object.assign(Object.assign({},kn==null?void 0:kn.style),zt);return Yn(yt.createElement(Se,Object.assign({},mi,Le,{style:ui,prefixCls:Rn,selectPrefixCls:bi,className:Ki,selectComponentClass:ye||(Gi?ae:fe),locale:Pi,showSizeChanger:li})))},Mt=_t},93948:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return sn}});var Rt=Gt(59301),yt=Gt(79999),Vt=Gt(10402),Yt=Gt(33130),Nt=Gt(72119),Wt=Gt(92310),xt=Gt.n(Wt),Ot=Gt(64002),Bt=Gt(36355),At=Gt(5891),bt=Gt(57259),Tt=Gt(19149),It={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},vt=function(){var Re=(0,Rt.useRef)([]),hn=(0,Rt.useRef)(null);return(0,Rt.useEffect)(function(){var wn=Date.now(),kn=!1;Re.current.forEach(function(Rn){if(Rn){kn=!0;var Yn=Rn.style;Yn.transitionDuration=".3s, .3s, .3s, .06s",hn.current&&wn-hn.current<100&&(Yn.transitionDuration="0s, 0s")}}),kn&&(hn.current=Date.now())}),Re.current},et=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],tt=function(Re){var hn=(0,bt.Z)((0,bt.Z)({},It),Re),wn=hn.className,kn=hn.percent,Rn=hn.prefixCls,Yn=hn.strokeColor,Kn=hn.strokeLinecap,li=hn.strokeWidth,mi=hn.style,yi=hn.trailColor,Pi=hn.trailWidth,Mi=hn.transition,Gi=(0,Tt.Z)(hn,et);delete Gi.gapPosition;var bi=Array.isArray(kn)?kn:[kn],Ki=Array.isArray(Yn)?Yn:[Yn],ui=vt(),te=li/2,Yi=100-li/2,Ti="M ".concat(Kn==="round"?te:0,",").concat(te,`
|
|
|
L `).concat(Kn==="round"?Yi:100,",").concat(te),or="0 0 100 ".concat(li),Sr=0;return Rt.createElement("svg",(0,At.Z)({className:xt()("".concat(Rn,"-line"),wn),viewBox:or,preserveAspectRatio:"none",style:mi},Gi),Rt.createElement("path",{className:"".concat(Rn,"-line-trail"),d:Ti,strokeLinecap:Kn,stroke:yi,strokeWidth:Pi||li,fillOpacity:"0"}),bi.map(function(Er,vr){var qn=1;switch(Kn){case"round":qn=1-li/100;break;case"square":qn=1-li/2/100;break;default:qn=1;break}var tn={strokeDasharray:"".concat(Er*qn,"px, 100px"),strokeDashoffset:"-".concat(Sr,"px"),transition:Mi||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},nn=Ki[vr]||Ki[Ki.length-1];return Sr+=Er,Rt.createElement("path",{key:vr,className:"".concat(Rn,"-line-path"),d:Ti,strokeLinecap:Kn,stroke:nn,strokeWidth:li,fillOpacity:"0",ref:function(Fe){ui[vr]=Fe},style:tn})}))},st=tt,rt=Gt(80665),ut=Gt(29043),ct=Gt(87746),pt=0,mt=(0,ct.Z)();function Ct(){var Le;return mt?(Le=pt,pt+=1):Le="TEST_OR_SSR",Le}var Dt=function(Le){var Re=Rt.useState(),hn=(0,ut.Z)(Re,2),wn=hn[0],kn=hn[1];return Rt.useEffect(function(){kn("rc_progress_".concat(Ct()))},[]),Le||wn},Ut=function(Re){var hn=Re.bg,wn=Re.children;return Rt.createElement("div",{style:{width:"100%",height:"100%",background:hn}},wn)};function Ft(Le,Re){return Object.keys(Le).map(function(hn){var wn=parseFloat(hn),kn="".concat(Math.floor(wn*Re),"%");return"".concat(Le[hn]," ").concat(kn)})}var Qt=Rt.forwardRef(function(Le,Re){var hn=Le.prefixCls,wn=Le.color,kn=Le.gradientId,Rn=Le.radius,Yn=Le.style,Kn=Le.ptg,li=Le.strokeLinecap,mi=Le.strokeWidth,yi=Le.size,Pi=Le.gapDegree,Mi=wn&&(0,rt.Z)(wn)==="object",Gi=Mi?"#FFF":void 0,bi=yi/2,Ki=Rt.createElement("circle",{className:"".concat(hn,"-circle-path"),r:Rn,cx:bi,cy:bi,stroke:Gi,strokeLinecap:li,strokeWidth:mi,opacity:Kn===0?0:1,style:Yn,ref:Re});if(!Mi)return Ki;var ui="".concat(kn,"-conic"),te=Pi?"".concat(180+Pi/2,"deg"):"0deg",Yi=Ft(wn,(360-Pi)/360),Ti=Ft(wn,1),or="conic-gradient(from ".concat(te,", ").concat(Yi.join(", "),")"),Sr="linear-gradient(to ".concat(Pi?"bottom":"top",", ").concat(Ti.join(", "),")");return Rt.createElement(Rt.Fragment,null,Rt.createElement("mask",{id:ui},Ki),Rt.createElement("foreignObject",{x:0,y:0,width:yi,height:yi,mask:"url(#".concat(ui,")")},Rt.createElement(Ut,{bg:Sr},Rt.createElement(Ut,{bg:or}))))}),$t=Qt,Kt=100,ue=function(Re,hn,wn,kn,Rn,Yn,Kn,li,mi,yi){var Pi=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Mi=wn/100*360*((360-Yn)/360),Gi=Yn===0?0:{bottom:0,top:180,left:90,right:-90}[Kn],bi=(100-kn)/100*hn;mi==="round"&&kn!==100&&(bi+=yi/2,bi>=hn&&(bi=hn-.01));var Ki=Kt/2;return{stroke:typeof li=="string"?li:void 0,strokeDasharray:"".concat(hn,"px ").concat(Re),strokeDashoffset:bi+Pi,transform:"rotate(".concat(Rn+Mi+Gi,"deg)"),transformOrigin:"".concat(Ki,"px ").concat(Ki,"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}},oe=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function we(Le){var Re=Le!=null?Le:[];return Array.isArray(Re)?Re:[Re]}var Se=function(Re){var hn=(0,bt.Z)((0,bt.Z)({},It),Re),wn=hn.id,kn=hn.prefixCls,Rn=hn.steps,Yn=hn.strokeWidth,Kn=hn.trailWidth,li=hn.gapDegree,mi=li===void 0?0:li,yi=hn.gapPosition,Pi=hn.trailColor,Mi=hn.strokeLinecap,Gi=hn.style,bi=hn.className,Ki=hn.strokeColor,ui=hn.percent,te=(0,Tt.Z)(hn,oe),Yi=Kt/2,Ti=Dt(wn),or="".concat(Ti,"-gradient"),Sr=Yi-Yn/2,Er=Math.PI*2*Sr,vr=mi>0?90+mi/2:-90,qn=Er*((360-mi)/360),tn=(0,rt.Z)(Rn)==="object"?Rn:{count:Rn,space:2},nn=tn.count,Qe=tn.space,Fe=we(ui),vn=we(Ki),bn=vn.find(function(Me){return Me&&(0,rt.Z)(Me)==="object"}),Ze=bn&&(0,rt.Z)(bn)==="object",Ae=Ze?"butt":Mi,gn=ue(Er,qn,0,100,vr,mi,yi,Pi,Ae,Yn),Pn=vt(),Un=function(){var Ge=0;return Fe.map(function(fn,In){var Ke=vn[In]||vn[vn.length-1],cn=ue(Er,qn,Ge,fn,vr,mi,yi,Ke,Ae,Yn);return Ge+=fn,Rt.createElement($t,{key:In,color:Ke,ptg:fn,radius:Sr,prefixCls:kn,gradientId:or,style:cn,strokeLinecap:Ae,strokeWidth:Yn,gapDegree:mi,ref:function(on){Pn[In]=on},size:Kt})}).reverse()},mn=function(){var Ge=Math.round(nn*(Fe[0]/100)),fn=100/nn,In=0;return new Array(nn).fill(null).map(function(Ke,cn){var _e=cn<=Ge-1?vn[0]:Pi,on=_e&&(0,rt.Z)(_e)==="object"?"url(#".concat(or,")"):void 0,dn=ue(Er,qn,In,fn,vr,mi,yi,_e,"butt",Yn,Qe);return In+=(qn-dn.strokeDashoffset+Qe)*100/qn,Rt.createElement("circle",{key:cn,className:"".concat(kn,"-circle-path"),r:Sr,cx:Yi,cy:Yi,stroke:on,strokeWidth:Yn,opacity:1,style:dn,ref:function(xn){Pn[cn]=xn}})})};return Rt.createElement("svg",(0,At.Z)({className:xt()("".concat(kn,"-circle"),bi),viewBox:"0 0 ".concat(Kt," ").concat(Kt),style:Gi,id:wn,role:"presentation"},te),!nn&&Rt.createElement("circle",{className:"".concat(kn,"-circle-trail"),r:Sr,cx:Yi,cy:Yi,stroke:Pi,strokeLinecap:Ae,strokeWidth:Kn||Yn,style:gn}),nn?mn():Un())},Ne=Se,pe={Line:st,Circle:Ne},Ue=Gt(6848),de=Gt(93398);function Jt(Le){return!Le||Le<0?0:Le>100?100:Le}function ee(Le){let{success:Re,successPercent:hn}=Le,wn=hn;return Re&&"progress"in Re&&(wn=Re.progress),Re&&"percent"in Re&&(wn=Re.percent),wn}const ae=Le=>{let{percent:Re,success:hn,successPercent:wn}=Le;const kn=Jt(ee({success:hn,successPercent:wn}));return[kn,Jt(Jt(Re)-kn)]},fe=Le=>{let{success:Re={},strokeColor:hn}=Le;const{strokeColor:wn}=Re;return[wn||de.presetPrimaryColors.green,hn||null]},se=(Le,Re,hn)=>{var wn,kn,Rn,Yn;let Kn=-1,li=-1;if(Re==="step"){const mi=hn.steps,yi=hn.strokeWidth;typeof Le=="string"||typeof Le=="undefined"?(Kn=Le==="small"?2:14,li=yi!=null?yi:8):typeof Le=="number"?[Kn,li]=[Le,Le]:[Kn=14,li=8]=Le,Kn*=mi}else if(Re==="line"){const mi=hn==null?void 0:hn.strokeWidth;typeof Le=="string"||typeof Le=="undefined"?li=mi||(Le==="small"?6:8):typeof Le=="number"?[Kn,li]=[Le,Le]:[Kn=-1,li=8]=Le}else(Re==="circle"||Re==="dashboard")&&(typeof Le=="string"||typeof Le=="undefined"?[Kn,li]=Le==="small"?[60,60]:[120,120]:typeof Le=="number"?[Kn,li]=[Le,Le]:(Kn=(kn=(wn=Le[0])!==null&&wn!==void 0?wn:Le[1])!==null&&kn!==void 0?kn:120,li=(Yn=(Rn=Le[0])!==null&&Rn!==void 0?Rn:Le[1])!==null&&Yn!==void 0?Yn:120));return[Kn,li]},De=3,Oe=Le=>De/Le*100;var We=Le=>{const{prefixCls:Re,trailColor:hn=null,strokeLinecap:wn="round",gapPosition:kn,gapDegree:Rn,width:Yn=120,type:Kn,children:li,success:mi,size:yi=Yn}=Le,[Pi,Mi]=se(yi,"circle");let{strokeWidth:Gi}=Le;Gi===void 0&&(Gi=Math.max(Oe(Pi),6));const bi={width:Pi,height:Mi,fontSize:Pi*.15+6},Ki=Rt.useMemo(()=>{if(Rn||Rn===0)return Rn;if(Kn==="dashboard")return 75},[Rn,Kn]),ui=kn||Kn==="dashboard"&&"bottom"||void 0,te=Object.prototype.toString.call(Le.strokeColor)==="[object Object]",Yi=fe({success:mi,strokeColor:Le.strokeColor}),Ti=xt()(`${Re}-inner`,{[`${Re}-circle-gradient`]:te}),or=Rt.createElement(Ne,{percent:ae(Le),strokeWidth:Gi,trailWidth:Gi,strokeColor:Yi,strokeLinecap:wn,trailColor:hn,prefixCls:Re,gapDegree:Ki,gapPosition:ui});return Rt.createElement("div",{className:Ti,style:bi},Pi<=20?Rt.createElement(Ue.Z,{title:li},Rt.createElement("span",null,or)):Rt.createElement(Rt.Fragment,null,or,li))},rn=function(Le,Re){var hn={};for(var wn in Le)Object.prototype.hasOwnProperty.call(Le,wn)&&Re.indexOf(wn)<0&&(hn[wn]=Le[wn]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kn=0,wn=Object.getOwnPropertySymbols(Le);kn<wn.length;kn++)Re.indexOf(wn[kn])<0&&Object.prototype.propertyIsEnumerable.call(Le,wn[kn])&&(hn[wn[kn]]=Le[wn[kn]]);return hn};const ke=Le=>{let Re=[];return Object.keys(Le).forEach(hn=>{const wn=parseFloat(hn.replace(/%/g,""));isNaN(wn)||Re.push({key:wn,value:Le[hn]})}),Re=Re.sort((hn,wn)=>hn.key-wn.key),Re.map(hn=>{let{key:wn,value:kn}=hn;return`${kn} ${wn}%`}).join(", ")},Ie=(Le,Re)=>{const{from:hn=de.presetPrimaryColors.blue,to:wn=de.presetPrimaryColors.blue,direction:kn=Re==="rtl"?"to left":"to right"}=Le,Rn=rn(Le,["from","to","direction"]);if(Object.keys(Rn).length!==0){const Yn=ke(Rn);return{backgroundImage:`linear-gradient(${kn}, ${Yn})`}}return{backgroundImage:`linear-gradient(${kn}, ${hn}, ${wn})`}};var $e=Le=>{const{prefixCls:Re,direction:hn,percent:wn,size:kn,strokeWidth:Rn,strokeColor:Yn,strokeLinecap:Kn="round",children:li,trailColor:mi=null,success:yi}=Le,Pi=Yn&&typeof Yn!="string"?Ie(Yn,hn):{backgroundColor:Yn},Mi=Kn==="square"||Kn==="butt"?0:void 0,Gi={backgroundColor:mi||void 0,borderRadius:Mi},bi=kn!=null?kn:[-1,Rn||(kn==="small"?6:8)],[Ki,ui]=se(bi,"line",{strokeWidth:Rn}),te=Object.assign({width:`${Jt(wn)}%`,height:ui,borderRadius:Mi},Pi),Yi=ee(Le),Ti={width:`${Jt(Yi)}%`,height:ui,borderRadius:Mi,backgroundColor:yi==null?void 0:yi.strokeColor},or={width:Ki<0?"100%":Ki,height:ui};return Rt.createElement(Rt.Fragment,null,Rt.createElement("div",{className:`${Re}-outer`,style:or},Rt.createElement("div",{className:`${Re}-inner`,style:Gi},Rt.createElement("div",{className:`${Re}-bg`,style:te}),Yi!==void 0?Rt.createElement("div",{className:`${Re}-success-bg`,style:Ti}):null)),li)},le=Le=>{const{size:Re,steps:hn,percent:wn=0,strokeWidth:kn=8,strokeColor:Rn,trailColor:Yn=null,prefixCls:Kn,children:li}=Le,mi=Math.round(hn*(wn/100)),yi=Re==="small"?2:14,Pi=Re!=null?Re:[yi,kn],[Mi,Gi]=se(Pi,"step",{steps:hn,strokeWidth:kn}),bi=Mi/hn,Ki=new Array(hn);for(let ui=0;ui<hn;ui++){const te=Array.isArray(Rn)?Rn[ui]:Rn;Ki[ui]=Rt.createElement("div",{key:ui,className:xt()(`${Kn}-steps-item`,{[`${Kn}-steps-item-active`]:ui<=mi-1}),style:{backgroundColor:ui<=mi-1?te:Yn,width:bi,height:Gi}})}return Rt.createElement("div",{className:`${Kn}-steps-outer`},Ki,li)},Ee=Gt(9792),ce=Gt(17313),he=Gt(83116),_t=Gt(37613);const Mt=Le=>{const Re=Le?"100%":"-100%";return new Ee.Keyframes(`antProgress${Le?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Re}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Re}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Et=Le=>{const{componentCls:Re,iconCls:hn}=Le;return{[Re]:Object.assign(Object.assign({},(0,ce.Wf)(Le)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Le.fontSize,marginInlineEnd:Le.marginXS,marginBottom:Le.marginXS},[`${Re}-outer`]:{display:"inline-block",width:"100%"},[`&${Re}-show-info`]:{[`${Re}-outer`]:{marginInlineEnd:`calc(-2em - ${Le.marginXS}px)`,paddingInlineEnd:`calc(2em + ${Le.paddingXS}px)`}},[`${Re}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:Le.remainingColor,borderRadius:Le.lineBorderRadius},[`${Re}-inner:not(${Re}-circle-gradient)`]:{[`${Re}-circle-path`]:{stroke:Le.defaultColor}},[`${Re}-success-bg, ${Re}-bg`]:{position:"relative",backgroundColor:Le.defaultColor,borderRadius:Le.lineBorderRadius,transition:`all ${Le.motionDurationSlow} ${Le.motionEaseInOutCirc}`},[`${Re}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Le.colorSuccess},[`${Re}-text`]:{display:"inline-block",width:"2em",marginInlineStart:Le.marginXS,color:Le.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[hn]:{fontSize:Le.fontSize}},[`&${Re}-status-active`]:{[`${Re}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Le.colorBgContainer,borderRadius:Le.lineBorderRadius,opacity:0,animationName:Mt(),animationDuration:Le.progressActiveMotionDuration,animationTimingFunction:Le.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Re}-rtl${Re}-status-active`]:{[`${Re}-bg::before`]:{animationName:Mt(!0)}},[`&${Re}-status-exception`]:{[`${Re}-bg`]:{backgroundColor:Le.colorError},[`${Re}-text`]:{color:Le.colorError}},[`&${Re}-status-exception ${Re}-inner:not(${Re}-circle-gradient)`]:{[`${Re}-circle-path`]:{stroke:Le.colorError}},[`&${Re}-status-success`]:{[`${Re}-bg`]:{backgroundColor:Le.colorSuccess},[`${Re}-text`]:{color:Le.colorSuccess}},[`&${Re}-status-success ${Re}-inner:not(${Re}-circle-gradient)`]:{[`${Re}-circle-path`]:{stroke:Le.colorSuccess}}})}},Ht=Le=>{const{componentCls:Re,iconCls:hn}=Le;return{[Re]:{[`${Re}-circle-trail`]:{stroke:Le.remainingColor},[`&${Re}-circle ${Re}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Re}-circle ${Re}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Le.circleTextColor,fontSize:Le.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[hn]:{fontSize:`${Le.fontSize/Le.fontSizeSM}em`}},[`${Re}-circle&-status-exception`]:{[`${Re}-text`]:{color:Le.colorError}},[`${Re}-circle&-status-success`]:{[`${Re}-text`]:{color:Le.colorSuccess}}},[`${Re}-inline-circle`]:{lineHeight:1,[`${Re}-inner`]:{verticalAlign:"bottom"}}}},Pt=Le=>{const{componentCls:Re}=Le;return{[Re]:{[`${Re}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Le.progressStepMinWidth,marginInlineEnd:Le.progressStepMarginInlineEnd,backgroundColor:Le.remainingColor,transition:`all ${Le.motionDurationSlow}`,"&-active":{backgroundColor:Le.defaultColor}}}}}},dt=Le=>{const{componentCls:Re,iconCls:hn}=Le;return{[Re]:{[`${Re}-small&-line, ${Re}-small&-line ${Re}-text ${hn}`]:{fontSize:Le.fontSizeSM}}}};var gt=(0,he.Z)("Progress",Le=>{const Re=Le.marginXXS/2,hn=(0,_t.TS)(Le,{progressStepMarginInlineEnd:Re,progressStepMinWidth:Re,progressActiveMotionDuration:"2.4s"});return[Et(hn),Ht(hn),Pt(hn),dt(hn)]},Le=>({circleTextColor:Le.colorText,defaultColor:Le.colorInfo,remainingColor:Le.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),zt=function(Le,Re){var hn={};for(var wn in Le)Object.prototype.hasOwnProperty.call(Le,wn)&&Re.indexOf(wn)<0&&(hn[wn]=Le[wn]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kn=0,wn=Object.getOwnPropertySymbols(Le);kn<wn.length;kn++)Re.indexOf(wn[kn])<0&&Object.prototype.propertyIsEnumerable.call(Le,wn[kn])&&(hn[wn[kn]]=Le[wn[kn]]);return hn};const re=null,Zt=["normal","exception","active","success"];var Ye=Rt.forwardRef((Le,Re)=>{const{prefixCls:hn,className:wn,rootClassName:kn,steps:Rn,strokeColor:Yn,percent:Kn=0,size:li="default",showInfo:mi=!0,type:yi="line",status:Pi,format:Mi,style:Gi}=Le,bi=zt(Le,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Ki=Rt.useMemo(()=>{var Fe,vn;const bn=ee(Le);return parseInt(bn!==void 0?(Fe=bn!=null?bn:0)===null||Fe===void 0?void 0:Fe.toString():(vn=Kn!=null?Kn:0)===null||vn===void 0?void 0:vn.toString(),10)},[Kn,Le.success,Le.successPercent]),ui=Rt.useMemo(()=>!Zt.includes(Pi)&&Ki>=100?"success":Pi||"normal",[Pi,Ki]),{getPrefixCls:te,direction:Yi,progress:Ti}=Rt.useContext(Bt.E_),or=te("progress",hn),[Sr,Er]=gt(or),vr=Rt.useMemo(()=>{if(!mi)return null;const Fe=ee(Le);let vn;const bn=Mi||(Ae=>`${Ae}%`),Ze=yi==="line";return Mi||ui!=="exception"&&ui!=="success"?vn=bn(Jt(Kn),Jt(Fe)):ui==="exception"?vn=Ze?Rt.createElement(Yt.Z,null):Rt.createElement(Nt.Z,null):ui==="success"&&(vn=Ze?Rt.createElement(yt.Z,null):Rt.createElement(Vt.Z,null)),Rt.createElement("span",{className:`${or}-text`,title:typeof vn=="string"?vn:void 0},vn)},[mi,Kn,Ki,ui,yi,or,Mi]),qn=Array.isArray(Yn)?Yn[0]:Yn,tn=typeof Yn=="string"||Array.isArray(Yn)?Yn:void 0;let nn;yi==="line"?nn=Rn?Rt.createElement(le,Object.assign({},Le,{strokeColor:tn,prefixCls:or,steps:Rn}),vr):Rt.createElement($e,Object.assign({},Le,{strokeColor:qn,prefixCls:or,direction:Yi}),vr):(yi==="circle"||yi==="dashboard")&&(nn=Rt.createElement(We,Object.assign({},Le,{strokeColor:qn,prefixCls:or,progressStatus:ui}),vr));const Qe=xt()(or,`${or}-status-${ui}`,`${or}-${yi==="dashboard"&&"circle"||Rn&&"steps"||yi}`,{[`${or}-inline-circle`]:yi==="circle"&&se(li,"circle")[0]<=20,[`${or}-show-info`]:mi,[`${or}-${li}`]:typeof li=="string",[`${or}-rtl`]:Yi==="rtl"},Ti==null?void 0:Ti.className,wn,kn,Er);return Sr(Rt.createElement("div",Object.assign({ref:Re,style:Object.assign(Object.assign({},Ti==null?void 0:Ti.style),Gi),className:Qe,role:"progressbar","aria-valuenow":Ki},(0,Ot.Z)(bi,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),nn))}),sn=Ye},39978:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Jt}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(ae,fe){return yt.createElement(Nt.Z,(0,Rt.Z)({},ae,{ref:fe,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt,Bt=Gt(92310),At=Gt.n(Bt),bt=Gt(80962),Tt=Gt(29043),It=Gt(19149),vt=Gt(35788),et=Gt(85108),tt=Gt(36994);function st(ee,ae){var fe=ee.disabled,se=ee.prefixCls,De=ee.character,Oe=ee.characterRender,en=ee.index,We=ee.count,rn=ee.value,ke=ee.allowHalf,Ie=ee.focused,je=ee.onHover,$e=ee.onClick,me=function(Ht){je(Ht,en)},le=function(Ht){$e(Ht,en)},Ee=function(Ht){Ht.keyCode===et.Z.ENTER&&$e(Ht,en)},ce=en+1,he=new Set([se]);rn===0&&en===0&&Ie?he.add("".concat(se,"-focused")):ke&&rn+.5>=ce&&rn<ce?(he.add("".concat(se,"-half")),he.add("".concat(se,"-active")),Ie&&he.add("".concat(se,"-focused"))):(ce<=rn?he.add("".concat(se,"-full")):he.add("".concat(se,"-zero")),ce===rn&&Ie&&he.add("".concat(se,"-focused")));var _t=typeof De=="function"?De(ee):De,Mt=yt.createElement("li",{className:At()(Array.from(he)),ref:ae},yt.createElement("div",{onClick:fe?null:le,onKeyDown:fe?null:Ee,onMouseMove:fe?null:me,role:"radio","aria-checked":rn>en?"true":"false","aria-posinset":en+1,"aria-setsize":We,tabIndex:fe?-1:0},yt.createElement("div",{className:"".concat(se,"-first")},_t),yt.createElement("div",{className:"".concat(se,"-second")},_t)));return Oe&&(Mt=Oe(Mt,ee)),Mt}var rt=yt.forwardRef(st);function ut(){var ee=yt.useRef({});function ae(se){return ee.current[se]}function fe(se){return function(De){ee.current[se]=De}}return[ae,fe]}function ct(ee){var ae=ee.pageXOffset,fe="scrollLeft";if(typeof ae!="number"){var se=ee.document;ae=se.documentElement[fe],typeof ae!="number"&&(ae=se.body[fe])}return ae}function pt(ee){var ae,fe,se=ee.ownerDocument,De=se.body,Oe=se&&se.documentElement,en=ee.getBoundingClientRect();return ae=en.left,fe=en.top,ae-=Oe.clientLeft||De.clientLeft||0,fe-=Oe.clientTop||De.clientTop||0,{left:ae,top:fe}}function mt(ee){var ae=pt(ee),fe=ee.ownerDocument,se=fe.defaultView||fe.parentWindow;return ae.left+=ct(se),ae.left}var Ct=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Dt(ee,ae){var fe,se=ee.prefixCls,De=se===void 0?"rc-rate":se,Oe=ee.className,en=ee.defaultValue,We=ee.value,rn=ee.count,ke=rn===void 0?5:rn,Ie=ee.allowHalf,je=Ie===void 0?!1:Ie,$e=ee.allowClear,me=$e===void 0?!0:$e,le=ee.character,Ee=le===void 0?"\u2605":le,ce=ee.characterRender,he=ee.disabled,_t=ee.direction,Mt=_t===void 0?"ltr":_t,Et=ee.tabIndex,Ht=Et===void 0?0:Et,Pt=ee.autoFocus,dt=ee.onHoverChange,gt=ee.onChange,zt=ee.onFocus,re=ee.onBlur,Zt=ee.onKeyDown,ye=ee.onMouseLeave,Ye=(0,It.Z)(ee,Ct),sn=ut(),Le=(0,Tt.Z)(sn,2),Re=Le[0],hn=Le[1],wn=yt.useRef(null),kn=function(){if(!he){var Ae;(Ae=wn.current)===null||Ae===void 0||Ae.focus()}};yt.useImperativeHandle(ae,function(){return{focus:kn,blur:function(){if(!he){var Ae;(Ae=wn.current)===null||Ae===void 0||Ae.blur()}}}});var Rn=(0,vt.Z)(en||0,{value:We}),Yn=(0,Tt.Z)(Rn,2),Kn=Yn[0],li=Yn[1],mi=(0,vt.Z)(null),yi=(0,Tt.Z)(mi,2),Pi=yi[0],Mi=yi[1],Gi=function(Ae,gn){var Pn=Mt==="rtl",Un=Ae+1;if(je){var mn=Re(Ae),Me=mt(mn),Ge=mn.clientWidth;(Pn&&gn-Me>Ge/2||!Pn&&gn-Me<Ge/2)&&(Un-=.5)}return Un},bi=function(Ae){li(Ae),gt==null||gt(Ae)},Ki=yt.useState(!1),ui=(0,Tt.Z)(Ki,2),te=ui[0],Yi=ui[1],Ti=function(){Yi(!0),zt==null||zt()},or=function(){Yi(!1),re==null||re()},Sr=yt.useState(null),Er=(0,Tt.Z)(Sr,2),vr=Er[0],qn=Er[1],tn=function(Ae,gn){var Pn=Gi(gn,Ae.pageX);Pn!==Pi&&(qn(Pn),Mi(null)),dt==null||dt(Pn)},nn=function(Ae){he||(qn(null),Mi(null),dt==null||dt(void 0)),Ae&&(ye==null||ye(Ae))},Qe=function(Ae,gn){var Pn=Gi(gn,Ae.pageX),Un=!1;me&&(Un=Pn===Kn),nn(),bi(Un?0:Pn),Mi(Un?Pn:null)},Fe=function(Ae){var gn=Ae.keyCode,Pn=Mt==="rtl",Un=Kn;gn===et.Z.RIGHT&&Un<ke&&!Pn?(je?Un+=.5:Un+=1,bi(Un),Ae.preventDefault()):gn===et.Z.LEFT&&Un>0&&!Pn||gn===et.Z.RIGHT&&Un>0&&Pn?(je?Un-=.5:Un-=1,bi(Un),Ae.preventDefault()):gn===et.Z.LEFT&&Un<ke&&Pn&&(je?Un+=.5:Un+=1,bi(Un),Ae.preventDefault()),Zt==null||Zt(Ae)};yt.useEffect(function(){Pt&&!he&&kn()},[]);var vn=new Array(ke).fill(0).map(function(Ze,Ae){return yt.createElement(rt,{ref:hn(Ae),index:Ae,count:ke,disabled:he,prefixCls:"".concat(De,"-star"),allowHalf:je,value:vr===null?Kn:vr,onClick:Qe,onHover:tn,key:Ze||Ae,character:Ee,characterRender:ce,focused:te})}),bn=At()(De,Oe,(fe={},(0,bt.Z)(fe,"".concat(De,"-disabled"),he),(0,bt.Z)(fe,"".concat(De,"-rtl"),Mt==="rtl"),fe));return yt.createElement("ul",(0,Rt.Z)({className:bn,onMouseLeave:nn,tabIndex:he?-1:Ht,onFocus:he?null:Ti,onBlur:he?null:or,onKeyDown:he?null:Fe,ref:wn,role:"radiogroup"},(0,tt.Z)(Ye,{aria:!0,data:!0,attr:!0})),vn)}var Ut=yt.forwardRef(Dt),Ft=Ut,Qt=Gt(36355),$t=Gt(6848),Kt=Gt(17313),ue=Gt(83116),oe=Gt(37613);const we=ee=>{const{componentCls:ae}=ee;return{[`${ae}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:ee.marginXS},"> div":{transition:`all ${ee.motionDurationMid}, outline 0s`,"&:hover":{transform:ee.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${ee.lineWidth}px dashed ${ee.starColor}`,transform:ee.starHoverScale}},"&-first, &-second":{color:ee.starBg,transition:`all ${ee.motionDurationMid}`,userSelect:"none",[ee.iconCls]:{verticalAlign:"middle"}},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${ae}-star-first, &-half ${ae}-star-second`]:{opacity:1},[`&-half ${ae}-star-first, &-full ${ae}-star-second`]:{color:"inherit"}}}},Se=ee=>({[`&-rtl${ee.componentCls}`]:{direction:"rtl"}}),Ne=ee=>{const{componentCls:ae}=ee;return{[ae]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Kt.Wf)(ee)),{display:"inline-block",margin:0,padding:0,color:ee.starColor,fontSize:ee.starSize,lineHeight:"unset",listStyle:"none",outline:"none",[`&-disabled${ae} ${ae}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),we(ee)),{[`+ ${ae}-text`]:{display:"inline-block",marginInlineStart:ee.marginXS,fontSize:ee.fontSize}}),Se(ee))}};var pe=(0,ue.Z)("Rate",ee=>{const ae=(0,oe.TS)(ee,{});return[Ne(ae)]},ee=>({starColor:ee.yellow6,starSize:ee.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:ee.colorFillContent})),Ue=function(ee,ae){var fe={};for(var se in ee)Object.prototype.hasOwnProperty.call(ee,se)&&ae.indexOf(se)<0&&(fe[se]=ee[se]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,se=Object.getOwnPropertySymbols(ee);De<se.length;De++)ae.indexOf(se[De])<0&&Object.prototype.propertyIsEnumerable.call(ee,se[De])&&(fe[se[De]]=ee[se[De]]);return fe},Jt=yt.forwardRef((ee,ae)=>{const{prefixCls:fe,className:se,rootClassName:De,style:Oe,tooltips:en,character:We=yt.createElement(Ot,null)}=ee,rn=Ue(ee,["prefixCls","className","rootClassName","style","tooltips","character"]),ke=(he,_t)=>{let{index:Mt}=_t;return en?yt.createElement($t.Z,{title:en[Mt]},he):he},{getPrefixCls:Ie,direction:je,rate:$e}=yt.useContext(Qt.E_),me=Ie("rate",fe),[le,Ee]=pe(me),ce=Object.assign(Object.assign({},$e==null?void 0:$e.style),Oe);return le(yt.createElement(Ft,Object.assign({ref:ae,character:We,characterRender:ke},rn,{className:At()(se,De,Ee,$e==null?void 0:$e.className),style:ce,prefixCls:me,direction:je})))})},57809:function(Nn,An,Gt){"use strict";var Rt=Gt(92310),yt=Gt.n(Rt),Vt=Gt(77861),Yt=Gt(64002),Nt=Gt(59301),Wt=Gt(53487),xt=Gt(62892),Ot=Gt(19080),Bt=Gt(36355),At=Gt(1684),bt=Gt(93891),Tt=Gt(19716),It=Gt(32441),vt=Gt(33234),et=Gt(14154),tt=Gt(58582),st=Gt(84443),rt=Gt(66339),ut=function(Dt,Ut){var Ft={};for(var Qt in Dt)Object.prototype.hasOwnProperty.call(Dt,Qt)&&Ut.indexOf(Qt)<0&&(Ft[Qt]=Dt[Qt]);if(Dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $t=0,Qt=Object.getOwnPropertySymbols(Dt);$t<Qt.length;$t++)Ut.indexOf(Qt[$t])<0&&Object.prototype.propertyIsEnumerable.call(Dt,Qt[$t])&&(Ft[Qt[$t]]=Dt[Qt[$t]]);return Ft};const ct="SECRET_COMBOBOX_MODE_DO_NOT_USE",pt=(Dt,Ut)=>{var Ft,{prefixCls:Qt,bordered:$t=!0,className:Kt,rootClassName:ue,getPopupContainer:oe,popupClassName:we,dropdownClassName:Se,listHeight:Ne=256,placement:pe,listItemHeight:Ue=24,size:de,disabled:Jt,notFoundContent:ee,status:ae,builtinPlacements:fe,dropdownMatchSelectWidth:se,popupMatchSelectWidth:De,direction:Oe,style:en,allowClear:We}=Dt,rn=ut(Dt,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:ke,getPrefixCls:Ie,renderEmpty:je,direction:$e,virtual:me,popupMatchSelectWidth:le,popupOverflow:Ee,select:ce}=Nt.useContext(Bt.E_),he=Ie("select",Qt),_t=Ie(),Mt=Oe!=null?Oe:$e,{compactSize:Et,compactItemClassnames:Ht}=(0,vt.ri)(he,Mt),[Pt,dt]=(0,et.Z)(he),gt=Nt.useMemo(()=>{const{mode:ui}=rn;if(ui!=="combobox")return ui===ct?"combobox":ui},[rn.mode]),zt=gt==="multiple"||gt==="tags",re=(0,st.Z)(rn.suffixIcon,rn.showArrow),Zt=(Ft=De!=null?De:se)!==null&&Ft!==void 0?Ft:le,{status:ye,hasFeedback:Ye,isFormItemInput:sn,feedbackIcon:Le}=Nt.useContext(It.aM),Re=(0,Ot.F)(ye,ae);let hn;ee!==void 0?hn=ee:gt==="combobox"?hn=null:hn=(je==null?void 0:je("Select"))||Nt.createElement(bt.Z,{componentName:"Select"});const{suffixIcon:wn,itemIcon:kn,removeIcon:Rn,clearIcon:Yn}=(0,rt.Z)(Object.assign(Object.assign({},rn),{multiple:zt,hasFeedback:Ye,feedbackIcon:Le,showSuffixIcon:re,prefixCls:he,showArrow:rn.showArrow,componentName:"Select"})),Kn=We===!0?{clearIcon:Yn}:We,li=(0,Yt.Z)(rn,["suffixIcon","itemIcon"]),mi=yt()(we||Se,{[`${he}-dropdown-${Mt}`]:Mt==="rtl"},ue,dt),yi=(0,Tt.Z)(ui=>{var te;return(te=de!=null?de:Et)!==null&&te!==void 0?te:ui}),Pi=Nt.useContext(At.Z),Mi=Jt!=null?Jt:Pi,Gi=yt()({[`${he}-lg`]:yi==="large",[`${he}-sm`]:yi==="small",[`${he}-rtl`]:Mt==="rtl",[`${he}-borderless`]:!$t,[`${he}-in-form-item`]:sn},(0,Ot.Z)(he,Re,Ye),Ht,ce==null?void 0:ce.className,Kt,ue,dt),bi=Nt.useMemo(()=>pe!==void 0?pe:Mt==="rtl"?"bottomRight":"bottomLeft",[pe,Mt]),Ki=(0,tt.Z)(fe,Ee);return Pt(Nt.createElement(Vt.ZP,Object.assign({ref:Ut,virtual:me,showSearch:ce==null?void 0:ce.showSearch},li,{style:Object.assign(Object.assign({},ce==null?void 0:ce.style),en),dropdownMatchSelectWidth:Zt,builtinPlacements:Ki,transitionName:(0,xt.m)(_t,"slide-up",rn.transitionName),listHeight:Ne,listItemHeight:Ue,mode:gt,prefixCls:he,placement:bi,direction:Mt,suffixIcon:wn,menuItemSelectedIcon:kn,removeIcon:Rn,allowClear:Kn,notFoundContent:hn,className:Gi,getPopupContainer:oe||ke,dropdownClassName:mi,disabled:Mi})))},mt=Nt.forwardRef(pt),Ct=(0,Wt.Z)(mt);mt.SECRET_COMBOBOX_MODE_DO_NOT_USE=ct,mt.Option=Vt.Wx,mt.OptGroup=Vt.Xo,mt._InternalPanelDoNotUseOrYouWillBeFired=Ct,An.default=mt},14154:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return mt}});var Rt=Gt(17313),yt=Gt(74207),Vt=Gt(37613),Yt=Gt(83116),Nt=Gt(13826),Wt=Gt(92899);const xt=Ct=>{const{optionHeight:Dt,optionFontSize:Ut,optionLineHeight:Ft,optionPadding:Qt}=Ct;return{position:"relative",display:"block",minHeight:Dt,padding:Qt,color:Ct.colorText,fontWeight:"normal",fontSize:Ut,lineHeight:Ft,boxSizing:"border-box"}};var Bt=Ct=>{const{antCls:Dt,componentCls:Ut}=Ct,Ft=`${Ut}-item`,Qt=`&${Dt}-slide-up-enter${Dt}-slide-up-enter-active`,$t=`&${Dt}-slide-up-appear${Dt}-slide-up-appear-active`,Kt=`&${Dt}-slide-up-leave${Dt}-slide-up-leave-active`,ue=`${Ut}-dropdown-placement-`;return[{[`${Ut}-dropdown`]:Object.assign(Object.assign({},(0,Rt.Wf)(Ct)),{position:"absolute",top:-9999,zIndex:Ct.zIndexPopup,boxSizing:"border-box",padding:Ct.paddingXXS,overflow:"hidden",fontSize:Ct.fontSize,fontVariant:"initial",backgroundColor:Ct.colorBgElevated,borderRadius:Ct.borderRadiusLG,outline:"none",boxShadow:Ct.boxShadowSecondary,[`
|
|
|
${Qt}${ue}bottomLeft,
|
|
|
${$t}${ue}bottomLeft
|
|
|
`]:{animationName:Nt.fJ},[`
|
|
|
${Qt}${ue}topLeft,
|
|
|
${$t}${ue}topLeft,
|
|
|
${Qt}${ue}topRight,
|
|
|
${$t}${ue}topRight
|
|
|
`]:{animationName:Nt.Qt},[`${Kt}${ue}bottomLeft`]:{animationName:Nt.Uw},[`
|
|
|
${Kt}${ue}topLeft,
|
|
|
${Kt}${ue}topRight
|
|
|
`]:{animationName:Nt.ly},"&-hidden":{display:"none"},[`${Ft}`]:Object.assign(Object.assign({},xt(Ct)),{cursor:"pointer",transition:`background ${Ct.motionDurationSlow} ease`,borderRadius:Ct.borderRadiusSM,"&-group":{color:Ct.colorTextDescription,fontSize:Ct.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},Rt.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Ft}-option-disabled)`]:{backgroundColor:Ct.optionActiveBg},[`&-selected:not(${Ft}-option-disabled)`]:{color:Ct.optionSelectedColor,fontWeight:Ct.optionSelectedFontWeight,backgroundColor:Ct.optionSelectedBg,[`${Ft}-option-state`]:{color:Ct.colorPrimary}},"&-disabled":{[`&${Ft}-option-selected`]:{backgroundColor:Ct.colorBgContainerDisabled},color:Ct.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Ct.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,Nt.oN)(Ct,"slide-up"),(0,Nt.oN)(Ct,"slide-down"),(0,Wt.Fm)(Ct,"move-up"),(0,Wt.Fm)(Ct,"move-down")]};const At=2,bt=Ct=>{let{controlHeightSM:Dt,controlHeight:Ut,lineWidth:Ft}=Ct;const Qt=(Ut-Dt)/2-Ft,$t=Math.ceil(Qt/2);return[Qt,$t]};function Tt(Ct,Dt){const{componentCls:Ut,iconCls:Ft}=Ct,Qt=`${Ut}-selection-overflow`,$t=Ct.multipleSelectItemHeight,[Kt]=bt(Ct),ue=Dt?`${Ut}-${Dt}`:"";return{[`${Ut}-multiple${ue}`]:{fontSize:Ct.fontSize,[Qt]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Ut}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Kt-At}px ${At*2}px`,borderRadius:Ct.borderRadius,[`${Ut}-show-search&`]:{cursor:"text"},[`${Ut}-disabled&`]:{background:Ct.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${At}px 0`,lineHeight:`${$t}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${Ut}-show-arrow ${Ut}-selector,
|
|
|
&${Ut}-allow-clear ${Ut}-selector
|
|
|
`]:{paddingInlineEnd:Ct.fontSizeIcon+Ct.controlPaddingHorizontal},[`${Ut}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:$t,marginTop:At,marginBottom:At,lineHeight:`${$t-Ct.lineWidth*2}px`,background:Ct.multipleItemBg,border:`${Ct.lineWidth}px ${Ct.lineType} ${Ct.multipleItemBorderColor}`,borderRadius:Ct.borderRadiusSM,cursor:"default",transition:`font-size ${Ct.motionDurationSlow}, line-height ${Ct.motionDurationSlow}, height ${Ct.motionDurationSlow}`,userSelect:"none",marginInlineEnd:At*2,paddingInlineStart:Ct.paddingXS,paddingInlineEnd:Ct.paddingXS/2,[`${Ut}-disabled&`]:{color:Ct.multipleItemColorDisabled,borderColor:Ct.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:Ct.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Rt.Ro)()),{display:"inline-flex",alignItems:"center",color:Ct.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Ft}`]:{verticalAlign:"-0.2em"},"&:hover":{color:Ct.colorIconHover}})},[`${Qt}-item + ${Qt}-item`]:{[`${Ut}-selection-search`]:{marginInlineStart:0}},[`${Ut}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:Ct.inputPaddingHorizontalBase-Kt,"\n &-input,\n &-mirror\n ":{height:$t,fontFamily:Ct.fontFamily,lineHeight:`${$t}px`,transition:`all ${Ct.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Ut}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:Ct.inputPaddingHorizontalBase,insetInlineEnd:Ct.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${Ct.motionDurationSlow}`}}}}var vt=Ct=>{const{componentCls:Dt}=Ct,Ut=(0,Vt.TS)(Ct,{controlHeight:Ct.controlHeightSM,multipleSelectItemHeight:Ct.controlHeightXS,borderRadius:Ct.borderRadiusSM,borderRadiusSM:Ct.borderRadiusXS}),Ft=(0,Vt.TS)(Ct,{fontSize:Ct.fontSizeLG,controlHeight:Ct.controlHeightLG,multipleSelectItemHeight:Ct.multipleItemHeightLG,borderRadius:Ct.borderRadiusLG,borderRadiusSM:Ct.borderRadius}),[,Qt]=bt(Ct);return[Tt(Ct),Tt(Ut,"sm"),{[`${Dt}-multiple${Dt}-sm`]:{[`${Dt}-selection-placeholder`]:{insetInline:Ct.controlPaddingHorizontalSM-Ct.lineWidth},[`${Dt}-selection-search`]:{marginInlineStart:Qt}}},Tt(Ft,"lg")]};function et(Ct,Dt){const{componentCls:Ut,inputPaddingHorizontalBase:Ft,borderRadius:Qt}=Ct,$t=Ct.controlHeight-Ct.lineWidth*2,Kt=Math.ceil(Ct.fontSize*1.25),ue=Dt?`${Ut}-${Dt}`:"";return{[`${Ut}-single${ue}`]:{fontSize:Ct.fontSize,[`${Ut}-selector`]:Object.assign(Object.assign({},(0,Rt.Wf)(Ct)),{display:"flex",borderRadius:Qt,[`${Ut}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Ft,insetInlineEnd:Ft,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${Ut}-selection-item,
|
|
|
${Ut}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${$t}px`,transition:`all ${Ct.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${$t}px`}},[`${Ut}-selection-item`]:{position:"relative",userSelect:"none"},[`${Ut}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Ut}-selection-item:after`,`${Ut}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Ut}-show-arrow ${Ut}-selection-item,
|
|
|
&${Ut}-show-arrow ${Ut}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Kt},[`&${Ut}-open ${Ut}-selection-item`]:{color:Ct.colorTextPlaceholder},[`&:not(${Ut}-customize-input)`]:{[`${Ut}-selector`]:{width:"100%",height:Ct.controlHeight,padding:`0 ${Ft}px`,[`${Ut}-selection-search-input`]:{height:$t},"&:after":{lineHeight:`${$t}px`}}},[`&${Ut}-customize-input`]:{[`${Ut}-selector`]:{"&:after":{display:"none"},[`${Ut}-selection-search`]:{position:"static",width:"100%"},[`${Ut}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Ft}px`,"&:after":{display:"none"}}}}}}}function tt(Ct){const{componentCls:Dt}=Ct,Ut=Ct.controlPaddingHorizontalSM-Ct.lineWidth;return[et(Ct),et((0,Vt.TS)(Ct,{controlHeight:Ct.controlHeightSM,borderRadius:Ct.borderRadiusSM}),"sm"),{[`${Dt}-single${Dt}-sm`]:{[`&:not(${Dt}-customize-input)`]:{[`${Dt}-selection-search`]:{insetInlineStart:Ut,insetInlineEnd:Ut},[`${Dt}-selector`]:{padding:`0 ${Ut}px`},[`&${Dt}-show-arrow ${Dt}-selection-search`]:{insetInlineEnd:Ut+Ct.fontSize*1.5},[`
|
|
|
&${Dt}-show-arrow ${Dt}-selection-item,
|
|
|
&${Dt}-show-arrow ${Dt}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Ct.fontSize*1.5}}}},et((0,Vt.TS)(Ct,{controlHeight:Ct.singleItemHeightLG,fontSize:Ct.fontSizeLG,borderRadius:Ct.borderRadiusLG}),"lg")]}const st=Ct=>{const{componentCls:Dt,selectorBg:Ut}=Ct;return{position:"relative",backgroundColor:Ut,border:`${Ct.lineWidth}px ${Ct.lineType} ${Ct.colorBorder}`,transition:`all ${Ct.motionDurationMid} ${Ct.motionEaseInOut}`,input:{cursor:"pointer"},[`${Dt}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Dt}-disabled&`]:{color:Ct.colorTextDisabled,background:Ct.colorBgContainerDisabled,cursor:"not-allowed",[`${Dt}-multiple&`]:{background:Ct.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},rt=function(Ct,Dt){let Ut=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Ft,borderHoverColor:Qt,outlineColor:$t,antCls:Kt}=Dt,ue=Ut?{[`${Ft}-selector`]:{borderColor:Qt}}:{};return{[Ct]:{[`&:not(${Ft}-disabled):not(${Ft}-customize-input):not(${Kt}-pagination-size-changer)`]:Object.assign(Object.assign({},ue),{[`${Ft}-focused& ${Ft}-selector`]:{borderColor:Qt,boxShadow:`0 0 0 ${Dt.controlOutlineWidth}px ${$t}`,outline:0},[`&:hover ${Ft}-selector`]:{borderColor:Qt}})}}},ut=Ct=>{const{componentCls:Dt}=Ct;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=Ct=>{const{componentCls:Dt,inputPaddingHorizontalBase:Ut,iconCls:Ft}=Ct;return{[Dt]:Object.assign(Object.assign({},(0,Rt.Wf)(Ct)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Dt}-customize-input) ${Dt}-selector`]:Object.assign(Object.assign({},st(Ct)),ut(Ct)),[`${Dt}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},Rt.vS),[`${Dt}-selection-placeholder`]:Object.assign(Object.assign({},Rt.vS),{flex:1,color:Ct.colorTextPlaceholder,pointerEvents:"none"}),[`${Dt}-arrow`]:Object.assign(Object.assign({},(0,Rt.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Ut,height:Ct.fontSizeIcon,marginTop:-Ct.fontSizeIcon/2,color:Ct.colorTextQuaternary,fontSize:Ct.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Ft]:{verticalAlign:"top",transition:`transform ${Ct.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:Ut,zIndex:1,display:"inline-block",width:Ct.fontSizeIcon,height:Ct.fontSizeIcon,marginTop:-Ct.fontSizeIcon/2,color:Ct.colorTextQuaternary,fontSize:Ct.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:Ct.clearBg,cursor:"pointer",opacity:0,transition:`color ${Ct.motionDurationMid} ease, opacity ${Ct.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Ct.colorTextTertiary}},"&:hover":{[`${Dt}-clear`]:{opacity:1}}}),[`${Dt}-has-feedback`]:{[`${Dt}-clear`]:{insetInlineEnd:Ut+Ct.fontSize+Ct.paddingXS}}}},pt=Ct=>{const{componentCls:Dt}=Ct;return[{[Dt]:{[`&-borderless ${Dt}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Dt}-in-form-item`]:{width:"100%"}}},ct(Ct),tt(Ct),vt(Ct),Bt(Ct),{[`${Dt}-rtl`]:{direction:"rtl"}},rt(Dt,(0,Vt.TS)(Ct,{borderHoverColor:Ct.colorPrimaryHover,outlineColor:Ct.controlOutline})),rt(`${Dt}-status-error`,(0,Vt.TS)(Ct,{borderHoverColor:Ct.colorErrorHover,outlineColor:Ct.colorErrorOutline}),!0),rt(`${Dt}-status-warning`,(0,Vt.TS)(Ct,{borderHoverColor:Ct.colorWarningHover,outlineColor:Ct.colorWarningOutline}),!0),(0,yt.c)(Ct,{borderElCls:`${Dt}-selector`,focusElCls:`${Dt}-focused`})]};var mt=(0,Yt.Z)("Select",(Ct,Dt)=>{let{rootPrefixCls:Ut}=Dt;const Ft=(0,Vt.TS)(Ct,{rootPrefixCls:Ut,inputPaddingHorizontalBase:Ct.paddingSM-1,multipleSelectItemHeight:Ct.multipleItemHeight});return[pt(Ft)]},Ct=>{const{fontSize:Dt,lineHeight:Ut,controlHeight:Ft,controlPaddingHorizontal:Qt,zIndexPopupBase:$t,colorText:Kt,fontWeightStrong:ue,controlItemBgActive:oe,controlItemBgHover:we,colorBgContainer:Se,colorFillSecondary:Ne,controlHeightLG:pe,controlHeightSM:Ue,colorBgContainerDisabled:de,colorTextDisabled:Jt}=Ct;return{zIndexPopup:$t+50,optionSelectedColor:Kt,optionSelectedFontWeight:ue,optionSelectedBg:oe,optionActiveBg:we,optionPadding:`${(Ft-Dt*Ut)/2}px ${Qt}px`,optionFontSize:Dt,optionLineHeight:Ut,optionHeight:Ft,selectorBg:Se,clearBg:Se,singleItemHeightLG:pe,multipleItemBg:Ne,multipleItemBorderColor:"transparent",multipleItemHeight:Ue,multipleItemHeightLG:Ft,multipleSelectorBgDisabled:de,multipleItemColorDisabled:Jt,multipleItemBorderColorDisabled:"transparent"}})},58582:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return yt}});const Rt=Vt=>{const Nt={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Vt==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},Nt),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Nt),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Nt),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Nt),{points:["br","tr"],offset:[0,-4]})}};function yt(Vt,Yt){return Vt||Rt(Yt)}},84443:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Rt}});function Rt(yt,Vt){return Vt!==void 0?Vt:yt!==null}},66339:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});var Rt=Gt(10402),yt=Gt(33130),Vt=Gt(72119),Yt=Gt(18290),Nt=Gt(50023),Wt=Gt(21970),xt=Gt(59301);function Ot(Bt){let{suffixIcon:At,clearIcon:bt,menuItemSelectedIcon:Tt,removeIcon:It,loading:vt,multiple:et,hasFeedback:tt,prefixCls:st,showSuffixIcon:rt,feedbackIcon:ut,showArrow:ct,componentName:pt}=Bt;const mt=bt!=null?bt:xt.createElement(yt.Z,null),Ct=Qt=>At===null&&!tt&&!ct?null:xt.createElement(xt.Fragment,null,rt!==!1&&Qt,tt&&ut);let Dt=null;if(At!==void 0)Dt=Ct(At);else if(vt)Dt=Ct(xt.createElement(Nt.Z,{spin:!0}));else{const Qt=`${st}-suffix`;Dt=$t=>{let{open:Kt,showSearch:ue}=$t;return Ct(Kt&&ue?xt.createElement(Wt.Z,{className:Qt}):xt.createElement(Yt.Z,{className:Qt}))}}let Ut=null;Tt!==void 0?Ut=Tt:et?Ut=xt.createElement(Rt.Z,null):Ut=null;let Ft=null;return It!==void 0?Ft=It:Ft=xt.createElement(Vt.Z,null),{clearIcon:mt,suffixIcon:Dt,itemIcon:Ut,removeIcon:Ft}}},78485:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ee}});var Rt=Gt(92310),yt=Gt.n(Rt),Vt=Gt(59301),Yt=Gt(36355),Nt=Gt(64002),xt=ce=>{const{prefixCls:he,className:_t,style:Mt,size:Et,shape:Ht}=ce,Pt=yt()({[`${he}-lg`]:Et==="large",[`${he}-sm`]:Et==="small"}),dt=yt()({[`${he}-circle`]:Ht==="circle",[`${he}-square`]:Ht==="square",[`${he}-round`]:Ht==="round"}),gt=Vt.useMemo(()=>typeof Et=="number"?{width:Et,height:Et,lineHeight:`${Et}px`}:{},[Et]);return Vt.createElement("span",{className:yt()(he,Pt,dt,_t),style:Object.assign(Object.assign({},gt),Mt)})},Ot=Gt(9792),Bt=Gt(83116),At=Gt(37613);const bt=new Ot.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),Tt=ce=>({height:ce,lineHeight:`${ce}px`}),It=ce=>Object.assign({width:ce},Tt(ce)),vt=ce=>({background:ce.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:bt,animationDuration:ce.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),et=ce=>Object.assign({width:ce*5,minWidth:ce*5},Tt(ce)),tt=ce=>{const{skeletonAvatarCls:he,gradientFromColor:_t,controlHeight:Mt,controlHeightLG:Et,controlHeightSM:Ht}=ce;return{[`${he}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:_t},It(Mt)),[`${he}${he}-circle`]:{borderRadius:"50%"},[`${he}${he}-lg`]:Object.assign({},It(Et)),[`${he}${he}-sm`]:Object.assign({},It(Ht))}},st=ce=>{const{controlHeight:he,borderRadiusSM:_t,skeletonInputCls:Mt,controlHeightLG:Et,controlHeightSM:Ht,gradientFromColor:Pt}=ce;return{[`${Mt}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Pt,borderRadius:_t},et(he)),[`${Mt}-lg`]:Object.assign({},et(Et)),[`${Mt}-sm`]:Object.assign({},et(Ht))}},rt=ce=>Object.assign({width:ce},Tt(ce)),ut=ce=>{const{skeletonImageCls:he,imageSizeBase:_t,gradientFromColor:Mt,borderRadiusSM:Et}=ce;return{[`${he}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Mt,borderRadius:Et},rt(_t*2)),{[`${he}-path`]:{fill:"#bfbfbf"},[`${he}-svg`]:Object.assign(Object.assign({},rt(_t)),{maxWidth:_t*4,maxHeight:_t*4}),[`${he}-svg${he}-svg-circle`]:{borderRadius:"50%"}}),[`${he}${he}-circle`]:{borderRadius:"50%"}}},ct=(ce,he,_t)=>{const{skeletonButtonCls:Mt}=ce;return{[`${_t}${Mt}-circle`]:{width:he,minWidth:he,borderRadius:"50%"},[`${_t}${Mt}-round`]:{borderRadius:he}}},pt=ce=>Object.assign({width:ce*2,minWidth:ce*2},Tt(ce)),mt=ce=>{const{borderRadiusSM:he,skeletonButtonCls:_t,controlHeight:Mt,controlHeightLG:Et,controlHeightSM:Ht,gradientFromColor:Pt}=ce;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${_t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Pt,borderRadius:he,width:Mt*2,minWidth:Mt*2},pt(Mt))},ct(ce,Mt,_t)),{[`${_t}-lg`]:Object.assign({},pt(Et))}),ct(ce,Et,`${_t}-lg`)),{[`${_t}-sm`]:Object.assign({},pt(Ht))}),ct(ce,Ht,`${_t}-sm`))},Ct=ce=>{const{componentCls:he,skeletonAvatarCls:_t,skeletonTitleCls:Mt,skeletonParagraphCls:Et,skeletonButtonCls:Ht,skeletonInputCls:Pt,skeletonImageCls:dt,controlHeight:gt,controlHeightLG:zt,controlHeightSM:re,gradientFromColor:Zt,padding:ye,marginSM:Ye,borderRadius:sn,titleHeight:Le,blockRadius:Re,paragraphLiHeight:hn,controlHeightXS:wn,paragraphMarginTop:kn}=ce;return{[`${he}`]:{display:"table",width:"100%",[`${he}-header`]:{display:"table-cell",paddingInlineEnd:ye,verticalAlign:"top",[`${_t}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Zt},It(gt)),[`${_t}-circle`]:{borderRadius:"50%"},[`${_t}-lg`]:Object.assign({},It(zt)),[`${_t}-sm`]:Object.assign({},It(re))},[`${he}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Mt}`]:{width:"100%",height:Le,background:Zt,borderRadius:Re,[`+ ${Et}`]:{marginBlockStart:re}},[`${Et}`]:{padding:0,"> li":{width:"100%",height:hn,listStyle:"none",background:Zt,borderRadius:Re,"+ li":{marginBlockStart:wn}}},[`${Et}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${he}-content`]:{[`${Mt}, ${Et} > li`]:{borderRadius:sn}}},[`${he}-with-avatar ${he}-content`]:{[`${Mt}`]:{marginBlockStart:Ye,[`+ ${Et}`]:{marginBlockStart:kn}}},[`${he}${he}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},mt(ce)),tt(ce)),st(ce)),ut(ce)),[`${he}${he}-block`]:{width:"100%",[`${Ht}`]:{width:"100%"},[`${Pt}`]:{width:"100%"}},[`${he}${he}-active`]:{[`
|
|
|
${Mt},
|
|
|
${Et} > li,
|
|
|
${_t},
|
|
|
${Ht},
|
|
|
${Pt},
|
|
|
${dt}
|
|
|
`]:Object.assign({},vt(ce))}}};var Dt=(0,Bt.Z)("Skeleton",ce=>{const{componentCls:he}=ce,_t=(0,At.TS)(ce,{skeletonAvatarCls:`${he}-avatar`,skeletonTitleCls:`${he}-title`,skeletonParagraphCls:`${he}-paragraph`,skeletonButtonCls:`${he}-button`,skeletonInputCls:`${he}-input`,skeletonImageCls:`${he}-image`,imageSizeBase:ce.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${ce.gradientFromColor} 25%, ${ce.gradientToColor} 37%, ${ce.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[Ct(_t)]},ce=>{const{colorFillContent:he,colorFill:_t}=ce,Mt=he,Et=_t;return{color:Mt,colorGradientEnd:Et,gradientFromColor:Mt,gradientToColor:Et,titleHeight:ce.controlHeight/2,blockRadius:ce.borderRadiusSM,paragraphMarginTop:ce.marginLG+ce.marginXXS,paragraphLiHeight:ce.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Ft=ce=>{const{prefixCls:he,className:_t,rootClassName:Mt,active:Et,shape:Ht="circle",size:Pt="default"}=ce,{getPrefixCls:dt}=Vt.useContext(Yt.E_),gt=dt("skeleton",he),[zt,re]=Dt(gt),Zt=(0,Nt.Z)(ce,["prefixCls","className"]),ye=yt()(gt,`${gt}-element`,{[`${gt}-active`]:Et},_t,Mt,re);return zt(Vt.createElement("div",{className:ye},Vt.createElement(xt,Object.assign({prefixCls:`${gt}-avatar`,shape:Ht,size:Pt},Zt))))},$t=ce=>{const{prefixCls:he,className:_t,rootClassName:Mt,active:Et,block:Ht=!1,size:Pt="default"}=ce,{getPrefixCls:dt}=Vt.useContext(Yt.E_),gt=dt("skeleton",he),[zt,re]=Dt(gt),Zt=(0,Nt.Z)(ce,["prefixCls"]),ye=yt()(gt,`${gt}-element`,{[`${gt}-active`]:Et,[`${gt}-block`]:Ht},_t,Mt,re);return zt(Vt.createElement("div",{className:ye},Vt.createElement(xt,Object.assign({prefixCls:`${gt}-button`,size:Pt},Zt))))};const Kt="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 oe=ce=>{const{prefixCls:he,className:_t,rootClassName:Mt,style:Et,active:Ht}=ce,{getPrefixCls:Pt}=Vt.useContext(Yt.E_),dt=Pt("skeleton",he),[gt,zt]=Dt(dt),re=yt()(dt,`${dt}-element`,{[`${dt}-active`]:Ht},_t,Mt,zt);return gt(Vt.createElement("div",{className:re},Vt.createElement("div",{className:yt()(`${dt}-image`,_t),style:Et},Vt.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${dt}-image-svg`},Vt.createElement("path",{d:Kt,className:`${dt}-image-path`})))))},Se=ce=>{const{prefixCls:he,className:_t,rootClassName:Mt,active:Et,block:Ht,size:Pt="default"}=ce,{getPrefixCls:dt}=Vt.useContext(Yt.E_),gt=dt("skeleton",he),[zt,re]=Dt(gt),Zt=(0,Nt.Z)(ce,["prefixCls"]),ye=yt()(gt,`${gt}-element`,{[`${gt}-active`]:Et,[`${gt}-block`]:Ht},_t,Mt,re);return zt(Vt.createElement("div",{className:ye},Vt.createElement(xt,Object.assign({prefixCls:`${gt}-input`,size:Pt},Zt))))},Ne=Gt(5891),pe={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"},Ue=pe,de=Gt(88853),Jt=function(he,_t){return Vt.createElement(de.Z,(0,Ne.Z)({},he,{ref:_t,icon:Ue}))},ee=Vt.forwardRef(Jt),ae=ee,se=ce=>{const{prefixCls:he,className:_t,rootClassName:Mt,style:Et,active:Ht,children:Pt}=ce,{getPrefixCls:dt}=Vt.useContext(Yt.E_),gt=dt("skeleton",he),[zt,re]=Dt(gt),Zt=yt()(gt,`${gt}-element`,{[`${gt}-active`]:Ht},re,_t,Mt),ye=Pt!=null?Pt:Vt.createElement(ae,null);return zt(Vt.createElement("div",{className:Zt},Vt.createElement("div",{className:yt()(`${gt}-image`,_t),style:Et},ye)))},De=Gt(26390),en=ce=>{const he=dt=>{const{width:gt,rows:zt=2}=ce;if(Array.isArray(gt))return gt[dt];if(zt-1===dt)return gt},{prefixCls:_t,className:Mt,style:Et,rows:Ht}=ce,Pt=(0,De.Z)(Array(Ht)).map((dt,gt)=>Vt.createElement("li",{key:gt,style:{width:he(gt)}}));return Vt.createElement("ul",{className:yt()(_t,Mt),style:Et},Pt)},rn=ce=>{let{prefixCls:he,className:_t,width:Mt,style:Et}=ce;return Vt.createElement("h3",{className:yt()(he,_t),style:Object.assign({width:Mt},Et)})};function ke(ce){return ce&&typeof ce=="object"?ce:{}}function Ie(ce,he){return ce&&!he?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function je(ce,he){return!ce&&he?{width:"38%"}:ce&&he?{width:"50%"}:{}}function $e(ce,he){const _t={};return(!ce||!he)&&(_t.width="61%"),!ce&&he?_t.rows=3:_t.rows=2,_t}const me=ce=>{const{prefixCls:he,loading:_t,className:Mt,rootClassName:Et,style:Ht,children:Pt,avatar:dt=!1,title:gt=!0,paragraph:zt=!0,active:re,round:Zt}=ce,{getPrefixCls:ye,direction:Ye,skeleton:sn}=Vt.useContext(Yt.E_),Le=ye("skeleton",he),[Re,hn]=Dt(Le);if(_t||!("loading"in ce)){const wn=!!dt,kn=!!gt,Rn=!!zt;let Yn;if(wn){const mi=Object.assign(Object.assign({prefixCls:`${Le}-avatar`},Ie(kn,Rn)),ke(dt));Yn=Vt.createElement("div",{className:`${Le}-header`},Vt.createElement(xt,Object.assign({},mi)))}let Kn;if(kn||Rn){let mi;if(kn){const Pi=Object.assign(Object.assign({prefixCls:`${Le}-title`},je(wn,Rn)),ke(gt));mi=Vt.createElement(rn,Object.assign({},Pi))}let yi;if(Rn){const Pi=Object.assign(Object.assign({prefixCls:`${Le}-paragraph`},$e(wn,kn)),ke(zt));yi=Vt.createElement(en,Object.assign({},Pi))}Kn=Vt.createElement("div",{className:`${Le}-content`},mi,yi)}const li=yt()(Le,{[`${Le}-with-avatar`]:wn,[`${Le}-active`]:re,[`${Le}-rtl`]:Ye==="rtl",[`${Le}-round`]:Zt},sn==null?void 0:sn.className,Mt,Et,hn);return Re(Vt.createElement("div",{className:li,style:Object.assign(Object.assign({},sn==null?void 0:sn.style),Ht)},Yn,Kn))}return typeof Pt!="undefined"?Pt:null};me.Button=$t,me.Avatar=Ft,me.Input=Se,me.Image=oe,me.Node=se;var le=me,Ee=le},81327:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return st}});var Rt=Gt(59301),yt=Gt(92310),Vt=Gt.n(yt),Yt=Gt(38298),Nt=Gt(36355),Wt=Gt(33234);const xt=Rt.createContext({latestIndex:0}),Ot=xt.Provider;var At=rt=>{let{className:ut,index:ct,children:pt,split:mt,style:Ct}=rt;const{latestIndex:Dt}=Rt.useContext(xt);return pt==null?null:Rt.createElement(Rt.Fragment,null,Rt.createElement("div",{className:ut,style:Ct},pt),ct<Dt&&mt&&Rt.createElement("span",{className:`${ut}-split`},mt))},bt=Gt(2856);function Tt(rt){return["small","middle","large"].includes(rt)}function It(rt){return rt?typeof rt=="number"&&!Number.isNaN(rt):!1}var vt=function(rt,ut){var ct={};for(var pt in rt)Object.prototype.hasOwnProperty.call(rt,pt)&&ut.indexOf(pt)<0&&(ct[pt]=rt[pt]);if(rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var mt=0,pt=Object.getOwnPropertySymbols(rt);mt<pt.length;mt++)ut.indexOf(pt[mt])<0&&Object.prototype.propertyIsEnumerable.call(rt,pt[mt])&&(ct[pt[mt]]=rt[pt[mt]]);return ct};const tt=Rt.forwardRef((rt,ut)=>{var ct,pt;const{getPrefixCls:mt,space:Ct,direction:Dt}=Rt.useContext(Nt.E_),{size:Ut=(Ct==null?void 0:Ct.size)||"small",align:Ft,className:Qt,rootClassName:$t,children:Kt,direction:ue="horizontal",prefixCls:oe,split:we,style:Se,wrap:Ne=!1,classNames:pe,styles:Ue}=rt,de=vt(rt,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[Jt,ee]=Array.isArray(Ut)?Ut:[Ut,Ut],ae=Tt(ee),fe=Tt(Jt),se=It(ee),De=It(Jt),Oe=(0,Yt.Z)(Kt,{keepEmpty:!0}),en=Ft===void 0&&ue==="horizontal"?"center":Ft,We=mt("space",oe),[rn,ke]=(0,bt.Z)(We),Ie=Vt()(We,Ct==null?void 0:Ct.className,ke,`${We}-${ue}`,{[`${We}-rtl`]:Dt==="rtl",[`${We}-align-${en}`]:en,[`${We}-gap-row-${ee}`]:ae,[`${We}-gap-col-${Jt}`]:fe},Qt,$t),je=Vt()(`${We}-item`,(ct=pe==null?void 0:pe.item)!==null&&ct!==void 0?ct:(pt=Ct==null?void 0:Ct.classNames)===null||pt===void 0?void 0:pt.item);let $e=0;const me=Oe.map((ce,he)=>{var _t,Mt;ce!=null&&($e=he);const Et=ce&&ce.key||`${je}-${he}`;return Rt.createElement(At,{className:je,key:Et,index:he,split:we,style:(_t=Ue==null?void 0:Ue.item)!==null&&_t!==void 0?_t:(Mt=Ct==null?void 0:Ct.styles)===null||Mt===void 0?void 0:Mt.item},ce)}),le=Rt.useMemo(()=>({latestIndex:$e}),[$e]);if(Oe.length===0)return null;const Ee={};return Ne&&(Ee.flexWrap="wrap"),!fe&&De&&(Ee.columnGap=Jt),!ae&&se&&(Ee.rowGap=ee),rn(Rt.createElement("div",Object.assign({ref:ut,className:Ie,style:Object.assign(Object.assign(Object.assign({},Ee),Ct==null?void 0:Ct.style),Se)},de),Rt.createElement(Ot,{value:le},me)))});tt.Compact=Wt.ZP;var st=tt},31797:function(Nn,An,Gt){"use strict";Gt.d(An,{default:function(){return Dt}});var Rt=Gt(59301),yt=Gt(56762),Vt=Gt(92343),Yt=Gt(92310),Nt=Gt.n(Yt),Wt=Gt(36355),xt=Gt(78485),Bt=Ut=>{const{value:Ft,formatter:Qt,precision:$t,decimalSeparator:Kt,groupSeparator:ue="",prefixCls:oe}=Ut;let we;if(typeof Qt=="function")we=Qt(Ft);else{const Se=String(Ft),Ne=Se.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Ne||Se==="-")we=Se;else{const pe=Ne[1];let Ue=Ne[2]||"0",de=Ne[4]||"";Ue=Ue.replace(/\B(?=(\d{3})+(?!\d))/g,ue),typeof $t=="number"&&(de=de.padEnd($t,"0").slice(0,$t>0?$t:0)),de&&(de=`${Kt}${de}`),we=[Rt.createElement("span",{key:"int",className:`${oe}-content-value-int`},pe,Ue),de&&Rt.createElement("span",{key:"decimal",className:`${oe}-content-value-decimal`},de)]}}return Rt.createElement("span",{className:`${oe}-content-value`},we)},At=Gt(17313),bt=Gt(83116),Tt=Gt(37613);const It=Ut=>{const{componentCls:Ft,marginXXS:Qt,padding:$t,colorTextDescription:Kt,titleFontSize:ue,colorTextHeading:oe,contentFontSize:we,fontFamily:Se}=Ut;return{[`${Ft}`]:Object.assign(Object.assign({},(0,At.Wf)(Ut)),{[`${Ft}-title`]:{marginBottom:Qt,color:Kt,fontSize:ue},[`${Ft}-skeleton`]:{paddingTop:$t},[`${Ft}-content`]:{color:oe,fontSize:we,fontFamily:Se,[`${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 vt=(0,bt.Z)("Statistic",Ut=>{const Ft=(0,Tt.TS)(Ut,{});return[It(Ft)]},Ut=>{const{fontSizeHeading3:Ft,fontSize:Qt}=Ut;return{titleFontSize:Qt,contentFontSize:Ft}}),tt=Ut=>{const{prefixCls:Ft,className:Qt,rootClassName:$t,style:Kt,valueStyle:ue,value:oe=0,title:we,valueRender:Se,prefix:Ne,suffix:pe,loading:Ue=!1,onMouseEnter:de,onMouseLeave:Jt,decimalSeparator:ee=".",groupSeparator:ae=","}=Ut,{getPrefixCls:fe,direction:se,statistic:De}=Rt.useContext(Wt.E_),Oe=fe("statistic",Ft),[en,We]=vt(Oe),rn=Rt.createElement(Bt,Object.assign({decimalSeparator:ee,groupSeparator:ae,prefixCls:Oe},Ut,{value:oe})),ke=Nt()(Oe,{[`${Oe}-rtl`]:se==="rtl"},De==null?void 0:De.className,Qt,$t,We);return en(Rt.createElement("div",{className:ke,style:Object.assign(Object.assign({},De==null?void 0:De.style),Kt),onMouseEnter:de,onMouseLeave:Jt},we&&Rt.createElement("div",{className:`${Oe}-title`},we),Rt.createElement(xt.Z,{paragraph:!1,loading:Ue,className:`${Oe}-skeleton`},Rt.createElement("div",{style:ue,className:`${Oe}-content`},Ne&&Rt.createElement("span",{className:`${Oe}-content-prefix`},Ne),Se?Se(rn):rn,pe&&Rt.createElement("span",{className:`${Oe}-content-suffix`},pe)))))};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(Ut,Ft){let Qt=Ut;const $t=/\[[^\]]*]/g,Kt=(Ft.match($t)||[]).map(Se=>Se.slice(1,-1)),ue=Ft.replace($t,"[]"),oe=st.reduce((Se,Ne)=>{let[pe,Ue]=Ne;if(Se.includes(pe)){const de=Math.floor(Qt/Ue);return Qt-=de*Ue,Se.replace(new RegExp(`${pe}+`,"g"),Jt=>{const ee=Jt.length;return de.toString().padStart(ee,"0")})}return Se},ue);let we=0;return oe.replace($t,()=>{const Se=Kt[we];return we+=1,Se})}function ut(Ut,Ft){const{format:Qt=""}=Ft,$t=new Date(Ut).getTime(),Kt=Date.now(),ue=Math.max($t-Kt,0);return rt(ue,Qt)}const ct=1e3/30;function pt(Ut){return new Date(Ut).getTime()}const mt=Ut=>{const{value:Ft,format:Qt="HH:mm:ss",onChange:$t,onFinish:Kt}=Ut,ue=(0,yt.Z)(),oe=Rt.useRef(null),we=()=>{Kt==null||Kt(),oe.current&&(clearInterval(oe.current),oe.current=null)},Se=()=>{const Ue=pt(Ft);Ue>=Date.now()&&(oe.current=setInterval(()=>{ue(),$t==null||$t(Ue-Date.now()),Ue<Date.now()&&we()},ct))};Rt.useEffect(()=>(Se(),()=>{oe.current&&(clearInterval(oe.current),oe.current=null)}),[Ft]);const Ne=(Ue,de)=>ut(Ue,Object.assign(Object.assign({},de),{format:Qt})),pe=Ue=>(0,Vt.Tm)(Ue,{title:void 0});return Rt.createElement(tt,Object.assign({},Ut,{valueRender:pe,formatter:Ne}))};var Ct=Rt.memo(mt);tt.Countdown=Ct;var Dt=tt},78673:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return ue}});var Rt=Gt(50023),yt=Gt(92310),Vt=Gt.n(yt),Yt=Gt(5891),Nt=Gt(80962),Wt=Gt(29043),xt=Gt(19149),Ot=Gt(59301),Bt=Gt(35788),At=Gt(85108),bt=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Tt=Ot.forwardRef(function(oe,we){var Se,Ne=oe.prefixCls,pe=Ne===void 0?"rc-switch":Ne,Ue=oe.className,de=oe.checked,Jt=oe.defaultChecked,ee=oe.disabled,ae=oe.loadingIcon,fe=oe.checkedChildren,se=oe.unCheckedChildren,De=oe.onClick,Oe=oe.onChange,en=oe.onKeyDown,We=(0,xt.Z)(oe,bt),rn=(0,Bt.Z)(!1,{value:de,defaultValue:Jt}),ke=(0,Wt.Z)(rn,2),Ie=ke[0],je=ke[1];function $e(ce,he){var _t=Ie;return ee||(_t=ce,je(_t),Oe==null||Oe(_t,he)),_t}function me(ce){ce.which===At.Z.LEFT?$e(!1,ce):ce.which===At.Z.RIGHT&&$e(!0,ce),en==null||en(ce)}function le(ce){var he=$e(!Ie,ce);De==null||De(he,ce)}var Ee=Vt()(pe,Ue,(Se={},(0,Nt.Z)(Se,"".concat(pe,"-checked"),Ie),(0,Nt.Z)(Se,"".concat(pe,"-disabled"),ee),Se));return Ot.createElement("button",(0,Yt.Z)({},We,{type:"button",role:"switch","aria-checked":Ie,disabled:ee,className:Ee,ref:we,onKeyDown:me,onClick:le}),ae,Ot.createElement("span",{className:"".concat(pe,"-inner")},Ot.createElement("span",{className:"".concat(pe,"-inner-checked")},fe),Ot.createElement("span",{className:"".concat(pe,"-inner-unchecked")},se)))});Tt.displayName="Switch";var It=Tt,vt=Gt(14088),et=Gt(36355),tt=Gt(1684),st=Gt(19716),rt=Gt(64993),ut=Gt(17313),ct=Gt(83116),pt=Gt(37613);const mt=oe=>{const{componentCls:we,trackHeightSM:Se,trackPadding:Ne,trackMinWidthSM:pe,innerMinMarginSM:Ue,innerMaxMarginSM:de,handleSizeSM:Jt}=oe,ee=`${we}-inner`;return{[we]:{[`&${we}-small`]:{minWidth:pe,height:Se,lineHeight:`${Se}px`,[`${we}-inner`]:{paddingInlineStart:de,paddingInlineEnd:Ue,[`${ee}-checked`]:{marginInlineStart:`calc(-100% + ${Jt+Ne*2}px - ${de*2}px)`,marginInlineEnd:`calc(100% - ${Jt+Ne*2}px + ${de*2}px)`},[`${ee}-unchecked`]:{marginTop:-Se,marginInlineStart:0,marginInlineEnd:0}},[`${we}-handle`]:{width:Jt,height:Jt},[`${we}-loading-icon`]:{top:(Jt-oe.switchLoadingIconSize)/2,fontSize:oe.switchLoadingIconSize},[`&${we}-checked`]:{[`${we}-inner`]:{paddingInlineStart:Ue,paddingInlineEnd:de,[`${ee}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ee}-unchecked`]:{marginInlineStart:`calc(100% - ${Jt+Ne*2}px + ${de*2}px)`,marginInlineEnd:`calc(-100% + ${Jt+Ne*2}px - ${de*2}px)`}},[`${we}-handle`]:{insetInlineStart:`calc(100% - ${Jt+Ne}px)`}},[`&:not(${we}-disabled):active`]:{[`&:not(${we}-checked) ${ee}`]:{[`${ee}-unchecked`]:{marginInlineStart:oe.marginXXS/2,marginInlineEnd:-oe.marginXXS/2}},[`&${we}-checked ${ee}`]:{[`${ee}-checked`]:{marginInlineStart:-oe.marginXXS/2,marginInlineEnd:oe.marginXXS/2}}}}}}},Ct=oe=>{const{componentCls:we,handleSize:Se}=oe;return{[we]:{[`${we}-loading-icon${oe.iconCls}`]:{position:"relative",top:(Se-oe.fontSize)/2,color:oe.switchLoadingIconColor,verticalAlign:"top"},[`&${we}-checked ${we}-loading-icon`]:{color:oe.switchColor}}}},Dt=oe=>{const{componentCls:we,motion:Se,trackPadding:Ne,handleBg:pe,handleShadow:Ue,handleSize:de}=oe,Jt=`${we}-handle`;return{[we]:{[Jt]:{position:"absolute",top:Ne,insetInlineStart:Ne,width:de,height:de,transition:`all ${oe.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:pe,borderRadius:de/2,boxShadow:Ue,transition:`all ${oe.switchDuration} ease-in-out`,content:'""'}},[`&${we}-checked ${Jt}`]:{insetInlineStart:`calc(100% - ${de+Ne}px)`},[`&:not(${we}-disabled):active`]:Se?{[`${Jt}::before`]:{insetInlineEnd:oe.switchHandleActiveInset,insetInlineStart:0},[`&${we}-checked ${Jt}::before`]:{insetInlineEnd:0,insetInlineStart:oe.switchHandleActiveInset}}:{}}}},Ut=oe=>{const{componentCls:we,trackHeight:Se,trackPadding:Ne,innerMinMargin:pe,innerMaxMargin:Ue,handleSize:de}=oe,Jt=`${we}-inner`;return{[we]:{[Jt]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Ue,paddingInlineEnd:pe,transition:`padding-inline-start ${oe.switchDuration} ease-in-out, padding-inline-end ${oe.switchDuration} ease-in-out`,[`${Jt}-checked, ${Jt}-unchecked`]:{display:"block",color:oe.colorTextLightSolid,fontSize:oe.fontSizeSM,transition:`margin-inline-start ${oe.switchDuration} ease-in-out, margin-inline-end ${oe.switchDuration} ease-in-out`,pointerEvents:"none"},[`${Jt}-checked`]:{marginInlineStart:`calc(-100% + ${de+Ne*2}px - ${Ue*2}px)`,marginInlineEnd:`calc(100% - ${de+Ne*2}px + ${Ue*2}px)`},[`${Jt}-unchecked`]:{marginTop:-Se,marginInlineStart:0,marginInlineEnd:0}},[`&${we}-checked ${Jt}`]:{paddingInlineStart:pe,paddingInlineEnd:Ue,[`${Jt}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Jt}-unchecked`]:{marginInlineStart:`calc(100% - ${de+Ne*2}px + ${Ue*2}px)`,marginInlineEnd:`calc(-100% + ${de+Ne*2}px - ${Ue*2}px)`}},[`&:not(${we}-disabled):active`]:{[`&:not(${we}-checked) ${Jt}`]:{[`${Jt}-unchecked`]:{marginInlineStart:Ne*2,marginInlineEnd:-Ne*2}},[`&${we}-checked ${Jt}`]:{[`${Jt}-checked`]:{marginInlineStart:-Ne*2,marginInlineEnd:Ne*2}}}}}},Ft=oe=>{const{componentCls:we,trackHeight:Se,trackMinWidth:Ne}=oe;return{[we]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ut.Wf)(oe)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Ne,height:Se,lineHeight:`${Se}px`,verticalAlign:"middle",background:oe.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${oe.motionDurationMid}`,userSelect:"none",[`&:hover:not(${we}-disabled)`]:{background:oe.colorTextTertiary}}),(0,ut.Qy)(oe)),{[`&${we}-checked`]:{background:oe.switchColor,[`&:hover:not(${we}-disabled)`]:{background:oe.colorPrimaryHover}},[`&${we}-loading, &${we}-disabled`]:{cursor:"not-allowed",opacity:oe.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${we}-rtl`]:{direction:"rtl"}})}};var Qt=(0,ct.Z)("Switch",oe=>{const we=(0,pt.TS)(oe,{switchDuration:oe.motionDurationMid,switchColor:oe.colorPrimary,switchDisabledOpacity:oe.opacityLoading,switchLoadingIconSize:oe.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${oe.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Ft(we),Ut(we),Dt(we),Ct(we),mt(we)]},oe=>{const{fontSize:we,lineHeight:Se,controlHeight:Ne,colorWhite:pe}=oe,Ue=we*Se,de=Ne/2,Jt=2,ee=Ue-Jt*2,ae=de-Jt*2;return{trackHeight:Ue,trackHeightSM:de,trackMinWidth:ee*2+Jt*4,trackMinWidthSM:ae*2+Jt*2,trackPadding:Jt,handleBg:pe,handleSize:ee,handleSizeSM:ae,handleShadow:`0 2px 4px 0 ${new rt.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:ee/2,innerMaxMargin:ee+Jt+Jt*2,innerMinMarginSM:ae/2,innerMaxMarginSM:ae+Jt+Jt*2}}),$t=function(oe,we){var Se={};for(var Ne in oe)Object.prototype.hasOwnProperty.call(oe,Ne)&&we.indexOf(Ne)<0&&(Se[Ne]=oe[Ne]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,Ne=Object.getOwnPropertySymbols(oe);pe<Ne.length;pe++)we.indexOf(Ne[pe])<0&&Object.prototype.propertyIsEnumerable.call(oe,Ne[pe])&&(Se[Ne[pe]]=oe[Ne[pe]]);return Se};const Kt=Ot.forwardRef((oe,we)=>{const{prefixCls:Se,size:Ne,disabled:pe,loading:Ue,className:de,rootClassName:Jt,style:ee}=oe,ae=$t(oe,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:fe,direction:se,switch:De}=Ot.useContext(et.E_),Oe=Ot.useContext(tt.Z),en=(pe!=null?pe:Oe)||Ue,We=fe("switch",Se),rn=Ot.createElement("div",{className:`${We}-handle`},Ue&&Ot.createElement(Rt.Z,{className:`${We}-loading-icon`})),[ke,Ie]=Qt(We),je=(0,st.Z)(Ne),$e=Vt()(De==null?void 0:De.className,{[`${We}-small`]:je==="small",[`${We}-loading`]:Ue,[`${We}-rtl`]:se==="rtl"},de,Jt,Ie),me=Object.assign(Object.assign({},De==null?void 0:De.style),ee);return ke(Ot.createElement(vt.Z,{component:"Switch"},Ot.createElement(It,Object.assign({},ae,{prefixCls:We,className:$e,style:me,disabled:en,ref:we,loadingIcon:rn}))))});Kt.__ANT_SWITCH=!0;var ue=Kt},12563:function(Nn,An,Gt){"use strict";Gt.d(An,{default:function(){return $t}});var Rt=Gt(59301),yt=Gt(72119),Vt=Gt(92310),Yt=Gt.n(Vt),Nt=Gt(36785),Wt=Gt(47729),xt=Gt(14088),Ot=Gt(36355),Bt=Gt(17313),At=Gt(37613),bt=Gt(83116);const Tt=Kt=>{const{paddingXXS:ue,lineWidth:oe,tagPaddingHorizontal:we,componentCls:Se}=Kt,Ne=we-oe,pe=ue-oe;return{[Se]:Object.assign(Object.assign({},(0,Bt.Wf)(Kt)),{display:"inline-block",height:"auto",marginInlineEnd:Kt.marginXS,paddingInline:Ne,fontSize:Kt.tagFontSize,lineHeight:Kt.tagLineHeight,whiteSpace:"nowrap",background:Kt.defaultBg,border:`${Kt.lineWidth}px ${Kt.lineType} ${Kt.colorBorder}`,borderRadius:Kt.borderRadiusSM,opacity:1,transition:`all ${Kt.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Se}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:Kt.defaultColor},[`${Se}-close-icon`]:{marginInlineStart:pe,color:Kt.colorTextDescription,fontSize:Kt.tagIconSize,cursor:"pointer",transition:`all ${Kt.motionDurationMid}`,"&:hover":{color:Kt.colorTextHeading}},[`&${Se}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${Kt.iconCls}-close, ${Kt.iconCls}-close:hover`]:{color:Kt.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Se}-checkable-checked):hover`]:{color:Kt.colorPrimary,backgroundColor:Kt.colorFillSecondary},"&:active, &-checked":{color:Kt.colorTextLightSolid},"&-checked":{backgroundColor:Kt.colorPrimary,"&:hover":{backgroundColor:Kt.colorPrimaryHover}},"&:active":{backgroundColor:Kt.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${Kt.iconCls} + span, > span + ${Kt.iconCls}`]:{marginInlineStart:Ne}}),[`${Se}-borderless`]:{borderColor:"transparent",background:Kt.tagBorderlessBg}}},It=Kt=>{const{lineWidth:ue,fontSizeIcon:oe}=Kt,we=Kt.fontSizeSM,Se=`${Kt.lineHeightSM*we}px`;return(0,At.TS)(Kt,{tagFontSize:we,tagLineHeight:Se,tagIconSize:oe-2*ue,tagPaddingHorizontal:8,tagBorderlessBg:Kt.colorFillTertiary})},vt=Kt=>({defaultBg:Kt.colorFillQuaternary,defaultColor:Kt.colorText});var et=(0,bt.Z)("Tag",Kt=>{const ue=It(Kt);return Tt(ue)},vt),tt=function(Kt,ue){var oe={};for(var we in Kt)Object.prototype.hasOwnProperty.call(Kt,we)&&ue.indexOf(we)<0&&(oe[we]=Kt[we]);if(Kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,we=Object.getOwnPropertySymbols(Kt);Se<we.length;Se++)ue.indexOf(we[Se])<0&&Object.prototype.propertyIsEnumerable.call(Kt,we[Se])&&(oe[we[Se]]=Kt[we[Se]]);return oe},rt=Kt=>{const{prefixCls:ue,style:oe,className:we,checked:Se,onChange:Ne,onClick:pe}=Kt,Ue=tt(Kt,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:de,tag:Jt}=Rt.useContext(Ot.E_),ee=Oe=>{Ne==null||Ne(!Se),pe==null||pe(Oe)},ae=de("tag",ue),[fe,se]=et(ae),De=Yt()(ae,`${ae}-checkable`,{[`${ae}-checkable-checked`]:Se},Jt==null?void 0:Jt.className,we,se);return fe(Rt.createElement("span",Object.assign({},Ue,{style:Object.assign(Object.assign({},oe),Jt==null?void 0:Jt.style),className:De,onClick:ee})))},ut=Gt(45157);const ct=Kt=>(0,ut.Z)(Kt,(ue,oe)=>{let{textColor:we,lightBorderColor:Se,lightColor:Ne,darkColor:pe}=oe;return{[`${Kt.componentCls}-${ue}`]:{color:we,background:Ne,borderColor:Se,"&-inverse":{color:Kt.colorTextLightSolid,background:pe,borderColor:pe},[`&${Kt.componentCls}-borderless`]:{borderColor:"transparent"}}}});var pt=(0,bt.b)(["Tag","preset"],Kt=>{const ue=It(Kt);return ct(ue)},vt);function mt(Kt){return typeof Kt!="string"?Kt:Kt.charAt(0).toUpperCase()+Kt.slice(1)}const Ct=(Kt,ue,oe)=>{const we=mt(oe);return{[`${Kt.componentCls}-${ue}`]:{color:Kt[`color${oe}`],background:Kt[`color${we}Bg`],borderColor:Kt[`color${we}Border`],[`&${Kt.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Dt=(0,bt.b)(["Tag","status"],Kt=>{const ue=It(Kt);return[Ct(ue,"success","Success"),Ct(ue,"processing","Info"),Ct(ue,"error","Error"),Ct(ue,"warning","Warning")]},vt),Ut=function(Kt,ue){var oe={};for(var we in Kt)Object.prototype.hasOwnProperty.call(Kt,we)&&ue.indexOf(we)<0&&(oe[we]=Kt[we]);if(Kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Se=0,we=Object.getOwnPropertySymbols(Kt);Se<we.length;Se++)ue.indexOf(we[Se])<0&&Object.prototype.propertyIsEnumerable.call(Kt,we[Se])&&(oe[we[Se]]=Kt[we[Se]]);return oe};const Ft=(Kt,ue)=>{const{prefixCls:oe,className:we,rootClassName:Se,style:Ne,children:pe,icon:Ue,color:de,onClose:Jt,closeIcon:ee,closable:ae,bordered:fe=!0}=Kt,se=Ut(Kt,["prefixCls","className","rootClassName","style","children","icon","color","onClose","closeIcon","closable","bordered"]),{getPrefixCls:De,direction:Oe,tag:en}=Rt.useContext(Ot.E_),[We,rn]=Rt.useState(!0);Rt.useEffect(()=>{"visible"in se&&rn(se.visible)},[se.visible]);const ke=(0,Nt.o2)(de),Ie=(0,Nt.yT)(de),je=ke||Ie,$e=Object.assign(Object.assign({backgroundColor:de&&!je?de:void 0},en==null?void 0:en.style),Ne),me=De("tag",oe),[le,Ee]=et(me),ce=Yt()(me,en==null?void 0:en.className,{[`${me}-${de}`]:je,[`${me}-has-color`]:de&&!je,[`${me}-hidden`]:!We,[`${me}-rtl`]:Oe==="rtl",[`${me}-borderless`]:!fe},we,Se,Ee),he=dt=>{dt.stopPropagation(),Jt==null||Jt(dt),!dt.defaultPrevented&&rn(!1)},[,_t]=(0,Wt.Z)(ae,ee,dt=>dt===null?Rt.createElement(yt.Z,{className:`${me}-close-icon`,onClick:he}):Rt.createElement("span",{className:`${me}-close-icon`,onClick:he},dt),null,!1),Mt=typeof se.onClick=="function"||pe&&pe.type==="a",Et=Ue||null,Ht=Et?Rt.createElement(Rt.Fragment,null,Et,pe&&Rt.createElement("span",null,pe)):pe,Pt=Rt.createElement("span",Object.assign({},se,{ref:ue,className:ce,style:$e}),Ht,_t,ke&&Rt.createElement(pt,{key:"preset",prefixCls:me}),Ie&&Rt.createElement(Dt,{key:"status",prefixCls:me}));return le(Mt?Rt.createElement(xt.Z,{component:"Tag"},Pt):Pt)},Qt=Rt.forwardRef(Ft);Qt.CheckableTag=rt;var $t=Qt},86914:function(Nn,An,Gt){"use strict";Gt.d(An,{default:function(){return de}});var Rt=Gt(99581),yt=Gt(26390),Vt=Gt(43971),Yt=Gt(58358),Nt=Gt(5891),Wt=Gt(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,Bt=Gt(88853),At=function(ee,ae){return Wt.createElement(Bt.Z,(0,Nt.Z)({},ee,{ref:ae,icon:Ot}))},bt=Wt.forwardRef(At),Tt=bt,It=Gt(92310),vt=Gt.n(It),et=Gt(35654),tt=Gt(71430),st=Gt(36355),rt=Gt(44757),ut=Gt(62892),ct=Gt(20648);const pt=4;function mt(Jt){const{dropPosition:ee,dropLevelOffset:ae,prefixCls:fe,indent:se,direction:De="ltr"}=Jt,Oe=De==="ltr"?"left":"right",en=De==="ltr"?"right":"left",We={[Oe]:-ae*se+pt,[en]:0};switch(ee){case-1:We.top=-3;break;case 1:We.bottom=-3;break;default:We.bottom=-3,We[Oe]=se+pt;break}return Wt.createElement("div",{style:We,className:`${fe}-drop-indicator`})}var Ct=Gt(48610),Ut=Wt.forwardRef((Jt,ee)=>{const{getPrefixCls:ae,direction:fe,virtual:se,tree:De}=Wt.useContext(st.E_),{prefixCls:Oe,className:en,showIcon:We=!1,showLine:rn,switcherIcon:ke,blockNode:Ie=!1,children:je,checkable:$e=!1,selectable:me=!0,draggable:le,motion:Ee,style:ce}=Jt,he=ae("tree",Oe),_t=ae(),Mt=Ee!=null?Ee:Object.assign(Object.assign({},(0,ut.Z)(_t)),{motionAppear:!1}),Et=Object.assign(Object.assign({},Jt),{checkable:$e,selectable:me,showIcon:We,motion:Mt,blockNode:Ie,showLine:!!rn,dropIndicatorRender:mt}),[Ht,Pt]=(0,ct.ZP)(he),dt=Wt.useMemo(()=>{if(!le)return!1;let zt={};switch(typeof le){case"function":zt.nodeDraggable=le;break;case"object":zt=Object.assign({},le);break;default:break}return zt.icon!==!1&&(zt.icon=zt.icon||Wt.createElement(rt.Z,null)),zt},[le]),gt=zt=>Wt.createElement(Ct.Z,{prefixCls:he,switcherIcon:ke,treeNodeProps:zt,showLine:rn});return Ht(Wt.createElement(Rt.Z,Object.assign({itemHeight:20,ref:ee,virtual:se},Et,{style:Object.assign(Object.assign({},De==null?void 0:De.style),ce),prefixCls:he,className:vt()({[`${he}-icon-hide`]:!We,[`${he}-block-node`]:Ie,[`${he}-unselectable`]:!me,[`${he}-rtl`]:fe==="rtl"},De==null?void 0:De.className,en,Pt),direction:fe,checkable:$e&&Wt.createElement("span",{className:`${he}-checkbox-inner`}),selectable:me,switcherIcon:gt,draggable:dt}),je))}),Ft;(function(Jt){Jt[Jt.None=0]="None",Jt[Jt.Start=1]="Start",Jt[Jt.End=2]="End"})(Ft||(Ft={}));function Qt(Jt,ee){function ae(fe){const{key:se,children:De}=fe;ee(se,fe)!==!1&&Qt(De||[],ee)}Jt.forEach(ae)}function $t(Jt){let{treeData:ee,expandedKeys:ae,startKey:fe,endKey:se}=Jt;const De=[];let Oe=Ft.None;if(fe&&fe===se)return[fe];if(!fe||!se)return[];function en(We){return We===fe||We===se}return Qt(ee,We=>{if(Oe===Ft.End)return!1;if(en(We)){if(De.push(We),Oe===Ft.None)Oe=Ft.Start;else if(Oe===Ft.Start)return Oe=Ft.End,!1}else Oe===Ft.Start&&De.push(We);return ae.includes(We)}),De}function Kt(Jt,ee){const ae=(0,yt.Z)(ee),fe=[];return Qt(Jt,(se,De)=>{const Oe=ae.indexOf(se);return Oe!==-1&&(fe.push(De),ae.splice(Oe,1)),!!ae.length}),fe}var ue=function(Jt,ee){var ae={};for(var fe in Jt)Object.prototype.hasOwnProperty.call(Jt,fe)&&ee.indexOf(fe)<0&&(ae[fe]=Jt[fe]);if(Jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,fe=Object.getOwnPropertySymbols(Jt);se<fe.length;se++)ee.indexOf(fe[se])<0&&Object.prototype.propertyIsEnumerable.call(Jt,fe[se])&&(ae[fe[se]]=Jt[fe[se]]);return ae};function oe(Jt){const{isLeaf:ee,expanded:ae}=Jt;return ee?Wt.createElement(Vt.Z,null):ae?Wt.createElement(Yt.Z,null):Wt.createElement(Tt,null)}function we(Jt){let{treeData:ee,children:ae}=Jt;return ee||(0,tt.zn)(ae)}const Se=(Jt,ee)=>{var{defaultExpandAll:ae,defaultExpandParent:fe,defaultExpandedKeys:se}=Jt,De=ue(Jt,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Oe=Wt.useRef(),en=Wt.useRef(),We=()=>{const{keyEntities:dt}=(0,tt.I8)(we(De));let gt;return ae?gt=Object.keys(dt):fe?gt=(0,et.r7)(De.expandedKeys||se||[],dt):gt=De.expandedKeys||se,gt},[rn,ke]=Wt.useState(De.selectedKeys||De.defaultSelectedKeys||[]),[Ie,je]=Wt.useState(()=>We());Wt.useEffect(()=>{"selectedKeys"in De&&ke(De.selectedKeys)},[De.selectedKeys]),Wt.useEffect(()=>{"expandedKeys"in De&&je(De.expandedKeys)},[De.expandedKeys]);const $e=(dt,gt)=>{var zt;return"expandedKeys"in De||je(dt),(zt=De.onExpand)===null||zt===void 0?void 0:zt.call(De,dt,gt)},me=(dt,gt)=>{var zt;const{multiple:re}=De,{node:Zt,nativeEvent:ye}=gt,{key:Ye=""}=Zt,sn=we(De),Le=Object.assign(Object.assign({},gt),{selected:!0}),Re=(ye==null?void 0:ye.ctrlKey)||(ye==null?void 0:ye.metaKey),hn=ye==null?void 0:ye.shiftKey;let wn;re&&Re?(wn=dt,Oe.current=Ye,en.current=wn,Le.selectedNodes=Kt(sn,wn)):re&&hn?(wn=Array.from(new Set([].concat((0,yt.Z)(en.current||[]),(0,yt.Z)($t({treeData:sn,expandedKeys:Ie,startKey:Ye,endKey:Oe.current}))))),Le.selectedNodes=Kt(sn,wn)):(wn=[Ye],Oe.current=Ye,en.current=wn,Le.selectedNodes=Kt(sn,wn)),(zt=De.onSelect)===null||zt===void 0||zt.call(De,wn,Le),"selectedKeys"in De||ke(wn)},{getPrefixCls:le,direction:Ee}=Wt.useContext(st.E_),{prefixCls:ce,className:he,showIcon:_t=!0,expandAction:Mt="click"}=De,Et=ue(De,["prefixCls","className","showIcon","expandAction"]),Ht=le("tree",ce),Pt=vt()(`${Ht}-directory`,{[`${Ht}-directory-rtl`]:Ee==="rtl"},he);return Wt.createElement(Ut,Object.assign({icon:oe,ref:ee,blockNode:!0},Et,{showIcon:_t,expandAction:Mt,prefixCls:Ht,className:Pt,expandedKeys:Ie,selectedKeys:rn,onSelect:me,onExpand:$e}))};var pe=Wt.forwardRef(Se);const Ue=Ut;Ue.DirectoryTree=pe,Ue.TreeNode=Rt.O;var de=Ue},20648:function(Nn,An,Gt){"use strict";Gt.d(An,{TM:function(){return It},Yk:function(){return Tt}});var Rt=Gt(9792),yt=Gt(98447),Vt=Gt(17313),Yt=Gt(8378),Nt=Gt(37613),Wt=Gt(83116);const xt=new Rt.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),Ot=(vt,et)=>({[`.${vt}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${et.motionDurationSlow}`}}}),Bt=(vt,et)=>({[`.${vt}-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:'""'}}}),At=(vt,et)=>{const{treeCls:tt,treeNodeCls:st,treeNodePadding:rt,titleHeight:ut,nodeSelectedBg:ct,nodeHoverBg:pt}=et,mt=et.paddingXS;return{[tt]:Object.assign(Object.assign({},(0,Vt.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,Vt.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,Vt.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(vt,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:mt},[`${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:pt},[`&${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"},Bt(vt,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`}}}}})}},bt=vt=>{const{treeCls:et,treeNodeCls:tt,treeNodePadding:st,directoryNodeSelectedBg:rt,directoryNodeSelectedColor:ut}=vt;return{[`${et}${et}-directory`]:{[tt]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:st,insetInlineStart:0,transition:`background-color ${vt.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:vt.controlItemBgHover}},"> *":{zIndex:1},[`${et}-switcher`]:{transition:`color ${vt.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"}}}}}},Tt=(vt,et)=>{const tt=`.${vt}`,st=`${tt}-treenode`,rt=et.paddingXS/2,ut=(0,Nt.TS)(et,{treeCls:tt,treeNodeCls:st,treeNodePadding:rt});return[At(vt,ut),bt(ut)]},It=vt=>{const{controlHeightSM:et}=vt;return{titleHeight:et,nodeHoverBg:vt.controlItemBgHover,nodeSelectedBg:vt.controlItemBgActive}};An.ZP=(0,Wt.Z)("Tree",(vt,et)=>{let{prefixCls:tt}=et;return[{[vt.componentCls]:(0,yt.C2)(`${tt}-checkbox`,vt)},Tt(tt,vt),(0,Yt.Z)(vt)]},vt=>{const{colorTextLightSolid:et,colorPrimary:tt}=vt;return Object.assign(Object.assign({},It(vt)),{directoryNodeSelectedColor:et,directoryNodeSelectedBg:tt})})},48610:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return st}});var Rt=Gt(5891),yt=Gt(59301),Vt={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"},Yt=Vt,Nt=Gt(88853),Wt=function(ut,ct){return yt.createElement(Nt.Z,(0,Rt.Z)({},ut,{ref:ct,icon:Yt}))},xt=yt.forwardRef(Wt),Ot=xt,Bt=Gt(43971),At=Gt(50023),bt=Gt(77042),Tt=Gt(5527),It=Gt(92310),vt=Gt.n(It),et=Gt(92343),st=rt=>{const{prefixCls:ut,switcherIcon:ct,treeNodeProps:pt,showLine:mt}=rt,{isLeaf:Ct,expanded:Dt,loading:Ut}=pt;if(Ut)return yt.createElement(At.Z,{className:`${ut}-switcher-loading-icon`});let Ft;if(mt&&typeof mt=="object"&&(Ft=mt.showLeafIcon),Ct){if(!mt)return null;if(typeof Ft!="boolean"&&Ft){const Kt=typeof Ft=="function"?Ft(pt):Ft,ue=`${ut}-switcher-line-custom-icon`;return(0,et.l$)(Kt)?(0,et.Tm)(Kt,{className:vt()(Kt.props.className||"",ue)}):Kt}return Ft?yt.createElement(Bt.Z,{className:`${ut}-switcher-line-icon`}):yt.createElement("span",{className:`${ut}-switcher-leaf-line`})}const Qt=`${ut}-switcher-icon`,$t=typeof ct=="function"?ct(pt):ct;return(0,et.l$)($t)?(0,et.Tm)($t,{className:vt()($t.props.className||"",Qt)}):$t!==void 0?$t:mt?Dt?yt.createElement(bt.Z,{className:`${ut}-switcher-line-icon`}):yt.createElement(Tt.Z,{className:`${ut}-switcher-line-icon`}):yt.createElement(Ot,{className:Qt})}},24645:function(Nn,An,Gt){"use strict";Gt.d(An,{default:function(){return cn}});var Rt=Gt(59301),yt=Gt(26390),Vt=Gt(92310),Yt=Gt.n(Vt),Nt=Gt(5891),Wt=Gt(79545),xt=Gt(68550),Ot=Gt(17928),Bt=Gt(7711),At=Gt(80962),bt=Gt(19149),Tt=Gt(50204),It=Gt(80665),vt=Gt(20959),et=Gt(36994);function tt(_e,on){var dn="cannot ".concat(_e.method," ").concat(_e.action," ").concat(on.status,"'"),ln=new Error(dn);return ln.status=on.status,ln.method=_e.method,ln.url=_e.action,ln}function st(_e){var on=_e.responseText||_e.response;if(!on)return on;try{return JSON.parse(on)}catch(dn){return on}}function rt(_e){var on=new XMLHttpRequest;_e.onProgress&&on.upload&&(on.upload.onprogress=function(yn){yn.total>0&&(yn.percent=yn.loaded/yn.total*100),_e.onProgress(yn)});var dn=new FormData;_e.data&&Object.keys(_e.data).forEach(function(xn){var yn=_e.data[xn];if(Array.isArray(yn)){yn.forEach(function(Mn){dn.append("".concat(xn,"[]"),Mn)});return}dn.append(xn,yn)}),_e.file instanceof Blob?dn.append(_e.filename,_e.file,_e.file.name):dn.append(_e.filename,_e.file),on.onerror=function(yn){_e.onError(yn)},on.onload=function(){return on.status<200||on.status>=300?_e.onError(tt(_e,on),st(on)):_e.onSuccess(st(on),on)},on.open(_e.method,_e.action,!0),_e.withCredentials&&"withCredentials"in on&&(on.withCredentials=!0);var ln=_e.headers||{};return ln["X-Requested-With"]!==null&&on.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(ln).forEach(function(xn){ln[xn]!==null&&on.setRequestHeader(xn,ln[xn])}),on.send(dn),{abort:function(){on.abort()}}}var ut=+new Date,ct=0;function pt(){return"rc-upload-".concat(ut,"-").concat(++ct)}var mt=Gt(51395),Ct=function(_e,on){if(_e&&on){var dn=Array.isArray(on)?on:on.split(","),ln=_e.name||"",xn=_e.type||"",yn=xn.replace(/\/.*$/,"");return dn.some(function(Mn){var On=Mn.trim();if(/^\*(\/\*)?$/.test(Mn))return!0;if(On.charAt(0)==="."){var En=ln.toLowerCase(),jn=On.toLowerCase(),ei=[jn];return(jn===".jpg"||jn===".jpeg")&&(ei=[".jpg",".jpeg"]),ei.some(function(pi){return En.endsWith(pi)})}return/\/\*$/.test(On)?yn===On.replace(/\/.*$/,""):xn===On?!0:/^\w+$/.test(On)?((0,mt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(On,"'.Skip for check.")),!0):!1})}return!0};function Dt(_e,on){var dn=_e.createReader(),ln=[];function xn(){dn.readEntries(function(yn){var Mn=Array.prototype.slice.apply(yn);ln=ln.concat(Mn);var On=!Mn.length;On?on(ln):xn()})}xn()}var Ut=function(on,dn,ln){var xn=function yn(Mn,On){Mn&&(Mn.path=On||"",Mn.isFile?Mn.file(function(En){ln(En)&&(Mn.fullPath&&!En.webkitRelativePath&&(Object.defineProperties(En,{webkitRelativePath:{writable:!0}}),En.webkitRelativePath=Mn.fullPath.replace(/^\//,""),Object.defineProperties(En,{webkitRelativePath:{writable:!1}})),dn([En]))}):Mn.isDirectory&&Dt(Mn,function(En){En.forEach(function(jn){yn(jn,"".concat(On).concat(Mn.name,"/"))})}))};on.forEach(function(yn){xn(yn.webkitGetAsEntry())})},Ft=Ut,Qt=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],$t=function(_e){(0,Ot.Z)(dn,_e);var on=(0,Bt.Z)(dn);function dn(){var ln;(0,Wt.Z)(this,dn);for(var xn=arguments.length,yn=new Array(xn),Mn=0;Mn<xn;Mn++)yn[Mn]=arguments[Mn];return ln=on.call.apply(on,[this].concat(yn)),ln.state={uid:pt()},ln.reqs={},ln.fileInput=void 0,ln._isMounted=void 0,ln.onChange=function(On){var En=ln.props,jn=En.accept,ei=En.directory,pi=On.target.files,ii=(0,yt.Z)(pi).filter(function(qe){return!ei||Ct(qe,jn)});ln.uploadFiles(ii),ln.reset()},ln.onClick=function(On){var En=ln.fileInput;if(En){var jn=On.target,ei=ln.props.onClick;if(jn&&jn.tagName==="BUTTON"){var pi=En.parentNode;pi.focus(),jn.blur()}En.click(),ei&&ei(On)}},ln.onKeyDown=function(On){On.key==="Enter"&&ln.onClick(On)},ln.onFileDrop=function(On){var En=ln.props.multiple;if(On.preventDefault(),On.type!=="dragover")if(ln.props.directory)Ft(Array.prototype.slice.call(On.dataTransfer.items),ln.uploadFiles,function(ei){return Ct(ei,ln.props.accept)});else{var jn=(0,yt.Z)(On.dataTransfer.files).filter(function(ei){return Ct(ei,ln.props.accept)});En===!1&&(jn=jn.slice(0,1)),ln.uploadFiles(jn)}},ln.uploadFiles=function(On){var En=(0,yt.Z)(On),jn=En.map(function(ei){return ei.uid=pt(),ln.processFile(ei,En)});Promise.all(jn).then(function(ei){var pi=ln.props.onBatchStart;pi==null||pi(ei.map(function(ii){var qe=ii.origin,Xn=ii.parsedFile;return{file:qe,parsedFile:Xn}})),ei.filter(function(ii){return ii.parsedFile!==null}).forEach(function(ii){ln.post(ii)})})},ln.processFile=function(){var On=(0,vt.Z)((0,Tt.Z)().mark(function En(jn,ei){var pi,ii,qe,Xn,ti,Qn,Li,fi,ki;return(0,Tt.Z)().wrap(function(oi){for(;;)switch(oi.prev=oi.next){case 0:if(pi=ln.props.beforeUpload,ii=jn,!pi){oi.next=14;break}return oi.prev=3,oi.next=6,pi(jn,ei);case 6:ii=oi.sent,oi.next=12;break;case 9:oi.prev=9,oi.t0=oi.catch(3),ii=!1;case 12:if(ii!==!1){oi.next=14;break}return oi.abrupt("return",{origin:jn,parsedFile:null,action:null,data:null});case 14:if(qe=ln.props.action,typeof qe!="function"){oi.next=21;break}return oi.next=18,qe(jn);case 18:Xn=oi.sent,oi.next=22;break;case 21:Xn=qe;case 22:if(ti=ln.props.data,typeof ti!="function"){oi.next=29;break}return oi.next=26,ti(jn);case 26:Qn=oi.sent,oi.next=30;break;case 29:Qn=ti;case 30:return Li=((0,It.Z)(ii)==="object"||typeof ii=="string")&&ii?ii:jn,Li instanceof File?fi=Li:fi=new File([Li],jn.name,{type:jn.type}),ki=fi,ki.uid=jn.uid,oi.abrupt("return",{origin:jn,data:Qn,parsedFile:ki,action:Xn});case 35:case"end":return oi.stop()}},En,null,[[3,9]])}));return function(En,jn){return On.apply(this,arguments)}}(),ln.saveFileInput=function(On){ln.fileInput=On},ln}return(0,xt.Z)(dn,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(xn){var yn=this,Mn=xn.data,On=xn.origin,En=xn.action,jn=xn.parsedFile;if(this._isMounted){var ei=this.props,pi=ei.onStart,ii=ei.customRequest,qe=ei.name,Xn=ei.headers,ti=ei.withCredentials,Qn=ei.method,Li=On.uid,fi=ii||rt,ki={action:En,filename:qe,data:Mn,file:jn,headers:Xn,withCredentials:ti,method:Qn||"post",onProgress:function(oi){var Fi=yn.props.onProgress;Fi==null||Fi(oi,jn)},onSuccess:function(oi,Fi){var Cn=yn.props.onSuccess;Cn==null||Cn(oi,jn,Fi),delete yn.reqs[Li]},onError:function(oi,Fi){var Cn=yn.props.onError;Cn==null||Cn(oi,Fi,jn),delete yn.reqs[Li]}};pi(On),this.reqs[Li]=fi(ki)}}},{key:"reset",value:function(){this.setState({uid:pt()})}},{key:"abort",value:function(xn){var yn=this.reqs;if(xn){var Mn=xn.uid?xn.uid:xn;yn[Mn]&&yn[Mn].abort&&yn[Mn].abort(),delete yn[Mn]}else Object.keys(yn).forEach(function(On){yn[On]&&yn[On].abort&&yn[On].abort(),delete yn[On]})}},{key:"render",value:function(){var xn=this.props,yn=xn.component,Mn=xn.prefixCls,On=xn.className,En=xn.disabled,jn=xn.id,ei=xn.style,pi=xn.multiple,ii=xn.accept,qe=xn.capture,Xn=xn.children,ti=xn.directory,Qn=xn.openFileDialogOnClick,Li=xn.onMouseEnter,fi=xn.onMouseLeave,ki=(0,bt.Z)(xn,Qt),gi=Yt()((0,At.Z)((0,At.Z)((0,At.Z)({},Mn,!0),"".concat(Mn,"-disabled"),En),On,On)),oi=ti?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Fi=En?{}:{onClick:Qn?this.onClick:function(){},onKeyDown:Qn?this.onKeyDown:function(){},onMouseEnter:Li,onMouseLeave:fi,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return Rt.createElement(yn,(0,Nt.Z)({},Fi,{className:gi,role:"button",style:ei}),Rt.createElement("input",(0,Nt.Z)({},(0,et.Z)(ki,{aria:!0,data:!0}),{id:jn,disabled:En,type:"file",ref:this.saveFileInput,onClick:function(nr){return nr.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:ii},oi,{multiple:pi,onChange:this.onChange},qe!=null?{capture:qe}:{})),Xn)}}]),dn}(Rt.Component),Kt=$t;function ue(){}var oe=function(_e){(0,Ot.Z)(dn,_e);var on=(0,Bt.Z)(dn);function dn(){var ln;(0,Wt.Z)(this,dn);for(var xn=arguments.length,yn=new Array(xn),Mn=0;Mn<xn;Mn++)yn[Mn]=arguments[Mn];return ln=on.call.apply(on,[this].concat(yn)),ln.uploader=void 0,ln.saveUploader=function(On){ln.uploader=On},ln}return(0,xt.Z)(dn,[{key:"abort",value:function(xn){this.uploader.abort(xn)}},{key:"render",value:function(){return Rt.createElement(Kt,(0,Nt.Z)({},this.props,{ref:this.saveUploader}))}}]),dn}(Rt.Component);oe.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:ue,onError:ue,onSuccess:ue,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var we=oe,Se=we,Ne=Gt(35788),pe=Gt(4676),Ue=Gt(36355),de=Gt(1684),Jt=Gt(9763),ee=Gt(31724),ae={icon:function(on,dn){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:dn}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:on}}]}},name:"file",theme:"twotone"},fe=ae,se=Gt(88853),De=function(on,dn){return Rt.createElement(se.Z,(0,Nt.Z)({},on,{ref:dn,icon:fe}))},Oe=Rt.forwardRef(De),en=Oe,We=Gt(50023),rn={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"},ke=rn,Ie=function(on,dn){return Rt.createElement(se.Z,(0,Nt.Z)({},on,{ref:dn,icon:ke}))},je=Rt.forwardRef(Ie),$e=je,me={icon:function(on,dn){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:on}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:dn}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:dn}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:dn}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:on}}]}},name:"picture",theme:"twotone"},le=me,Ee=function(on,dn){return Rt.createElement(se.Z,(0,Nt.Z)({},on,{ref:dn,icon:le}))},ce=Rt.forwardRef(Ee),he=ce,_t=Gt(43469),Mt=Gt(56762),Et=Gt(62892),Ht=Gt(92343),Pt=Gt(3113);function dt(_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 gt(_e,on){const dn=(0,yt.Z)(on),ln=dn.findIndex(xn=>{let{uid:yn}=xn;return yn===_e.uid});return ln===-1?dn.push(_e):dn[ln]=_e,dn}function zt(_e,on){const dn=_e.uid!==void 0?"uid":"name";return on.filter(ln=>ln[dn]===_e[dn])[0]}function re(_e,on){const dn=_e.uid!==void 0?"uid":"name",ln=on.filter(xn=>xn[dn]!==_e[dn]);return ln.length===on.length?null:ln}const Zt=function(){const on=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),ln=on[on.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(ln)||[""])[0]},ye=_e=>_e.indexOf("image/")===0,Ye=_e=>{if(_e.type&&!_e.thumbUrl)return ye(_e.type);const on=_e.thumbUrl||_e.url||"",dn=Zt(on);return/^data:image\//.test(on)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(dn)?!0:!(/^data:/.test(on)||dn)},sn=200;function Le(_e){return new Promise(on=>{if(!_e.type||!ye(_e.type)){on("");return}const dn=document.createElement("canvas");dn.width=sn,dn.height=sn,dn.style.cssText=`position: fixed; left: 0; top: 0; width: ${sn}px; height: ${sn}px; z-index: 9999; display: none;`,document.body.appendChild(dn);const ln=dn.getContext("2d"),xn=new Image;if(xn.onload=()=>{const{width:yn,height:Mn}=xn;let On=sn,En=sn,jn=0,ei=0;yn>Mn?(En=Mn*(sn/yn),ei=-(En-On)/2):(On=yn*(sn/Mn),jn=-(On-En)/2),ln.drawImage(xn,jn,ei,On,En);const pi=dn.toDataURL();document.body.removeChild(dn),window.URL.revokeObjectURL(xn.src),on(pi)},xn.crossOrigin="anonymous",_e.type.startsWith("image/svg+xml")){const yn=new FileReader;yn.onload=()=>{yn.result&&(xn.src=yn.result)},yn.readAsDataURL(_e)}else if(_e.type.startsWith("image/gif")){const yn=new FileReader;yn.onload=()=>{yn.result&&on(yn.result)},yn.readAsDataURL(_e)}else xn.src=window.URL.createObjectURL(_e)})}var Re=Gt(72295),hn=Gt(24566),wn=Gt(30631),kn=Gt(93948),Rn=Gt(6848),Kn=Rt.forwardRef((_e,on)=>{let{prefixCls:dn,className:ln,style:xn,locale:yn,listType:Mn,file:On,items:En,progress:jn,iconRender:ei,actionIconRender:pi,itemRender:ii,isImgUrl:qe,showPreviewIcon:Xn,showRemoveIcon:ti,showDownloadIcon:Qn,previewIcon:Li,removeIcon:fi,downloadIcon:ki,onPreview:gi,onDownload:oi,onClose:Fi}=_e;var Cn,nr;const{status:Ln}=On,[Bi,wr]=Rt.useState(Ln);Rt.useEffect(()=>{Ln!=="removed"&&wr(Ln)},[Ln]);const[Hi,Or]=Rt.useState(!1);Rt.useEffect(()=>{const xi=setTimeout(()=>{Or(!0)},300);return()=>{clearTimeout(xi)}},[]);const pr=ei(On);let Si=Rt.createElement("div",{className:`${dn}-icon`},pr);if(Mn==="picture"||Mn==="picture-card"||Mn==="picture-circle")if(Bi==="uploading"||!On.thumbUrl&&!On.url){const xi=Yt()(`${dn}-list-item-thumbnail`,{[`${dn}-list-item-file`]:Bi!=="uploading"});Si=Rt.createElement("div",{className:xi},pr)}else{const xi=qe!=null&&qe(On)?Rt.createElement("img",{src:On.thumbUrl||On.url,alt:On.name,className:`${dn}-list-item-image`,crossOrigin:On.crossOrigin}):pr,di=Yt()(`${dn}-list-item-thumbnail`,{[`${dn}-list-item-file`]:qe&&!qe(On)});Si=Rt.createElement("a",{className:di,onClick:Ai=>gi(On,Ai),href:On.url||On.thumbUrl,target:"_blank",rel:"noopener noreferrer"},xi)}const vi=Yt()(`${dn}-list-item`,`${dn}-list-item-${Bi}`),Xi=typeof On.linkProps=="string"?JSON.parse(On.linkProps):On.linkProps,Zi=ti?pi((typeof fi=="function"?fi(On):fi)||Rt.createElement(Re.Z,null),()=>Fi(On),dn,yn.removeFile):null,Jn=Qn&&Bi==="done"?pi((typeof ki=="function"?ki(On):ki)||Rt.createElement(hn.Z,null),()=>oi(On),dn,yn.downloadFile):null,xe=Mn!=="picture-card"&&Mn!=="picture-circle"&&Rt.createElement("span",{key:"download-delete",className:Yt()(`${dn}-list-item-actions`,{picture:Mn==="picture"})},Jn,Zi),Ri=Yt()(`${dn}-list-item-name`),Ar=On.url?[Rt.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:Ri,title:On.name},Xi,{href:On.url,onClick:xi=>gi(On,xi)}),On.name),xe]:[Rt.createElement("span",{key:"view",className:Ri,onClick:xi=>gi(On,xi),title:On.name},On.name),xe],zi={pointerEvents:"none",opacity:.5},ir=Xn?Rt.createElement("a",{href:On.url||On.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:On.url||On.thumbUrl?void 0:zi,onClick:xi=>gi(On,xi),title:yn.previewFile},typeof Li=="function"?Li(On):Li||Rt.createElement(wn.Z,null)):null,Oi=(Mn==="picture-card"||Mn==="picture-circle")&&Bi!=="uploading"&&Rt.createElement("span",{className:`${dn}-list-item-actions`},ir,Bi==="done"&&Jn,Zi),{getPrefixCls:Ci}=Rt.useContext(Ue.E_),tr=Ci(),yr=Rt.createElement("div",{className:vi},Si,Ar,Oi,Hi&&Rt.createElement(_t.default,{motionName:`${tr}-fade`,visible:Bi==="uploading",motionDeadline:2e3},xi=>{let{className:di}=xi;const Ai="percent"in On?Rt.createElement(kn.Z,Object.assign({},jn,{type:"line",percent:On.percent,"aria-label":On["aria-label"],"aria-labelledby":On["aria-labelledby"]})):null;return Rt.createElement("div",{className:Yt()(`${dn}-list-item-progress`,di)},Ai)})),_i=On.response&&typeof On.response=="string"?On.response:((Cn=On.error)===null||Cn===void 0?void 0:Cn.statusText)||((nr=On.error)===null||nr===void 0?void 0:nr.message)||yn.uploadError,Mr=Bi==="error"?Rt.createElement(Rn.Z,{title:_i,getPopupContainer:xi=>xi.parentNode},yr):yr;return Rt.createElement("div",{className:Yt()(`${dn}-list-item-container`,ln),style:xn,ref:on},ii?ii(Mr,On,En,{download:oi.bind(null,On),preview:gi.bind(null,On),remove:Fi.bind(null,On)}):Mr)});const li=(_e,on)=>{const{listType:dn="text",previewFile:ln=Le,onPreview:xn,onDownload:yn,onRemove:Mn,locale:On,iconRender:En,isImageUrl:jn=Ye,prefixCls:ei,items:pi=[],showPreviewIcon:ii=!0,showRemoveIcon:qe=!0,showDownloadIcon:Xn=!1,removeIcon:ti,previewIcon:Qn,downloadIcon:Li,progress:fi={size:[-1,2],showInfo:!1},appendAction:ki,appendActionVisible:gi=!0,itemRender:oi,disabled:Fi}=_e,Cn=(0,Mt.Z)(),[nr,Ln]=Rt.useState(!1);Rt.useEffect(()=>{dn!=="picture"&&dn!=="picture-card"&&dn!=="picture-circle"||(pi||[]).forEach(zi=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(zi.originFileObj instanceof File||zi.originFileObj instanceof Blob)||zi.thumbUrl!==void 0||(zi.thumbUrl="",ln&&ln(zi.originFileObj).then(ir=>{zi.thumbUrl=ir||"",Cn()}))})},[dn,pi,ln]),Rt.useEffect(()=>{Ln(!0)},[]);const Bi=(zi,ir)=>{if(xn)return ir==null||ir.preventDefault(),xn(zi)},wr=zi=>{typeof yn=="function"?yn(zi):zi.url&&window.open(zi.url)},Hi=zi=>{Mn==null||Mn(zi)},Or=zi=>{if(En)return En(zi,dn);const ir=zi.status==="uploading",Oi=jn&&jn(zi)?Rt.createElement(he,null):Rt.createElement(en,null);let Ci=ir?Rt.createElement(We.Z,null):Rt.createElement($e,null);return dn==="picture"?Ci=ir?Rt.createElement(We.Z,null):Oi:(dn==="picture-card"||dn==="picture-circle")&&(Ci=ir?On.uploading:Oi),Ci},pr=(zi,ir,Oi,Ci)=>{const tr={type:"text",size:"small",title:Ci,onClick:yr=>{ir(),(0,Ht.l$)(zi)&&zi.props.onClick&&zi.props.onClick(yr)},className:`${Oi}-list-item-action`,disabled:Fi};if((0,Ht.l$)(zi)){const yr=(0,Ht.Tm)(zi,Object.assign(Object.assign({},zi.props),{onClick:()=>{}}));return Rt.createElement(Pt.ZP,Object.assign({},tr,{icon:yr}))}return Rt.createElement(Pt.ZP,Object.assign({},tr),Rt.createElement("span",null,zi))};Rt.useImperativeHandle(on,()=>({handlePreview:Bi,handleDownload:wr}));const{getPrefixCls:Si}=Rt.useContext(Ue.E_),vi=Si("upload",ei),Xi=Si(),Zi=Yt()(`${vi}-list`,`${vi}-list-${dn}`),Jn=(0,yt.Z)(pi.map(zi=>({key:zi.uid,file:zi})));let Ri={motionDeadline:2e3,motionName:`${vi}-${dn==="picture-card"||dn==="picture-circle"?"animate-inline":"animate"}`,keys:Jn,motionAppear:nr};const Ar=Rt.useMemo(()=>{const zi=Object.assign({},(0,Et.Z)(Xi));return delete zi.onAppearEnd,delete zi.onEnterEnd,delete zi.onLeaveEnd,zi},[Xi]);return dn!=="picture-card"&&dn!=="picture-circle"&&(Ri=Object.assign(Object.assign({},Ar),Ri)),Rt.createElement("div",{className:Zi},Rt.createElement(_t.CSSMotionList,Object.assign({},Ri,{component:!1}),zi=>{let{key:ir,file:Oi,className:Ci,style:tr}=zi;return Rt.createElement(Kn,{key:ir,locale:On,prefixCls:vi,className:Ci,style:tr,file:Oi,items:pi,progress:fi,listType:dn,isImgUrl:jn,showPreviewIcon:ii,showRemoveIcon:qe,showDownloadIcon:Xn,removeIcon:ti,previewIcon:Qn,downloadIcon:Li,iconRender:Or,actionIconRender:pr,itemRender:oi,onPreview:Bi,onDownload:wr,onClose:Hi})}),ki&&Rt.createElement(_t.default,Object.assign({},Ri,{visible:gi,forceRender:!0}),zi=>{let{className:ir,style:Oi}=zi;return(0,Ht.Tm)(ki,Ci=>({className:Yt()(Ci.className,ir),style:Object.assign(Object.assign(Object.assign({},Oi),{pointerEvents:ir?"none":void 0}),Ci.style)}))}))};var yi=Rt.forwardRef(li),Pi=Gt(17313),Mi=Gt(8378),Gi=Gt(83116),bi=Gt(37613),ui=_e=>{const{componentCls:on,iconCls:dn}=_e;return{[`${on}-wrapper`]:{[`${on}-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}`,[on]:{padding:`${_e.padding}px 0`},[`${on}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${on}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${on}-disabled):hover`]:{borderColor:_e.colorPrimaryHover},[`p${on}-drag-icon`]:{marginBottom:_e.margin,[dn]:{color:_e.colorPrimary,fontSize:_e.uploadThumbnailSize}},[`p${on}-text`]:{margin:`0 0 ${_e.marginXXS}px`,color:_e.colorTextHeading,fontSize:_e.fontSizeLG},[`p${on}-hint`]:{color:_e.colorTextDescription,fontSize:_e.fontSize},[`&${on}-disabled`]:{cursor:"not-allowed",[`p${on}-drag-icon ${dn},
|
|
|
p${on}-text,
|
|
|
p${on}-hint
|
|
|
`]:{color:_e.colorTextDisabled}}}}}},Yi=_e=>{const{componentCls:on,antCls:dn,iconCls:ln,fontSize:xn,lineHeight:yn}=_e,Mn=`${on}-list-item`,On=`${Mn}-actions`,En=`${Mn}-action`,jn=Math.round(xn*yn);return{[`${on}-wrapper`]:{[`${on}-list`]:Object.assign(Object.assign({},(0,Pi.dF)()),{lineHeight:_e.lineHeight,[Mn]:{position:"relative",height:_e.lineHeight*xn,marginTop:_e.marginXS,fontSize:xn,display:"flex",alignItems:"center",transition:`background-color ${_e.motionDurationSlow}`,"&:hover":{backgroundColor:_e.controlItemBgHover},[`${Mn}-name`]:Object.assign(Object.assign({},Pi.vS),{padding:`0 ${_e.paddingXS}px`,lineHeight:yn,flex:"auto",transition:`all ${_e.motionDurationSlow}`}),[On]:{[En]:{opacity:0},[`${En}${dn}-btn-sm`]:{height:jn,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
|
${En}:focus-visible,
|
|
|
&.picture ${En}
|
|
|
`]:{opacity:1},[ln]:{color:_e.actionsColor,transition:`all ${_e.motionDurationSlow}`},[`&:hover ${ln}`]:{color:_e.colorText}},[`${on}-icon ${ln}`]:{color:_e.colorTextDescription,fontSize:xn},[`${Mn}-progress`]:{position:"absolute",bottom:-_e.uploadProgressOffset,width:"100%",paddingInlineStart:xn+_e.paddingXS,fontSize:xn,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${Mn}:hover ${En}`]:{opacity:1,color:_e.colorText},[`${Mn}-error`]:{color:_e.colorError,[`${Mn}-name, ${on}-icon ${ln}`]:{color:_e.colorError},[On]:{[`${ln}, ${ln}:hover`]:{color:_e.colorError},[En]:{opacity:1}}},[`${on}-list-item-container`]:{transition:`opacity ${_e.motionDurationSlow}, height ${_e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},Ti=Gt(9792),or=Gt(1950);const Sr=new Ti.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Er=new Ti.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var qn=_e=>{const{componentCls:on}=_e,dn=`${on}-animate-inline`;return[{[`${on}-wrapper`]:{[`${dn}-appear, ${dn}-enter, ${dn}-leave`]:{animationDuration:_e.motionDurationSlow,animationTimingFunction:_e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${dn}-appear, ${dn}-enter`]:{animationName:Sr},[`${dn}-leave`]:{animationName:Er}}},{[`${on}-wrapper`]:(0,or.J$)(_e)},Sr,Er]},tn=Gt(93398),nn=Gt(64993);const Qe=_e=>{const{componentCls:on,iconCls:dn,uploadThumbnailSize:ln,uploadProgressOffset:xn}=_e,yn=`${on}-list`,Mn=`${yn}-item`;return{[`${on}-wrapper`]:{[`
|
|
|
${yn}${yn}-picture,
|
|
|
${yn}${yn}-picture-card,
|
|
|
${yn}${yn}-picture-circle
|
|
|
`]:{[Mn]:{position:"relative",height:ln+_e.lineWidth*2+_e.paddingXS*2,padding:_e.paddingXS,border:`${_e.lineWidth}px ${_e.lineType} ${_e.colorBorder}`,borderRadius:_e.borderRadiusLG,"&:hover":{background:"transparent"},[`${Mn}-thumbnail`]:Object.assign(Object.assign({},Pi.vS),{width:ln,height:ln,lineHeight:`${ln+_e.paddingSM}px`,textAlign:"center",flex:"none",[dn]:{fontSize:_e.fontSizeHeading2,color:_e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${Mn}-progress`]:{bottom:xn,width:`calc(100% - ${_e.paddingSM*2}px)`,marginTop:0,paddingInlineStart:ln+_e.paddingXS}},[`${Mn}-error`]:{borderColor:_e.colorError,[`${Mn}-thumbnail ${dn}`]:{[`svg path[fill='${tn.blue[0]}']`]:{fill:_e.colorErrorBg},[`svg path[fill='${tn.blue.primary}']`]:{fill:_e.colorError}}},[`${Mn}-uploading`]:{borderStyle:"dashed",[`${Mn}-name`]:{marginBottom:xn}}},[`${yn}${yn}-picture-circle ${Mn}`]:{[`&, &::before, ${Mn}-thumbnail`]:{borderRadius:"50%"}}}}},Fe=_e=>{const{componentCls:on,iconCls:dn,fontSizeLG:ln,colorTextLightSolid:xn}=_e,yn=`${on}-list`,Mn=`${yn}-item`,On=_e.uploadPicCardSize;return{[`
|
|
|
${on}-wrapper${on}-picture-card-wrapper,
|
|
|
${on}-wrapper${on}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,Pi.dF)()),{display:"inline-block",width:"100%",[`${on}${on}-select`]:{width:On,height:On,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}`,[`> ${on}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${on}-disabled):hover`]:{borderColor:_e.colorPrimary}},[`${yn}${yn}-picture-card, ${yn}${yn}-picture-circle`]:{[`${yn}-item-container`]:{display:"inline-block",width:On,height:On,marginBlock:`0 ${_e.marginXS}px`,marginInline:`0 ${_e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[Mn]:{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:'" "'}},[`${Mn}:hover`]:{[`&::before, ${Mn}-actions`]:{opacity:1}},[`${Mn}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${_e.motionDurationSlow}`,[`${dn}-eye, ${dn}-download, ${dn}-delete`]:{zIndex:10,width:ln,margin:`0 ${_e.marginXXS}px`,fontSize:ln,cursor:"pointer",transition:`all ${_e.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${Mn}-actions, ${Mn}-actions:hover`]:{[`${dn}-eye, ${dn}-download, ${dn}-delete`]:{color:new nn.C(xn).setAlpha(.65).toRgbString(),"&:hover":{color:xn}}},[`${Mn}-thumbnail, ${Mn}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${Mn}-name`]:{display:"none",textAlign:"center"},[`${Mn}-file + ${Mn}-name`]:{position:"absolute",bottom:_e.margin,display:"block",width:`calc(100% - ${_e.paddingXS*2}px)`},[`${Mn}-uploading`]:{[`&${Mn}`]:{backgroundColor:_e.colorFillAlter},[`&::before, ${dn}-eye, ${dn}-download, ${dn}-delete`]:{display:"none"}},[`${Mn}-progress`]:{bottom:_e.marginXL,width:`calc(100% - ${_e.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${on}-wrapper${on}-picture-circle-wrapper`]:{[`${on}${on}-select`]:{borderRadius:"50%"}}}};var bn=_e=>{const{componentCls:on}=_e;return{[`${on}-rtl`]:{direction:"rtl"}}};const Ze=_e=>{const{componentCls:on,colorTextDisabled:dn}=_e;return{[`${on}-wrapper`]:Object.assign(Object.assign({},(0,Pi.Wf)(_e)),{[on]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${on}-select`]:{display:"inline-block"},[`${on}-disabled`]:{color:dn,cursor:"not-allowed"}})}};var Ae=(0,Gi.Z)("Upload",_e=>{const{fontSizeHeading3:on,fontSize:dn,lineHeight:ln,lineWidth:xn,controlHeightLG:yn}=_e,Mn=Math.round(dn*ln),On=(0,bi.TS)(_e,{uploadThumbnailSize:on*2,uploadProgressOffset:Mn/2+xn,uploadPicCardSize:yn*2.55});return[Ze(On),ui(On),Qe(On),Fe(On),Yi(On),qn(On),bn(On),(0,Mi.Z)(On)]},_e=>({actionsColor:_e.colorTextDescription})),gn=function(_e,on,dn,ln){function xn(yn){return yn instanceof dn?yn:new dn(function(Mn){Mn(yn)})}return new(dn||(dn=Promise))(function(yn,Mn){function On(ei){try{jn(ln.next(ei))}catch(pi){Mn(pi)}}function En(ei){try{jn(ln.throw(ei))}catch(pi){Mn(pi)}}function jn(ei){ei.done?yn(ei.value):xn(ei.value).then(On,En)}jn((ln=ln.apply(_e,on||[])).next())})};const Pn=`__LIST_IGNORE_${Date.now()}__`,Un=(_e,on)=>{const{fileList:dn,defaultFileList:ln,onRemove:xn,showUploadList:yn=!0,listType:Mn="text",onPreview:On,onDownload:En,onChange:jn,onDrop:ei,previewFile:pi,disabled:ii,locale:qe,iconRender:Xn,isImageUrl:ti,progress:Qn,prefixCls:Li,className:fi,type:ki="select",children:gi,style:oi,itemRender:Fi,maxCount:Cn,data:nr={},multiple:Ln=!1,action:Bi="",accept:wr="",supportServerRender:Hi=!0,rootClassName:Or}=_e,pr=Rt.useContext(de.Z),Si=ii!=null?ii:pr,[vi,Xi]=(0,Ne.Z)(ln||[],{value:dn,postState:mr=>mr!=null?mr:[]}),[Zi,Jn]=Rt.useState("drop"),xe=Rt.useRef(null);Rt.useMemo(()=>{const mr=Date.now();(dn||[]).forEach((Wr,so)=>{!Wr.uid&&!Object.isFrozen(Wr)&&(Wr.uid=`__AUTO__${mr}_${so}__`)})},[dn]);const Ri=(mr,Wr,so)=>{let zr=(0,yt.Z)(Wr),qi=!1;Cn===1?zr=zr.slice(-1):Cn&&(qi=zr.length>Cn,zr=zr.slice(0,Cn)),(0,pe.flushSync)(()=>{Xi(zr)});const Ji={file:mr,fileList:zr};so&&(Ji.event=so),(!qi||zr.some(ao=>ao.uid===mr.uid))&&(0,pe.flushSync)(()=>{jn==null||jn(Ji)})},Ar=(mr,Wr)=>gn(void 0,void 0,void 0,function*(){const{beforeUpload:so,transformFile:zr}=_e;let qi=mr;if(so){const Ji=yield so(mr,Wr);if(Ji===!1)return!1;if(delete mr[Pn],Ji===Pn)return Object.defineProperty(mr,Pn,{value:!0,configurable:!0}),!1;typeof Ji=="object"&&Ji&&(qi=Ji)}return zr&&(qi=yield zr(qi)),qi}),zi=mr=>{const Wr=mr.filter(qi=>!qi.file[Pn]);if(!Wr.length)return;const so=Wr.map(qi=>dt(qi.file));let zr=(0,yt.Z)(vi);so.forEach(qi=>{zr=gt(qi,zr)}),so.forEach((qi,Ji)=>{let ao=qi;if(Wr[Ji].parsedFile)qi.status="uploading";else{const{originFileObj:$i}=qi;let cr;try{cr=new File([$i],$i.name,{type:$i.type})}catch(fr){cr=new Blob([$i],{type:$i.type}),cr.name=$i.name,cr.lastModifiedDate=new Date,cr.lastModified=new Date().getTime()}cr.uid=qi.uid,ao=cr}Ri(ao,zr)})},ir=(mr,Wr,so)=>{try{typeof mr=="string"&&(mr=JSON.parse(mr))}catch(Ji){}if(!zt(Wr,vi))return;const zr=dt(Wr);zr.status="done",zr.percent=100,zr.response=mr,zr.xhr=so;const qi=gt(zr,vi);Ri(zr,qi)},Oi=(mr,Wr)=>{if(!zt(Wr,vi))return;const so=dt(Wr);so.status="uploading",so.percent=mr.percent;const zr=gt(so,vi);Ri(so,zr,mr)},Ci=(mr,Wr,so)=>{if(!zt(so,vi))return;const zr=dt(so);zr.error=mr,zr.response=Wr,zr.status="error";const qi=gt(zr,vi);Ri(zr,qi)},tr=mr=>{let Wr;Promise.resolve(typeof xn=="function"?xn(mr):xn).then(so=>{var zr;if(so===!1)return;const qi=re(mr,vi);qi&&(Wr=Object.assign(Object.assign({},mr),{status:"removed"}),vi==null||vi.forEach(Ji=>{const ao=Wr.uid!==void 0?"uid":"name";Ji[ao]===Wr[ao]&&!Object.isFrozen(Ji)&&(Ji.status="removed")}),(zr=xe.current)===null||zr===void 0||zr.abort(Wr),Ri(Wr,qi))})},yr=mr=>{Jn(mr.type),mr.type==="drop"&&(ei==null||ei(mr))};Rt.useImperativeHandle(on,()=>({onBatchStart:zi,onSuccess:ir,onProgress:Oi,onError:Ci,fileList:vi,upload:xe.current}));const{getPrefixCls:_i,direction:Mr,upload:xi}=Rt.useContext(Ue.E_),di=_i("upload",Li),Ai=Object.assign(Object.assign({onBatchStart:zi,onError:Ci,onProgress:Oi,onSuccess:ir},_e),{data:nr,multiple:Ln,action:Bi,accept:wr,supportServerRender:Hi,prefixCls:di,disabled:Si,beforeUpload:Ar,onChange:void 0});delete Ai.className,delete Ai.style,(!gi||Si)&&delete Ai.id;const[zn,hr]=Ae(di),[Tr]=(0,Jt.Z)("Upload",ee.Z.Upload),{showRemoveIcon:Qr,showPreviewIcon:kr,showDownloadIcon:Xr,removeIcon:io,previewIcon:Wo,downloadIcon:vo}=typeof yn=="boolean"?{}:yn,Uo=(mr,Wr)=>yn?Rt.createElement(yi,{prefixCls:di,listType:Mn,items:vi,previewFile:pi,onPreview:On,onDownload:En,onRemove:tr,showRemoveIcon:!Si&&Qr,showPreviewIcon:kr,showDownloadIcon:Xr,removeIcon:io,previewIcon:Wo,downloadIcon:vo,iconRender:Xn,locale:Object.assign(Object.assign({},Tr),qe),isImageUrl:ti,progress:Qn,appendAction:mr,appendActionVisible:Wr,itemRender:Fi,disabled:Si}):mr,To=Yt()(`${di}-wrapper`,fi,Or,hr,xi==null?void 0:xi.className,{[`${di}-rtl`]:Mr==="rtl",[`${di}-picture-card-wrapper`]:Mn==="picture-card",[`${di}-picture-circle-wrapper`]:Mn==="picture-circle"}),Sn=Object.assign(Object.assign({},xi==null?void 0:xi.style),oi);if(ki==="drag"){const mr=Yt()(hr,di,`${di}-drag`,{[`${di}-drag-uploading`]:vi.some(Wr=>Wr.status==="uploading"),[`${di}-drag-hover`]:Zi==="dragover",[`${di}-disabled`]:Si,[`${di}-rtl`]:Mr==="rtl"});return zn(Rt.createElement("span",{className:To},Rt.createElement("div",{className:mr,style:Sn,onDrop:yr,onDragOver:yr,onDragLeave:yr},Rt.createElement(Se,Object.assign({},Ai,{ref:xe,className:`${di}-btn`}),Rt.createElement("div",{className:`${di}-drag-container`},gi))),Uo()))}const yo=Yt()(di,`${di}-select`,{[`${di}-disabled`]:Si}),_s=(mr=>Rt.createElement("div",{className:yo,style:mr},Rt.createElement(Se,Object.assign({},Ai,{ref:xe}))))(gi?void 0:{display:"none"});return zn(Mn==="picture-card"||Mn==="picture-circle"?Rt.createElement("span",{className:To},Uo(_s,!!gi)):Rt.createElement("span",{className:To},_s,Uo()))};var Me=Rt.forwardRef(Un),Ge=function(_e,on){var dn={};for(var ln in _e)Object.prototype.hasOwnProperty.call(_e,ln)&&on.indexOf(ln)<0&&(dn[ln]=_e[ln]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xn=0,ln=Object.getOwnPropertySymbols(_e);xn<ln.length;xn++)on.indexOf(ln[xn])<0&&Object.prototype.propertyIsEnumerable.call(_e,ln[xn])&&(dn[ln[xn]]=_e[ln[xn]]);return dn},In=Rt.forwardRef((_e,on)=>{var{style:dn,height:ln}=_e,xn=Ge(_e,["style","height"]);return Rt.createElement(Me,Object.assign({ref:on},xn,{type:"drag",style:Object.assign(Object.assign({},dn),{height:ln})}))});const Ke=Me;Ke.Dragger=In,Ke.LIST_IGNORE=Pn;var cn=Ke},99498:function(Nn,An,Gt){(function(Rt){Rt(Gt(89780))})(function(Rt){Rt.defineOption("placeholder","",function(Ot,Bt,At){var bt=At&&At!=Rt.Init;if(Bt&&!bt)Ot.on("blur",Nt),Ot.on("change",Wt),Ot.on("swapDoc",Wt),Rt.on(Ot.getInputField(),"compositionupdate",Ot.state.placeholderCompose=function(){Yt(Ot)}),Wt(Ot);else if(!Bt&&bt){Ot.off("blur",Nt),Ot.off("change",Wt),Ot.off("swapDoc",Wt),Rt.off(Ot.getInputField(),"compositionupdate",Ot.state.placeholderCompose),yt(Ot);var Tt=Ot.getWrapperElement();Tt.className=Tt.className.replace(" CodeMirror-empty","")}Bt&&!Ot.hasFocus()&&Nt(Ot)});function yt(Ot){Ot.state.placeholder&&(Ot.state.placeholder.parentNode.removeChild(Ot.state.placeholder),Ot.state.placeholder=null)}function Vt(Ot){yt(Ot);var Bt=Ot.state.placeholder=document.createElement("pre");Bt.style.cssText="height: 0; overflow: visible",Bt.style.direction=Ot.getOption("direction"),Bt.className="CodeMirror-placeholder CodeMirror-line-like";var At=Ot.getOption("placeholder");typeof At=="string"&&(At=document.createTextNode(At)),Bt.appendChild(At),Ot.display.lineSpace.insertBefore(Bt,Ot.display.lineSpace.firstChild)}function Yt(Ot){setTimeout(function(){var Bt=!1,At=Ot.getInputField();At.nodeName=="TEXTAREA"?Bt=!At.value:Ot.lineCount()==1&&(Bt=!/[^\u200b]/.test(At.querySelector(".CodeMirror-line").textContent)),Bt?Vt(Ot):yt(Ot)},20)}function Nt(Ot){xt(Ot)&&Vt(Ot)}function Wt(Ot){var Bt=Ot.getWrapperElement(),At=xt(Ot);Bt.className=Bt.className.replace(" CodeMirror-empty","")+(At?" CodeMirror-empty":""),At?Vt(Ot):yt(Ot)}function xt(Ot){return Ot.lineCount()===1&&Ot.getLine(0)===""}})},25717:function(Nn,An,Gt){(function(Rt){Rt(Gt(89780))})(function(Rt){var yt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Vt=Rt.Pos;Rt.defineOption("autoCloseBrackets",!1,function(et,tt,st){st&&st!=Rt.Init&&(et.removeKeyMap(Nt),et.state.closeBrackets=null),tt&&(Wt(Yt(tt,"pairs")),et.state.closeBrackets=tt,et.addKeyMap(Nt))});function Yt(et,tt){return tt=="pairs"&&typeof et=="string"?et:typeof et=="object"&&et[tt]!=null?et[tt]:yt[tt]}var Nt={Backspace:Bt,Enter:At};function Wt(et){for(var tt=0;tt<et.length;tt++){var st=et.charAt(tt),rt="'"+st+"'";Nt[rt]||(Nt[rt]=xt(st))}}Wt(yt.pairs+"`");function xt(et){return function(tt){return Tt(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 Bt(et){var tt=Ot(et);if(!tt||et.getOption("disableInput"))return Rt.Pass;for(var st=Yt(tt,"pairs"),rt=et.listSelections(),ut=0;ut<rt.length;ut++){if(!rt[ut].empty())return Rt.Pass;var ct=It(et,rt[ut].head);if(!ct||st.indexOf(ct)%2!=0)return Rt.Pass}for(var ut=rt.length-1;ut>=0;ut--){var pt=rt[ut].head;et.replaceRange("",Vt(pt.line,pt.ch-1),Vt(pt.line,pt.ch+1),"+delete")}}function At(et){var tt=Ot(et),st=tt&&Yt(tt,"explode");if(!st||et.getOption("disableInput"))return Rt.Pass;for(var rt=et.listSelections(),ut=0;ut<rt.length;ut++){if(!rt[ut].empty())return Rt.Pass;var ct=It(et,rt[ut].head);if(!ct||st.indexOf(ct)%2!=0)return Rt.Pass}et.operation(function(){var pt=et.lineSeparator()||`
|
|
|
`;et.replaceSelection(pt+pt,null),et.execCommand("goCharLeft"),rt=et.listSelections();for(var mt=0;mt<rt.length;mt++){var Ct=rt[mt].head.line;et.indentLine(Ct,null,!0),et.indentLine(Ct+1,null,!0)}})}function bt(et){var tt=Rt.cmpPos(et.anchor,et.head)>0;return{anchor:new Vt(et.anchor.line,et.anchor.ch+(tt?-1:1)),head:new Vt(et.head.line,et.head.ch+(tt?1:-1))}}function Tt(et,tt){var st=Ot(et);if(!st||et.getOption("disableInput"))return Rt.Pass;var rt=Yt(st,"pairs"),ut=rt.indexOf(tt);if(ut==-1)return Rt.Pass;for(var ct=Yt(st,"closeBefore"),pt=Yt(st,"triples"),mt=rt.charAt(ut+1)==tt,Ct=et.listSelections(),Dt=ut%2==0,Ut,Ft=0;Ft<Ct.length;Ft++){var Qt=Ct[Ft],$t=Qt.head,Kt,ue=et.getRange($t,Vt($t.line,$t.ch+1));if(Dt&&!Qt.empty())Kt="surround";else if((mt||!Dt)&&ue==tt)mt&&vt(et,$t)?Kt="both":pt.indexOf(tt)>=0&&et.getRange($t,Vt($t.line,$t.ch+3))==tt+tt+tt?Kt="skipThree":Kt="skip";else if(mt&&$t.ch>1&&pt.indexOf(tt)>=0&&et.getRange(Vt($t.line,$t.ch-2),$t)==tt+tt){if($t.ch>2&&/\bstring/.test(et.getTokenTypeAt(Vt($t.line,$t.ch-2))))return Rt.Pass;Kt="addFour"}else if(mt){var oe=$t.ch==0?" ":et.getRange(Vt($t.line,$t.ch-1),$t);if(!Rt.isWordChar(ue)&&oe!=tt&&!Rt.isWordChar(oe))Kt="both";else return Rt.Pass}else if(Dt&&(ue.length===0||/\s/.test(ue)||ct.indexOf(ue)>-1))Kt="both";else return Rt.Pass;if(!Ut)Ut=Kt;else if(Ut!=Kt)return Rt.Pass}var we=ut%2?rt.charAt(ut-1):tt,Se=ut%2?tt:rt.charAt(ut+1);et.operation(function(){if(Ut=="skip")et.execCommand("goCharRight");else if(Ut=="skipThree")for(var Ne=0;Ne<3;Ne++)et.execCommand("goCharRight");else if(Ut=="surround"){for(var pe=et.getSelections(),Ne=0;Ne<pe.length;Ne++)pe[Ne]=we+pe[Ne]+Se;et.replaceSelections(pe,"around"),pe=et.listSelections().slice();for(var Ne=0;Ne<pe.length;Ne++)pe[Ne]=bt(pe[Ne]);et.setSelections(pe)}else Ut=="both"?(et.replaceSelection(we+Se,null),et.triggerElectric(we+Se),et.execCommand("goCharLeft")):Ut=="addFour"&&(et.replaceSelection(we+we+we+we,"before"),et.execCommand("goCharRight"))})}function It(et,tt){var st=et.getRange(Vt(tt.line,tt.ch-1),Vt(tt.line,tt.ch+1));return st.length==2?st:null}function vt(et,tt){var st=et.getTokenAt(Vt(tt.line,tt.ch+1));return/\bstring/.test(st.type)&&st.start==tt.ch&&(tt.ch==0||!/\bstring/.test(et.getTokenTypeAt(tt)))}})},6313:function(Nn,An,Gt){(function(Rt){Rt(Gt(89780),Gt(32855))})(function(Rt){Rt.defineOption("autoCloseTags",!1,function(Bt,At,bt){if(bt!=Rt.Init&&bt&&Bt.removeKeyMap("autoCloseTags"),!!At){var Tt={name:"autoCloseTags"};(typeof At!="object"||At.whenClosing!==!1)&&(Tt["'/'"]=function(It){return Wt(It)}),(typeof At!="object"||At.whenOpening!==!1)&&(Tt["'>'"]=function(It){return Yt(It)}),Bt.addKeyMap(Tt)}});var yt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Vt=["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 Yt(Bt){if(Bt.getOption("disableInput"))return Rt.Pass;for(var At=Bt.listSelections(),bt=[],Tt=Bt.getOption("autoCloseTags"),It=0;It<At.length;It++){if(!At[It].empty())return Rt.Pass;var vt=At[It].head,et=Bt.getTokenAt(vt),tt=Rt.innerMode(Bt.getMode(),et.state),st=tt.state,rt=tt.mode.xmlCurrentTag&&tt.mode.xmlCurrentTag(st),ut=rt&&rt.name;if(!ut)return Rt.Pass;var ct=tt.mode.configuration=="html",pt=typeof Tt=="object"&&Tt.dontCloseTags||ct&&yt,mt=typeof Tt=="object"&&Tt.indentTags||ct&&Vt;et.end>vt.ch&&(ut=ut.slice(0,ut.length-et.end+vt.ch));var Ct=ut.toLowerCase();if(!ut||et.type=="string"&&(et.end!=vt.ch||!/[\"\']/.test(et.string.charAt(et.string.length-1))||et.string.length==1)||et.type=="tag"&&rt.close||et.string.indexOf("/")==vt.ch-et.start-1||pt&&xt(pt,Ct)>-1||Ot(Bt,tt.mode.xmlCurrentContext&&tt.mode.xmlCurrentContext(st)||[],ut,vt,!0))return Rt.Pass;var Dt=typeof Tt=="object"&&Tt.emptyTags;if(Dt&&xt(Dt,ut)>-1){bt[It]={text:"/>",newPos:Rt.Pos(vt.line,vt.ch+2)};continue}var Ut=mt&&xt(mt,Ct)>-1;bt[It]={indent:Ut,text:">"+(Ut?`
|
|
|
|
|
|
`:"")+"</"+ut+">",newPos:Ut?Rt.Pos(vt.line+1,0):Rt.Pos(vt.line,vt.ch+1)}}for(var Ft=typeof Tt=="object"&&Tt.dontIndentOnAutoClose,It=At.length-1;It>=0;It--){var Qt=bt[It];Bt.replaceRange(Qt.text,At[It].head,At[It].anchor,"+insert");var $t=Bt.listSelections().slice(0);$t[It]={head:Qt.newPos,anchor:Qt.newPos},Bt.setSelections($t),!Ft&&Qt.indent&&(Bt.indentLine(Qt.newPos.line,null,!0),Bt.indentLine(Qt.newPos.line+1,null,!0))}}function Nt(Bt,At){for(var bt=Bt.listSelections(),Tt=[],It=At?"/":"</",vt=Bt.getOption("autoCloseTags"),et=typeof vt=="object"&&vt.dontIndentOnSlash,tt=0;tt<bt.length;tt++){if(!bt[tt].empty())return Rt.Pass;var st=bt[tt].head,rt=Bt.getTokenAt(st),ut=Rt.innerMode(Bt.getMode(),rt.state),ct=ut.state;if(At&&(rt.type=="string"||rt.string.charAt(0)!="<"||rt.start!=st.ch-1))return Rt.Pass;var pt,mt=ut.mode.name!="xml"&&Bt.getMode().name=="htmlmixed";if(mt&&ut.mode.name=="javascript")pt=It+"script";else if(mt&&ut.mode.name=="css")pt=It+"style";else{var Ct=ut.mode.xmlCurrentContext&&ut.mode.xmlCurrentContext(ct);if(!Ct||Ct.length&&Ot(Bt,Ct,Ct[Ct.length-1],st))return Rt.Pass;pt=It+Ct[Ct.length-1]}Bt.getLine(st.line).charAt(rt.end)!=">"&&(pt+=">"),Tt[tt]=pt}if(Bt.replaceSelections(Tt),bt=Bt.listSelections(),!et)for(var tt=0;tt<bt.length;tt++)(tt==bt.length-1||bt[tt].head.line<bt[tt+1].head.line)&&Bt.indentLine(bt[tt].head.line)}function Wt(Bt){return Bt.getOption("disableInput")?Rt.Pass:Nt(Bt,!0)}Rt.commands.closeTag=function(Bt){return Nt(Bt)};function xt(Bt,At){if(Bt.indexOf)return Bt.indexOf(At);for(var bt=0,Tt=Bt.length;bt<Tt;++bt)if(Bt[bt]==At)return bt;return-1}function Ot(Bt,At,bt,Tt,It){if(!Rt.scanForClosingTag)return!1;var vt=Math.min(Bt.lastLine()+1,Tt.line+500),et=Rt.scanForClosingTag(Bt,Tt,null,vt);if(!et||et.tag!=bt)return!1;for(var tt=It?1:0,st=At.length-1;st>=0&&At[st]==bt;st--)++tt;Tt=et.to;for(var st=1;st<tt;st++){var rt=Rt.scanForClosingTag(Bt,Tt,null,vt);if(!rt||rt.tag!=bt)return!1;Tt=rt.to}return!0}})},32855:function(Nn,An,Gt){(function(Rt){Rt(Gt(89780))})(function(Rt){"use strict";var yt=Rt.Pos;function Vt(st,rt){return st.line-rt.line||st.ch-rt.ch}var Yt="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",Nt=Yt+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Wt=new RegExp("<(/?)(["+Yt+"]["+Nt+"]*)","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(yt(st.line,rt));return ut&&/\btag\b/.test(ut)}function Bt(st){if(!(st.line>=st.max))return st.ch=0,st.text=st.cm.getLine(++st.line),!0}function At(st){if(!(st.line<=st.min))return st.text=st.cm.getLine(--st.line),st.ch=st.text.length,!0}function bt(st){for(;;){var rt=st.text.indexOf(">",st.ch);if(rt==-1){if(Bt(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 Tt(st){for(;;){var rt=st.ch?st.text.lastIndexOf("<",st.ch-1):-1;if(rt==-1){if(At(st))continue;return}if(!Ot(st,rt+1)){st.ch=rt;continue}Wt.lastIndex=rt,st.ch=rt;var ut=Wt.exec(st.text);if(ut&&ut.index==rt)return ut}}function It(st){for(;;){Wt.lastIndex=st.ch;var rt=Wt.exec(st.text);if(!rt){if(Bt(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 vt(st){for(;;){var rt=st.ch?st.text.lastIndexOf(">",st.ch-1):-1;if(rt==-1){if(At(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),pt,mt=st.line,Ct=st.ch-(ct?ct[0].length:0);if(!ct||!(pt=bt(st)))return;if(pt!="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:yt(mt,Ct),to:yt(st.line,st.ch)}}else ut.push(ct[2])}}function tt(st,rt){for(var ut=[];;){var ct=vt(st);if(!ct)return;if(ct=="selfClose"){Tt(st);continue}var pt=st.line,mt=st.ch,Ct=Tt(st);if(!Ct)return;if(Ct[1])ut.push(Ct[2]);else{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:yt(st.line,st.ch),to:yt(pt,mt)}}}}Rt.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 pt=bt(ut);if(!pt)return;if(!ct[1]&&pt!="selfClose"){var mt=yt(ut.line,ut.ch),Ct=et(ut,ct[2]);return Ct&&Vt(Ct.from,mt)>0?{from:mt,to:Ct.from}:null}}}),Rt.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 pt=bt(ct),mt=pt&&yt(ct.line,ct.ch),Ct=pt&&Tt(ct);if(!(!pt||!Ct||Vt(ct,rt)>0)){var Dt={from:yt(ct.line,ct.ch),to:mt,tag:Ct[2]};return pt=="selfClose"?{open:Dt,close:null,at:"open"}:Ct[1]?{open:tt(ct,Ct[2]),close:Dt,at:"close"}:(ct=new xt(st,mt.line,mt.ch,ut),{open:Dt,close:et(ct,Ct[2]),at:"open"})}}},Rt.findEnclosingTag=function(st,rt,ut,ct){for(var pt=new xt(st,rt.line,rt.ch,ut);;){var mt=tt(pt,ct);if(!mt)break;var Ct=new xt(st,rt.line,rt.ch,ut),Dt=et(Ct,mt.tag);if(Dt)return{open:mt,close:Dt}}},Rt.scanForClosingTag=function(st,rt,ut,ct){var pt=new xt(st,rt.line,rt.ch,ct?{from:0,to:ct}:null);return et(pt,ut)}})},89780:function(Nn){(function(An,Gt){Nn.exports=Gt()})(this,function(){"use strict";var An=navigator.userAgent,Gt=navigator.platform,Rt=/gecko\/\d/i.test(An),yt=/MSIE \d/.test(An),Vt=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(An),Yt=/Edge\/(\d+)/.exec(An),Nt=yt||Vt||Yt,Wt=Nt&&(yt?document.documentMode||6:+(Yt||Vt)[1]),xt=!Yt&&/WebKit\//.test(An),Ot=xt&&/Qt\/\d+\.\d+/.test(An),Bt=!Yt&&/Chrome\//.test(An),At=/Opera\//.test(An),bt=/Apple Computer/.test(navigator.vendor),Tt=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(An),It=/PhantomJS/.test(An),vt=!Yt&&/AppleWebKit/.test(An)&&/Mobile\/\w+/.test(An),et=/Android/.test(An),tt=vt||et||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(An),st=vt||/Mac/.test(Gt),rt=/\bCrOS\b/.test(An),ut=/win/i.test(Gt),ct=At&&An.match(/Version\/(\d*\.\d*)/);ct&&(ct=Number(ct[1])),ct&&ct>=15&&(At=!1,xt=!0);var pt=st&&(Ot||At&&(ct==null||ct<12.11)),mt=Rt||Nt&&Wt>=9;function Ct(it){return new RegExp("(^|\\s)"+it+"(?:$|\\s)\\s*")}var Dt=function(it,lt){var wt=it.className,St=Ct(lt).exec(wt);if(St){var kt=wt.slice(St.index+St[0].length);it.className=wt.slice(0,St.index)+(kt?St[1]+kt:"")}};function Ut(it){for(var lt=it.childNodes.length;lt>0;--lt)it.removeChild(it.firstChild);return it}function Ft(it,lt){return Ut(it).appendChild(lt)}function Qt(it,lt,wt,St){var kt=document.createElement(it);if(wt&&(kt.className=wt),St&&(kt.style.cssText=St),typeof lt=="string")kt.appendChild(document.createTextNode(lt));else if(lt)for(var ne=0;ne<lt.length;++ne)kt.appendChild(lt[ne]);return kt}function $t(it,lt,wt,St){var kt=Qt(it,lt,wt,St);return kt.setAttribute("role","presentation"),kt}var Kt;document.createRange?Kt=function(it,lt,wt,St){var kt=document.createRange();return kt.setEnd(St||it,wt),kt.setStart(it,lt),kt}:Kt=function(it,lt,wt){var St=document.body.createTextRange();try{St.moveToElementText(it.parentNode)}catch(kt){return St}return St.collapse(!0),St.moveEnd("character",wt),St.moveStart("character",lt),St};function ue(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 oe(){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 we(it,lt){var wt=it.className;Ct(lt).test(wt)||(it.className+=(wt?" ":"")+lt)}function Se(it,lt){for(var wt=it.split(" "),St=0;St<wt.length;St++)wt[St]&&!Ct(wt[St]).test(lt)&&(lt+=" "+wt[St]);return lt}var Ne=function(it){it.select()};vt?Ne=function(it){it.selectionStart=0,it.selectionEnd=it.value.length}:Nt&&(Ne=function(it){try{it.select()}catch(lt){}});function pe(it){var lt=Array.prototype.slice.call(arguments,1);return function(){return it.apply(null,lt)}}function Ue(it,lt,wt){lt||(lt={});for(var St in it)it.hasOwnProperty(St)&&(wt!==!1||!lt.hasOwnProperty(St))&&(lt[St]=it[St]);return lt}function de(it,lt,wt,St,kt){lt==null&&(lt=it.search(/[^\s\u00a0]/),lt==-1&&(lt=it.length));for(var ne=St||0,ge=kt||0;;){var Ce=it.indexOf(" ",ne);if(Ce<0||Ce>=lt)return ge+(lt-ne);ge+=Ce-ne,ge+=wt-ge%wt,ne=Ce+1}}var Jt=function(){this.id=null,this.f=null,this.time=0,this.handler=pe(this.onTimeout,this)};Jt.prototype.onTimeout=function(it){it.id=0,it.time<=+new Date?it.f():setTimeout(it.handler,it.time-+new Date)},Jt.prototype.set=function(it,lt){this.f=lt;var wt=+new Date+it;(!this.id||wt<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,it),this.time=wt)};function ee(it,lt){for(var wt=0;wt<it.length;++wt)if(it[wt]==lt)return wt;return-1}var ae=50,fe={toString:function(){return"CodeMirror.Pass"}},se={scroll:!1},De={origin:"*mouse"},Oe={origin:"+move"};function en(it,lt,wt){for(var St=0,kt=0;;){var ne=it.indexOf(" ",St);ne==-1&&(ne=it.length);var ge=ne-St;if(ne==it.length||kt+ge>=lt)return St+Math.min(ge,lt-kt);if(kt+=ne-St,kt+=wt-kt%wt,St=ne+1,kt>=lt)return St}}var We=[""];function rn(it){for(;We.length<=it;)We.push(ke(We)+" ");return We[it]}function ke(it){return it[it.length-1]}function Ie(it,lt){for(var wt=[],St=0;St<it.length;St++)wt[St]=lt(it[St],St);return wt}function je(it,lt,wt){for(var St=0,kt=wt(lt);St<it.length&&wt(it[St])<=kt;)St++;it.splice(St,0,lt)}function $e(){}function me(it,lt){var wt;return Object.create?wt=Object.create(it):($e.prototype=it,wt=new $e),lt&&Ue(lt,wt),wt}var le=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ee(it){return/\w/.test(it)||it>"\x80"&&(it.toUpperCase()!=it.toLowerCase()||le.test(it))}function ce(it,lt){return lt?lt.source.indexOf("\\w")>-1&&Ee(it)?!0:lt.test(it):Ee(it)}function he(it){for(var lt in it)if(it.hasOwnProperty(lt)&&it[lt])return!1;return!0}var _t=/[\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 Mt(it){return it.charCodeAt(0)>=768&&_t.test(it)}function Et(it,lt,wt){for(;(wt<0?lt>0:lt<it.length)&&Mt(it.charAt(lt));)lt+=wt;return lt}function Ht(it,lt,wt){for(var St=lt>wt?-1:1;;){if(lt==wt)return lt;var kt=(lt+wt)/2,ne=St<0?Math.ceil(kt):Math.floor(kt);if(ne==lt)return it(ne)?lt:wt;it(ne)?wt=ne:lt=ne+St}}function Pt(it,lt,wt,St){if(!it)return St(lt,wt,"ltr",0);for(var kt=!1,ne=0;ne<it.length;++ne){var ge=it[ne];(ge.from<wt&&ge.to>lt||lt==wt&&ge.to==lt)&&(St(Math.max(ge.from,lt),Math.min(ge.to,wt),ge.level==1?"rtl":"ltr",ne),kt=!0)}kt||St(lt,wt,"ltr")}var dt=null;function gt(it,lt,wt){var St;dt=null;for(var kt=0;kt<it.length;++kt){var ne=it[kt];if(ne.from<lt&&ne.to>lt)return kt;ne.to==lt&&(ne.from!=ne.to&&wt=="before"?St=kt:dt=kt),ne.from==lt&&(ne.from!=ne.to&&wt!="before"?St=kt:dt=kt)}return St!=null?St:dt}var zt=function(){var it="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",lt="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function wt(He){return He<=247?it.charAt(He):1424<=He&&He<=1524?"R":1536<=He&&He<=1785?lt.charAt(He-1536):1774<=He&&He<=2220?"r":8192<=He&&He<=8203?"w":He==8204?"b":"L"}var St=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,kt=/[stwN]/,ne=/[LRr]/,ge=/[Lb1n]/,Ce=/[1n]/;function Pe(He,pn,Xe){this.level=He,this.from=pn,this.to=Xe}return function(He,pn){var Xe=pn=="ltr"?"L":"R";if(He.length==0||pn=="ltr"&&!St.test(He))return!1;for(var Fn=He.length,Dn=[],ni=0;ni<Fn;++ni)Dn.push(wt(He.charCodeAt(ni)));for(var ai=0,wi=Xe;ai<Fn;++ai){var Di=Dn[ai];Di=="m"?Dn[ai]=wi:wi=Di}for(var er=0,Ui=Xe;er<Fn;++er){var sr=Dn[er];sr=="1"&&Ui=="r"?Dn[er]="n":ne.test(sr)&&(Ui=sr,sr=="r"&&(Dn[er]="R"))}for(var Lr=1,Wi=Dn[0];Lr<Fn-1;++Lr){var jr=Dn[Lr];jr=="+"&&Wi=="1"&&Dn[Lr+1]=="1"?Dn[Lr]="1":jr==","&&Wi==Dn[Lr+1]&&(Wi=="1"||Wi=="n")&&(Dn[Lr]=Wi),Wi=jr}for(var Do=0;Do<Fn;++Do){var fs=Dn[Do];if(fs==",")Dn[Do]="N";else if(fs=="%"){var Zo=void 0;for(Zo=Do+1;Zo<Fn&&Dn[Zo]=="%";++Zo);for(var ma=Do&&Dn[Do-1]=="!"||Zo<Fn&&Dn[Zo]=="1"?"1":"N",Gs=Do;Gs<Zo;++Gs)Dn[Gs]=ma;Do=Zo-1}}for(var as=0,Ta=Xe;as<Fn;++as){var Bs=Dn[as];Ta=="L"&&Bs=="1"?Dn[as]="L":ne.test(Bs)&&(Ta=Bs)}for(var ls=0;ls<Fn;++ls)if(kt.test(Dn[ls])){var $r=void 0;for($r=ls+1;$r<Fn&&kt.test(Dn[$r]);++$r);for(var _o=(ls?Dn[ls-1]:Xe)=="L",Cs=($r<Fn?Dn[$r]:Xe)=="L",Rs=_o==Cs?_o?"L":"R":Xe,fl=ls;fl<$r;++fl)Dn[fl]=Rs;ls=$r-1}for(var Xo=[],il,qo=0;qo<Fn;)if(ge.test(Dn[qo])){var fd=qo;for(++qo;qo<Fn&&ge.test(Dn[qo]);++qo);Xo.push(new Pe(0,fd,qo))}else{var Va=qo,ka=Xo.length,va=pn=="rtl"?1:0;for(++qo;qo<Fn&&Dn[qo]!="L";++qo);for(var xo=Va;xo<qo;)if(Ce.test(Dn[xo])){Va<xo&&(Xo.splice(ka,0,new Pe(1,Va,xo)),ka+=va);var Es=xo;for(++xo;xo<qo&&Ce.test(Dn[xo]);++xo);Xo.splice(ka,0,new Pe(2,Es,xo)),ka+=va,Va=xo}else++xo;Va<qo&&Xo.splice(ka,0,new Pe(1,Va,qo))}return pn=="ltr"&&(Xo[0].level==1&&(il=He.match(/^\s+/))&&(Xo[0].from=il[0].length,Xo.unshift(new Pe(0,0,il[0].length))),ke(Xo).level==1&&(il=He.match(/\s+$/))&&(ke(Xo).to-=il[0].length,Xo.push(new Pe(0,Fn-il[0].length,Fn)))),pn=="rtl"?Xo.reverse():Xo}}();function re(it,lt){var wt=it.order;return wt==null&&(wt=it.order=zt(it.text,lt)),wt}var Zt=[],ye=function(it,lt,wt){if(it.addEventListener)it.addEventListener(lt,wt,!1);else if(it.attachEvent)it.attachEvent("on"+lt,wt);else{var St=it._handlers||(it._handlers={});St[lt]=(St[lt]||Zt).concat(wt)}};function Ye(it,lt){return it._handlers&&it._handlers[lt]||Zt}function sn(it,lt,wt){if(it.removeEventListener)it.removeEventListener(lt,wt,!1);else if(it.detachEvent)it.detachEvent("on"+lt,wt);else{var St=it._handlers,kt=St&&St[lt];if(kt){var ne=ee(kt,wt);ne>-1&&(St[lt]=kt.slice(0,ne).concat(kt.slice(ne+1)))}}}function Le(it,lt){var wt=Ye(it,lt);if(wt.length)for(var St=Array.prototype.slice.call(arguments,2),kt=0;kt<wt.length;++kt)wt[kt].apply(null,St)}function Re(it,lt,wt){return typeof lt=="string"&&(lt={type:lt,preventDefault:function(){this.defaultPrevented=!0}}),Le(it,wt||lt.type,it,lt),Kn(lt)||lt.codemirrorIgnore}function hn(it){var lt=it._handlers&&it._handlers.cursorActivity;if(lt)for(var wt=it.curOp.cursorActivityHandlers||(it.curOp.cursorActivityHandlers=[]),St=0;St<lt.length;++St)ee(wt,lt[St])==-1&&wt.push(lt[St])}function wn(it,lt){return Ye(it,lt).length>0}function kn(it){it.prototype.on=function(lt,wt){ye(this,lt,wt)},it.prototype.off=function(lt,wt){sn(this,lt,wt)}}function Rn(it){it.preventDefault?it.preventDefault():it.returnValue=!1}function Yn(it){it.stopPropagation?it.stopPropagation():it.cancelBubble=!0}function Kn(it){return it.defaultPrevented!=null?it.defaultPrevented:it.returnValue==!1}function li(it){Rn(it),Yn(it)}function mi(it){return it.target||it.srcElement}function yi(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 Pi=function(){if(Nt&&Wt<9)return!1;var it=Qt("div");return"draggable"in it||"dragDrop"in it}(),Mi;function Gi(it){if(Mi==null){var lt=Qt("span","\u200B");Ft(it,Qt("span",[lt,document.createTextNode("x")])),it.firstChild.offsetHeight!=0&&(Mi=lt.offsetWidth<=1&<.offsetHeight>2&&!(Nt&&Wt<8))}var wt=Mi?Qt("span","\u200B"):Qt("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return wt.setAttribute("cm-text",""),wt}var bi;function Ki(it){if(bi!=null)return bi;var lt=Ft(it,document.createTextNode("A\u062EA")),wt=Kt(lt,0,1).getBoundingClientRect(),St=Kt(lt,1,2).getBoundingClientRect();return Ut(it),!wt||wt.left==wt.right?!1:bi=St.right-wt.right<3}var ui=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(it){for(var lt=0,wt=[],St=it.length;lt<=St;){var kt=it.indexOf(`
|
|
|
`,lt);kt==-1&&(kt=it.length);var ne=it.slice(lt,it.charAt(kt-1)=="\r"?kt-1:kt),ge=ne.indexOf("\r");ge!=-1?(wt.push(ne.slice(0,ge)),lt+=ge+1):(wt.push(ne),lt=kt+1)}return wt}:function(it){return it.split(/\r\n?|\n/)},te=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(wt){}return!lt||lt.parentElement()!=it?!1:lt.compareEndPoints("StartToEnd",lt)!=0},Yi=function(){var it=Qt("div");return"oncopy"in it?!0:(it.setAttribute("oncopy","return;"),typeof it.oncopy=="function")}(),Ti=null;function or(it){if(Ti!=null)return Ti;var lt=Ft(it,Qt("span","x")),wt=lt.getBoundingClientRect(),St=Kt(lt,0,1).getBoundingClientRect();return Ti=Math.abs(wt.left-St.left)>1}var Sr={},Er={};function vr(it,lt){arguments.length>2&&(lt.dependencies=Array.prototype.slice.call(arguments,2)),Sr[it]=lt}function qn(it,lt){Er[it]=lt}function tn(it){if(typeof it=="string"&&Er.hasOwnProperty(it))it=Er[it];else if(it&&typeof it.name=="string"&&Er.hasOwnProperty(it.name)){var lt=Er[it.name];typeof lt=="string"&&(lt={name:lt}),it=me(lt,it),it.name=lt.name}else{if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(it))return tn("application/xml");if(typeof it=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(it))return tn("application/json")}return typeof it=="string"?{name:it}:it||{name:"null"}}function nn(it,lt){lt=tn(lt);var wt=Sr[lt.name];if(!wt)return nn(it,"text/plain");var St=wt(it,lt);if(Qe.hasOwnProperty(lt.name)){var kt=Qe[lt.name];for(var ne in kt)kt.hasOwnProperty(ne)&&(St.hasOwnProperty(ne)&&(St["_"+ne]=St[ne]),St[ne]=kt[ne])}if(St.name=lt.name,lt.helperType&&(St.helperType=lt.helperType),lt.modeProps)for(var ge in lt.modeProps)St[ge]=lt.modeProps[ge];return St}var Qe={};function Fe(it,lt){var wt=Qe.hasOwnProperty(it)?Qe[it]:Qe[it]={};Ue(lt,wt)}function vn(it,lt){if(lt===!0)return lt;if(it.copyState)return it.copyState(lt);var wt={};for(var St in lt){var kt=lt[St];kt instanceof Array&&(kt=kt.concat([])),wt[St]=kt}return wt}function bn(it,lt){for(var wt;it.innerMode&&(wt=it.innerMode(lt),!(!wt||wt.mode==it));)lt=wt.state,it=wt.mode;return wt||{mode:it,state:lt}}function Ze(it,lt,wt){return it.startState?it.startState(lt,wt):!0}var Ae=function(it,lt,wt){this.pos=this.start=0,this.string=it,this.tabSize=lt||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=wt};Ae.prototype.eol=function(){return this.pos>=this.string.length},Ae.prototype.sol=function(){return this.pos==this.lineStart},Ae.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ae.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ae.prototype.eat=function(it){var lt=this.string.charAt(this.pos),wt;if(typeof it=="string"?wt=lt==it:wt=lt&&(it.test?it.test(lt):it(lt)),wt)return++this.pos,lt},Ae.prototype.eatWhile=function(it){for(var lt=this.pos;this.eat(it););return this.pos>lt},Ae.prototype.eatSpace=function(){for(var it=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>it},Ae.prototype.skipToEnd=function(){this.pos=this.string.length},Ae.prototype.skipTo=function(it){var lt=this.string.indexOf(it,this.pos);if(lt>-1)return this.pos=lt,!0},Ae.prototype.backUp=function(it){this.pos-=it},Ae.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=de(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?de(this.string,this.lineStart,this.tabSize):0)},Ae.prototype.indentation=function(){return de(this.string,null,this.tabSize)-(this.lineStart?de(this.string,this.lineStart,this.tabSize):0)},Ae.prototype.match=function(it,lt,wt){if(typeof it=="string"){var St=function(ge){return wt?ge.toLowerCase():ge},kt=this.string.substr(this.pos,it.length);if(St(kt)==St(it))return lt!==!1&&(this.pos+=it.length),!0}else{var ne=this.string.slice(this.pos).match(it);return ne&&ne.index>0?null:(ne&<!==!1&&(this.pos+=ne[0].length),ne)}},Ae.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ae.prototype.hideFirstChars=function(it,lt){this.lineStart+=it;try{return lt()}finally{this.lineStart-=it}},Ae.prototype.lookAhead=function(it){var lt=this.lineOracle;return lt&<.lookAhead(it)},Ae.prototype.baseToken=function(){var it=this.lineOracle;return it&&it.baseToken(this.pos)};function gn(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 wt=it;!wt.lines;)for(var St=0;;++St){var kt=wt.children[St],ne=kt.chunkSize();if(lt<ne){wt=kt;break}lt-=ne}return wt.lines[lt]}function Pn(it,lt,wt){var St=[],kt=lt.line;return it.iter(lt.line,wt.line+1,function(ne){var ge=ne.text;kt==wt.line&&(ge=ge.slice(0,wt.ch)),kt==lt.line&&(ge=ge.slice(lt.ch)),St.push(ge),++kt}),St}function Un(it,lt,wt){var St=[];return it.iter(lt,wt,function(kt){St.push(kt.text)}),St}function mn(it,lt){var wt=lt-it.height;if(wt)for(var St=it;St;St=St.parent)St.height+=wt}function Me(it){if(it.parent==null)return null;for(var lt=it.parent,wt=ee(lt.lines,it),St=lt.parent;St;lt=St,St=St.parent)for(var kt=0;St.children[kt]!=lt;++kt)wt+=St.children[kt].chunkSize();return wt+lt.first}function Ge(it,lt){var wt=it.first;t:do{for(var St=0;St<it.children.length;++St){var kt=it.children[St],ne=kt.height;if(lt<ne){it=kt;continue t}lt-=ne,wt+=kt.chunkSize()}return wt}while(!it.lines);for(var ge=0;ge<it.lines.length;++ge){var Ce=it.lines[ge],Pe=Ce.height;if(lt<Pe)break;lt-=Pe}return wt+ge}function fn(it,lt){return lt>=it.first&<<it.first+it.size}function In(it,lt){return String(it.lineNumberFormatter(lt+it.firstLineNumber))}function Ke(it,lt,wt){if(wt===void 0&&(wt=null),!(this instanceof Ke))return new Ke(it,lt,wt);this.line=it,this.ch=lt,this.sticky=wt}function cn(it,lt){return it.line-lt.line||it.ch-lt.ch}function _e(it,lt){return it.sticky==lt.sticky&&cn(it,lt)==0}function on(it){return Ke(it.line,it.ch)}function dn(it,lt){return cn(it,lt)<0?lt:it}function ln(it,lt){return cn(it,lt)<0?it:lt}function xn(it,lt){return Math.max(it.first,Math.min(lt,it.first+it.size-1))}function yn(it,lt){if(lt.line<it.first)return Ke(it.first,0);var wt=it.first+it.size-1;return lt.line>wt?Ke(wt,gn(it,wt).text.length):Mn(lt,gn(it,lt.line).text.length)}function Mn(it,lt){var wt=it.ch;return wt==null||wt>lt?Ke(it.line,lt):wt<0?Ke(it.line,0):it}function On(it,lt){for(var wt=[],St=0;St<lt.length;St++)wt[St]=yn(it,lt[St]);return wt}var En=function(it,lt){this.state=it,this.lookAhead=lt},jn=function(it,lt,wt,St){this.state=lt,this.doc=it,this.line=wt,this.maxLookAhead=St||0,this.baseTokens=null,this.baseTokenPos=1};jn.prototype.lookAhead=function(it){var lt=this.doc.getLine(this.line+it);return lt!=null&&it>this.maxLookAhead&&(this.maxLookAhead=it),lt},jn.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}},jn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},jn.fromSaved=function(it,lt,wt){return lt instanceof En?new jn(it,vn(it.mode,lt.state),wt,lt.lookAhead):new jn(it,vn(it.mode,lt),wt)},jn.prototype.save=function(it){var lt=it!==!1?vn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new En(lt,this.maxLookAhead):lt};function ei(it,lt,wt,St){var kt=[it.state.modeGen],ne={};ki(it,lt.text,it.doc.mode,wt,function(He,pn){return kt.push(He,pn)},ne,St);for(var ge=wt.state,Ce=function(He){wt.baseTokens=kt;var pn=it.state.overlays[He],Xe=1,Fn=0;wt.state=!0,ki(it,lt.text,pn.mode,wt,function(Dn,ni){for(var ai=Xe;Fn<Dn;){var wi=kt[Xe];wi>Dn&&kt.splice(Xe,1,Dn,kt[Xe+1],wi),Xe+=2,Fn=Math.min(Dn,wi)}if(ni)if(pn.opaque)kt.splice(ai,Xe-ai,Dn,"overlay "+ni),Xe=ai+2;else for(;ai<Xe;ai+=2){var Di=kt[ai+1];kt[ai+1]=(Di?Di+" ":"")+"overlay "+ni}},ne),wt.state=ge,wt.baseTokens=null,wt.baseTokenPos=1},Pe=0;Pe<it.state.overlays.length;++Pe)Ce(Pe);return{styles:kt,classes:ne.bgClass||ne.textClass?ne:null}}function pi(it,lt,wt){if(!lt.styles||lt.styles[0]!=it.state.modeGen){var St=ii(it,Me(lt)),kt=lt.text.length>it.options.maxHighlightLength&&vn(it.doc.mode,St.state),ne=ei(it,lt,St);kt&&(St.state=kt),lt.stateAfter=St.save(!kt),lt.styles=ne.styles,ne.classes?lt.styleClasses=ne.classes:lt.styleClasses&&(lt.styleClasses=null),wt===it.doc.highlightFrontier&&(it.doc.modeFrontier=Math.max(it.doc.modeFrontier,++it.doc.highlightFrontier))}return lt.styles}function ii(it,lt,wt){var St=it.doc,kt=it.display;if(!St.mode.startState)return new jn(St,!0,lt);var ne=gi(it,lt,wt),ge=ne>St.first&&gn(St,ne-1).stateAfter,Ce=ge?jn.fromSaved(St,ge,ne):new jn(St,Ze(St.mode),ne);return St.iter(ne,lt,function(Pe){qe(it,Pe.text,Ce);var He=Ce.line;Pe.stateAfter=He==lt-1||He%5==0||He>=kt.viewFrom&&He<kt.viewTo?Ce.save():null,Ce.nextLine()}),wt&&(St.modeFrontier=Ce.line),Ce}function qe(it,lt,wt,St){var kt=it.doc.mode,ne=new Ae(lt,it.options.tabSize,wt);for(ne.start=ne.pos=St||0,lt==""&&Xn(kt,wt.state);!ne.eol();)ti(kt,ne,wt.state),ne.start=ne.pos}function Xn(it,lt){if(it.blankLine)return it.blankLine(lt);if(it.innerMode){var wt=bn(it,lt);if(wt.mode.blankLine)return wt.mode.blankLine(wt.state)}}function ti(it,lt,wt,St){for(var kt=0;kt<10;kt++){St&&(St[0]=bn(it,wt).mode);var ne=it.token(lt,wt);if(lt.pos>lt.start)return ne}throw new Error("Mode "+it.name+" failed to advance stream.")}var Qn=function(it,lt,wt){this.start=it.start,this.end=it.pos,this.string=it.current(),this.type=lt||null,this.state=wt};function Li(it,lt,wt,St){var kt=it.doc,ne=kt.mode,ge;lt=yn(kt,lt);var Ce=gn(kt,lt.line),Pe=ii(it,lt.line,wt),He=new Ae(Ce.text,it.options.tabSize,Pe),pn;for(St&&(pn=[]);(St||He.pos<lt.ch)&&!He.eol();)He.start=He.pos,ge=ti(ne,He,Pe.state),St&&pn.push(new Qn(He,ge,vn(kt.mode,Pe.state)));return St?pn:new Qn(He,ge,Pe.state)}function fi(it,lt){if(it)for(;;){var wt=it.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!wt)break;it=it.slice(0,wt.index)+it.slice(wt.index+wt[0].length);var St=wt[1]?"bgClass":"textClass";lt[St]==null?lt[St]=wt[2]:new RegExp("(?:^|\\s)"+wt[2]+"(?:$|\\s)").test(lt[St])||(lt[St]+=" "+wt[2])}return it}function ki(it,lt,wt,St,kt,ne,ge){var Ce=wt.flattenSpans;Ce==null&&(Ce=it.options.flattenSpans);var Pe=0,He=null,pn=new Ae(lt,it.options.tabSize,St),Xe,Fn=it.options.addModeClass&&[null];for(lt==""&&fi(Xn(wt,St.state),ne);!pn.eol();){if(pn.pos>it.options.maxHighlightLength?(Ce=!1,ge&&qe(it,lt,St,pn.pos),pn.pos=lt.length,Xe=null):Xe=fi(ti(wt,pn,St.state,Fn),ne),Fn){var Dn=Fn[0].name;Dn&&(Xe="m-"+(Xe?Dn+" "+Xe:Dn))}if(!Ce||He!=Xe){for(;Pe<pn.start;)Pe=Math.min(pn.start,Pe+5e3),kt(Pe,He);He=Xe}pn.start=pn.pos}for(;Pe<pn.pos;){var ni=Math.min(pn.pos,Pe+5e3);kt(ni,He),Pe=ni}}function gi(it,lt,wt){for(var St,kt,ne=it.doc,ge=wt?-1:lt-(it.doc.mode.innerMode?1e3:100),Ce=lt;Ce>ge;--Ce){if(Ce<=ne.first)return ne.first;var Pe=gn(ne,Ce-1),He=Pe.stateAfter;if(He&&(!wt||Ce+(He instanceof En?He.lookAhead:0)<=ne.modeFrontier))return Ce;var pn=de(Pe.text,null,it.options.tabSize);(kt==null||St>pn)&&(kt=Ce-1,St=pn)}return kt}function oi(it,lt){if(it.modeFrontier=Math.min(it.modeFrontier,lt),!(it.highlightFrontier<lt-10)){for(var wt=it.first,St=lt-1;St>wt;St--){var kt=gn(it,St).stateAfter;if(kt&&(!(kt instanceof En)||St+kt.lookAhead<lt)){wt=St+1;break}}it.highlightFrontier=Math.min(it.highlightFrontier,wt)}}var Fi=!1,Cn=!1;function nr(){Fi=!0}function Ln(){Cn=!0}function Bi(it,lt,wt){this.marker=it,this.from=lt,this.to=wt}function wr(it,lt){if(it)for(var wt=0;wt<it.length;++wt){var St=it[wt];if(St.marker==lt)return St}}function Hi(it,lt){for(var wt,St=0;St<it.length;++St)it[St]!=lt&&(wt||(wt=[])).push(it[St]);return wt}function Or(it,lt){it.markedSpans=it.markedSpans?it.markedSpans.concat([lt]):[lt],lt.marker.attachLine(it)}function pr(it,lt,wt){var St;if(it)for(var kt=0;kt<it.length;++kt){var ne=it[kt],ge=ne.marker,Ce=ne.from==null||(ge.inclusiveLeft?ne.from<=lt:ne.from<lt);if(Ce||ne.from==lt&&ge.type=="bookmark"&&(!wt||!ne.marker.insertLeft)){var Pe=ne.to==null||(ge.inclusiveRight?ne.to>=lt:ne.to>lt);(St||(St=[])).push(new Bi(ge,ne.from,Pe?null:ne.to))}}return St}function Si(it,lt,wt){var St;if(it)for(var kt=0;kt<it.length;++kt){var ne=it[kt],ge=ne.marker,Ce=ne.to==null||(ge.inclusiveRight?ne.to>=lt:ne.to>lt);if(Ce||ne.from==lt&&ge.type=="bookmark"&&(!wt||ne.marker.insertLeft)){var Pe=ne.from==null||(ge.inclusiveLeft?ne.from<=lt:ne.from<lt);(St||(St=[])).push(new Bi(ge,Pe?null:ne.from-lt,ne.to==null?null:ne.to-lt))}}return St}function vi(it,lt){if(lt.full)return null;var wt=fn(it,lt.from.line)&&gn(it,lt.from.line).markedSpans,St=fn(it,lt.to.line)&&gn(it,lt.to.line).markedSpans;if(!wt&&!St)return null;var kt=lt.from.ch,ne=lt.to.ch,ge=cn(lt.from,lt.to)==0,Ce=pr(wt,kt,ge),Pe=Si(St,ne,ge),He=lt.text.length==1,pn=ke(lt.text).length+(He?kt:0);if(Ce)for(var Xe=0;Xe<Ce.length;++Xe){var Fn=Ce[Xe];if(Fn.to==null){var Dn=wr(Pe,Fn.marker);Dn?He&&(Fn.to=Dn.to==null?null:Dn.to+pn):Fn.to=kt}}if(Pe)for(var ni=0;ni<Pe.length;++ni){var ai=Pe[ni];if(ai.to!=null&&(ai.to+=pn),ai.from==null){var wi=wr(Ce,ai.marker);wi||(ai.from=pn,He&&(Ce||(Ce=[])).push(ai))}else ai.from+=pn,He&&(Ce||(Ce=[])).push(ai)}Ce&&(Ce=Xi(Ce)),Pe&&Pe!=Ce&&(Pe=Xi(Pe));var Di=[Ce];if(!He){var er=lt.text.length-2,Ui;if(er>0&&Ce)for(var sr=0;sr<Ce.length;++sr)Ce[sr].to==null&&(Ui||(Ui=[])).push(new Bi(Ce[sr].marker,null,null));for(var Lr=0;Lr<er;++Lr)Di.push(Ui);Di.push(Pe)}return Di}function Xi(it){for(var lt=0;lt<it.length;++lt){var wt=it[lt];wt.from!=null&&wt.from==wt.to&&wt.marker.clearWhenEmpty!==!1&&it.splice(lt--,1)}return it.length?it:null}function Zi(it,lt,wt){var St=null;if(it.iter(lt.line,wt.line+1,function(Dn){if(Dn.markedSpans)for(var ni=0;ni<Dn.markedSpans.length;++ni){var ai=Dn.markedSpans[ni].marker;ai.readOnly&&(!St||ee(St,ai)==-1)&&(St||(St=[])).push(ai)}}),!St)return null;for(var kt=[{from:lt,to:wt}],ne=0;ne<St.length;++ne)for(var ge=St[ne],Ce=ge.find(0),Pe=0;Pe<kt.length;++Pe){var He=kt[Pe];if(!(cn(He.to,Ce.from)<0||cn(He.from,Ce.to)>0)){var pn=[Pe,1],Xe=cn(He.from,Ce.from),Fn=cn(He.to,Ce.to);(Xe<0||!ge.inclusiveLeft&&!Xe)&&pn.push({from:He.from,to:Ce.from}),(Fn>0||!ge.inclusiveRight&&!Fn)&&pn.push({from:Ce.to,to:He.to}),kt.splice.apply(kt,pn),Pe+=pn.length-3}}return kt}function Jn(it){var lt=it.markedSpans;if(lt){for(var wt=0;wt<lt.length;++wt)lt[wt].marker.detachLine(it);it.markedSpans=null}}function xe(it,lt){if(lt){for(var wt=0;wt<lt.length;++wt)lt[wt].marker.attachLine(it);it.markedSpans=lt}}function Ri(it){return it.inclusiveLeft?-1:0}function Ar(it){return it.inclusiveRight?1:0}function zi(it,lt){var wt=it.lines.length-lt.lines.length;if(wt!=0)return wt;var St=it.find(),kt=lt.find(),ne=cn(St.from,kt.from)||Ri(it)-Ri(lt);if(ne)return-ne;var ge=cn(St.to,kt.to)||Ar(it)-Ar(lt);return ge||lt.id-it.id}function ir(it,lt){var wt=Cn&&it.markedSpans,St;if(wt)for(var kt=void 0,ne=0;ne<wt.length;++ne)kt=wt[ne],kt.marker.collapsed&&(lt?kt.from:kt.to)==null&&(!St||zi(St,kt.marker)<0)&&(St=kt.marker);return St}function Oi(it){return ir(it,!0)}function Ci(it){return ir(it,!1)}function tr(it,lt){var wt=Cn&&it.markedSpans,St;if(wt)for(var kt=0;kt<wt.length;++kt){var ne=wt[kt];ne.marker.collapsed&&(ne.from==null||ne.from<lt)&&(ne.to==null||ne.to>lt)&&(!St||zi(St,ne.marker)<0)&&(St=ne.marker)}return St}function yr(it,lt,wt,St,kt){var ne=gn(it,lt),ge=Cn&&ne.markedSpans;if(ge)for(var Ce=0;Ce<ge.length;++Ce){var Pe=ge[Ce];if(Pe.marker.collapsed){var He=Pe.marker.find(0),pn=cn(He.from,wt)||Ri(Pe.marker)-Ri(kt),Xe=cn(He.to,St)||Ar(Pe.marker)-Ar(kt);if(!(pn>=0&&Xe<=0||pn<=0&&Xe>=0)&&(pn<=0&&(Pe.marker.inclusiveRight&&kt.inclusiveLeft?cn(He.to,wt)>=0:cn(He.to,wt)>0)||pn>=0&&(Pe.marker.inclusiveRight&&kt.inclusiveLeft?cn(He.from,St)<=0:cn(He.from,St)<0)))return!0}}}function _i(it){for(var lt;lt=Oi(it);)it=lt.find(-1,!0).line;return it}function Mr(it){for(var lt;lt=Ci(it);)it=lt.find(1,!0).line;return it}function xi(it){for(var lt,wt;lt=Ci(it);)it=lt.find(1,!0).line,(wt||(wt=[])).push(it);return wt}function di(it,lt){var wt=gn(it,lt),St=_i(wt);return wt==St?lt:Me(St)}function Ai(it,lt){if(lt>it.lastLine())return lt;var wt=gn(it,lt),St;if(!zn(it,wt))return lt;for(;St=Ci(wt);)wt=St.find(1,!0).line;return Me(wt)+1}function zn(it,lt){var wt=Cn&<.markedSpans;if(wt){for(var St=void 0,kt=0;kt<wt.length;++kt)if(St=wt[kt],!!St.marker.collapsed){if(St.from==null)return!0;if(!St.marker.widgetNode&&St.from==0&&St.marker.inclusiveLeft&&hr(it,lt,St))return!0}}}function hr(it,lt,wt){if(wt.to==null){var St=wt.marker.find(1,!0);return hr(it,St.line,wr(St.line.markedSpans,wt.marker))}if(wt.marker.inclusiveRight&&wt.to==lt.text.length)return!0;for(var kt=void 0,ne=0;ne<lt.markedSpans.length;++ne)if(kt=lt.markedSpans[ne],kt.marker.collapsed&&!kt.marker.widgetNode&&kt.from==wt.to&&(kt.to==null||kt.to!=wt.from)&&(kt.marker.inclusiveLeft||wt.marker.inclusiveRight)&&hr(it,lt,kt))return!0}function Tr(it){it=_i(it);for(var lt=0,wt=it.parent,St=0;St<wt.lines.length;++St){var kt=wt.lines[St];if(kt==it)break;lt+=kt.height}for(var ne=wt.parent;ne;wt=ne,ne=wt.parent)for(var ge=0;ge<ne.children.length;++ge){var Ce=ne.children[ge];if(Ce==wt)break;lt+=Ce.height}return lt}function Qr(it){if(it.height==0)return 0;for(var lt=it.text.length,wt,St=it;wt=Oi(St);){var kt=wt.find(0,!0);St=kt.from.line,lt+=kt.from.ch-kt.to.ch}for(St=it;wt=Ci(St);){var ne=wt.find(0,!0);lt-=St.text.length-ne.from.ch,St=ne.to.line,lt+=St.text.length-ne.to.ch}return lt}function kr(it){var lt=it.display,wt=it.doc;lt.maxLine=gn(wt,wt.first),lt.maxLineLength=Qr(lt.maxLine),lt.maxLineChanged=!0,wt.iter(function(St){var kt=Qr(St);kt>lt.maxLineLength&&(lt.maxLineLength=kt,lt.maxLine=St)})}var Xr=function(it,lt,wt){this.text=it,xe(this,lt),this.height=wt?wt(this):1};Xr.prototype.lineNo=function(){return Me(this)},kn(Xr);function io(it,lt,wt,St){it.text=lt,it.stateAfter&&(it.stateAfter=null),it.styles&&(it.styles=null),it.order!=null&&(it.order=null),Jn(it),xe(it,wt);var kt=St?St(it):1;kt!=it.height&&mn(it,kt)}function Wo(it){it.parent=null,Jn(it)}var vo={},Uo={};function To(it,lt){if(!it||/^\s*$/.test(it))return null;var wt=lt.addModeClass?Uo:vo;return wt[it]||(wt[it]=it.replace(/\S+/g,"cm-$&"))}function Sn(it,lt){var wt=$t("span",null,null,xt?"padding-right: .1px":null),St={pre:$t("pre",[wt],"CodeMirror-line"),content:wt,col:0,pos:0,cm:it,trailingSpace:!1,splitSpaces:it.getOption("lineWrapping")};lt.measure={};for(var kt=0;kt<=(lt.rest?lt.rest.length:0);kt++){var ne=kt?lt.rest[kt-1]:lt.line,ge=void 0;St.pos=0,St.addToken=da,Ki(it.display.measure)&&(ge=re(ne,it.doc.direction))&&(St.addToken=mr(St.addToken,ge)),St.map=[];var Ce=lt!=it.display.externalMeasured&&Me(ne);so(ne,St,pi(it,ne,Ce)),ne.styleClasses&&(ne.styleClasses.bgClass&&(St.bgClass=Se(ne.styleClasses.bgClass,St.bgClass||"")),ne.styleClasses.textClass&&(St.textClass=Se(ne.styleClasses.textClass,St.textClass||""))),St.map.length==0&&St.map.push(0,0,St.content.appendChild(Gi(it.display.measure))),kt==0?(lt.measure.map=St.map,lt.measure.cache={}):((lt.measure.maps||(lt.measure.maps=[])).push(St.map),(lt.measure.caches||(lt.measure.caches=[])).push({}))}if(xt){var Pe=St.content.lastChild;(/\bcm-tab\b/.test(Pe.className)||Pe.querySelector&&Pe.querySelector(".cm-tab"))&&(St.content.className="cm-tab-wrap-hack")}return Le(it,"renderLine",it,lt.line,St.pre),St.pre.className&&(St.textClass=Se(St.pre.className,St.textClass||"")),St}function yo(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 da(it,lt,wt,St,kt,ne,ge){if(lt){var Ce=it.splitSpaces?_s(lt,it.trailingSpace):lt,Pe=it.cm.state.specialChars,He=!1,pn;if(!Pe.test(lt))it.col+=lt.length,pn=document.createTextNode(Ce),it.map.push(it.pos,it.pos+lt.length,pn),Nt&&Wt<9&&(He=!0),it.pos+=lt.length;else{pn=document.createDocumentFragment();for(var Xe=0;;){Pe.lastIndex=Xe;var Fn=Pe.exec(lt),Dn=Fn?Fn.index-Xe:lt.length-Xe;if(Dn){var ni=document.createTextNode(Ce.slice(Xe,Xe+Dn));Nt&&Wt<9?pn.appendChild(Qt("span",[ni])):pn.appendChild(ni),it.map.push(it.pos,it.pos+Dn,ni),it.col+=Dn,it.pos+=Dn}if(!Fn)break;Xe+=Dn+1;var ai=void 0;if(Fn[0]==" "){var wi=it.cm.options.tabSize,Di=wi-it.col%wi;ai=pn.appendChild(Qt("span",rn(Di),"cm-tab")),ai.setAttribute("role","presentation"),ai.setAttribute("cm-text"," "),it.col+=Di}else Fn[0]=="\r"||Fn[0]==`
|
|
|
`?(ai=pn.appendChild(Qt("span",Fn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ai.setAttribute("cm-text",Fn[0]),it.col+=1):(ai=it.cm.options.specialCharPlaceholder(Fn[0]),ai.setAttribute("cm-text",Fn[0]),Nt&&Wt<9?pn.appendChild(Qt("span",[ai])):pn.appendChild(ai),it.col+=1);it.map.push(it.pos,it.pos+1,ai),it.pos++}}if(it.trailingSpace=Ce.charCodeAt(lt.length-1)==32,wt||St||kt||He||ne||ge){var er=wt||"";St&&(er+=St),kt&&(er+=kt);var Ui=Qt("span",[pn],er,ne);if(ge)for(var sr in ge)ge.hasOwnProperty(sr)&&sr!="style"&&sr!="class"&&Ui.setAttribute(sr,ge[sr]);return it.content.appendChild(Ui)}it.content.appendChild(pn)}}function _s(it,lt){if(it.length>1&&!/ /.test(it))return it;for(var wt=lt,St="",kt=0;kt<it.length;kt++){var ne=it.charAt(kt);ne==" "&&wt&&(kt==it.length-1||it.charCodeAt(kt+1)==32)&&(ne="\xA0"),St+=ne,wt=ne==" "}return St}function mr(it,lt){return function(wt,St,kt,ne,ge,Ce,Pe){kt=kt?kt+" cm-force-border":"cm-force-border";for(var He=wt.pos,pn=He+St.length;;){for(var Xe=void 0,Fn=0;Fn<lt.length&&(Xe=lt[Fn],!(Xe.to>He&&Xe.from<=He));Fn++);if(Xe.to>=pn)return it(wt,St,kt,ne,ge,Ce,Pe);it(wt,St.slice(0,Xe.to-He),kt,ne,null,Ce,Pe),ne=null,St=St.slice(Xe.to-He),He=Xe.to}}}function Wr(it,lt,wt,St){var kt=!St&&wt.widgetNode;kt&&it.map.push(it.pos,it.pos+lt,kt),!St&&it.cm.display.input.needsContentAttribute&&(kt||(kt=it.content.appendChild(document.createElement("span"))),kt.setAttribute("cm-marker",wt.id)),kt&&(it.cm.display.input.setUneditable(kt),it.content.appendChild(kt)),it.pos+=lt,it.trailingSpace=!1}function so(it,lt,wt){var St=it.markedSpans,kt=it.text,ne=0;if(!St){for(var ge=1;ge<wt.length;ge+=2)lt.addToken(lt,kt.slice(ne,ne=wt[ge]),To(wt[ge+1],lt.cm.options));return}for(var Ce=kt.length,Pe=0,He=1,pn="",Xe,Fn,Dn=0,ni,ai,wi,Di,er;;){if(Dn==Pe){ni=ai=wi=Fn="",er=null,Di=null,Dn=1/0;for(var Ui=[],sr=void 0,Lr=0;Lr<St.length;++Lr){var Wi=St[Lr],jr=Wi.marker;if(jr.type=="bookmark"&&Wi.from==Pe&&jr.widgetNode)Ui.push(jr);else if(Wi.from<=Pe&&(Wi.to==null||Wi.to>Pe||jr.collapsed&&Wi.to==Pe&&Wi.from==Pe)){if(Wi.to!=null&&Wi.to!=Pe&&Dn>Wi.to&&(Dn=Wi.to,ai=""),jr.className&&(ni+=" "+jr.className),jr.css&&(Fn=(Fn?Fn+";":"")+jr.css),jr.startStyle&&Wi.from==Pe&&(wi+=" "+jr.startStyle),jr.endStyle&&Wi.to==Dn&&(sr||(sr=[])).push(jr.endStyle,Wi.to),jr.title&&((er||(er={})).title=jr.title),jr.attributes)for(var Do in jr.attributes)(er||(er={}))[Do]=jr.attributes[Do];jr.collapsed&&(!Di||zi(Di.marker,jr)<0)&&(Di=Wi)}else Wi.from>Pe&&Dn>Wi.from&&(Dn=Wi.from)}if(sr)for(var fs=0;fs<sr.length;fs+=2)sr[fs+1]==Dn&&(ai+=" "+sr[fs]);if(!Di||Di.from==Pe)for(var Zo=0;Zo<Ui.length;++Zo)Wr(lt,0,Ui[Zo]);if(Di&&(Di.from||0)==Pe){if(Wr(lt,(Di.to==null?Ce+1:Di.to)-Pe,Di.marker,Di.from==null),Di.to==null)return;Di.to==Pe&&(Di=!1)}}if(Pe>=Ce)break;for(var ma=Math.min(Ce,Dn);;){if(pn){var Gs=Pe+pn.length;if(!Di){var as=Gs>ma?pn.slice(0,ma-Pe):pn;lt.addToken(lt,as,Xe?Xe+ni:ni,wi,Pe+as.length==Dn?ai:"",Fn,er)}if(Gs>=ma){pn=pn.slice(ma-Pe),Pe=ma;break}Pe=Gs,wi=""}pn=kt.slice(ne,ne=wt[He++]),Xe=To(wt[He++],lt.cm.options)}}}function zr(it,lt,wt){this.line=lt,this.rest=xi(lt),this.size=this.rest?Me(ke(this.rest))-wt+1:1,this.node=this.text=null,this.hidden=zn(it,lt)}function qi(it,lt,wt){for(var St=[],kt,ne=lt;ne<wt;ne=kt){var ge=new zr(it.doc,gn(it.doc,ne),ne);kt=ne+ge.size,St.push(ge)}return St}var Ji=null;function ao(it){Ji?Ji.ops.push(it):it.ownsGroup=Ji={ops:[it],delayedCallbacks:[]}}function $i(it){var lt=it.delayedCallbacks,wt=0;do{for(;wt<lt.length;wt++)lt[wt].call(null);for(var St=0;St<it.ops.length;St++){var kt=it.ops[St];if(kt.cursorActivityHandlers)for(;kt.cursorActivityCalled<kt.cursorActivityHandlers.length;)kt.cursorActivityHandlers[kt.cursorActivityCalled++].call(null,kt.cm)}}while(wt<lt.length)}function cr(it,lt){var wt=it.ownsGroup;if(wt)try{$i(wt)}finally{Ji=null,lt(wt)}}var fr=null;function hi(it,lt){var wt=Ye(it,lt);if(wt.length){var St=Array.prototype.slice.call(arguments,2),kt;Ji?kt=Ji.delayedCallbacks:fr?kt=fr:(kt=fr=[],setTimeout(no,0));for(var ne=function(Ce){kt.push(function(){return wt[Ce].apply(null,St)})},ge=0;ge<wt.length;++ge)ne(ge)}}function no(){var it=fr;fr=null;for(var lt=0;lt<it.length;++lt)it[lt]()}function bo(it,lt,wt,St){for(var kt=0;kt<lt.changes.length;kt++){var ne=lt.changes[kt];ne=="text"?si(it,lt):ne=="gutter"?ko(it,lt,wt,St):ne=="class"?ro(it,lt):ne=="widget"&&ba(it,lt,St)}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),Nt&&Wt<8&&(it.node.style.zIndex=2)),it.node}function Js(it,lt){var wt=lt.bgClass?lt.bgClass+" "+(lt.line.bgClass||""):lt.line.bgClass;if(wt&&(wt+=" CodeMirror-linebackground"),lt.background)wt?lt.background.className=wt:(lt.background.parentNode.removeChild(lt.background),lt.background=null);else if(wt){var St=os(lt);lt.background=St.insertBefore(Qt("div",null,wt),St.firstChild),it.display.input.setUneditable(lt.background)}}function Pa(it,lt){var wt=it.display.externalMeasured;return wt&&wt.line==lt.line?(it.display.externalMeasured=null,lt.measure=wt.measure,wt.built):Sn(it,lt)}function si(it,lt){var wt=lt.text.className,St=Pa(it,lt);lt.text==lt.node&&(lt.node=St.pre),lt.text.parentNode.replaceChild(St.pre,lt.text),lt.text=St.pre,St.bgClass!=lt.bgClass||St.textClass!=lt.textClass?(lt.bgClass=St.bgClass,lt.textClass=St.textClass,ro(it,lt)):wt&&(lt.text.className=wt)}function ro(it,lt){Js(it,lt),lt.line.wrapClass?os(lt).className=lt.line.wrapClass:lt.node!=lt.text&&(lt.node.className="");var wt=lt.textClass?lt.textClass+" "+(lt.line.textClass||""):lt.line.textClass;lt.text.className=wt||""}function ko(it,lt,wt,St){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 kt=os(lt);lt.gutterBackground=Qt("div",null,"CodeMirror-gutter-background "+lt.line.gutterClass,"left: "+(it.options.fixedGutter?St.fixedPos:-St.gutterTotalWidth)+"px; width: "+St.gutterTotalWidth+"px"),it.display.input.setUneditable(lt.gutterBackground),kt.insertBefore(lt.gutterBackground,lt.text)}var ne=lt.line.gutterMarkers;if(it.options.lineNumbers||ne){var ge=os(lt),Ce=lt.gutter=Qt("div",null,"CodeMirror-gutter-wrapper","left: "+(it.options.fixedGutter?St.fixedPos:-St.gutterTotalWidth)+"px");if(it.display.input.setUneditable(Ce),ge.insertBefore(Ce,lt.text),lt.line.gutterClass&&(Ce.className+=" "+lt.line.gutterClass),it.options.lineNumbers&&(!ne||!ne["CodeMirror-linenumbers"])&&(lt.lineNumber=Ce.appendChild(Qt("div",In(it.options,wt),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+St.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+it.display.lineNumInnerWidth+"px"))),ne)for(var Pe=0;Pe<it.display.gutterSpecs.length;++Pe){var He=it.display.gutterSpecs[Pe].className,pn=ne.hasOwnProperty(He)&&ne[He];pn&&Ce.appendChild(Qt("div",[pn],"CodeMirror-gutter-elt","left: "+St.gutterLeft[He]+"px; width: "+St.gutterWidth[He]+"px"))}}}function ba(it,lt,wt){lt.alignable&&(lt.alignable=null);for(var St=Ct("CodeMirror-linewidget"),kt=lt.node.firstChild,ne=void 0;kt;kt=ne)ne=kt.nextSibling,St.test(kt.className)&<.node.removeChild(kt);ja(it,lt,wt)}function iu(it,lt,wt,St){var kt=Pa(it,lt);return lt.text=lt.node=kt.pre,kt.bgClass&&(lt.bgClass=kt.bgClass),kt.textClass&&(lt.textClass=kt.textClass),ro(it,lt),ko(it,lt,wt,St),ja(it,lt,St),lt.node}function ja(it,lt,wt){if(ar(it,lt.line,lt,wt,!0),lt.rest)for(var St=0;St<lt.rest.length;St++)ar(it,lt.rest[St],lt,wt,!1)}function ar(it,lt,wt,St,kt){if(lt.widgets)for(var ne=os(wt),ge=0,Ce=lt.widgets;ge<Ce.length;++ge){var Pe=Ce[ge],He=Qt("div",[Pe.node],"CodeMirror-linewidget"+(Pe.className?" "+Pe.className:""));Pe.handleMouseEvents||He.setAttribute("cm-ignore-events","true"),ch(Pe,He,wt,St),it.display.input.setUneditable(He),kt&&Pe.above?ne.insertBefore(He,wt.gutter||wt.text):ne.appendChild(He),hi(Pe,"redraw")}}function ch(it,lt,wt,St){if(it.noHScroll){(wt.alignable||(wt.alignable=[])).push(lt);var kt=St.wrapperWidth;lt.style.left=St.fixedPos+"px",it.coverGutter||(kt-=St.gutterTotalWidth,lt.style.paddingLeft=St.gutterTotalWidth+"px"),lt.style.width=kt+"px"}it.coverGutter&&(lt.style.zIndex=5,lt.style.position="relative",it.noHScroll||(lt.style.marginLeft=-St.gutterTotalWidth+"px"))}function Qs(it){if(it.height!=null)return it.height;var lt=it.doc.cm;if(!lt)return 0;if(!ue(document.body,it.node)){var wt="position: relative;";it.coverGutter&&(wt+="margin-left: -"+lt.display.gutters.offsetWidth+"px;"),it.noHScroll&&(wt+="width: "+lt.display.wrapper.clientWidth+"px;"),Ft(lt.display.measure,Qt("div",[it.node],null,wt))}return it.height=it.node.parentNode.offsetHeight}function $s(it,lt){for(var wt=mi(lt);wt!=it.wrapper;wt=wt.parentNode)if(!wt||wt.nodeType==1&&wt.getAttribute("cm-ignore-events")=="true"||wt.parentNode==it.sizer&&wt!=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")),wt=window.getComputedStyle?window.getComputedStyle(lt):lt.currentStyle,St={left:parseInt(wt.paddingLeft),right:parseInt(wt.paddingRight)};return!isNaN(St.left)&&!isNaN(St.right)&&(it.cachedPaddingH=St),St}function ea(it){return ae-it.display.nativeBarWidth}function Ca(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,wt){var St=it.options.lineWrapping,kt=St&&Ca(it);if(!lt.measure.heights||St&<.measure.width!=kt){var ne=lt.measure.heights=[];if(St){lt.measure.width=kt;for(var ge=lt.text.firstChild.getClientRects(),Ce=0;Ce<ge.length-1;Ce++){var Pe=ge[Ce],He=ge[Ce+1];Math.abs(Pe.bottom-He.bottom)>2&&ne.push((Pe.bottom+He.top)/2-wt.top)}}ne.push(wt.bottom-wt.top)}}function fh(it,lt,wt){if(it.line==lt)return{map:it.measure.map,cache:it.measure.cache};for(var St=0;St<it.rest.length;St++)if(it.rest[St]==lt)return{map:it.measure.maps[St],cache:it.measure.caches[St]};for(var kt=0;kt<it.rest.length;kt++)if(Me(it.rest[kt])>wt)return{map:it.measure.maps[kt],cache:it.measure.caches[kt],before:!0}}function Gc(it,lt){lt=_i(lt);var wt=Me(lt),St=it.display.externalMeasured=new zr(it.doc,lt,wt);St.lineN=wt;var kt=St.built=Sn(it,St);return St.text=kt.pre,Ft(it.display.lineMeasure,kt.pre),St}function gh(it,lt,wt,St){return za(it,Rl(it,lt),wt,St)}function ph(it,lt){if(lt>=it.display.viewFrom&<<it.display.viewTo)return it.display.view[Wa(it,lt)];var wt=it.display.externalMeasured;if(wt&<>=wt.lineN&<<wt.lineN+wt.size)return wt}function Rl(it,lt){var wt=Me(lt),St=ph(it,wt);St&&!St.text?St=null:St&&St.changes&&(bo(it,St,wt,zd(it)),it.curOp.forceUpdate=!0),St||(St=Gc(it,lt));var kt=fh(St,lt,wt);return{line:lt,view:St,rect:null,map:kt.map,cache:kt.cache,before:kt.before,hasHeights:!1}}function za(it,lt,wt,St,kt){lt.before&&(wt=-1);var ne=wt+(St||""),ge;return lt.cache.hasOwnProperty(ne)?ge=lt.cache[ne]:(lt.rect||(lt.rect=lt.view.text.getBoundingClientRect()),lt.hasHeights||(oc(it,lt.view,lt.rect),lt.hasHeights=!0),ge=Pr(it,lt,wt,St),ge.bogus||(lt.cache[ne]=ge)),{left:ge.left,right:ge.right,top:kt?ge.rtop:ge.top,bottom:kt?ge.rbottom:ge.bottom}}var sc={left:0,right:0,top:0,bottom:0};function mh(it,lt,wt){for(var St,kt,ne,ge,Ce,Pe,He=0;He<it.length;He+=3)if(Ce=it[He],Pe=it[He+1],lt<Ce?(kt=0,ne=1,ge="left"):lt<Pe?(kt=lt-Ce,ne=kt+1):(He==it.length-3||lt==Pe&&it[He+3]>lt)&&(ne=Pe-Ce,kt=ne-1,lt>=Pe&&(ge="right")),kt!=null){if(St=it[He+2],Ce==Pe&&wt==(St.insertLeft?"left":"right")&&(ge=wt),wt=="left"&&kt==0)for(;He&&it[He-2]==it[He-3]&&it[He-1].insertLeft;)St=it[(He-=3)+2],ge="left";if(wt=="right"&&kt==Pe-Ce)for(;He<it.length-3&&it[He+3]==it[He+4]&&!it[He+5].insertLeft;)St=it[(He+=3)+2],ge="right";break}return{node:St,start:kt,end:ne,collapse:ge,coverStart:Ce,coverEnd:Pe}}function vh(it,lt){var wt=sc;if(lt=="left")for(var St=0;St<it.length&&(wt=it[St]).left==wt.right;St++);else for(var kt=it.length-1;kt>=0&&(wt=it[kt]).left==wt.right;kt--);return wt}function Pr(it,lt,wt,St){var kt=mh(lt.map,wt,St),ne=kt.node,ge=kt.start,Ce=kt.end,Pe=kt.collapse,He;if(ne.nodeType==3){for(var pn=0;pn<4;pn++){for(;ge&&Mt(lt.line.text.charAt(kt.coverStart+ge));)--ge;for(;kt.coverStart+Ce<kt.coverEnd&&Mt(lt.line.text.charAt(kt.coverStart+Ce));)++Ce;if(Nt&&Wt<9&&ge==0&&Ce==kt.coverEnd-kt.coverStart?He=ne.parentNode.getBoundingClientRect():He=vh(Kt(ne,ge,Ce).getClientRects(),St),He.left||He.right||ge==0)break;Ce=ge,ge=ge-1,Pe="right"}Nt&&Wt<11&&(He=Kr(it.display.measure,He))}else{ge>0&&(Pe=St="right");var Xe;it.options.lineWrapping&&(Xe=ne.getClientRects()).length>1?He=Xe[St=="right"?Xe.length-1:0]:He=ne.getBoundingClientRect()}if(Nt&&Wt<9&&!ge&&(!He||!He.left&&!He.right)){var Fn=ne.parentNode.getClientRects()[0];Fn?He={left:Fn.left,right:Fn.left+yh(it.display),top:Fn.top,bottom:Fn.bottom}:He=sc}for(var Dn=He.top-lt.rect.top,ni=He.bottom-lt.rect.top,ai=(Dn+ni)/2,wi=lt.view.measure.heights,Di=0;Di<wi.length-1&&!(ai<wi[Di]);Di++);var er=Di?wi[Di-1]:0,Ui=wi[Di],sr={left:(Pe=="right"?He.right:He.left)-lt.rect.left,right:(Pe=="left"?He.left:He.right)-lt.rect.left,top:er,bottom:Ui};return!He.left&&!He.right&&(sr.bogus=!0),it.options.singleCursorHeightPerLine||(sr.rtop=Dn,sr.rbottom=ni),sr}function Kr(it,lt){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!or(it))return lt;var wt=screen.logicalXDPI/screen.deviceXDPI,St=screen.logicalYDPI/screen.deviceYDPI;return{left:lt.left*wt,right:lt.right*wt,top:lt.top*St,bottom:lt.bottom*St}}function vs(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 ys(it){it.display.externalMeasure=null,Ut(it.display.lineMeasure);for(var lt=0;lt<it.display.view.length;lt++)vs(it.display.view[lt])}function Go(it){ys(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 Bt&&et?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function No(){return Bt&&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 wt=0;wt<it.widgets.length;++wt)it.widgets[wt].above&&(lt+=Qs(it.widgets[wt]));return lt}function Ro(it,lt,wt,St,kt){if(!kt){var ne=Ko(lt);wt.top+=ne,wt.bottom+=ne}if(St=="line")return wt;St||(St="local");var ge=Tr(lt);if(St=="local"?ge+=ta(it.display):ge-=it.display.viewOffset,St=="page"||St=="window"){var Ce=it.display.lineSpace.getBoundingClientRect();ge+=Ce.top+(St=="window"?0:No());var Pe=Ce.left+(St=="window"?0:Co());wt.left+=Pe,wt.right+=Pe}return wt.top+=ge,wt.bottom+=ge,wt}function bl(it,lt,wt){if(wt=="div")return lt;var St=lt.left,kt=lt.top;if(wt=="page")St-=Co(),kt-=No();else if(wt=="local"||!wt){var ne=it.display.sizer.getBoundingClientRect();St+=ne.left,kt+=ne.top}var ge=it.display.lineSpace.getBoundingClientRect();return{left:St-ge.left,top:kt-ge.top}}function Ha(it,lt,wt,St,kt){return St||(St=gn(it.doc,lt.line)),Ro(it,St,gh(it,St,lt.ch,kt),wt)}function Mo(it,lt,wt,St,kt,ne){St=St||gn(it.doc,lt.line),kt||(kt=Rl(it,St));function ge(ni,ai){var wi=za(it,kt,ni,ai?"right":"left",ne);return ai?wi.left=wi.right:wi.right=wi.left,Ro(it,St,wi,wt)}var Ce=re(St,it.doc.direction),Pe=lt.ch,He=lt.sticky;if(Pe>=St.text.length?(Pe=St.text.length,He="before"):Pe<=0&&(Pe=0,He="after"),!Ce)return ge(He=="before"?Pe-1:Pe,He=="before");function pn(ni,ai,wi){var Di=Ce[ai],er=Di.level==1;return ge(wi?ni-1:ni,er!=wi)}var Xe=gt(Ce,Pe,He),Fn=dt,Dn=pn(Pe,Xe,He=="before");return Fn!=null&&(Dn.other=pn(Pe,Fn,He!="before")),Dn}function Bd(it,lt){var wt=0;lt=yn(it.doc,lt),it.options.lineWrapping||(wt=yh(it.display)*lt.ch);var St=gn(it.doc,lt.line),kt=Tr(St)+ta(it.display);return{left:wt,right:wt,top:kt,bottom:kt+St.height}}function Rd(it,lt,wt,St,kt){var ne=Ke(it,lt,wt);return ne.xRel=kt,St&&(ne.outside=St),ne}function jd(it,lt,wt){var St=it.doc;if(wt+=it.display.viewOffset,wt<0)return Rd(St.first,0,null,-1,-1);var kt=Ge(St,wt),ne=St.first+St.size-1;if(kt>ne)return Rd(St.first+St.size-1,gn(St,ne).text.length,null,1,1);lt<0&&(lt=0);for(var ge=gn(St,kt);;){var Ce=Gn(it,ge,kt,lt,wt),Pe=tr(ge,Ce.ch+(Ce.xRel>0||Ce.outside>0?1:0));if(!Pe)return Ce;var He=Pe.find(1);if(He.line==kt)return He;ge=gn(St,kt=He.line)}}function Vi(it,lt,wt,St){St-=Ko(lt);var kt=lt.text.length,ne=Ht(function(ge){return za(it,wt,ge-1).bottom<=St},kt,0);return kt=Ht(function(ge){return za(it,wt,ge).top>St},ne,kt),{begin:ne,end:kt}}function qf(it,lt,wt,St){wt||(wt=Rl(it,lt));var kt=Ro(it,lt,za(it,wt,St),"line").top;return Vi(it,lt,wt,kt)}function Je(it,lt,wt,St){return it.bottom<=wt?!1:it.top>wt?!0:(St?it.left:it.right)>lt}function Gn(it,lt,wt,St,kt){kt-=Tr(lt);var ne=Rl(it,lt),ge=Ko(lt),Ce=0,Pe=lt.text.length,He=!0,pn=re(lt,it.doc.direction);if(pn){var Xe=(it.options.lineWrapping?Dp:Ip)(it,lt,wt,ne,pn,St,kt);He=Xe.level!=1,Ce=He?Xe.from:Xe.to-1,Pe=He?Xe.to:Xe.from-1}var Fn=null,Dn=null,ni=Ht(function(Lr){var Wi=za(it,ne,Lr);return Wi.top+=ge,Wi.bottom+=ge,Je(Wi,St,kt,!1)?(Wi.top<=kt&&Wi.left<=St&&(Fn=Lr,Dn=Wi),!0):!1},Ce,Pe),ai,wi,Di=!1;if(Dn){var er=St-Dn.left<Dn.right-St,Ui=er==He;ni=Fn+(Ui?0:1),wi=Ui?"after":"before",ai=er?Dn.left:Dn.right}else{!He&&(ni==Pe||ni==Ce)&&ni++,wi=ni==0?"after":ni==lt.text.length?"before":za(it,ne,ni-(He?1:0)).bottom+ge<=kt==He?"after":"before";var sr=Mo(it,Ke(wt,ni,wi),"line",lt,ne);ai=sr.left,Di=kt<sr.top?-1:kt>=sr.bottom?1:0}return ni=Et(lt.text,ni,1),Rd(wt,ni,wi,Di,St-ai)}function Ip(it,lt,wt,St,kt,ne,ge){var Ce=Ht(function(Xe){var Fn=kt[Xe],Dn=Fn.level!=1;return Je(Mo(it,Ke(wt,Dn?Fn.to:Fn.from,Dn?"before":"after"),"line",lt,St),ne,ge,!0)},0,kt.length-1),Pe=kt[Ce];if(Ce>0){var He=Pe.level!=1,pn=Mo(it,Ke(wt,He?Pe.from:Pe.to,He?"after":"before"),"line",lt,St);Je(pn,ne,ge,!0)&&pn.top>ge&&(Pe=kt[Ce-1])}return Pe}function Dp(it,lt,wt,St,kt,ne,ge){var Ce=Vi(it,lt,St,ge),Pe=Ce.begin,He=Ce.end;/\s/.test(lt.text.charAt(He-1))&&He--;for(var pn=null,Xe=null,Fn=0;Fn<kt.length;Fn++){var Dn=kt[Fn];if(!(Dn.from>=He||Dn.to<=Pe)){var ni=Dn.level!=1,ai=za(it,St,ni?Math.min(He,Dn.to)-1:Math.max(Pe,Dn.from)).right,wi=ai<ne?ne-ai+1e9:ai-ne;(!pn||Xe>wi)&&(pn=Dn,Xe=wi)}}return pn||(pn=kt[kt.length-1]),pn.from<Pe&&(pn={from:Pe,to:pn.to,level:pn.level}),pn.to>He&&(pn={from:pn.from,to:He,level:pn.level}),pn}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 wt=ou.offsetHeight/50;return wt>3&&(it.cachedTextHeight=wt),Ut(it.measure),wt||1}function yh(it){if(it.cachedCharWidth!=null)return it.cachedCharWidth;var lt=Qt("span","xxxxxxxxxx"),wt=Qt("pre",[lt],"CodeMirror-line-like");Ft(it.measure,wt);var St=lt.getBoundingClientRect(),kt=(St.right-St.left)/10;return kt>2&&(it.cachedCharWidth=kt),kt||10}function zd(it){for(var lt=it.display,wt={},St={},kt=lt.gutters.clientLeft,ne=lt.gutters.firstChild,ge=0;ne;ne=ne.nextSibling,++ge){var Ce=it.display.gutterSpecs[ge].className;wt[Ce]=ne.offsetLeft+ne.clientLeft+kt,St[Ce]=ne.clientWidth}return{fixedPos:Kc(lt),gutterTotalWidth:lt.gutters.offsetWidth,gutterLeft:wt,gutterWidth:St,wrapperWidth:lt.wrapper.clientWidth}}function Kc(it){return it.scroller.getBoundingClientRect().left-it.sizer.getBoundingClientRect().left}function Oo(it){var lt=su(it.display),wt=it.options.lineWrapping,St=wt&&Math.max(5,it.display.scroller.clientWidth/yh(it.display)-3);return function(kt){if(zn(it.doc,kt))return 0;var ne=0;if(kt.widgets)for(var ge=0;ge<kt.widgets.length;ge++)kt.widgets[ge].height&&(ne+=kt.widgets[ge].height);return wt?ne+(Math.ceil(kt.text.length/St)||1)*lt:ne+lt}}function dr(it){var lt=it.doc,wt=Oo(it);lt.iter(function(St){var kt=wt(St);kt!=St.height&&mn(St,kt)})}function na(it,lt,wt,St){var kt=it.display;if(!wt&&mi(lt).getAttribute("cm-not-content")=="true")return null;var ne,ge,Ce=kt.lineSpace.getBoundingClientRect();try{ne=lt.clientX-Ce.left,ge=lt.clientY-Ce.top}catch(Xe){return null}var Pe=jd(it,ne,ge),He;if(St&&Pe.xRel>0&&(He=gn(it.doc,Pe.line).text).length==Pe.ch){var pn=de(He,He.length,it.options.tabSize)-He.length;Pe=Ke(Pe.line,Math.max(0,Math.round((ne-ru(it.display).left)/yh(it.display))-pn))}return Pe}function Wa(it,lt){if(lt>=it.display.viewTo||(lt-=it.display.viewFrom,lt<0))return null;for(var wt=it.display.view,St=0;St<wt.length;St++)if(lt-=wt[St].size,lt<0)return St}function Io(it,lt,wt,St){lt==null&&(lt=it.doc.first),wt==null&&(wt=it.doc.first+it.doc.size),St||(St=0);var kt=it.display;if(St&&wt<kt.viewTo&&(kt.updateLineNumbers==null||kt.updateLineNumbers>lt)&&(kt.updateLineNumbers=lt),it.curOp.viewChanged=!0,lt>=kt.viewTo)Cn&&di(it.doc,lt)<kt.viewTo&&$o(it);else if(wt<=kt.viewFrom)Cn&&Ai(it.doc,wt+St)>kt.viewFrom?$o(it):(kt.viewFrom+=St,kt.viewTo+=St);else if(lt<=kt.viewFrom&&wt>=kt.viewTo)$o(it);else if(lt<=kt.viewFrom){var ne=fa(it,wt,wt+St,1);ne?(kt.view=kt.view.slice(ne.index),kt.viewFrom=ne.lineN,kt.viewTo+=St):$o(it)}else if(wt>=kt.viewTo){var ge=fa(it,lt,lt,-1);ge?(kt.view=kt.view.slice(0,ge.index),kt.viewTo=ge.lineN):$o(it)}else{var Ce=fa(it,lt,lt,-1),Pe=fa(it,wt,wt+St,1);Ce&&Pe?(kt.view=kt.view.slice(0,Ce.index).concat(qi(it,Ce.lineN,Pe.lineN)).concat(kt.view.slice(Pe.index)),kt.viewTo+=St):$o(it)}var He=kt.externalMeasured;He&&(wt<He.lineN?He.lineN+=St:lt<He.lineN+He.size&&(kt.externalMeasured=null))}function Br(it,lt,wt){it.curOp.viewChanged=!0;var St=it.display,kt=it.display.externalMeasured;if(kt&<>=kt.lineN&<<kt.lineN+kt.size&&(St.externalMeasured=null),!(lt<St.viewFrom||lt>=St.viewTo)){var ne=St.view[Wa(it,lt)];if(ne.node!=null){var ge=ne.changes||(ne.changes=[]);ee(ge,wt)==-1&&ge.push(wt)}}}function $o(it){it.display.viewFrom=it.display.viewTo=it.doc.first,it.display.view=[],it.display.viewOffset=0}function fa(it,lt,wt,St){var kt=Wa(it,lt),ne,ge=it.display.view;if(!Cn||wt==it.doc.first+it.doc.size)return{index:kt,lineN:wt};for(var Ce=it.display.viewFrom,Pe=0;Pe<kt;Pe++)Ce+=ge[Pe].size;if(Ce!=lt){if(St>0){if(kt==ge.length-1)return null;ne=Ce+ge[kt].size-lt,kt++}else ne=Ce-lt;lt+=ne,wt+=ne}for(;di(it.doc,wt)!=wt;){if(kt==(St<0?0:ge.length-1))return null;wt+=St*ge[kt-(St<0?1:0)].size,kt+=St}return{index:kt,lineN:wt}}function mo(it,lt,wt){var St=it.display,kt=St.view;kt.length==0||lt>=St.viewTo||wt<=St.viewFrom?(St.view=qi(it,lt,wt),St.viewFrom=lt):(St.viewFrom>lt?St.view=qi(it,lt,St.viewFrom).concat(St.view):St.viewFrom<lt&&(St.view=St.view.slice(Wa(it,lt))),St.viewFrom=lt,St.viewTo<wt?St.view=St.view.concat(qi(it,St.viewTo,wt)):St.viewTo>wt&&(St.view=St.view.slice(0,Wa(it,wt)))),St.viewTo=wt}function Ea(it){for(var lt=it.display.view,wt=0,St=0;St<lt.length;St++){var kt=lt[St];!kt.hidden&&(!kt.node||kt.changes)&&++wt}return wt}function hs(it){it.display.input.showSelection(it.display.input.prepareSelection())}function Lu(it,lt){lt===void 0&&(lt=!0);for(var wt=it.doc,St={},kt=St.cursors=document.createDocumentFragment(),ne=St.selection=document.createDocumentFragment(),ge=0;ge<wt.sel.ranges.length;ge++)if(!(!lt&&ge==wt.sel.primIndex)){var Ce=wt.sel.ranges[ge];if(!(Ce.from().line>=it.display.viewTo||Ce.to().line<it.display.viewFrom)){var Pe=Ce.empty();(Pe||it.options.showCursorWhenSelecting)&&Zr(it,Ce.head,kt),Pe||Vr(it,Ce,ne)}}return St}function Zr(it,lt,wt){var St=Mo(it,lt,"div",null,null,!it.options.singleCursorHeightPerLine),kt=wt.appendChild(Qt("div","\xA0","CodeMirror-cursor"));if(kt.style.left=St.left+"px",kt.style.top=St.top+"px",kt.style.height=Math.max(0,St.bottom-St.top)*it.options.cursorHeight+"px",St.other){var ne=wt.appendChild(Qt("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ne.style.display="",ne.style.left=St.other.left+"px",ne.style.top=St.other.top+"px",ne.style.height=(St.other.bottom-St.other.top)*.85+"px"}}function ia(it,lt){return it.top-lt.top||it.left-lt.left}function Vr(it,lt,wt){var St=it.display,kt=it.doc,ne=document.createDocumentFragment(),ge=ru(it.display),Ce=ge.left,Pe=Math.max(St.sizerWidth,Ca(it)-St.sizer.offsetLeft)-ge.right,He=kt.direction=="ltr";function pn(Ui,sr,Lr,Wi){sr<0&&(sr=0),sr=Math.round(sr),Wi=Math.round(Wi),ne.appendChild(Qt("div",null,"CodeMirror-selected","position: absolute; left: "+Ui+`px;
|
|
|
top: `+sr+"px; width: "+(Lr==null?Pe-Ui:Lr)+`px;
|
|
|
height: `+(Wi-sr)+"px"))}function Xe(Ui,sr,Lr){var Wi=gn(kt,Ui),jr=Wi.text.length,Do,fs;function Zo(as,Ta){return Ha(it,Ke(Ui,as),"div",Wi,Ta)}function ma(as,Ta,Bs){var ls=qf(it,Wi,null,as),$r=Ta=="ltr"==(Bs=="after")?"left":"right",_o=Bs=="after"?ls.begin:ls.end-(/\s/.test(Wi.text.charAt(ls.end-1))?2:1);return Zo(_o,$r)[$r]}var Gs=re(Wi,kt.direction);return Pt(Gs,sr||0,Lr==null?jr:Lr,function(as,Ta,Bs,ls){var $r=Bs=="ltr",_o=Zo(as,$r?"left":"right"),Cs=Zo(Ta-1,$r?"right":"left"),Rs=sr==null&&as==0,fl=Lr==null&&Ta==jr,Xo=ls==0,il=!Gs||ls==Gs.length-1;if(Cs.top-_o.top<=3){var qo=(He?Rs:fl)&&Xo,fd=(He?fl:Rs)&&il,Va=qo?Ce:($r?_o:Cs).left,ka=fd?Pe:($r?Cs:_o).right;pn(Va,_o.top,ka-Va,_o.bottom)}else{var va,xo,Es,Gl;$r?(va=He&&Rs&&Xo?Ce:_o.left,xo=He?Pe:ma(as,Bs,"before"),Es=He?Ce:ma(Ta,Bs,"after"),Gl=He&&fl&&il?Pe:Cs.right):(va=He?ma(as,Bs,"before"):Ce,xo=!He&&Rs&&Xo?Pe:_o.right,Es=!He&&fl&&il?Ce:Cs.left,Gl=He?ma(Ta,Bs,"after"):Pe),pn(va,_o.top,xo-va,_o.bottom),_o.bottom<Cs.top&&pn(Ce,_o.bottom,null,Cs.top),pn(Es,Cs.top,Gl-Es,Cs.bottom)}(!Do||ia(_o,Do)<0)&&(Do=_o),ia(Cs,Do)<0&&(Do=Cs),(!fs||ia(_o,fs)<0)&&(fs=_o),ia(Cs,fs)<0&&(fs=Cs)}),{start:Do,end:fs}}var Fn=lt.from(),Dn=lt.to();if(Fn.line==Dn.line)Xe(Fn.line,Fn.ch,Dn.ch);else{var ni=gn(kt,Fn.line),ai=gn(kt,Dn.line),wi=_i(ni)==_i(ai),Di=Xe(Fn.line,Fn.ch,wi?ni.text.length+1:null).end,er=Xe(Dn.line,wi?0:null,Dn.ch).start;wi&&(Di.top<er.top-2?(pn(Di.right,Di.top,null,Di.bottom),pn(Ce,er.top,er.left,er.bottom)):pn(Di.right,Di.top,er.left-Di.right,Di.bottom)),Di.bottom<er.top&&pn(Ce,Di.bottom,null,er.top)}wt.appendChild(ne)}function lo(it){if(it.state.focused){var lt=it.display;clearInterval(lt.blinker);var wt=!0;lt.cursorDiv.style.visibility="",it.options.cursorBlinkRate>0?lt.blinker=setInterval(function(){it.hasFocus()||Sh(it),lt.cursorDiv.style.visibility=(wt=!wt)?"":"hidden"},it.options.cursorBlinkRate):it.options.cursorBlinkRate<0&&(lt.cursorDiv.style.visibility="hidden")}}function Eo(it){it.state.focused||(it.display.input.focus(),Yr(it))}function jo(it){it.state.delayingBlurEvent=!0,setTimeout(function(){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1,Sh(it))},100)}function Yr(it,lt){it.state.delayingBlurEvent&&(it.state.delayingBlurEvent=!1),it.options.readOnly!="nocursor"&&(it.state.focused||(Le(it,"focus",it,lt),it.state.focused=!0,we(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()),lo(it))}function Sh(it,lt){it.state.delayingBlurEvent||(it.state.focused&&(Le(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 lr(it){for(var lt=it.display,wt=lt.lineDiv.offsetTop,St=0;St<lt.view.length;St++){var kt=lt.view[St],ne=it.options.lineWrapping,ge=void 0,Ce=0;if(!kt.hidden){if(Nt&&Wt<8){var Pe=kt.node.offsetTop+kt.node.offsetHeight;ge=Pe-wt,wt=Pe}else{var He=kt.node.getBoundingClientRect();ge=He.bottom-He.top,!ne&&kt.text.firstChild&&(Ce=kt.text.firstChild.getBoundingClientRect().right-He.left-1)}var pn=kt.line.height-ge;if((pn>.005||pn<-.005)&&(mn(kt.line,ge),Fp(kt.line),kt.rest))for(var Xe=0;Xe<kt.rest.length;Xe++)Fp(kt.rest[Xe]);if(Ce>it.display.sizerWidth){var Fn=Math.ceil(Ce/yh(it.display));Fn>it.display.maxLineLength&&(it.display.maxLineLength=Fn,it.display.maxLine=kt.line,it.display.maxLineChanged=!0)}}}}function Fp(it){if(it.widgets)for(var lt=0;lt<it.widgets.length;++lt){var wt=it.widgets[lt],St=wt.node.parentNode;St&&(wt.height=St.offsetHeight)}}function Gr(it,lt,wt){var St=wt&&wt.top!=null?Math.max(0,wt.top):it.scroller.scrollTop;St=Math.floor(St-ta(it));var kt=wt&&wt.bottom!=null?wt.bottom:St+it.wrapper.clientHeight,ne=Ge(lt,St),ge=Ge(lt,kt);if(wt&&wt.ensure){var Ce=wt.ensure.from.line,Pe=wt.ensure.to.line;Ce<ne?(ne=Ce,ge=Ge(lt,Tr(gn(lt,Ce))+it.wrapper.clientHeight)):Math.min(Pe,lt.lastLine())>=ge&&(ne=Ge(lt,Tr(gn(lt,Pe))-it.wrapper.clientHeight),ge=Pe)}return{from:ne,to:Math.max(ge,ne+1)}}function Bp(it,lt){if(!Re(it,"scrollCursorIntoView")){var wt=it.display,St=wt.sizer.getBoundingClientRect(),kt=null;if(lt.top+St.top<0?kt=!0:lt.bottom+St.top>(window.innerHeight||document.documentElement.clientHeight)&&(kt=!1),kt!=null&&!It){var ne=Qt("div","\u200B",null,`position: absolute;
|
|
|
top: `+(lt.top-wt.viewOffset-ta(it.display))+`px;
|
|
|
height: `+(lt.bottom-lt.top+ea(it)+wt.barHeight)+`px;
|
|
|
left: `+lt.left+"px; width: "+Math.max(2,lt.right-lt.left)+"px;");it.display.lineSpace.appendChild(ne),ne.scrollIntoView(kt),it.display.lineSpace.removeChild(ne)}}}function ac(it,lt,wt,St){St==null&&(St=0);var kt;!it.options.lineWrapping&<==wt&&(lt=lt.ch?Ke(lt.line,lt.sticky=="before"?lt.ch-1:lt.ch,"after"):lt,wt=lt.sticky=="before"?Ke(lt.line,lt.ch+1,"before"):lt);for(var ne=0;ne<5;ne++){var ge=!1,Ce=Mo(it,lt),Pe=!wt||wt==lt?Ce:Mo(it,wt);kt={left:Math.min(Ce.left,Pe.left),top:Math.min(Ce.top,Pe.top)-St,right:Math.max(Ce.left,Pe.left),bottom:Math.max(Ce.bottom,Pe.bottom)+St};var He=$f(it,kt),pn=it.doc.scrollTop,Xe=it.doc.scrollLeft;if(He.scrollTop!=null&&(wh(it,He.scrollTop),Math.abs(it.doc.scrollTop-pn)>1&&(ge=!0)),He.scrollLeft!=null&&(lu(it,He.scrollLeft),Math.abs(it.doc.scrollLeft-Xe)>1&&(ge=!0)),!ge)break}return kt}function Vc(it,lt){var wt=$f(it,lt);wt.scrollTop!=null&&wh(it,wt.scrollTop),wt.scrollLeft!=null&&lu(it,wt.scrollLeft)}function $f(it,lt){var wt=it.display,St=su(it.display);lt.top<0&&(lt.top=0);var kt=it.curOp&&it.curOp.scrollTop!=null?it.curOp.scrollTop:wt.scroller.scrollTop,ne=dh(it),ge={};lt.bottom-lt.top>ne&&(lt.bottom=lt.top+ne);var Ce=it.doc.height+Bl(wt),Pe=lt.top<St,He=lt.bottom>Ce-St;if(lt.top<kt)ge.scrollTop=Pe?0:lt.top;else if(lt.bottom>kt+ne){var pn=Math.min(lt.top,(He?Ce:lt.bottom)-ne);pn!=kt&&(ge.scrollTop=pn)}var Xe=it.options.fixedGutter?0:wt.gutters.offsetWidth,Fn=it.curOp&&it.curOp.scrollLeft!=null?it.curOp.scrollLeft:wt.scroller.scrollLeft-Xe,Dn=Ca(it)-wt.gutters.offsetWidth,ni=lt.right-lt.left>Dn;return ni&&(lt.right=lt.left+Dn),lt.left<10?ge.scrollLeft=0:lt.left<Fn?ge.scrollLeft=Math.max(0,lt.left+Xe-(ni?0:10)):lt.right>Dn+Fn-3&&(ge.scrollLeft=lt.right+(ni?0:10)-Dn),ge}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,wt){(lt!=null||wt!=null)&&jl(it),lt!=null&&(it.curOp.scrollLeft=lt),wt!=null&&(it.curOp.scrollTop=wt)}function _r(it,lt){jl(it),it.curOp.scrollToPos=lt}function jl(it){var lt=it.curOp.scrollToPos;if(lt){it.curOp.scrollToPos=null;var wt=Bd(it,lt.from),St=Bd(it,lt.to);Wd(it,wt,St,lt.margin)}}function Wd(it,lt,wt,St){var kt=$f(it,{left:Math.min(lt.left,wt.left),top:Math.min(lt.top,wt.top)-St,right:Math.max(lt.right,wt.right),bottom:Math.max(lt.bottom,wt.bottom)+St});xh(it,kt.scrollLeft,kt.scrollTop)}function wh(it,lt){Math.abs(it.doc.scrollTop-lt)<2||(Rt||Ou(it,{top:lt}),tg(it,lt,!0),Rt&&Ou(it),lc(it,100))}function tg(it,lt,wt){lt=Math.max(0,Math.min(it.display.scroller.scrollHeight-it.display.scroller.clientHeight,lt)),!(it.display.scroller.scrollTop==lt&&!wt)&&(it.doc.scrollTop=lt,it.display.scrollbars.setScrollTop(lt),it.display.scroller.scrollTop!=lt&&(it.display.scroller.scrollTop=lt))}function lu(it,lt,wt,St){lt=Math.max(0,Math.min(lt,it.display.scroller.scrollWidth-it.display.scroller.clientWidth)),!((wt?lt==it.doc.scrollLeft:Math.abs(it.doc.scrollLeft-lt)<2)&&!St)&&(it.doc.scrollLeft=lt,Kd(it),it.display.scroller.scrollLeft!=lt&&(it.display.scroller.scrollLeft=lt),it.display.scrollbars.setScrollLeft(lt))}function $a(it){var lt=it.display,wt=lt.gutters.offsetWidth,St=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?wt:0,docHeight:St,scrollHeight:St+ea(it)+lt.barHeight,nativeBarWidth:lt.nativeBarWidth,gutterWidth:wt}}var Au=function(it,lt,wt){this.cm=wt;var St=this.vert=Qt("div",[Qt("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),kt=this.horiz=Qt("div",[Qt("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");St.tabIndex=kt.tabIndex=-1,it(St),it(kt),ye(St,"scroll",function(){St.clientHeight&<(St.scrollTop,"vertical")}),ye(kt,"scroll",function(){kt.clientWidth&<(kt.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Nt&&Wt<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Au.prototype.update=function(it){var lt=it.scrollWidth>it.clientWidth+1,wt=it.scrollHeight>it.clientHeight+1,St=it.nativeBarWidth;if(wt){this.vert.style.display="block",this.vert.style.bottom=lt?St+"px":"0";var kt=it.viewHeight-(lt?St:0);this.vert.firstChild.style.height=Math.max(0,it.scrollHeight-it.clientHeight+kt)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(lt){this.horiz.style.display="block",this.horiz.style.right=wt?St+"px":"0",this.horiz.style.left=it.barLeft+"px";var ne=it.viewWidth-it.barLeft-(wt?St:0);this.horiz.firstChild.style.width=Math.max(0,it.scrollWidth-it.clientWidth+ne)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&it.clientHeight>0&&(St==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:wt?St:0,bottom:lt?St: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&&!Tt?"12px":"18px";this.horiz.style.height=this.vert.style.width=it,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Jt,this.disableVert=new Jt},Au.prototype.enableZeroWidthBar=function(it,lt,wt){it.style.pointerEvents="auto";function St(){var kt=it.getBoundingClientRect(),ne=wt=="vert"?document.elementFromPoint(kt.right-1,(kt.top+kt.bottom)/2):document.elementFromPoint((kt.right+kt.left)/2,kt.bottom-1);ne!=it?it.style.pointerEvents="none":lt.set(1e3,St)}lt.set(1e3,St)},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=$a(it));var wt=it.display.barWidth,St=it.display.barHeight;Ud(it,lt);for(var kt=0;kt<4&&wt!=it.display.barWidth||St!=it.display.barHeight;kt++)wt!=it.display.barWidth&&it.options.lineWrapping&&lr(it),Ud(it,$a(it)),wt=it.display.barWidth,St=it.display.barHeight}function Ud(it,lt){var wt=it.display,St=wt.scrollbars.update(lt);wt.sizer.style.paddingRight=(wt.barWidth=St.right)+"px",wt.sizer.style.paddingBottom=(wt.barHeight=St.bottom)+"px",wt.heightForcer.style.borderBottom=St.bottom+"px solid transparent",St.right&&St.bottom?(wt.scrollbarFiller.style.display="block",wt.scrollbarFiller.style.height=St.bottom+"px",wt.scrollbarFiller.style.width=St.right+"px"):wt.scrollbarFiller.style.display="",St.bottom&&it.options.coverGutterNextToScrollbar&&it.options.fixedGutter?(wt.gutterFiller.style.display="block",wt.gutterFiller.style.height=St.bottom+"px",wt.gutterFiller.style.width=lt.gutterWidth+"px"):wt.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),ye(lt,"mousedown",function(){it.state.focused&&setTimeout(function(){return it.display.input.focus()},0)}),lt.setAttribute("cm-not-content","true")},function(lt,wt){wt=="horizontal"?lu(it,lt):wh(it,lt)},it),it.display.scrollbars.addClass&&we(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},ao(it.curOp)}function ku(it){var lt=it.curOp;lt&&cr(lt,function(wt){for(var St=0;St<wt.ops.length;St++)wt.ops[St].cm.curOp=null;Q0(wt)})}function Q0(it){for(var lt=it.ops,wt=0;wt<lt.length;wt++)q0(lt[wt]);for(var St=0;St<lt.length;St++)$0(lt[St]);for(var kt=0;kt<lt.length;kt++)jp(lt[kt]);for(var ne=0;ne<lt.length;ne++)Yo(lt[ne]);for(var ge=0;ge<lt.length;ge++)Nu(lt[ge])}function q0(it){var lt=it.cm,wt=lt.display;zp(lt),it.updateMaxLine&&kr(lt),it.mustUpdate=it.viewChanged||it.forceUpdate||it.scrollTop!=null||it.scrollToPos&&(it.scrollToPos.from.line<wt.viewFrom||it.scrollToPos.to.line>=wt.viewTo)||wt.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,wt=lt.display;it.updatedDisplay&&lr(lt),it.barMeasure=$a(lt),wt.maxLineChanged&&!lt.options.lineWrapping&&(it.adjustWidthTo=gh(lt,wt.maxLine,wt.maxLine.text.length).left+3,lt.display.sizerWidth=it.adjustWidthTo,it.barMeasure.scrollWidth=Math.max(wt.scroller.clientWidth,wt.sizer.offsetLeft+it.adjustWidthTo+ea(lt)+lt.display.barWidth),it.maxScrollLeft=Math.max(0,wt.sizer.offsetLeft+it.adjustWidthTo-Ca(lt))),(it.updatedDisplay||it.selectionChanged)&&(it.preparedSelection=wt.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 wt=it.focus&&it.focus==oe();it.preparedSelection&<.display.input.showSelection(it.preparedSelection,wt),(it.updatedDisplay||it.startHeight!=lt.doc.height)&&Mu(lt,it.barMeasure),it.updatedDisplay&&Du(lt,it.barMeasure),it.selectionChanged&&lo(lt),lt.state.focused&&it.updateInput&<.display.input.reset(it.typing),wt&&Eo(it.cm)}function Nu(it){var lt=it.cm,wt=lt.display,St=lt.doc;if(it.updatedDisplay&&uo(lt,it.update),wt.wheelStartX!=null&&(it.scrollTop!=null||it.scrollLeft!=null||it.scrollToPos)&&(wt.wheelStartX=wt.wheelStartY=null),it.scrollTop!=null&&tg(lt,it.scrollTop,it.forceScroll),it.scrollLeft!=null&&lu(lt,it.scrollLeft,!0,!0),it.scrollToPos){var kt=ac(lt,yn(St,it.scrollToPos.from),yn(St,it.scrollToPos.to),it.scrollToPos.margin);Bp(lt,kt)}var ne=it.maybeHiddenMarkers,ge=it.maybeUnhiddenMarkers;if(ne)for(var Ce=0;Ce<ne.length;++Ce)ne[Ce].lines.length||Le(ne[Ce],"hide");if(ge)for(var Pe=0;Pe<ge.length;++Pe)ge[Pe].lines.length&&Le(ge[Pe],"unhide");wt.wrapper.offsetHeight&&(St.scrollTop=lt.display.scroller.scrollTop),it.changeObjs&&Le(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 Ss(it){return function(){if(this.curOp)return it.apply(this,arguments);Tu(this);try{return it.apply(this,arguments)}finally{ku(this)}}}function xs(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,pe(ws,it))}function ws(it){var lt=it.doc;if(!(lt.highlightFrontier>=it.display.viewTo)){var wt=+new Date+it.options.workTime,St=ii(it,lt.highlightFrontier),kt=[];lt.iter(St.line,Math.min(lt.first+lt.size,it.display.viewTo+500),function(ne){if(St.line>=it.display.viewFrom){var ge=ne.styles,Ce=ne.text.length>it.options.maxHighlightLength?vn(lt.mode,St.state):null,Pe=ei(it,ne,St,!0);Ce&&(St.state=Ce),ne.styles=Pe.styles;var He=ne.styleClasses,pn=Pe.classes;pn?ne.styleClasses=pn:He&&(ne.styleClasses=null);for(var Xe=!ge||ge.length!=ne.styles.length||He!=pn&&(!He||!pn||He.bgClass!=pn.bgClass||He.textClass!=pn.textClass),Fn=0;!Xe&&Fn<ge.length;++Fn)Xe=ge[Fn]!=ne.styles[Fn];Xe&&kt.push(St.line),ne.stateAfter=St.save(),St.nextLine()}else ne.text.length<=it.options.maxHighlightLength&&qe(it,ne.text,St),ne.stateAfter=St.line%5==0?St.save():null,St.nextLine();if(+new Date>wt)return lc(it,it.options.workDelay),!0}),lt.highlightFrontier=St.line,lt.modeFrontier=Math.max(lt.modeFrontier,St.line),kt.length&&to(it,function(){for(var ne=0;ne<kt.length;ne++)Br(it,kt[ne],"text")})}}var Ph=function(it,lt,wt){var St=it.display;this.viewport=lt,this.visible=Gr(St,it.doc,lt),this.editorIsHidden=!St.wrapper.offsetWidth,this.wrapperHeight=St.wrapper.clientHeight,this.wrapperWidth=St.wrapper.clientWidth,this.oldDisplayWidth=Ca(it),this.force=wt,this.dims=zd(it),this.events=[]};Ph.prototype.signal=function(it,lt){wn(it,lt)&&this.events.push(arguments)},Ph.prototype.finish=function(){for(var it=0;it<this.events.length;it++)Le.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=oe();if(!lt||!ue(it.display.lineDiv,lt))return null;var wt={activeElt:lt};if(window.getSelection){var St=window.getSelection();St.anchorNode&&St.extend&&ue(it.display.lineDiv,St.anchorNode)&&(wt.anchorNode=St.anchorNode,wt.anchorOffset=St.anchorOffset,wt.focusNode=St.focusNode,wt.focusOffset=St.focusOffset)}return wt}function ga(it){if(!(!it||!it.activeElt||it.activeElt==oe())&&(it.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(it.activeElt.nodeName)&&it.anchorNode&&ue(document.body,it.anchorNode)&&ue(document.body,it.focusNode))){var lt=window.getSelection(),wt=document.createRange();wt.setEnd(it.anchorNode,it.anchorOffset),wt.collapse(!1),lt.removeAllRanges(),lt.addRange(wt),lt.extend(it.focusNode,it.focusOffset)}}function Gd(it,lt){var wt=it.display,St=it.doc;if(lt.editorIsHidden)return $o(it),!1;if(!lt.force&<.visible.from>=wt.viewFrom&<.visible.to<=wt.viewTo&&(wt.updateLineNumbers==null||wt.updateLineNumbers>=wt.viewTo)&&wt.renderedView==wt.view&&Ea(it)==0)return!1;rs(it)&&($o(it),lt.dims=zd(it));var kt=St.first+St.size,ne=Math.max(lt.visible.from-it.options.viewportMargin,St.first),ge=Math.min(kt,lt.visible.to+it.options.viewportMargin);wt.viewFrom<ne&&ne-wt.viewFrom<20&&(ne=Math.max(St.first,wt.viewFrom)),wt.viewTo>ge&&wt.viewTo-ge<20&&(ge=Math.min(kt,wt.viewTo)),Cn&&(ne=di(it.doc,ne),ge=Ai(it.doc,ge));var Ce=ne!=wt.viewFrom||ge!=wt.viewTo||wt.lastWrapHeight!=lt.wrapperHeight||wt.lastWrapWidth!=lt.wrapperWidth;mo(it,ne,ge),wt.viewOffset=Tr(gn(it.doc,wt.viewFrom)),it.display.mover.style.top=wt.viewOffset+"px";var Pe=Ea(it);if(!Ce&&Pe==0&&!lt.force&&wt.renderedView==wt.view&&(wt.updateLineNumbers==null||wt.updateLineNumbers>=wt.viewTo))return!1;var He=Hp(it);return Pe>4&&(wt.lineDiv.style.display="none"),ig(it,wt.updateLineNumbers,lt.dims),Pe>4&&(wt.lineDiv.style.display=""),wt.renderedView=wt.view,ga(He),Ut(wt.cursorDiv),Ut(wt.selectionDiv),wt.gutters.style.height=wt.sizer.style.minHeight=0,Ce&&(wt.lastWrapHeight=lt.wrapperHeight,wt.lastWrapWidth=lt.wrapperWidth,lc(it,400)),wt.updateLineNumbers=null,!0}function uo(it,lt){for(var wt=lt.viewport,St=!0;;St=!1){if(!St||!it.options.lineWrapping||lt.oldDisplayWidth==Ca(it)){if(wt&&wt.top!=null&&(wt={top:Math.min(it.doc.height+Bl(it.display)-dh(it),wt.top)}),lt.visible=Gr(it.display,it.doc,wt),lt.visible.from>=it.display.viewFrom&<.visible.to<=it.display.viewTo)break}else St&&(lt.visible=Gr(it.display,it.doc,wt));if(!Gd(it,lt))break;lr(it);var kt=$a(it);hs(it),Mu(it,kt),Du(it,kt),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 wt=new Ph(it,lt);if(Gd(it,wt)){lr(it),uo(it,wt);var St=$a(it);hs(it),Mu(it,St),Du(it,St),wt.finish()}}function ig(it,lt,wt){var St=it.display,kt=it.options.lineNumbers,ne=St.lineDiv,ge=ne.firstChild;function Ce(ni){var ai=ni.nextSibling;return xt&&st&&it.display.currentWheelTarget==ni?ni.style.display="none":ni.parentNode.removeChild(ni),ai}for(var Pe=St.view,He=St.viewFrom,pn=0;pn<Pe.length;pn++){var Xe=Pe[pn];if(!Xe.hidden)if(!Xe.node||Xe.node.parentNode!=ne){var Fn=iu(it,Xe,He,wt);ne.insertBefore(Fn,ge)}else{for(;ge!=Xe.node;)ge=Ce(ge);var Dn=kt&<!=null&<<=He&&Xe.lineNumber;Xe.changes&&(ee(Xe.changes,"gutter")>-1&&(Dn=!1),bo(it,Xe,He,wt)),Dn&&(Ut(Xe.lineNumber),Xe.lineNumber.appendChild(document.createTextNode(In(it.options,He)))),ge=Xe.node.nextSibling}He+=Xe.size}for(;ge;)ge=Ce(ge)}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,wt=lt.view;if(!(!lt.alignWidgets&&(!lt.gutters.firstChild||!it.options.fixedGutter))){for(var St=Kc(lt)-lt.scroller.scrollLeft+it.doc.scrollLeft,kt=lt.gutters.offsetWidth,ne=St+"px",ge=0;ge<wt.length;ge++)if(!wt[ge].hidden){it.options.fixedGutter&&(wt[ge].gutter&&(wt[ge].gutter.style.left=ne),wt[ge].gutterBackground&&(wt[ge].gutterBackground.style.left=ne));var Ce=wt[ge].alignable;if(Ce)for(var Pe=0;Pe<Ce.length;Pe++)Ce[Pe].style.left=ne}it.options.fixedGutter&&(lt.gutters.style.left=St+kt+"px")}}function rs(it){if(!it.options.lineNumbers)return!1;var lt=it.doc,wt=In(it.options,lt.first+lt.size-1),St=it.display;if(wt.length!=St.lineNumChars){var kt=St.measure.appendChild(Qt("div",[Qt("div",wt)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ne=kt.firstChild.offsetWidth,ge=kt.offsetWidth-ne;return St.lineGutter.style.width="",St.lineNumInnerWidth=Math.max(ne,St.lineGutter.offsetWidth-ge)+1,St.lineNumWidth=St.lineNumInnerWidth+ge,St.lineNumChars=St.lineNumInnerWidth?wt.length:-1,St.lineGutter.style.width=St.lineNumWidth+"px",Iu(it.display),!0}return!1}function Ps(it,lt){for(var wt=[],St=!1,kt=0;kt<it.length;kt++){var ne=it[kt],ge=null;if(typeof ne!="string"&&(ge=ne.style,ne=ne.className),ne=="CodeMirror-linenumbers")if(lt)St=!0;else continue;wt.push({className:ne,style:ge})}return lt&&!St&&wt.push({className:"CodeMirror-linenumbers",style:null}),wt}function bh(it){var lt=it.gutters,wt=it.gutterSpecs;Ut(lt),it.lineGutter=null;for(var St=0;St<wt.length;++St){var kt=wt[St],ne=kt.className,ge=kt.style,Ce=lt.appendChild(Qt("div",null,"CodeMirror-gutter "+ne));ge&&(Ce.style.cssText=ge),ne=="CodeMirror-linenumbers"&&(it.lineGutter=Ce,Ce.style.width=(it.lineNumWidth||1)+"px")}lt.style.display=wt.length?"":"none",Iu(it)}function Ua(it){bh(it.display),Io(it),Kd(it)}function Fu(it,lt,wt,St){var kt=this;this.input=wt,kt.scrollbarFiller=Qt("div",null,"CodeMirror-scrollbar-filler"),kt.scrollbarFiller.setAttribute("cm-not-content","true"),kt.gutterFiller=Qt("div",null,"CodeMirror-gutter-filler"),kt.gutterFiller.setAttribute("cm-not-content","true"),kt.lineDiv=$t("div",null,"CodeMirror-code"),kt.selectionDiv=Qt("div",null,null,"position: relative; z-index: 1"),kt.cursorDiv=Qt("div",null,"CodeMirror-cursors"),kt.measure=Qt("div",null,"CodeMirror-measure"),kt.lineMeasure=Qt("div",null,"CodeMirror-measure"),kt.lineSpace=$t("div",[kt.measure,kt.lineMeasure,kt.selectionDiv,kt.cursorDiv,kt.lineDiv],null,"position: relative; outline: none");var ne=$t("div",[kt.lineSpace],"CodeMirror-lines");kt.mover=Qt("div",[ne],null,"position: relative"),kt.sizer=Qt("div",[kt.mover],"CodeMirror-sizer"),kt.sizerWidth=null,kt.heightForcer=Qt("div",null,null,"position: absolute; height: "+ae+"px; width: 1px;"),kt.gutters=Qt("div",null,"CodeMirror-gutters"),kt.lineGutter=null,kt.scroller=Qt("div",[kt.sizer,kt.heightForcer,kt.gutters],"CodeMirror-scroll"),kt.scroller.setAttribute("tabIndex","-1"),kt.wrapper=Qt("div",[kt.scrollbarFiller,kt.gutterFiller,kt.scroller],"CodeMirror"),Nt&&Wt<8&&(kt.gutters.style.zIndex=-1,kt.scroller.style.paddingRight=0),!xt&&!(Rt&&tt)&&(kt.scroller.draggable=!0),it&&(it.appendChild?it.appendChild(kt.wrapper):it(kt.wrapper)),kt.viewFrom=kt.viewTo=lt.first,kt.reportedViewFrom=kt.reportedViewTo=lt.first,kt.view=[],kt.renderedView=null,kt.externalMeasured=null,kt.viewOffset=0,kt.lastWrapHeight=kt.lastWrapWidth=0,kt.updateLineNumbers=null,kt.nativeBarWidth=kt.barHeight=kt.barWidth=0,kt.scrollbarsClipped=!1,kt.lineNumWidth=kt.lineNumInnerWidth=kt.lineNumChars=null,kt.alignWidgets=!1,kt.cachedCharWidth=kt.cachedTextHeight=kt.cachedPaddingH=null,kt.maxLine=null,kt.maxLineLength=0,kt.maxLineChanged=!1,kt.wheelDX=kt.wheelDY=kt.wheelStartX=kt.wheelStartY=null,kt.shift=!1,kt.selForContextMenu=null,kt.activeTouch=null,kt.gutterSpecs=Ps(St.gutters,St.lineNumbers),bh(kt),wt.init(kt)}var La=0,ts=null;Nt?ts=-.53:Rt?ts=15:Bt?ts=-.7:bt&&(ts=-1/3);function El(it){var lt=it.wheelDeltaX,wt=it.wheelDeltaY;return lt==null&&it.detail&&it.axis==it.HORIZONTAL_AXIS&&(lt=it.detail),wt==null&&it.detail&&it.axis==it.VERTICAL_AXIS?wt=it.detail:wt==null&&(wt=it.wheelDelta),{x:lt,y:wt}}function Ga(it){var lt=El(it);return lt.x*=ts,lt.y*=ts,lt}function bs(it,lt){var wt=El(lt),St=wt.x,kt=wt.y,ne=it.display,ge=ne.scroller,Ce=ge.scrollWidth>ge.clientWidth,Pe=ge.scrollHeight>ge.clientHeight;if(St&&Ce||kt&&Pe){if(kt&&st&&xt){t:for(var He=lt.target,pn=ne.view;He!=ge;He=He.parentNode)for(var Xe=0;Xe<pn.length;Xe++)if(pn[Xe].node==He){it.display.currentWheelTarget=He;break t}}if(St&&!Rt&&!At&&ts!=null){kt&&Pe&&wh(it,Math.max(0,ge.scrollTop+kt*ts)),lu(it,Math.max(0,ge.scrollLeft+St*ts)),(!kt||kt&&Pe)&&Rn(lt),ne.wheelStartX=null;return}if(kt&&ts!=null){var Fn=kt*ts,Dn=it.doc.scrollTop,ni=Dn+ne.wrapper.clientHeight;Fn<0?Dn=Math.max(0,Dn+Fn-50):ni=Math.min(it.doc.height,ni+Fn+50),Ou(it,{top:Dn,bottom:ni})}La<20&&(ne.wheelStartX==null?(ne.wheelStartX=ge.scrollLeft,ne.wheelStartY=ge.scrollTop,ne.wheelDX=St,ne.wheelDY=kt,setTimeout(function(){if(ne.wheelStartX!=null){var ai=ge.scrollLeft-ne.wheelStartX,wi=ge.scrollTop-ne.wheelStartY,Di=wi&&ne.wheelDY&&wi/ne.wheelDY||ai&&ne.wheelDX&&ai/ne.wheelDX;ne.wheelStartX=ne.wheelStartY=null,Di&&(ts=(ts*La+Di)/(La+1),++La)}},200)):(ne.wheelDX+=St,ne.wheelDY+=kt))}}var tl=function(it,lt){this.ranges=it,this.primIndex=lt};tl.prototype.primary=function(){return this.ranges[this.primIndex]},tl.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 wt=this.ranges[lt],St=it.ranges[lt];if(!_e(wt.anchor,St.anchor)||!_e(wt.head,St.head))return!1}return!0},tl.prototype.deepCopy=function(){for(var it=[],lt=0;lt<this.ranges.length;lt++)it[lt]=new ho(on(this.ranges[lt].anchor),on(this.ranges[lt].head));return new tl(it,this.primIndex)},tl.prototype.somethingSelected=function(){for(var it=0;it<this.ranges.length;it++)if(!this.ranges[it].empty())return!0;return!1},tl.prototype.contains=function(it,lt){lt||(lt=it);for(var wt=0;wt<this.ranges.length;wt++){var St=this.ranges[wt];if(cn(lt,St.from())>=0&&cn(it,St.to())<=0)return wt}return-1};var ho=function(it,lt){this.anchor=it,this.head=lt};ho.prototype.from=function(){return ln(this.anchor,this.head)},ho.prototype.to=function(){return dn(this.anchor,this.head)},ho.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function dl(it,lt,wt){var St=it&&it.options.selectionsMayTouch,kt=lt[wt];lt.sort(function(Fn,Dn){return cn(Fn.from(),Dn.from())}),wt=ee(lt,kt);for(var ne=1;ne<lt.length;ne++){var ge=lt[ne],Ce=lt[ne-1],Pe=cn(Ce.to(),ge.from());if(St&&!ge.empty()?Pe>0:Pe>=0){var He=ln(Ce.from(),ge.from()),pn=dn(Ce.to(),ge.to()),Xe=Ce.empty()?ge.from()==ge.head:Ce.from()==Ce.head;ne<=wt&&--wt,lt.splice(--ne,2,new ho(Xe?pn:He,Xe?He:pn))}}return new tl(lt,wt)}function uu(it,lt){return new tl([new ho(it,lt||it)],0)}function Bu(it){return it.text?Ke(it.from.line+it.text.length-1,ke(it.text).length+(it.text.length==1?it.from.ch:0)):it.to}function Ch(it,lt){if(cn(it,lt.from)<0)return it;if(cn(it,lt.to)<=0)return Bu(lt);var wt=it.line+lt.text.length-(lt.to.line-lt.from.line)-1,St=it.ch;return it.line==lt.to.line&&(St+=Bu(lt).ch-lt.to.ch),Ke(wt,St)}function Zc(it,lt){for(var wt=[],St=0;St<it.sel.ranges.length;St++){var kt=it.sel.ranges[St];wt.push(new ho(Ch(kt.anchor,lt),Ch(kt.head,lt)))}return dl(it.cm,wt,it.sel.primIndex)}function uc(it,lt,wt){return it.line==lt.line?Ke(wt.line,it.ch-lt.ch+wt.ch):Ke(wt.line+(it.line-lt.line),it.ch)}function Xc(it,lt,wt){for(var St=[],kt=Ke(it.first,0),ne=kt,ge=0;ge<lt.length;ge++){var Ce=lt[ge],Pe=uc(Ce.from,kt,ne),He=uc(Bu(Ce),kt,ne);if(kt=Ce.to,ne=He,wt=="around"){var pn=it.sel.ranges[ge],Xe=cn(pn.head,pn.anchor)<0;St[ge]=new ho(Xe?He:Pe,Xe?Pe:He)}else St[ge]=new ho(Pe,Pe)}return new tl(St,it.sel.primIndex)}function Rr(it){it.doc.mode=nn(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&&Io(it)}function rg(it,lt){return lt.from.ch==0&<.to.ch==0&&ke(lt.text)==""&&(!it.cm||it.cm.options.wholeLineUpdateBefore)}function Vd(it,lt,wt,St){function kt(er){return wt?wt[er]:null}function ne(er,Ui,sr){io(er,Ui,sr,St),hi(er,"change",er,lt)}function ge(er,Ui){for(var sr=[],Lr=er;Lr<Ui;++Lr)sr.push(new Xr(He[Lr],kt(Lr),St));return sr}var Ce=lt.from,Pe=lt.to,He=lt.text,pn=gn(it,Ce.line),Xe=gn(it,Pe.line),Fn=ke(He),Dn=kt(He.length-1),ni=Pe.line-Ce.line;if(lt.full)it.insert(0,ge(0,He.length)),it.remove(He.length,it.size-He.length);else if(rg(it,lt)){var ai=ge(0,He.length-1);ne(Xe,Xe.text,Dn),ni&&it.remove(Ce.line,ni),ai.length&&it.insert(Ce.line,ai)}else if(pn==Xe)if(He.length==1)ne(pn,pn.text.slice(0,Ce.ch)+Fn+pn.text.slice(Pe.ch),Dn);else{var wi=ge(1,He.length-1);wi.push(new Xr(Fn+pn.text.slice(Pe.ch),Dn,St)),ne(pn,pn.text.slice(0,Ce.ch)+He[0],kt(0)),it.insert(Ce.line+1,wi)}else if(He.length==1)ne(pn,pn.text.slice(0,Ce.ch)+He[0]+Xe.text.slice(Pe.ch),kt(0)),it.remove(Ce.line+1,ni);else{ne(pn,pn.text.slice(0,Ce.ch)+He[0],kt(0)),ne(Xe,Fn+Xe.text.slice(Pe.ch),Dn);var Di=ge(1,He.length-1);ni>1&&it.remove(Ce.line+1,ni-1),it.insert(Ce.line+1,Di)}hi(it,"change",it,lt)}function Ll(it,lt,wt){function St(kt,ne,ge){if(kt.linked)for(var Ce=0;Ce<kt.linked.length;++Ce){var Pe=kt.linked[Ce];if(Pe.doc!=ne){var He=ge&&Pe.sharedHist;wt&&!He||(lt(Pe.doc,He),St(Pe.doc,kt,He))}}}St(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,dr(it),Rr(it),_c(it),it.options.lineWrapping||kr(it),it.options.mode=lt.modeOption,Io(it)}function _c(it){(it.doc.direction=="rtl"?we:Dt)(it.display.lineDiv,"CodeMirror-rtl")}function tv(it){to(it,function(){_c(it),Io(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 wt={from:on(lt.from),to:Bu(lt),text:Pn(it,lt.from,lt.to)};return Ru(it,wt,lt.from.line,lt.to.line+1),Ll(it,function(St){return Ru(St,wt,lt.from.line,lt.to.line+1)},!0),wt}function cc(it){for(;it.length;){var lt=ke(it);if(lt.ranges)it.pop();else break}}function Jc(it,lt){if(lt)return cc(it.done),ke(it.done);if(it.done.length&&!ke(it.done).ranges)return ke(it.done);if(it.done.length>1&&!it.done[it.done.length-2].ranges)return it.done.pop(),ke(it.done)}function Qc(it,lt,wt,St){var kt=it.history;kt.undone.length=0;var ne=+new Date,ge,Ce;if((kt.lastOp==St||kt.lastOrigin==lt.origin&<.origin&&(lt.origin.charAt(0)=="+"&&kt.lastModTime>ne-(it.cm?it.cm.options.historyEventDelay:500)||lt.origin.charAt(0)=="*"))&&(ge=Jc(kt,kt.lastOp==St)))Ce=ke(ge.changes),cn(lt.from,lt.to)==0&&cn(lt.from,Ce.to)==0?Ce.to=Bu(lt):ge.changes.push(Xd(it,lt));else{var Pe=ke(kt.done);for((!Pe||!Pe.ranges)&&dc(it.sel,kt.done),ge={changes:[Xd(it,lt)],generation:kt.generation},kt.done.push(ge);kt.done.length>kt.undoDepth;)kt.done.shift(),kt.done[0].ranges||kt.done.shift()}kt.done.push(wt),kt.generation=++kt.maxGeneration,kt.lastModTime=kt.lastSelTime=ne,kt.lastOp=kt.lastSelOp=St,kt.lastOrigin=kt.lastSelOrigin=lt.origin,Ce||Le(it,"historyAdded")}function og(it,lt,wt,St){var kt=lt.charAt(0);return kt=="*"||kt=="+"&&wt.ranges.length==St.ranges.length&&wt.somethingSelected()==St.somethingSelected()&&new Date-it.history.lastSelTime<=(it.cm?it.cm.options.historyEventDelay:500)}function qc(it,lt,wt,St){var kt=it.history,ne=St&&St.origin;wt==kt.lastSelOp||ne&&kt.lastSelOrigin==ne&&(kt.lastModTime==kt.lastSelTime&&kt.lastOrigin==ne||og(it,ne,ke(kt.done),lt))?kt.done[kt.done.length-1]=lt:dc(lt,kt.done),kt.lastSelTime=+new Date,kt.lastSelOrigin=ne,kt.lastSelOp=wt,St&&St.clearRedo!==!1&&cc(kt.undone)}function dc(it,lt){var wt=ke(lt);wt&&wt.ranges&&wt.equals(it)||lt.push(it)}function Ru(it,lt,wt,St){var kt=lt["spans_"+it.id],ne=0;it.iter(Math.max(it.first,wt),Math.min(it.first+it.size,St),function(ge){ge.markedSpans&&((kt||(kt=lt["spans_"+it.id]={}))[ne]=ge.markedSpans),++ne})}function ra(it){if(!it)return null;for(var lt,wt=0;wt<it.length;++wt)it[wt].marker.explicitlyCleared?lt||(lt=it.slice(0,wt)):lt&<.push(it[wt]);return lt?lt.length?lt:null:it}function zl(it,lt){var wt=lt["spans_"+it.id];if(!wt)return null;for(var St=[],kt=0;kt<lt.text.length;++kt)St.push(ra(wt[kt]));return St}function Yd(it,lt){var wt=zl(it,lt),St=vi(it,lt);if(!wt)return St;if(!St)return wt;for(var kt=0;kt<wt.length;++kt){var ne=wt[kt],ge=St[kt];if(ne&&ge)t:for(var Ce=0;Ce<ge.length;++Ce){for(var Pe=ge[Ce],He=0;He<ne.length;++He)if(ne[He].marker==Pe.marker)continue t;ne.push(Pe)}else ge&&(wt[kt]=ge)}return wt}function hu(it,lt,wt){for(var St=[],kt=0;kt<it.length;++kt){var ne=it[kt];if(ne.ranges){St.push(wt?tl.prototype.deepCopy.call(ne):ne);continue}var ge=ne.changes,Ce=[];St.push({changes:Ce});for(var Pe=0;Pe<ge.length;++Pe){var He=ge[Pe],pn=void 0;if(Ce.push({from:He.from,to:He.to,text:He.text}),lt)for(var Xe in He)(pn=Xe.match(/^spans_(\d+)$/))&&ee(lt,Number(pn[1]))>-1&&(ke(Ce)[Xe]=He[Xe],delete He[Xe])}}return St}function _d(it,lt,wt,St){if(St){var kt=it.anchor;if(wt){var ne=cn(lt,kt)<0;ne!=cn(wt,kt)<0?(kt=lt,lt=wt):ne!=cn(lt,wt)<0&&(lt=wt)}return new ho(kt,lt)}else return new ho(wt||lt,lt)}function Jd(it,lt,wt,St,kt){kt==null&&(kt=it.cm&&(it.cm.display.shift||it.extend)),Us(it,new tl([_d(it.sel.primary(),lt,wt,kt)],0),St)}function Wp(it,lt,wt){for(var St=[],kt=it.cm&&(it.cm.display.shift||it.extend),ne=0;ne<it.sel.ranges.length;ne++)St[ne]=_d(it.sel.ranges[ne],lt[ne],null,kt);var ge=dl(it.cm,St,it.sel.primIndex);Us(it,ge,wt)}function ju(it,lt,wt,St){var kt=it.sel.ranges.slice(0);kt[lt]=wt,Us(it,dl(it.cm,kt,it.sel.primIndex),St)}function Eh(it,lt,wt,St){Us(it,uu(lt,wt),St)}function Up(it,lt,wt){var St={ranges:lt.ranges,update:function(kt){this.ranges=[];for(var ne=0;ne<kt.length;ne++)this.ranges[ne]=new ho(yn(it,kt[ne].anchor),yn(it,kt[ne].head))},origin:wt&&wt.origin};return Le(it,"beforeSelectionChange",it,St),it.cm&&Le(it.cm,"beforeSelectionChange",it.cm,St),St.ranges!=lt.ranges?dl(it.cm,St.ranges,St.ranges.length-1):lt}function Qd(it,lt,wt){var St=it.history.done,kt=ke(St);kt&&kt.ranges?(St[St.length-1]=lt,Lh(it,lt,wt)):Us(it,lt,wt)}function Us(it,lt,wt){Lh(it,lt,wt),qc(it,it.sel,it.cm?it.cm.curOp.id:NaN,wt)}function Lh(it,lt,wt){(wn(it,"beforeSelectionChange")||it.cm&&wn(it.cm,"beforeSelectionChange"))&&(lt=Up(it,lt,wt));var St=wt&&wt.bias||(cn(lt.primary().head,it.sel.primary().head)<0?-1:1);sg(it,td(it,lt,St,!0)),!(wt&&wt.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)),hi(it,"cursorActivity",it))}function $c(it){sg(it,td(it,it.sel,null,!1))}function td(it,lt,wt,St){for(var kt,ne=0;ne<lt.ranges.length;ne++){var ge=lt.ranges[ne],Ce=lt.ranges.length==it.sel.ranges.length&&it.sel.ranges[ne],Pe=ed(it,ge.anchor,Ce&&Ce.anchor,wt,St),He=ed(it,ge.head,Ce&&Ce.head,wt,St);(kt||Pe!=ge.anchor||He!=ge.head)&&(kt||(kt=lt.ranges.slice(0,ne)),kt[ne]=new ho(Pe,He))}return kt?dl(it.cm,kt,lt.primIndex):lt}function cu(it,lt,wt,St,kt){var ne=gn(it,lt.line);if(ne.markedSpans)for(var ge=0;ge<ne.markedSpans.length;++ge){var Ce=ne.markedSpans[ge],Pe=Ce.marker,He="selectLeft"in Pe?!Pe.selectLeft:Pe.inclusiveLeft,pn="selectRight"in Pe?!Pe.selectRight:Pe.inclusiveRight;if((Ce.from==null||(He?Ce.from<=lt.ch:Ce.from<lt.ch))&&(Ce.to==null||(pn?Ce.to>=lt.ch:Ce.to>lt.ch))){if(kt&&(Le(Pe,"beforeCursorEnter"),Pe.explicitlyCleared))if(ne.markedSpans){--ge;continue}else break;if(!Pe.atomic)continue;if(wt){var Xe=Pe.find(St<0?1:-1),Fn=void 0;if((St<0?pn:He)&&(Xe=ag(it,Xe,-St,Xe&&Xe.line==lt.line?ne:null)),Xe&&Xe.line==lt.line&&(Fn=cn(Xe,wt))&&(St<0?Fn<0:Fn>0))return cu(it,Xe,lt,St,kt)}var Dn=Pe.find(St<0?-1:1);return(St<0?He:pn)&&(Dn=ag(it,Dn,St,Dn.line==lt.line?ne:null)),Dn?cu(it,Dn,lt,St,kt):null}}return lt}function ed(it,lt,wt,St,kt){var ne=St||1,ge=cu(it,lt,wt,ne,kt)||!kt&&cu(it,lt,wt,ne,!0)||cu(it,lt,wt,-ne,kt)||!kt&&cu(it,lt,wt,-ne,!0);return ge||(it.cantEdit=!0,Ke(it.first,0))}function ag(it,lt,wt,St){return wt<0&<.ch==0?lt.line>it.first?yn(it,Ke(lt.line-1)):null:wt>0&<.ch==(St||gn(it,lt.line)).text.length?lt.line<it.first+it.size-1?Ke(lt.line+1,0):null:new Ke(lt.line,lt.ch+wt)}function es(it){it.setSelection(Ke(it.firstLine(),0),Ke(it.lastLine()),se)}function nd(it,lt,wt){var St={canceled:!1,from:lt.from,to:lt.to,text:lt.text,origin:lt.origin,cancel:function(){return St.canceled=!0}};return wt&&(St.update=function(kt,ne,ge,Ce){kt&&(St.from=yn(it,kt)),ne&&(St.to=yn(it,ne)),ge&&(St.text=ge),Ce!==void 0&&(St.origin=Ce)}),Le(it,"beforeChange",it,St),it.cm&&Le(it.cm,"beforeChange",it.cm,St),St.canceled?(it.cm&&(it.cm.curOp.updateInput=2),null):{from:St.from,to:St.to,text:St.text,origin:St.origin}}function zu(it,lt,wt){if(it.cm){if(!it.cm.curOp)return cs(it.cm,zu)(it,lt,wt);if(it.cm.state.suppressEdits)return}if(!((wn(it,"beforeChange")||it.cm&&wn(it.cm,"beforeChange"))&&(lt=nd(it,lt,!0),!lt))){var St=Fi&&!wt&&Zi(it,lt.from,lt.to);if(St)for(var kt=St.length-1;kt>=0;--kt)Ah(it,{from:St[kt].from,to:St[kt].to,text:kt?[""]:lt.text,origin:lt.origin});else Ah(it,lt)}}function Ah(it,lt){if(!(lt.text.length==1&<.text[0]==""&&cn(lt.from,lt.to)==0)){var wt=Zc(it,lt);Qc(it,lt,wt,it.cm?it.cm.curOp.id:NaN),fc(it,lt,wt,vi(it,lt));var St=[];Ll(it,function(kt,ne){!ne&&ee(St,kt.history)==-1&&(ug(kt.history,lt),St.push(kt.history)),fc(kt,lt,null,vi(kt,lt))})}}function id(it,lt,wt){var St=it.cm&&it.cm.state.suppressEdits;if(!(St&&!wt)){for(var kt=it.history,ne,ge=it.sel,Ce=lt=="undo"?kt.done:kt.undone,Pe=lt=="undo"?kt.undone:kt.done,He=0;He<Ce.length&&(ne=Ce[He],!(wt?ne.ranges&&!ne.equals(it.sel):!ne.ranges));He++);if(He!=Ce.length){for(kt.lastOrigin=kt.lastSelOrigin=null;;)if(ne=Ce.pop(),ne.ranges){if(dc(ne,Pe),wt&&!ne.equals(it.sel)){Us(it,ne,{clearRedo:!1});return}ge=ne}else if(St){Ce.push(ne);return}else break;var pn=[];dc(ge,Pe),Pe.push({changes:pn,generation:kt.generation}),kt.generation=ne.generation||++kt.maxGeneration;for(var Xe=wn(it,"beforeChange")||it.cm&&wn(it.cm,"beforeChange"),Fn=function(ai){var wi=ne.changes[ai];if(wi.origin=lt,Xe&&!nd(it,wi,!1))return Ce.length=0,{};pn.push(Xd(it,wi));var Di=ai?Zc(it,wi):ke(Ce);fc(it,wi,Di,Yd(it,wi)),!ai&&it.cm&&it.cm.scrollIntoView({from:wi.from,to:Bu(wi)});var er=[];Ll(it,function(Ui,sr){!sr&&ee(er,Ui.history)==-1&&(ug(Ui.history,wi),er.push(Ui.history)),fc(Ui,wi,null,Yd(Ui,wi))})},Dn=ne.changes.length-1;Dn>=0;--Dn){var ni=Fn(Dn);if(ni)return ni.v}}}}function lg(it,lt){if(lt!=0&&(it.first+=lt,it.sel=new tl(Ie(it.sel.ranges,function(kt){return new ho(Ke(kt.anchor.line+lt,kt.anchor.ch),Ke(kt.head.line+lt,kt.head.ch))}),it.sel.primIndex),it.cm)){Io(it.cm,it.first,it.first-lt,lt);for(var wt=it.cm.display,St=wt.viewFrom;St<wt.viewTo;St++)Br(it.cm,St,"gutter")}}function fc(it,lt,wt,St){if(it.cm&&!it.cm.curOp)return cs(it.cm,fc)(it,lt,wt,St);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 kt=lt.text.length-1-(it.first-lt.from.line);lg(it,kt),lt={from:Ke(it.first,0),to:Ke(lt.to.line+kt,lt.to.ch),text:[ke(lt.text)],origin:lt.origin}}var ne=it.lastLine();lt.to.line>ne&&(lt={from:lt.from,to:Ke(ne,gn(it,ne).text.length),text:[lt.text[0]],origin:lt.origin}),lt.removed=Pn(it,lt.from,lt.to),wt||(wt=Zc(it,lt)),it.cm?Gp(it.cm,lt,St):Vd(it,lt,St),Lh(it,wt,se),it.cantEdit&&ed(it,Ke(it.firstLine(),0))&&(it.cantEdit=!1)}}function Gp(it,lt,wt){var St=it.doc,kt=it.display,ne=lt.from,ge=lt.to,Ce=!1,Pe=ne.line;it.options.lineWrapping||(Pe=Me(_i(gn(St,ne.line))),St.iter(Pe,ge.line+1,function(Dn){if(Dn==kt.maxLine)return Ce=!0,!0})),St.sel.contains(lt.from,lt.to)>-1&&hn(it),Vd(St,lt,wt,Oo(it)),it.options.lineWrapping||(St.iter(Pe,ne.line+lt.text.length,function(Dn){var ni=Qr(Dn);ni>kt.maxLineLength&&(kt.maxLine=Dn,kt.maxLineLength=ni,kt.maxLineChanged=!0,Ce=!1)}),Ce&&(it.curOp.updateMaxLine=!0)),oi(St,ne.line),lc(it,400);var He=lt.text.length-(ge.line-ne.line)-1;lt.full?Io(it):ne.line==ge.line&<.text.length==1&&!rg(it.doc,lt)?Br(it,ne.line,"text"):Io(it,ne.line,ge.line+1,He);var pn=wn(it,"changes"),Xe=wn(it,"change");if(Xe||pn){var Fn={from:ne,to:ge,text:lt.text,removed:lt.removed,origin:lt.origin};Xe&&hi(it,"change",it,Fn),pn&&(it.curOp.changeObjs||(it.curOp.changeObjs=[])).push(Fn)}it.display.selForContextMenu=null}function Mh(it,lt,wt,St,kt){var ne;St||(St=wt),cn(St,wt)<0&&(ne=[St,wt],wt=ne[0],St=ne[1]),typeof lt=="string"&&(lt=it.splitLines(lt)),zu(it,{from:wt,to:St,text:lt,origin:kt})}function el(it,lt,wt,St){wt<it.line?it.line+=St:lt<it.line&&(it.line=lt,it.ch=0)}function Kp(it,lt,wt,St){for(var kt=0;kt<it.length;++kt){var ne=it[kt],ge=!0;if(ne.ranges){ne.copied||(ne=it[kt]=ne.deepCopy(),ne.copied=!0);for(var Ce=0;Ce<ne.ranges.length;Ce++)el(ne.ranges[Ce].anchor,lt,wt,St),el(ne.ranges[Ce].head,lt,wt,St);continue}for(var Pe=0;Pe<ne.changes.length;++Pe){var He=ne.changes[Pe];if(wt<He.from.line)He.from=Ke(He.from.line+St,He.from.ch),He.to=Ke(He.to.line+St,He.to.ch);else if(lt<=He.to.line){ge=!1;break}}ge||(it.splice(0,kt+1),kt=0)}}function ug(it,lt){var wt=lt.from.line,St=lt.to.line,kt=lt.text.length-(St-wt)-1;Kp(it.done,wt,St,kt),Kp(it.undone,wt,St,kt)}function Th(it,lt,wt,St){var kt=lt,ne=lt;return typeof lt=="number"?ne=gn(it,xn(it,lt)):kt=Me(lt),kt==null?null:(St(ne,kt)&&it.cm&&Br(it.cm,kt,wt),ne)}function gc(it){this.lines=it,this.parent=null;for(var lt=0,wt=0;wt<it.length;++wt)it[wt].parent=this,lt+=it[wt].height;this.height=lt}gc.prototype={chunkSize:function(){return this.lines.length},removeInner:function(it,lt){for(var wt=it,St=it+lt;wt<St;++wt){var kt=this.lines[wt];this.height-=kt.height,Wo(kt),hi(kt,"delete")}this.lines.splice(it,lt)},collapse:function(it){it.push.apply(it,this.lines)},insertInner:function(it,lt,wt){this.height+=wt,this.lines=this.lines.slice(0,it).concat(lt).concat(this.lines.slice(it));for(var St=0;St<lt.length;++St)lt[St].parent=this},iterN:function(it,lt,wt){for(var St=it+lt;it<St;++it)if(wt(this.lines[it]))return!0}};function Vo(it){this.children=it;for(var lt=0,wt=0,St=0;St<it.length;++St){var kt=it[St];lt+=kt.chunkSize(),wt+=kt.height,kt.parent=this}this.size=lt,this.height=wt,this.parent=null}Vo.prototype={chunkSize:function(){return this.size},removeInner:function(it,lt){this.size-=lt;for(var wt=0;wt<this.children.length;++wt){var St=this.children[wt],kt=St.chunkSize();if(it<kt){var ne=Math.min(lt,kt-it),ge=St.height;if(St.removeInner(it,ne),this.height-=ge-St.height,kt==ne&&(this.children.splice(wt--,1),St.parent=null),(lt-=ne)==0)break;it=0}else it-=kt}if(this.size-lt<25&&(this.children.length>1||!(this.children[0]instanceof gc))){var Ce=[];this.collapse(Ce),this.children=[new gc(Ce)],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,wt){this.size+=lt.length,this.height+=wt;for(var St=0;St<this.children.length;++St){var kt=this.children[St],ne=kt.chunkSize();if(it<=ne){if(kt.insertInner(it,lt,wt),kt.lines&&kt.lines.length>50){for(var ge=kt.lines.length%25+25,Ce=ge;Ce<kt.lines.length;){var Pe=new gc(kt.lines.slice(Ce,Ce+=25));kt.height-=Pe.height,this.children.splice(++St,0,Pe),Pe.parent=this}kt.lines=kt.lines.slice(0,ge),this.maybeSpill()}break}it-=ne}},maybeSpill:function(){if(!(this.children.length<=10)){var it=this;do{var lt=it.children.splice(it.children.length-5,5),wt=new Vo(lt);if(it.parent){it.size-=wt.size,it.height-=wt.height;var kt=ee(it.parent.children,it);it.parent.children.splice(kt+1,0,wt)}else{var St=new Vo(it.children);St.parent=it,it.children=[St,wt],it=St}wt.parent=it.parent}while(it.children.length>10);it.parent.maybeSpill()}},iterN:function(it,lt,wt){for(var St=0;St<this.children.length;++St){var kt=this.children[St],ne=kt.chunkSize();if(it<ne){var ge=Math.min(lt,ne-it);if(kt.iterN(it,ge,wt))return!0;if((lt-=ge)==0)break;it=0}else it-=ne}}};var du=function(it,lt,wt){if(wt)for(var St in wt)wt.hasOwnProperty(St)&&(this[St]=wt[St]);this.doc=it,this.node=lt};du.prototype.clear=function(){var it=this.doc.cm,lt=this.line.widgets,wt=this.line,St=Me(wt);if(!(St==null||!lt)){for(var kt=0;kt<lt.length;++kt)lt[kt]==this&<.splice(kt--,1);lt.length||(wt.widgets=null);var ne=Qs(this);mn(wt,Math.max(0,wt.height-ne)),it&&(to(it,function(){Vp(it,wt,-ne),Br(it,St,"widget")}),hi(it,"lineWidgetCleared",it,this,St))}},du.prototype.changed=function(){var it=this,lt=this.height,wt=this.doc.cm,St=this.line;this.height=null;var kt=Qs(this)-lt;kt&&(zn(this.doc,St)||mn(St,St.height+kt),wt&&to(wt,function(){wt.curOp.forceUpdate=!0,Vp(wt,St,kt),hi(wt,"lineWidgetChanged",wt,it,Me(St))}))},kn(du);function Vp(it,lt,wt){Tr(lt)<(it.curOp&&it.curOp.scrollTop||it.doc.scrollTop)&&Hd(it,wt)}function qd(it,lt,wt,St){var kt=new du(it,wt,St),ne=it.cm;return ne&&kt.noHScroll&&(ne.display.alignWidgets=!0),Th(it,lt,"widget",function(ge){var Ce=ge.widgets||(ge.widgets=[]);if(kt.insertAt==null?Ce.push(kt):Ce.splice(Math.min(Ce.length-1,Math.max(0,kt.insertAt)),0,kt),kt.line=ge,ne&&!zn(it,ge)){var Pe=Tr(ge)<it.scrollTop;mn(ge,ge.height+Qs(kt)),Pe&&Hd(ne,kt.height),ne.curOp.forceUpdate=!0}return!0}),ne&&hi(ne,"lineWidgetAdded",ne,kt,typeof lt=="number"?lt:Me(lt)),kt}var Zp=0,un=function(it,lt){this.lines=[],this.type=lt,this.doc=it,this.id=++Zp};un.prototype.clear=function(){if(!this.explicitlyCleared){var it=this.doc.cm,lt=it&&!it.curOp;if(lt&&Tu(it),wn(this,"clear")){var wt=this.find();wt&&hi(this,"clear",wt.from,wt.to)}for(var St=null,kt=null,ne=0;ne<this.lines.length;++ne){var ge=this.lines[ne],Ce=wr(ge.markedSpans,this);it&&!this.collapsed?Br(it,Me(ge),"text"):it&&(Ce.to!=null&&(kt=Me(ge)),Ce.from!=null&&(St=Me(ge))),ge.markedSpans=Hi(ge.markedSpans,Ce),Ce.from==null&&this.collapsed&&!zn(this.doc,ge)&&it&&mn(ge,su(it.display))}if(it&&this.collapsed&&!it.options.lineWrapping)for(var Pe=0;Pe<this.lines.length;++Pe){var He=_i(this.lines[Pe]),pn=Qr(He);pn>it.display.maxLineLength&&(it.display.maxLine=He,it.display.maxLineLength=pn,it.display.maxLineChanged=!0)}St!=null&&it&&this.collapsed&&Io(it,St,kt+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,it&&$c(it.doc)),it&&hi(it,"markerCleared",it,this,St,kt),lt&&ku(it),this.parent&&this.parent.clear()}},un.prototype.find=function(it,lt){it==null&&this.type=="bookmark"&&(it=1);for(var wt,St,kt=0;kt<this.lines.length;++kt){var ne=this.lines[kt],ge=wr(ne.markedSpans,this);if(ge.from!=null&&(wt=Ke(lt?ne:Me(ne),ge.from),it==-1))return wt;if(ge.to!=null&&(St=Ke(lt?ne:Me(ne),ge.to),it==1))return St}return wt&&{from:wt,to:St}},un.prototype.changed=function(){var it=this,lt=this.find(-1,!0),wt=this,St=this.doc.cm;!lt||!St||to(St,function(){var kt=lt.line,ne=Me(lt.line),ge=ph(St,ne);if(ge&&(vs(ge),St.curOp.selectionChanged=St.curOp.forceUpdate=!0),St.curOp.updateMaxLine=!0,!zn(wt.doc,kt)&&wt.height!=null){var Ce=wt.height;wt.height=null;var Pe=Qs(wt)-Ce;Pe&&mn(kt,kt.height+Pe)}hi(St,"markerChanged",St,it)})},un.prototype.attachLine=function(it){if(!this.lines.length&&this.doc.cm){var lt=this.doc.cm.curOp;(!lt.maybeHiddenMarkers||ee(lt.maybeHiddenMarkers,this)==-1)&&(lt.maybeUnhiddenMarkers||(lt.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(it)},un.prototype.detachLine=function(it){if(this.lines.splice(ee(this.lines,it),1),!this.lines.length&&this.doc.cm){var lt=this.doc.cm.curOp;(lt.maybeHiddenMarkers||(lt.maybeHiddenMarkers=[])).push(this)}},kn(un);function kh(it,lt,wt,St,kt){if(St&&St.shared)return Xp(it,lt,wt,St,kt);if(it.cm&&!it.cm.curOp)return cs(it.cm,kh)(it,lt,wt,St,kt);var ne=new un(it,kt),ge=cn(lt,wt);if(St&&Ue(St,ne,!1),ge>0||ge==0&&ne.clearWhenEmpty!==!1)return ne;if(ne.replacedWith&&(ne.collapsed=!0,ne.widgetNode=$t("span",[ne.replacedWith],"CodeMirror-widget"),St.handleMouseEvents||ne.widgetNode.setAttribute("cm-ignore-events","true"),St.insertLeft&&(ne.widgetNode.insertLeft=!0)),ne.collapsed){if(yr(it,lt.line,lt,wt,ne)||lt.line!=wt.line&&yr(it,wt.line,lt,wt,ne))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ln()}ne.addToHistory&&Qc(it,{from:lt,to:wt,origin:"markText"},it.sel,NaN);var Ce=lt.line,Pe=it.cm,He;if(it.iter(Ce,wt.line+1,function(Xe){Pe&&ne.collapsed&&!Pe.options.lineWrapping&&_i(Xe)==Pe.display.maxLine&&(He=!0),ne.collapsed&&Ce!=lt.line&&mn(Xe,0),Or(Xe,new Bi(ne,Ce==lt.line?lt.ch:null,Ce==wt.line?wt.ch:null)),++Ce}),ne.collapsed&&it.iter(lt.line,wt.line+1,function(Xe){zn(it,Xe)&&mn(Xe,0)}),ne.clearOnEnter&&ye(ne,"beforeCursorEnter",function(){return ne.clear()}),ne.readOnly&&(nr(),(it.history.done.length||it.history.undone.length)&&it.clearHistory()),ne.collapsed&&(ne.id=++Zp,ne.atomic=!0),Pe){if(He&&(Pe.curOp.updateMaxLine=!0),ne.collapsed)Io(Pe,lt.line,wt.line+1);else if(ne.className||ne.startStyle||ne.endStyle||ne.css||ne.attributes||ne.title)for(var pn=lt.line;pn<=wt.line;pn++)Br(Pe,pn,"text");ne.atomic&&$c(Pe.doc),hi(Pe,"markerAdded",Pe,ne)}return ne}var Hl=function(it,lt){this.markers=it,this.primary=lt;for(var wt=0;wt<it.length;++wt)it[wt].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();hi(this,"clear")}},Hl.prototype.find=function(it,lt){return this.primary.find(it,lt)},kn(Hl);function Xp(it,lt,wt,St,kt){St=Ue(St),St.shared=!1;var ne=[kh(it,lt,wt,St,kt)],ge=ne[0],Ce=St.widgetNode;return Ll(it,function(Pe){Ce&&(St.widgetNode=Ce.cloneNode(!0)),ne.push(kh(Pe,yn(Pe,lt),yn(Pe,wt),St,kt));for(var He=0;He<Pe.linked.length;++He)if(Pe.linked[He].isParent)return;ge=ke(ne)}),new Hl(ne,ge)}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 wt=0;wt<lt.length;wt++){var St=lt[wt],kt=St.find(),ne=it.clipPos(kt.from),ge=it.clipPos(kt.to);if(cn(ne,ge)){var Ce=kh(it,ne,ge,St.primary,St.primary.type);St.markers.push(Ce),Ce.parent=St}}}function cg(it){for(var lt=function(St){var kt=it[St],ne=[kt.primary.doc];Ll(kt.primary.doc,function(Pe){return ne.push(Pe)});for(var ge=0;ge<kt.markers.length;ge++){var Ce=kt.markers[ge];ee(ne,Ce.doc)==-1&&(Ce.parent=null,kt.markers.splice(ge--,1))}},wt=0;wt<it.length;wt++)lt(wt)}var ev=0,Fs=function(it,lt,wt,St,kt){if(!(this instanceof Fs))return new Fs(it,lt,wt,St,kt);wt==null&&(wt=0),Vo.call(this,[new gc([new Xr("",null)])]),this.first=wt,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=wt;var ne=Ke(wt,0);this.sel=uu(ne),this.history=new hc(null),this.id=++ev,this.modeOption=lt,this.lineSep=St,this.direction=kt=="rtl"?"rtl":"ltr",this.extend=!1,typeof it=="string"&&(it=this.splitLines(it)),Vd(this,{from:ne,to:ne,text:it}),Us(this,uu(ne),se)};Fs.prototype=me(Vo.prototype,{constructor:Fs,iter:function(it,lt,wt){wt?this.iterN(it-this.first,lt-it,wt):this.iterN(this.first,this.first+this.size,it)},insert:function(it,lt){for(var wt=0,St=0;St<lt.length;++St)wt+=lt[St].height;this.insertInner(it-this.first,lt,wt)},remove:function(it,lt){this.removeInner(it-this.first,lt)},getValue:function(it){var lt=Un(this,this.first,this.first+this.size);return it===!1?lt:lt.join(it||this.lineSeparator())},setValue:xs(function(it){var lt=Ke(this.first,0),wt=this.first+this.size-1;zu(this,{from:lt,to:Ke(wt,gn(this,wt).text.length),text:this.splitLines(it),origin:"setValue",full:!0},!0),this.cm&&xh(this.cm,0,0),Us(this,uu(lt),se)}),replaceRange:function(it,lt,wt,St){lt=yn(this,lt),wt=wt?yn(this,wt):lt,Mh(this,it,lt,wt,St)},getRange:function(it,lt,wt){var St=Pn(this,yn(this,it),yn(this,lt));return wt===!1?St:St.join(wt||this.lineSeparator())},getLine:function(it){var lt=this.getLineHandle(it);return lt&<.text},getLineHandle:function(it){if(fn(this,it))return gn(this,it)},getLineNumber:function(it){return Me(it)},getLineHandleVisualStart:function(it){return typeof it=="number"&&(it=gn(this,it)),_i(it)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(it){return yn(this,it)},getCursor:function(it){var lt=this.sel.primary(),wt;return it==null||it=="head"?wt=lt.head:it=="anchor"?wt=lt.anchor:it=="end"||it=="to"||it===!1?wt=lt.to():wt=lt.from(),wt},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:xs(function(it,lt,wt){Eh(this,yn(this,typeof it=="number"?Ke(it,lt||0):it),null,wt)}),setSelection:xs(function(it,lt,wt){Eh(this,yn(this,it),yn(this,lt||it),wt)}),extendSelection:xs(function(it,lt,wt){Jd(this,yn(this,it),lt&&yn(this,lt),wt)}),extendSelections:xs(function(it,lt){Wp(this,On(this,it),lt)}),extendSelectionsBy:xs(function(it,lt){var wt=Ie(this.sel.ranges,it);Wp(this,On(this,wt),lt)}),setSelections:xs(function(it,lt,wt){if(it.length){for(var St=[],kt=0;kt<it.length;kt++)St[kt]=new ho(yn(this,it[kt].anchor),yn(this,it[kt].head));lt==null&&(lt=Math.min(it.length-1,this.sel.primIndex)),Us(this,dl(this.cm,St,lt),wt)}}),addSelection:xs(function(it,lt,wt){var St=this.sel.ranges.slice(0);St.push(new ho(yn(this,it),yn(this,lt||it))),Us(this,dl(this.cm,St,St.length-1),wt)}),getSelection:function(it){for(var lt=this.sel.ranges,wt,St=0;St<lt.length;St++){var kt=Pn(this,lt[St].from(),lt[St].to());wt=wt?wt.concat(kt):kt}return it===!1?wt:wt.join(it||this.lineSeparator())},getSelections:function(it){for(var lt=[],wt=this.sel.ranges,St=0;St<wt.length;St++){var kt=Pn(this,wt[St].from(),wt[St].to());it!==!1&&(kt=kt.join(it||this.lineSeparator())),lt[St]=kt}return lt},replaceSelection:function(it,lt,wt){for(var St=[],kt=0;kt<this.sel.ranges.length;kt++)St[kt]=it;this.replaceSelections(St,lt,wt||"+input")},replaceSelections:xs(function(it,lt,wt){for(var St=[],kt=this.sel,ne=0;ne<kt.ranges.length;ne++){var ge=kt.ranges[ne];St[ne]={from:ge.from(),to:ge.to(),text:this.splitLines(it[ne]),origin:wt}}for(var Ce=lt&<!="end"&&Xc(this,St,lt),Pe=St.length-1;Pe>=0;Pe--)zu(this,St[Pe]);Ce?Qd(this,Ce):this.cm&&au(this.cm)}),undo:xs(function(){id(this,"undo")}),redo:xs(function(){id(this,"redo")}),undoSelection:xs(function(){id(this,"undo",!0)}),redoSelection:xs(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,wt=0,St=0;St<it.done.length;St++)it.done[St].ranges||++lt;for(var kt=0;kt<it.undone.length;kt++)it.undone[kt].ranges||++wt;return{undo:lt,redo:wt}},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:xs(function(it,lt,wt){return Th(this,it,"gutter",function(St){var kt=St.gutterMarkers||(St.gutterMarkers={});return kt[lt]=wt,!wt&&he(kt)&&(St.gutterMarkers=null),!0})}),clearGutter:xs(function(it){var lt=this;this.iter(function(wt){wt.gutterMarkers&&wt.gutterMarkers[it]&&Th(lt,wt,"gutter",function(){return wt.gutterMarkers[it]=null,he(wt.gutterMarkers)&&(wt.gutterMarkers=null),!0})})}),lineInfo:function(it){var lt;if(typeof it=="number"){if(!fn(this,it)||(lt=it,it=gn(this,it),!it))return null}else if(lt=Me(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:xs(function(it,lt,wt){return Th(this,it,lt=="gutter"?"gutter":"class",function(St){var kt=lt=="text"?"textClass":lt=="background"?"bgClass":lt=="gutter"?"gutterClass":"wrapClass";if(!St[kt])St[kt]=wt;else{if(Ct(wt).test(St[kt]))return!1;St[kt]+=" "+wt}return!0})}),removeLineClass:xs(function(it,lt,wt){return Th(this,it,lt=="gutter"?"gutter":"class",function(St){var kt=lt=="text"?"textClass":lt=="background"?"bgClass":lt=="gutter"?"gutterClass":"wrapClass",ne=St[kt];if(ne)if(wt==null)St[kt]=null;else{var ge=ne.match(Ct(wt));if(!ge)return!1;var Ce=ge.index+ge[0].length;St[kt]=ne.slice(0,ge.index)+(!ge.index||Ce==ne.length?"":" ")+ne.slice(Ce)||null}else return!1;return!0})}),addLineWidget:xs(function(it,lt,wt){return qd(this,it,lt,wt)}),removeLineWidget:function(it){it.clear()},markText:function(it,lt,wt){return kh(this,yn(this,it),yn(this,lt),wt,wt&&wt.type||"range")},setBookmark:function(it,lt){var wt={replacedWith:lt&&(lt.nodeType==null?lt.widget:lt),insertLeft:lt&<.insertLeft,clearWhenEmpty:!1,shared:lt&<.shared,handleMouseEvents:lt&<.handleMouseEvents};return it=yn(this,it),kh(this,it,it,wt,"bookmark")},findMarksAt:function(it){it=yn(this,it);var lt=[],wt=gn(this,it.line).markedSpans;if(wt)for(var St=0;St<wt.length;++St){var kt=wt[St];(kt.from==null||kt.from<=it.ch)&&(kt.to==null||kt.to>=it.ch)&<.push(kt.marker.parent||kt.marker)}return lt},findMarks:function(it,lt,wt){it=yn(this,it),lt=yn(this,lt);var St=[],kt=it.line;return this.iter(it.line,lt.line+1,function(ne){var ge=ne.markedSpans;if(ge)for(var Ce=0;Ce<ge.length;Ce++){var Pe=ge[Ce];!(Pe.to!=null&&kt==it.line&&it.ch>=Pe.to||Pe.from==null&&kt!=it.line||Pe.from!=null&&kt==lt.line&&Pe.from>=lt.ch)&&(!wt||wt(Pe.marker))&&St.push(Pe.marker.parent||Pe.marker)}++kt}),St},getAllMarks:function(){var it=[];return this.iter(function(lt){var wt=lt.markedSpans;if(wt)for(var St=0;St<wt.length;++St)wt[St].from!=null&&it.push(wt[St].marker)}),it},posFromIndex:function(it){var lt,wt=this.first,St=this.lineSeparator().length;return this.iter(function(kt){var ne=kt.text.length+St;if(ne>it)return lt=it,!0;it-=ne,++wt}),yn(this,Ke(wt,lt))},indexFromPos:function(it){it=yn(this,it);var lt=it.ch;if(it.line<this.first||it.ch<0)return 0;var wt=this.lineSeparator().length;return this.iter(this.first,it.line,function(St){lt+=St.text.length+wt}),lt},copy:function(it){var lt=new Fs(Un(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,wt=this.first+this.size;it.from!=null&&it.from>lt&&(lt=it.from),it.to!=null&&it.to<wt&&(wt=it.to);var St=new Fs(Un(this,lt,wt),it.mode||this.modeOption,lt,this.lineSep,this.direction);return it.sharedHist&&(St.history=this.history),(this.linked||(this.linked=[])).push({doc:St,sharedHist:it.sharedHist}),St.linked=[{doc:this,isParent:!0,sharedHist:it.sharedHist}],Yp(St,hg(this)),St},unlinkDoc:function(it){if(it instanceof qr&&(it=it.doc),this.linked)for(var lt=0;lt<this.linked.length;++lt){var wt=this.linked[lt];if(wt.doc==it){this.linked.splice(lt,1),it.unlinkDoc(this),cg(hg(this));break}}if(it.history==this.history){var St=[it.id];Ll(it,function(kt){return St.push(kt.id)},!0),it.history=new hc(null),it.history.done=hu(this.history.done,St),it.history.undone=hu(this.history.undone,St)}},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:xs(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))})}),Fs.prototype.eachLine=Fs.prototype.iter;var rd=0;function dg(it){var lt=this;if(Qp(lt),!(Re(lt,it)||$s(lt.display,it))){Rn(it),Nt&&(rd=+new Date);var wt=na(lt,it,!0),St=it.dataTransfer.files;if(!(!wt||lt.isReadOnly()))if(St&&St.length&&window.FileReader&&window.File)for(var kt=St.length,ne=Array(kt),ge=0,Ce=function(){++ge==kt&&cs(lt,function(){wt=yn(lt.doc,wt);var Dn={from:wt,to:wt,text:lt.doc.splitLines(ne.filter(function(ni){return ni!=null}).join(lt.doc.lineSeparator())),origin:"paste"};zu(lt.doc,Dn),Qd(lt.doc,uu(yn(lt.doc,wt),yn(lt.doc,Bu(Dn))))})()},Pe=function(Dn,ni){if(lt.options.allowDropFileTypes&&ee(lt.options.allowDropFileTypes,Dn.type)==-1){Ce();return}var ai=new FileReader;ai.onerror=function(){return Ce()},ai.onload=function(){var wi=ai.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(wi)){Ce();return}ne[ni]=wi,Ce()},ai.readAsText(Dn)},He=0;He<St.length;He++)Pe(St[He],He);else{if(lt.state.draggingText&<.doc.sel.contains(wt)>-1){lt.state.draggingText(it),setTimeout(function(){return lt.display.input.focus()},20);return}try{var pn=it.dataTransfer.getData("Text");if(pn){var Xe;if(lt.state.draggingText&&!lt.state.draggingText.copy&&(Xe=lt.listSelections()),Lh(lt.doc,uu(wt,wt)),Xe)for(var Fn=0;Fn<Xe.length;++Fn)Mh(lt.doc,"",Xe[Fn].anchor,Xe[Fn].head,"drag");lt.replaceSelection(pn,"around","paste"),lt.display.input.focus()}}catch(Dn){}}}}function _p(it,lt){if(Nt&&(!it.state.draggingText||+new Date-rd<100)){li(lt);return}if(!(Re(it,lt)||$s(it.display,lt))&&(lt.dataTransfer.setData("Text",it.getSelection()),lt.dataTransfer.effectAllowed="copyMove",lt.dataTransfer.setDragImage&&!bt)){var wt=Qt("img",null,null,"position: fixed; left: 0; top: 0;");wt.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",At&&(wt.width=wt.height=1,it.display.wrapper.appendChild(wt),wt._top=wt.offsetTop),lt.dataTransfer.setDragImage(wt,0,0),At&&wt.parentNode.removeChild(wt)}}function Jp(it,lt){var wt=na(it,lt);if(wt){var St=document.createDocumentFragment();Zr(it,wt,St),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,St)}}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"),wt=[],St=0;St<lt.length;St++){var kt=lt[St].CodeMirror;kt&&wt.push(kt)}wt.length&&wt[0].operation(function(){for(var ne=0;ne<wt.length;ne++)it(wt[ne])})}}var fg=!1;function Ka(){fg||(pc(),fg=!0)}function pc(){var it;ye(window,"resize",function(){it==null&&(it=setTimeout(function(){it=null,qp(gg)},100))}),ye(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 Aa={};Aa.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"},Aa.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"},Aa.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"},Aa.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"]},Aa.default=st?Aa.macDefault:Aa.pcDefault;function pg(it){var lt=it.split(/-(?!$)/);it=lt[lt.length-1];for(var wt,St,kt,ne,ge=0;ge<lt.length-1;ge++){var Ce=lt[ge];if(/^(cmd|meta|m)$/i.test(Ce))ne=!0;else if(/^a(lt)?$/i.test(Ce))wt=!0;else if(/^(c|ctrl|control)$/i.test(Ce))St=!0;else if(/^s(hift)?$/i.test(Ce))kt=!0;else throw new Error("Unrecognized modifier name: "+Ce)}return wt&&(it="Alt-"+it),St&&(it="Ctrl-"+it),ne&&(it="Cmd-"+it),kt&&(it="Shift-"+it),it}function mg(it){var lt={};for(var wt in it)if(it.hasOwnProperty(wt)){var St=it[wt];if(/^(name|fallthrough|(de|at)tach)$/.test(wt))continue;if(St=="..."){delete it[wt];continue}for(var kt=Ie(wt.split(" "),pg),ne=0;ne<kt.length;ne++){var ge=void 0,Ce=void 0;ne==kt.length-1?(Ce=kt.join(" "),ge=St):(Ce=kt.slice(0,ne+1).join(" "),ge="...");var Pe=lt[Ce];if(!Pe)lt[Ce]=ge;else if(Pe!=ge)throw new Error("Inconsistent bindings for "+Ce)}delete it[wt]}for(var He in lt)it[He]=lt[He];return it}function nl(it,lt,wt,St){lt=Nh(lt);var kt=lt.call?lt.call(it,St):lt[it];if(kt===!1)return"nothing";if(kt==="...")return"multi";if(kt!=null&&wt(kt))return"handled";if(lt.fallthrough){if(Object.prototype.toString.call(lt.fallthrough)!="[object Array]")return nl(it,lt.fallthrough,wt,St);for(var ne=0;ne<lt.fallthrough.length;ne++){var ge=nl(it,lt.fallthrough[ne],wt,St);if(ge)return ge}}}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,wt){var St=it;return lt.altKey&&St!="Alt"&&(it="Alt-"+it),(pt?lt.metaKey:lt.ctrlKey)&&St!="Ctrl"&&(it="Ctrl-"+it),(pt?lt.ctrlKey:lt.metaKey)&&St!="Mod"&&(it="Cmd-"+it),!wt&<.shiftKey&&St!="Shift"&&(it="Shift-"+it),it}function $p(it,lt){if(At&&it.keyCode==34&&it.char)return!1;var wt=Wl[it.keyCode];return wt==null||it.altGraphKey?!1:(it.keyCode==3&&it.code&&(wt=it.code),vg(wt,it,lt))}function Nh(it){return typeof it=="string"?Aa[it]:it}function Ma(it,lt){for(var wt=it.doc.sel.ranges,St=[],kt=0;kt<wt.length;kt++){for(var ne=lt(wt[kt]);St.length&&cn(ne.from,ke(St).to)<=0;){var ge=St.pop();if(cn(ge.from,ne.from)<0){ne.from=ge.from;break}}St.push(ne)}to(it,function(){for(var Ce=St.length-1;Ce>=0;Ce--)Mh(it.doc,"",St[Ce].from,St[Ce].to,"+delete");au(it)})}function yg(it,lt,wt){var St=Et(it.text,lt+wt,wt);return St<0||St>it.text.length?null:St}function ns(it,lt,wt){var St=yg(it,lt.ch,wt);return St==null?null:new Ke(lt.line,St,wt<0?"after":"before")}function ad(it,lt,wt,St,kt){if(it){lt.doc.direction=="rtl"&&(kt=-kt);var ne=re(wt,lt.doc.direction);if(ne){var ge=kt<0?ke(ne):ne[0],Ce=kt<0==(ge.level==1),Pe=Ce?"after":"before",He;if(ge.level>0||lt.doc.direction=="rtl"){var pn=Rl(lt,wt);He=kt<0?wt.text.length-1:0;var Xe=za(lt,pn,He).top;He=Ht(function(Fn){return za(lt,pn,Fn).top==Xe},kt<0==(ge.level==1)?ge.from:ge.to-1,He),Pe=="before"&&(He=yg(wt,He,1))}else He=kt<0?ge.to:ge.from;return new Ke(St,He,Pe)}}return new Ke(St,kt<0?wt.text.length:0,kt<0?"before":"after")}function tf(it,lt,wt,St){var kt=re(lt,it.doc.direction);if(!kt)return ns(lt,wt,St);wt.ch>=lt.text.length?(wt.ch=lt.text.length,wt.sticky="before"):wt.ch<=0&&(wt.ch=0,wt.sticky="after");var ne=gt(kt,wt.ch,wt.sticky),ge=kt[ne];if(it.doc.direction=="ltr"&&ge.level%2==0&&(St>0?ge.to>wt.ch:ge.from<wt.ch))return ns(lt,wt,St);var Ce=function(Di,er){return yg(lt,Di instanceof Ke?Di.ch:Di,er)},Pe,He=function(Di){return it.options.lineWrapping?(Pe=Pe||Rl(it,lt),qf(it,lt,Pe,Di)):{begin:0,end:lt.text.length}},pn=He(wt.sticky=="before"?Ce(wt,-1):wt.ch);if(it.doc.direction=="rtl"||ge.level==1){var Xe=ge.level==1==St<0,Fn=Ce(wt,Xe?1:-1);if(Fn!=null&&(Xe?Fn<=ge.to&&Fn<=pn.end:Fn>=ge.from&&Fn>=pn.begin)){var Dn=Xe?"before":"after";return new Ke(wt.line,Fn,Dn)}}var ni=function(Di,er,Ui){for(var sr=function(Do,fs){return fs?new Ke(wt.line,Ce(Do,1),"before"):new Ke(wt.line,Do,"after")};Di>=0&&Di<kt.length;Di+=er){var Lr=kt[Di],Wi=er>0==(Lr.level!=1),jr=Wi?Ui.begin:Ce(Ui.end,-1);if(Lr.from<=jr&&jr<Lr.to||(jr=Wi?Lr.from:Ce(Lr.to,-1),Ui.begin<=jr&&jr<Ui.end))return sr(jr,Wi)}},ai=ni(ne+St,St,pn);if(ai)return ai;var wi=St>0?pn.end:Ce(pn.begin,-1);return wi!=null&&!(St>0&&wi==lt.text.length)&&(ai=ni(St>0?0:kt.length-1,St,He(wi)),ai)?ai:null}var Hu={selectAll:es,singleSelection:function(it){return it.setSelection(it.getCursor("anchor"),it.getCursor("head"),se)},killLine:function(it){return Ma(it,function(lt){if(lt.empty()){var wt=gn(it.doc,lt.head.line).text.length;return lt.head.ch==wt&<.head.line<it.lastLine()?{from:lt.head,to:Ke(lt.head.line+1,0)}:{from:lt.head,to:Ke(lt.head.line,wt)}}else return{from:lt.from(),to:lt.to()}})},deleteLine:function(it){return Ma(it,function(lt){return{from:Ke(lt.from().line,0),to:yn(it.doc,Ke(lt.to().line+1,0))}})},delLineLeft:function(it){return Ma(it,function(lt){return{from:Ke(lt.from().line,0),to:lt.from()}})},delWrappedLineLeft:function(it){return Ma(it,function(lt){var wt=it.charCoords(lt.head,"div").top+5,St=it.coordsChar({left:0,top:wt},"div");return{from:St,to:lt.from()}})},delWrappedLineRight:function(it){return Ma(it,function(lt){var wt=it.charCoords(lt.head,"div").top+5,St=it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:wt},"div");return{from:lt.from(),to:St}})},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 wt=it.cursorCoords(lt.head,"div").top+5;return it.coordsChar({left:it.display.lineDiv.offsetWidth+100,top:wt},"div")},Oe)},goLineLeft:function(it){return it.extendSelectionsBy(function(lt){var wt=it.cursorCoords(lt.head,"div").top+5;return it.coordsChar({left:0,top:wt},"div")},Oe)},goLineLeftSmart:function(it){return it.extendSelectionsBy(function(lt){var wt=it.cursorCoords(lt.head,"div").top+5,St=it.coordsChar({left:0,top:wt},"div");return St.ch<it.getLine(St.line).search(/\S/)?Sg(it,lt.head):St},Oe)},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=[],wt=it.listSelections(),St=it.options.tabSize,kt=0;kt<wt.length;kt++){var ne=wt[kt].from(),ge=de(it.getLine(ne.line),ne.ch,St);lt.push(rn(St-ge%St))}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(),wt=[],St=0;St<lt.length;St++)if(lt[St].empty()){var kt=lt[St].head,ne=gn(it.doc,kt.line).text;if(ne){if(kt.ch==ne.length&&(kt=new Ke(kt.line,kt.ch-1)),kt.ch>0)kt=new Ke(kt.line,kt.ch+1),it.replaceRange(ne.charAt(kt.ch-1)+ne.charAt(kt.ch-2),Ke(kt.line,kt.ch-2),kt,"+transpose");else if(kt.line>it.doc.first){var ge=gn(it.doc,kt.line-1).text;ge&&(kt=new Ke(kt.line,1),it.replaceRange(ne.charAt(0)+it.doc.lineSeparator()+ge.charAt(ge.length-1),Ke(kt.line-1,ge.length-1),kt,"+transpose"))}}wt.push(new ho(kt,kt))}it.setSelections(wt)})},newlineAndIndent:function(it){return to(it,function(){for(var lt=it.listSelections(),wt=lt.length-1;wt>=0;wt--)it.replaceRange(it.doc.lineSeparator(),lt[wt].anchor,lt[wt].head,"+input");lt=it.listSelections();for(var St=0;St<lt.length;St++)it.indentLine(lt[St].from().line,null,!0);au(it)})},openLine:function(it){return it.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(it){return it.toggleOverwrite()}};function vc(it,lt){var wt=gn(it.doc,lt),St=_i(wt);return St!=wt&&(lt=Me(St)),ad(!0,it,St,lt,1)}function yc(it,lt){var wt=gn(it.doc,lt),St=Mr(wt);return St!=wt&&(lt=Me(St)),ad(!0,it,wt,lt,-1)}function Sg(it,lt){var wt=vc(it,lt.line),St=gn(it.doc,wt.line),kt=re(St,it.doc.direction);if(!kt||kt[0].level==0){var ne=Math.max(wt.ch,St.text.search(/\S/)),ge=lt.line==wt.line&<.ch<=ne&<.ch;return Ke(wt.line,ge?0:ne,wt.sticky)}return wt}function Sc(it,lt,wt){if(typeof lt=="string"&&(lt=Hu[lt],!lt))return!1;it.display.input.ensurePolled();var St=it.display.shift,kt=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),wt&&(it.display.shift=!1),kt=lt(it)!=fe}finally{it.display.shift=St,it.state.suppressEdits=!1}return kt}function xg(it,lt,wt){for(var St=0;St<it.state.keyMaps.length;St++){var kt=nl(lt,it.state.keyMaps[St],wt,it);if(kt)return kt}return it.options.extraKeys&&nl(lt,it.options.extraKeys,wt,it)||nl(lt,it.options.keyMap,wt,it)}var Ul=new Jt;function Oh(it,lt,wt,St){var kt=it.state.keySeq;if(kt){if(mc(lt))return"handled";if(/\'$/.test(lt)?it.state.keySeq=null:Ul.set(50,function(){it.state.keySeq==kt&&(it.state.keySeq=null,it.display.input.reset())}),ef(it,kt+" "+lt,wt,St))return!0}return ef(it,lt,wt,St)}function ef(it,lt,wt,St){var kt=xg(it,lt,St);return kt=="multi"&&(it.state.keySeq=lt),kt=="handled"&&hi(it,"keyHandled",it,lt,wt),(kt=="handled"||kt=="multi")&&(Rn(wt),lo(it)),!!kt}function nf(it,lt){var wt=$p(lt,!0);return wt?lt.shiftKey&&!it.state.keySeq?Oh(it,"Shift-"+wt,lt,function(St){return Sc(it,St,!0)})||Oh(it,wt,lt,function(St){if(typeof St=="string"?/^go[A-Z]/.test(St):St.motion)return Sc(it,St)}):Oh(it,wt,lt,function(St){return Sc(it,St)}):!1}function rf(it,lt,wt){return Oh(it,"'"+wt+"'",lt,function(St){return Sc(it,St,!0)})}var Ih=null;function wg(it){var lt=this;if(!(it.target&&it.target!=lt.display.input.getField())&&(lt.curOp.focus=oe(),!Re(lt,it))){Nt&&Wt<11&&it.keyCode==27&&(it.returnValue=!1);var wt=it.keyCode;lt.display.shift=wt==16||it.shiftKey;var St=nf(lt,it);At&&(Ih=St?wt:null,!St&&wt==88&&!Yi&&(st?it.metaKey:it.ctrlKey)&<.replaceSelection("",null,"cut")),Rt&&!st&&!St&&wt==46&&it.shiftKey&&!it.ctrlKey&&document.execCommand&&document.execCommand("cut"),wt==18&&!/\bCodeMirror-crosshair\b/.test(lt.display.lineDiv.className)&&Pg(lt)}}function Pg(it){var lt=it.display.lineDiv;we(lt,"CodeMirror-crosshair");function wt(St){(St.keyCode==18||!St.altKey)&&(Dt(lt,"CodeMirror-crosshair"),sn(document,"keyup",wt),sn(document,"mouseover",wt))}ye(document,"keyup",wt),ye(document,"mouseover",wt)}function bg(it){it.keyCode==16&&(this.doc.sel.shift=!1),Re(this,it)}function Al(it){var lt=this;if(!(it.target&&it.target!=lt.display.input.getField())&&!($s(lt.display,it)||Re(lt,it)||it.ctrlKey&&!it.altKey||st&&it.metaKey)){var wt=it.keyCode,St=it.charCode;if(At&&wt==Ih){Ih=null,Rn(it);return}if(!(At&&(!it.which||it.which<10)&&nf(lt,it))){var kt=String.fromCharCode(St==null?wt:St);kt!="\b"&&(rf(lt,it,kt)||lt.display.input.onKeyPress(it))}}}var tm=400,Cg=function(it,lt,wt){this.time=it,this.pos=lt,this.button=wt};Cg.prototype.compare=function(it,lt,wt){return this.time+tm>it&&cn(lt,this.pos)==0&&wt==this.button};var xc,Dh;function Eg(it,lt){var wt=+new Date;return Dh&&Dh.compare(wt,it,lt)?(xc=Dh=null,"triple"):xc&&xc.compare(wt,it,lt)?(Dh=new Cg(wt,it,lt),xc=null,"double"):(xc=new Cg(wt,it,lt),Dh=null,"single")}function Ml(it){var lt=this,wt=lt.display;if(!(Re(lt,it)||wt.activeTouch&&wt.input.supportsTouch())){if(wt.input.ensurePolled(),wt.shift=it.shiftKey,$s(wt,it)){xt||(wt.scroller.draggable=!1,setTimeout(function(){return wt.scroller.draggable=!0},100));return}if(!af(lt,it)){var St=na(lt,it),kt=yi(it),ne=St?Eg(St,kt):"single";window.focus(),kt==1&<.state.selectingText&<.state.selectingText(it),!(St&&Lg(lt,kt,St,ne,it))&&(kt==1?St?em(lt,St,ne,it):mi(it)==wt.scroller&&Rn(it):kt==2?(St&&Jd(lt.doc,St),setTimeout(function(){return wt.input.focus()},20)):kt==3&&(mt?lt.display.input.onContextMenu(it):jo(lt)))}}}function Lg(it,lt,wt,St,kt){var ne="Click";return St=="double"?ne="Double"+ne:St=="triple"&&(ne="Triple"+ne),ne=(lt==1?"Left":lt==2?"Middle":"Right")+ne,Oh(it,vg(ne,kt),kt,function(ge){if(typeof ge=="string"&&(ge=Hu[ge]),!ge)return!1;var Ce=!1;try{it.isReadOnly()&&(it.state.suppressEdits=!0),Ce=ge(it,wt)!=fe}finally{it.state.suppressEdits=!1}return Ce})}function of(it,lt,wt){var St=it.getOption("configureMouse"),kt=St?St(it,lt,wt):{};if(kt.unit==null){var ne=rt?wt.shiftKey&&wt.metaKey:wt.altKey;kt.unit=ne?"rectangle":lt=="single"?"char":lt=="double"?"word":"line"}return(kt.extend==null||it.doc.extend)&&(kt.extend=it.doc.extend||wt.shiftKey),kt.addNew==null&&(kt.addNew=st?wt.metaKey:wt.ctrlKey),kt.moveOnDrag==null&&(kt.moveOnDrag=!(st?wt.altKey:wt.ctrlKey)),kt}function em(it,lt,wt,St){Nt?setTimeout(pe(Eo,it),0):it.curOp.focus=oe();var kt=of(it,wt,St),ne=it.doc.sel,ge;it.options.dragDrop&&Pi&&!it.isReadOnly()&&wt=="single"&&(ge=ne.contains(lt))>-1&&(cn((ge=ne.ranges[ge]).from(),lt)<0||lt.xRel>0)&&(cn(ge.to(),lt)>0||lt.xRel<0)?Ag(it,St,lt,kt):nv(it,St,lt,kt)}function Ag(it,lt,wt,St){var kt=it.display,ne=!1,ge=cs(it,function(He){xt&&(kt.scroller.draggable=!1),it.state.draggingText=!1,sn(kt.wrapper.ownerDocument,"mouseup",ge),sn(kt.wrapper.ownerDocument,"mousemove",Ce),sn(kt.scroller,"dragstart",Pe),sn(kt.scroller,"drop",ge),ne||(Rn(He),St.addNew||Jd(it.doc,wt,null,null,St.extend),xt&&!bt||Nt&&Wt==9?setTimeout(function(){kt.wrapper.ownerDocument.body.focus({preventScroll:!0}),kt.input.focus()},20):kt.input.focus())}),Ce=function(He){ne=ne||Math.abs(lt.clientX-He.clientX)+Math.abs(lt.clientY-He.clientY)>=10},Pe=function(){return ne=!0};xt&&(kt.scroller.draggable=!0),it.state.draggingText=ge,ge.copy=!St.moveOnDrag,kt.scroller.dragDrop&&kt.scroller.dragDrop(),ye(kt.wrapper.ownerDocument,"mouseup",ge),ye(kt.wrapper.ownerDocument,"mousemove",Ce),ye(kt.scroller,"dragstart",Pe),ye(kt.scroller,"drop",ge),jo(it),setTimeout(function(){return kt.input.focus()},20)}function Mg(it,lt,wt){if(wt=="char")return new ho(lt,lt);if(wt=="word")return it.findWordAt(lt);if(wt=="line")return new ho(Ke(lt.line,0),yn(it.doc,Ke(lt.line+1,0)));var St=wt(it,lt);return new ho(St.from,St.to)}function nv(it,lt,wt,St){var kt=it.display,ne=it.doc;Rn(lt);var ge,Ce,Pe=ne.sel,He=Pe.ranges;if(St.addNew&&!St.extend?(Ce=ne.sel.contains(wt),Ce>-1?ge=He[Ce]:ge=new ho(wt,wt)):(ge=ne.sel.primary(),Ce=ne.sel.primIndex),St.unit=="rectangle")St.addNew||(ge=new ho(wt,wt)),wt=na(it,lt,!0,!0),Ce=-1;else{var pn=Mg(it,wt,St.unit);St.extend?ge=_d(ge,pn.anchor,pn.head,St.extend):ge=pn}St.addNew?Ce==-1?(Ce=He.length,Us(ne,dl(it,He.concat([ge]),Ce),{scroll:!1,origin:"*mouse"})):He.length>1&&He[Ce].empty()&&St.unit=="char"&&!St.extend?(Us(ne,dl(it,He.slice(0,Ce).concat(He.slice(Ce+1)),0),{scroll:!1,origin:"*mouse"}),Pe=ne.sel):ju(ne,Ce,ge,De):(Ce=0,Us(ne,new tl([ge],0),De),Pe=ne.sel);var Xe=wt;function Fn(Ui){if(cn(Xe,Ui)!=0)if(Xe=Ui,St.unit=="rectangle"){for(var sr=[],Lr=it.options.tabSize,Wi=de(gn(ne,wt.line).text,wt.ch,Lr),jr=de(gn(ne,Ui.line).text,Ui.ch,Lr),Do=Math.min(Wi,jr),fs=Math.max(Wi,jr),Zo=Math.min(wt.line,Ui.line),ma=Math.min(it.lastLine(),Math.max(wt.line,Ui.line));Zo<=ma;Zo++){var Gs=gn(ne,Zo).text,as=en(Gs,Do,Lr);Do==fs?sr.push(new ho(Ke(Zo,as),Ke(Zo,as))):Gs.length>as&&sr.push(new ho(Ke(Zo,as),Ke(Zo,en(Gs,fs,Lr))))}sr.length||sr.push(new ho(wt,wt)),Us(ne,dl(it,Pe.ranges.slice(0,Ce).concat(sr),Ce),{origin:"*mouse",scroll:!1}),it.scrollIntoView(Ui)}else{var Ta=ge,Bs=Mg(it,Ui,St.unit),ls=Ta.anchor,$r;cn(Bs.anchor,ls)>0?($r=Bs.head,ls=ln(Ta.from(),Bs.anchor)):($r=Bs.anchor,ls=dn(Ta.to(),Bs.head));var _o=Pe.ranges.slice(0);_o[Ce]=nm(it,new ho(yn(ne,ls),$r)),Us(ne,dl(it,_o,Ce),De)}}var Dn=kt.wrapper.getBoundingClientRect(),ni=0;function ai(Ui){var sr=++ni,Lr=na(it,Ui,!0,St.unit=="rectangle");if(Lr)if(cn(Lr,Xe)!=0){it.curOp.focus=oe(),Fn(Lr);var Wi=Gr(kt,ne);(Lr.line>=Wi.to||Lr.line<Wi.from)&&setTimeout(cs(it,function(){ni==sr&&ai(Ui)}),150)}else{var jr=Ui.clientY<Dn.top?-20:Ui.clientY>Dn.bottom?20:0;jr&&setTimeout(cs(it,function(){ni==sr&&(kt.scroller.scrollTop+=jr,ai(Ui))}),50)}}function wi(Ui){it.state.selectingText=!1,ni=1/0,Ui&&(Rn(Ui),kt.input.focus()),sn(kt.wrapper.ownerDocument,"mousemove",Di),sn(kt.wrapper.ownerDocument,"mouseup",er),ne.history.lastSelOrigin=null}var Di=cs(it,function(Ui){Ui.buttons===0||!yi(Ui)?wi(Ui):ai(Ui)}),er=cs(it,wi);it.state.selectingText=er,ye(kt.wrapper.ownerDocument,"mousemove",Di),ye(kt.wrapper.ownerDocument,"mouseup",er)}function nm(it,lt){var wt=lt.anchor,St=lt.head,kt=gn(it.doc,wt.line);if(cn(wt,St)==0&&wt.sticky==St.sticky)return lt;var ne=re(kt);if(!ne)return lt;var ge=gt(ne,wt.ch,wt.sticky),Ce=ne[ge];if(Ce.from!=wt.ch&&Ce.to!=wt.ch)return lt;var Pe=ge+(Ce.from==wt.ch==(Ce.level!=1)?0:1);if(Pe==0||Pe==ne.length)return lt;var He;if(St.line!=wt.line)He=(St.line-wt.line)*(it.doc.direction=="ltr"?1:-1)>0;else{var pn=gt(ne,St.ch,St.sticky),Xe=pn-ge||(St.ch-wt.ch)*(Ce.level==1?-1:1);pn==Pe-1||pn==Pe?He=Xe<0:He=Xe>0}var Fn=ne[Pe+(He?-1:0)],Dn=He==(Fn.level==1),ni=Dn?Fn.from:Fn.to,ai=Dn?"after":"before";return wt.ch==ni&&wt.sticky==ai?lt:new ho(new Ke(wt.line,ni,ai),St)}function sf(it,lt,wt,St){var kt,ne;if(lt.touches)kt=lt.touches[0].clientX,ne=lt.touches[0].clientY;else try{kt=lt.clientX,ne=lt.clientY}catch(Fn){return!1}if(kt>=Math.floor(it.display.gutters.getBoundingClientRect().right))return!1;St&&Rn(lt);var ge=it.display,Ce=ge.lineDiv.getBoundingClientRect();if(ne>Ce.bottom||!wn(it,wt))return Kn(lt);ne-=Ce.top-ge.viewOffset;for(var Pe=0;Pe<it.display.gutterSpecs.length;++Pe){var He=ge.gutters.childNodes[Pe];if(He&&He.getBoundingClientRect().right>=kt){var pn=Ge(it.doc,ne),Xe=it.display.gutterSpecs[Pe];return Le(it,wt,it,pn,Xe.className,lt),Kn(lt)}}}function af(it,lt){return sf(it,lt,"gutterClick",!0)}function lf(it,lt){$s(it.display,lt)||im(it,lt)||Re(it,lt,"contextmenu")||mt||it.display.input.onContextMenu(lt)}function im(it,lt){return wn(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 wt(St,kt,ne,ge){it.defaults[St]=kt,ne&&(lt[St]=ge?function(Ce,Pe,He){He!=Wu&&ne(Ce,Pe,He)}:ne)}it.defineOption=wt,it.Init=Wu,wt("value","",function(St,kt){return St.setValue(kt)},!0),wt("mode",null,function(St,kt){St.doc.modeOption=kt,Rr(St)},!0),wt("indentUnit",2,Rr,!0),wt("indentWithTabs",!1),wt("smartIndent",!0),wt("tabSize",4,function(St){Yc(St),Go(St),Io(St)},!0),wt("lineSeparator",null,function(St,kt){if(St.doc.lineSep=kt,!!kt){var ne=[],ge=St.doc.first;St.doc.iter(function(Pe){for(var He=0;;){var pn=Pe.text.indexOf(kt,He);if(pn==-1)break;He=pn+kt.length,ne.push(Ke(ge,pn))}ge++});for(var Ce=ne.length-1;Ce>=0;Ce--)Mh(St.doc,kt,ne[Ce],Ke(ne[Ce].line,ne[Ce].ch+kt.length))}}),wt("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(St,kt,ne){St.state.specialChars=new RegExp(kt.source+(kt.test(" ")?"":"| "),"g"),ne!=Wu&&St.refresh()}),wt("specialCharPlaceholder",yo,function(St){return St.refresh()},!0),wt("electricChars",!0),wt("inputStyle",tt?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),wt("spellcheck",!1,function(St,kt){return St.getInputField().spellcheck=kt},!0),wt("autocorrect",!1,function(St,kt){return St.getInputField().autocorrect=kt},!0),wt("autocapitalize",!1,function(St,kt){return St.getInputField().autocapitalize=kt},!0),wt("rtlMoveVisually",!ut),wt("wholeLineUpdateBefore",!0),wt("theme","default",function(St){uf(St),Ua(St)},!0),wt("keyMap","default",function(St,kt,ne){var ge=Nh(kt),Ce=ne!=Wu&&Nh(ne);Ce&&Ce.detach&&Ce.detach(St,ge),ge.attach&&ge.attach(St,Ce||null)}),wt("extraKeys",null),wt("configureMouse",null),wt("lineWrapping",!1,om,!0),wt("gutters",[],function(St,kt){St.display.gutterSpecs=Ps(kt,St.options.lineNumbers),Ua(St)},!0),wt("fixedGutter",!0,function(St,kt){St.display.gutters.style.left=kt?Kc(St.display)+"px":"0",St.refresh()},!0),wt("coverGutterNextToScrollbar",!1,function(St){return Mu(St)},!0),wt("scrollbarStyle","native",function(St){ng(St),Mu(St),St.display.scrollbars.setScrollTop(St.doc.scrollTop),St.display.scrollbars.setScrollLeft(St.doc.scrollLeft)},!0),wt("lineNumbers",!1,function(St,kt){St.display.gutterSpecs=Ps(St.options.gutters,kt),Ua(St)},!0),wt("firstLineNumber",1,Ua,!0),wt("lineNumberFormatter",function(St){return St},Ua,!0),wt("showCursorWhenSelecting",!1,hs,!0),wt("resetSelectionOnContextMenu",!0),wt("lineWiseCopyCut",!0),wt("pasteLinesPerSelection",!0),wt("selectionsMayTouch",!1),wt("readOnly",!1,function(St,kt){kt=="nocursor"&&(Sh(St),St.display.input.blur()),St.display.input.readOnlyChanged(kt)}),wt("screenReaderLabel",null,function(St,kt){kt=kt===""?null:kt,St.display.input.screenReaderLabelChanged(kt)}),wt("disableInput",!1,function(St,kt){kt||St.display.input.reset()},!0),wt("dragDrop",!0,hf),wt("allowDropFileTypes",null),wt("cursorBlinkRate",530),wt("cursorScrollMargin",0),wt("cursorHeight",1,hs,!0),wt("singleCursorHeightPerLine",!0,hs,!0),wt("workTime",100),wt("workDelay",100),wt("flattenSpans",!0,Yc,!0),wt("addModeClass",!1,Yc,!0),wt("pollInterval",100),wt("undoDepth",200,function(St,kt){return St.doc.history.undoDepth=kt}),wt("historyEventDelay",1250),wt("viewportMargin",10,function(St){return St.refresh()},!0),wt("maxHighlightLength",1e4,Yc,!0),wt("moveInputWithCursor",!0,function(St,kt){kt||St.display.input.resetPosition()}),wt("tabindex",null,function(St,kt){return St.display.input.getField().tabIndex=kt||""}),wt("autofocus",null),wt("direction","ltr",function(St,kt){return St.doc.setDirection(kt)},!0),wt("phrases",null)}function hf(it,lt,wt){var St=wt&&wt!=Wu;if(!lt!=!St){var kt=it.display.dragFunctions,ne=lt?ye:sn;ne(it.display.scroller,"dragstart",kt.start),ne(it.display.scroller,"dragenter",kt.enter),ne(it.display.scroller,"dragover",kt.over),ne(it.display.scroller,"dragleave",kt.leave),ne(it.display.scroller,"drop",kt.drop)}}function om(it){it.options.lineWrapping?(we(it.display.wrapper,"CodeMirror-wrap"),it.display.sizer.style.minWidth="",it.display.sizerWidth=null):(Dt(it.display.wrapper,"CodeMirror-wrap"),kr(it)),dr(it),Io(it),Go(it),setTimeout(function(){return Mu(it)},100)}function qr(it,lt){var wt=this;if(!(this instanceof qr))return new qr(it,lt);this.options=lt=lt?Ue(lt):{},Ue(Tg,lt,!1);var St=lt.value;typeof St=="string"?St=new Fs(St,lt.mode,null,lt.lineSeparator,lt.direction):lt.mode&&(St.modeOption=lt.mode),this.doc=St;var kt=new qr.inputStyles[lt.inputStyle](this),ne=this.display=new Fu(it,St,kt,lt);ne.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 Jt,keySeq:null,specialChars:null},lt.autofocus&&!tt&&ne.input.focus(),Nt&&Wt<11&&setTimeout(function(){return wt.display.input.reset(!0)},20),wc(this),Ka(),Tu(this),this.curOp.forceUpdate=!0,Zd(this,St),lt.autofocus&&!tt||this.hasFocus()?setTimeout(function(){wt.hasFocus()&&!wt.state.focused&&Yr(wt)},20):Sh(this);for(var ge in ld)ld.hasOwnProperty(ge)&&ld[ge](this,lt[ge],Wu);rs(this),lt.finishInit&<.finishInit(this);for(var Ce=0;Ce<Fh.length;++Ce)Fh[Ce](this);ku(this),xt&<.lineWrapping&&getComputedStyle(ne.lineDiv).textRendering=="optimizelegibility"&&(ne.lineDiv.style.textRendering="auto")}qr.defaults=Tg,qr.optionHandlers=ld;function wc(it){var lt=it.display;ye(lt.scroller,"mousedown",cs(it,Ml)),Nt&&Wt<11?ye(lt.scroller,"dblclick",cs(it,function(Pe){if(!Re(it,Pe)){var He=na(it,Pe);if(!(!He||af(it,Pe)||$s(it.display,Pe))){Rn(Pe);var pn=it.findWordAt(He);Jd(it.doc,pn.anchor,pn.head)}}})):ye(lt.scroller,"dblclick",function(Pe){return Re(it,Pe)||Rn(Pe)}),ye(lt.scroller,"contextmenu",function(Pe){return lf(it,Pe)}),ye(lt.input.getField(),"contextmenu",function(Pe){lt.scroller.contains(Pe.target)||lf(it,Pe)});var wt,St={end:0};function kt(){lt.activeTouch&&(wt=setTimeout(function(){return lt.activeTouch=null},1e3),St=lt.activeTouch,St.end=+new Date)}function ne(Pe){if(Pe.touches.length!=1)return!1;var He=Pe.touches[0];return He.radiusX<=1&&He.radiusY<=1}function ge(Pe,He){if(He.left==null)return!0;var pn=He.left-Pe.left,Xe=He.top-Pe.top;return pn*pn+Xe*Xe>20*20}ye(lt.scroller,"touchstart",function(Pe){if(!Re(it,Pe)&&!ne(Pe)&&!af(it,Pe)){lt.input.ensurePolled(),clearTimeout(wt);var He=+new Date;lt.activeTouch={start:He,moved:!1,prev:He-St.end<=300?St:null},Pe.touches.length==1&&(lt.activeTouch.left=Pe.touches[0].pageX,lt.activeTouch.top=Pe.touches[0].pageY)}}),ye(lt.scroller,"touchmove",function(){lt.activeTouch&&(lt.activeTouch.moved=!0)}),ye(lt.scroller,"touchend",function(Pe){var He=lt.activeTouch;if(He&&!$s(lt,Pe)&&He.left!=null&&!He.moved&&new Date-He.start<300){var pn=it.coordsChar(lt.activeTouch,"page"),Xe;!He.prev||ge(He,He.prev)?Xe=new ho(pn,pn):!He.prev.prev||ge(He,He.prev.prev)?Xe=it.findWordAt(pn):Xe=new ho(Ke(pn.line,0),yn(it.doc,Ke(pn.line+1,0))),it.setSelection(Xe.anchor,Xe.head),it.focus(),Rn(Pe)}kt()}),ye(lt.scroller,"touchcancel",kt),ye(lt.scroller,"scroll",function(){lt.scroller.clientHeight&&(wh(it,lt.scroller.scrollTop),lu(it,lt.scroller.scrollLeft,!0),Le(it,"scroll",it))}),ye(lt.scroller,"mousewheel",function(Pe){return bs(it,Pe)}),ye(lt.scroller,"DOMMouseScroll",function(Pe){return bs(it,Pe)}),ye(lt.wrapper,"scroll",function(){return lt.wrapper.scrollTop=lt.wrapper.scrollLeft=0}),lt.dragFunctions={enter:function(Pe){Re(it,Pe)||li(Pe)},over:function(Pe){Re(it,Pe)||(Jp(it,Pe),li(Pe))},start:function(Pe){return _p(it,Pe)},drop:cs(it,dg),leave:function(Pe){Re(it,Pe)||Qp(it)}};var Ce=lt.input.getField();ye(Ce,"keyup",function(Pe){return bg.call(it,Pe)}),ye(Ce,"keydown",cs(it,wg)),ye(Ce,"keypress",cs(it,Al)),ye(Ce,"focus",function(Pe){return Yr(it,Pe)}),ye(Ce,"blur",function(Pe){return Sh(it,Pe)})}var Fh=[];qr.defineInitHook=function(it){return Fh.push(it)};function ds(it,lt,wt,St){var kt=it.doc,ne;wt==null&&(wt="add"),wt=="smart"&&(kt.mode.indent?ne=ii(it,lt).state:wt="prev");var ge=it.options.tabSize,Ce=gn(kt,lt),Pe=de(Ce.text,null,ge);Ce.stateAfter&&(Ce.stateAfter=null);var He=Ce.text.match(/^\s*/)[0],pn;if(!St&&!/\S/.test(Ce.text))pn=0,wt="not";else if(wt=="smart"&&(pn=kt.mode.indent(ne,Ce.text.slice(He.length),Ce.text),pn==fe||pn>150)){if(!St)return;wt="prev"}wt=="prev"?lt>kt.first?pn=de(gn(kt,lt-1).text,null,ge):pn=0:wt=="add"?pn=Pe+it.options.indentUnit:wt=="subtract"?pn=Pe-it.options.indentUnit:typeof wt=="number"&&(pn=Pe+wt),pn=Math.max(0,pn);var Xe="",Fn=0;if(it.options.indentWithTabs)for(var Dn=Math.floor(pn/ge);Dn;--Dn)Fn+=ge,Xe+=" ";if(Fn<pn&&(Xe+=rn(pn-Fn)),Xe!=He)return Mh(kt,Xe,Ke(lt,0),Ke(lt,He.length),"+input"),Ce.stateAfter=null,!0;for(var ni=0;ni<kt.sel.ranges.length;ni++){var ai=kt.sel.ranges[ni];if(ai.head.line==lt&&ai.head.ch<He.length){var wi=Ke(lt,He.length);ju(kt,ni,new ho(wi,wi));break}}}var pa=null;function Bh(it){pa=it}function ud(it,lt,wt,St,kt){var ne=it.doc;it.display.shift=!1,St||(St=ne.sel);var ge=+new Date-200,Ce=kt=="paste"||it.state.pasteIncoming>ge,Pe=ui(lt),He=null;if(Ce&&St.ranges.length>1)if(pa&&pa.text.join(`
|
|
|
`)==lt){if(St.ranges.length%pa.text.length==0){He=[];for(var pn=0;pn<pa.text.length;pn++)He.push(ne.splitLines(pa.text[pn]))}}else Pe.length==St.ranges.length&&it.options.pasteLinesPerSelection&&(He=Ie(Pe,function(Di){return[Di]}));for(var Xe=it.curOp.updateInput,Fn=St.ranges.length-1;Fn>=0;Fn--){var Dn=St.ranges[Fn],ni=Dn.from(),ai=Dn.to();Dn.empty()&&(wt&&wt>0?ni=Ke(ni.line,ni.ch-wt):it.state.overwrite&&!Ce?ai=Ke(ai.line,Math.min(gn(ne,ai.line).text.length,ai.ch+ke(Pe).length)):Ce&&pa&&pa.lineWise&&pa.text.join(`
|
|
|
`)==Pe.join(`
|
|
|
`)&&(ni=ai=Ke(ni.line,0)));var wi={from:ni,to:ai,text:He?He[Fn%He.length]:Pe,origin:kt||(Ce?"paste":it.state.cutIncoming>ge?"cut":"+input")};zu(it.doc,wi),hi(it,"inputRead",it,wi)}lt&&!Ce&&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 wt=it.clipboardData&&it.clipboardData.getData("Text");if(wt)return it.preventDefault(),!lt.isReadOnly()&&!lt.options.disableInput&&to(lt,function(){return ud(lt,wt,0,null,"paste")}),!0}function Ng(it,lt){if(!(!it.options.electricChars||!it.options.smartIndent))for(var wt=it.doc.sel,St=wt.ranges.length-1;St>=0;St--){var kt=wt.ranges[St];if(!(kt.head.ch>100||St&&wt.ranges[St-1].head.line==kt.head.line)){var ne=it.getModeAt(kt.head),ge=!1;if(ne.electricChars){for(var Ce=0;Ce<ne.electricChars.length;Ce++)if(lt.indexOf(ne.electricChars.charAt(Ce))>-1){ge=ds(it,kt.head.line,"smart");break}}else ne.electricInput&&ne.electricInput.test(gn(it.doc,kt.head.line).text.slice(0,kt.head.ch))&&(ge=ds(it,kt.head.line,"smart"));ge&&hi(it,"electricInput",it,kt.head.line)}}}function Og(it){for(var lt=[],wt=[],St=0;St<it.doc.sel.ranges.length;St++){var kt=it.doc.sel.ranges[St].head.line,ne={anchor:Ke(kt,0),head:Ke(kt+1,0)};wt.push(ne),lt.push(it.getRange(ne.anchor,ne.head))}return{text:lt,ranges:wt}}function Ig(it,lt,wt,St){it.setAttribute("autocorrect",wt?"":"off"),it.setAttribute("autocapitalize",St?"":"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"),vt&&(it.style.border="1px solid black"),Ig(it),lt}function Uu(it){var lt=it.optionHandlers,wt=it.helpers={};it.prototype={constructor:it,focus:function(){window.focus(),this.display.input.focus()},setOption:function(St,kt){var ne=this.options,ge=ne[St];ne[St]==kt&&St!="mode"||(ne[St]=kt,lt.hasOwnProperty(St)&&cs(this,lt[St])(this,kt,ge),Le(this,"optionChange",this,St))},getOption:function(St){return this.options[St]},getDoc:function(){return this.doc},addKeyMap:function(St,kt){this.state.keyMaps[kt?"push":"unshift"](Nh(St))},removeKeyMap:function(St){for(var kt=this.state.keyMaps,ne=0;ne<kt.length;++ne)if(kt[ne]==St||kt[ne].name==St)return kt.splice(ne,1),!0},addOverlay:Ss(function(St,kt){var ne=St.token?St:it.getMode(this.options,St);if(ne.startState)throw new Error("Overlays may not be stateful.");je(this.state.overlays,{mode:ne,modeSpec:St,opaque:kt&&kt.opaque,priority:kt&&kt.priority||0},function(ge){return ge.priority}),this.state.modeGen++,Io(this)}),removeOverlay:Ss(function(St){for(var kt=this.state.overlays,ne=0;ne<kt.length;++ne){var ge=kt[ne].modeSpec;if(ge==St||typeof St=="string"&&ge.name==St){kt.splice(ne,1),this.state.modeGen++,Io(this);return}}}),indentLine:Ss(function(St,kt,ne){typeof kt!="string"&&typeof kt!="number"&&(kt==null?kt=this.options.smartIndent?"smart":"prev":kt=kt?"add":"subtract"),fn(this.doc,St)&&ds(this,St,kt,ne)}),indentSelection:Ss(function(St){for(var kt=this.doc.sel.ranges,ne=-1,ge=0;ge<kt.length;ge++){var Ce=kt[ge];if(Ce.empty())Ce.head.line>ne&&(ds(this,Ce.head.line,St,!0),ne=Ce.head.line,ge==this.doc.sel.primIndex&&au(this));else{var Pe=Ce.from(),He=Ce.to(),pn=Math.max(ne,Pe.line);ne=Math.min(this.lastLine(),He.line-(He.ch?0:1))+1;for(var Xe=pn;Xe<ne;++Xe)ds(this,Xe,St);var Fn=this.doc.sel.ranges;Pe.ch==0&&kt.length==Fn.length&&Fn[ge].from().ch>0&&ju(this.doc,ge,new ho(Pe,Fn[ge].to()),se)}}}),getTokenAt:function(St,kt){return Li(this,St,kt)},getLineTokens:function(St,kt){return Li(this,Ke(St),kt,!0)},getTokenTypeAt:function(St){St=yn(this.doc,St);var kt=pi(this,gn(this.doc,St.line)),ne=0,ge=(kt.length-1)/2,Ce=St.ch,Pe;if(Ce==0)Pe=kt[2];else for(;;){var He=ne+ge>>1;if((He?kt[He*2-1]:0)>=Ce)ge=He;else if(kt[He*2+1]<Ce)ne=He+1;else{Pe=kt[He*2+2];break}}var pn=Pe?Pe.indexOf("overlay "):-1;return pn<0?Pe:pn==0?null:Pe.slice(0,pn-1)},getModeAt:function(St){var kt=this.doc.mode;return kt.innerMode?it.innerMode(kt,this.getTokenAt(St).state).mode:kt},getHelper:function(St,kt){return this.getHelpers(St,kt)[0]},getHelpers:function(St,kt){var ne=[];if(!wt.hasOwnProperty(kt))return ne;var ge=wt[kt],Ce=this.getModeAt(St);if(typeof Ce[kt]=="string")ge[Ce[kt]]&&ne.push(ge[Ce[kt]]);else if(Ce[kt])for(var Pe=0;Pe<Ce[kt].length;Pe++){var He=ge[Ce[kt][Pe]];He&&ne.push(He)}else Ce.helperType&&ge[Ce.helperType]?ne.push(ge[Ce.helperType]):ge[Ce.name]&&ne.push(ge[Ce.name]);for(var pn=0;pn<ge._global.length;pn++){var Xe=ge._global[pn];Xe.pred(Ce,this)&&ee(ne,Xe.val)==-1&&ne.push(Xe.val)}return ne},getStateAfter:function(St,kt){var ne=this.doc;return St=xn(ne,St==null?ne.first+ne.size-1:St),ii(this,St+1,kt).state},cursorCoords:function(St,kt){var ne,ge=this.doc.sel.primary();return St==null?ne=ge.head:typeof St=="object"?ne=yn(this.doc,St):ne=St?ge.from():ge.to(),Mo(this,ne,kt||"page")},charCoords:function(St,kt){return Ha(this,yn(this.doc,St),kt||"page")},coordsChar:function(St,kt){return St=bl(this,St,kt||"page"),jd(this,St.left,St.top)},lineAtHeight:function(St,kt){return St=bl(this,{top:St,left:0},kt||"page").top,Ge(this.doc,St+this.display.viewOffset)},heightAtLine:function(St,kt,ne){var ge=!1,Ce;if(typeof St=="number"){var Pe=this.doc.first+this.doc.size-1;St<this.doc.first?St=this.doc.first:St>Pe&&(St=Pe,ge=!0),Ce=gn(this.doc,St)}else Ce=St;return Ro(this,Ce,{top:0,left:0},kt||"page",ne||ge).top+(ge?this.doc.height-Tr(Ce):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(St,kt,ne,ge,Ce){var Pe=this.display;St=Mo(this,yn(this.doc,St));var He=St.bottom,pn=St.left;if(kt.style.position="absolute",kt.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(kt),Pe.sizer.appendChild(kt),ge=="over")He=St.top;else if(ge=="above"||ge=="near"){var Xe=Math.max(Pe.wrapper.clientHeight,this.doc.height),Fn=Math.max(Pe.sizer.clientWidth,Pe.lineSpace.clientWidth);(ge=="above"||St.bottom+kt.offsetHeight>Xe)&&St.top>kt.offsetHeight?He=St.top-kt.offsetHeight:St.bottom+kt.offsetHeight<=Xe&&(He=St.bottom),pn+kt.offsetWidth>Fn&&(pn=Fn-kt.offsetWidth)}kt.style.top=He+"px",kt.style.left=kt.style.right="",Ce=="right"?(pn=Pe.sizer.clientWidth-kt.offsetWidth,kt.style.right="0px"):(Ce=="left"?pn=0:Ce=="middle"&&(pn=(Pe.sizer.clientWidth-kt.offsetWidth)/2),kt.style.left=pn+"px"),ne&&Vc(this,{left:pn,top:He,right:pn+kt.offsetWidth,bottom:He+kt.offsetHeight})},triggerOnKeyDown:Ss(wg),triggerOnKeyPress:Ss(Al),triggerOnKeyUp:bg,triggerOnMouseDown:Ss(Ml),execCommand:function(St){if(Hu.hasOwnProperty(St))return Hu[St].call(null,this)},triggerElectric:Ss(function(St){Ng(this,St)}),findPosH:function(St,kt,ne,ge){var Ce=1;kt<0&&(Ce=-1,kt=-kt);for(var Pe=yn(this.doc,St),He=0;He<kt&&(Pe=hd(this.doc,Pe,Ce,ne,ge),!Pe.hitSide);++He);return Pe},moveH:Ss(function(St,kt){var ne=this;this.extendSelectionsBy(function(ge){return ne.display.shift||ne.doc.extend||ge.empty()?hd(ne.doc,ge.head,St,kt,ne.options.rtlMoveVisually):St<0?ge.from():ge.to()},Oe)}),deleteH:Ss(function(St,kt){var ne=this.doc.sel,ge=this.doc;ne.somethingSelected()?ge.replaceSelection("",null,"+delete"):Ma(this,function(Ce){var Pe=hd(ge,Ce.head,St,kt,!1);return St<0?{from:Pe,to:Ce.head}:{from:Ce.head,to:Pe}})}),findPosV:function(St,kt,ne,ge){var Ce=1,Pe=ge;kt<0&&(Ce=-1,kt=-kt);for(var He=yn(this.doc,St),pn=0;pn<kt;++pn){var Xe=Mo(this,He,"div");if(Pe==null?Pe=Xe.left:Xe.left=Pe,He=Gu(this,Xe,Ce,ne),He.hitSide)break}return He},moveV:Ss(function(St,kt){var ne=this,ge=this.doc,Ce=[],Pe=!this.display.shift&&!ge.extend&&ge.sel.somethingSelected();if(ge.extendSelectionsBy(function(pn){if(Pe)return St<0?pn.from():pn.to();var Xe=Mo(ne,pn.head,"div");pn.goalColumn!=null&&(Xe.left=pn.goalColumn),Ce.push(Xe.left);var Fn=Gu(ne,Xe,St,kt);return kt=="page"&&pn==ge.sel.primary()&&Hd(ne,Ha(ne,Fn,"div").top-Xe.top),Fn},Oe),Ce.length)for(var He=0;He<ge.sel.ranges.length;He++)ge.sel.ranges[He].goalColumn=Ce[He]}),findWordAt:function(St){var kt=this.doc,ne=gn(kt,St.line).text,ge=St.ch,Ce=St.ch;if(ne){var Pe=this.getHelper(St,"wordChars");(St.sticky=="before"||Ce==ne.length)&&ge?--ge:++Ce;for(var He=ne.charAt(ge),pn=ce(He,Pe)?function(Xe){return ce(Xe,Pe)}:/\s/.test(He)?function(Xe){return/\s/.test(Xe)}:function(Xe){return!/\s/.test(Xe)&&!ce(Xe)};ge>0&&pn(ne.charAt(ge-1));)--ge;for(;Ce<ne.length&&pn(ne.charAt(Ce));)++Ce}return new ho(Ke(St.line,ge),Ke(St.line,Ce))},toggleOverwrite:function(St){St!=null&&St==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?we(this.display.cursorDiv,"CodeMirror-overwrite"):Dt(this.display.cursorDiv,"CodeMirror-overwrite"),Le(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==oe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Ss(function(St,kt){xh(this,St,kt)}),getScrollInfo:function(){var St=this.display.scroller;return{left:St.scrollLeft,top:St.scrollTop,height:St.scrollHeight-ea(this)-this.display.barHeight,width:St.scrollWidth-ea(this)-this.display.barWidth,clientHeight:dh(this),clientWidth:Ca(this)}},scrollIntoView:Ss(function(St,kt){St==null?(St={from:this.doc.sel.primary().head,to:null},kt==null&&(kt=this.options.cursorScrollMargin)):typeof St=="number"?St={from:Ke(St,0),to:null}:St.from==null&&(St={from:St,to:null}),St.to||(St.to=St.from),St.margin=kt||0,St.from.line!=null?_r(this,St):Wd(this,St.from,St.to,St.margin)}),setSize:Ss(function(St,kt){var ne=this,ge=function(Pe){return typeof Pe=="number"||/^\d+$/.test(String(Pe))?Pe+"px":Pe};St!=null&&(this.display.wrapper.style.width=ge(St)),kt!=null&&(this.display.wrapper.style.height=ge(kt)),this.options.lineWrapping&&ys(this);var Ce=this.display.viewFrom;this.doc.iter(Ce,this.display.viewTo,function(Pe){if(Pe.widgets){for(var He=0;He<Pe.widgets.length;He++)if(Pe.widgets[He].noHScroll){Br(ne,Ce,"widget");break}}++Ce}),this.curOp.forceUpdate=!0,Le(this,"refresh",this)}),operation:function(St){return to(this,St)},startOperation:function(){return Tu(this)},endOperation:function(){return ku(this)},refresh:Ss(function(){var St=this.display.cachedTextHeight;Io(this),this.curOp.forceUpdate=!0,Go(this),xh(this,this.doc.scrollLeft,this.doc.scrollTop),Iu(this.display),(St==null||Math.abs(St-su(this.display))>.5||this.options.lineWrapping)&&dr(this),Le(this,"refresh",this)}),swapDoc:Ss(function(St){var kt=this.doc;return kt.cm=null,this.state.selectingText&&this.state.selectingText(),Zd(this,St),Go(this),this.display.input.reset(),xh(this,St.scrollLeft,St.scrollTop),this.curOp.forceScroll=!0,hi(this,"swapDoc",this,kt),kt}),phrase:function(St){var kt=this.options.phrases;return kt&&Object.prototype.hasOwnProperty.call(kt,St)?kt[St]:St},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}},kn(it),it.registerHelper=function(St,kt,ne){wt.hasOwnProperty(St)||(wt[St]=it[St]={_global:[]}),wt[St][kt]=ne},it.registerGlobalHelper=function(St,kt,ne,ge){it.registerHelper(St,kt,ge),wt[St]._global.push({pred:ne,val:ge})}}function hd(it,lt,wt,St,kt){var ne=lt,ge=wt,Ce=gn(it,lt.line),Pe=kt&&it.direction=="rtl"?-wt:wt;function He(){var er=lt.line+Pe;return er<it.first||er>=it.first+it.size?!1:(lt=new Ke(er,lt.ch,lt.sticky),Ce=gn(it,er))}function pn(er){var Ui;if(St=="codepoint"){var sr=Ce.text.charCodeAt(lt.ch+(St>0?0:-1));isNaN(sr)?Ui=null:Ui=new Ke(lt.line,Math.max(0,Math.min(Ce.text.length,lt.ch+wt*(sr>=55296&&sr<56320?2:1))),-wt)}else kt?Ui=tf(it.cm,Ce,lt,wt):Ui=ns(Ce,lt,wt);if(Ui==null)if(!er&&He())lt=ad(kt,it.cm,Ce,lt.line,Pe);else return!1;else lt=Ui;return!0}if(St=="char"||St=="codepoint")pn();else if(St=="column")pn(!0);else if(St=="word"||St=="group")for(var Xe=null,Fn=St=="group",Dn=it.cm&&it.cm.getHelper(lt,"wordChars"),ni=!0;!(wt<0&&!pn(!ni));ni=!1){var ai=Ce.text.charAt(lt.ch)||`
|
|
|
`,wi=ce(ai,Dn)?"w":Fn&&ai==`
|
|
|
`?"n":!Fn||/\s/.test(ai)?null:"p";if(Fn&&!ni&&!wi&&(wi="s"),Xe&&Xe!=wi){wt<0&&(wt=1,pn(),lt.sticky="after");break}if(wi&&(Xe=wi),wt>0&&!pn(!ni))break}var Di=ed(it,lt,ne,ge,!0);return _e(ne,Di)&&(Di.hitSide=!0),Di}function Gu(it,lt,wt,St){var kt=it.doc,ne=lt.left,ge;if(St=="page"){var Ce=Math.min(it.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Pe=Math.max(Ce-.5*su(it.display),3);ge=(wt>0?lt.bottom:lt.top)+wt*Pe}else St=="line"&&(ge=wt>0?lt.bottom+3:lt.top-3);for(var He;He=jd(it,ne,ge),!!He.outside;){if(wt<0?ge<=0:ge>=kt.height){He.hitSide=!0;break}ge+=wt*5}return He}var So=function(it){this.cm=it,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Jt,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};So.prototype.init=function(it){var lt=this,wt=this,St=wt.cm,kt=wt.div=it.lineDiv;Ig(kt,St.options.spellcheck,St.options.autocorrect,St.options.autocapitalize);function ne(Ce){for(var Pe=Ce.target;Pe;Pe=Pe.parentNode){if(Pe==kt)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Pe.className))break}return!1}ye(kt,"paste",function(Ce){!ne(Ce)||Re(St,Ce)||kg(Ce,St)||Wt<=11&&setTimeout(cs(St,function(){return lt.updateFromDOM()}),20)}),ye(kt,"compositionstart",function(Ce){lt.composing={data:Ce.data,done:!1}}),ye(kt,"compositionupdate",function(Ce){lt.composing||(lt.composing={data:Ce.data,done:!1})}),ye(kt,"compositionend",function(Ce){lt.composing&&(Ce.data!=lt.composing.data&<.readFromDOMSoon(),lt.composing.done=!0)}),ye(kt,"touchstart",function(){return wt.forceCompositionEnd()}),ye(kt,"input",function(){lt.composing||lt.readFromDOMSoon()});function ge(Ce){if(!(!ne(Ce)||Re(St,Ce))){if(St.somethingSelected())Bh({lineWise:!1,text:St.getSelections()}),Ce.type=="cut"&&St.replaceSelection("",null,"cut");else if(St.options.lineWiseCopyCut){var Pe=Og(St);Bh({lineWise:!0,text:Pe.text}),Ce.type=="cut"&&St.operation(function(){St.setSelections(Pe.ranges,0,se),St.replaceSelection("",null,"cut")})}else return;if(Ce.clipboardData){Ce.clipboardData.clearData();var He=pa.text.join(`
|
|
|
`);if(Ce.clipboardData.setData("Text",He),Ce.clipboardData.getData("Text")==He){Ce.preventDefault();return}}var pn=Dg(),Xe=pn.firstChild;St.display.lineSpace.insertBefore(pn,St.display.lineSpace.firstChild),Xe.value=pa.text.join(`
|
|
|
`);var Fn=document.activeElement;Ne(Xe),setTimeout(function(){St.display.lineSpace.removeChild(pn),Fn.focus(),Fn==kt&&wt.showPrimarySelection()},50)}}ye(kt,"copy",ge),ye(kt,"cut",ge)},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,wt=lt.doc.sel.primary(),St=wt.from(),kt=wt.to();if(lt.display.viewTo==lt.display.viewFrom||St.line>=lt.display.viewTo||kt.line<lt.display.viewFrom){it.removeAllRanges();return}var ne=cd(lt,it.anchorNode,it.anchorOffset),ge=cd(lt,it.focusNode,it.focusOffset);if(!(ne&&!ne.bad&&ge&&!ge.bad&&cn(ln(ne,ge),St)==0&&cn(dn(ne,ge),kt)==0)){var Ce=lt.display.view,Pe=St.line>=lt.display.viewFrom&&cf(lt,St)||{node:Ce[0].measure.map[2],offset:0},He=kt.line<lt.display.viewTo&&cf(lt,kt);if(!He){var pn=Ce[Ce.length-1].measure,Xe=pn.maps?pn.maps[pn.maps.length-1]:pn.map;He={node:Xe[Xe.length-1],offset:Xe[Xe.length-2]-Xe[Xe.length-3]}}if(!Pe||!He){it.removeAllRanges();return}var Fn=it.rangeCount&&it.getRangeAt(0),Dn;try{Dn=Kt(Pe.node,Pe.offset,He.offset,He.node)}catch(ni){}Dn&&(!Rt&<.state.focused?(it.collapse(Pe.node,Pe.offset),Dn.collapsed||(it.removeAllRanges(),it.addRange(Dn))):(it.removeAllRanges(),it.addRange(Dn)),Fn&&it.anchorNode==null?it.addRange(Fn):Rt&&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 ue(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&&Bt&&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 wt=cd(lt,it.anchorNode,it.anchorOffset),St=cd(lt,it.focusNode,it.focusOffset);wt&&St&&to(lt,function(){Us(lt.doc,uu(wt,St),se),(wt.bad||St.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,wt=it.doc.sel.primary(),St=wt.from(),kt=wt.to();if(St.ch==0&&St.line>it.firstLine()&&(St=Ke(St.line-1,gn(it.doc,St.line-1).length)),kt.ch==gn(it.doc,kt.line).text.length&&kt.line<it.lastLine()&&(kt=Ke(kt.line+1,0)),St.line<lt.viewFrom||kt.line>lt.viewTo-1)return!1;var ne,ge,Ce;St.line==lt.viewFrom||(ne=Wa(it,St.line))==0?(ge=Me(lt.view[0].line),Ce=lt.view[0].node):(ge=Me(lt.view[ne].line),Ce=lt.view[ne-1].node.nextSibling);var Pe=Wa(it,kt.line),He,pn;if(Pe==lt.view.length-1?(He=lt.viewTo-1,pn=lt.lineDiv.lastChild):(He=Me(lt.view[Pe+1].line)-1,pn=lt.view[Pe+1].node.previousSibling),!Ce)return!1;for(var Xe=it.doc.splitLines(bc(it,Ce,pn,ge,He)),Fn=Pn(it.doc,Ke(ge,0),Ke(He,gn(it.doc,He).text.length));Xe.length>1&&Fn.length>1;)if(ke(Xe)==ke(Fn))Xe.pop(),Fn.pop(),He--;else if(Xe[0]==Fn[0])Xe.shift(),Fn.shift(),ge++;else break;for(var Dn=0,ni=0,ai=Xe[0],wi=Fn[0],Di=Math.min(ai.length,wi.length);Dn<Di&&ai.charCodeAt(Dn)==wi.charCodeAt(Dn);)++Dn;for(var er=ke(Xe),Ui=ke(Fn),sr=Math.min(er.length-(Xe.length==1?Dn:0),Ui.length-(Fn.length==1?Dn:0));ni<sr&&er.charCodeAt(er.length-ni-1)==Ui.charCodeAt(Ui.length-ni-1);)++ni;if(Xe.length==1&&Fn.length==1&&ge==St.line)for(;Dn&&Dn>St.ch&&er.charCodeAt(er.length-ni-1)==Ui.charCodeAt(Ui.length-ni-1);)Dn--,ni++;Xe[Xe.length-1]=er.slice(0,er.length-ni).replace(/^\u200b+/,""),Xe[0]=Xe[0].slice(Dn).replace(/\u200b+$/,"");var Lr=Ke(ge,Dn),Wi=Ke(He,Fn.length?ke(Fn).length-ni:0);if(Xe.length>1||Xe[0]||cn(Lr,Wi))return Mh(it.doc,Xe,Lr,Wi,"+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 Io(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 wt=ph(it,lt.line);if(!wt||wt.hidden)return null;var St=gn(it.doc,lt.line),kt=fh(wt,St,lt.line),ne=re(St,it.doc.direction),ge="left";if(ne){var Ce=gt(ne,lt.ch);ge=Ce%2?"right":"left"}var Pe=mh(kt.map,lt.ch,ge);return Pe.offset=Pe.collapse=="right"?Pe.end:Pe.start,Pe}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,wt,St,kt){var ne="",ge=!1,Ce=it.doc.lineSeparator(),Pe=!1;function He(Dn){return function(ni){return ni.id==Dn}}function pn(){ge&&(ne+=Ce,Pe&&(ne+=Ce),ge=Pe=!1)}function Xe(Dn){Dn&&(pn(),ne+=Dn)}function Fn(Dn){if(Dn.nodeType==1){var ni=Dn.getAttribute("cm-text");if(ni){Xe(ni);return}var ai=Dn.getAttribute("cm-marker"),wi;if(ai){var Di=it.findMarks(Ke(St,0),Ke(kt+1,0),He(+ai));Di.length&&(wi=Di[0].find(0))&&Xe(Pn(it.doc,wi.from,wi.to).join(Ce));return}if(Dn.getAttribute("contenteditable")=="false")return;var er=/^(pre|div|p|li|table|br)$/i.test(Dn.nodeName);if(!/^br$/i.test(Dn.nodeName)&&Dn.textContent.length==0)return;er&&pn();for(var Ui=0;Ui<Dn.childNodes.length;Ui++)Fn(Dn.childNodes[Ui]);/^(pre|p)$/i.test(Dn.nodeName)&&(Pe=!0),er&&(ge=!0)}else Dn.nodeType==3&&Xe(Dn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Fn(lt),lt!=wt;)lt=lt.nextSibling,Pe=!1;return ne}function cd(it,lt,wt){var St;if(lt==it.display.lineDiv){if(St=it.display.lineDiv.childNodes[wt],!St)return Pc(it.clipPos(Ke(it.display.viewTo-1)),!0);lt=null,wt=0}else for(St=lt;;St=St.parentNode){if(!St||St==it.display.lineDiv)return null;if(St.parentNode&&St.parentNode==it.display.lineDiv)break}for(var kt=0;kt<it.display.view.length;kt++){var ne=it.display.view[kt];if(ne.node==St)return sm(ne,lt,wt)}}function sm(it,lt,wt){var St=it.text.firstChild,kt=!1;if(!lt||!ue(St,lt))return Pc(Ke(Me(it.line),0),!0);if(lt==St&&(kt=!0,lt=St.childNodes[wt],wt=0,!lt)){var ne=it.rest?ke(it.rest):it.line;return Pc(Ke(Me(ne),ne.text.length),kt)}var ge=lt.nodeType==3?lt:null,Ce=lt;for(!ge&<.childNodes.length==1&<.firstChild.nodeType==3&&(ge=lt.firstChild,wt&&(wt=ge.nodeValue.length));Ce.parentNode!=St;)Ce=Ce.parentNode;var Pe=it.measure,He=Pe.maps;function pn(wi,Di,er){for(var Ui=-1;Ui<(He?He.length:0);Ui++)for(var sr=Ui<0?Pe.map:He[Ui],Lr=0;Lr<sr.length;Lr+=3){var Wi=sr[Lr+2];if(Wi==wi||Wi==Di){var jr=Me(Ui<0?it.line:it.rest[Ui]),Do=sr[Lr]+er;return(er<0||Wi!=wi)&&(Do=sr[Lr+(er?1:0)]),Ke(jr,Do)}}}var Xe=pn(ge,Ce,wt);if(Xe)return Pc(Xe,kt);for(var Fn=Ce.nextSibling,Dn=ge?ge.nodeValue.length-wt:0;Fn;Fn=Fn.nextSibling){if(Xe=pn(Fn,Fn.firstChild,0),Xe)return Pc(Ke(Xe.line,Xe.ch-Dn),kt);Dn+=Fn.textContent.length}for(var ni=Ce.previousSibling,ai=wt;ni;ni=ni.previousSibling){if(Xe=pn(ni,ni.firstChild,-1),Xe)return Pc(Ke(Xe.line,Xe.ch+ai),kt);ai+=ni.textContent.length}}var ss=function(it){this.cm=it,this.prevInput="",this.pollingFast=!1,this.polling=new Jt,this.hasSelection=!1,this.composing=null};ss.prototype.init=function(it){var lt=this,wt=this,St=this.cm;this.createField(it);var kt=this.textarea;it.wrapper.insertBefore(this.wrapper,it.wrapper.firstChild),vt&&(kt.style.width="0px"),ye(kt,"input",function(){Nt&&Wt>=9&<.hasSelection&&(lt.hasSelection=null),wt.poll()}),ye(kt,"paste",function(ge){Re(St,ge)||kg(ge,St)||(St.state.pasteIncoming=+new Date,wt.fastPoll())});function ne(ge){if(!Re(St,ge)){if(St.somethingSelected())Bh({lineWise:!1,text:St.getSelections()});else if(St.options.lineWiseCopyCut){var Ce=Og(St);Bh({lineWise:!0,text:Ce.text}),ge.type=="cut"?St.setSelections(Ce.ranges,null,se):(wt.prevInput="",kt.value=Ce.text.join(`
|
|
|
`),Ne(kt))}else return;ge.type=="cut"&&(St.state.cutIncoming=+new Date)}}ye(kt,"cut",ne),ye(kt,"copy",ne),ye(it.scroller,"paste",function(ge){if(!($s(it,ge)||Re(St,ge))){if(!kt.dispatchEvent){St.state.pasteIncoming=+new Date,wt.focus();return}var Ce=new Event("paste");Ce.clipboardData=ge.clipboardData,kt.dispatchEvent(Ce)}}),ye(it.lineSpace,"selectstart",function(ge){$s(it,ge)||Rn(ge)}),ye(kt,"compositionstart",function(){var ge=St.getCursor("from");wt.composing&&wt.composing.range.clear(),wt.composing={start:ge,range:St.markText(ge,St.getCursor("to"),{className:"CodeMirror-composing"})}}),ye(kt,"compositionend",function(){wt.composing&&(wt.poll(),wt.composing.range.clear(),wt.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,wt=it.doc,St=Lu(it);if(it.options.moveInputWithCursor){var kt=Mo(it,wt.sel.primary().head,"div"),ne=lt.wrapper.getBoundingClientRect(),ge=lt.lineDiv.getBoundingClientRect();St.teTop=Math.max(0,Math.min(lt.wrapper.clientHeight-10,kt.top+ge.top-ne.top)),St.teLeft=Math.max(0,Math.min(lt.wrapper.clientWidth-10,kt.left+ge.left-ne.left))}return St},ss.prototype.showSelection=function(it){var lt=this.cm,wt=lt.display;Ft(wt.cursorDiv,it.cursors),Ft(wt.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 wt=lt.getSelection();this.textarea.value=wt,lt.state.focused&&Ne(this.textarea),Nt&&Wt>=9&&(this.hasSelection=wt)}else it||(this.prevInput=this.textarea.value="",Nt&&Wt>=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||oe()!=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 wt(){var St=lt.poll();!St&&!it?(it=!0,lt.polling.set(60,wt)):(lt.pollingFast=!1,lt.slowPoll())}lt.polling.set(20,wt)},ss.prototype.poll=function(){var it=this,lt=this.cm,wt=this.textarea,St=this.prevInput;if(this.contextMenuPending||!lt.state.focused||te(wt)&&!St&&!this.composing||lt.isReadOnly()||lt.options.disableInput||lt.state.keySeq)return!1;var kt=wt.value;if(kt==St&&!lt.somethingSelected())return!1;if(Nt&&Wt>=9&&this.hasSelection===kt||st&&/[\uf700-\uf7ff]/.test(kt))return lt.display.input.reset(),!1;if(lt.doc.sel==lt.display.selForContextMenu){var ne=kt.charCodeAt(0);if(ne==8203&&!St&&(St="\u200B"),ne==8666)return this.reset(),this.cm.execCommand("undo")}for(var ge=0,Ce=Math.min(St.length,kt.length);ge<Ce&&St.charCodeAt(ge)==kt.charCodeAt(ge);)++ge;return to(lt,function(){ud(lt,kt.slice(ge),St.length-ge,null,it.composing?"*compose":null),kt.length>1e3||kt.indexOf(`
|
|
|
`)>-1?wt.value=it.prevInput="":it.prevInput=kt,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(){Nt&&Wt>=9&&(this.hasSelection=null),this.fastPoll()},ss.prototype.onContextMenu=function(it){var lt=this,wt=lt.cm,St=wt.display,kt=lt.textarea;lt.contextMenuPending&<.contextMenuPending();var ne=na(wt,it),ge=St.scroller.scrollTop;if(!ne||At)return;var Ce=wt.options.resetSelectionOnContextMenu;Ce&&wt.doc.sel.contains(ne)==-1&&cs(wt,Us)(wt.doc,uu(ne),se);var Pe=kt.style.cssText,He=lt.wrapper.style.cssText,pn=lt.wrapper.offsetParent.getBoundingClientRect();lt.wrapper.style.cssText="position: static",kt.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(it.clientY-pn.top-5)+"px; left: "+(it.clientX-pn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(Nt?"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),St.input.focus(),xt&&window.scrollTo(null,Xe),St.input.reset(),wt.somethingSelected()||(kt.value=lt.prevInput=" "),lt.contextMenuPending=Dn,St.selForContextMenu=wt.doc.sel,clearTimeout(St.detectingSelectAll);function Fn(){if(kt.selectionStart!=null){var ai=wt.somethingSelected(),wi="\u200B"+(ai?kt.value:"");kt.value="\u21DA",kt.value=wi,lt.prevInput=ai?"":"\u200B",kt.selectionStart=1,kt.selectionEnd=wi.length,St.selForContextMenu=wt.doc.sel}}function Dn(){if(lt.contextMenuPending==Dn&&(lt.contextMenuPending=!1,lt.wrapper.style.cssText=He,kt.style.cssText=Pe,Nt&&Wt<9&&St.scrollbars.setScrollTop(St.scroller.scrollTop=ge),kt.selectionStart!=null)){(!Nt||Nt&&Wt<9)&&Fn();var ai=0,wi=function(){St.selForContextMenu==wt.doc.sel&&kt.selectionStart==0&&kt.selectionEnd>0&<.prevInput=="\u200B"?cs(wt,es)(wt):ai++<10?St.detectingSelectAll=setTimeout(wi,500):(St.selForContextMenu=null,St.input.reset())};St.detectingSelectAll=setTimeout(wi,200)}}if(Nt&&Wt>=9&&Fn(),mt){li(it);var ni=function(){sn(window,"mouseup",ni),setTimeout(Dn,20)};ye(window,"mouseup",ni)}else setTimeout(Dn,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?Ue(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 wt=oe();lt.autofocus=wt==it||it.getAttribute("autofocus")!=null&&wt==document.body}function St(){it.value=Ce.getValue()}var kt;if(it.form&&(ye(it.form,"submit",St),!lt.leaveSubmitMethodAlone)){var ne=it.form;kt=ne.submit;try{var ge=ne.submit=function(){St(),ne.submit=kt,ne.submit(),ne.submit=ge}}catch(Pe){}}lt.finishInit=function(Pe){Pe.save=St,Pe.getTextArea=function(){return it},Pe.toTextArea=function(){Pe.toTextArea=isNaN,St(),it.parentNode.removeChild(Pe.getWrapperElement()),it.style.display="",it.form&&(sn(it.form,"submit",St),!lt.leaveSubmitMethodAlone&&typeof it.form.submit=="function"&&(it.form.submit=kt))}},it.style.display="none";var Ce=qr(function(Pe){return it.parentNode.insertBefore(Pe,it.nextSibling)},lt);return Ce}function Cc(it){it.off=sn,it.on=ye,it.wheelEventPixels=Ga,it.Doc=Fs,it.splitLines=ui,it.countColumn=de,it.findColumn=en,it.isWordChar=Ee,it.Pass=fe,it.signal=Le,it.Line=Xr,it.changeEnd=Bu,it.scrollbarModel=eg,it.Pos=Ke,it.cmpPos=cn,it.modes=Sr,it.mimeModes=Er,it.resolveMode=tn,it.getMode=nn,it.modeExtensions=Qe,it.extendMode=Fe,it.copyState=vn,it.startState=Ze,it.innerMode=bn,it.commands=Hu,it.keyMap=Aa,it.keyName=$p,it.isModifierKey=mc,it.lookupKey=nl,it.normalizeKeyMap=mg,it.StringStream=Ae,it.SharedTextMarker=Hl,it.TextMarker=un,it.LineWidget=du,it.e_preventDefault=Rn,it.e_stopPropagation=Yn,it.e_stop=li,it.addClass=we,it.contains=ue,it.rmClass=Dt,it.keyNames=Wl}rm(qr),Uu(qr);var fu="iter insert remove copy getEditor constructor".split(" ");for(var dd in Fs.prototype)Fs.prototype.hasOwnProperty(dd)&&ee(fu,dd)<0&&(qr.prototype[dd]=function(it){return function(){return it.apply(this.doc,arguments)}}(Fs.prototype[dd]));return kn(Fs),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=qn,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){Fs.prototype[it]=lt},qr.fromTextArea=am,Cc(qr),qr.version="5.58.2",qr})},25419:function(Nn,An,Gt){(function(Rt){Rt(Gt(89780),Gt(15525),Gt(98101))})(function(Rt){"use strict";Rt.defineMode("markdown",function(yt,Vt){var Yt=Rt.getMode(yt,"text/html"),Nt=Yt.name=="null";function Wt(de){if(Rt.findModeByName){var Jt=Rt.findModeByName(de);Jt&&(de=Jt.mime||Jt.mimes[0])}var ee=Rt.getMode(yt,de);return ee.name=="null"?null:ee}Vt.highlightFormatting===void 0&&(Vt.highlightFormatting=!1),Vt.maxBlockquoteDepth===void 0&&(Vt.maxBlockquoteDepth=0),Vt.taskLists===void 0&&(Vt.taskLists=!1),Vt.strikethrough===void 0&&(Vt.strikethrough=!1),Vt.emoji===void 0&&(Vt.emoji=!1),Vt.fencedCodeBlockHighlighting===void 0&&(Vt.fencedCodeBlockHighlighting=!0),Vt.fencedCodeBlockDefaultMode===void 0&&(Vt.fencedCodeBlockDefaultMode="text/plain"),Vt.xml===void 0&&(Vt.xml=!0),Vt.tokenTypeOverrides===void 0&&(Vt.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)&&Vt.tokenTypeOverrides[Ot]&&(xt[Ot]=Vt.tokenTypeOverrides[Ot]);var Bt=/^([*\-_])(?:\s*\1){2,}\s*$/,At=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,bt=/^\[(x| )\](?=\s)/i,Tt=Vt.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,It=/^ {0,3}(?:\={1,}|-{2,})\s*$/,vt=/^[^#!\[\]*_\\<>` "'(~:]+/,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(de,Jt,ee){return Jt.f=Jt.inline=ee,ee(de,Jt)}function ct(de,Jt,ee){return Jt.f=Jt.block=ee,ee(de,Jt)}function pt(de){return!de||!/\S/.test(de.string)}function mt(de){if(de.linkTitle=!1,de.linkHref=!1,de.linkText=!1,de.em=!1,de.strong=!1,de.strikethrough=!1,de.quote=0,de.indentedCode=!1,de.f==Dt){var Jt=Nt;if(!Jt){var ee=Rt.innerMode(Yt,de.htmlState);Jt=ee.mode.name=="xml"&&ee.state.tagStart===null&&!ee.state.context&&ee.state.tokenize.isInText}Jt&&(de.f=$t,de.block=Ct,de.htmlState=null)}return de.trailingSpace=0,de.trailingSpaceNewLine=!1,de.prevLine=de.thisLine,de.thisLine={stream:null},null}function Ct(de,Jt){var ee=de.column()===Jt.indentation,ae=pt(Jt.prevLine.stream),fe=Jt.indentedCode,se=Jt.prevLine.hr,De=Jt.list!==!1,Oe=(Jt.listStack[Jt.listStack.length-1]||0)+3;Jt.indentedCode=!1;var en=Jt.indentation;if(Jt.indentationDiff===null&&(Jt.indentationDiff=Jt.indentation,De)){for(Jt.list=null;en<Jt.listStack[Jt.listStack.length-1];)Jt.listStack.pop(),Jt.listStack.length?Jt.indentation=Jt.listStack[Jt.listStack.length-1]:Jt.list=!1;Jt.list!==!1&&(Jt.indentationDiff=en-Jt.listStack[Jt.listStack.length-1])}var We=!ae&&!se&&!Jt.prevLine.header&&(!De||!fe)&&!Jt.prevLine.fencedCodeEnd,rn=(Jt.list===!1||se||ae)&&Jt.indentation<=Oe&&de.match(Bt),ke=null;if(Jt.indentationDiff>=4&&(fe||Jt.prevLine.fencedCodeEnd||Jt.prevLine.header||ae))return de.skipToEnd(),Jt.indentedCode=!0,xt.code;if(de.eatSpace())return null;if(ee&&Jt.indentation<=Oe&&(ke=de.match(Tt))&&ke[1].length<=6)return Jt.quote=0,Jt.header=ke[1].length,Jt.thisLine.header=!0,Vt.highlightFormatting&&(Jt.formatting="header"),Jt.f=Jt.inline,Ft(Jt);if(Jt.indentation<=Oe&&de.eat(">"))return Jt.quote=ee?1:Jt.quote+1,Vt.highlightFormatting&&(Jt.formatting="quote"),de.eatSpace(),Ft(Jt);if(!rn&&!Jt.setext&&ee&&Jt.indentation<=Oe&&(ke=de.match(At))){var Ie=ke[1]?"ol":"ul";return Jt.indentation=en+de.current().length,Jt.list=!0,Jt.quote=0,Jt.listStack.push(Jt.indentation),Jt.em=!1,Jt.strong=!1,Jt.code=!1,Jt.strikethrough=!1,Vt.taskLists&&de.match(bt,!1)&&(Jt.taskList=!0),Jt.f=Jt.inline,Vt.highlightFormatting&&(Jt.formatting=["list","list-"+Ie]),Ft(Jt)}else{if(ee&&Jt.indentation<=Oe&&(ke=de.match(et,!0)))return Jt.quote=0,Jt.fencedEndRE=new RegExp(ke[1]+"+ *$"),Jt.localMode=Vt.fencedCodeBlockHighlighting&&Wt(ke[2]||Vt.fencedCodeBlockDefaultMode),Jt.localMode&&(Jt.localState=Rt.startState(Jt.localMode)),Jt.f=Jt.block=Ut,Vt.highlightFormatting&&(Jt.formatting="code-block"),Jt.code=-1,Ft(Jt);if(Jt.setext||(!We||!De)&&!Jt.quote&&Jt.list===!1&&!Jt.code&&!rn&&!tt.test(de.string)&&(ke=de.lookAhead(1))&&(ke=ke.match(It)))return Jt.setext?(Jt.header=Jt.setext,Jt.setext=0,de.skipToEnd(),Vt.highlightFormatting&&(Jt.formatting="header")):(Jt.header=ke[0].charAt(0)=="="?1:2,Jt.setext=Jt.header),Jt.thisLine.header=!0,Jt.f=Jt.inline,Ft(Jt);if(rn)return de.skipToEnd(),Jt.hr=!0,Jt.thisLine.hr=!0,xt.hr;if(de.peek()==="[")return ut(de,Jt,Se)}return ut(de,Jt,Jt.inline)}function Dt(de,Jt){var ee=Yt.token(de,Jt.htmlState);if(!Nt){var ae=Rt.innerMode(Yt,Jt.htmlState);(ae.mode.name=="xml"&&ae.state.tagStart===null&&!ae.state.context&&ae.state.tokenize.isInText||Jt.md_inside&&de.current().indexOf(">")>-1)&&(Jt.f=$t,Jt.block=Ct,Jt.htmlState=null)}return ee}function Ut(de,Jt){var ee=Jt.listStack[Jt.listStack.length-1]||0,ae=Jt.indentation<ee,fe=ee+3;if(Jt.fencedEndRE&&Jt.indentation<=fe&&(ae||de.match(Jt.fencedEndRE))){Vt.highlightFormatting&&(Jt.formatting="code-block");var se;return ae||(se=Ft(Jt)),Jt.localMode=Jt.localState=null,Jt.block=Ct,Jt.f=$t,Jt.fencedEndRE=null,Jt.code=0,Jt.thisLine.fencedCodeEnd=!0,ae?ct(de,Jt,Jt.block):se}else return Jt.localMode?Jt.localMode.token(de,Jt.localState):(de.skipToEnd(),xt.code)}function Ft(de){var Jt=[];if(de.formatting){Jt.push(xt.formatting),typeof de.formatting=="string"&&(de.formatting=[de.formatting]);for(var ee=0;ee<de.formatting.length;ee++)Jt.push(xt.formatting+"-"+de.formatting[ee]),de.formatting[ee]==="header"&&Jt.push(xt.formatting+"-"+de.formatting[ee]+"-"+de.header),de.formatting[ee]==="quote"&&(!Vt.maxBlockquoteDepth||Vt.maxBlockquoteDepth>=de.quote?Jt.push(xt.formatting+"-"+de.formatting[ee]+"-"+de.quote):Jt.push("error"))}if(de.taskOpen)return Jt.push("meta"),Jt.length?Jt.join(" "):null;if(de.taskClosed)return Jt.push("property"),Jt.length?Jt.join(" "):null;if(de.linkHref?Jt.push(xt.linkHref,"url"):(de.strong&&Jt.push(xt.strong),de.em&&Jt.push(xt.em),de.strikethrough&&Jt.push(xt.strikethrough),de.emoji&&Jt.push(xt.emoji),de.linkText&&Jt.push(xt.linkText),de.code&&Jt.push(xt.code),de.image&&Jt.push(xt.image),de.imageAltText&&Jt.push(xt.imageAltText,"link"),de.imageMarker&&Jt.push(xt.imageMarker)),de.header&&Jt.push(xt.header,xt.header+"-"+de.header),de.quote&&(Jt.push(xt.quote),!Vt.maxBlockquoteDepth||Vt.maxBlockquoteDepth>=de.quote?Jt.push(xt.quote+"-"+de.quote):Jt.push(xt.quote+"-"+Vt.maxBlockquoteDepth)),de.list!==!1){var ae=(de.listStack.length-1)%3;ae?ae===1?Jt.push(xt.list2):Jt.push(xt.list3):Jt.push(xt.list1)}return de.trailingSpaceNewLine?Jt.push("trailing-space-new-line"):de.trailingSpace&&Jt.push("trailing-space-"+(de.trailingSpace%2?"a":"b")),Jt.length?Jt.join(" "):null}function Qt(de,Jt){if(de.match(vt,!0))return Ft(Jt)}function $t(de,Jt){var ee=Jt.text(de,Jt);if(typeof ee!="undefined")return ee;if(Jt.list)return Jt.list=null,Ft(Jt);if(Jt.taskList){var ae=de.match(bt,!0)[1]===" ";return ae?Jt.taskOpen=!0:Jt.taskClosed=!0,Vt.highlightFormatting&&(Jt.formatting="task"),Jt.taskList=!1,Ft(Jt)}if(Jt.taskOpen=!1,Jt.taskClosed=!1,Jt.header&&de.match(/^#+$/,!0))return Vt.highlightFormatting&&(Jt.formatting="header"),Ft(Jt);var fe=de.next();if(Jt.linkTitle){Jt.linkTitle=!1;var se=fe;fe==="("&&(se=")"),se=(se+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var De="^\\s*(?:[^"+se+"\\\\]+|\\\\\\\\|\\\\.)"+se;if(de.match(new RegExp(De),!0))return xt.linkHref}if(fe==="`"){var Oe=Jt.formatting;Vt.highlightFormatting&&(Jt.formatting="code"),de.eatWhile("`");var en=de.current().length;if(Jt.code==0&&(!Jt.quote||en==1))return Jt.code=en,Ft(Jt);if(en==Jt.code){var We=Ft(Jt);return Jt.code=0,We}else return Jt.formatting=Oe,Ft(Jt)}else if(Jt.code)return Ft(Jt);if(fe==="\\"&&(de.next(),Vt.highlightFormatting)){var rn=Ft(Jt),ke=xt.formatting+"-escape";return rn?rn+" "+ke:ke}if(fe==="!"&&de.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return Jt.imageMarker=!0,Jt.image=!0,Vt.highlightFormatting&&(Jt.formatting="image"),Ft(Jt);if(fe==="["&&Jt.imageMarker&&de.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return Jt.imageMarker=!1,Jt.imageAltText=!0,Vt.highlightFormatting&&(Jt.formatting="image"),Ft(Jt);if(fe==="]"&&Jt.imageAltText){Vt.highlightFormatting&&(Jt.formatting="image");var rn=Ft(Jt);return Jt.imageAltText=!1,Jt.image=!1,Jt.inline=Jt.f=ue,rn}if(fe==="["&&!Jt.image)return Jt.linkText&&de.match(/^.*?\]/)||(Jt.linkText=!0,Vt.highlightFormatting&&(Jt.formatting="link")),Ft(Jt);if(fe==="]"&&Jt.linkText){Vt.highlightFormatting&&(Jt.formatting="link");var rn=Ft(Jt);return Jt.linkText=!1,Jt.inline=Jt.f=de.match(/\(.*?\)| ?\[.*?\]/,!1)?ue:$t,rn}if(fe==="<"&&de.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){Jt.f=Jt.inline=Kt,Vt.highlightFormatting&&(Jt.formatting="link");var rn=Ft(Jt);return rn?rn+=" ":rn="",rn+xt.linkInline}if(fe==="<"&&de.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){Jt.f=Jt.inline=Kt,Vt.highlightFormatting&&(Jt.formatting="link");var rn=Ft(Jt);return rn?rn+=" ":rn="",rn+xt.linkEmail}if(Vt.xml&&fe==="<"&&de.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ie=de.string.indexOf(">",de.pos);if(Ie!=-1){var je=de.string.substring(de.start,Ie);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(je)&&(Jt.md_inside=!0)}return de.backUp(1),Jt.htmlState=Rt.startState(Yt),ct(de,Jt,Dt)}if(Vt.xml&&fe==="<"&&de.match(/^\/\w*?>/))return Jt.md_inside=!1,"tag";if(fe==="*"||fe==="_"){for(var $e=1,me=de.pos==1?" ":de.string.charAt(de.pos-2);$e<3&&de.eat(fe);)$e++;var le=de.peek()||" ",Ee=!/\s/.test(le)&&(!st.test(le)||/\s/.test(me)||st.test(me)),ce=!/\s/.test(me)&&(!st.test(me)||/\s/.test(le)||st.test(le)),he=null,_t=null;if($e%2&&(!Jt.em&&Ee&&(fe==="*"||!ce||st.test(me))?he=!0:Jt.em==fe&&ce&&(fe==="*"||!Ee||st.test(le))&&(he=!1)),$e>1&&(!Jt.strong&&Ee&&(fe==="*"||!ce||st.test(me))?_t=!0:Jt.strong==fe&&ce&&(fe==="*"||!Ee||st.test(le))&&(_t=!1)),_t!=null||he!=null){Vt.highlightFormatting&&(Jt.formatting=he==null?"strong":_t==null?"em":"strong em"),he===!0&&(Jt.em=fe),_t===!0&&(Jt.strong=fe);var We=Ft(Jt);return he===!1&&(Jt.em=!1),_t===!1&&(Jt.strong=!1),We}}else if(fe===" "&&(de.eat("*")||de.eat("_"))){if(de.peek()===" ")return Ft(Jt);de.backUp(1)}if(Vt.strikethrough){if(fe==="~"&&de.eatWhile(fe)){if(Jt.strikethrough){Vt.highlightFormatting&&(Jt.formatting="strikethrough");var We=Ft(Jt);return Jt.strikethrough=!1,We}else if(de.match(/^[^\s]/,!1))return Jt.strikethrough=!0,Vt.highlightFormatting&&(Jt.formatting="strikethrough"),Ft(Jt)}else if(fe===" "&&de.match(/^~~/,!0)){if(de.peek()===" ")return Ft(Jt);de.backUp(2)}}if(Vt.emoji&&fe===":"&&de.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){Jt.emoji=!0,Vt.highlightFormatting&&(Jt.formatting="emoji");var Mt=Ft(Jt);return Jt.emoji=!1,Mt}return fe===" "&&(de.match(/^ +$/,!1)?Jt.trailingSpace++:Jt.trailingSpace&&(Jt.trailingSpaceNewLine=!0)),Ft(Jt)}function Kt(de,Jt){var ee=de.next();if(ee===">"){Jt.f=Jt.inline=$t,Vt.highlightFormatting&&(Jt.formatting="link");var ae=Ft(Jt);return ae?ae+=" ":ae="",ae+xt.linkInline}return de.match(/^[^>]+/,!0),xt.linkInline}function ue(de,Jt){if(de.eatSpace())return null;var ee=de.next();return ee==="("||ee==="["?(Jt.f=Jt.inline=we(ee==="("?")":"]"),Vt.highlightFormatting&&(Jt.formatting="link-string"),Jt.linkHref=!0,Ft(Jt)):"error"}var oe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function we(de){return function(Jt,ee){var ae=Jt.next();if(ae===de){ee.f=ee.inline=$t,Vt.highlightFormatting&&(ee.formatting="link-string");var fe=Ft(ee);return ee.linkHref=!1,fe}return Jt.match(oe[de]),ee.linkHref=!0,Ft(ee)}}function Se(de,Jt){return de.match(/^([^\]\\]|\\.)*\]:/,!1)?(Jt.f=Ne,de.next(),Vt.highlightFormatting&&(Jt.formatting="link"),Jt.linkText=!0,Ft(Jt)):ut(de,Jt,$t)}function Ne(de,Jt){if(de.match(/^\]:/,!0)){Jt.f=Jt.inline=pe,Vt.highlightFormatting&&(Jt.formatting="link");var ee=Ft(Jt);return Jt.linkText=!1,ee}return de.match(/^([^\]\\]|\\.)+/,!0),xt.linkText}function pe(de,Jt){return de.eatSpace()?null:(de.match(/^[^\s]+/,!0),de.peek()===void 0?Jt.linkTitle=!0:de.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),Jt.f=Jt.inline=$t,xt.linkHref+" url")}var Ue={startState:function(){return{f:Ct,prevLine:{stream:null},thisLine:{stream:null},block:Ct,htmlState:null,indentation:0,inline:$t,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(de){return{f:de.f,prevLine:de.prevLine,thisLine:de.thisLine,block:de.block,htmlState:de.htmlState&&Rt.copyState(Yt,de.htmlState),indentation:de.indentation,localMode:de.localMode,localState:de.localMode?Rt.copyState(de.localMode,de.localState):null,inline:de.inline,text:de.text,formatting:!1,linkText:de.linkText,linkTitle:de.linkTitle,linkHref:de.linkHref,code:de.code,em:de.em,strong:de.strong,strikethrough:de.strikethrough,emoji:de.emoji,header:de.header,setext:de.setext,hr:de.hr,taskList:de.taskList,list:de.list,listStack:de.listStack.slice(0),quote:de.quote,indentedCode:de.indentedCode,trailingSpace:de.trailingSpace,trailingSpaceNewLine:de.trailingSpaceNewLine,md_inside:de.md_inside,fencedEndRE:de.fencedEndRE}},token:function(de,Jt){if(Jt.formatting=!1,de!=Jt.thisLine.stream){if(Jt.header=0,Jt.hr=!1,de.match(/^\s*$/,!0))return mt(Jt),null;if(Jt.prevLine=Jt.thisLine,Jt.thisLine={stream:de},Jt.taskList=!1,Jt.trailingSpace=0,Jt.trailingSpaceNewLine=!1,!Jt.localState&&(Jt.f=Jt.block,Jt.f!=Dt)){var ee=de.match(/^\s*/,!0)[0].replace(/\t/g,rt).length;if(Jt.indentation=ee,Jt.indentationDiff=null,ee>0)return null}}return Jt.f(de,Jt)},innerMode:function(de){return de.block==Dt?{state:de.htmlState,mode:Yt}:de.localState?{state:de.localState,mode:de.localMode}:{state:de,mode:Ue}},indent:function(de,Jt,ee){return de.block==Dt&&Yt.indent?Yt.indent(de.htmlState,Jt,ee):de.localState&&de.localMode.indent?de.localMode.indent(de.localState,Jt,ee):Rt.Pass},blankLine:mt,getType:Ft,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Ue},"xml"),Rt.defineMIME("text/markdown","markdown"),Rt.defineMIME("text/x-markdown","markdown")})},98101:function(Nn,An,Gt){(function(Rt){Rt(Gt(89780))})(function(Rt){"use strict";Rt.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 yt=0;yt<Rt.modeInfo.length;yt++){var Vt=Rt.modeInfo[yt];Vt.mimes&&(Vt.mime=Vt.mimes[0])}Rt.findModeByMIME=function(Yt){Yt=Yt.toLowerCase();for(var Nt=0;Nt<Rt.modeInfo.length;Nt++){var Wt=Rt.modeInfo[Nt];if(Wt.mime==Yt)return Wt;if(Wt.mimes){for(var xt=0;xt<Wt.mimes.length;xt++)if(Wt.mimes[xt]==Yt)return Wt}}if(/\+xml$/.test(Yt))return Rt.findModeByMIME("application/xml");if(/\+json$/.test(Yt))return Rt.findModeByMIME("application/json")},Rt.findModeByExtension=function(Yt){Yt=Yt.toLowerCase();for(var Nt=0;Nt<Rt.modeInfo.length;Nt++){var Wt=Rt.modeInfo[Nt];if(Wt.ext){for(var xt=0;xt<Wt.ext.length;xt++)if(Wt.ext[xt]==Yt)return Wt}}},Rt.findModeByFileName=function(Yt){for(var Nt=0;Nt<Rt.modeInfo.length;Nt++){var Wt=Rt.modeInfo[Nt];if(Wt.file&&Wt.file.test(Yt))return Wt}var xt=Yt.lastIndexOf("."),Ot=xt>-1&&Yt.substring(xt+1,Yt.length);if(Ot)return Rt.findModeByExtension(Ot)},Rt.findModeByName=function(Yt){Yt=Yt.toLowerCase();for(var Nt=0;Nt<Rt.modeInfo.length;Nt++){var Wt=Rt.modeInfo[Nt];if(Wt.name.toLowerCase()==Yt)return Wt;if(Wt.alias){for(var xt=0;xt<Wt.alias.length;xt++)if(Wt.alias[xt].toLowerCase()==Yt)return Wt}}}})},67549:function(Nn,An,Gt){(function(Rt){Rt(Gt(89780))})(function(Rt){"use strict";Rt.defineMode("stex",function(yt,Vt){"use strict";function Yt(vt,et){vt.cmdState.push(et)}function Nt(vt){return vt.cmdState.length>0?vt.cmdState[vt.cmdState.length-1]:null}function Wt(vt){var et=vt.cmdState.pop();et&&et.closeBracket()}function xt(vt){for(var et=vt.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(vt,et,tt){return function(){this.name=vt,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 Bt={};Bt.importmodule=Ot("importmodule","tag",["string","builtin"]),Bt.documentclass=Ot("documentclass","tag",["","atom"]),Bt.usepackage=Ot("usepackage","tag",["atom"]),Bt.begin=Ot("begin","tag",["atom"]),Bt.end=Ot("end","tag",["atom"]),Bt.label=Ot("label","tag",["atom"]),Bt.ref=Ot("ref","tag",["atom"]),Bt.eqref=Ot("eqref","tag",["atom"]),Bt.cite=Ot("cite","tag",["atom"]),Bt.bibitem=Ot("bibitem","tag",["atom"]),Bt.Bibitem=Ot("Bibitem","tag",["atom"]),Bt.RBibitem=Ot("RBibitem","tag",["atom"]),Bt.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function At(vt,et){vt.f=et}function bt(vt,et){var tt;if(vt.match(/^\\[a-zA-Z@]+/)){var st=vt.current().slice(1);return tt=Bt.hasOwnProperty(st)?Bt[st]:Bt.DEFAULT,tt=new tt,Yt(et,tt),At(et,It),tt.style}if(vt.match(/^\\[$&%#{}_]/)||vt.match(/^\\[,;!\/\\]/))return"tag";if(vt.match("\\["))return At(et,function(ut,ct){return Tt(ut,ct,"\\]")}),"keyword";if(vt.match("\\("))return At(et,function(ut,ct){return Tt(ut,ct,"\\)")}),"keyword";if(vt.match("$$"))return At(et,function(ut,ct){return Tt(ut,ct,"$$")}),"keyword";if(vt.match("$"))return At(et,function(ut,ct){return Tt(ut,ct,"$")}),"keyword";var rt=vt.next();if(rt=="%")return vt.skipToEnd(),"comment";if(rt=="}"||rt=="]"){if(tt=Nt(et),tt)tt.closeBracket(rt),At(et,It);else return"error";return"bracket"}else return rt=="{"||rt=="["?(tt=Bt.DEFAULT,tt=new tt,Yt(et,tt),"bracket"):/\d/.test(rt)?(vt.eatWhile(/[\w.%]/),"atom"):(vt.eatWhile(/[\w\-_]/),tt=xt(et),tt.name=="begin"&&(tt.argument=vt.current()),tt.styleIdentifier())}function Tt(vt,et,tt){if(vt.eatSpace())return null;if(tt&&vt.match(tt))return At(et,bt),"keyword";if(vt.match(/^\\[a-zA-Z@]+/))return"tag";if(vt.match(/^[a-zA-Z]+/))return"variable-2";if(vt.match(/^\\[$&%#{}_]/)||vt.match(/^\\[,;!\/]/)||vt.match(/^[\^_&]/))return"tag";if(vt.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(vt.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var st=vt.next();return st=="{"||st=="}"||st=="["||st=="]"||st=="("||st==")"?"bracket":st=="%"?(vt.skipToEnd(),"comment"):"error"}function It(vt,et){var tt=vt.peek(),st;return tt=="{"||tt=="["?(st=Nt(et),st.openBracket(tt),vt.eat(tt),At(et,bt),"bracket"):/[ \t\r]/.test(tt)?(vt.eat(tt),null):(At(et,bt),Wt(et),bt(vt,et))}return{startState:function(){var vt=Vt.inMathMode?function(et,tt){return Tt(et,tt)}:bt;return{cmdState:[],f:vt}},copyState:function(vt){return{cmdState:vt.cmdState.slice(),f:vt.f}},token:function(vt,et){return et.f(vt,et)},blankLine:function(vt){vt.f=bt,vt.cmdState.length=0},lineComment:"%"}}),Rt.defineMIME("text/x-stex","stex"),Rt.defineMIME("text/x-latex","stex")})},15525:function(Nn,An,Gt){(function(Rt){Rt(Gt(89780))})(function(Rt){"use strict";var yt={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},Vt={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};Rt.defineMode("xml",function(Yt,Nt){var Wt=Yt.indentUnit,xt={},Ot=Nt.htmlMode?yt:Vt;for(var Bt in Ot)xt[Bt]=Ot[Bt];for(var Bt in Nt)xt[Bt]=Nt[Bt];var At,bt;function Tt(Kt,ue){function oe(Ne){return ue.tokenize=Ne,Ne(Kt,ue)}var we=Kt.next();if(we=="<")return Kt.eat("!")?Kt.eat("[")?Kt.match("CDATA[")?oe(et("atom","]]>")):null:Kt.match("--")?oe(et("comment","-->")):Kt.match("DOCTYPE",!0,!0)?(Kt.eatWhile(/[\w\._\-]/),oe(tt(1))):null:Kt.eat("?")?(Kt.eatWhile(/[\w\._\-]/),ue.tokenize=et("meta","?>"),"meta"):(At=Kt.eat("/")?"closeTag":"openTag",ue.tokenize=It,"tag bracket");if(we=="&"){var Se;return Kt.eat("#")?Kt.eat("x")?Se=Kt.eatWhile(/[a-fA-F\d]/)&&Kt.eat(";"):Se=Kt.eatWhile(/[\d]/)&&Kt.eat(";"):Se=Kt.eatWhile(/[\w\.\-:]/)&&Kt.eat(";"),Se?"atom":"error"}else return Kt.eatWhile(/[^&<]/),null}Tt.isInText=!0;function It(Kt,ue){var oe=Kt.next();if(oe==">"||oe=="/"&&Kt.eat(">"))return ue.tokenize=Tt,At=oe==">"?"endTag":"selfcloseTag","tag bracket";if(oe=="=")return At="equals",null;if(oe=="<"){ue.tokenize=Tt,ue.state=ct,ue.tagName=ue.tagStart=null;var we=ue.tokenize(Kt,ue);return we?we+" tag error":"tag error"}else return/[\'\"]/.test(oe)?(ue.tokenize=vt(oe),ue.stringStartCol=Kt.column(),ue.tokenize(Kt,ue)):(Kt.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function vt(Kt){var ue=function(oe,we){for(;!oe.eol();)if(oe.next()==Kt){we.tokenize=It;break}return"string"};return ue.isInAttribute=!0,ue}function et(Kt,ue){return function(oe,we){for(;!oe.eol();){if(oe.match(ue)){we.tokenize=Tt;break}oe.next()}return Kt}}function tt(Kt){return function(ue,oe){for(var we;(we=ue.next())!=null;){if(we=="<")return oe.tokenize=tt(Kt+1),oe.tokenize(ue,oe);if(we==">")if(Kt==1){oe.tokenize=Tt;break}else return oe.tokenize=tt(Kt-1),oe.tokenize(ue,oe)}return"meta"}}function st(Kt,ue,oe){this.prev=Kt.context,this.tagName=ue,this.indent=Kt.indented,this.startOfLine=oe,(xt.doNotIndent.hasOwnProperty(ue)||Kt.context&&Kt.context.noIndent)&&(this.noIndent=!0)}function rt(Kt){Kt.context&&(Kt.context=Kt.context.prev)}function ut(Kt,ue){for(var oe;;){if(!Kt.context||(oe=Kt.context.tagName,!xt.contextGrabbers.hasOwnProperty(oe)||!xt.contextGrabbers[oe].hasOwnProperty(ue)))return;rt(Kt)}}function ct(Kt,ue,oe){return Kt=="openTag"?(oe.tagStart=ue.column(),pt):Kt=="closeTag"?mt:ct}function pt(Kt,ue,oe){return Kt=="word"?(oe.tagName=ue.current(),bt="tag",Ut):xt.allowMissingTagName&&Kt=="endTag"?(bt="tag bracket",Ut(Kt,ue,oe)):(bt="error",pt)}function mt(Kt,ue,oe){if(Kt=="word"){var we=ue.current();return oe.context&&oe.context.tagName!=we&&xt.implicitlyClosed.hasOwnProperty(oe.context.tagName)&&rt(oe),oe.context&&oe.context.tagName==we||xt.matchClosing===!1?(bt="tag",Ct):(bt="tag error",Dt)}else return xt.allowMissingTagName&&Kt=="endTag"?(bt="tag bracket",Ct(Kt,ue,oe)):(bt="error",Dt)}function Ct(Kt,ue,oe){return Kt!="endTag"?(bt="error",Ct):(rt(oe),ct)}function Dt(Kt,ue,oe){return bt="error",Ct(Kt,ue,oe)}function Ut(Kt,ue,oe){if(Kt=="word")return bt="attribute",Ft;if(Kt=="endTag"||Kt=="selfcloseTag"){var we=oe.tagName,Se=oe.tagStart;return oe.tagName=oe.tagStart=null,Kt=="selfcloseTag"||xt.autoSelfClosers.hasOwnProperty(we)?ut(oe,we):(ut(oe,we),oe.context=new st(oe,we,Se==oe.indented)),ct}return bt="error",Ut}function Ft(Kt,ue,oe){return Kt=="equals"?Qt:(xt.allowMissing||(bt="error"),Ut(Kt,ue,oe))}function Qt(Kt,ue,oe){return Kt=="string"?$t:Kt=="word"&&xt.allowUnquoted?(bt="string",Ut):(bt="error",Ut(Kt,ue,oe))}function $t(Kt,ue,oe){return Kt=="string"?$t:Ut(Kt,ue,oe)}return{startState:function(Kt){var ue={tokenize:Tt,state:ct,indented:Kt||0,tagName:null,tagStart:null,context:null};return Kt!=null&&(ue.baseIndent=Kt),ue},token:function(Kt,ue){if(!ue.tagName&&Kt.sol()&&(ue.indented=Kt.indentation()),Kt.eatSpace())return null;At=null;var oe=ue.tokenize(Kt,ue);return(oe||At)&&oe!="comment"&&(bt=null,ue.state=ue.state(At||oe,Kt,ue),bt&&(oe=bt=="error"?oe+" error":bt)),oe},indent:function(Kt,ue,oe){var we=Kt.context;if(Kt.tokenize.isInAttribute)return Kt.tagStart==Kt.indented?Kt.stringStartCol+1:Kt.indented+Wt;if(we&&we.noIndent)return Rt.Pass;if(Kt.tokenize!=It&&Kt.tokenize!=Tt)return oe?oe.match(/^(\s*)/)[0].length:0;if(Kt.tagName)return xt.multilineTagIndentPastTag!==!1?Kt.tagStart+Kt.tagName.length+2:Kt.tagStart+Wt*(xt.multilineTagIndentFactor||1);if(xt.alignCDATA&&/<!\[CDATA\[/.test(ue))return 0;var Se=ue&&/^<(\/)?([\w_:\.-]*)/.exec(ue);if(Se&&Se[1])for(;we;)if(we.tagName==Se[2]){we=we.prev;break}else if(xt.implicitlyClosed.hasOwnProperty(we.tagName))we=we.prev;else break;else if(Se)for(;we;){var Ne=xt.contextGrabbers[we.tagName];if(Ne&&Ne.hasOwnProperty(Se[2]))we=we.prev;else break}for(;we&&we.prev&&!we.startOfLine;)we=we.prev;return we?we.indent+Wt:Kt.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:xt.htmlMode?"html":"xml",helperType:xt.htmlMode?"html":"xml",skipAttribute:function(Kt){Kt.state==Qt&&(Kt.state=Ut)},xmlCurrentTag:function(Kt){return Kt.tagName?{name:Kt.tagName,close:Kt.type=="closeTag"}:null},xmlCurrentContext:function(Kt){for(var ue=[],oe=Kt.context;oe;oe=oe.prev)oe.tagName&&ue.push(oe.tagName);return ue.reverse()}}}),Rt.defineMIME("text/xml","xml"),Rt.defineMIME("application/xml","xml"),Rt.mimeModes.hasOwnProperty("text/html")||Rt.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(Nn,An,Gt){"use strict";Gt.d(An,{$u:function(){return Bt},BD:function(){return $e},E9:function(){return Ot},FF:function(){return Mi},FJ:function(){return ct},Hn:function(){return ut},KX:function(){return mt},NB:function(){return Pt},S0:function(){return ke},UL:function(){return At},Vk:function(){return rt},Vm:function(){return gt},YI:function(){return Ie},ZA:function(){return Vt},Zt:function(){return bt},al:function(){return he},bn:function(){return ce},bx:function(){return me},g2:function(){return je},h1:function(){return Qt},hD:function(){return kn},l4:function(){return Wt},rU:function(){return dt},s_:function(){return le},uz:function(){return Ht},z6:function(){return Tt}}),Nn=Gt.hmd(Nn),function(){var te;function Yi(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function Ti(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:Yi(a)}}function or(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},Er;if(typeof Object.setPrototypeOf=="function")Er=Object.setPrototypeOf;else{var vr;t:{var qn={a:!0},tn={};try{tn.__proto__=qn,vr=tn.a;break t}catch(a){}vr=!1}Er=vr?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var nn=Er;function Qe(a,y){if(a.prototype=Sr(y.prototype),a.prototype.constructor=a,nn)nn(a,y);else for(var x in y)if(x!="prototype")if(Object.defineProperties){var b=Object.getOwnPropertyDescriptor(y,x);b&&Object.defineProperty(a,x,b)}else a[x]=y[x];a.QA=y.prototype}var Fe=typeof Gt.g!="undefined"&&Gt.g!=null?Gt.g:self,vn=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},bn=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=Fe;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&&bn(x,a,{writable:!0,value:y})}}Ze("Object.assign",function(a){return a||vn}),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 Ae=typeof globalThis=="object"&&globalThis||typeof Gt.g=="object"&&Gt.g.global===Gt.g&&Gt.g||typeof self=="object"&&self.self===self&&self||{};Ae.requestAnimationFrame===void 0&&(Ae.setImmediate===void 0?Ae.requestAnimationFrame=function(a){Ae.setTimeout(a,0)}:Ae.requestAnimationFrame=Ae.setImmediate);function gn(){}function Pn(a,y){var x=-1;return function(){var b=this,E=arguments;x!==-1&&Ae.clearTimeout(x),x=Un(function(){x=-1,a.apply(b,E)},y)}}function Un(a,y){return Ae.setTimeout(a,y)}function mn(a){return Ae.document.createElement(a)}function Me(a){throw Error(a)}function Ge(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),Me(a)}function fn(a,y,x,b){x=x===null?"*":typeof x=="string"?x:typeof x=="function"&&typeof x.className=="string"?x.className:"",b!==void 0&&(x+="."+b),Me(x+" is not in the range "+y+": "+a)}function In(a){Ae.console&&Ae.console.log(a)}function Ke(a){return typeof a=="object"&&a!==null}function cn(a){return Array.isArray(a)||Ae.NodeList&&a instanceof Ae.NodeList||Ae.HTMLCollection&&a instanceof Ae.HTMLCollection}function _e(a){return Array.prototype.slice.call(a)}function on(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):Me("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function dn(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):Me("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function ln(){var a=ii.pop();return a===void 0?[]:a}function xn(a){a.length=0,ii.push(a)}function yn(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 yn(a.constructor);return typeof a}function Mn(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 On(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 En(a,y,x){Object.defineProperty(Gr.prototype,a,{get:y,set:x})}function jn(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 ei=Ae.navigator!==void 0&&0<Ae.navigator.userAgent.indexOf("Trident/7"),pi=Ae.navigator!==void 0&&Ae.navigator.platform!==void 0&&Ae.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,ii=[];Object.freeze([]),gn.className="Util",gn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",gn.adym="gojs.net",gn.vfo="28e645fdb266",gn.className="Util";function qe(a,y,x){Bi(this),this.j=a,this.xa=y,this.o=x}qe.prototype.toString=function(){return"EnumValue."+this.xa};function Xn(a,y){return y==null||y===""?null:a[y]}Fe.Object.defineProperties(qe.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),qe.className="EnumValue";function ti(){this.ew=[]}ti.prototype.toString=function(){return this.ew.join("")},ti.prototype.add=function(a){a!==""&&this.ew.push(a)},ti.className="StringBuilder";function Qn(){}Qn.className="PropertyCollection";var Li={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){Ae.console&&Ae.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"},Fe.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 ki=null;fi.className="EmptyIterator",ki=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):ki},gi.prototype.de=function(){this.value=null},gi.prototype.toString=function(){return"SingletonIterator("+this.value+")"},Fe.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 oi(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}oi.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},oi.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},oi.prototype.Ad=function(){return this.next()},oi.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},oi.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},oi.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},oi.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},oi.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 Cn,a.s=x,a.xb(),a.iterator},oi.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 Cn,a.s=x,a.xb(),a.iterator},oi.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},oi.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},Fe.Object.defineProperties(oi.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}}}),oi.prototype.first=oi.prototype.first,oi.prototype.hasNext=oi.prototype.Ad,oi.prototype.next=oi.prototype.next,oi.prototype.reset=oi.prototype.reset,oi.className="ListIterator";function Fi(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Fi.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Fi.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)},Fi.prototype.Ad=function(){return this.next()},Fi.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},Fi.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},Fi.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},Fi.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},Fi.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 Cn,a.s=x,a.xb(),a.iterator},Fi.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 Cn,a.s=x,a.xb(),a.iterator},Fi.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Fi.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},Fe.Object.defineProperties(Fi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Fi.prototype.first=Fi.prototype.first,Fi.prototype.hasNext=Fi.prototype.Ad,Fi.prototype.next=Fi.prototype.next,Fi.prototype.reset=Fi.prototype.reset,Fi.className="ListIteratorBackwards";function Cn(a){Bi(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&Me("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}te=Cn.prototype,te.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},te.freeze=function(){return this._isFrozen=!0,this},te.ka=function(){return this._isFrozen=!1,this},te.toString=function(){return"List()#"+Hi(this)},te.add=function(a){return a===null?this:(this._isFrozen&&Ge(this,a),this.s.push(a),this.xb(),this)},te.push=function(a){this.add(a)},te.addAll=function(a){if(a===null)return this;this._isFrozen&&Ge(this);var y=this.s;if(cn(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},te.clear=function(){this._isFrozen&&Ge(this),this.s.length=0,this.xb()},te.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},te.has=function(a){return this.contains(a)},te.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},te.M=function(a){var y=this.s;return(0>a||a>=y.length)&&fn(a,"0 <= i < length",Cn,"elt:i"),y[a]},te.get=function(a){return this.M(a)},te.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&fn(a,"0 <= i < length",Cn,"setElt:i"),this._isFrozen&&Ge(this,a),x[a]=y},te.set=function(a,y){this.cd(a,y)},te.first=function(){var a=this.s;return a.length===0?null:a[0]},te.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},te.pop=function(){this._isFrozen&&Ge(this);var a=this.s;return 0<a.length?a.pop():null},Cn.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},Cn.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},Cn.prototype.each=function(a){for(var y=this.s,x=y.length,b=0;b<x;b++)a(y[b]);return this},Cn.prototype.map=function(a){for(var y=new Cn,x=[],b=this.s,E=b.length,z=0;z<E;z++)x.push(a(b[z]));return y.s=x,y.xb(),y},Cn.prototype.filter=function(a){for(var y=new Cn,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},te=Cn.prototype,te.Gb=function(a,y){0>a&&fn(a,">= 0",Cn,"insertAt:i"),this._isFrozen&&Ge(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},te.remove=function(a){if(a===null)return!1;this._isFrozen&&Ge(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)},te.delete=function(a){return this.remove(a)},te.mb=function(a){var y=this.s;(0>a||a>=y.length)&&fn(a,"0 <= i < length",Cn,"removeAt:i"),this._isFrozen&&Ge(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},te.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&&Ge(this);for(var E=a,z=y+1;z<b;)x[E++]=x[z++];return x.length=b-(y-a+1),this.xb(),this},Cn.prototype.copy=function(){var a=new Cn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},te=Cn.prototype,te.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),b=0;b<y;b++)x[b]=a[b];return x},te.Iv=function(){for(var a=new Ln,y=this.s,x=this.count,b=0;b<x;b++)a.add(y[b]);return a},te.sort=function(a){return this._isFrozen&&Ge(this),this.s.sort(a),this.xb(),this},te.zi=function(a,y,x){var b=this.s,E=b.length;y===void 0&&(y=0),x===void 0&&(x=E),this._isFrozen&&Ge(this);var z=x-y;if(1>=z)return this;if((0>y||y>=E-1)&&fn(y,"0 <= from < length",Cn,"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},te.reverse=function(){return this._isFrozen&&Ge(this),this.s.reverse(),this.xb(),this},Fe.Object.defineProperties(Cn.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 ki;var a=this.Sa;return a!==null?(a.reset(),a):new oi(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return ki;var a=this.Hg;return a!==null?(a.reset(),a):new Fi(this)}}}),Cn.prototype.reverse=Cn.prototype.reverse,Cn.prototype.sortRange=Cn.prototype.zi,Cn.prototype.sort=Cn.prototype.sort,Cn.prototype.toSet=Cn.prototype.Iv,Cn.prototype.toArray=Cn.prototype.Fa,Cn.prototype.removeRange=Cn.prototype.removeRange,Cn.prototype.removeAt=Cn.prototype.mb,Cn.prototype.delete=Cn.prototype.delete,Cn.prototype.remove=Cn.prototype.remove,Cn.prototype.insertAt=Cn.prototype.Gb,Cn.prototype.pop=Cn.prototype.pop,Cn.prototype.last=Cn.prototype.jc,Cn.prototype.first=Cn.prototype.first,Cn.prototype.set=Cn.prototype.set,Cn.prototype.setElt=Cn.prototype.cd,Cn.prototype.get=Cn.prototype.get,Cn.prototype.elt=Cn.prototype.M,Cn.prototype.indexOf=Cn.prototype.indexOf,Cn.prototype.has=Cn.prototype.has,Cn.prototype.contains=Cn.prototype.contains,Cn.prototype.clear=Cn.prototype.clear,Cn.prototype.addAll=Cn.prototype.addAll,Cn.prototype.push=Cn.prototype.push,Cn.prototype.add=Cn.prototype.add,Cn.prototype.thaw=Cn.prototype.ka,Cn.prototype.freeze=Cn.prototype.freeze,Cn.className="List";function nr(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}nr.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},nr.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)},nr.prototype.Ad=function(){return this.next()},nr.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},nr.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},nr.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},nr.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},nr.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new Cn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},nr.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new Cn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},nr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},nr.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},Fe.Object.defineProperties(nr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),nr.prototype.first=nr.prototype.first,nr.prototype.hasNext=nr.prototype.Ad,nr.prototype.next=nr.prototype.next,nr.prototype.reset=nr.prototype.reset,nr.className="SetIterator";function Ln(a){Bi(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Me("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}te=Ln.prototype,te.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},te.freeze=function(){return this._isFrozen=!0,this},te.ka=function(){return this._isFrozen=!1,this},te.toString=function(){return"Set()#"+Hi(this)},te.add=function(a){if(a===null)return this;this._isFrozen&&Ge(this,a);var y=a;return Ke(a)&&(y=wr(a)),this.Tb[y]===void 0&&(this.Sb++,a=new Xi(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},te.addAll=function(a){if(a===null)return this;if(this._isFrozen&&Ge(this),cn(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},te.contains=function(a){if(a===null)return!1;var y=a;return Ke(a)&&(y=Hi(a),y===void 0)?!1:this.Tb[y]!==void 0},te.has=function(a){return this.contains(a)},te.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},te.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},te.first=function(){var a=this.ea;return a===null?null:a.value},Ln.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},Ln.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},Ln.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},Ln.prototype.map=function(a){for(var y=new Ln,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},Ln.prototype.filter=function(a){for(var y=new Ln,x=this.ea;x!==null;){var b=x.value;a(b)&&y.add(b),x=x.va}return y},te=Ln.prototype,te.remove=function(a){if(a===null)return!1;this._isFrozen&&Ge(this,a);var y=a;if(Ke(a)&&(y=Hi(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},te.delete=function(a){return this.remove(a)},te.hp=function(a){if(a===null)return this;if(this._isFrozen&&Ge(this),cn(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},te.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&Ge(this);var y=new Ln;y.addAll(a),a=[];for(var x=this.iterator;x.next();){var b=x.value;y.contains(b)||a.push(b)}return this.hp(a),this},te.clear=function(){this._isFrozen&&Ge(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Ln.prototype.copy=function(){var a=new Ln,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},Ln.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,x=0,b;for(b in y)a[x]=y[b].value,x++;return a},Ln.prototype.Hv=function(){var a=new Cn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function Bi(a){a.__gohashid=Or++}function wr(a){var y=a.__gohashid;return y===void 0&&(y=Or++,a.__gohashid=y),y}function Hi(a){return a.__gohashid}Fe.Object.defineProperties(Ln.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return ki;var a=this.Sa;return a!==null?(a.reset(),a):new nr(this)}}}),Ln.prototype.toList=Ln.prototype.Hv,Ln.prototype.toArray=Ln.prototype.Fa,Ln.prototype.clear=Ln.prototype.clear,Ln.prototype.retainAll=Ln.prototype.pA,Ln.prototype.removeAll=Ln.prototype.hp,Ln.prototype.delete=Ln.prototype.delete,Ln.prototype.remove=Ln.prototype.remove,Ln.prototype.first=Ln.prototype.first,Ln.prototype.containsAny=Ln.prototype.Ty,Ln.prototype.containsAll=Ln.prototype.Sy,Ln.prototype.has=Ln.prototype.has,Ln.prototype.contains=Ln.prototype.contains,Ln.prototype.addAll=Ln.prototype.addAll,Ln.prototype.add=Ln.prototype.add,Ln.prototype.thaw=Ln.prototype.ka,Ln.prototype.freeze=Ln.prototype.freeze;var Or=1;Ln.className="Set",Ln.uniqueHash=Bi,Ln.hashIdUnique=wr,Ln.hashId=Hi;function pr(a){this.ma=a,this.qa=a.Ja,this.sa=null}pr.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},pr.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)},pr.prototype.Ad=function(){return this.next()},pr.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},pr.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},pr.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},pr.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},pr.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new Cn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},pr.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new Cn;for(y=y.ea;y!==null;){var b=y.key;a(b)&&x.add(b),y=y.va}return x.iterator},pr.prototype.de=function(){this.value=this.key=null,this.qa=-1},pr.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},Fe.Object.defineProperties(pr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),pr.prototype.first=pr.prototype.first,pr.prototype.hasNext=pr.prototype.Ad,pr.prototype.next=pr.prototype.next,pr.prototype.reset=pr.prototype.reset,pr.className="MapKeySetIterator";function Si(a){Ln.call(this),Bi(this),this._isFrozen=!0,this.ma=a}Qe(Si,Ln),te=Si.prototype,te.freeze=function(){return this},te.ka=function(){return this},te.toString=function(){return"MapKeySet("+this.ma.toString()+")"},te.add=function(){Me("This Set is read-only: "+this.toString())},te.contains=function(a){return this.ma.contains(a)},te.has=function(a){return this.contains(a)},te.remove=function(){Me("This Set is read-only: "+this.toString())},te.delete=function(a){return this.remove(a)},te.clear=function(){Me("This Set is read-only: "+this.toString())},te.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Si.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Si.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Si.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Si.prototype.map=function(a){for(var y=new Ln,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Si.prototype.filter=function(a){for(var y=new Ln,x=this.ma.ea;x!==null;){var b=x.key;a(b)&&y.add(b),x=x.va}return y},Si.prototype.copy=function(){return new Si(this.ma)},Si.prototype.Iv=function(){var a=new Ln,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Si.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},Si.prototype.Hv=function(){var a=new Cn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Fe.Object.defineProperties(Si.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?ki:new pr(this.ma)}}}),Si.prototype.toList=Si.prototype.Hv,Si.prototype.toArray=Si.prototype.Fa,Si.prototype.toSet=Si.prototype.Iv,Si.prototype.first=Si.prototype.first,Si.prototype.clear=Si.prototype.clear,Si.prototype.delete=Si.prototype.delete,Si.prototype.remove=Si.prototype.remove,Si.prototype.has=Si.prototype.has,Si.prototype.contains=Si.prototype.contains,Si.prototype.add=Si.prototype.add,Si.prototype.thaw=Si.prototype.ka,Si.prototype.freeze=Si.prototype.freeze,Si.className="MapKeySet";function vi(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}vi.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},vi.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},vi.prototype.Ad=function(){return this.next()},vi.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},vi.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},vi.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},vi.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},vi.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Cn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},vi.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new Cn;for(y=y.ea;y!==null;){var b=y.value;a(b)&&x.add(b),y=y.va}return x.iterator},vi.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},vi.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},Fe.Object.defineProperties(vi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),vi.prototype.first=vi.prototype.first,vi.prototype.hasNext=vi.prototype.Ad,vi.prototype.next=vi.prototype.next,vi.prototype.reset=vi.prototype.reset,vi.className="MapValueSetIterator";function Xi(a,y){this.key=a,this.value=y,this.ll=this.va=null}Xi.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Xi.className="KeyValuePair";function Zi(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Zi.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Zi.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)},Zi.prototype.Ad=function(){return this.next()},Zi.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},Zi.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},Zi.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},Zi.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},Zi.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Cn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},Zi.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new Cn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},Zi.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Zi.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},Fe.Object.defineProperties(Zi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Zi.prototype.first=Zi.prototype.first,Zi.prototype.hasNext=Zi.prototype.Ad,Zi.prototype.next=Zi.prototype.next,Zi.prototype.reset=Zi.prototype.reset,Zi.className="MapIterator";function Jn(a){Bi(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"&&Me("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}te=Jn.prototype,te.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},te.freeze=function(){return this._isFrozen=!0,this},te.ka=function(){return this._isFrozen=!1,this},te.toString=function(){return"Map()#"+Hi(this)},te.add=function(a,y){this._isFrozen&&Ge(this,a);var x=a;Ke(a)&&(x=wr(a));var b=this.Tb[x];return b===void 0?(this.Sb++,a=new Xi(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},te.set=function(a,y){return this.add(a,y)},te.addAll=function(a){if(a===null)return this;if(cn(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 Jn)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},te.first=function(){return this.ea},Jn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},Jn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},Jn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},Jn.prototype.map=function(a){for(var y=new Jn,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},Jn.prototype.filter=function(a){for(var y=new Jn,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},te=Jn.prototype,te.contains=function(a){var y=a;return Ke(a)&&(y=Hi(a),y===void 0)?!1:this.Tb[y]!==void 0},te.has=function(a){return this.contains(a)},te.I=function(a){var y=a;return Ke(a)&&(y=Hi(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},te.get=function(a){return this.I(a)},te.remove=function(a){if(a===null)return!1;this._isFrozen&&Ge(this,a);var y=a;if(Ke(a)&&(y=Hi(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},te.delete=function(a){return this.remove(a)},te.clear=function(){this._isFrozen&&Ge(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()},Jn.prototype.copy=function(){var a=new Jn,y=this.Tb,x;for(x in y){var b=y[x];a.add(b.key,b.value)}return a},Jn.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 Xi(E.key,E.value),x++}return y},Jn.prototype.Lf=function(){return new Si(this)},Fe.Object.defineProperties(Jn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return ki;var a=this.Sa;return a!==null?(a.reset(),a):new Zi(this)}},iteratorKeys:{get:function(){return 0>=this.count?ki:new pr(this)}},iteratorValues:{get:function(){if(0>=this.count)return ki;var a=this.jf;return a!==null?(a.reset(),a):new vi(this)}}}),Jn.prototype.toKeySet=Jn.prototype.Lf,Jn.prototype.toArray=Jn.prototype.Fa,Jn.prototype.clear=Jn.prototype.clear,Jn.prototype.delete=Jn.prototype.delete,Jn.prototype.remove=Jn.prototype.remove,Jn.prototype.get=Jn.prototype.get,Jn.prototype.getValue=Jn.prototype.I,Jn.prototype.has=Jn.prototype.has,Jn.prototype.contains=Jn.prototype.contains,Jn.prototype.first=Jn.prototype.first,Jn.prototype.addAll=Jn.prototype.addAll,Jn.prototype.set=Jn.prototype.set,Jn.prototype.add=Jn.prototype.add,Jn.prototype.thaw=Jn.prototype.ka,Jn.prototype.freeze=Jn.prototype.freeze,Jn.className="Map";function xe(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):Me("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var Ri,Ar,zi,ir,Oi;xe.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},xe.prototype.h=function(a,y){return this.x=a,this.y=y,this},xe.prototype.sg=function(a,y){return this.x=a,this.y=y,this},xe.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},xe.prototype.copy=function(){var a=new xe;return a.x=this.x,a.y=this.y,a},te=xe.prototype,te.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},te.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},te.freeze=function(){return this._isFrozen=!0,this},te.ka=function(){return Object.isFrozen(this)&&Me("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ci(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 xe(x,E)}return new xe}function tr(a){return a.x.toString()+" "+a.y.toString()}te.toString=function(){return"Point("+this.x+","+this.y+")"},te.D=function(a){return a instanceof xe?this.x===a.x&&this.y===a.y:!1},te.hi=function(a,y){return this.x===a&&this.y===y},te.Xa=function(a){return Je.B(this.x,a.x)&&Je.B(this.y,a.y)},te.add=function(a){return this.x+=a.x,this.y+=a.y,this},te.re=function(a){return this.x-=a.x,this.y-=a.y,this},te.offset=function(a,y){return this.x+=a,this.y+=y,this},xe.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},te=xe.prototype,te.scale=function(a,y){return this.x*=a,this.y*=y,this},te.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},te.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},te.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},te.ab=function(a){return yr(a.x-this.x,a.y-this.y)},te.direction=function(a,y){return yr(a-this.x,y-this.y)};function yr(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}te.Ry=function(a,y){return Je.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},te.fA=function(a,y,x,b){return Je.qh(a,y,x,b,this.x,this.y,this),this},te.gA=function(a,y){return Je.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},te.uA=function(a,y,x,b){return Je.No(this.x,this.y,a,y,x,b,this),this},te.vA=function(a,y){return Je.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},te.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},te.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},te.transform=function(a){return a.Ga(this),this};function _i(a,y){return y.Cd(a),a}function Mr(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 xi(a,y,x,b){return a=x-a,y=b-y,a*a+y*y}function di(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)}te.w=function(){return isFinite(this.x)&&isFinite(this.y)},xe.alloc=function(){var a=Ai.pop();return a===void 0?new xe:a},xe.allocAt=function(a,y){var x=Ai.pop();return x===void 0?new xe(a,y):(x.x=a,x.y=y,x)},xe.free=function(a){Ai.push(a)},xe.prototype.isReal=xe.prototype.w,xe.prototype.setSpot=xe.prototype.yi,xe.prototype.setRectSpot=xe.prototype.xi,xe.prototype.snapToGridPoint=xe.prototype.vA,xe.prototype.snapToGrid=xe.prototype.uA,xe.prototype.projectOntoLineSegmentPoint=xe.prototype.gA,xe.prototype.projectOntoLineSegment=xe.prototype.fA,xe.intersectingLineSegments=function(a,y,x,b,E,z,nt,ot){return Je.Rl(a,y,x,b,E,z,nt,ot)},xe.prototype.compareWithLineSegmentPoint=xe.prototype.Ry,xe.compareWithLineSegment=function(a,y,x,b,E,z){return Je.Fl(a,y,x,b,E,z)},xe.prototype.direction=xe.prototype.direction,xe.prototype.directionPoint=xe.prototype.ab,xe.prototype.normalize=xe.prototype.normalize,xe.prototype.distanceSquared=xe.prototype.zd,xe.prototype.distanceSquaredPoint=xe.prototype.Bf,xe.prototype.scale=xe.prototype.scale,xe.prototype.rotate=xe.prototype.rotate,xe.prototype.offset=xe.prototype.offset,xe.prototype.subtract=xe.prototype.re,xe.prototype.add=xe.prototype.add,xe.prototype.equalsApprox=xe.prototype.Xa,xe.prototype.equalTo=xe.prototype.hi,xe.prototype.equals=xe.prototype.D,xe.prototype.set=xe.prototype.set,xe.prototype.setTo=xe.prototype.sg;var Ai=[];xe.className="Point",xe.parse=Ci,xe.stringify=tr,xe.distanceLineSegmentSquared=Mr,xe.distanceSquared=xi,xe.direction=di,xe.Origin=Ri=new xe(0,0).ja(),xe.InfiniteTopLeft=Ar=new xe(-1/0,-1/0).ja(),xe.InfiniteBottomRight=zi=new xe(1/0,1/0).ja(),xe.SixPoint=ir=new xe(6,6).ja(),xe.NoPoint=Oi=new xe(NaN,NaN).ja(),xe.parse=Ci,xe.stringify=tr,xe.distanceLineSegmentSquared=Mr,xe.distanceSquared=xi,xe.direction=di;function zn(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):Me("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var hr,Tr,Qr,kr,Xr,io,Wo;zn.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},zn.prototype.h=function(a,y){return this.width=a,this.height=y,this},zn.prototype.sg=function(a,y){return this.width=a,this.height=y,this},zn.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},zn.prototype.copy=function(){var a=new zn;return a.width=this.width,a.height=this.height,a},te=zn.prototype,te.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},te.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},te.freeze=function(){return this._isFrozen=!0,this},te.ka=function(){return Object.isFrozen(this)&&Me("cannot thaw constant: "+this),this._isFrozen=!1,this};function vo(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var b=a[y++];b&&(x=parseFloat(b));for(var E=0;a[y]==="";)y++;return(b=a[y++])&&(E=parseFloat(b)),new zn(x,E)}return new zn}function Uo(a){return a.width.toString()+" "+a.height.toString()}te.toString=function(){return"Size("+this.width+","+this.height+")"},te.D=function(a){return a instanceof zn?this.width===a.width&&this.height===a.height:!1},te.hi=function(a,y){return this.width===a&&this.height===y},te.Xa=function(a){return Je.B(this.width,a.width)&&Je.B(this.height,a.height)},te.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},te.w=function(){return isFinite(this.width)&&isFinite(this.height)},zn.alloc=function(){var a=To.pop();return a===void 0?new zn:a},zn.free=function(a){To.push(a)},zn.prototype.isReal=zn.prototype.w,zn.prototype.inflate=zn.prototype.Bc,zn.prototype.equalsApprox=zn.prototype.Xa,zn.prototype.equalTo=zn.prototype.hi,zn.prototype.equals=zn.prototype.D,zn.prototype.set=zn.prototype.set,zn.prototype.setTo=zn.prototype.sg;var To=[];zn.className="Size",zn.parse=vo,zn.stringify=Uo,zn.ZeroSize=hr=new zn(0,0).ja(),zn.OneSize=Tr=new zn(1,1).ja(),zn.SixSize=Qr=new zn(6,6).ja(),zn.EightSize=kr=new zn(8,8).ja(),zn.TenSize=Xr=new zn(10,10).ja(),zn.InfiniteSize=io=new zn(1/0,1/0).ja(),zn.NoSize=Wo=new zn(NaN,NaN).ja(),zn.parse=vo,zn.stringify=Uo;function Sn(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 xe?(x=a.x,a=a.y,y instanceof xe?(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 zn?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):Me("Incorrect second argument supplied to Rect constructor "+y)):Me("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}te=Sn.prototype,te.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},te.h=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this};function yo(a,y,x){a.width=y,a.height=x}te.sg=function(a,y,x,b){return this.x=a,this.y=y,this.width=x,this.height=b,this},te.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},te.dd=function(a){return this.x=a.x,this.y=a.y,this},te.tA=function(a){return this.width=a.width,this.height=a.height,this},Sn.prototype.copy=function(){var a=new Sn;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},te=Sn.prototype,te.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},te.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},te.freeze=function(){return this._isFrozen=!0,this},te.ka=function(){return Object.isFrozen(this)&&Me("cannot thaw constant: "+this),this._isFrozen=!1,this};function da(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 Sn(x,E,z,nt)}return new Sn}function _s(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}te.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},te.D=function(a){return a instanceof Sn?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},te.hi=function(a,y,x,b){return this.x===a&&this.y===y&&this.width===x&&this.height===b},te.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 mr(a,y){return Je.$(a.x,y.x)&&Je.$(a.y,y.y)&&Je.$(a.width,y.width)&&Je.$(a.height,y.height)}te.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},te.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},te.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},te.offset=function(a,y){return this.x+=a,this.y+=y,this},te.Bc=function(a,y){return Wr(this,y,a,y,a)},te.Co=function(a){return Wr(this,a.top,a.right,a.bottom,a.left)},te.Fv=function(a){return Wr(this,-a.top,-a.right,-a.bottom,-a.left)},te.Hz=function(a,y,x,b){return Wr(this,a,y,x,b)};function Wr(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}te.Ex=function(a){return so(this,a.x,a.y,a.width,a.height)},te.Uu=function(a,y,x,b){return so(this,a,y,x,b)};function so(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}te.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},te.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 zr(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))}te.Ye=function(a){return qi(this,a.x,a.y,0,0)},te.ed=function(a){return qi(this,a.x,a.y,a.width,a.height)},te.Kv=function(a,y,x,b){return x===void 0&&(x=0),b===void 0&&(b=0),qi(this,a,y,x,b)};function qi(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}te.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 Ji(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 ao(a,y,x,b,E,z,nt,ot){return a>nt+E||E>x+a?!1:!(y>ot+z||z>b+y)}te.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},te.Mz=function(){return this.width===0&&this.height===0},Sn.alloc=function(){var a=fr.pop();return a===void 0?new Sn:a},Sn.allocAt=function(a,y,x,b){var E=fr.pop();return E===void 0?new Sn(a,y,x,b):E.h(a,y,x,b)},Sn.free=function(a){fr.push(a)},Fe.Object.defineProperties(Sn.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 xe(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new zn(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new xe(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}}}),Sn.prototype.isEmpty=Sn.prototype.Mz,Sn.prototype.isReal=Sn.prototype.w,Sn.intersectsLineSegment=function(a,y,x,b,E,z,nt,ot){return Je.Fx(a,y,x,b,E,z,nt,ot)},Sn.prototype.setSpot=Sn.prototype.yi,Sn.prototype.union=Sn.prototype.Kv,Sn.prototype.unionRect=Sn.prototype.ed,Sn.prototype.unionPoint=Sn.prototype.Ye,Sn.prototype.intersects=Sn.prototype.Vu,Sn.prototype.intersectsRect=Sn.prototype.Yc,Sn.prototype.intersect=Sn.prototype.Uu,Sn.prototype.intersectRect=Sn.prototype.Ex,Sn.prototype.grow=Sn.prototype.Hz,Sn.prototype.subtractMargin=Sn.prototype.Fv,Sn.prototype.addMargin=Sn.prototype.Co,Sn.prototype.inflate=Sn.prototype.Bc,Sn.prototype.offset=Sn.prototype.offset,Sn.prototype.contains=Sn.prototype.contains,Sn.prototype.containsRect=Sn.prototype.Re,Sn.prototype.containsPoint=Sn.prototype.ca,Sn.prototype.equalsApprox=Sn.prototype.Xa,Sn.prototype.equalTo=Sn.prototype.hi,Sn.prototype.equals=Sn.prototype.D,Sn.prototype.setSize=Sn.prototype.tA,Sn.prototype.setPoint=Sn.prototype.dd,Sn.prototype.set=Sn.prototype.set,Sn.prototype.setTo=Sn.prototype.sg;var $i=null,cr=null,fr=[];Sn.className="Rect",Sn.parse=da,Sn.stringify=_s,Sn.contains=Ji,Sn.intersects=ao,Sn.ZeroRect=$i=new Sn(0,0,0,0).ja(),Sn.NoRect=cr=new Sn(NaN,NaN,NaN,NaN).ja(),Sn.parse=da,Sn.stringify=_s,Sn.contains=Ji,Sn.intersects=ao;function hi(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):Me("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+b),this._isFrozen=!1}hi.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},hi.prototype.sg=function(a,y,x,b){return this.top=a,this.right=y,this.bottom=x,this.left=b,this},hi.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},hi.prototype.copy=function(){var a=new hi;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},te=hi.prototype,te.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},te.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},te.freeze=function(){return this._isFrozen=!0,this},te.ka=function(){return Object.isFrozen(this)&&Me("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 hi;for(var E=NaN;a[y]==="";)y++;if((b=a[y++])&&(E=parseFloat(b)),isNaN(E))return new hi(x);for(var z=NaN;a[y]==="";)y++;if((b=a[y++])&&(z=parseFloat(b)),isNaN(z))return new hi(x,E);for(var nt=NaN;a[y]==="";)y++;return(b=a[y++])&&(nt=parseFloat(b)),isNaN(nt)?new hi(x,E):new hi(x,E,z,nt)}return new hi}function bo(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}te.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},te.D=function(a){return a instanceof hi?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},te.hi=function(a,y,x,b){return this.top===a&&this.right===y&&this.bottom===x&&this.left===b},te.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)},te.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},hi.alloc=function(){var a=Pa.pop();return a===void 0?new hi:a},hi.free=function(a){Pa.push(a)},hi.prototype.isReal=hi.prototype.w,hi.prototype.equalsApprox=hi.prototype.Xa,hi.prototype.equalTo=hi.prototype.hi,hi.prototype.equals=hi.prototype.D,hi.prototype.set=hi.prototype.set,hi.prototype.setTo=hi.prototype.sg;var os=null,Js=null,Pa=[];hi.className="Margin",hi.parse=no,hi.stringify=bo,hi.ZeroMargin=os=new hi(0,0,0,0).ja(),hi.TwoMargin=Js=new hi(2,2,2,2).ja(),hi.parse=no,hi.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 ro,ko,ba,iu,ja,ar,ch,Qs,$s,ta,Bl,ru,ea,Ca,dh,oc,fh,Gc,gh,ph,Rl,za,sc,mh,vh,Pr,Kr,vs,ys,Go,Co,No,Ko,Ro,bl,Ha;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},te=si.prototype,te.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},te.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},te.freeze=function(){return this._isFrozen=!0,this},te.ka=function(){return Object.isFrozen(this)&&Me("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 ro;if(a==="TopLeft")return ko;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return ba;if(a==="TopRight")return iu;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return ja;if(a==="Center")return ar;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 Ca;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 za;if(a==="NotRightSide")return sc;if(a==="NotBottomSide")return mh;if(a==="AllSides")return vh;if(a==="Default")return Pr;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()}te.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(ro)?"None":this.D(ko)?"TopLeft":this.D(ba)?"Top":this.D(iu)?"TopRight":this.D(ja)?"Left":this.D(ar)?"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(Ca)?"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(za)?"NotLeftSide":this.D(sc)?"NotRightSide":this.D(mh)?"NotBottomSide":this.D(vh)?"AllSides":this.D(Pr)?"Default":"None"},te.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},te.gv=function(){return new si(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},te.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(Kr))a=ru;else if(a.D(vs))a=ea;else if(a.D(ys))a=Bl;else if(a.D(Go))a=Ca;else return!1;return a=a.offsetY,(this.offsetY&a)===a},te.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},te.Mc=function(){return isNaN(this.x)||isNaN(this.y)},te.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},te.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},te.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=ro=Mo(new si(0,0,0,0),0).ja(),si.Default=Pr=Mo(new si(0,0,-1,0),-1).ja(),si.TopLeft=ko=new si(0,0,0,0).ja(),si.TopCenter=ba=new si(.5,0,0,0).ja(),si.TopRight=iu=new si(1,0,0,0).ja(),si.LeftCenter=ja=new si(0,.5,0,0).ja(),si.Center=ar=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=ba,si.MiddleLeft=No=ja,si.MiddleRight=Ko=ch,si.MiddleBottom=Ro=$s,si.Top=ys=ba,si.Left=Kr=ja,si.Right=vs=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=Ca=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=za=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(),Ha=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},te=Vi.prototype,te.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},te.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},te.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)},te.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))},te.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))},te.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,ft=this.dy,Lt=y*z+x*ot+ht,jt=y*nt+x*at+ft,Xt=b*z+x*ot+ht,qt=b*nt+x*at+ft;return x=y*z+E*ot+ht,y=y*nt+E*at+ft,z=b*z+E*ot+ht,b=b*nt+E*at+ft,E=Math.min(Lt,Xt),Lt=Math.max(Lt,Xt),Xt=Math.min(jt,qt),jt=Math.max(jt,qt),E=Math.min(E,x),Lt=Math.max(Lt,x),Xt=Math.min(Xt,y),jt=Math.max(jt,y),E=Math.min(E,z),Lt=Math.max(Lt,z),Xt=Math.min(Xt,b),jt=Math.max(jt,b),a.h(E,Xt,Lt-E,jt-Xt),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,ft=b;else ht=b,ft=y;if(a===x)return ht<=nt&&nt<=ft&&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&&(ft+=E,ht-=E,ht<=nt&&nt<=ft))if(at-ot>ft-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,ft,Lt){if(Je.Yb(a,y,nt,ot,Lt,x,b)&&Je.Yb(a,y,nt,ot,Lt,E,z))return Je.Yb(a,y,nt,ot,Lt,ht,ft);var jt=(a+x)/2,Xt=(y+b)/2,qt=(x+E)/2,ie=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(jt+qt)/2,x=(Xt+ie)/2,qt=(qt+E)/2,ie=(ie+z)/2;var be=(b+qt)/2,ve=(x+ie)/2;return Je.cs(a,y,jt,Xt,b,x,be,ve,at,ht,ft,Lt)||Je.cs(be,ve,qt,ie,E,z,nt,ot,at,ht,ft,Lt)},ax:function(a,y,x,b,E,z,nt,ot,at){var ht=(x+E)/2,ft=(b+z)/2;return at.h((((a+x)/2+ht)/2+(ht+(E+nt)/2)/2)/2,(((y+b)/2+ft)/2+(ft+(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 di(((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))qi(ht,a,y,0,0),qi(ht,nt,ot,0,0);else{var ft=(a+x)/2,Lt=(y+b)/2,jt=(x+E)/2,Xt=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(ft+jt)/2,x=(Lt+Xt)/2,jt=(jt+E)/2,Xt=(Xt+z)/2;var qt=(b+jt)/2,ie=(x+Xt)/2;Je.Dl(a,y,ft,Lt,b,x,qt,ie,at,ht),Je.Dl(qt,ie,jt,Xt,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 ft=(a+x)/2,Lt=(y+b)/2,jt=(x+E)/2,Xt=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(ft+jt)/2,x=(Lt+Xt)/2,jt=(jt+E)/2,Xt=(Xt+z)/2;var qt=(b+jt)/2,ie=(x+Xt)/2;Je.Qe(a,y,ft,Lt,b,x,qt,ie,at,ht),Je.Qe(qt,ie,jt,Xt,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 ft=(a+x)/2,Lt=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var jt=(ft+x)/2,Xt=(Lt+b)/2;return Je.jv(a,y,ft,Lt,jt,Xt,nt,ot,at,ht)||Je.jv(jt,Xt,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))qi(ot,a,y,0,0),qi(ot,E,z,0,0);else{var at=(a+x)/2,ht=(y+b)/2;x=(x+E)/2,b=(b+z)/2;var ft=(at+x)/2,Lt=(ht+b)/2;Je.iv(a,y,at,ht,ft,Lt,nt,ot),Je.iv(ft,Lt,x,b,E,z,nt,ot)}return ot},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(a-nt)*(ht-Lt)-(y-ot)*(at-ft),jt===0)return Xt;var qt=((a*ot-y*nt)*(at-ft)-(a-nt)*(at*Lt-ht*ft))/jt,ie=((a*ot-y*nt)*(ht-Lt)-(y-ot)*(at*Lt-ht*ft))/jt;if(qt>=ft)return Xt;if((at>ft?at-ft:ft-at)<(ht>Lt?ht-Lt:Lt-ht)){if(y<ot?(at=y,a=ot):(at=ot,a=y),ie<at||ie>a)return Xt}else if(a<nt?(at=a,a=nt):at=nt,qt<at||qt>a)return Xt;0<jt?Xt++:0>jt&&Xt--}else{qt=(a+x)/2,ie=(y+b)/2;var be=(x+E)/2,ve=(b+z)/2;E=(E+nt)/2,z=(z+ot)/2,b=(qt+be)/2,x=(ie+ve)/2,be=(be+E)/2,ve=(ve+z)/2;var Te=(b+be)/2,Be=(x+ve)/2;Xt+=Je.Fo(a,y,qt,ie,b,x,Te,Be,at,ht,ft,Lt,jt),Xt+=Je.Fo(Te,Be,be,ve,E,z,nt,ot,at,ht,ft,Lt,jt)}return Xt},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 ft(be,ve){var Te=(be-a)*(be-a)+(ve-y)*(ve-y);Te<Lt&&(Lt=Te,at.h(be,ve))}var Lt=1/0;ft(at.x,at.y);var jt=0,Xt=0,qt=0,ie=0;if(E<nt?(jt=E,Xt=nt):(jt=nt,Xt=E),z<ot?(qt=E,ie=nt):(qt=nt,ie=E),jt=(Xt-jt)/2+ht,ht=(ie-qt)/2+ht,E=(E+nt)/2,z=(z+ot)/2,jt===0||ht===0)return at;if(.5>(x>a?x-a:a-x)){if(jt=1-(x-E)*(x-E)/(jt*jt),0>jt)return at;jt=Math.sqrt(jt),b=-ht*jt+z,ft(x,ht*jt+z),ft(x,b)}else{if(x=(b-y)/(x-a),b=1/(jt*jt)+x*x/(ht*ht),ot=2*x*(y-x*a)/(ht*ht)-2*x*z/(ht*ht)-2*E/(jt*jt),jt=ot*ot-4*b*(2*x*a*z/(ht*ht)-2*y*z/(ht*ht)+z*z/(ht*ht)+E*E/(jt*jt)-1+(y-x*a)*(y-x*a)/(ht*ht)),0>jt)return at;jt=Math.sqrt(jt),ht=(-ot+jt)/(2*b),ft(ht,x*ht-x*a+y),jt=(-ot-jt)/(2*b),ft(jt,x*jt-x*a+y)}return at},Ff:function(a,y,x,b,E,z,nt,ot,at){var ht=1e21,ft=a,Lt=y;if(Je.Ve(a,y,a,b,E,z,nt,ot,at)){var jt=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z);jt<ht&&(ht=jt,ft=at.x,Lt=at.y)}return Je.Ve(x,y,x,b,E,z,nt,ot,at)&&(jt=(at.x-E)*(at.x-E)+(at.y-z)*(at.y-z),jt<ht&&(ht=jt,ft=at.x,Lt=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,ft=at.x,Lt=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,ft=at.x,Lt=at.y)),at.h(ft,Lt),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):!!(Ji(a,y,x,b,E,z)||Ji(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,ft=ht+nt*nt+at*ot;return ht=4/3*(Math.sqrt(2*ht*ft)-ft)/(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 ft=a/(y+E),Lt=nt/(y+z);if(ft=ft*ft+Lt*Lt-1,0<ft)ot=y;else if(0>ft)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 Qn,um:new Qn,Mf:new Qn,Nf:0,vm:100};Je.za=Je.AA;function Gn(a){Bi(this),this.l=2,a===void 0&&(a=Gn.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===Gn.o?this.ee=new Cn:(Gn.V===null&&(Gn.V=new Cn().freeze()),this.ee=Gn.V),this.aq=this.ee.Ja,this.Ip=new Sn().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=ko,this.gg=ta,this.Rk=this.Sk=NaN,this.Uf=Fn}Gn.prototype.copy=function(){var a=new Gn;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===Gn.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},Gn.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},Gn.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==Gn.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},Gn.prototype.ka=function(){if(Object.isFrozen(this)&&Me("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==Gn.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},Gn.prototype.Xa=function(a){if(!(a instanceof Gn))return!1;if(this.type!==a.type)return this.type===Gn.j&&a.type===Gn.o?Ip(this,a):a.type===Gn.j&&this.type===Gn.o?Ip(a,this):!1;if(this.type===Gn.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!==Gn.j||y.type!==Gn.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===Br&&Je.B(a.endX,y.endX)&&Je.B(a.endY,y.endY))))}Gn.ia=function(a){return a.toString()},Gn.prototype.qb=function(a){a.classType===Gn&&(this.type=a)},Gn.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Gn.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 Gn.u:var y=new Sn(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 Gn.F:if(y=new Sn(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 Gn.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()}},Gn.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},Gn.parse=function(a,y){function x(){return ie>=ze-1?!0:ht[ie+1].match(Ve)!==null}function b(){return ie++,ht[ie]}function E(Ni){var Ei=parseFloat(b()),gr=parseFloat(b());be===be.toLowerCase()&&(Ei=Be.x+Ei,gr=Be.y+gr),Ni.h(Ei,gr)}function z(){return E(Be),Be}function nt(){return E(Te),Te}function ot(){var Ni=ve.toLowerCase();return Ni!=="c"&&Ni!=="s"&&Ni!=="q"&&Ni!=="t"?Be:new xe(2*Be.x-Te.x,2*Be.y-Te.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 ft=ht[a];if(ft.match(/(\.[0-9]*)(\.)/gm)!==null){at=ln();for(var Lt="",jt=!1,Xt=0;Xt<ft.length;Xt++){var qt=ft[Xt];qt!=="."||jt?qt==="."?(at.push(Lt),Lt="."):Lt+=qt:(jt=!0,Lt+=qt)}for(at.push(Lt),ht.splice(a,1),ft=0;ft<at.length;ft++)ht.splice(a+ft,0,at[ft]);a+=at.length-1,xn(at)}}var ie=-1,be="",ve="";at=new xe(0,0);var Te=new xe(0,0),Be=new xe(0,0),ze=ht.length;a=N1(null),jt=Lt=ft=!1,Xt=!0,qt=null;for(var Ve=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(ie>=ze-1);)if(ve=be,be=b(),be!=="")switch(be.toUpperCase()){case"X":Xt=!0,Lt=ft=!1;break;case"M":for(qt=z(),a.mc===null||Xt===!0?(Ef(a,qt.x,qt.y,ft,!Lt,jt),Xt=!1):a.moveTo(qt.x,qt.y),at.assign(Be);!x();)qt=z(),a.lineTo(qt.x,qt.y);break;case"L":for(;!x();)qt=z(),a.lineTo(qt.x,qt.y);break;case"H":for(;!x();)Be=new xe((be===be.toLowerCase()?Be.x:0)+parseFloat(b()),Be.y),a.lineTo(Be.x,Be.y);break;case"V":for(;!x();)Be=new xe(Be.x,(be===be.toLowerCase()?Be.y:0)+parseFloat(b())),a.lineTo(Be.x,Be.y);break;case"C":for(;!x();){qt=new xe,E(qt);var an=nt(),Vn=z();Xu(a,qt.x,qt.y,an.x,an.y,Vn.x,Vn.y)}break;case"S":for(;!x();)qt=ot(),an=nt(),Vn=z(),Xu(a,qt.x,qt.y,an.x,an.y,Vn.x,Vn.y);break;case"Q":for(;!x();)qt=nt(),an=z(),Rm(a,qt.x,qt.y,an.x,an.y);break;case"T":for(;!x();)Te=qt=ot(),an=z(),Rm(a,qt.x,qt.y,an.x,an.y);break;case"B":for(;!x();){qt=parseFloat(b()),an=parseFloat(b()),Vn=parseFloat(b());var $n=parseFloat(b()),_n=parseFloat(b()),Hn=_n,Tn=!1;x()||(Hn=parseFloat(b()),x()||(Tn=parseFloat(b())!==0)),be===be.toLowerCase()&&(Vn+=Be.x,$n+=Be.y),a.arcTo(qt,an,Vn,$n,_n,Hn,Tn)}break;case"A":for(;!x();)qt=Math.abs(parseFloat(b())),an=Math.abs(parseFloat(b())),Vn=parseFloat(b()),_n=$n=!1,Tn=Hn=0,Hn=b(),Hn.length===1?($n=!!parseFloat(Hn),_n=!!parseFloat(b()),Hn=parseFloat(b())):Hn.length===2?($n=!!parseFloat(Hn[0]),_n=!!parseFloat(Hn[1]),Hn=parseFloat(b())):($n=!!parseFloat(Hn[0]),_n=!!parseFloat(Hn[1]),Hn=parseFloat(Hn.slice(2))),Tn=parseFloat(b()),be===be.toLowerCase()&&(Hn=Be.x+Hn,Tn=Be.y+Tn),Be.h(Hn,Tn),bx(a,qt,an,Vn,$n,_n,Hn,Tn);break;case"Z":Px(a),Be.assign(at);break;case"F":for(qt="",an=1;ht[ie+an];)if(ht[ie+an]==="0")jt=!0,an++;else if(ht[ie+an].match(/[Uu]/)!==null)an++;else if(ht[ie+an].match(Ve)===null)an++;else{qt=ht[ie+an];break}qt.match(/[Mm]/)?ft=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(qt="",an=1;ht[ie+an];)if(ht[ie+an].match(/[Ff]/)!==null)an++;else if(ht[ie+an].match(Ve)===null)an++;else{qt=ht[ie+an];break}qt.match(/[Mm]/)?Lt=!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},Gn.Ha=function(a,y){for(var x=a.length,b=xe.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}xe.free(b)},Gn.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===Gn.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},Gn.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===Gn.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),qi(a,0,0,0,0),a.freeze()},Gn.prototype.ix=function(){var a=new Sn;return Dp(this,a,!0),a};function Dp(a,y,x){switch(a.type){case Gn.j:case Gn.u:case Gn.F:x?y.h(a.od,a.pd,0,0):qi(y,a.od,a.pd,0,0),qi(y,a.Dc,a.Ec,0,0);break;case Gn.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):qi(y,z.startX,z.startY,0,0);for(var nt=z.segments.s,ot=nt.length,at=z.startX,ht=z.startY,ft=0;ft<ot;ft++){var Lt=nt[ft];switch(Lt.type){case Br:case Io:at=Lt.endX,ht=Lt.endY,qi(y,at,ht,0,0);break;case $o:Je.Dl(at,ht,Lt.point1X,Lt.point1Y,Lt.point2X,Lt.point2Y,Lt.endX,Lt.endY,.5,y),at=Lt.endX,ht=Lt.endY;break;case fa:Je.iv(at,ht,Lt.point1X,Lt.point1Y,Lt.endX,Lt.endY,.5,y),at=Lt.endX,ht=Lt.endY;break;case mo:case Ea:var jt=Lt.type===mo?na(Lt,z):Wa(Lt,z,at,ht),Xt=jt.length;if(Xt===0){at=Lt.type===mo?Lt.centerX:Lt.endX,ht=Lt.type===mo?Lt.centerY:Lt.endY,qi(y,at,ht,0,0);break}Lt=null;for(var qt=0;qt<Xt;qt++)Lt=jt[qt],Je.Dl(Lt[0],Lt[1],Lt[2],Lt[3],Lt[4],Lt[5],Lt[6],Lt[7],.5,y);Lt!==null&&(at=Lt[6],ht=Lt[7]);break;default:Me("Unknown Segment type: "+Lt.type)}}}break;default:Me("Unknown Geometry type: "+a.type)}}Gn.prototype.normalize=function(){this._isFrozen&&Ge(this);var a=this.ix();return this.offset(-a.x,-a.y),new xe(-a.x,-a.y)},Gn.prototype.offset=function(a,y){return this._isFrozen&&Ge(this),this.transform(1,0,0,1,a,y),this},Gn.prototype.scale=function(a,y){return this._isFrozen&&Ge(this),this.transform(a,0,0,y,0,0),this},Gn.prototype.rotate=function(a,y,x){this._isFrozen&&Ge(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},te=Gn.prototype,te.transform=function(a,y,x,b,E,z){switch(this.type){case Gn.j:case Gn.u:case Gn.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 Gn.o:for(var at=this.figures.s,ht=at.length,ft=0;ft<ht;ft++){var Lt=at[ft];nt=Lt.startX,ot=Lt.startY,Lt.startX=nt*a+ot*x+E,Lt.startY=nt*y+ot*b+z,Lt=Lt.segments.s;for(var jt=Lt.length,Xt=0;Xt<jt;Xt++){var qt=Lt[Xt];switch(qt.type){case Br:case Io:nt=qt.endX,ot=qt.endY,qt.endX=nt*a+ot*x+E,qt.endY=nt*y+ot*b+z;break;case $o:nt=qt.point1X,ot=qt.point1Y,qt.point1X=nt*a+ot*x+E,qt.point1Y=nt*y+ot*b+z,nt=qt.point2X,ot=qt.point2Y,qt.point2X=nt*a+ot*x+E,qt.point2Y=nt*y+ot*b+z,nt=qt.endX,ot=qt.endY,qt.endX=nt*a+ot*x+E,qt.endY=nt*y+ot*b+z;break;case fa:nt=qt.point1X,ot=qt.point1Y,qt.point1X=nt*a+ot*x+E,qt.point1Y=nt*y+ot*b+z,nt=qt.endX,ot=qt.endY,qt.endX=nt*a+ot*x+E,qt.endY=nt*y+ot*b+z;break;case mo:nt=qt.centerX,ot=qt.centerY,qt.centerX=nt*a+ot*x+E,qt.centerY=nt*y+ot*b+z,y!==0&&(nt=180*Math.atan2(y,a)/Math.PI,0>nt&&(nt+=360),qt.startAngle+=nt),0>a&&(qt.startAngle=180-qt.startAngle,qt.sweepAngle=-qt.sweepAngle),0>b&&(qt.startAngle=-qt.startAngle,qt.sweepAngle=-qt.sweepAngle),qt.radiusX*=Math.sqrt(a*a+x*x),qt.radiusY!==void 0&&(qt.radiusY*=Math.sqrt(y*y+b*b));break;case Ea:if(nt=qt.endX,ot=qt.endY,qt.endX=nt*a+ot*x+E,qt.endY=nt*y+ot*b+z,qt.radiusX===0||qt.radiusY===0)break;y!==0&&(nt=180*Math.atan2(y,a)/Math.PI,0>nt&&(nt+=360),qt.xAxisRotation+=nt),0>a&&(qt.xAxisRotation=180-qt.xAxisRotation,qt.isClockwiseArc=!qt.isClockwiseArc),0>b&&(qt.xAxisRotation=-qt.xAxisRotation,qt.isClockwiseArc=!qt.isClockwiseArc),qt.radiusX*=Math.sqrt(a*a+x*x),qt.radiusY*=Math.sqrt(y*y+b*b);break;default:Me("Unknown Segment type: "+qt.type)}}}}return this._isInvalidBounds=!0,this},te.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 Gn.j:return Je.Yb(x,b,E,z,y,a.x,a.y);case Gn.u:var nt=Sn.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),Sn.free(nt),a;case Gn.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 Gn.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,ft,Lt,jt=a.figures.s,Xt=jt.length,qt=0;qt<Xt;qt++){var ie=jt[qt],be=!ie.isEvenOdd;if(ie.isFilled){if(b&&ie.ca(z,y,x))return!0;var ve=ie.segments;at=ie.startX,ht=ie.startY;for(var Te=at,Be=ht,ze=ve.s,Ve=0;Ve<=ve.length;Ve++){var an=void 0;if(Ve!==ve.length){an=ze[Ve];var Vn=an.type;a=an.endX,Lt=an.endY}else Vn=Br,a=Te,Lt=Be;switch(Vn){case Io:if(Te=su(z,y,nt,y,at,ht,Te,Be),isNaN(Te))return!0;ot+=Te,Te=a,Be=Lt;break;case Br:if(at=su(z,y,nt,y,at,ht,a,Lt),isNaN(at))return!0;ot+=at;break;case $o:ft=Je.Fo(at,ht,an.point1X,an.point1Y,an.point2X,an.point2Y,a,Lt,nt,y,z,y,.5),ot+=ft;break;case fa:ft=Je.Fo(at,ht,(at+2*an.point1X)/3,(ht+2*an.point1Y)/3,(2*an.point1X+a)/3,(2*an.point1Y+Lt)/3,a,Lt,nt,y,z,y,.5),ot+=ft;break;case mo:case Ea:Vn=an.type===mo?na(an,ie):Wa(an,ie,at,ht);var $n=Vn.length;if($n===0){if(at=su(z,y,nt,y,at,ht,an.type===mo?an.centerX:an.endX,an.type===mo?an.centerY:an.endY),isNaN(at))return!0;ot+=at;break}an=null;for(var _n=0;_n<$n;_n++){if(an=Vn[_n],_n===0){if(ft=su(z,y,nt,y,at,ht,an[0],an[1]),isNaN(ft))return!0;ot+=ft}ft=Je.Fo(an[0],an[1],an[2],an[3],an[4],an[5],an[6],an[7],nt,y,z,y,.5),ot+=ft}an!==null&&(a=an[6],Lt=an[7]);break;default:Me("Unknown Segment type: "+an.type)}at=a,ht=Lt}if(be){if(ot!==0)return!0}else if(ot%2!==0)return!0;ot=0}else if(ie.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}te.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new xe),this.type===Gn.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 ft=at[a];if(nt+ft>=z)return b=z-nt,b=ft===0?0:b/ft,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+=ft}}return y},te.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===Gn.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},te.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===Gn.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 ft=at[a];if(nt+ft>=z)return b=z-nt,b=ft===0?0:b/ft,ft=x[ot],x=ft[2*a],ot=ft[2*a+1],E=ft[2*a+2],a=ft[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+=ft}}return y},te.xx=function(a){if(this.type===Gn.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=xe.alloc();return Je.qh(y,x,b,E,z,a,ot),a=ot.x,z=ot.y,xe.free(ot),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/nt)}}else if(this.type===Gn.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=xe.alloc(),E=1/0,ot=nt=0,at=y.length;for(var ft=ht=0,Lt=0;Lt<at;Lt++)for(var jt=y[Lt],Xt=x[Lt],qt=jt.length,ie=0;ie<qt;ie+=2){var be=jt[ie],ve=jt[ie+1];if(ie!==0){Je.qh(ht,ft,be,ve,a.x,a.y,b);var Te=(b.x-a.x)*(b.x-a.x)+(b.y-a.y)*(b.y-a.y);Te<E&&(E=Te,nt=ot,nt+=Math.sqrt((b.x-ht)*(b.x-ht)+(b.y-ft)*(b.y-ft))),ot+=Xt[(ie-2)/2]}ht=be,ft=ve}return xe.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===Gn.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===Gn.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===Gn.F){var z=new Oo;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var nt=new dr(mo);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,ft=ht.length,Lt=0;Lt<ft;Lt++){var jt=ht[Lt];switch(jt.type){case Io:4<=b.length&&(y.push(b),x.push(Kc(b))),b=[],b.push(jt.endX),b.push(jt.endY),nt=jt.endX,z=jt.endY,ot=nt,at=z;break;case Br:b.push(jt.endX),b.push(jt.endY),nt=jt.endX,z=jt.endY;break;case $o:Je.Qe(nt,z,jt.point1X,jt.point1Y,jt.point2X,jt.point2Y,jt.endX,jt.endY,.5,b),nt=jt.endX,z=jt.endY;break;case fa:Je.ep(nt,z,jt.point1X,jt.point1Y,jt.endX,jt.endY,.5,b),nt=jt.endX,z=jt.endY;break;case mo:var Xt=na(jt,E),qt=Xt.length;if(qt===0){b.push(jt.centerX),b.push(jt.centerY),nt=jt.centerX,z=jt.centerY;break}for(var ie=0;ie<qt;ie++){var be=Xt[ie];Je.Qe(nt,z,be[2],be[3],be[4],be[5],be[6],be[7],.5,b),nt=be[6],z=be[7]}break;case Ea:if(Xt=Wa(jt,E,nt,z),qt=Xt.length,ie=jt.endX,be=jt.endY,qt===0){b.push(ie),b.push(be),nt=ie,z=be;break}for(ie=0;ie<qt;ie++)be=Xt[ie],Je.Qe(nt,z,be[2],be[3],be[4],be[5],be[6],be[7],.5,b),nt=be[6],z=be[7];break;default:Me("Segment not of valid type: "+jt.type)}jt.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(xi(x,b,nt,ot))),x=nt,b=ot}return y}te.add=function(a){return this.ee.add(a),this},te.pm=function(a,y,x,b,E,z,nt,ot){return this._isFrozen&&Ge(this),this.fg=new si(a,y,E,z).freeze(),this.gg=new si(x,b,nt,ot).freeze(),this},Fe.Object.defineProperties(Gn.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===Gn.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===Gn.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&&Ge(this,a),this.na=a,a===Gn.o?this.ee=new Cn:(Gn.V===null&&(Gn.V=new Cn().freeze()),this.ee=Gn.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&Ge(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&Ge(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&Ge(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&Ge(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&Ge(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&Ge(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&Ge(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&Ge(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),Gn.prototype.setSpots=Gn.prototype.pm,Gn.prototype.add=Gn.prototype.add,Gn.prototype.getFractionForPoint=Gn.prototype.xx,Gn.prototype.getPointAndAngleAlongPath=Gn.prototype.Qu,Gn.prototype.getAngleAlongPath=Gn.prototype.wx,Gn.prototype.getPointAlongPath=Gn.prototype.Pu,Gn.prototype.containsPoint=Gn.prototype.ca,Gn.prototype.transform=Gn.prototype.transform,Gn.prototype.rotate=Gn.prototype.rotate,Gn.prototype.scale=Gn.prototype.scale,Gn.prototype.offset=Gn.prototype.offset,Gn.prototype.normalize=Gn.prototype.normalize,Gn.prototype.computeBoundsWithoutOrigin=Gn.prototype.ix,Gn.prototype.equalsApprox=Gn.prototype.Xa,Gn.className="Geometry",Gn.j=new qe(Gn,"Line",0),Gn.u=new qe(Gn,"Rectangle",1),Gn.F=new qe(Gn,"Ellipse",2),Gn.o=new qe(Gn,"Path",3),Gn.V=null,Gn.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",Gn.className="Geometry",Gn.stringify=Gn.ia,Gn.fillPath=Gn.nb,Gn.parse=Gn.parse,Gn.Line=Gn.j,Gn.Rectangle=Gn.u,Gn.Ellipse=Gn.F,Gn.Path=Gn.o;function Oo(a,y,x,b,E){Bi(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 Cn,this.sr=this.pl.Ja,this.fw=null}Oo.prototype.copy=function(){var a=new Oo;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},te=Oo.prototype,te.Xa=function(a){if(!(a instanceof Oo&&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},te.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},te.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},te.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},te.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},te.add=function(a){return this.pl.add(a),this},te.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 ft=ot[ht];switch(ft.type){case Io:z=ft.endX,nt=ft.endY,b=ft.endX,E=ft.endY;break;case Br:if(Je.Yb(b,E,ft.endX,ft.endY,x,a,y))return!0;b=ft.endX,E=ft.endY;break;case $o:if(Je.cs(b,E,ft.point1X,ft.point1Y,ft.point2X,ft.point2Y,ft.endX,ft.endY,.5,a,y,x))return!0;b=ft.endX,E=ft.endY;break;case fa:if(Je.jv(b,E,ft.point1X,ft.point1Y,ft.endX,ft.endY,.5,a,y,x))return!0;b=ft.endX,E=ft.endY;break;case mo:case Ea:var Lt=ft.type===mo?na(ft,this):Wa(ft,this,b,E),jt=Lt.length,Xt=ft.type===mo?ft.centerX:ft.endX,qt=ft.type===mo?ft.centerY:ft.endY;if(jt===0){if(Je.Yb(b,E,Xt,qt,x,a,y))return!0;b=Xt,E=qt;break}for(Xt=null,qt=0;qt<jt;qt++)if(Xt=Lt[qt],qt===0&&Je.Yb(b,E,Xt[0],Xt[1],x,a,y)||Je.cs(Xt[0],Xt[1],Xt[2],Xt[3],Xt[4],Xt[5],Xt[6],Xt[7],.5,a,y,x))return!0;Xt!==null&&(b=Xt[6],E=Xt[7]);break;default:Me("Unknown Segment type: "+ft.type)}if(ft.isClosed&&(b!==z||E!==nt)&&Je.Yb(b,E,z,nt,x,a,y))return!0}return!1},Fe.Object.defineProperties(Oo.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&&Ge(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&Ge(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&Ge(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&Ge(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&Ge(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&Ge(this,a),this.pl=a,this._isInvalidBounds=!0}}}),Oo.prototype.add=Oo.prototype.add,Oo.prototype.equalsApprox=Oo.prototype.Xa,Oo.className="PathFigure";function dr(a,y,x,b,E,z,nt,ot){Bi(this),a===void 0&&(a=Br),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===Ea?(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===mo&&(z=Math.max(z,0)),this.Wh=z,typeof nt=="number"?(a===mo&&(nt=Math.max(nt,0)),this.Pg=nt):this.Pg=0),this.ae=null}dr.prototype.copy=function(){var a=new dr;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},te=dr.prototype,te.Xa=function(a){if(!(a instanceof dr)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case Io:case Br: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 fa: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 mo: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 Ea: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}},te.qb=function(a){a.classType===dr&&(this.type=a)},te.toString=function(a){switch(a===void 0&&(a=-1),this.type){case Io:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Br: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 fa:a=0>a?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case mo:a=0>a?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(a)+" "+this.sweepAngle.toFixed(a)+" "+this.centerX.toFixed(a)+" "+this.centerY.toFixed(a)+" "+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a);break;case Ea: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":"")},te.freeze=function(){return this._isFrozen=!0,this},te.ka=function(){return this._isFrozen=!1,this},te.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),Gn.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 Wa(a,y,x,b){function E(ie,be,ve,Te){return(ie*Te<be*ve?-1:1)*Math.acos((ie*ve+be*Te)/(Math.sqrt(ie*ie+be*be)*Math.sqrt(ve*ve+Te*Te)))}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,ft=a.Ec,Lt=Math.cos(nt),jt=Math.sin(nt),Xt=Lt*(x-ht)/2+jt*(b-ft)/2;nt=-jt*(x-ht)/2+Lt*(b-ft)/2;var qt=Xt*Xt/(y*y)+nt*nt/(z*z);return 1<qt&&(y*=Math.sqrt(qt),z*=Math.sqrt(qt)),qt=(ot===at?-1:1)*Math.sqrt((y*y*z*z-y*y*nt*nt-z*z*Xt*Xt)/(y*y*nt*nt+z*z*Xt*Xt)),isNaN(qt)&&(qt=0),ot=qt*y*nt/z,qt=qt*-z*Xt/y,isNaN(ot)&&(ot=0),isNaN(qt)&&(qt=0),x=(x+ht)/2+Lt*ot-jt*qt,b=(b+ft)/2+jt*ot+Lt*qt,ft=E(1,0,(Xt-ot)/y,(nt-qt)/z),Lt=(Xt-ot)/y,ht=(nt-qt)/z,Xt=(-Xt-ot)/y,ot=(-nt-qt)/z,nt=E(Lt,ht,Xt,ot),Xt=(Lt*Xt+ht*ot)/(Math.sqrt(Lt*Lt+ht*ht)*Math.sqrt(Xt*Xt+ot*ot)),-1>=Xt?nt=Math.PI:1<=Xt&&(nt=0),!at&&0<nt&&(nt-=2*Math.PI),at&&0>nt&&(nt+=2*Math.PI),at=y>z?1:y/z,Xt=y>z?z/y:1,y=Je.jx(0,0,y>z?y:z,ft,ft+nt,!0),z=Vi.alloc(),z.reset(),z.translate(x,b),z.rotate(a.Ne,0,0),z.scale(at,Xt),Gn.Ha(y,z),Vi.free(z),a.ae=y,a.ae}Fe.Object.defineProperties(dr.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&&Ge(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Ge(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&Ge(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Ge(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Ge(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&Ge(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&Ge(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&Ge(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&Ge(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&fn(a,">= zero",dr,"radiusX"),this._isFrozen&&Ge(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&fn(a,">= zero",dr,"radiusY"),this._isFrozen&&Ge(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&Ge(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&&Ge(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&&Ge(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&&Ge(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&&Ge(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),dr.prototype.equalsApprox=dr.prototype.Xa;var Io=new qe(dr,"Move",0),Br=new qe(dr,"Line",1),$o=new qe(dr,"Bezier",2),fa=new qe(dr,"QuadraticBezier",3),mo=new qe(dr,"Arc",4),Ea=new qe(dr,"SvgArc",4);dr.className="PathSegment",dr.Move=Io,dr.Line=Br,dr.Bezier=$o,dr.QuadraticBezier=fa,dr.Arc=mo,dr.SvgArc=Ea;function hs(){this.H=null,this.xu=new xe(0,0).freeze(),this.mt=new xe(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},Fe.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},Fe.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 Zr(){this.Fm=Vr,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Zr.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Zr.prototype.copy=function(){var a=new Zr;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},Zr.prototype.qb=function(a){a.classType===Zr&&(this.change=a)},Zr.prototype.toString=function(){var a="";return a=this.change===ia?a+"* ":this.change===Vr?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+=Mn(this.object)),this.oldValue!==null&&(a+=" old: "+Mn(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+Mn(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Zr.prototype.I=function(a){return a?this.oldValue:this.newValue},Zr.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Zr.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Zr.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Zr.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Zr.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},Fe.Object.defineProperties(Zr.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}}}),Zr.prototype.redo=Zr.prototype.redo,Zr.prototype.canRedo=Zr.prototype.canRedo,Zr.prototype.undo=Zr.prototype.undo,Zr.prototype.canUndo=Zr.prototype.canUndo,Zr.prototype.getParam=Zr.prototype.Dz,Zr.prototype.getValue=Zr.prototype.I,Zr.prototype.clear=Zr.prototype.clear;var ia=new qe(Zr,"Transaction",-1),Vr=new qe(Zr,"Property",0),lo=new qe(Zr,"Insert",1),Eo=new qe(Zr,"Remove",2);Zr.className="ChangedEvent",Zr.Transaction=ia,Zr.Property=Vr,Zr.Insert=lo,Zr.Remove=Eo;function jo(){this.o=new Cn().freeze(),this.xa="",this.j=!1}jo.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},jo.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()},jo.prototype.canUndo=function(){return this.isComplete},jo.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()}},jo.prototype.canRedo=function(){return this.isComplete},jo.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()}},jo.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new Jn,x=0;x<a.count;x++){var b=a.M(x);if(b!==null&&b.change===Vr&&b.object){var E=y.get(b.object);E||(E=new Jn,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()}},Fe.Object.defineProperties(jo.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}}}),jo.prototype.optimize=jo.prototype.ak,jo.prototype.redo=jo.prototype.redo,jo.prototype.canRedo=jo.prototype.canRedo,jo.prototype.undo=jo.prototype.undo,jo.prototype.canUndo=jo.prototype.canUndo,jo.prototype.clear=jo.prototype.clear,jo.className="Transaction";function Yr(){this.Pt=new Ln,this.Jd=!1,this.u=new Cn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Cn().freeze(),this.hl=new Cn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}Yr.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},Yr.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},Yr.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},te=Yr.prototype,te.Xw=function(a){this.Pt.add(a)},te.Rx=function(a){this.Pt.remove(a)},te.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},te.eb=function(a){return a===void 0&&(a=""),Sh(this,!0,a)},te.Kf=function(){return Sh(this,!1,"")};function Sh(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&In("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}te.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()}},Yr.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},Yr.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){In("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},Yr.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},Yr.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){In("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},Yr.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var b=new Zr;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)},Yr.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new jo);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||In("Change not within a transaction: "+x.toString()))}},Yr.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},Fe.Object.defineProperties(Yr.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}}}),Yr.prototype.handleChanged=Yr.prototype.Tu,Yr.prototype.redo=Yr.prototype.redo,Yr.prototype.undo=Yr.prototype.undo,Yr.prototype.canUndo=Yr.prototype.canUndo,Yr.prototype.discardHistoryAfterIndex=Yr.prototype.lx,Yr.prototype.rollbackTransaction=Yr.prototype.Kf,Yr.prototype.commitTransaction=Yr.prototype.eb,Yr.prototype.startTransaction=Yr.prototype.Ea,Yr.prototype.removeModel=Yr.prototype.Rx,Yr.prototype.addModel=Yr.prototype.Xw,Yr.prototype.clear=Yr.prototype.clear,Yr.className="UndoManager";function lr(){Bi(this),this.H=Hl,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new hs,this.Zr=-1}lr.prototype.toString=function(){return this.name!==""?this.name+" Tool":yn(this.constructor)},lr.prototype.updateAdornments=function(){},lr.prototype.canStart=function(){return this.isEnabled},lr.prototype.doStart=function(){},lr.prototype.doActivate=function(){this.isActive=!0},lr.prototype.doDeactivate=function(){this.isActive=!1},lr.prototype.doStop=function(){},lr.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},lr.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},lr.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},lr.prototype.doMouseMove=function(){},lr.prototype.doMouseUp=function(){this.stopTool()},lr.prototype.doMouseWheel=function(){},lr.prototype.canStartMultiTouch=function(){return!0},lr.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,xe.allocAt(NaN,NaN)),b=y.So(1,xe.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}xe.free(x),xe.free(b)},lr.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,xe.allocAt(NaN,NaN)),b=y.So(1,xe.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 xe((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}xe.free(x),xe.free(b)},lr.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},lr.prototype.doKeyUp=function(){},lr.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},lr.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},lr.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(pi?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||(pi?y.meta:y.control)||y.shift||a.clearSelection()}},lr.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)}}}lr.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}},lr.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},lr.prototype.doCurrentObjectChanged=function(){},lr.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)}}},lr.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},lr.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,b=y.clone(this.yy);this.Zr=Un(function(){x.doWaitAfter(b)},a)},lr.prototype.cancelWaitAfter=function(){this.Zr!==-1&&Ae.clearTimeout(this.Zr),this.Zr=-1},lr.prototype.doWaitAfter=function(){},lr.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof ur);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},lr.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},Fe.Object.defineProperties(lr.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof un&&(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}}}),lr.prototype.startTransaction=lr.prototype.Ea,lr.className="Tool";function Gr(){lr.call(this),this.name="ToolManager",this.hb=new Cn,this.ob=new Cn,this.Hb=new Cn,this.F=this.V=850,this.o=new zn(2,2).ja(),this.Ha=5e3,this.ia=ac,this.u=Hd,this.Mp=this.j=null,this.zj=-1}Qe(Gr,lr),Gr.prototype.initializeStandardTools=function(){},Gr.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof ur&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Gr.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)},Gr.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)}Gr.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof ur&&(y===a||y.rg(a))||this.hideToolTip()},Gr.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()))},Gr.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)},Gr.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 ur)||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()},Gr.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof ur){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&&(Ae.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var E=this;this.zj=Un(function(){E.hideToolTip()},a)}},Gr.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}},Gr.prototype.hideToolTip=function(){this.zj!==-1&&(Ae.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof ur?(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)},Gr.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()},Gr.prototype.doMouseWheel=function(){this.standardMouseWheel()},Gr.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Gr.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Gr.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},Gr.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},Gr.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)},Fe.Object.defineProperties(Gr.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 ur?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}}}),Gr.prototype.replaceStandardTool=Gr.prototype.gb;var ac=new qe(Gr,"WheelScroll",0),Vc=new qe(Gr,"WheelZoom",1),$f=new qe(Gr,"WheelNone",2),Hd=new qe(Gr,"GestureZoom",3),au=new qe(Gr,"GestureCancel",4),xh=new qe(Gr,"GestureNone",5);Gr.className="ToolManager",Gr.WheelScroll=ac,Gr.WheelZoom=Vc,Gr.WheelNone=$f,Gr.GestureZoom=Hd,Gr.GestureCancel=au,Gr.GestureNone=xh;function _r(){lr.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 xe(NaN,NaN),this.Fr=new xe,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Ln().freeze(),this.ia=new lt,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var jl;Qe(_r,lr),_r.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},_r.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},_r.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,(pi?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},_r.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&&Fs(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 Wn?(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 ga,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}_r.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},_r.prototype.Pd=function(a){return a===void 0?new fu(Ri):this.isGridSnapEnabled?new fu(new xe(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new fu(a.copy())},_r.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),$a(E),wh(E),E.diagram.ug()}y.clear()}Au(this),this.tl.h(NaN,NaN),Nu!==null&&(Nu.currentCursor=""),Yo=Nu=null,$a(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),rd(a,!0)},_r.prototype.stopTransaction=function(){var a=this.diagram,y=lr.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;$a(a),Mu(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}_r.prototype.doCancel=function(){$a(this),Mu(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},_r.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},_r.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 Jn,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 Wn&&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 $a(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 Wn&&(x.value.point=new xe(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=xe.alloc();z.assign(b.lastInput.documentPoint),a.moveParts(y,z.re(E),x),xe.free(z),b.Gf("temporaryPixelRatio")===!0&&b.Yh===null&&30<b.$w&&(Fs(b),b.hk())}_r.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 Wn&&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 Ii)){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)}_r.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 ur||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},_r.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 ci&&!(a instanceof Ii)&&(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=xe.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(ar,a);at=y.Bf(at),at<z&&(nt=ot,z=at)}}return xe.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)}}}}_r.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 Zn&&z.linksConnected.each(function(ot){ot.suspendsRouting=!1});if(a.doDropOnto(y,b),a.isActive||Yo!==null){for(a=Sn.alloc(),y=x.selection.iterator;y.next();)b=y.value,b instanceof Zn&&q0(x,b,a);Sn.free(a)}}}function Q0(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Ii||(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 Wn},!0,function(E){return E instanceof Wn},b),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}_r.prototype.doDropOnto=function(){},_r.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()?($a(this),Cl(this,this.draggedParts,!0)):this.mayDragOut()?(lu(this,!1),Cl(this,this.copiedParts,!1)):$a(this),Ud(this,a.lastInput.documentPoint))}},_r.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?($a(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,$a(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)}}},_r.prototype.simulatedMouseMove=function(a,y,x){if(Yo===null)return!1;var b=Yo.diagram;x instanceof un||(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)},_r.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 xe),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 Zn&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}_r.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(pi?!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())},_r.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())},_r.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())},_r.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},_r.prototype.Az=function(){return Yo},_r.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)},_r.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),Ma(a),a.animationManager.Cc(),a=Yo,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},_r.prototype.doSimulatedDragLeave=function(){var a=Yo;a!==null&&a.doSimulatedDragOut(),this.doCancel()},_r.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},_r.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Yo;if(y!==null){var x=y.diagram;if(y.Ym=!0,$a(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 Ln;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=Sn.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 ft=ht.location;ht=ft.x,ft=ft.y,isNaN(ht)||isNaN(ft)||(ht<b&&(b=ht),ft<E&&(E=ft),ht>nt&&(nt=ht),ft>ot&&(ot=ft))}}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,Sn.free(z),z=a.Fr,nt=new Jn,ot=xe.alloc(),at=y.iterator;at.next();)ht=at.value,ht instanceof Wn&&ht.canCopy()&&(ft=x.I(ht),ft!==null&&(ft.points=ht.points,Ju(ft,z.x-b,z.y-E),ft.suspendsRouting=!0,nt.add(ft,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))));xe.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)}}}_r.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},_r.prototype.computeMove=function(a,y,x,b){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,b):new xe},Fe.Object.defineProperties(_r.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}}}),_r.prototype.getDraggingSource=_r.prototype.Az;var Yo=null,Nu=null;_r.className="DraggingTool",jl=new Cn,En("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Gr.prototype.doCancel=function(){Yo!==null&&Yo.doCancel(),lr.prototype.doCancel.call(this)};function to(){lr.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new Wn,y=new ji;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new ji,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Zn,y=new ji,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Tr,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Zn,y=new ji,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=Tr,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 Jn,this.Of=this.gj=this.Pf=null}Qe(to,lr),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=zn.alloc();nt.width=y.naturalBounds.width*z,nt.height=y.naturalBounds.height*z,b.desiredSize=nt,zn.free(nt),E?(b.toSpot=y.toSpot,b.toEndSegmentLength=y.toEndSegmentLength):(b.fromSpot=y.fromSpot,b.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=ar,z=xe.alloc(),x.location=y.ga(ar,z),xe.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=Tr,y.fromSpot=ro,y.toSpot=ro),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 Zn){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 Zn))return null;for(;a!==null;){var b=y?a.toLinkable:a.fromLinkable;if(b===!0&&(a.portId!==null||a instanceof Zn)&&(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(Lt){return E.findValidLinkablePort(Lt,a)},null,!0);for(b=1/0,y=null,z=z.iterator;z.next();){var nt=z.value,ot=nt.part;if(ot instanceof Zn){var at=nt.ga(ar,xe.alloc()),ht=x.x-at.x,ft=x.y-at.y;xe.free(at),at=ht*ht+ft*ft,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 Zn&&(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 Zn))return!1;a=a.portId,a===null&&(a="");var b=y.part;if(!(b instanceof Zn))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 Ln;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!Ss(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!Ss(this,a,y,x,!0)}if(b===kg)return a===y?a=!0:(b=new Ln,b.add(y),a=xs(this,b,a,y,x)),!a;if(b===Ng)return!Ss(this,a,y,x,!1);if(b===Og)return a===y?a=!0:(b=new Ln,b.add(y),a=lc(this,b,a,y,x)),!a}return!0};function Ss(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&&Ss(a,nt,x,b,E)))return!0}return!1}function xs(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&&xs(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}Fe.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 ws(){to.call(this),this.name="Linking",this.V={},this.F=null,this.K=Ph,this.Xd=null}Qe(ws,to),ws.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},ws.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 Zn)))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},ws.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 Zn&&(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 Zn&&(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)},ws.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()},ws.prototype.doStop=function(){to.prototype.doStop.call(this),this.startObject=null},ws.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 Zn&&(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)}}},ws.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof Wn)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)},ws.prototype.insertLink=function(a,y,x,b){return this.diagram.partManager.insertLink(a,y,x,b)},ws.prototype.doNoLink=function(){},Fe.Object.defineProperties(ws.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 qe(ws,"Either",0),zp=new qe(ws,"ForwardsOnly",0),Hp=new qe(ws,"BackwardsOnly",0);ws.className="LinkingTool",ws.Either=Ph,ws.ForwardsOnly=zp,ws.BackwardsOnly=Hp;function ga(){to.call(this),this.name="Relinking";var a=new ji;a.figure="Diamond",a.desiredSize=kr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new ji,a.figure="Diamond",a.desiredSize=kr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new Sn}Qe(ga,to),ga.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Wn){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)}},ga.prototype.makeAdornment=function(a,y){var x=new ur;return x.type=Bn.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},ga.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},ga.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 ur&&x.adornedPart instanceof Wn))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=hr),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=hr),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},ga.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=Ms),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}},ga.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()},ga.prototype.doStop=function(){to.prototype.doStop.call(this),this.handle=null},ga.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 Zn&&(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()}}},ga.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},ga.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)}Fe.Object.defineProperties(ga.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 ur))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),ga.className="RelinkingTool",En("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),En("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function uo(){lr.call(this),this.name="LinkReshaping";var a=new ji;a.figure="Rectangle",a.desiredSize=Qr,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new ji,a.figure="Diamond",a.desiredSize=kr,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new xe,this.Yq=new Cn}Qe(uo,lr),uo.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:ig},uo.prototype.om=function(a,y){a.reshapingBehavior=y},uo.prototype.updateAdornments=function(a){if(a!==null&&a instanceof Wn){var y=null;if(a.isSelected&&!this.diagram.isReadOnly){var x=a.path;x!==null&&a.canReshape()&&a.actualBounds.w()&&a.isVisible()&&x.actualBounds.w()&&x.Ed()&&(y=a.Pj(this.name),y===null||y.Aw!==a.pointsCount||y.Uw!==a.resegmentable)&&(y=this.makeAdornment(x),y!==null&&(y.Aw=a.pointsCount,y.Uw=a.resegmentable,a.bh(this.name,y)))}y===null&&a.Jf(this.name)}},uo.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,b=y.isOrthogonal,E=null;if(y.points!==null&&1<x){E=new ur,E.type=Bn.Link,x=y.firstPickIndex;var z=y.lastPickIndex,nt=b?1:0;if(y.resegmentable&&y.computeCurve()!==Sa)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},uo.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},uo.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},uo.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowReshape&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},uo.prototype.doActivate=function(){var a=this.diagram;if(this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null){var y=this.handle.part.adornedPart;if(y instanceof Wn){if(this.Ts=y,a.isMouseCaptured=!0,this.Ea(this.name),y.resegmentable&&this.handle.fromMaxLinks===999){var x=y.points.copy(),b=this.getResegmentingPoint();if(x.Gb(this.handle.segmentIndex+1,b),y.isOrthogonal&&x.Gb(this.handle.segmentIndex+1,b),y.points=x,y.Wb(),y.updateAdornments(),this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name),this.handle===null){this.doDeactivate();return}}this.Fw=y.i(this.handle.segmentIndex),this.Yq=y.points.copy(),this.isActive=!0}}},uo.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},uo.prototype.stopTransaction=function(){var a=this.diagram,y=lr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},uo.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},uo.prototype.getResegmentingPoint=function(){return this.handle.ga(ar)},uo.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},uo.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.computeReshape(a.lastInput.documentPoint);if(this.reshape(y),y=this.adornedLink,y!==null&&y.resegmentable){var x=this.handle.segmentIndex,b=y.i(x-1),E=y.i(x),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 xe(nt.x,(z.y+nt.y)/2)),ot.cd(x+1,new xe(z.x,(z.y+nt.y)/2))):(ot.cd(x-2,new xe((z.x+nt.x)/2,nt.y)),ot.cd(x+1,new xe((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 xe(b.x,(b.y+nt.y)/2)),ot.cd(x+2,new xe(nt.x,(b.y+nt.y)/2))):(ot.cd(x-1,new xe((b.x+nt.x)/2,b.y)),ot.cd(x+2,new xe((b.x+nt.x)/2,nt.y))),ot.mb(x+1),ot.mb(x),y.points=ot,y.Wb())}}else nt=xe.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()),xe.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}uo.prototype.reshape=function(a){var y=this.adornedLink;y.uh();var x=this.handle.segmentIndex,b=this.Ru(this.handle);if(y.isOrthogonal)if(x===y.firstPickIndex+1)x=y.firstPickIndex+1,b===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(ar,xe.alloc()),b=y.getLinkPointFromPoint(b,E,z,a,!0,xe.alloc()),y.L(0,b.x,b.y),xe.free(z),xe.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(ar,xe.alloc()),a=y.getLinkPointFromPoint(b,E,x,a,!1,xe.alloc()),y.L(y.pointsCount-1,a.x,a.y),xe.free(x),xe.free(a));y.zf()},uo.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 xe(y.i(x).x,a.y);case Iu:return new xe(a.x,y.i(x).y);default:case ig:return y.i(x)}},Fe.Object.defineProperties(uo.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},midHandleArchetype:{get:function(){return this.u},set:function(a){this.u=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof ur))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedLink:{get:function(){return this.Ts}},resegmentingDistance:{get:function(){return this.F},set:function(a){this.F=a}},originalPoint:{get:function(){return this.Fw}},originalPoints:{get:function(){return this.Yq}}}),uo.prototype.setReshapingBehavior=uo.prototype.om,uo.prototype.getReshapingBehavior=uo.prototype.Ru;var ig=new qe(uo,"None",0),Iu=new qe(uo,"Horizontal",1),Du=new qe(uo,"Vertical",2),Kd=new qe(uo,"All",3);uo.className="LinkReshapingTool",uo.None=ig,uo.Horizontal=Iu,uo.Vertical=Du,uo.All=Kd,En("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function rs(){lr.call(this),this.name="Resizing",this.o=new zn(1,1).freeze(),this.j=new zn(9999,9999).freeze(),this.yg=new zn(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new ji;a.alignmentFocus=ar,a.figure="Rectangle",a.desiredSize=Qr,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new xe,this.Dw=new zn,this.Tn=new xe,this.rt=new zn(0,0),this.qt=new zn(1/0,1/0),this.pt=new zn(1,1)}Qe(rs,lr),rs.prototype.updateAdornments=function(a){if(!(a===null||a instanceof Wn)){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 ur,y.type=Bn.Spot,y.locationSpot=ar;var x=new As;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,ko)),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,Ro)),y.add(this.makeHandle(a,No))}else if(Xa(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=ar),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 Bn)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=lr.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,xe.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),a.bd(),xe.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,xe.alloc()),z=this.computeReshape();y=this.computeResize(E,this.handle.alignment,y,x,b,z),this.resize(y),xe.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 Ii){var b=new Cn;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=ar);var nt=this.adornedObject.naturalBounds,ot=nt.x,at=nt.y,ht=nt.x+nt.width,ft=nt.y+nt.height,Lt=1;if(!z){Lt=nt.width;var jt=nt.height;0>=Lt&&(Lt=1),0>=jt&&(jt=1),Lt=jt/Lt}return jt=xe.alloc(),Je.No(a.x,a.y,ot,at,E.width,E.height,jt),a=nt.copy(),0>=y.x?0>=y.y?(a.x=Math.max(jt.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(jt.y,ft-b.height),a.y=Math.min(a.y,ft-x.height),a.height=Math.max(ft-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Lt*a.width,b.height),x.height),a.width=a.height/Lt):(a.width=Math.max(Math.min(a.height/Lt,b.width),x.width),a.height=Lt*a.width),a.x=ht-a.width,a.y=ft-a.height)):1<=y.y?(a.x=Math.max(jt.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(jt.y-at,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Lt*a.width,b.height),x.height),a.width=a.height/Lt):(a.width=Math.max(Math.min(a.height/Lt,b.width),x.width),a.height=Lt*a.width),a.x=ht-a.width)):(a.x=Math.max(jt.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(Lt*a.width,b.height),x.height),a.width=a.height/Lt,a.y=at+.5*(ft-at-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(jt.x-ot,b.width),x.width),a.y=Math.max(jt.y,ft-b.height),a.y=Math.min(a.y,ft-x.height),a.height=Math.max(ft-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Lt*a.width,b.height),x.height),a.width=a.height/Lt):(a.width=Math.max(Math.min(a.height/Lt,b.width),x.width),a.height=Lt*a.width),a.y=ft-a.height)):1<=y.y?(a.width=Math.max(Math.min(jt.x-ot,b.width),x.width),a.height=Math.max(Math.min(jt.y-at,b.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(Lt*a.width,b.height),x.height),a.width=a.height/Lt):(a.width=Math.max(Math.min(a.height/Lt,b.width),x.width),a.height=Lt*a.width))):(a.width=Math.max(Math.min(jt.x-ot,b.width),x.width),z||(a.height=Math.max(Math.min(Lt*a.width,b.height),x.height),a.width=a.height/Lt,a.y=at+.5*(ft-at-a.height))):0>=y.y?(a.y=Math.max(jt.y,ft-b.height),a.y=Math.min(a.y,ft-x.height),a.height=ft-a.y,z||(a.width=Math.max(Math.min(a.height/Lt,b.width),x.width),a.height=Lt*a.width,a.x=ot+.5*(ht-ot-a.width))):1<=y.y&&(a.height=Math.max(Math.min(jt.y-at,b.height),x.height),z||(a.width=Math.max(Math.min(a.height/Lt,b.width),x.width),a.height=Lt*a.width,a.x=ot+.5*(ht-ot-a.width))),xe.free(jt),a},rs.prototype.computeReshape=function(){var a=Dn;return this.adornedObject instanceof ji&&(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 zn(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},Fe.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 ur))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 ur)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",En("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Ps(){lr.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new xe,this.ue=null;var a=new ji;a.figure="Ellipse",a.desiredSize=kr,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new xe(NaN,NaN),this.u=0,this.F=50}Qe(Ps,lr),Ps.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)}},Ps.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new ur,y.type=Bn.Position,y.locationSpot=ar;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(Xa(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Ps.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},Ps.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)},Ps.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(ar)},Ps.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)},Ps.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new xe(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Ps.prototype.stopTransaction=function(){var a=this.diagram,y=lr.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ps.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Ps.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Ps.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()},Ps.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()}},Ps.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},Fe.Object.defineProperties(Ps.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 ur))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 ur)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}}}),Ps.className="RotatingTool",En("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function bh(){lr.call(this),this.name="ClickSelecting"}Qe(bh,lr),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 Ua(){lr.call(this),this.name="Action",this.pk=null}Qe(Ua,lr),Ua.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},Ua.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()},Ua.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))}},Ua.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()},Ua.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())},Ua.prototype.doStop=function(){this.pk=null},Ua.className="ActionTool";function Fu(){lr.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new xe(0,0)}Qe(Fu,lr),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 ci)x.Zc()&&(Xa(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=xe.allocAt(a.x,a.y);this.isGridSnapEnabled&&nf(this.diagram,b,a,z),b.location=z,y.allowSelect&&(y.clearSelection(!0),b.isSelected=!0),xe.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",b)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return b},Fe.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 La(){lr.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new ci;a.layerName="Tool",a.selectable=!1;var y=new ji;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}Qe(La,lr),La.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))},La.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},La.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},La.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=zn.alloc().h(y.width,y.height);x.desiredSize=b,this.box.mm(y.x,y.y,!1),zn.free(b),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},La.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()},La.prototype.computeBoxBounds=function(){var a=this.diagram;return new Sn(a.firstInput.documentPoint,a.lastInput.documentPoint)},La.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),pi?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 Cn,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)}},Fe.Object.defineProperties(La.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}}}),La.className="DragSelectingTool";function ts(){lr.call(this),this.name="Panning",this.Xt=new xe,this.xy=new xe,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(Ae.document,"scroll",a.Kw,!1),a.stopTool()}}Qe(ts,lr),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(Ae.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)}},Fe.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",En("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),En("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),En("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),En("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),En("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}Fe.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 Ga(a,y,x){this.text=a,this.hx=y,this.visible=x}Ga.className="ContextMenuButtonInfo";function bs(){lr.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new xe,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}Qe(bs,lr);function tl(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=mn("div");var x=mn("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=mn("style");Ae.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",ho,!1),b.addEventListener(y,"selectstart",ho,!1),b.addEventListener(x,"contextmenu",ho,!1)),y.className="goCXforeground",x.className="goCXbackground",Ae.document.body&&(Ae.document.body.appendChild(y),Ae.document.body.appendChild(x)),Xc=y,uc=x,Zc=!0}function ho(a){return a.preventDefault(),!1}bs.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)},bs.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},bs.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},bs.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,b=null;if(a instanceof un||(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},bs.prototype.doActivate=function(){},bs.prototype.doMouseDown=function(){if(lr.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof ur){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&dl(this)},bs.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof ur){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}dl(this)};function dl(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var b=null;x instanceof El||(b=y.ic(y.lastInput.documentPoint,null,null),b!==null&&b.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(b)}}else a.canStart()&&(uu(a,!0),a.isActive||a.stopTool())}bs.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 ur&&!a.currentContextMenu.visible&&a.stopTool()}}bs.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},bs.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof ur){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},bs.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}},bs.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof ur?(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 Cn;return y.add(new Ga("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new Ga("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new Ga("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new Ga("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Ga("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new Ga("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new Ga("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new Ga("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new Ga("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new Ga("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new Ga("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new Ga("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new Ga("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}bs.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=mn("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=mn("li"),z.className="goCXli";var nt=mn("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"},bs.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}},Fe.Object.defineProperties(bs.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof ur?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return Zc===!1&&Ch===null&&qr&&tl(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;bs.className="ContextMenuTool",En("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function Rr(){lr.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(Rr,lr);function Yc(a,y){if(qr){var x=mn("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 Rr)if(z.state===qc)x.style.border="3px solid red",x.focus();else{var nt=b.ga(ar),ot=E.position,at=E.scale,ht=b.Df()*at;ht<z.minimumEditorScale&&(ht=z.minimumEditorScale);var ft=b.naturalBounds.width*ht+6,Lt=b.naturalBounds.height*ht+2,jt=(nt.x-ot.x)*at;nt=(nt.y-ot.y)*at,ot=b.verticalAlignment,at=(b.lineHeight+b.spacingAbove+b.spacingBelow)*b.lineCount*ht,Lt=ot.y*Lt-ot.y*at+ot.offsetY-(.5*Lt-.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=ft+"px",x.style.left=(jt-ft/2|0)-1+"px",x.style.top=(nt+Lt|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)}}}Rr.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},Rr.prototype.doStart=function(){Ru=this,this.textBlock!==null&&this.doActivate()},Rr.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 Sn(this.textBlock.ga(ko),this.textBlock.ga(ta));a.tv(b),x.show(y,a,this),this.currentTextEditor=x}}}},Rr.prototype.doCancel=function(){this.stopTool()},Rr.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Rr.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Ll)},Rr.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))}}Rr.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)},Rr.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},Rr.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)},Rr.prototype.doStop=function(){Ru=null},Rr.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)))},Rr.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},Fe.Object.defineProperties(Rr.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)}}}),Rr.prototype.measureTemporaryTextBlock=Rr.prototype.Lx;var Vd=new qe(Rr,"LostFocus",0),Ll=new qe(Rr,"MouseDown",1),Zd=new qe(Rr,"Tab",2),_c=new qe(Rr,"Enter",3),tv=new qe(Rr,"SingleClick",0),hc=new qe(Rr,"SingleClickSelected",1),Xd=new qe(Rr,"DoubleClick",2),cc=new qe(Rr,"StateNone",0),Jc=new qe(Rr,"StateActive",1),Qc=new qe(Rr,"StateEditing",2),og=new qe(Rr,"StateValidating",3),qc=new qe(Rr,"StateInvalid",4),dc=new qe(Rr,"StateValidated",5),Ru=null;Rr.className="TextEditingTool",Rr.LostFocus=Vd,Rr.MouseDown=Ll,Rr.Tab=Zd,Rr.Enter=_c,Rr.SingleClick=tv,Rr.SingleClickSelected=hc,Rr.DoubleClick=Xd,Rr.StateNone=cc,Rr.StateActive=Jc,Rr.StateEditing=Qc,Rr.StateValidating=og,Rr.StateInvalid=qc,Rr.StateValidated=dc,En("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 Ln,this.ce=new es,this.ce.Yd=this,this.Ei=new Ln,this.pu=new Ln,this.Sr=new Ln,this.pr=new Ln,a&&Object.assign(this,a)}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),Ae.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Fs(x),dg(x),a.zb=!1,y.start(),y.bc&&(ju(a),x.Ya(),lg(y,0),Ma(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 Wn&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,b,!1)}te=ra.prototype,te.fv=function(a){return this.ce.fv(a)},te.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 un){ot=!0;break t}}ot=!1}ot?id(nt,!1):nt.Xk=!0}}E.pu.clear(),E.bc!==!1&&(ju(E),Ma(E.H),Eh(E)),Ae.requestAnimationFrame(x)}}var b=a.Ei,E=a;a.bc?a.Sr.add(y):(a.bc=!0,b.add(y),Ae.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}te.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)},te.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))},te.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),Us(this,a))},te.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),Us(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 Us(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],ft=y[2];return y=y[3],ot===0||ot===100?(z=at,nt=ht):(ft===0||ft===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,ft-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 xe(z(nt,b.x,E.x-b.x,ot),z(nt,b.y,E.y-b.y,ot))}var y=new Jn;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 xe(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 xe(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 xe(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 xe(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 Sn(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}Fe.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&&fn(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 qe(ra,"Default",1),ed=new qe(ra,"AnimateLocations",2),ag=new qe(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=Ri,this.vc=new Jn,this.Tt=new Jn,this.yl=new Ln,this.Ut=new Ln,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),Ma(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}te=es.prototype,te.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 un?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)},te.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},te.add=function(a,y,x,b,E){if(y==="position"&&x.Xa(b))return this;if(this.H===null&&(a instanceof un?this.H=a:a instanceof Xe&&a.diagram!==null&&(this.H=a.diagram)),a instanceof ci){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 un&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(pu(b),av(),b=[ya.j,ya.u,ya.o,ya.F],pu(E),av(),E=[ya.j,ya.u,ya.o,ya.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 xe&&!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 xe&&!nt.w()&&nt.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof ci?ot.Ku.location=Ah(y.location):z&&(ot.Ku[x]=Ah(b))}function Ah(a){return a instanceof xe||a instanceof zn?a.copy():a}te.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},te.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),Ma(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)}}}te.stop=function(){return this.bc?(this.Ml(!0),this):this},te.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,ft=ot.Ku,Lt;for(Lt in ht)if(z.get(Lt)!==null){var jt=Lt;!ot.Hu||jt!=="position:nodeCollapse"&&jt!=="position:placeholder"||(jt="position"),z.get(jt)(nt,at[Lt],ft[Lt]!==void 0?ft[Lt]:ot.Hu?at[Lt]:ht[Lt],this.Lp,this.Gd,this.Gd,this)}ot.Hu&&ft.location!==void 0&&nt instanceof ci&&(nt.location=ft.location),ot.nv&&nt instanceof ci&&nt.Zb(!1)}if(y.As.clear(),rd(y,!1),y.Ya(),y.N(),Ma(y,!0),x.defaultAnimation===this){for(Lt=x.pr.iterator;Lt.next();)E=Lt.value,E.Tg!==null&&(E.points=E.Tg,E.Tg=null);x.pr.clear()}Ma(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())}},te.Cj=function(a,y){var x=y.actualBounds,b=null;if(y instanceof Ii&&(b=y.placeholder),b!==null?(x=b.ga(ko),b=b.padding,x.x+=b.left,x.y+=b.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new xe(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Ii)for(a=a.memberParts;a.next();)b=a.value,b instanceof Zn&&this.Cj(b,y)},te.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Ii&&(x=y.placeholder),x!==null){var b=x.ga(ko);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 Ii)for(a=a.memberParts;a.next();)b=a.value,b instanceof Zn&&this.Aj(b,y)}},te.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},Fe.Object.defineProperties(es.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&fn(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:Me("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 el(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))}el.prototype.copy=function(){var a=new el(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))}Fe.Object.defineProperties(el.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 qe(el,"Default",1),Th=new qe(el,"Immediate",2),gc=new qe(el,"Bundled",3);el.className="AnimationTrigger",el.Default=ug,el.Immediate=Th,el.Bundled=gc;function Vo(a){Bi(this),this.H=null,this.Pa=new Cn,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)}te=Vo.prototype,te.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},te.Xe=function(a){this.H=a},te.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 Ii?E++:at instanceof Zn?b++:at instanceof Wn?z++:at instanceof ur?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&&Hi(b)&&(ot+=" #"+Hi(b)),x instanceof Zn?ot+=" "+Mn(b):x instanceof Wn&&(ot+=" "+Mn(x.fromNode)+" "+Mn(x.toNode));return y+" "+this.Pa.count+": "+ot},te.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=xe.alloc(),z=this.Pa.s,nt=z.length;nt--;){var ot=z[nt];if((b!==!0||zh(ot)!==!1)&&ot.isVisible()&&(E.assign(a),_i(E,ot.oe),ot=ot.ic(E,y,x),ot!==null&&(y!==null&&(ot=y(ot)),ot!==null&&(x===null||x(ot)))))return xe.free(E),ot}return xe.free(E),null},te.ji=function(a,y,x,b){if(y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Cn||b instanceof Ln||(b=new Ln),this.Uh===!1)return b;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var z=xe.alloc(),nt=this.Pa.s,ot=nt.length;ot--;){var at=nt[ot];if((E!==!0||zh(at)!==!1)&&at.isVisible()){z.assign(a),_i(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 xe.free(z),b},te.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 Cn||E instanceof Ln||(E=new Ln),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},te.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 ft=ht;ht.Cf(a,y,x,b,E)&&(y!==null&&(ft=y(ft)),ft===null||x!==null&&!x(ft)||E.add(ft))}}return E},te.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 Cn||E instanceof Ln)&&(z=E),E=!0),z instanceof Cn||z instanceof Ln||(z=new Ln),this.Uh===!1)return z;var nt=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(nt=!0);for(var ot=xe.alloc(),at=xe.alloc(),ht=this.Pa.s,ft=ht.length;ft--;){var Lt=ht[ft];if((nt!==!0||zh(Lt)!==!1)&&Lt.isVisible()){ot.assign(a),_i(ot,Lt.oe),at.h(a.x+y,a.y),_i(at,Lt.oe);var jt=Lt;Lt.og(ot,at,x,b,E,z)&&(x!==null&&(jt=x(jt)),jt===null||b!==null&&!b(jt)||z.add(jt))}}return xe.free(ot),xe.free(at),z},te.Fd=function(a,y){if(this.visible){var x=this.Pa.s,b=x.length;if(b!==0){a=ln();for(var E=ln(),z=0;z<b;z++){var nt=x[z];if(nt.vw=z,nt instanceof Wn){if(nt.fd===!1)continue}else if(nt instanceof ur&&nt.adornedPart!==null)continue;var ot=nt.actualBounds;nt.isVisible()&&zr(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}te.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=Sn.alloc(),at=0;at<b;at++)this.Oj(a,x[at],y,z,nt,ot,!0);if(Sn.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=Sn.alloc(),ft=0;ft<z;ft++){var Lt=E[ft];b.contains(Lt)&&a.Oj(y,Lt,x,ot,at,ht,!1)}Sn.free(ht),y.globalAlpha=nt}}}te.Oj=function(a,y,x,b,E,z,nt){if(nt&&!zh(y))a.Hs(y);else{if(b!==null&&y instanceof Wn&&(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))}},te.g=function(a,y,x,b,E){var z=this.diagram;z!==null&&z.cb(Vr,a,this,y,x,b,E)},te.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},te.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 Ii&&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}Fe.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===""&&Me("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&Me("Layer.name is already present in this diagram: "+a);for(this.xa=a,this.g("name",y,a),a=this.Pa.iterator;a.next();)a.value.layerName=this.xa}}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&fn(a,"0 <= value <= 1",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 un(a,y){if(sm||(ss(),sm=!0),Bi(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(Ae.document,"DOMContentLoaded",b,!1),x.setRTL()};Ae.document.body!==null?this.setRTL():x.addEventListener(Ae.document,"DOMContentLoaded",b,!1)}this.ol=null,hf.add("Model",br);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===Vr&&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 Ur,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"||Ae.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 Cn,a.pj=new Jn,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new xe(NaN,NaN).freeze(),a.du=new xe(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new xe(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new Vi,a.zu=new xe(NaN,NaN).freeze(),a.ut=new Sn(NaN,NaN,NaN,NaN).freeze(),a.rj=new hi(0,0,0,0).freeze(),a.sj=Uu,a.nu=!1,a.Zt=null,a.fu=null,a.yh=ds,a.zk=Pr,a.Fg=ds,a.pq=Pr,a.yt=ko,a.Bt=ko,a.Fc=!0,a.pn=!1,a.De=new Ln,a.Eh=new Jn,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new hi(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 Ln,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 Jn,a.Xn=new Cn,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 hi(5).freeze(),a.Hw=new Ln().freeze(),a.Nt=999999999,a.nw=new Ln().freeze(),a.Zi=!0,a.Ee=!0,a.vd=!0,a.Be=!1,a.gf=!1,a.xh=!0,a.hf=!1,a.sy=new Ln,a.ow=new Ln,a.Xh=null,a.aw=new zn(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new xe,bounds:new Sn,Py:new zn,bA:new zn,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new Sn(NaN,NaN,NaN,NaN).freeze(),a.wo=new zn(NaN,NaN).freeze(),a.Sp=new Sn(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new Jn;var y=new Zn,x=new Ir;x.bind(new co("text","",Mn)),y.add(x),a.ny=y,a.Lg.add("",y),y=new Zn,x=new Ir,x.stroke="brown",x.bind(new co("text","",Mn)),y.add(x),a.Lg.add("Comment",y),y=new Zn,y.selectable=!1,y.avoidable=!1,x=new ji,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new zn(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new Jn,y=new Ii,y.selectionObjectName="GROUPPANEL",y.type=Bn.Vertical,x=new Ir,x.font="bold 12pt sans-serif",x.bind(new co("text","",Mn)),y.add(x),x=new Bn(Bn.Auto),x.name="GROUPPANEL";var b=new ji;b.figure="Rectangle",b.fill="rgba(128,128,128,0.2)",b.stroke="black",x.add(b),b=new As,b.padding=new hi(5,5,5,5).ja(),x.add(b),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new Jn,y=new Wn,x=new ji,x.isPanelMain=!0,y.add(x),x=new ji,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new Wn,x=new ji,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new ur,y.type=Bn.Auto,x=new ji,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new As,x.margin=new hi(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new ur,y.type=Bn.Link,x=new ji,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 br,a.toolManager=new Gr,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=Oi,a.Pw=!1,a.Mb=1,a.Yh=null,a.Oq=1,a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0,a.yq=1,a.tw=0,a.uw=new xe,a.zy=500,a.wp=new xe,a.wq=!1}un.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 Ln().freeze(),a.nw=new Ln().freeze();var x=a.skipsUndoManager,b=a.cc!==null&&a.cc!==void 0;b&&(a.skipsUndoManager=!0);var E=null;a.fe!==null&&(E=a.fe.part,E!==null&&a.remove(E));var 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(),ii=[],E!==null&&(a.add(E),a.partManager.parts.remove(E)),b&&(a.skipsUndoManager=x),z}function Yp(){return null}un.prototype.reset=function(){this.clear(),this.vb=!0,Xp(this),Ml(this),this.Wg=!0,_p(this),this.layout=new Ur,this.Wg=!1,this.model=cy(),this.model.undoManager=new Yr,this.vb=this.rn=!1,this.N()},un.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=Ae.document.body);var y=mn("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},un.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=Ae.document.body);var y=0;if(qr){var x=om;y=kh,x===null&&(x=om=mn("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=kh=mn("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||pi||(y=11)}this.Db=y,this.Gw=!0},un.prototype.qb=function(a){a.classType===un&&(this.autoScale=a)},un.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||Me("Diagram setup requires an argument DIV."),a.Ka!==null&&Me("Diagram has already completed setup."),typeof y=="string"?a.Ka=Ae.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:Me("No DIV or DIV id supplied: "+y),a.Ka===null&&Me("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&Me("Invalid div id; div already has a Diagram associated with it."),!a.ol&&Ae.ResizeObserver){var x=Pn(function(){a.$b()},250);a.ol=new Ae.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}Ae.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=Ae.go;var E=new Za(a);if(E.style!==void 0&&(E.style.position="absolute",E.style.top="0px",E.style.left="0px",Ae.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 Za(null),E.width=1,E.height=1,a.jw=E,a.oy=E.context,qr){E=mn("div");var z=mn("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=Pn(function(){a.Yh=null,a.N()},300),a.Ov=Pn(function(){dg(a)},250),a.preventDefault=function(nt){return nt.preventDefault(),!1},a.$j=function(nt){if(a.isEnabled){var ot=Aa(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(),nl(ot,nt)}},a.aA=function(nt){a.isEnabled&&(a.Vk=!1,Aa(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():nl(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=Ae.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,ft=nt;at&&at.H&&(ft=nt,ht=at.H),ot.targetDiagram=ht,mc(a,ft,ot),ot.targetObject=null,a.doMouseMove(),nl(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=Ae.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 un&&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(),nl(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)}}un.prototype.addEventListener=function(a,y,x,b){a.addEventListener(y,x,{capture:b,passive:!1})},un.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(Ae,"resize",a.Ov,!1)}function Fs(a){30<a.Sq&&(a.Yh=1)}function rd(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),Li&&Li.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}un.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:Ae.devicePixelRatio||1},un.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},un.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},un.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},un.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},un.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},un.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},un.prototype.doFocus=function(){this.focus()},un.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=Ae.scrollX||Ae.pageXOffset,y=Ae.scrollY||Ae.pageYOffset;this.ta.focus(),Ae.scrollTo(a,y)}},un.prototype.Oy=function(){this.H.R("GainedFocus")},un.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 Bn(Bn.Grid);y.name="GRID";var x=new ji;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new ji,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new ji,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new ji,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new ji,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new ji,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new ci,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)}un.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,ft=b.right+z.right;z=b.bottom+z.bottom;var Lt=E.x;b=E.y;var jt=E.width,Xt=E.height,qt=E.right,ie=E.bottom;E=this.scale;var be=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":be=be+a.scrollWidth-a.clientWidth;break;case"reverse":be=a.scrollWidth-be-a.clientWidth}var ve=be;jt<at||Xt<ht?(be=xe.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==ve&&(be.x=ve/E+nt,this.ju=ve),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(be.y=a.scrollTop/E+ot,this.lu=a.scrollTop),this.position=be,xe.free(be),this.Ee=this.qr=!1):(be=xe.alloc(),a.uy&&this.allowHorizontalScroll&&(nt<Lt&&(this.position=be.h(ve+nt,this.position.y)),ft>qt&&(this.position=be.h(-(y.scrollWidth-this.Aa)+ve-this.Aa/E+ft,this.position.y))),a.vy&&this.allowVerticalScroll&&(ot<b&&(this.position=be.h(this.position.x,a.scrollTop+ot)),z>ie&&(this.position=be.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/E+z))),xe.free(be),this.vd=!0,this.Ee=this.qr=!1,b=this.documentBounds,E=this.viewportBounds,ft=b.right,qt=E.right,z=b.bottom,ie=E.bottom,nt=b.x,Lt=E.x,ot=b.y,b=E.y,jt>=at&&nt>=Lt&&ft<=qt&&(x.style.width="1px"),Xt>=ht&&ot>=b&&z<=ie&&(x.style.height="1px"))}},un.prototype.computeBounds=function(a){return a===void 0&&(a=new Sn),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}un.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(cn(a))for(var b=0;b<a.length;b++){var E=a[b];!y&&E instanceof Wn||(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 Wn||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds));return x===null?new Sn(NaN,NaN,0,0):x};function Ka(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=xe.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var b=a.viewportBounds;b=Sn.allocAt(0,0,b.width,b.height);var E=xe.alloc();E.xi(b,a.initialViewportSpot),E.h(x.x-E.x,x.y-E.y),a.position=E,Sn.free(b),xe.free(E),xe.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()?ar: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 Sn(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===pa?(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}un.prototype.zoomToFit=function(){var a=this.sj;this.sj=Uu,this.scale=pc(this,pa),a!==Uu&&(Ka(this,!1),gg(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},te=un.prototype,te.BA=function(a,y){y===void 0&&(y=pa);var x=a.width,b=a.height;if(!(x===0||b===0||isNaN(x)&&isNaN(b))){var E=1;if(y===pa||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 xe(a.x,a.y)}},te.Jy=function(a,y){this.Va();var x=this.documentBounds,b=this.viewportBounds;this.position=new xe(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))},te.zz=function(a){if(a instanceof Xe){this.eq=a;var y=xe.alloc();this.fq=this.op(a.ga(ko,y)),xe.free(y)}else this.eq=null,this.fq=Oi};function gg(a,y,x,b,E,z){var nt=xe.allocAt(a.pa.x,a.pa.y),ot=nt.x,at=nt.y;if(a.eq!==null){var ht=xe.alloc();ht=a.eq.ga(ko,ht),ot=ht.x-a.fq.x/a.scale,at=ht.y-a.fq.y/a.scale,E=ro,xe.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),xe.free(nt)}te.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 ci)return a}else if(a=Wl(this,a,function(x){return x.part}),a instanceof ci)return a;return null},te.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}te.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 ci&&b.canSelect()}:null,x)};function od(a,y,x,b,E){for(x===void 0&&(x=null),b===void 0&&(b=null),E instanceof Cn||E instanceof Ln||(E=new Ln),ns(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,b,E)}return E}te.ji=function(a,y,x,b){y===void 0&&(y=null),x===void 0&&(x=null),b instanceof Cn||b instanceof Ln||(b=new Ln),ns(this);for(var E=this.Wa.iteratorBackwards;E.next();){var z=E.value;z.visible&&z.ji(a,y,x,b)}return b},te.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 ci&&(!x||E.canSelect())},y,b)},te.Cf=function(a,y,x,b,E){y===void 0&&(y=null),x===void 0&&(x=null),b===void 0&&(b=!1),E instanceof Cn||E instanceof Ln||(E=new Ln),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},te.Nu=function(a,y,x,b,E,z){var nt=new Ln;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 Cn||E instanceof Ln||(E=new Ln),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}te.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 ci&&(!b||z.canSelect())},x,E)},te.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 Cn||E instanceof Ln)&&(z=E),E=!0),z instanceof Cn||z instanceof Ln||(z=new Ln),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 Cn||E instanceof Ln)&&(z=E),E=!0),z instanceof Cn||z instanceof Ln||(z=new Ln),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}un.prototype.acceptEvent=function(a){return Aa(this,a,a instanceof MouseEvent)};function Aa(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),pi&&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,pi&&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 nl(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}un.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=Aa(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(),nl(x,a)},un.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Aa(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(),nl(x,a)},un.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Aa(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),nl(x,a)},un.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=Aa(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),nl(x,a)},un.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new xe(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?_i(new xe(y,a),this.Ab):new xe(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=xe.allocAt(nt,ot),a.Ab.Cd(y),x.documentPoint.assign(y),xe.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))}}un.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function $p(a){a.ld||ns(a),a.Va()}un.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},te=un.prototype,te.Pz=function(){return this.kg},te.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,Ma(this),this.hf=!1,this.du=new xe(NaN,NaN),y.isEnabled=x,this.ld=!0;var b=this;a!==null&&Un(function(){b.ld=!1,zl(y,"Model"),a(b)},1)},te.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;Ae.requestAnimationFrame(function(){y.kg&&y.bd()})}},te.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),Ma(this))};function Nh(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Sc(a)||(y&&ns(a),x&&Ka(a,!1))}function Ma(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=Sn.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),Sn.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)),Ka(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)}Ka(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 Ln,a.Nv(x,a.De)}a.nodes.each(function(b){b instanceof Ii&&b.U&65536&&(b.U=b.U^65536)})}}te.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Ii||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Ii&&x.isVisible()&&ad(this,x);for(a.reset();a.next();)x=a.value,x instanceof Wn&&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 ur&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function ad(a,y){for(var x=ln(),b=ln(),E=y.memberParts;E.next();){var z=E.value;z.isVisible()&&(z instanceof Ii?(va(z)||Es(z)||jh(z))&&ad(a,z):z instanceof Wn?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)}te.Fd=function(a,y,x,b){if(this.vd||this.animationManager.isAnimating)for(var E=0;E<y;E++)a[E].Fd(x,b)},te.gc=function(a){if(this.Ka!==null){if(this.ta===null&&Me("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,ft=Math.round(ot.y*at)/at;for(at!==1&&z.scale(at),ot.x===0&&ot.y===0||z.translate(-ht,-ft),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=Li&&Li.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&&Me("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 ft=a.Ca;a.Ca=E;var Lt=a.Wa.s,jt=Lt.length;try{var Xt=new Sn(z.x,z.y,b.width/E,b.height/E),qt=Xt.copy();qt.Co(x),Al(a,qt),ns(a),a.Fd(Lt,jt,a,Xt),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 ie=a.Mb;y.scale(ie,ie);var be=Vi.alloc();be.reset(),be.translate(x.left,x.top),be.scale(E),z.x===0&&z.y===0||be.translate(-z.x,-z.y),y.setTransform(be.m11,be.m12,be.m21,be.m22,be.dx,be.dy),y.yc(),y instanceof oa&&_y(y,be.m11,be.m12,be.m21,be.m22,be.dx,be.dy),Vi.free(be),Hu(a,y),y.globalAlpha=a.pb;var ve=a.Qj("Grid");if(nt){var Te=new Ln,Be=nt.iterator;for(Be.reset();Be.next();){var ze=Be.value;ze instanceof ci&&(ht||ze.layer!==ve)&&(ze.Gj(),Te.add(ze))}for(ht=0;ht<jt;ht++)Vp(Lt[ht],y,a,Te,at);Te.each(function(an){return an.Gj()})}else for(Te=0;Te<jt;Te++){var Ve=Lt[Te];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=ft,a.ib.Vc(!0),a.vd=!0,a.Fd(Lt,jt,a,a.viewportBounds),Al(a),a.ib instanceof oa&&(a.ib.Nj.PA(),a.redraw())}}}te.Gf=function(a){return this.Rg[a]},te.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},te.Tx=function(){this.Rg=new Qn,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(pi||ei),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))}te.Ql=function(a){return this.on[a]},te.sA=function(a,y){this.on[a]=y},te.Sx=function(){this.on=new Qn,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},te.set=function(a){return Object.assign(this,a),this},te.Du=function(a){return this.nm(a)},te.nm=function(a){return vc(this,a),this};function vc(a,y){var x=a instanceof Bn,b=a instanceof un,E;for(E in y){E===""&&Me("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):Me("Unable to find object named: "+at+" in "+a.toString()+" when trying to set property: "+E)}}if(nt[0]!=="_"&&!On(z,nt))if(b&&nt==="ModelChanged"){a.Yw(y[nt]);continue}else if(b&&nt==="Changed"){a.Pe(y[nt]);continue}else if(b&&On(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 Me('Trying to set undefined property "'+nt+'" on object: '+z.toString());z[nt]=y[E],nt[0]==="_"&&z instanceof Xe&&z.Vw(nt)}}te.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new Jn,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},te.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")},un.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=Sn.alloc(),Lg(this,this.computeBounds(b)),Sn.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,ft=Math.max(z,0),Lt=Math.max(y,0),jt=Math.floor(E-ft),Xt=Math.floor(ot-Lt);a.drawImage(b.Oa,ft,Lt,jt,Xt,0,0,jt,Xt),Cc(this.Yf,this)&&a.clearRect(0,0,at,ht),b=ln(),a=ln(),Xt=Math.abs(z),jt=Math.abs(y);var qt=ft===0?0:E-Xt;ft=xe.allocAt(qt,0),Xt=xe.allocAt(Xt+qt,ot),a.push(new Sn(Math.min(ft.x,Xt.x),Math.min(ft.y,Xt.y),Math.abs(ft.x-Xt.x),Math.abs(ft.y-Xt.y)));var ie=this.Ab;if(ie.reset(),ie.scale(nt,nt),this.Ca!==1&&ie.scale(this.Ca),nt=this.pa,(nt.x!==0||nt.y!==0)&&isFinite(nt.x)&&isFinite(nt.y)&&ie.translate(-nt.x,-nt.y),_i(ft,ie),_i(Xt,ie),b.push(new Sn(Math.min(ft.x,Xt.x),Math.min(ft.y,Xt.y),Math.abs(ft.x-Xt.x),Math.abs(ft.y-Xt.y))),qt=Lt===0?0:ot-jt,ft.h(0,qt),Xt.h(E,jt+qt),a.push(new Sn(Math.min(ft.x,Xt.x),Math.min(ft.y,Xt.y),Math.abs(ft.x-Xt.x),Math.abs(ft.y-Xt.y))),_i(ft,ie),_i(Xt,ie),b.push(new Sn(Math.min(ft.x,Xt.x),Math.min(ft.y,Xt.y),Math.abs(ft.x-Xt.x),Math.abs(ft.y-Xt.y))),Cc(this.Yf,this)&&(E=0<z?0:-z,ot=0<y?0:-y,ft.h(E,ot),Xt.h(at+E,ht+ot),a.push(new Sn(Math.min(ft.x,Xt.x),Math.min(ft.y,Xt.y),Math.abs(ft.x-Xt.x),Math.abs(ft.y-Xt.y))),_i(ft,ie),_i(Xt,ie),b.push(new Sn(Math.min(ft.x,Xt.x),Math.min(ft.y,Xt.y),Math.abs(ft.x-Xt.x),Math.abs(ft.y-Xt.y)))),xe.free(ft),xe.free(Xt),Nh(this,!1,!0),this.Ka===null&&Me("No div specified"),this.ta===null&&Me("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),Lt=nt.Zq,Lt.length=0,ft=this.scale,jt=Sn.alloc(),Xt=nt.Pa.s,ie=Xt.length,qt=at.length;for(var be=0;be<ie;be++){var ve=Xt[be],Te=Nc(ve,ve.actualBounds);t:{for(var Be=2/ft,ze=4/ft,Ve=0;Ve<qt;Ve++){var an=at[Ve];if(an.width!==0&&an.height!==0&&Te.Vu(an.x-Be,an.y-Be,an.width+ze,an.height+ze)){Te=!0;break t}}Te=!1}Te&&nt.Oj(E,ve,this,Lt,ft,jt,!0)}Sn.free(jt),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&&(Fs(this),this.bd(),rd(this,!0))}else x?(Fs(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,ft=a.viewportBounds;E=ft.x;var Lt=ft.y,jt=ft.width,Xt=ft.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 qt=a.ku,ie=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var be=a.documentBounds,ve=0,Te=0,Be=0,ze=0,Ve=ft.width,an=ft.height,Vn=a.rj;a.contentAlignment.sb()?(be.width>Ve&&(ve=Vn.left,Te=Vn.right),be.height>an&&(Be=Vn.top,ze=Vn.bottom)):(ve=Vn.left,Te=Vn.right,Be=Vn.top,ze=Vn.bottom);var $n=be.width+ve+Te,_n=be.height+Be+ze;Vn=a.scale;var Hn=$n>at/Vn,Tn=_n>ht/Vn;if(!(z||a.gf||a.Be||Hn||Tn))return!0;ve=be.x-ve,at=ft.x,Te=be.right+Te,ht=ft.right+nt,Be=be.y-Be;var Ni=ft.y;be=be.bottom+ze,ft=ft.bottom+ot;var Ei="1px";if(ze="1px",a.scrollMode===Uu&&(Hn||Tn)&&(Hn&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Hn=1,ve+1<at&&(Hn=Math.max((at-ve)*Vn+a.Aa,Hn)),Te>ht+1&&(Hn=Math.max((Te-ht)*Vn+a.Aa,Hn)),Ve+nt+1<$n&&(Hn=Math.max(($n-Ve)*Vn+a.Aa,Hn)),Ei=Hn.toString()+"px"),Tn&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Hn=1,Be+1<Ni&&(Hn=Math.max((Ni-Be)*Vn+a.ya,Hn)),be>ft+1&&(Hn=Math.max((be-ft)*Vn+a.ya,Hn)),an+ot+1<_n&&(Hn=Math.max((_n-an)*Vn+a.ya,Hn)),ze=Hn.toString()+"px")),Hn=Ei!=="1px",Tn=ze!=="1px",Hn&&Tn||!Hn&&!Tn||(Tn&&(ht-=a.Db),Hn&&(ft-=a.Db),$n<Ve+nt||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(nt=1,ve+1<at&&(nt=Math.max((at-ve)*Vn+a.Aa,nt)),Te>ht+1&&(nt=Math.max((Te-ht)*Vn+a.Aa,nt)),Ve+1<$n&&(nt=Math.max(($n-Ve)*Vn+a.Aa,nt)),Ei=nt.toString()+"px"),Hn=Ei!=="1px",nt=a.ya,Hn!==a.Be&&(nt=Hn?a.ya-a.Db:a.ya+a.Db),_n<an+ot||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(ot=1,Be+1<Ni&&(ot=Math.max((Ni-Be)*Vn+nt,ot)),be>ft+1&&(ot=Math.max((be-ft)*Vn+nt,ot)),an+1<_n&&(ot=Math.max((_n-an)*Vn+nt,ot)),ze=ot.toString()+"px"),Tn=ze!=="1px"),a.qr&&Hn===a.Be&&Tn===a.gf)return x===a.Aa&&b===a.ya||a.bd(),!1;if(Hn!==a.Be&&(Ei==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=Hn,ie.style.width=Ei,Tn!==a.gf&&(ze==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(ot=xe.alloc(),Tn?(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)),xe.free(ot))),z&&Ml(a),a.gf=Tn,ie.style.height=ze,a.gu=!0,z&&(a.pn=!0),y=qt.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(Ve+1<$n?y=(a.position.x-ve)*Vn:ve+1<at?y=qt.scrollWidth-qt.clientWidth:Te>ht+1&&(y=a.position.x*Vn)),a.tn)switch(a.bu){case"negative":y=-(qt.scrollWidth-y-qt.clientWidth);break;case"reverse":y=qt.scrollWidth-y-qt.clientWidth}return qt.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(an+1<_n?qt.scrollTop=(a.position.y-Be)*Vn:Be+1<Ni?qt.scrollTop=qt.scrollHeight-qt.clientHeight:be>ft+1&&(qt.scrollTop=a.position.y*Vn)),at=a.Aa,ht=a.ya,qt.style.width=at+(a.gf?a.Db:0)+"px",qt.style.height=ht+(a.Be?a.Db:0)+"px",x!==at||b!==ht||a.animationManager.zb?(x=Sn.allocAt(E,Lt,jt,Xt),a.onViewportBoundsChanged(x,a.viewportBounds,Vn,z),Sn.free(x),!1):!0}te=un.prototype,te.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&Me("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&&Me('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var x=y.oi(99999999,a,a.diagram===this);0<=x&&this.cb(lo,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},te.oi=function(a){this.partManager.oi(a);var y=this;Mc(a,function(x){xc(y,x)}),(a instanceof ur||a instanceof Ii&&a.placeholder!==null)&&a.v(),a.data!==null&&Mc(a,function(x){ly(y.partManager,x)}),Es(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()},te.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()},te.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))}te.Is=function(a,y){if(y===void 0&&(y=!1),cn(a))for(var x=a.length,b=0;b<x;b++){var E=a[b];y&&!E.canDelete()||this.remove(E)}else for(x=new Ln,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},te.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},un.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 Jn;if(a!==null)if(cn(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 Zn){if(y.add(x,a.Pd(E,x,x.location)),x instanceof Ii&&(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 Wn)for(y.add(x,a.Pd(E,x)),x=x.labelNodes;x.next();)Ul(a,y,x.value,b,E);else x instanceof ur||y.add(x,a.Pd(E,x,x.location))}function Oh(a,y,x,b,E){if(y!==null&&y.count!==0){var z=xe.alloc(),nt=xe.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=ln(),at=ln(),ht=y.iterator,ft=xe.alloc();ht.next();){var Lt=ht.key,jt=ht.value;if(Lt.Zc()){var Xt=wg(a,Lt,y);Xt!==null?ot.push(new it(Lt,jt,Xt)):(!E||Lt.canMove())&&(Xt=jt.point,z.assign(Xt),a.computeMove(Lt,z.add(nt),b,ft),Lt.location=ft,jt.shifted===void 0&&(jt.shifted=new xe),jt.shifted.assign(ft.re(Xt)))}else ht.key instanceof Wn&&at.push(ht.sa)}for(xe.free(ft),E=ot.length,ht=0;ht<E;ht++)Lt=ot[ht],z.assign(Lt.info.point),Lt.Su.shifted===void 0&&(Lt.Su.shifted=new xe),Lt.node.location=z.add(Lt.Su.shifted);for(E=xe.alloc(),ht=xe.alloc(),Lt=at.length,jt=0;jt<Lt;jt++){var qt=at[jt];if(Xt=qt.key,Xt instanceof Wn)if(Xt.suspendsRouting){Xt.Tg=null,ft=Xt.fromNode;var ie=Xt.toNode;if(a.draggedLink!==null&&b.dragsLink)if(ie=qt.value.point,Xt.dragComputation===null)y.add(Xt,a.Pd(b,Xt,nt)),Ju(Xt,nt.x-ie.x,nt.y-ie.y);else{qt=xe.allocAt(0,0),(ft=Xt.i(0))&&ft.w()&&qt.assign(ft);var be=ft=xe.alloc().assign(qt).add(nt);b.isGridSnapEnabled&&(b.isGridSnapRealtime||a.lastInput.up)&&(be=xe.alloc(),nf(a,Xt,ft,be,b)),ft.assign(Xt.dragComputation(Xt,ft,be)).re(qt),y.add(Xt,a.Pd(b,Xt,ft)),Ju(Xt,ft.x-ie.x,ft.y-ie.y),xe.free(qt),xe.free(ft),be!==ft&&xe.free(be)}else ft!==null&&(E.assign(ft.location),be=y.I(ft),be!==null&&E.re(be.point)),ie!==null&&(ht.assign(ie.location),be=y.I(ie),be!==null&&ht.re(be.point)),ft!==null&&ie!==null?E.Xa(ht)?(ft=qt.value.point,ie=z,ie.assign(E),ie.re(ft),y.add(Xt,a.Pd(b,Xt,E)),Ju(Xt,ie.x,ie.y)):(Xt.suspendsRouting=!1,Xt.bb()):(qt=qt.value.point,ft=ft!==null?E:ie!==null?ht:nt,y.add(Xt,a.Pd(b,Xt,ft)),Ju(Xt,ft.x-qt.x,ft.y-qt.y))}else(Xt.fromNode===null||Xt.toNode===null)&&(ft=qt.value.point,y.add(Xt,a.Pd(b,Xt,nt)),Ju(Xt,nt.x-ft.x,nt.y-ft.y))}xe.free(z),xe.free(nt),xe.free(E),xe.free(ht),xn(ot),xn(at),x||(ns(a),Ih(a,y))}}un.prototype.computeMove=function(a,y,x,b){if(b===void 0&&(b=new xe),b.assign(y),a===null)return b;var E=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(E=xe.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&&xe.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=xe.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),xe.free(z)}}function rf(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof Wn&&(y.suspendsRouting=!0)}function Ih(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof Wn&&(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}te=un.prototype,te.Pd=function(a,y,x){if(x===void 0)return new fu(Ri);var b=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(b=!1),b?new fu(new xe(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&&Me("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&Me("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&Me("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&Me("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&&Me("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}te.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(lo,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},te.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(lo,"layers",this,null,a,null,z),this.N(),0>b&&this.Ya(),this},te.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(lo,"layers",this,null,a,null,z+1),this.N(),0>b&&this.Ya(),this},te.kA=function(a){if(a.diagram!==this&&Me("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()}}},te.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},te.Yw=function(a){return this.pf===null&&(this.pf=new Cn),this.pf.add(a),this.model.Pe(a),this},te.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},te.Pe=function(a){return this.zg===null&&(this.zg=new Cn),this.zg.add(a),this},te.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},te.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)},te.cb=function(a,y,x,b,E,z,nt){z===void 0&&(z=null),nt===void 0&&(nt=null);var ot=new Zr;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)},te.g=function(a,y,x,b,E){this.cb(Vr,a,this,y,x,b,E)},un.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===Vr){var E=a.object;if(Hr(E,a.propertyName,a.I(y)),E instanceof Xe){var z=E.part;z!==null&&z.Wb()}this.isModified=!0}else if(b===lo){var nt=a.object,ot=a.newParam,at=a.newValue;if(nt instanceof Bn)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 ft=a.oldParam===!0;typeof ot=="number"&&at instanceof ci&&(y?(at.isSelected=!1,at.isHighlighted=!1,at.Wb(),nt.pc(ft?ot:-1,at,ft)):nt.oi(ot,at,ft))}else nt instanceof un?typeof ot=="number"&&at instanceof Vo&&(y?this.Wa.mb(ot):(at.Xe(this),this.Wa.Gb(ot,at))):Me("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(b===Eo){var Lt=a.object,jt=a.oldParam,Xt=a.oldValue;if(Lt instanceof Bn)typeof jt=="number"&&Xt instanceof Xe?y?Lt.Gb(jt,Xt):Lt.pc(jt):typeof jt=="number"&&Xt instanceof wo&&(Xt.isRow?c1(Lt,jt,y?Xt:void 0):d1(Lt,jt,y?Xt:void 0));else if(Lt instanceof Vo){var qt=a.newParam===!0;typeof jt=="number"&&Xt instanceof ci&&(y?0>Lt.Pa.indexOf(Xt)&&Lt.oi(jt,Xt,qt):(Xt.isSelected=!1,Xt.isHighlighted=!1,Xt.Wb(),Lt.pc(qt?jt:-1,Xt,qt)))}else Lt instanceof un?typeof jt=="number"&&Xt instanceof Vo&&(y?(Xt.Xe(this),this.Wa.Gb(jt,Xt)):this.Wa.mb(jt)):Me("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else b!==ia&&Me("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},un.prototype.Ea=function(a){return this.undoManager.Ea(a)},un.prototype.eb=function(a){return this.undoManager.eb(a)},un.prototype.Kf=function(){return this.undoManager.Kf()},un.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}},un.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},un.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(Ca)&&(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=xe.allocAt(a.pa.x+ot/y-ot/x,a.pa.y+at/y-at/x),a.position=z,xe.free(z),a.Ca=x,Ml(a),a.vb=!1,a.onViewportBoundsChanged(E,a.viewportBounds,y,!1),Ka(a,!1),b.zb&&(hu(b)||b.ce.add(b.H,"scale",y,a.Ca))}}un.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 Gr&&(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=zn.alloc(),E=1,z=1,nt=x.O.s,ot=nt.length,at=0;at<ot;at++){var ht=nt[at],ft=Math.abs(ht.interval);2>ft||(mv(ht.figure)?z=z*ft/Je.vx(z,ft):E=E*ft/Je.vx(E,ft))}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=Sn.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){Sn.free(y);return}E=y.width,z=y.height,a=y.x,nt=y.y,Sn.free(y)}x.width=E+2*b.width,x.height=z+2*b.height,y=xe.alloc(),Je.No(a,nt,0,0,b.width,b.height,y),y.offset(-b.width,-b.height),zn.free(b),x.part.location=y,xe.free(y)}}un.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)}},un.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))},un.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),cn(a))for(var y=a.length,x=0;x<y;x++){var b=a[x];b instanceof ci||Me("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 ci||Me("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},un.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()}},te=un.prototype,te.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},te.Jz=function(a){a=new Ln().addAll(a);for(var y=this.highlighteds.copy().hp(a).iterator;y.next();)y.value.isHighlighted=!1;for(a=a.iterator;a.next();)y=a.value,y instanceof ci||Me("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},te.scroll=function(a,y,x){x===void 0&&(x=1);var b=y==="up"||y==="down",E=0,z=xe.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)),xe.free(z);return}Me("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):Me("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),xe.free(z)},te.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)},te.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},te.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)},te.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,ft=y.dx,Lt=y.dy,jt=x*nt+b*at+ft;y=x*ot+b*ht+Lt;var Xt=E*nt+b*at+ft;return a=E*ot+b*ht+Lt,b=x*nt+z*at+ft,x=x*ot+z*ht+Lt,nt=E*nt+z*at+ft,E=E*ot+z*ht+Lt,z=Math.min(jt,Xt),jt=Math.max(jt,Xt),Xt=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,b),jt=Math.max(jt,b),Xt=Math.min(Xt,x),y=Math.max(y,x),z=Math.min(z,nt),jt=Math.max(jt,nt),Xt=Math.min(Xt,E),y=Math.max(y,E),new Sn(z,Xt,jt-z,y-Xt)},te.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),_i(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 br}un.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;Un(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 zs){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof Ln&&x.Bg.add(a);var b=y.Eg;if(b!==null&&b.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),x.hn)if(x=x.getAttribute("src")||"",b=a.Og.I(x),b===null)b=[],b.push(y),a.Og.add(x,b);else{for(a=0;a<b.length;a++)if(b[a]===y)return;b.push(y)}}}}function Eg(a,y){if(y instanceof zs){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 Ln&&x.Bg.remove(a),bf(b));break}}}}}un.prototype.Wd=function(){this.partManager.Wd()},un.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},un.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},un.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},un.prototype.Vb=function(a){return this.partManager.Vb(a)},un.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},te=un.prototype,te.Lc=function(a){return this.partManager.Lc(a)},te.ii=function(a){return this.partManager.ii(a)},te.Kc=function(a){return this.partManager.Kc(a)},te.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:or(Ti(y)))},te.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:or(Ti(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),Ka(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}te.Va=function(){if(this.Zi){var a=Sn.alloc();Lg(this,this.computeBounds(a)),Sn.free(a)}},te.rz=function(){for(var a=new Ln,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&a.add(x)}for(y=this.links;y.next();)x=y.value,x.isTopLevel&&a.add(x);return a.iterator},te.qz=function(){return this.ai.iterator},te.Uz=function(a){ns(this),a&&of(this,!0),this.ld?Ag(this,!1):(this.Jk=!0,Ma(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)}}te.yz=function(){for(var a=new Cn,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 Cn;x.add(E,nt),x.add(z,nt),b.add(E,E),b.add(z,E)}var x=new Jn,b=new Jn;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;Me("Unknown DiagramEvent name: "+y)}te.Bj=function(a,y){return a=sf(this,a),a!==null&&a.add(y),this},te.am=function(a,y){a=sf(this,a),a!==null&&a.remove(y)},te.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}te.Yj=function(a,y){return lf(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},un.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=Sn.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)}Sn.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),E.initialize(y)),y=Sn.alloc(),z=x.memberParts;z.next();)nt=z.value,nt instanceof Zn&&uf(a,nt,b,y);Sn.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 Ii)for(y=y.memberParts;y.next();)E=y.value,E instanceof Zn&&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)}un.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=Un(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=Sn.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Lg(a,y),Sn.free(y),a.Fc=!0,a.bd(),Tg(a))}},a.vp))}un.prototype.ug=function(){this.vk!==-1&&(Ae.clearTimeout(this.vk),this.vk=-1)},un.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=Sn.allocAt(0,0,b.width*E,b.height*E);var z=xe.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(Ri)||(y=new xe(y.x+z.x/E,y.y+z.y/E)),Sn.free(b),xe.free(z),y},te=un.prototype,te.Cs=function(){return null},te.av=function(){return null},te.bs=function(a,y){this.pj.add(a,y)},te.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Ii&&(y.$p=null)})};function ld(a,y,x){function b(){var ft=+new Date;for(z=!0,nt.reset();nt.next();)if(!nt.value[0].al){z=!1;break}z||ft-ht>at?y(x,E,ot):Ae.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 Ae.requestAnimationFrame(function(){b()}),null}te.Wz=function(a){return qr?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},te.Jx=function(a){return a===void 0&&(a={}),ld(this,this.Xz,a)},te.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"&&Me('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"&&Me("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 zn(1/0,1/0):new zn(2e3,2e3));var ot=y.position||null,at=y.parts||null,ht=y.padding===void 0?1:y.padding,ft=y.background||null,Lt=y.omitTemporary;Lt===void 0&&(Lt=!0);var jt=y.document||document,Xt=y.elementFinished||null,qt=y.showTemporary;qt===void 0&&(qt=!Lt),y=y.showGrid,y===void 0&&(y=qt),E!==null&&isNaN(E.width)&&isNaN(E.height)&&(E=null),typeof ht=="number"?ht=new hi(ht):ht instanceof hi||Me("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),Lt=new Za(null,jt,void 0,!0);var ie=Lt.context;if(!(E||z||at||ot))return Lt.width=a.Aa+Math.ceil(ht.left+ht.right),Lt.height=a.ya+Math.ceil(ht.top+ht.bottom),x==="SVG"?b===null?null:(b.resize(Lt.width,Lt.height,Lt.width,Lt.height),b.ownerDocument=jt,b.hs=Xt,tf(a,b.context,ht,new zn(Lt.width,Lt.height),a.Ca,a.pa,at,ft,qt,y),b.context):(a.Xm=!1,tf(a,ie,ht,new zn(Lt.width,Lt.height),a.Ca,a.pa,at,ft,qt,y),a.Xm=!0,Lt.context);var be=a.Pp,ve=a.documentBounds.copy();if(ve.Fv(a.yb),qt)for(var Te=a.Wa.s,Be=Te.length,ze=0;ze<Be;ze++){var Ve=Te[ze];if(Ve.visible&&Ve.isTemporary){Ve=Ve.Pa.s;for(var an=Ve.length,Vn=0;Vn<an;Vn++){var $n=Ve[Vn];$n.isInDocumentBounds&&$n.isVisible()&&($n=$n.actualBounds,$n.w()&&ve.ed($n))}}}if(Te=new xe(ve.x,ve.y),at!==null){for(Be=new Sn(0,0,0,0),ze=!0,Ve=at.iterator,Ve.reset();Ve.next();)an=Ve.value,an instanceof ci&&(Vn=an.layer,Vn!==null&&!Vn.visible||Vn!==null&&!qt&&Vn.isTemporary||!an.isVisible()||(an=an.actualBounds,an.w()&&(ze?(ze=!1,Be.assign(an)):Be.ed(an))));ve.width=Be.width,ve.height=Be.height,Te.x=Be.x,Te.y=Be.y}return ot!==null&&ot.w()&&(Te=ot,z||(z=be)),Be=ot=0,ht!==null&&(ot=ht.left+ht.right,Be=ht.top+ht.bottom),ze=Ve=0,E!==null&&(Ve=E.width,ze=E.height,isFinite(Ve)&&(Ve=Math.max(0,Ve-ot)),isFinite(ze)&&(ze=Math.max(0,ze-Be))),E!==null&&z!==null?(z==="NaN"&&(z=be),E.w()?(E=Ve,ve=ze):isNaN(ze)?(E=Ve,ve=ve.height*z):(E=ve.width*z,ve=ze)):E!==null?E.w()?(z=Math.min(Ve/ve.width,ze/ve.height),E=Ve,ve=ze):isNaN(ze)?(z=Ve/ve.width,E=Ve,ve=ve.height*z):(z=ze/ve.height,E=ve.width*z,ve=ze):z!==null?z==="NaN"&&nt.w()?(z=Math.min((nt.width-ot)/ve.width,(nt.height-Be)/ve.height),z>be?(z=be,E=ve.width,ve=ve.height):(E=nt.width,ve=nt.height)):(E=ve.width*z,ve=ve.height*z):(z=be,E=ve.width,ve=ve.height),ht!==null?(E+=ot,ve+=Be):ht=new hi(0),nt!==null&&(be=nt.width,nt=nt.height,isNaN(be)&&(be=2e3),isNaN(nt)&&(nt=2e3),isFinite(be)&&(E=Math.min(E,be)),isFinite(nt)&&(ve=Math.min(ve,nt))),Lt.width=Math.ceil(E),Lt.height=Math.ceil(ve),x==="SVG"?b===null?null:(b.resize(Lt.width,Lt.height,Lt.width,Lt.height),b.ownerDocument=jt,b.hs=Xt,tf(a,b.context,ht,new zn(Math.ceil(E),Math.ceil(ve)),z,Te,at,ft,qt,y),b.context):(a.Xm=!1,tf(a,ie,ht,new zn(Math.ceil(E),Math.ceil(ve)),z,Te,at,ft,qt,y),a.Xm=!0,Lt.context)}Fe.Object.defineProperties(un.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof kt||(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,Ae.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,Ae.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(Ae,"resize",this.Ov,!1),this.removeEventListener(Ae,"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)&&fn(a,"0 <= value <= 1",un,"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),Ka(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),Ka(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),Ka(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),Ka(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&fn(a,">= 0",un,"scrollHorizontalLineChange"),this.iu=a,this.g("scrollHorizontalLineChange",y,a))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(a){var y=this.mu;y!==a&&(0>a&&fn(a,">= 0",un,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var b=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===b&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===b&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===b&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0<a)){this.R("ChangingSelection",this.selection),y=this.selection.Fa();for(var x=0;x<a;x++)y[x].isSelected=!1;this.R("ChangedSelection",this.selection)}}else fn(a,">= 0",un,"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&&Me("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(Ae,"pointermove",this.dk,!0),this.addEventListener(Ae,"pointerdown",this.ui,!0),this.addEventListener(Ae,"pointerup",this.fk,!0),this.addEventListener(Ae,"pointerout",this.ek,!0),this.addEventListener(Ae,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(Ae,"wheel",this.$j,!0),this.addEventListener(Ae,"selectstart",this.preventDefault,!1)):(this.removeEventListener(Ae,"pointermove",this.dk,!0),this.removeEventListener(Ae,"pointerdown",this.ui,!0),this.removeEventListener(Ae,"pointerup",this.fk,!0),this.removeEventListener(Ae,"pointerout",this.ek,!0),this.removeEventListener(Ae,"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(Ae,"wheel",this.$j,!0),this.removeEventListener(Ae,"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=xe.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)}xe.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!==Bn.Grid&&Me("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||Me("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 hi(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&&Ka(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,Ka(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&&Ka(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()||Me("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()||Me("initialViewportSpot must be a specific Spot: "+a),this.yt=a,this.g("initialDocumentSpot",y,a))}},minScale:{get:function(){return this.Ot},set:function(a){var y=this.Ot;y!==a&&(0<a?(this.Ot=a,this.g("minScale",y,a),a>this.scale&&(this.scale=a)):fn(a,"> 0",un,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0<a?(this.Mt=a,this.g("maxScale",y,a),a<this.scale&&(this.scale=a)):fn(a,"> 0",un,"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),Ka(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 hi(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&&Me("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&&Me("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 zn(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 hi(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),Fe.Object.defineProperties(un,{licenseKey:{get:function(){return Fg.jc()},set:function(a){Fg.add(a.replace(/\s/g,""))}},version:{get:function(){return Pc}}}),un.prototype.makeImageData=un.prototype.Jx,un.prototype.makeImage=un.prototype.Wz,un.prototype.cacheGroupExternalLinks=un.prototype.Fu,un.prototype.addRenderer=un.prototype.bs,un.prototype.makeSVG=un.prototype.av,un.prototype.makeSvg=un.prototype.Cs,un.prototype.stopAutoScroll=un.prototype.ug,un.prototype.doAutoScroll=un.prototype.gs,un.prototype.isUnoccupied=un.prototype.Yj,un.prototype.raiseDiagramEvent=un.prototype.R,un.prototype.removeDiagramListener=un.prototype.am,un.prototype.addDiagramListener=un.prototype.Bj,un.prototype.findTreeRoots=un.prototype.yz,un.prototype.layoutDiagram=un.prototype.Uz,un.prototype.findTopLevelGroups=un.prototype.qz,un.prototype.findTopLevelNodesAndLinks=un.prototype.rz,un.prototype.ensureBounds=un.prototype.Va,un.prototype.findLinksByExample=un.prototype.ls,un.prototype.findNodesByExample=un.prototype.ms,un.prototype.findLinkForData=un.prototype.Kc,un.prototype.findNodeForData=un.prototype.ii,un.prototype.findPartForData=un.prototype.Lc,un.prototype.findLinkForKey=un.prototype.findLinkForKey,un.prototype.findNodeForKey=un.prototype.Vb,un.prototype.findPartForKey=un.prototype.findPartForKey,un.prototype.rebuildParts=un.prototype.Wd,un.prototype.transformViewToDoc=un.prototype.Ps,un.prototype.transformRectDocToView=un.prototype.zA,un.prototype.transformDocToView=un.prototype.op,un.prototype.centerRect=un.prototype.es,un.prototype.scrollToRect=un.prototype.tv,un.prototype.scroll=un.prototype.scroll,un.prototype.highlightCollection=un.prototype.Jz,un.prototype.highlight=un.prototype.Iz,un.prototype.selectCollection=un.prototype.rA,un.prototype.select=un.prototype.select,un.prototype.updateAllRelationshipsFromData=un.prototype.rp,un.prototype.updateAllTargetBindings=un.prototype.updateAllTargetBindings,un.prototype.commit=un.prototype.commit,un.prototype.rollbackTransaction=un.prototype.Kf,un.prototype.commitTransaction=un.prototype.eb,un.prototype.startTransaction=un.prototype.Ea,un.prototype.raiseChanged=un.prototype.g,un.prototype.raiseChangedEvent=un.prototype.cb,un.prototype.removeChangedListener=un.prototype.ik,un.prototype.addChangedListener=un.prototype.Pe,un.prototype.removeModelChangedListener=un.prototype.mA,un.prototype.addModelChangedListener=un.prototype.Yw,un.prototype.findLayer=un.prototype.Qj,un.prototype.removeLayer=un.prototype.kA,un.prototype.addLayerAfter=un.prototype.Cy,un.prototype.addLayerBefore=un.prototype.Ww,un.prototype.addLayer=un.prototype.Al,un.prototype.moveParts=un.prototype.moveParts,un.prototype.copyParts=un.prototype.Kj,un.prototype.removeParts=un.prototype.Is,un.prototype.remove=un.prototype.remove,un.prototype.add=un.prototype.add,un.prototype.clearDelayedGeometries=un.prototype.bx,un.prototype.setProperties=un.prototype.nm,un.prototype.attach=un.prototype.Du,un.prototype.set=un.prototype.set,un.prototype.resetInputOptions=un.prototype.Sx,un.prototype.setInputOption=un.prototype.sA,un.prototype.getInputOption=un.prototype.Ql,un.prototype.resetRenderingHints=un.prototype.Tx,un.prototype.setRenderingHint=un.prototype.Xx,un.prototype.getRenderingHint=un.prototype.Gf,un.prototype.maybeUpdate=un.prototype.bd,un.prototype.requestUpdate=un.prototype.$b,un.prototype.delayInitialization=un.prototype.Xy,un.prototype.isUpdateRequested=un.prototype.Pz,un.prototype.invalidateDocumentBounds=un.prototype.Ya,un.prototype.findObjectsNear=un.prototype.og,un.prototype.findPartsNear=un.prototype.mz,un.prototype.findObjectsIn=un.prototype.Cf,un.prototype.findPartsIn=un.prototype.ux,un.prototype.findObjectsAt=un.prototype.ji,un.prototype.findPartsAt=un.prototype.lz,un.prototype.findObjectAt=un.prototype.ic,un.prototype.findPartAt=un.prototype.Ol,un.prototype.focusObject=un.prototype.zz,un.prototype.alignDocument=un.prototype.Jy,un.prototype.zoomToRect=un.prototype.BA,un.prototype.zoomToFit=un.prototype.zoomToFit,un.prototype.diagramScroll=un.prototype.kx,un.prototype.focus=un.prototype.focus;var hf=new Jn,om=null,qr=Ae.document!==void 0,wc=null,Fh="",ds=new qe(un,"None",0),pa=new qe(un,"Uniform",1),Bh=new qe(un,"UniformToFill",2),ud=new qe(un,"CycleAll",10),kg=new qe(un,"CycleNotDirected",11),Ng=new qe(un,"CycleNotDirectedFast",12),Og=new qe(un,"CycleNotUndirected",13),Ig=new qe(un,"CycleDestinationTree",14),Dg=new qe(un,"CycleSourceTree",15),Uu=new qe(un,"DocumentScroll",1),hd=new qe(un,"InfiniteScroll",2),Gu=new qe(un,"TreeParentCollapsed",21),So=new qe(un,"AllParentsCollapsed",22),cf=new qe(un,"AnyParentsCollapsed",23),Fg=new Cn,Pc="2.3.10",bc="image",cd=null,sm=!1;function ss(){if(qr){var a=Ae.document.createElement("canvas"),y=a.getContext("2d"),x=jn("7ca11abfd022028846");y[x]=jn("398c3597c01238");for(var b=["5da73c80a36455d7038e4972187c3cae51fd22",gn.Dx+"4ae6247590da4bb21c324ba3a84e385776",Vi.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Je.za],E=1;5>E;E++)y[jn("7ca11abfd7330390")](jn(b[E-1]),10,15*E);for(y[x]=jn("39f046ebb36e4b"),x=1;5>x;x++)y[jn("7ca11abfd7330390")](jn(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}}un.className="Diagram",un.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=Ae.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof un?y.H:null},un.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},un.useDOM=function(a){qr=a?Ae.document!==void 0:!1},un.isUsingDOM=function(){return qr},un.None=ds,un.Uniform=pa,un.UniformToFill=Bh,un.CycleAll=ud,un.CycleNotDirected=kg,un.CycleNotDirectedFast=Ng,un.CycleNotUndirected=Og,un.CycleDestinationTree=Ig,un.CycleSourceTree=Dg,un.DocumentScroll=Uu,un.InfiniteScroll=hd,un.TreeParentCollapsed=Gu,un.AllParentsCollapsed=So,un.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=Ae[jn("76a715b2f73f148a")][jn("72ba13b5")]||"";if(a.Rc=!0,qr){var b=un[jn("76a115b6ed251eaf4692")];if(b)for(var E=Fg.iterator;E.next()&&(b=E.value,b=jn(b).split(jn("39e9")),!(6>b.length));){var z=jn(b[1]).split(".");if(b[4]!=="7da71ca0")break;var nt=jn(gn[jn("6cae19")]).split(".");if(z[0]>nt[0]||z[0]===nt[0]&&z[1]>=nt[1]){var ot=Ae[jn("74a900bae4370f8b51")][jn("6fbb13a1c2311e8a57")].toLowerCase();if(nt=ot[jn("73a612b6fb191d")](jn("3aad1ab6e022098b4dc4")),z=jn(b[2]),-1<nt&&(ot=ot[jn("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<ot&&ot<nt),!a.Rc))break;for(nt=x[jn("76ad18b4f73e")],ot=x[jn("73a612b6fb191d")](jn("35e7"))+2;ot<nt;ot++)y+=x[ot];if(nt=y[jn("73a612b6fb191d")](z),0>nt&&z!==jn("7da71ca0ad381e90")&&(nt=y[jn("73a612b6fb191d")](jn("76a715b2ef3e149757"))),0>nt&&(nt=y[jn("73a612b6fb191d")](jn("76a715b2ef3e149757"))),0>nt&&(nt=y[jn("73a612b6fb191d")](jn("2bfa41fdb3784bca12"))),0>nt&&(nt=x[jn("73a612b6fb191d")](jn("7baa19a6f76c1988428554"))),a.Rc=!(0<=nt&&nt<y[jn("73a612b6fb191d")](jn("35"))||y[jn("73a612b6fb191d")](jn("35"))===-1),!a.Rc||x[jn("73a612b6fb191d")](jn("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[jn("73a612b6fb191d")](z)),!a.Rc)||(nt=Ae[jn("76a715b2f73f148a")][jn("69ad17a1e03e")],ot=nt[jn("73a612b6fb191d")](jn("7fb002b6ed25128b4da25b2e")),-1<ot&&(a.Rc=!(nt[jn("73a612b6fb191d")](z)>ot),!a.Rc)))break;if(z[0]==="#"){nt=Ae.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[jn("79a417a0f0181a8946")]=b,Ae.document[jn("78a712aa")]){Ae.document[jn("78a712aa")][jn("7bb806b6ed32388c4a875b")](nt),at=Ae.getComputedStyle(nt).getPropertyValue(jn("78a704b7e62456904c9b12701b6532a8"));var ht=Ae.getComputedStyle(nt).getPropertyValue(jn("75b817b0ea2202"));if(Ae.document[jn("78a712aa")][jn("68ad1bbcf533388c4a875b")](nt),at){if(nt=Ae[jn("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(jn("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(b="."+b,z=0;z<document.styleSheets.length;z++){nt=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var ft in nt)if(b===nt[ft].selectorText){a.Rc=!1;break t}}}}else a.Rc=null,a.Rc=!1}}}else{for(ft=x[jn("76ad18b4f73e")],E=x[jn("73a612b6fb191d")](jn("35e7"))+2;E<ft;E++)y+=x[E];x=y[jn("73a612b6fb191d")](jn("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[jn("73a612b6fb191d")](jn("35")))}}}return 0<a.Rc&&a!==a.wy}am.className="DiagramHelper";function fu(a){this.j=a===void 0?new xe:a,this.o=new xe}Fe.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 zn(NaN,NaN).freeze(),this.gridSnapCellSpot=ko,this.gridSnapOrigin=new xe(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},lt.className="DraggingOptions";function wt(a,y){if(typeof a=="string"||Ae.Element&&a instanceof Element)var x=un.call(this,a)||this;else x=un.call(this)||this,y=a;return St(x),y&&x.nm(y),x}Qe(wt,un);function St(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=ba,a.layout=new Jo}wt.prototype.reset=function(){un.prototype.reset.call(this),St(this)},wt.className="Palette";function kt(a,y){if(typeof a=="string"||Ae.Element&&a instanceof Element)var x=un.call(this,a)||this;else x=un.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 ci;var E=new ji;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 hi(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new Ce,x.toolManager.mouseMoveTools),x.click=function(){var z=b.observed;if(z!==null){var nt=z.viewportBounds,ot=b.lastInput.documentPoint;z.position=new xe(ot.x-nt.width/2,ot.y-nt.height/2)}},x.Pf=function(){b.Ya(),ge(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&&ge(b)},x.autoScale=pa,x.vb=!1,y&&Object.assign(x,y),x}Qe(kt,un),kt.prototype.computePixelRatio=function(){return 1},kt.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 Za(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),ne(this)}finally{this.ta=a,this.ib=y}}}un.prototype.redraw.call(this)},kt.prototype.gc=function(){if(this.Ka===null&&Me("No div specified"),this.ta===null&&Me("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?ne(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 ne(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=Sn.alloc().assign(a.viewportBounds).ed(y.viewportBounds),Al(y,E),Sn.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 ft=du(ot,E),Lt=at.scale,jt=Sn.alloc(),Xt=ot.Pa.s,qt=Xt.length,ie=0;ie<qt;ie++){var be=Xt[ie];(b||be!==ht)&&ot.Oj(E,be,at,null,Lt,jt,!1)}Sn.free(jt),E.globalAlpha=ft}}}}}function ge(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=zn.alloc();E.h(x.width,x.height),b.desiredSize=E,zn.free(E),a=2/a.scale,b instanceof ji&&(b.strokeWidth=a),y.location=new xe(x.x-a/2,x.y-a/2),y.isSelected=!0}}}kt.prototype.computeBounds=function(){var a=this.observed;if(a===null)return $i;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},kt.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},kt.prototype.onViewportBoundsChanged=function(a,y,x,b){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),ge(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))},Fe.Object.defineProperties(kt.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof kt&&Me("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),ge(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),ge(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)}}}),kt.className="Overview";function Ce(){_r.call(this),this.j=null}Qe(Ce,_r),Ce.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 xe(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new xe(a.x-this.j.x,a.y-this.j.y)),!0)},Ce.prototype.doActivate=function(){this.j=null,_r.prototype.doActivate.call(this)},Ce.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},Ce.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 xe(b.x-x.x,b.y-x.y)}a=a.lastInput.documentPoint,y.position=new xe(a.x-this.j.x,a.y-this.j.y)}}},Ce.className="OverviewDraggingTool";function Pe(){Bi(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=$i,this.hb=!0,this.cg=null,this.ob=200}Pe.prototype.toString=function(){return"CommandHandler"},Pe.prototype.Xe=function(a){this.H=a},Pe.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=pi?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()},Pe.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},Pe.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Gr&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},Pe.prototype.canStopCommand=function(){return!0},Pe.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=""}},Pe.prototype.canSelectAll=function(){return this.diagram.allowSelect},Pe.prototype.deleteSelection=function(){var a=this.diagram;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Delete"),a.R("SelectionDeleting",a.selection);for(var y=new Ln,x=a.selection.iterator;x.next();)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=""}},Pe.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},Pe.prototype.copySelection=function(){var a=this.diagram,y=new Ln;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)},Pe.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},Pe.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},Pe.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},Pe.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 Cn,x.addAll(z),wc=x,Fh=y.model.dataFormat}}y.R("ClipboardChanged",x)},Pe.prototype.pasteFromClipboard=function(){var a=new Ln,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},Pe.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 xe(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=""}},Pe.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)},Pe.prototype.undo=function(){this.diagram.undoManager.undo()},Pe.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},Pe.prototype.redo=function(){this.diagram.undoManager.redo()},Pe.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},Pe.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))},Pe.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)},Pe.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))},Pe.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)},Pe.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},Pe.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},Pe.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=$i):(this.Jt=b,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),Yd(y)},Pe.prototype.canZoomToFit=function(){return this.diagram.allowZoom},Pe.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=He(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 Zn&&at.isTreeExpanded&&(!(at instanceof Ii)||at.isSubGraphExpanded);)at=E.pop();0<E.length?(at instanceof ci&&y.tv(at.actualBounds),at instanceof Zn&&!at.isTreeExpanded&&(at.isTreeExpanded=!0),at instanceof Ii&&!at.isSubGraphExpanded&&(at.isSubGraphExpanded=!0)):(at instanceof ci&&y.es(at.actualBounds),y.am("LayoutCompleted",nt)),y.eb("Scroll To Part")},nt=function(){Un(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 He(a,y,x){if(y.isVisible())return x;if(y instanceof ur)He(a,y.adornedPart,x);else if(y instanceof Wn){var b=y.fromNode;b!==null&&He(a,b,x),y=y.toNode,y!==null&&He(a,y,x)}else y instanceof Zn&&(b=y.labeledLink,b!==null&&He(a,b,x),b=y.pg(),b!==null&&(b.isTreeExpanded||b.wasTreeExpanded||x.push(b),He(a,b,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),He(a,y,x));return x}Pe.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof ci)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},Pe.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 Cn;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 Zn&&E.isTreeExpanded&&(E.collapseTree(),x.add(E))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},Pe.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Zn&&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 Zn&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Pe.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 Cn;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 Zn&&!E.isTreeExpanded&&(E.expandTree(),x.add(E))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},Pe.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Zn)||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 Zn&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},Pe.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 Cn,z=a.selection.iterator;z.next();){var nt=z.value;nt.Zc()&&nt.canGroup()&&E.add(nt)}for(var ot=new Cn,at=E.iterator;at.next();){var ht=at.value;z=!1;for(var ft=E.iterator;ft.next();)if(ht.Td(ft.value)){z=!0;break}z||ot.add(ht)}if(0<ot.count){var Lt=ot.first().containingGroup;if(Lt!==null)for(;Lt!==null;){E=!1;for(var jt=ot.iterator;jt.next();)if(!jt.value.Td(Lt)){E=!0;break}if(E)Lt=Lt.containingGroup;else break}if(x instanceof Ii)Xa(x),b=x.copy(),b!==null&&a.add(b);else if(y.Yu(x)){var Xt=y.copyNodeData(x);Ke(Xt)&&(y.xf(Xt),b=a.ii(Xt))}if(b!==null){Lt!==null&&this.isValidMember(Lt,b)&&(b.containingGroup=Lt);for(var qt=ot.iterator;qt.next();){var ie=qt.value;this.isValidMember(b,ie)&&(ie.containingGroup=b)}a.clearSelection(!0),b.isSelected=!0}}a.R("SelectionGrouped",b)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},Pe.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 pn(a){var y=ln();for(a=a.iterator;a.next();){var x=a.value;x instanceof Wn||y.push(x)}a=new Ln,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}Pe.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof Wn)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},Pe.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 Cn;if(a!==null)b.add(a);else for(var E=y.selection.iterator;E.next();){var z=E.value;z instanceof Ii&&z.canUngroup()&&b.add(z)}var nt=new Cn;if(0<b.count){y.clearSelection(!0);for(var ot=b.iterator;ot.next();){var at=ot.value;at.expandSubGraph();var ht=at.containingGroup,ft=ht!==null&&ht.data!==null?x.wa(ht.data):void 0;nt.addAll(at.memberParts);for(var Lt=nt.iterator;Lt.next();){var jt=Lt.value;if(jt.isSelected=!0,!(jt instanceof Wn)){var Xt=jt.data;Xt!==null?x.mp(Xt,ft):jt.containingGroup=ht}}y.remove(at)}}y.R("SelectionUngrouped",b,nt)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},Pe.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 Ii))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Ii&&y.canUngroup())return!0;return!1},Pe.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=pn(a).iterator;a.next();){var b=a.value;b.containingGroup!==null&&(!y||this.isValidMember(null,b)?b.containingGroup=null:x=!1)}return x},Pe.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 Cn;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 Ii&&E.isSubGraphExpanded&&(E.collapseSubGraph(),x.add(E))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},Pe.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof Ii&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Ii&&y.isSubGraphExpanded)return!0;return!1},Pe.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 Cn;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 Ii&&!E.isSubGraphExpanded&&(E.expandSubGraph(),x.add(E))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},Pe.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof Ii&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Ii&&!y.isSubGraphExpanded)return!0;return!1},Pe.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)}},Pe.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},Pe.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(ar):y.viewportBounds.ca(b.documentPoint)||(E=y.viewportBounds,E=new xe(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)}},Pe.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)},Pe.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 Jn,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 Wn&&(y=a.fromNode,y===null||b.contains(y)?(y=a.toNode,y===null||b.contains(y)||b.remove(a)):b.remove(a));return b},Fe.Object.defineProperties(Pe.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||Me("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}}}),Pe.className="CommandHandler",Yp=function(){return new Pe};function Xe(){Bi(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new xe(NaN,NaN).freeze(),this.jd=Wo,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 Sn(NaN,NaN,NaN,NaN).freeze(),this.Ib=new Sn(NaN,NaN,NaN,NaN).freeze(),this.dc=new Sn(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Pr,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 Fn,Dn,ni,ai,wi,Di,er,Ui,sr,Lr;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(cn(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()},te=Xe.prototype,te.qb=function(a){a.classType===Wn?a.name.indexOf("Orient")===0?this.segmentOrientation=a:Me("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===Xe&&(this.stretch=a)},te.toString=function(){return yn(this.constructor)+"#"+Hi(this)},te.th=function(){this.A!==null&&(this.A.nc=!0)};function Wi(a){a.A===null?a.A=new gd:a.A.nc&&(a.A=a.A.copy())}te.Xc=function(){if(this.ba===null){var a=new Bg;a.Xi=ro,a.yj=ro,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},te.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===Vr&&qo(this)&&jr(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 Jn),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 Bn&&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 Bn&&Mc(ot,function(at){at.data!==null&&at.l&16777216&&at.La(y)})};function jr(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))}}te.ks=function(a){return this.bindingId===a?this:null},te.g=function(a,y,x){this.cb(Vr,a,this,y,x)},te.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 Do(a,y,x,b){return a.pickable===!1?!1:(b.multiply(a.transform),x?a.Yc(y,b):a.fh(y,b))}te.tx=function(a,y,x){if(this.pickable===!1)return!1;var b=this.naturalBounds;return y=a.Bf(y),x?Mr(a.x,a.y,0,0,0,b.height)<=y||Mr(a.x,a.y,0,b.height,b.width,b.height)<=y||Mr(a.x,a.y,b.width,b.height,b.width,0)<=y||Mr(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},te.se=function(){return!0},te.ca=function(a){var y=xe.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return xe.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=Ji(x.x-nt*at,x.y-nt*at,x.width+z*at,x.height+z*at,y.x,y.y),xe.free(y),a}return E=!1,(this instanceof ur||this instanceof ji?Ji(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)),xe.free(y),E},te.gh=function(a){var y=this.naturalBounds;return Ji(0,0,y.width,y.height,a.x,a.y)},te.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=Sn.allocAt(0,0,y.width,y.height);var x=this.transform,b=!1,E=xe.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)))),xe.free(E),Sn.free(y),b},te.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,b=!1,E=xe.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)))),xe.free(E),b},te.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,b=xe.allocAt(0,0),E=xe.allocAt(0,x.height),z=xe.allocAt(x.width,x.height),nt=xe.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=Sn.allocAt(0,0,x.width,x.height);var at=xe.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)))),xe.free(at),Sn.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 xe.free(b),xe.free(E),xe.free(z),xe.free(nt),ot},te.ga=function(a,y){if(y===void 0&&(y=new xe),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},te.mi=function(a){a===void 0&&(a=new Sn);var y=this.naturalBounds,x=this.oe,b=xe.allocAt(0,0).transform(x);return a.h(b.x,b.y,0,0),b.h(y.width,0).transform(x),qi(a,b.x,b.y,0,0),b.h(y.width,y.height).transform(x),qi(a,b.x,b.y,0,0),b.h(0,y.height).transform(x),qi(a,b.x,b.y,0,0),xe.free(b),a},te.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},te.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},te.qs=function(a,y){return y===void 0&&(y=new xe),y.assign(a),this.oe.Cd(y),y},te.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},te.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,ft=z.m11*nt,Lt=nt*(z.m21*z.dy-z.m22*z.dx),jt=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+Lt,a=a*at+y*ft+jt,y=x*ot+b*ht+Lt,x=x*at+b*ft+jt,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(va(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 Bn;switch(Rs(this,!0)){case Dn:nt=E=0,ot&&(y=a=1/0);break;case Fn: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 wi: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()||Me("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=Sn.alloc();z.assign(this.Ib),this.Ib.ka(),Es(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()||Me("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Gl(this,!1),Sn.free(z)},te=Xe.prototype,te.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=Rs(a,!0),x===b&&z===E&&(y=Dn),y){case Dn:(x>b||z>E)&&(xo(a,!0),a.measure(x>b?b:x,z>E?E:z,0,0));break;case Fn:xo(a,!0),a.measure(b,E,0,0);break;case ai:xo(a,!0),a.measure(b,z,0,0);break;case wi:xo(a,!0),a.measure(x,E,0,0)}}}te.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(),mr(a,y)||(x.oh(),this.Pn(x)))},te.Pn=function(a){this.portId!==null&&(zv(a,!0),a instanceof Zn&&K1(a,this))},te.gc=function(a,y){if(!Ta(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 Bn&&Zu(this),nt=this.Ib;if(z){var ot=this.Ib,at=this.dc,ht=this.areaBackground,ft=this.Ma;ht===null&&ft===null||a.yc(),ht!==null&&($r(this,a,ht,!0,!0,at,ot),ht instanceof xr&&ht.type===Oa?(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)),ft!==null&&($r(this,a,ft,!0,!1,at,ot),ft instanceof xr&&ft.type===Oa?(a.beginPath(),a.rect(ot.x,ot.y,ot.width,ot.height),a.ng(ft)):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 Lt=0;ht&&y.Gf("drawShadows")&&(at=ht.isShadowed)&&(ft=ht.shadowOffset,Lt=Math.max(ft.y,ft.x)*y.scale*y.Mb),ft=this.Dd();var jt;if(!(jt=y.$i||!ft)){var Xt=this.naturalBounds;jt=this.wh;var qt=jt.m11,ie=jt.m21,be=jt.dx,ve=jt.m12,Te=jt.m22,Be=jt.dy,ze,Ve=ze=0;jt=ze*qt+Ve*ie+be;var an=ze*ve+Ve*Te+Be;ze=Xt.width+Lt,Ve=0;var Vn=ze*qt+Ve*ie+be;ze=ze*ve+Ve*Te+Be,Ve=Math.min(jt,Vn);var $n=Math.min(an,ze),_n=Math.max(jt+0,Vn)-Ve,Hn=Math.max(an+0,ze)-$n;jt=Ve,an=$n,ze=Xt.width+Lt,Ve=Xt.height+Lt,Vn=ze*qt+Ve*ie+be,ze=ze*ve+Ve*Te+Be,Ve=Math.min(jt,Vn),$n=Math.min(an,ze),_n=Math.max(jt+_n,Vn)-Ve,Hn=Math.max(an+Hn,ze)-$n,jt=Ve,an=$n,ze=0,Ve=Xt.height+Lt,Vn=ze*qt+Ve*ie+be,ze=ze*ve+Ve*Te+Be,Ve=Math.min(jt,Vn),$n=Math.min(an,ze),_n=Math.max(jt+_n,Vn)-Ve,Hn=Math.max(an+Hn,ze)-$n,jt=Ve,an=$n,Lt=y.viewportBounds,Xt=Lt.x,qt=Lt.y,jt=!(jt>Lt.width+Xt||Xt>_n+jt||an>Lt.height+qt||qt>Hn+an)}if(jt){if(jt=(this.l&256)!==0,a.clipInsteadOfFill&&(jt=!1),this instanceof Ir&&(a.font=this.font),jt){if(an=ot.se()?ot.naturalBounds:ot.actualBounds,_n=Math.max(nt.x,an.x),Hn=Math.max(nt.y,an.y),Lt=Math.min(nt.right,an.right)-_n,Xt=Math.min(nt.bottom,an.bottom)-Hn,qt=this.tb,qt!==null&&(_n=qt.x,Hn=qt.y,Lt=qt.width,Xt=qt.height),_n>nt.width+nt.x||nt.x>an.width+an.x){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}a.save(),a.beginPath(),a.rect(_n,Hn,Lt,Xt),a.clip()}if(ft){if(!ht.isVisible()){x!==1&&(a.globalAlpha=b),this.filter!==""&&(a.filter=E);return}at&&(an=ht.shadowOffset,a.Ev(an.x*y.scale*this.scale*y.Mb,an.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(),ma(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(),Gs(this,a,ht,nt)),at&&(this.Ma!==null||this.areaBackground!==null||Zo(this,ot))?(il(this,!0),this.shadowVisible===null&&Kl(a)):il(this,!1),this.hh(a,y),at&&this.l&512&&gu(a),ft&&at&&Kl(a),jt&&(a.restore(),a.Vc(this instanceof Bn)),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===Bn.Auto||y.type===Bn.Spot)&&y.Pb()!==a)}te.Dv=function(){};function ma(a,y,x,b){$r(a,y,a.areaBackground,!0,!0,x,b),a.areaBackground instanceof xr&&a.areaBackground.type===Oa?(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 Gs(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 xr&&a.Ma.type===Oa?(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===Bn.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 Ta(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 Bn;var ot=a instanceof Bn?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],ma(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]),Gs(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],Gs(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))?(il(a,!0),a.shadowVisible===null&&Kl(y)):il(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),Bs(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)}te.$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"+Or++,ot=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:E,width:nt,height:x}),this instanceof Bn&&(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"),Bs(a,b)};function Bs(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=Ti(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()}}te.hh=function(){},te.lv=function(){this.Uc=!0},te.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 Bn?Zu(this):!1;if(!(this instanceof Bn&&E))if(this instanceof zs){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 Bn)y.setAttributeNS(null,"transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")");else if(this instanceof ji){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],ma(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 Bn))&&(a.rb.ha=[b.m11,b.m12,b.m21,b.m22,b.dx,b.dy]),Gs(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},te.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 ft=x.xe;else{var Lt=0,jt=0,Xt=0,qt=0,ie=0,be=0;if(be=ie=0,E?(ie=nt.x,be=nt.y):b||(ie-=ht/2,be-=ht/2),Lt=x.start.x*ot+x.start.offsetX,jt=x.start.y*at+x.start.offsetY,Xt=x.end.x*ot+x.end.offsetX,qt=x.end.y*at+x.end.offsetY,Lt+=ie,Xt+=ie,jt+=be,qt+=be,x.type===mu)ft=y.createLinearGradient(Lt,jt,Xt,qt);else if(x.type===Oa)be=isNaN(x.endRadius)?Math.max(ot,at)/2:x.endRadius,isNaN(x.startRadius)?(ie=0,be=Math.max(ot,at)/2):ie=x.startRadius,ft=y.createRadialGradient(Lt,jt,ie,Xt,qt,be);else if(x.type===yf)try{ft=y.createPattern(x.pattern,"repeat")}catch(Te){ft=null}if(x.type!==yf&&(E=x.colorStops,E!==null))for(E=E.iterator;E.next();)ft.addColorStop(E.key,E.value);if(z&&(x.xe=ft,ft!==null&&(x.yk=ot,x.ft=at),ft===null&&x.type===yf&&x.yk!==-1)){x.yk=-1;var ve=a.diagram;ve!==null&&x.yk===-1&&Un(function(){ve.redraw()},600)}}b?y.fillStyle=ft:y.strokeStyle=ft}}}te.rg=function(a){if(a instanceof Bn)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},te.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},te.If=function(){for(var a=this instanceof Bn?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()){Va(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)}Va(a,!1),ka(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,ka(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,ka(a,!1)))}te.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=xe.alloc();z.yi(y,x,b,E,ar),a.rotate(this.Kb,z.x,z.y),xe.free(z)}},te.v=function(a){if(!va(this)){a===void 0&&(a=!1),xo(this,!0),Gl(this,!0);var y=this.panel;y===null||a||y.v()}},te.Uj=function(){va(this)||(xo(this,!0),Gl(this,!0))};function Cs(a){if(!Es(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof Zn&&a.Bd(),y.$b())),Gl(a,!0)}}te.Uk=function(){!(this.l&2048)&&(Va(this,!0),ka(this,!0))},te.Wu=function(){ka(this,!0)},te.N=function(){var a=this.part;a!==null&&a.N()};function Rs(a,y){var x=a.stretch,b=a.panel;return b!==null&&b.type===Bn.Table?fl(a,b.Fb(a.row),b.Eb(a.column),y):b!==null&&b.type===Bn.Auto&&b.Pb()===a?Xo(a,Fn,y):x===Di?b!==null?b.type===Bn.Spot&&b.Pb()===a?Xo(a,Fn,y):(x=b.defaultStretch,x===Di?Xo(a,Dn,y):Xo(a,x,y)):Xo(a,Dn,y):Xo(a,x,y)}function fl(a,y,x,b){var E=a.stretch;if(E!==Di)return Xo(a,E,b);var z=E=null;switch(y.stretch){case wi:z=!0;break;case Fn:z=!0}switch(x.stretch){case ai:E=!0;break;case Fn:E=!0}return y=a.panel.defaultStretch,E===null&&(E=y===ai||y===Fn),z===null&&(z=y===wi||y===Fn),E===!0&&z===!0?Xo(a,Fn,b):E===!0?Xo(a,ai,b):z===!0?Xo(a,wi,b):Xo(a,Dn,b)}function Xo(a,y,x){if(x)return y;if(y===Dn||(x=a.desiredSize,x.w()))return Dn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===ai)return Dn;if(y===Fn)return wi}else{if(y===wi)return Dn;if(y===Fn)return ai}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===wi)return Dn;if(y===Fn)return ai}else{if(y===ai)return Dn;if(y===Fn)return wi}return y}function il(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 Va(a,y){a.l=y?a.l|2048:a.l&-2049}function ka(a,y){a.l=y?a.l|4096:a.l&-4097}function va(a){return(a.l&8192)!==0}function xo(a,y){a.l=y?a.l|8192:a.l&-8193}function Es(a){return(a.l&16384)!==0}function Gl(a,y){a.l=y?a.l|16384:a.l&-16385}te.Gj=function(){this.svg=null},te.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},te.Av=function(){},te.zv=function(a){return this.pa=a,Cs(this),!0},te.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},te.kq=function(){return 0};function Ec(a){var y=a.part;if(y instanceof Zn&&(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 Bn?a instanceof Zn?a.Bd():a.qm(a,function(x){Ec(x)}):Ec(a))}te.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new co(a,y,x,b):E=a,E.xd=this,a=this.ih(),a!==null&&f1(a)&&Me("Cannot add a Binding to a template that has already been copied: "+E),this.localBindings===null&&(this.localBindings=new Cn),this.localBindings.add(E),this},te.set=function(a){return Object.assign(this,a),this},te.Du=function(a){return iv(this,a),this},te.apply=function(a){return a(this),this},te.nm=function(a){return vc(this,a),this},te.pz=function(){return this.ih()},te.ih=function(){for(var a=this instanceof Bn?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},te.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new Jn),this.animationTriggers.add(a.propertyName,a),this};function Na(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)||Me('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):E=Ae.go[a]}if(b===null&&(E!=null&&E.constructor||Me("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 un&&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?Me("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 ji)a.figure=y;else if(a instanceof zs)a.source=y;else if(a instanceof Bn)y=rl.I(y),y!==null&&(a.type=y);else if(a instanceof xr){var x=Xn(xr,y);x!==null?a.type=x:Me("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof Gn?(y=Xn(Gn,y),y!==null&&(a.type=y)):a instanceof dr&&(y=Xn(dr,y),y!==null&&(a.type=y));else if(y instanceof Xe)a instanceof Bn||Me("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):Me("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof qe)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Lo)a.type=y;else if(y instanceof co)a instanceof Xe||a instanceof wo?a.bind(y):Me("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof el)a instanceof Xe?a.Jv(y):Me("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof Oo)a instanceof Gn&&a.type===Gn.o?a.figures.add(y):Me("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof dr)a instanceof Oo?a.segments.add(y):Me("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof Ur)a instanceof un||a instanceof Ii?a.layout=y:Me("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 xr){x=new Qn;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)&&Me("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)&&Me("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+E),a.isRow=!1,a.index=E),E=new Qn;for(x in y)x!=="row"&&x!=="column"&&(E[x]=y[x]);vc(a,E)}else vc(a,y);else Me('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}Fe.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&&(Wi(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&&(Wi(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:Ms},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===Ms&&(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:Ri},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:Di},set:function(a){var y=this.stretch;y!==a&&(Wi(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&&(Wi(this),this.A.xa=a,this.part!==null&&(this.part.Rh=null),this.g("name",y,a))}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&fn(a,"0 <= value <= 1",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 xr&&a.freeze(),Wi(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 xr&&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 ci)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 xe(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&&Me("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 ji&&this.qc(),this.g("desiredSize",b,a),qo(this)&&(a=this.part,a!==null&&(jr(this,a,"width"),jr(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 zn(a,this.jd.height).freeze(),this.v(),this instanceof ji&&this.qc(),this.g("desiredSize",y,a),qo(this)&&(a=this.part,a!==null&&jr(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 zn(this.jd.width,a).freeze(),this.v(),this instanceof ji&&this.qc(),this.g("desiredSize",y,a),qo(this)&&(a=this.part,a!==null&&jr(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:hr},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(),Wi(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(),Wi(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 hi(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&&(Wi(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Dn},set:function(a){this.reshapingBehavior!==a&&(Wi(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()&&Me("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),Cs(this),this.g("alignment",y,a))}},column:{get:function(){return this.Ag},set:function(a){a=Math.round(a);var y=this.Ag;y!==a&&(0>a&&fn(a,">= 0",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&&fn(a,">= 1",Xe,"columnSpan"),Wi(this),this.A.ob=a,this.v(),this.g("columnSpan",y,a))}},row:{get:function(){return this.io},set:function(a){a=Math.round(a);var y=this.io;y!==a&&(0>a&&fn(a,">= 0",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&&fn(a,">= 1",Xe,"rowSpan"),Wi(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&&(Wi(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 Zn||Me("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:ro},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&&fn(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&&fn(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:ro},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&&fn(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&&fn(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&&(Wi(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&&(Wi(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&&(Wi(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&&(Wi(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&&(Wi(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&&(Wi(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&&(Wi(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&&(Wi(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&&(Wi(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&&(Wi(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&&(Wi(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&&(Wi(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&&(Wi(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&&(Wi(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&&(Wi(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&&(Wi(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&&(Wi(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&&(Wi(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 Jn,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=Na(Bn,Bn.Auto,{isActionable:!0,enabledChanged:function(x,b){if(x instanceof Bn){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"},Na(ji,{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 Bn&&(x=b.fb("ButtonBorder"),x instanceof ji)){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 Bn&&(x=b.fb("ButtonBorder"),x instanceof ji&&(x.fill=b._buttonFillNormal,x.stroke=b._buttonStrokeNormal))},y.actionDown=function(x,b){if(b.If()&&b instanceof Bn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof ji){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 Bn&&b._buttonFillPressed!==null&&x.button===0){var E=b.fb("ButtonBorder");if(E instanceof ji){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 Bn&&b._buttonFillPressed!==null){var E=b.fb("ButtonBorder");if(E instanceof ji){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 Bn&&b._buttonFillPressed!==null){var E=x.diagram;if(E.firstInput.button===0&&(E.currentTool.standardMouseOver(),a(x,b)&&(x=b.fb("ButtonBorder"),x instanceof ji))){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=Na("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Na(ji,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:kr},new co("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new co("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof ur&&(x=x.adornedPart),x instanceof Zn){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=Na("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Na(ji,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:kr},new co("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 ur&&(x=x.adornedPart),x instanceof Ii){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 Na(ur,Bn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new xe(0,3),shadowBlur:5},Na(ji,{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 Na(ur,Bn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new xe(0,3),shadowBlur:5},new co("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),Ku("ContextMenuButton",function(){var a=Na("Button");a.stretch=ai;var y=a.fb("ButtonBorder");return y instanceof ji&&(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=Na("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},Na(ji,{name:"ButtonIcon",strokeWidth:2},new co("geometryString","visible",function(b){return b?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof ji&&(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=Na("Button",{desiredSize:new zn(14,14)},Na(ji,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Fn,geometryStretch:ni,visible:!1},y!==""?new co("visible",y).Kx():[])),a.click=function(x,b){if(b instanceof Bn){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=Na("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new hi(0,1,0,0)});var y=Na(Bn,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new hi(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=Dn=new qe(Xe,"None",0),Xe.Default=Di=new qe(Xe,"Default",0),Xe.Vertical=wi=new qe(Xe,"Vertical",4),Xe.Horizontal=ai=new qe(Xe,"Horizontal",5),Xe.Fill=Fn=new qe(Xe,"Fill",3),Xe.Uniform=ni=new qe(Xe,"Uniform",1),Xe.UniformToFill=er=new qe(Xe,"UniformToFill",2),Xe.FlipVertical=Ui=new qe(Xe,"FlipVertical",1),Xe.FlipHorizontal=sr=new qe(Xe,"FlipHorizontal",2),Xe.FlipBoth=Lr=new qe(Xe,"FlipBoth",3),Xe.make=Na,Xe.getBuilders=function(){var a=new Jn,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;Me('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=hr,this.o=io,this.hg=Di,this.ob=this.Bi=1,this.Pf=Dn,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=Ri,this.rr=Ms,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=Pr,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?Ae.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},Fe.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=Or++,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+")")}te=oa.prototype,te.arc=function(a,y,x,b,E,z,nt,ot){var at=2*Math.PI,ht=at-1e-6,ft=x*Math.cos(b),Lt=x*Math.sin(b),jt=a+ft,Xt=y+Lt,qt=z?0:1;b=z?b-E:E-b,(1e-6<Math.abs(nt-jt)||1e-6<Math.abs(ot-Xt))&&this.path.push(["L",jt,+Xt]),0>b&&(b=b%at+at),b>ht?(this.path.push(["A",x,x,0,1,qt,a-ft,y-Lt]),this.path.push(["A",x,x,0,1,qt,jt,Xt])):1e-6<b&&this.path.push(["A",x,x,0,+(b>=Math.PI),qt,a+x*Math.cos(E),y+x*Math.sin(E)])},te.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},te.Se=function(a){this.addPath(this.path,this.rb,a||0)},te.bezierCurveTo=function(a,y,x,b,E,z){this.path.push(["C",a,y,x,b,E,z])},te.clearRect=function(){},te.clip=function(){this.Yl.clipPath=!0},te.closePath=function(){this.path.push(["z"])},te.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},te.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"+Or++,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+")"},te.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)}te.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 ft=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,b===void 0&&(z=y,nt=x,ot=b=ft,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:ft||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!==ft||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)},te.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),rv(this,this.Yl)},te.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},te.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)},te.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))},te.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])},te.lineTo=function(a,y){this.path.push(["L",a,y])},te.moveTo=function(a,y){this.path.push(["M",a,y])},te.quadraticCurveTo=function(a,y,x,b){this.path.push(["Q",a,y,x,b])},te.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"])},te.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},te.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())},te.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]+")"}te.scale=function(a,y){this.rb.scale(a,y)},te.translate=function(a,y){this.rb.translate(a,y)},te.transform=function(){},te.yc=function(){},te.stroke=function(){$y(this,this.Yl)},te.jk=function(){this.clipInsteadOfFill||this.stroke()},te.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},te.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"+Or++,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,ft){return ht.offset>ft.offset?1:-1}),E=0;E<y;E++)x.appendChild(a.Ud("stop",z[E]));return a.svg.appendChild(x),"url(#"+b+")"}te.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}te.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}te.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},te.fs=function(){this.Ct=!1},te.Vc=function(){},te.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",un.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new Tl(this,Ae.document));var y=new Tl(this,Ae.document,!0);a===void 0&&(a=new Qn);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)},un.prototype.makeSvg=un.prototype.Cs,un.prototype.av=function(a){return this.Cs(a)},un.prototype.makeSVG=un.prototype.av;function Za(a,y,x,b){this.ownerDocument=y=y===void 0?Ae.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}Za.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},Za.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},Za.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Za.prototype.focus=function(){this.Oa.focus()},Za.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},Fe.Object.defineProperties(Za.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}}}),Za.className="CanvasSurface";function Ac(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&Me("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}te=Ac.prototype,te.Wx=function(a){this.Z.imageSmoothingEnabled=a},te.arc=function(a,y,x,b,E,z){this.Z.arc(a,y,x,b,E,z)},te.beginPath=function(){this.Z.beginPath()},te.Se=function(){},te.bezierCurveTo=function(a,y,x,b,E,z){this.Z.bezierCurveTo(a,y,x,b,E,z)},te.clearRect=function(a,y,x,b){this.yc(),this.Z.clearRect(a,y,x,b)},te.clip=function(){this.Z.clip()},te.closePath=function(){this.Z.closePath()},te.createLinearGradient=function(a,y,x,b){return this.Z.createLinearGradient(a,y,x,b)},te.createPattern=function(a,y){return this.Z.createPattern(a,y)},te.createRadialGradient=function(a,y,x,b,E,z){return this.Z.createRadialGradient(a,y,x,b,E,z)},te.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)},te.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},te.fillRect=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},te.ox=function(a,y,x,b){this.Z.fillRect(a,y,x,b)},te.fillText=function(a,y,x){this.Z.fillText(a,y,x)},te.getImageData=function(a,y,x,b){return this.Z.getImageData(a,y,x,b)},te.lineTo=function(a,y){this.Z.lineTo(a,y)},te.measureText=function(a){return this.Z.measureText(a)},te.moveTo=function(a,y){this.Z.moveTo(a,y)},te.quadraticCurveTo=function(a,y,x,b){this.Z.quadraticCurveTo(a,y,x,b)},te.rect=function(a,y,x,b){this.Z.rect(a,y,x,b)},te.restore=function(){this.Z.restore()},te.save=function(){this.yc(),this.Z.save()},Ac.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},te=Ac.prototype,te.setTransform=function(a,y,x,b,E,z){this.El.setTransform(a,y,x,b,E,z)},te.scale=function(a,y){this.El.scale(a,y)},te.translate=function(a,y){this.El.translate(a,y)},te.stroke=function(){this.Z.stroke()},te.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}},te.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},te.ng=function(a,y){if(a instanceof xr&&a.type===Oa){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)},te.jk=function(){this.Hm||this.stroke()},te.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},te.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},te.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(vx),a.lineDashOffset=0)},te.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},te.Hs=function(){},Fe.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 xr(a,y){vf||(cv(),vf=!0),Bi(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=ba,this.Lk=$s):this.Lk=a===Oa?this.Qd=ar:this.Qd=ro,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}xr.prototype.copy=function(){var a=new xr;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},te=xr.prototype,te.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},te.ka=function(){return Object.isFrozen(this)&&Me("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},te.qb=function(a){a.classType===xr&&(this.type=a)},te.toString=function(){var a="Brush(";if(this.type===Vu)a+=this.color;else if(a=this.type===mu?a+"Linear ":this.type===Oa?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+")"},te.addColorStop=function(a,y){return this._isFrozen&&Ge(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&fn(a,"0 <= loc <= 1",xr,"addColorStop:loc"),this.we===null&&(this.we=new Jn),this.we.add(a,y),this.na===Vu&&(this.type=mu),this.xe=null,this},te.Vz=function(a,y){if(this._isFrozen&&Ge(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===Oa)&&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)}te.Wy=function(a,y){if(this._isFrozen&&Ge(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===Oa)&&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)+")"}te.Gx=function(){if(this.type===Vu)return gf(this.color);if((this.type===mu||this.type===Oa)&&this.colorStops!==null){var a=this.colorStops;if(this.type===Oa)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 xr?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 Ls.j=.4124564*y+.3575761*x+.1804375*b,Ls.u=.2126729*y+.7151522*x+.072175*b,Ls.o=.0193339*y+.119192*x+.9503041*b,Ls.F=Fr.F,y=hv(Ls.j/mf[0]),x=hv(Ls.u/mf[1]),b=hv(Ls.o/mf[2]),Vl.j=116*x-16,Vl.u=500*(y-x),Vl.o=200*(x-b),Vl.F=Ls.F,Vl.j=Math.min(100,Math.max(0,Vl.j+100*a)),a=(Vl.j+16)/116,y=a-Vl.o/200,Ls.j=mf[0]*n1(Vl.u/500+a),Ls.u=mf[1]*(Vl.j>cm*dv?Math.pow(a,3):Vl.j/cm),Ls.o=mf[2]*n1(y),Ls.F=Vl.F,a=-.969266*Ls.j+1.8760108*Ls.u+.041556*Ls.o,y=.0556434*Ls.j+-.2040259*Ls.u+1.0572252*Ls.o,Fr.j=255*uv((3.2404542*Ls.j+-1.5371385*Ls.u+-.4985314*Ls.o)/100),Fr.u=255*uv(a/100),Fr.o=255*uv(y/100),Fr.F=Ls.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(),ya.o=Math.min(100,Math.max(0,ya.o+100*a)),"hsla("+ya.j+", "+ya.u+"%, "+ya.o+"%, "+ya.F+")";default:Me("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))}ya.j=Math.round(nt),ya.u=Math.round(100*a),ya.o=Math.round(100*E),ya.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 xr||Me("Value for "+y+" must be a color string or a Brush, not "+a))}function cv(){fv=qr?new Za(null,void 0,{willReadFrequently:!0}).context:null}Fe.Object.defineProperties(xr.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&Ge(this,a),this.na=a,this.start.Mc()&&(a===mu?this.start=ba:a===Oa&&(this.start=ar)),this.end.Mc()&&(a===mu?this.end=$s:a===Oa&&(this.end=ar)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&Ge(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&Ge(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&Ge(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&Ge(this,a),0>a&&fn(a,">= zero",xr,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&Ge(this,a),0>a&&fn(a,">= zero",xr,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&Ge(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&Ge(this,a),this.cr=a,this.xe=null}}}),xr.prototype.isDark=xr.prototype.Gx,xr.prototype.darkenBy=xr.prototype.Wy,xr.prototype.lightenBy=xr.prototype.Vz,xr.prototype.addColorStop=xr.prototype.addColorStop;var dv=216/24389,cm=24389/27,mf=[95.047,100,108.883],fv=null,Fr=new jg,ya=new jg,Ls=new jg,Vl=new jg,vf=!1;xr.className="Brush";var Vu;xr.Solid=Vu=new qe(xr,"Solid",0);var mu;xr.Linear=mu=new qe(xr,"Linear",1);var Oa;xr.Radial=Oa=new qe(xr,"Radial",2);var yf;xr.Pattern=yf=new qe(xr,"Pattern",4);var Sf;xr.Lab=Sf=new qe(xr,"Lab",5);var i1;xr.HSL=i1=new qe(xr,"HSL",6),xr.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},xr.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)},xr.lighten=function(a){return t1(a)},xr.lightenBy=t1,xr.darken=function(a){return e1(a)},xr.darkenBy=e1,xr.mix=sv,xr.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(){},Fe.Object.defineProperties(Lo.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return Bn}}}),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 ft=ht.margin,Lt=ft.right+ft.left;ft=ft.top+ft.bottom,ht.measure(y,x,z,nt);var jt=ht.measuredBounds;Lt=Math.max(jt.width+Lt,0),ft=Math.max(jt.height+ft,0),jt=ht.position.x;var Xt=ht.position.y;isFinite(jt)||(jt=0),isFinite(Xt)||(Xt=0),ht instanceof ji&&ht.isGeometryPositioned&&(ht=ht.strokeWidth/2,jt-=ht,Xt-=ht),qi(E,jt,Xt,Lt,ft)}}},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 ji&&z.isGeometryPositioned){var ft=z.strokeWidth/2;at-=ft,ht-=ft}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=ln(),z=vu(a);for(var at=0;at<ot;at++){var ht=b[at];if(ht.visible||ht===z){var ft=Rs(ht,!1);if(ft!==Dn&&ft!==ai)y.push(ht);else{ht.measure(1/0,x,0,nt),ft=ht.margin,ht=ht.measuredBounds;var Lt=Math.max(ht.height+ft.top+ft.bottom,0);E.width+=Math.max(ht.width+ft.right+ft.left,0),E.height=Math.max(E.height,Lt)}}}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)&&(ft=at.margin,ot=ft.right+ft.left,ft=ft.top+ft.bottom,at.measure(1/0,x,0,nt),at=at.measuredBounds,ft=Math.max(at.height+ft,0),E.width+=Math.max(at.width+ot,0),E.height=Math.max(E.height,ft));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,ft=y[at];if(ft.visible){var Lt=ft.measuredBounds,jt=ft.margin,Xt=jt.top+jt.bottom,qt=z+E.bottom,ie=Lt.height,be=Rs(ft,!1);(isNaN(ft.desiredSize.height)&&be===Fn||be===wi)&&(ie=Math.max(x.height-Xt-qt,0)),Xt=ie+Xt+qt,qt=ft.alignment,qt.Xb()&&(qt=a.defaultAlignment),qt.sb()||(qt=ar),nt&&(ot-=Lt.width+jt.left+jt.right),ft.arrange(ot+qt.offsetX+jt.left,ht+qt.offsetY+jt.top+(x.height*qt.y-Xt*qt.y),Lt.width,ie),nt||(ot+=Lt.width+jt.left+jt.right)}}};function gm(){this.xa="Base"}Qe(gm,Lo),gm.prototype.measure=function(a,y,x,b,E,z){var nt=b.length;x=ln();for(var ot=vu(a),at=0;at<nt;at++){var ht=b[at];if(ht.visible||ht===ot){var ft=Rs(ht,!1);if(ft!==Dn&&ft!==wi)x.push(ht);else{var Lt=ht.margin;ft=Lt.right+Lt.left,Lt=Lt.top+Lt.bottom,ht.measure(y,1/0,z,0),ht=ht.measuredBounds,yo(E,Math.max(E.width,Math.max(ht.width+ft,0)),E.height+Math.max(ht.height+Lt,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,ft=y[at];if(ft.visible){var Lt=ft.measuredBounds,jt=ft.margin,Xt=jt.left+jt.right,qt=z+E.right,ie=Lt.width,be=Rs(ft,!1);(isNaN(ft.desiredSize.width)&&be===Fn||be===ai)&&(ie=Math.max(x.width-Xt-qt,0)),Xt=ie+Xt+qt,qt=ft.alignment,qt.Xb()&&(qt=a.defaultAlignment),qt.sb()||(qt=ar),nt&&(ot-=Lt.height+jt.bottom+jt.top),ft.arrange(ht+qt.offsetX+jt.left+(x.width*qt.x-Xt*qt.x),ot+qt.offsetY+jt.top,ie,Lt.height),nt||(ot+=Lt.height+jt.bottom+jt.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,ft=ht.right+ht.left,Lt=ht.top+ht.bottom;at.measure(y,x,z,nt);var jt=at.measuredBounds;z=jt.width,nt=jt.height;var Xt=Math.max(z+ft,0),qt=Math.max(nt+Lt,0),ie=a.isClipping,be=Sn.allocAt(-ht.left,-ht.top,Xt,qt),ve=Sn.allocAt(0,0,z,nt);gv(at,ve,!0),z=ve.width,nt=ve.height;for(var Te=!0,Be=vu(a),ze=0;ze<ot;ze++){var Ve=b[ze];jt=y;var an=x;if(Ve!==at&&(Ve.visible||Ve===Be)){ht=Ve.margin;var Vn=ht.left,$n=ht.top;switch(Xt=ht.right+ht.left,qt=ht.top+ht.bottom,ht=Rs(Ve,!1),ht){case Fn:jt=z,an=nt,$n=Vn=qt=Xt=0;break;case ai:jt=z,Vn=Xt=0;break;case wi:an=nt,$n=qt=0}Ve.measure(jt,an,0,0),jt=Ve.measuredBounds,Xt=Math.max(jt.width+Xt,0),qt=Math.max(jt.height+qt,0),ht=Ve.alignment,ht.Xb()&&(ht=a.defaultAlignment),ht.sb()||(ht=ar);var _n=Ve.alignmentFocus;if(_n.Xb()&&(_n=ar),an=null,Ve instanceof Bn&&Ve.$e!==""&&(an=Ve.fb(Ve.$e),an===Ve&&(an=null)),Vn=ve.x-Vn,$n=ve.y-$n,an!==null){for(Ve.arrange(0,0,jt.width,jt.height),jt=an.actualBounds,jt=xe.allocAt(jt.x+(_n.x*jt.width-_n.offsetX),jt.y+(_n.y*jt.height-_n.offsetY)),an=an.panel;an!==Ve;)an.transform.Ga(jt),an=an.panel;Vn+=ht.x*z+ht.offsetX-jt.x,$n+=ht.y*nt+ht.offsetY-jt.y,xe.free(jt)}else Vn+=ht.x*z+ht.offsetX-(_n.x*jt.width+_n.offsetX),$n+=ht.y*nt+ht.offsetY-(_n.y*jt.height+_n.offsetY);Te?(Te=!1,E.h(Vn,$n,Xt,qt)):qi(E,Vn,$n,Xt,qt)}}switch(Te?E.assign(be):ie?E.Uu(ve.x,ve.y,ve.width,ve.height):qi(E,be.x,be.y,be.width,be.height),Sn.free(be),Sn.free(ve),ht=at.stretch,ht===Di&&(ht=Rs(at,!1)),ht){case Dn:return;case Fn:if(!isFinite(y)&&!isFinite(x))return;break;case ai:if(!isFinite(y))return;break;case wi:if(!isFinite(x))return}for(jt=at.measuredBounds,z=jt.width,nt=jt.height,Xt=Math.max(z+ft,0),qt=Math.max(nt+Lt,0),ht=at.margin,ve=Sn.allocAt(-ht.left,-ht.top,Xt,qt),gv(at,ve,!0),z=ve.width,nt=ve.height,y=0;y<ot;y++)x=b[y],x===at||!x.visible&&x!==Be||(ht=x.margin,Xt=ht.right+ht.left,qt=ht.top+ht.bottom,jt=x.measuredBounds,Xt=Math.max(jt.width+Xt,0),qt=Math.max(jt.height+qt,0),ft=x.alignment,ft.Xb()&&(ft=a.defaultAlignment),ft.sb()||(ft=ar),x=x.alignmentFocus,x.Xb()&&(x=ar),Te?(Te=!1,E.h(ft.x*z+ft.offsetX-(x.x*jt.width+x.offsetX)-ht.left,ft.y*nt+ft.offsetY-(x.y*jt.height+x.offsetY)-ht.top,Xt,qt)):qi(E,ft.x*z+ft.offsetX-(x.x*jt.width+x.offsetX)-ht.left,ft.y*nt+ft.offsetY-(x.y*jt.height+x.offsetY)-ht.top,Xt,qt));Te?E.assign(be):ie?E.Uu(ve.x,ve.y,ve.width,ve.height):qi(E,be.x,be.y,be.width,be.height),Sn.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,ft=at-x.y;for(E.arrange(ht,ft,nt,ot),nt=Sn.allocAt(0,0,nt,ot),gv(E,nt,!1),ot=0;ot<b;ot++){var Lt=y[ot];if(Lt!==E){ht=Lt.measuredBounds;var jt=ht.width,Xt=ht.height;ft=Lt.alignment,ft.Xb()&&(ft=a.defaultAlignment),ft.sb()||(ft=ar);var qt=Lt.alignmentFocus;if(qt.Xb()&&(qt=ar),ht=null,Lt instanceof Bn&&Lt.$e!==""&&(ht=Lt.fb(Lt.$e),ht===Lt&&(ht=null)),ht!==null){var ie=ht.actualBounds;for(qt=xe.allocAt(ie.x+(qt.x*ie.width-qt.offsetX),ie.y+(qt.y*ie.height-qt.offsetY)),ht=ht.panel;ht!==Lt;)ht.transform.Ga(qt),ht=ht.panel;ht=ft.x*nt.width+ft.offsetX-qt.x,ft=ft.y*nt.height+ft.offsetY-qt.y,xe.free(qt)}else ht=ft.x*nt.width+ft.offsetX-(qt.x*jt+qt.offsetX),ft=ft.y*nt.height+ft.offsetY-(qt.y*Xt+qt.offsetY);ht+=nt.x-x.x,ft+=nt.y-x.y,Lt.visible&&Lt.arrange(z+ht,at+ft,jt,Xt)}}Sn.free(nt)};function gv(a,y,x){var b=null;if(a instanceof Bn&&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,ft=y,Lt=x,jt=ht.right+ht.left,Xt=ht.top+ht.bottom;at.measure(y,x,z,nt),ht=at.measuredBounds;var qt=0,ie=null;at instanceof ji&&(ie=at,qt=ie.strokeWidth*ie.scale);var be=Math.max(ht.width+jt,0);ht=Math.max(ht.height+Xt,0);var ve=yv(at),Te=ve.x*be+ve.offsetX;ve=ve.y*ht+ve.offsetY;var Be=Sv(at),ze=Be.x*be+Be.offsetX;for(Be=Be.y*ht+Be.offsetY,isFinite(y)&&(ft=Math.max(Math.abs(Te-ze)-qt,0)),isFinite(x)&&(Lt=Math.max(Math.abs(ve-Be)-qt,0)),qt=zn.alloc(),qt.h(0,0),a=vu(a),Be=0;Be<ot;Be++)ve=b[Be],ve===at||!ve.visible&&ve!==a||(ht=ve.margin,be=ht.right+ht.left,Te=ht.top+ht.bottom,ve.measure(ft,Lt,0,0),ht=ve.measuredBounds,be=Math.max(ht.width+be,0),ht=Math.max(ht.height+Te,0),qt.h(Math.max(be,qt.width),Math.max(ht,qt.height)));if(ot===1)E.width=be,E.height=ht,zn.free(qt);else{switch(ve=yv(at),Be=Sv(at),ot=b=0,Be.x!==ve.x&&Be.y!==ve.y&&(b=qt.width/Math.abs(Be.x-ve.x),ot=qt.height/Math.abs(Be.y-ve.y)),zn.free(qt),qt=0,ie!==null&&(qt=ie.strokeWidth*ie.scale,Ev(ie)===ni&&(b=ot=Math.max(b,ot))),b+=Math.abs(ve.offsetX)+Math.abs(Be.offsetX)+qt,ot+=Math.abs(ve.offsetY)+Math.abs(Be.offsetY)+qt,ie=at.stretch,ie===Di&&(ie=Rs(at,!1)),ie){case Dn:nt=z=0;break;case Fn:isFinite(y)&&(b=y),isFinite(x)&&(ot=x);break;case ai:isFinite(y)&&(b=y),nt=0;break;case wi:z=0,isFinite(x)&&(ot=x)}at.Uj(),at.measure(b,ot,z,nt),E.width=at.measuredBounds.width+jt,E.height=at.measuredBounds.height+Xt}},mm.prototype.arrange=function(a,y){var x=y.length,b=a.Pb(),E=b.measuredBounds,z=Sn.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 ft=yv(b),Lt=Sv(b),jt=ft.y*E.height+ft.offsetY,Xt=Lt.x*E.width+Lt.offsetX;for(Lt=Lt.y*E.height+Lt.offsetY,z.x=ft.x*E.width+ft.offsetX,z.y=jt,qi(z,Xt,Lt,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),ft=Math.max(ht.height+nt.top+nt.bottom,0),jt=ot.alignment,jt.Xb()&&(jt=a.defaultAlignment),jt.sb()||(jt=ar),at=z.width*jt.x+jt.offsetX-at*jt.x+nt.left+z.x,nt=z.height*jt.y+jt.offsetY-ft*jt.y+nt.top+z.y,ot.visible&&(Ji(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 Sn(z.x,z.y,z.width,z.height))));Sn.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=ln(),ot=ln(),at=0;at<z;at++){var ht=b[at],ft=ht instanceof Bn?ht:null;if(ft!==null&&Zu(ft)&&ht.visible){ot.push(ft);for(var Lt=ft.O.s,jt=Lt.length,Xt=0;Xt<jt;Xt++){var qt=Lt[Xt];ft.type===Bn.TableRow?qt.row=ht.row:ft.type===Bn.TableColumn&&(qt.column=ht.column),nt.push(qt)}}else nt.push(ht)}z=nt.length,z===0&&(a.Fb(0),a.Eb(0));for(var ie=[],be=0;be<z;be++){var ve=nt[be];ve.visible&&(xo(ve,!0),Gl(ve,!0),ie[ve.row]||(ie[ve.row]=[]),ie[ve.row][ve.column]||(ie[ve.row][ve.column]=[]),ie[ve.row][ve.column].push(ve))}xn(nt);var Te=ln(),Be=ln(),ze=ln(),Ve={count:0},an={count:0},Vn=y,$n=x,_n=a.rowDefs,Hn=a.colDefs,Tn=null;z=_n.length;for(var Ni=0;Ni<z;Ni++)Tn=_n[Ni],Tn!==void 0&&(Tn.actual=0);z=Hn.length;for(var Ei=0;Ei<z;Ei++)Tn=Hn[Ei],Tn!==void 0&&(Tn.actual=0);for(var gr=ie.length,Nr=0,Fo=0;Fo<gr;Fo++)ie[Fo]&&(Nr=Math.max(Nr,ie[Fo].length));var Ho=Math.min(a.topIndex,gr-1),gs=Math.min(a.leftIndex,Nr-1),Bo=0;gr=ie.length;for(var nh=vu(a),fo=0;fo<gr;fo++)if(ie[fo]){Nr=ie[fo].length;var yl=a.Fb(fo);yl.actual=0;for(var ps=yl.oc=0;ps<Nr;ps++)if(ie[fo][ps]){var ih=a.Eb(ps);Te[ps]===void 0&&(ih.actual=0,ih.oc=0,Te[ps]=!0);for(var wa=ie[fo][ps],Ja=wa.length,la=0;la<Ja;la++){var Vs=wa[la];if(Vs.visible||Vs===nh){var Qh=1<Vs.rowSpan||1<Vs.columnSpan;Qh&&(fo<Ho||ps<gs||Be.push(Vs));var Sl=Vs.margin,Uf=Sl.right+Sl.left,ua=Sl.top+Sl.bottom,ms=fl(Vs,yl,ih,!1),Ep=Vs.desiredSize,Md=!isNaN(Ep.height),Ol=!isNaN(Ep.width)&&Md;if(Qh||ms===Dn||Ol||fo<Ho||ps<gs||(Ve[ps]!==void 0||ms!==Fn&&ms!==ai||(Ve[ps]=-1,Ve.count++),an[fo]!==void 0||ms!==Fn&&ms!==wi||(an[fo]=-1,an.count++),ze.push(Vs)),Vs.measure(1/0,1/0,0,0),!(fo<Ho||ps<gs)){var Zs=Vs.measuredBounds,Bc=Math.max(Zs.width+Uf,0),ha=Math.max(Zs.height+ua,0);if(Vs.rowSpan===1&&(ms===Dn||ms===ai)){Tn=a.Fb(fo);var qh=Tn.Wc();Bo=Math.max(ha-Tn.actual,0),Bo+qh>$n&&(Bo=Math.max($n-qh,0));var H0=Tn.oa===0;Tn.oc=Tn.oc+Bo,Tn.actual=Tn.oa+Bo,$n=Math.max($n-(Bo+(H0?qh:0)),0)}if(Vs.columnSpan===1&&(ms===Dn||ms===wi)){Tn=a.Eb(ps);var Lp=Tn.Wc();Bo=Math.max(Bc-Tn.actual,0),Bo+Lp>Vn&&(Bo=Math.max(Vn-Lp,0));var Wy=Tn.oa===0;Tn.oc=Tn.oc+Bo,Tn.actual=Tn.oa+Bo,Vn=Math.max(Vn-(Bo+(Wy?Lp:0)),0)}Qh&&Vs.Uj()}}}}}xn(Te);var tu=0,xu=0;z=a.columnCount;for(var Td=0;Td<z;Td++){var $h=Hn[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=_n[Gf];tc!==void 0&&(xu+=isNaN(tc.Hc)?tc.oc:tc.Hc,tc.oc!==0&&(xu+=tc.Wc()))}Vn=Math.max(y-tu,0);var eu=$n=Math.max(x-xu,0),rh=Vn;z=ze.length;for(var Xs=0;Xs<z;Xs++){var Il=ze[Xs],W0=a.Fb(Il.row),wu=a.Eb(Il.column),Kf=Il.measuredBounds,xl=Il.margin,Rc=xl.right+xl.left,Dl=xl.top+xl.bottom;Ve[Il.column]=wu.oc===0&&Ve[Il.column]!==void 0?Math.max(Kf.width+Rc,Ve[Il.column]):null,an[Il.row]=W0.oc===0&&an[Il.row]!==void 0?Math.max(Kf.height+Dl,an[Il.row]):null}var kd=0,Vf=0,hl;for(hl in an)hl!=="count"&&(kd+=an[hl]);for(hl in Ve)hl!=="count"&&(Vf+=Ve[hl]);for(var Qo=zn.alloc(),Ap=0;Ap<z;Ap++){var Is=ze[Ap];if(Is.visible||Is===nh){var po=a.Fb(Is.row),Ds=a.Eb(Is.column),Pu=0;isFinite(Ds.width)?Pu=Ds.width:(isFinite(Vn)&&Ve[Is.column]!==null?Vf===0?Pu=Ds.actual+Vn:Pu=Ve[Is.column]/Vf*rh:Ve[Is.column]!==null?Pu=Vn:Pu=Ds.actual||Vn,Pu=Math.max(0,Pu-Ds.Wc()));var oh=0;switch(isFinite(po.height)?oh=po.height:(isFinite($n)&&an[Is.row]!==null?kd===0?oh=po.actual+$n:oh=an[Is.row]/kd*eu:an[Is.row]!==null?oh=$n:oh=po.actual||$n,oh=Math.max(0,oh-po.Wc())),Qo.h(Math.max(Ds.minimum,Math.min(Pu,Ds.maximum)),Math.max(po.minimum,Math.min(oh,po.maximum))),ms=fl(Is,po,Ds,!1),ms){case ai:Qo.height=Math.max(Qo.height,po.actual+$n);break;case wi:Qo.width=Math.max(Qo.width,Ds.actual+Vn)}var jc=Is.margin,Uy=jc.right+jc.left,U0=jc.top+jc.bottom;Is.Uj(),Is.measure(Qo.width,Qo.height,Ds.minimum,po.minimum);var Zf=Is.measuredBounds,zc=Math.max(Zf.width+Uy,0),Nd=Math.max(Zf.height+U0,0);isFinite(Vn)&&(zc=Math.min(zc,Qo.width)),isFinite($n)&&(Nd=Math.min(Nd,Qo.height));var Ys=0;Ys=po.actual,po.actual=Math.max(po.actual,Nd),po.oc=Math.max(po.oc,Nd),Bo=po.actual-Ys,$n=Math.max($n-Bo,0),an[Is.row]===null&&(eu=Math.max(eu-Bo,0)),Ys=Ds.actual,Ds.actual=Math.max(Ds.actual,zc),Ds.oc=Math.max(Ds.oc,zc),Bo=Ds.actual-Ys,Vn=Math.max(Vn-Bo,0),Ve[Is.column]===null&&(rh=Math.max(rh-Bo,0))}}xn(ze);var bu=zn.alloc(),wl=ln(),Ra=ln();if(z=Be.length,z!==0){for(var ec=0;ec<gr;ec++)if(ie[ec]){Nr=ie[ec].length;var Xf=a.Fb(ec);wl[ec]=Xf.actual;for(var nc=0;nc<Nr;nc++)if(ie[ec][nc]){var G0=a.Eb(nc);Ra[nc]=G0.actual}}}for(var Yf=0;Yf<z;Yf++){var eo=Be[Yf];if(eo.visible||eo===nh){var cl=a.Fb(eo.row),Qa=a.Eb(eo.column);switch(Qo.h(Math.max(Qa.minimum,Math.min(y,Qa.maximum)),Math.max(cl.minimum,Math.min(x,cl.maximum))),ms=fl(eo,cl,Qa,!1),ms){case Fn:Ra[Qa.index]!==0&&(Qo.width=Math.min(Qo.width,Ra[Qa.index])),wl[cl.index]!==0&&(Qo.height=Math.min(Qo.height,wl[cl.index]));break;case ai:Ra[Qa.index]!==0&&(Qo.width=Math.min(Qo.width,Ra[Qa.index]));break;case wi:wl[cl.index]!==0&&(Qo.height=Math.min(Qo.height,wl[cl.index]))}isFinite(Qa.width)&&(Qo.width=Qa.width),isFinite(cl.height)&&(Qo.height=cl.height),bu.h(0,0);for(var K0=Qa.minimum,ca=cl.minimum,sh=1;sh<eo.rowSpan&&!(eo.row+sh>=a.rowCount);sh++)Tn=a.Fb(eo.row+sh),Bo=0,Bo=ms===Fn||ms===wi?Math.max(Tn.minimum,wl[eo.row+sh]===0?Tn.maximum:Math.min(wl[eo.row+sh],Tn.maximum)):Math.max(Tn.minimum,isNaN(Tn.Hc)?Tn.maximum:Math.min(Tn.Hc,Tn.maximum)),bu.height+=Bo,ca+=Tn.minimum;for(var qa=1;qa<eo.columnSpan&&!(eo.column+qa>=a.columnCount);qa++)Tn=a.Eb(eo.column+qa),Bo=0,Bo=ms===Fn||ms===ai?Math.max(Tn.minimum,Ra[eo.column+qa]===0?Tn.maximum:Math.min(Ra[eo.column+qa],Tn.maximum)):Math.max(Tn.minimum,isNaN(Tn.Hc)?Tn.maximum:Math.min(Tn.Hc,Tn.maximum)),bu.width+=Bo,K0+=Tn.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++)Tn=a.Fb(eo.row+Qf),rc+=Tn.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++){Tn=a.Fb(eo.row+Cu);var uh=Tn.oa||0,Wc=lh(eo,Tn,nu);Tn.actual=Math.min(Tn.maximum,uh+Wc),Tn.oa!==uh&&(ah-=Tn.oa-uh)}for(;0<ah;){var Pl=Tn.oa||0;if(isNaN(Tn.height)&&Tn.maximum>Pl&&(Tn.actual=Math.min(Tn.maximum,Pl+ah),Tn.oa!==Pl&&(ah-=Tn.oa-Pl)),Tn.index===0)break;Tn=a.Fb(Tn.index-1)}}for(var Od=0,hh=0;hh<eo.columnSpan&&!(eo.column+hh>=a.columnCount);hh++)Tn=a.Eb(eo.column+hh),Od+=Tn.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++){Tn=a.Eb(eo.column+Uc);var Tp=Tn.oa||0,Ky=Eu(eo,Tn,Gy);Tn.actual=Math.min(Tn.maximum,Tp+Ky),Tn.oa!==Tp&&(Id-=Tn.oa-Tp)}for(;0<Id;){var V0=Tn.oa||0;if(isNaN(Tn.width)&&Tn.maximum>V0&&(Tn.actual=Math.min(Tn.maximum,V0+Id),Tn.oa!==V0&&(Id-=Tn.oa-V0)),Tn.index===0)break;Tn=a.Eb(Tn.index-1)}}}}xn(Be),zn.free(bu),zn.free(Qo),wl!==void 0&&xn(wl),Ra!==void 0&&xn(Ra);var Dd=0,Fd=0,Z0=a.desiredSize,px=a.maxSize;ms=Rs(a,!0);var kp=xu=tu=0,Np=0;z=a.columnCount;for(var X0=0;X0<z;X0++)Hn[X0]!==void 0&&(Tn=a.Eb(X0),isFinite(Tn.width)?(kp+=Tn.width,kp+=Tn.Wc()):Am(Tn)===Ug?(kp+=Tn.oa,kp+=Tn.Wc()):Tn.oa!==0&&(tu+=Tn.oa,tu+=Tn.Wc()));isFinite(Z0.width)?Dd=Math.min(Z0.width,px.width):Dd=ms!==Dn&&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++)Hn[Y0]!==void 0&&(Tn=a.Eb(Y0),isFinite(Tn.width)||Am(Tn)===Ug||(Tn.actual=Tn.oa*qx),Tn.position=E.width,Tn.oa!==0&&(E.width+=Tn.oa,E.width+=Tn.Wc()));z=a.rowCount;for(var _0=0;_0<z;_0++)_n[_0]!==void 0&&(Tn=a.Fb(_0),isFinite(Tn.height)?(Np+=Tn.height,Np+=Tn.Wc()):Am(Tn)===Ug?(Np+=Tn.oa,Np+=Tn.Wc()):Tn.oa!==0&&(xu+=Tn.oa,xu+=Tn.Wc()));isFinite(Z0.height)?Fd=Math.min(Z0.height,px.height):Fd=ms!==Dn&&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++)_n[J0]!==void 0&&(Tn=a.Fb(J0),isFinite(Tn.height)||Am(Tn)===Ug||(Tn.actual=Tn.oa*$x),Tn.position=E.height,Tn.oa!==0&&(E.height+=Tn.oa,E.height+=Tn.Wc()));z=ot.length;for(var Vy=0;Vy<z;Vy++){var Op=ot[Vy],Zy=0,Xy=0;Op.type===Bn.TableRow?(Zy=E.width,Tn=a.Fb(Op.row),Xy=Tn.actual):(Tn=a.Eb(Op.column),Zy=Tn.actual,Xy=E.height),Op.measuredBounds.h(0,0,Zy,Xy),xo(Op,!1)}xn(ot),a.inRowsCols=ie},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,ft=0,Lt=0;Lt<ht;Lt++)nt[Lt]&&(ft=Math.max(ft,nt[Lt].length));at=a.rowDefs,ot=a.colDefs;var jt=Lt=0,Xt=Math.min(a.topIndex,ht-1);if(0<at.length){for(;Xt!==ht&&(at[Xt]===void 0||at[Xt].oa===0);)Xt++;Xt=Math.max(Math.min(Xt,ht-1),0),Lt=-at[Xt].position}var qt=Math.min(a.leftIndex,ft-1);if(0<ot.length){for(;qt!==ft&&(ot[qt]===void 0||ot[qt].oa===0);)qt++;qt=Math.max(Math.min(qt,ft-1),0),jt=-ot[qt].position}for(var ie=0,be=0;ie!==ht&&at[ie]===void 0;)ie++;for(;be!==ht&&ot[be]===void 0;)be++;ft=a.part,a.Fb(ie),a.Eb(be);for(var ve=0;ve<y.length;ve++){var Te=y[ve];if(Te instanceof Bn&&Te.visible&&Zu(Te)){if(Te.type===Bn.TableRow){ot=a.Fb(Te.row);var Be=a.Eb(be)}else ot=a.Fb(ie),Be=a.Eb(Te.column);at=ot.position+Lt+E,ot.oa!==0&&(at+=ot.Io(Math.max(ie,Xt))),ot=Be.position+jt+z,Be.oa!==0&&(ot+=Be.Io(Math.max(be,qt))),Be=Te.measuredBounds,Te.Uk(),Te.actualBounds.ka();var ze=Te.actualBounds,Ve=Sn.allocAt(ze.x,ze.y,ze.width,ze.height);ze.x=Te.type===Bn.TableRow?z:ot,ze.y=Te.type===Bn.TableColumn?E:at,ze.width=Be.width,ze.height=Be.height,Te.actualBounds.freeze(),Gl(Te,!1),mr(Ve,ze)||ft===null||(ft.oh(),Te.Pn(ft)),Sn.free(Ve)}}for(ve=zn.alloc(),Te=0;Te<ht;Te++)if(nt[Te]){for(ft=nt[Te].length,Be=a.Fb(Te),at=Be.position+Lt+E,Be.oa!==0&&(at+=Be.Io(Math.max(ie,Xt))),ze=0;ze<ft;ze++)if(nt[Te][ze]){Ve=a.Eb(ze),ot=Ve.position+jt+z,Ve.oa!==0&&(ot+=Ve.Io(Math.max(be,qt)));for(var an=nt[Te][ze],Vn=an.length,$n=0;$n<Vn;$n++){var _n=an[$n],Hn=_n.measuredBounds;ve.h(0,0);for(var Tn=1;Tn<_n.rowSpan&&!(Te+Tn>=a.rowCount);Tn++){var Ni=a.Fb(Te+Tn);Ni.oa!==0&&(ve.height+=Ni.total)}for(Tn=1;Tn<_n.columnSpan&&!(ze+Tn>=a.columnCount);Tn++)Ni=a.Eb(ze+Tn),Ni.oa!==0&&(ve.width+=Ni.total);var Ei=Ve.oa+ve.width,gr=Be.oa+ve.height;Tn=ot,Ni=at;var Nr=Ei,Fo=gr,Ho=ot,gs=at,Bo=Ei,nh=gr;ot+Ei>x.width&&(Bo=Math.max(x.width-ot,0)),at+gr>x.height&&(nh=Math.max(x.height-at,0));var fo=_n.alignment;if(fo.Xb()){fo=a.defaultAlignment,fo.sb()||(fo=ar);var yl=fo.x,ps=fo.y,ih=fo.offsetX;fo=fo.offsetY;var wa=Ve.alignment,Ja=Be.alignment;wa.sb()&&(yl=wa.x,ih=wa.offsetX),Ja.sb()&&(ps=Ja.y,fo=Ja.offsetY)}else yl=fo.x,ps=fo.y,ih=fo.offsetX,fo=fo.offsetY;(isNaN(yl)||isNaN(ps))&&(ps=yl=.5,fo=ih=0),wa=Hn.width,Ja=Hn.height;var la=_n.margin,Vs=la.left+la.right,Qh=la.top+la.bottom,Sl=fl(_n,Be,Ve,!1);!isNaN(_n.desiredSize.width)||Sl!==Fn&&Sl!==ai||(wa=Math.max(Ei-Vs,0)),!isNaN(_n.desiredSize.height)||Sl!==Fn&&Sl!==wi||(Ja=Math.max(gr-Qh,0)),Ei=_n.maxSize,gr=_n.minSize,wa=Math.min(Ei.width,wa),Ja=Math.min(Ei.height,Ja),wa=Math.max(gr.width,wa),Ja=Math.max(gr.height,Ja),Ei=Ja+Qh,Tn+=Nr*yl-(wa+Vs)*yl+ih+la.left,Ni+=Fo*ps-Ei*ps+fo+la.top,_n.visible&&(Ji(Ho,gs,Bo,nh,Tn,Ni,Hn.width,Hn.height)?_n.arrange(Tn,Ni,wa,Ja):_n.arrange(Tn,Ni,wa,Ja,new Sn(Ho,gs,Bo,nh)))}}}for(zn.free(ve),a=0;a<b;a++)x=y[a],z=x instanceof Bn?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&&Me("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 ft=b.scale,Lt=ot.width;ot=ot.height;var jt=Math.max(y-ht,0),Xt=Math.max(x-at,0),qt=1;a.viewboxStretch===ni?Lt!==0&&ot!==0&&(qt=Math.min(jt/Lt,Xt/ot)):Lt!==0&&ot!==0&&(qt=Math.max(jt/Lt,Xt/ot)),qt===0&&(qt=1e-4),b.Ca*=qt,ft!==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=ar),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),ft=Math.ceil(at/b),Lt=a.gridOrigin,jt=Lt.x;Lt=Lt.y,y.save(),y.beginPath(),y.rect(0,0,ot,at),y.clip(),y.Se();for(var Xt=[],qt=a.O.s,ie=qt.length,be=0;be<ie;be++){var ve=qt[be],Te=[];if(Xt.push(Te),ve.visible){var Be=ve.interval;if(!(0>Be)){ve=mv(ve.figure);for(var ze=0;ze<ie;ze++)if(ze!==be){var Ve=qt[ze];Ve.visible&&mv(Ve.figure)===ve&&(Ve=Ve.interval,Ve>Be&&Te.push(Ve))}}}}for(qt=a.O.s,ie=qt.length,be=0;be<ie;be++){var an=qt[be];if(an.visible&&(Te=an.interval||1,ve=Math.abs(Te),!(2>E*ve*x))){if(Be=an.segmentIndex,(!isFinite(Be)||isNaN(Be))&&(Be=0),0>Be&&(Be=ve-Math.min(-Be,ve)),Be=Math.round(Be%ve),ve=an.opacity,ze=1,ve!==1){if(ve===0)continue;ze=y.globalAlpha,y.globalAlpha=ze*ve}Ve=Xt[be];var Vn=!1,$n=an.strokeDashArray;if($n!==null&&(Vn=!0,y.js($n,an.strokeDashOffset)),an.figure==="LineV"&&an.stroke!==null&&0<an.strokeWidth){for(y.lineWidth=an.strokeWidth,$r(a,y,an.stroke,!1,!1,z,nt),y.beginPath(),$n=an=Math.floor((jt-E)/E);$n<=an+ht;$n++){var _n=$n*E+jt;0<=_n&&_n<=ot&&wm($n,Te,Be,Ve)&&(y.moveTo(_n,0),y.lineTo(_n,at))}y.stroke(),y.Se()}else if(an.figure==="LineH"&&an.stroke!==null&&0<an.strokeWidth){for(y.lineWidth=an.strokeWidth,$r(a,y,an.stroke,!1,!1,z,nt),y.beginPath(),$n=an=Math.floor((Lt-b)/b);$n<=an+ft;$n++)_n=$n*b+Lt,0<=_n&&_n<=at&&wm($n,Te,Be,Ve)&&(y.moveTo(0,_n),y.lineTo(ot,_n));y.stroke(),y.Se()}else if(an.figure==="BarV"&&an.fill!==null)for($r(a,y,an.fill,!0,!1,z,nt),an=an.width,isNaN(an)&&(an=E),_n=$n=Math.floor((jt-E)/E);_n<=$n+ht;_n++){var Hn=_n*E+jt;0<=Hn+an&&Hn<=ot&&wm(_n,Te,Be,Ve)&&y.fillRect(Hn,0,an,at)}else if(an.figure==="BarH"&&an.fill!==null)for($r(a,y,an.fill,!0,!1,z,nt),an=an.height,isNaN(an)&&(an=b),_n=$n=Math.floor((Lt-b)/b);_n<=$n+ft;_n++)Hn=_n*b+Lt,0<=Hn+an&&Hn<=at&&wm(_n,Te,Be,Ve)&&y.fillRect(0,Hn,ot,an);Vn&&y.fs(),ve!==1&&(y.globalAlpha=ze)}}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 ur||a instanceof Wn){var nt=null,ot=null;if(a instanceof Wn&&(nt=a),a instanceof ur&&(ot=a,nt=ot.adornedPart,a.j===null&&(a.j=[])),nt instanceof Wn){var at=nt;if(z===0)yo(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var ht=a instanceof ur?null:nt.path;y=nt.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var ft=at.points,Lt=nt.pointsCount;ot!==null?ot.Ul(!1):nt!==null&&nt.Ul(!1),ot=y.width;var jt=y.height,Xt=a.j;if(Xt.length=0,ht!==null){r1(a,ot,jt,ht);var qt=ht.measuredBounds;x.ed(qt),Xt.push(qt)}qt=Vi.alloc();for(var ie=xe.alloc(),be=xe.alloc(),ve=0;ve<z;ve++){var Te=b[ve];if(Te!==ht)if(Te.isPanelMain&&Te instanceof ji){r1(a,ot,jt,Te);var Be=Te.measuredBounds;x.ed(Be),Xt.push(Be)}else if(2>Lt)Te.measure(1/0,1/0,0,0),Be=Te.measuredBounds,x.ed(Be),Xt.push(Be);else{var ze=Te.segmentIndex,Ve=Te.segmentFraction,an=Te.alignmentFocus;an.Mc()&&(an=ar);var Vn=Te.segmentOrientation,$n=Te.segmentOffset;if(isNaN(ze)){var _n=at.ua;Be=ln(),_n.Qu(Ve,Be);var Hn=xe.allocAt(Be[0],Be[1]);if(Hn.add(at.i(0)),_n.type===Gn.j?Hn.offset(-_n.startX,-_n.startY):(_n=_n.figures.first(),_n!==null&&Hn.offset(-_n.startX,-_n.startY)),_n=Be[2],Vn!==Ms){var Tn=at.computeAngle(Te,Vn,_n);Te.Kb=Tn}Tn=Hn.x-y.x;var Ni=Hn.y-y.y;xe.free(Hn),xn(Be)}else if(ze<-Lt||ze>=Lt)Be=xe.alloc(),at.vg(),at.computeMidPoint(Be),_n=at.midAngle,Vn!==Ms&&(Tn=at.computeAngle(Te,Vn,_n),Te.Kb=Tn),Tn=Be.x-y.x,Ni=Be.y-y.y,xe.free(Be);else{if(Tn=0,0<=ze?(Ni=ft.M(ze),Be=ze<Lt-1?ft.M(ze+1):Ni):(Tn=Lt+ze,Ni=ft.M(Tn),Be=0<Tn?ft.M(Tn-1):Ni),Ni.Xa(Be)){0<=ze?(_n=0<ze?ft.M(ze-1):Ni,Tn=ze<Lt-2?ft.M(ze+2):Be):(_n=Tn<Lt-1?ft.M(Tn+1):Ni,Tn=1<Tn?ft.M(Tn-2):Be),Hn=_n.Bf(Ni);var Ei=Be.Bf(Tn);_n=Hn>Ei+10?0<=ze?_n.ab(Ni):Ni.ab(_n):Ei>Hn+10?0<=ze?Be.ab(Tn):Tn.ab(Be):0<=ze?_n.ab(Tn):Tn.ab(_n)}else _n=0<=ze?Ni.ab(Be):Be.ab(Ni);Vn!==Ms&&(Tn=at.computeAngle(Te,Vn,_n),Te.Kb=Tn),Tn=Ni.x+(Be.x-Ni.x)*Ve-y.x,Ni=Ni.y+(Be.y-Ni.y)*Ve-y.y}Te.measure(1/0,1/0,0,0),Be=Te.measuredBounds,Hn=Te.naturalBounds;var gr=0;Te instanceof ji&&(gr=Te.strokeWidth),Ei=Hn.width+gr;var Nr=Hn.height+gr;qt.reset(),qt.translate(-Be.x,-Be.y),qt.scale(Te.scale,Te.scale),qt.rotate(Vn===Ms?Te.angle:_n,Ei/2,Nr/2),Vn!==qg&&Vn!==tp||qt.rotate(90,Ei/2,Nr/2),Vn!==$g&&Vn!==ep||qt.rotate(-90,Ei/2,Nr/2),Vn===qm&&(45<_n&&135>_n||225<_n&&315>_n)&&qt.rotate(-_n,Ei/2,Nr/2),Hn=new Sn(0,0,Ei,Nr),ie.xi(Hn,an),qt.Ga(ie),an=-ie.x+gr/2*Te.scale,Te=-ie.y+gr/2*Te.scale,be.assign($n),gr=isNaN($n.x);var Fo=isNaN($n.y);if(gr||Fo){Ei=Ei/2+3,Nr=Nr/2+3;var Ho=45<=_n&&135>=_n,gs=225<=_n&&315>=_n;Vn===Ms&&(Ho||gs)?(be.x=Fo?Ei:$n.y,be.y=gr?Nr:$n.x,Ho?0<=ze||isNaN(ze)&&.5>Ve||!gr||(be.y=-Nr):gs&&((0<=ze||isNaN(ze)&&.5>Ve)&&gr&&(be.y=-Nr),Fo&&(be.x=-Ei))):(gr&&(be.x=0<=ze||isNaN(ze)&&.5>Ve?Ei:-Ei),Fo&&(be.y=-Nr),be.rotate(_n))}else be.rotate(_n);Tn+=be.x,Ni+=be.y,Hn.set(Be),Hn.h(Tn+an,Ni+Te,Be.width,Be.height),Xt.push(Hn),x.ed(Hn)}}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),yo(E,x.width||0,x.height||0),Vi.free(qt),xe.free(ie),xe.free(be)}}}},Pm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof ur||a instanceof Wn){var b=a,E=null;a instanceof ur&&(E=a,b=E.adornedPart);var z=a instanceof ur?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 ft=nt[ot];ot++,ht.arrange(ft.x-a.jg.x,ft.y-a.jg.y,ft.width,ft.height)}}}if(y=b.points,x=y.count,2<=x&&a instanceof Wn)for(z=a.labelNodes;z.next();){var Lt=a;nt=z.value,ot=nt.segmentIndex,at=nt.segmentFraction;var jt=nt.alignmentFocus;if(ht=nt.segmentOrientation,ft=nt.segmentOffset,isNaN(ot)){var Xt=Lt.ua,qt=ln();Xt.Qu(at,qt);var ie=xe.allocAt(qt[0],qt[1]);ie.add(Lt.i(0)),Xt.type===Gn.j||(Xt=Xt.figures.first()),ie.offset(-Xt.startX,-Xt.startY),Xt=qt[2],ht!==Ms&&(Lt=Lt.computeAngle(nt,ht,Xt),nt.angle=Lt),Lt=ie.x;var be=ie.y;xe.free(ie),xn(qt)}else if(ot<-x||ot>=x)qt=xe.alloc(),Xt=Lt,be=qt,Xt.vg(),Xt.computeMidPoint(be),Xt=Lt.midAngle,ht!==Ms&&(Lt=Lt.computeAngle(nt,ht,Xt),nt.angle=Lt),Lt=qt.x,be=qt.y,xe.free(qt);else{if(ie=0,0<=ot?(qt=y.s[ot],be=ot<x-1?y.s[ot+1]:qt):(ie=x+ot,qt=y.s[ie],be=0<ie?y.s[ie-1]:qt),qt.Xa(be)){0<=ot?(Xt=0<ot?y.s[ot-1]:qt,ie=ot<x-2?y.s[ot+2]:be):(Xt=ie<x-1?y.s[ie+1]:qt,ie=1<ie?y.s[ie-2]:be);var ve=Xt.Bf(qt),Te=be.Bf(ie);Xt=ve>Te+10?0<=ot?Xt.ab(qt):qt.ab(Xt):Te>ve+10?0<=ot?be.ab(ie):ie.ab(be):0<=ot?Xt.ab(ie):ie.ab(Xt)}else Xt=0<=ot?qt.ab(be):be.ab(qt);ht!==Ms&&(Lt=Lt.computeAngle(nt,ht,Xt),nt.angle=Lt),Lt=qt.x+(be.x-qt.x)*at,be=qt.y+(be.y-qt.y)*at}if(jt.ys())nt.location=new xe(Lt,be);else{jt.Mc()&&(jt=ar),qt=Vi.alloc(),qt.reset(),qt.scale(nt.scale,nt.scale),qt.rotate(nt.angle,0,0);var Be=nt.naturalBounds;ie=Sn.allocAt(0,0,Be.width,Be.height),ve=xe.alloc(),ve.xi(ie,jt),qt.Ga(ve),jt=-ve.x,Te=-ve.y;var ze=Be.width,Ve=Be.height;Be=xe.alloc(),Be.assign(ft);var an=isNaN(ft.x),Vn=isNaN(ft.y);if(an||Vn){ze=ze/2+3,Ve=Ve/2+3;var $n=45<=Xt&&135>=Xt,_n=225<=Xt&&315>=Xt;ht===Ms&&($n||_n)?(Be.x=Vn?ze:ft.y,Be.y=an?Ve:ft.x,$n?0<=ot||isNaN(ot)&&.5>at||!an||(Be.y=-Ve):_n&&((0<=ot||isNaN(ot)&&.5>at)&&an&&(Be.y=-Ve),Vn&&(Be.x=-ze))):(an&&(Be.x=0<=ot||isNaN(ot)&&.5>at?ze:-ze),Vn&&(Be.y=-Ve),Be.rotate(Xt))}else Be.rotate(Xt);Lt+=Be.x,be+=Be.y,qt.pp(ie),jt+=ie.x,Te+=ie.y,ot=xe.allocAt(Lt+jt,be+Te),nt.move(ot),xe.free(ot),xe.free(Be),xe.free(ve),Sn.free(ie),Vi.free(qt)}}E!==null?E.Ul(!1):b.Ul(!1),b=I1(a),a.location.h(a.position.x+b.x,a.position.y+b.y),xe.free(b)}};function r1(a,y,x,b){if(va(b)!==!1){var E=b.strokeWidth;E===0&&a instanceof ur&&a.type===Bn.Link&&a.adornedObject instanceof ji&&(E=a.adornedObject.strokeWidth),E*=b.Ca,a instanceof Wn&&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 ur&&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,ft=at.top+at.bottom;ot.measure(y,x,z,nt);var Lt=ot.measuredBounds,jt=new Sn(-at.left,-at.top,Math.max(Lt.width+ht,0),Math.max(Lt.height+ft,0));a.graduatedBounds.push(jt),E.assign(jt);for(var Xt=ot.geometry,qt=ot.strokeWidth,ie=Xt.flattenedSegments,be=Xt.flattenedLengths,ve=Xt.flattenedTotalLength,Te=ie.length,Be=0,ze=0,Ve=ln(),an=0;an<Te;an++){var Vn=ie[an],$n=[];ze=Be=0;for(var _n=Vn.length,Hn=0;Hn<_n;Hn+=2){var Tn=Vn[Hn],Ni=Vn[Hn+1];if(Hn!==0){var Ei=180*Math.atan2(Ni-ze,Tn-Be)/Math.PI;0>Ei&&(Ei+=360),$n.push(Ei)}Be=Tn,ze=Ni}Ve.push($n)}if(a.graduatedIntervals===null){for(var gr=[],Nr=a.O.s,Fo=Nr.length,Ho=0;Ho<Fo;Ho++){var gs=Nr[Ho],Bo=[];if(gr.push(Bo),gs.visible){var nh=gs.interval;if(!(0>nh)){for(var fo=0;fo<Fo;fo++)if(fo!==Ho){var yl=Nr[fo];if(yl.visible&&gs.constructor===yl.constructor){var ps=yl.interval;ps>nh&&Bo.push(ps)}}}}}a.graduatedIntervals=gr}var ih=a.graduatedIntervals,wa=a.O.s,Ja=wa.length,la=0,Vs=0,Qh=ve;a.graduatedMarks=[];for(var Sl,Uf=0;Uf<Ja;Uf++){var ua=wa[Uf];if(Sl=[],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=be[0][0],Ol=0,Zs=0;Vs=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 ji&&!ua.graduatedSkip(ha,ua))&&(la=(ha-a.graduatedMin)*ve/a.graduatedRange,la>ve&&(la=ve),Vs<=la&&la<=Qh)){for(var eu=Ve[Ol][Zs],rh=be[Ol][Zs];Ol<be.length;){for(;la>Md&&Zs<be[Ol].length-1;)Zs++,eu=Ve[Ol][Zs],rh=be[Ol][Zs],Md+=rh;if(la<=Md)break;Ol++,Zs=0,eu=Ve[Ol][Zs],rh=be[Ol][Zs],Md+=rh}var Xs=ie[Ol],Il=Xs[2*Zs],W0=Xs[2*Zs+1],wu=(la-(Md-rh))/rh,Kf=new xe(Il+(Xs[2*Zs+2]-Il)*wu+qt/2-Xt.bounds.x,W0+(Xs[2*Zs+3]-W0)*wu+qt/2-Xt.bounds.y);Kf.scale(ot.scale,ot.scale);t:{var xl=eu,Rc=Ve[Ol];if(!(.5005>wu&&.4995<wu)){var Dl=xl;if(.5>wu?0<Zs?Dl=Rc[Zs-1]:Je.$(Xs[0],Xs[Xs.length-2])&&Je.$(Xs[1],Xs[Xs.length-1])&&(Dl=Rc[Rc.length-1]):.5<wu&&(Zs+1<Rc.length?Dl=Rc[Zs+1]:Je.$(Xs[0],Xs[Xs.length-2])&&Je.$(Xs[1],Xs[Xs.length-1])&&(Dl=Rc[0])),xl!==Dl){var kd=Math.abs(xl-Dl);if(180<kd&&(xl<Dl?xl+=360:Dl+=360,kd=Math.abs(xl-Dl)),5e-4>wu||.9995<wu){eu=(xl+Dl)/2%360;break t}if(10>kd){var Vf=1-Math.abs(.5-wu);eu=(xl*Vf+Dl*(1-Vf))%360;break t}}}eu=xl}if(ua instanceof Ir){var hl="";ua.graduatedFunction!==null?(hl=ua.graduatedFunction(ha,ua),hl=hl!=null?hl.toString():""):hl=(+ha.toFixed(2)).toString(),hl!==""&&Sl.push({$l:Kf,angle:eu,text:hl})}else Sl.push({$l:Kf,angle:eu})}ha=Lp+tu*Bc}}}a.graduatedMarks.push(Sl)}xn(Ve);var Qo=a.graduatedMarks;if(Qo!==null)for(var Ap=b.length,Is=0;Is<Ap;Is++){var po=b[Is],Ds=Qo[Is];if(po.visible&&po!==ot&&Ds.length!==0){if(po instanceof ji){var Pu=a,oh=E,jc=po.alignmentFocus;jc.Mc()&&(jc=ba);var Uy=po.angle;po.Kb=0,po.measure(1/0,1/0,0,0),po.Kb=Uy;var U0=po.measuredBounds,Zf=U0.width,zc=U0.height,Nd=Sn.allocAt(0,0,Zf,zc),Ys=xe.alloc();Ys.xi(Nd,jc),Sn.free(Nd);for(var bu=-Ys.x,wl=-Ys.y,Ra=new Sn,ec=Ds.length,Xf=0;Xf<ec;Xf++)for(var nc=Ds[Xf],G0=nc.$l.x,Yf=nc.$l.y,eo=nc.angle,cl=0;4>cl;cl++){switch(cl){case 0:Ys.h(bu,wl);break;case 1:Ys.h(bu+Zf,wl);break;case 2:Ys.h(bu,wl+zc);break;case 3:Ys.h(bu+Zf,wl+zc)}Ys.rotate(eo+po.angle),Ys.offset(G0,Yf),Xf===0&&cl===0?Ra.h(Ys.x,Ys.y,0,0):Ra.Ye(Ys),Ys.offset(-G0,-Yf),Ys.rotate(-eo-po.angle)}xe.free(Ys),Pu.graduatedBounds!==null&&Pu.graduatedBounds.push(Ra),qi(oh,Ra.x,Ra.y,Ra.width,Ra.height)}else if(po instanceof Ir){var Qa=a,K0=E;Qa.temporaryTextBlock===null&&(Qa.temporaryTextBlock=new Ir);var ca=Qa.temporaryTextBlock;S1(ca,po);var sh=po.alignmentFocus;sh.Mc()&&(sh=ba);for(var qa=po.segmentOrientation,_f=po.segmentOffset,ic=new Sn,Mp=0,Jf=0,Fl=0,Hc=0,rc=0,Qf=Ds.length,ah=0;ah<Qf;ah++){var nu=Ds[ah];Mp=nu.$l.x,Jf=nu.$l.y,Fl=nu.angle,rc=Hc=po.angle,qa!==Ms&&(rc=qa===Qg||qa===Qm?Fl+po.angle:Fl,Hc=Wn.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,Pl=Vi.alloc();Pl.reset(),Pl.translate(-lh.x,-lh.y),Pl.scale(ca.scale,ca.scale),Pl.rotate(rc,uh/2,Wc/2),qa!==qg&&qa!==tp||Pl.rotate(90,uh/2,Wc/2),qa!==$g&&qa!==ep||Pl.rotate(-90,uh/2,Wc/2),qa===qm&&(45<Fl&&135>Fl||225<Fl&&315>Fl)&&Pl.rotate(-Fl,uh/2,Wc/2);var Od=Sn.allocAt(0,0,uh,Wc),hh=xe.alloc();hh.xi(Od,sh),Pl.Ga(hh);var Id=-hh.x,Gy=-hh.y,Eu=xe.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 Sn(Mp,Jf,lh.width,lh.height),Tp=new Sn(lh.x,lh.y,lh.width,lh.height),Ky=new Sn(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),xe.free(Eu),xe.free(hh),Sn.free(Od),Vi.free(Pl)}Qa.graduatedBounds!==null&&Qa.graduatedBounds.push(ic),qi(K0,ic.x,ic.y,ic.width,ic.height)}xo(po,!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 ft=y[ht];ot=E[ht],ft.visible&&ft!==b&&ot.length!==0&&(ot=z[nt],nt++,ft.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,ft=at.length,Lt=0;Lt<ft;Lt++){var jt=at[Lt],Xt=ht[Lt],qt=Xt.length;if(jt.visible&&jt!==z&&Xt.length!==0){if(jt instanceof ji){if(!(2>a.graduatedTickUnit*jt.interval*z.geometry.flattenedTotalLength/a.graduatedRange*nt&&jt.graduatedSkip===null)){var ie=jt.measuredBounds,be=jt.strokeWidth*jt.scale,ve=jt.alignmentFocus;ve.Mc()&&(ve=ba);for(var Te=0;Te<qt;Te++){var Be=Xt[Te].$l,ze=Xt[Te].angle,Ve=ve,an=jt.Ab;an.reset(),an.translate(Be.x+ot.x,Be.y+ot.y),an.rotate(ze+jt.angle,0,0),an.translate(-ie.width*Ve.x+Ve.offsetX+be/2,-ie.height*Ve.y+Ve.offsetY+be/2),an.scale(jt.scale,jt.scale),Va(jt,!1),jt.wh.set(jt.Ab),jt.Kk=jt.scale,ka(jt,!1),jt.gc(y,x),E&&(a.svg.appendChild(jt.svg),jt.svg=null),jt.Ab.reset()}}}else if(jt instanceof Ir)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new Ir),ie=a.temporaryTextBlock,S1(ie,jt),be=0;be<qt;be++)ve=Xt[be],ve.actualBounds&&ve.measuredBounds&&ve.naturalBounds&&(ie.ec=ve.text||"",ie.Kb=ve.Sz||0,ie.Gc=ve.lineCount||0,Te=ve.lines,Te!==void 0&&(ie.Cb=Te[0],ie.Ih=Te[1],ie.df=Te[2],ie.Le=Te[3],ie.Qc=Te[4],ie.Qb=Te[5],ie.ze=Te[6]),ve.naturalBounds&&(ie.dc=ve.naturalBounds),ve.actualBounds&&(Te=ve.actualBounds,ie.arrange(Te.x,Te.y,Te.width,Te.height)),Te=ve.actualBounds,ie.arrange(Te.x,Te.y,Te.width,Te.height),Be=ve.measuredBounds,ve=ve.naturalBounds,ze=ie.Ab,ze.reset(),ze.translate(Te.x+ot.x,Te.y+ot.y),ze.translate(-Be.x,-Be.y),ie.no(ze,ve.x,ve.y,ve.width,ve.height),Va(ie,!1),ie.wh.set(ie.Ab),ie.Kk=ie.scale,ka(ie,!1),ie.Ng=jt.part,ie.Me=jt.panel,ie.gc(y,x),ie.Me=null,ie.Ng=null,E&&(a.svg.appendChild(ie.svg),ie.svg=null))}}x.$i=b,y.restore(),y.Vc(!0)};function Bn(a,y){if(Xe.call(this),this.na=null,a===void 0)this.na=Bn.Position;else if(typeof a=="string"){var x=rl.I(a);x!==null&&(this.na=x)}else a instanceof Lo?this.na=a:a&&(this.na=Bn.Position,y=a);this.na===null&&Me("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===Bn.Grid?1048576:0),this.O=new Cn,this.yb=os,this.Tm=Pr,this.Uf=Di,this.$g=null,this.$e="",this.jg=new Sn(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=ni,this.jn=Xr,this.kn=Ri,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}Qe(Bn,Xe),Bn.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},Bn.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},Bn.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 Zn&&(z.Te=!0);var ot=a.diagram;ot!==null&&ot.undoManager.isUndoingRedoing||z.cb(lo,"elements",a,null,E,null,nt)}}return a}return null},te=Bn.prototype,te.toString=function(){return"Panel("+this.type.name+")#"+Hi(this)},te.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)},te.hh=function(a,y){if(this.na===Bn.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===Bn.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===Bn.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===Bn.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 ft=ht.separatorStrokeWidth;isNaN(ft)&&(ft=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Lt=ht.separatorStroke;if(Lt===null&&(Lt=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ft!==0&&Lt!==null){$r(a,y,Lt,!1,!1,nt,z),Lt=!1;var jt=ht.separatorDashArray;jt===null&&(jt=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),jt!==null&&(Lt=!0,y.js(jt,0)),y.beginPath(),jt=ht.position+ft,x?jt>nt.height&&(ft-=jt-nt.height):jt>nt.width&&(ft-=jt-nt.width),ht=ht.position+ft/2,y.lineWidth=ft,ft=a.yb,x?(ht+=ft.top,jt=nt.width-ft.right,y.moveTo(ft.left,ht),y.lineTo(jt,ht)):(ht+=ft.left,jt=nt.height-ft.bottom,y.moveTo(ht,ft.top),y.lineTo(ht,jt)),y.stroke(),y.Se(),Lt&&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),ft=0;ft<z;ft++){var Lt=b[ft];if(Lt!==void 0&&Lt.background!==null&&Lt.coversSeparators!==E&&Lt.actual!==0){var jt=x?nt.height:nt.width;if(!(Lt.position>jt)){var Xt=Lt.Wc(),qt=Lt.separatorStrokeWidth;isNaN(qt)&&(qt=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var ie=Lt.separatorStroke;ie===null&&(ie=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(ie===null||Lt.index===(x?at:ht))&&(qt=0),Xt-=qt,qt=Lt.position+qt,Xt+=Lt.actual,qt+Xt>jt&&(Xt=jt-qt),0>=Xt||(jt=a.yb,$r(a,y,Lt.background,!0,!1,ot,nt),x?y.fillRect(jt.left,qt+jt.top,nt.width-(jt.left+jt.right),Xt):y.fillRect(qt+jt.left,jt.top,Xt,nt.height-(jt.top+jt.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"}te.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},te.kk=function(a,y,x){if(!Xe.prototype.kk.call(this,a,y,x))return!1;if(this.type===Bn.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===Bn.Grid||this.na===Bn.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},te.nk=function(){return!0},te.$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)},te.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,ft=-nt.m21*ot,Lt=nt.m11*ot,jt=ot*(nt.m21*nt.dy-nt.m22*nt.dx),Xt=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*ft+jt,ot=a*ht+y*Lt+Xt,a=x*at+b*ft+jt,at=x*ht+b*Lt+Xt,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,ft=ht=0,Lt=1,Xt=jt=0),ot=a*at+y*ft+jt,a=a*ht+y*Lt+Xt,at=x*at+b*ft+jt,x=x*ht+b*Lt+Xt,E.h(at,x),b=(at-ot)*(at-ot)+(x-a)*(x-a),ht=!1,Lt=this.O.s,Xt=Lt.length,ft=xe.alloc(),jt=null,y=1/0;var qt=null,ie=this.isClipping&&this.na===Bn.Spot;ie&&(qt=xe.alloc(),jt=this.Pb(),(ht=jt.Sj(ot,a,at,x,qt))&&(y=(ot-qt.x)*(ot-qt.x)+(a-qt.y)*(a-qt.y)));for(var be=0;be<Xt;be++){var ve=Lt[be];ve.visible&&ve!==jt&&ve.Sj(ot,a,at,x,ft)&&(ht=!0,ve=(ot-ft.x)*(ot-ft.x)+(a-ft.y)*(a-ft.y),ve<b&&(b=ve,E.set(ft)))}return ie&&(y>b&&E.set(qt),xe.free(qt)),xe.free(ft),z&&E.transform(nt),ht},te.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();Xe.prototype.Gj.call(this)},te.v=function(a){if(!va(this)){Xe.prototype.v.call(this,a),a=null,(this.na===Bn.Auto||this.na===Bn.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=Rs(E,!1);(E instanceof As||E instanceof Bn||E instanceof Ir||z!==Dn)&&E.v(!0)}}}},te.Uj=function(){if(!va(this)){xo(this,!0),Gl(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},te.Uk=function(){if(!(this.l&2048)){Va(this,!0),ka(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},te.Wu=function(){ka(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},te.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),yo(E,a,at),yo(this.naturalBounds,a,at),this.Ge(0,0,a,at)},te.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}te.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=Rs(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=Dn),a){case Dn:(y>x||z>b)&&(this.v(),this.measure(y>x?x:y,z>b?b:z,0,0));break;case Fn: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 wi:this.v(!0),this.measure(y+ot,b+nt,0,0)}}this.na.arrange(this,E,this.jg)}},te.gh=function(a){var y=this.naturalBounds,x=vu(this);if(Ji(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var b=y.length,E=xe.allocAt(0,0);b--;){var z=y[b];if((z.visible||z===x)&&(_i(E.set(a),z.transform),z.ca(E)))return xe.free(E),!0}return xe.free(E),!(this.Ma===null&&this.areaBackground===null)}return!1},te.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},te.qm=function(a,y){if(y(this,a),a instanceof Bn){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 Bn&&a1(a,z,x)}}function yx(a,y){l1(a,a,y)}function l1(a,y,x){if(x(y),y instanceof Bn){y=y.O.s;for(var b=y.length,E=0;E<b;E++)l1(a,y[E],x)}}te.Nl=function(a){return u1(this,this,a)};function u1(a,y,x){if(x(y))return y;if(y instanceof Bn){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}te.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 Bn){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 Bn?x=Math.max(x,h1(E)):E instanceof ji&&(x=Math.max(x,E.ig/2*E.strokeMiterLimit*E.Df()))}return x}te.se=function(){return!(this.type===Bn.TableRow||this.type===Bn.TableColumn)};function Zu(a){return a.type===Bn.TableRow||a.type===Bn.TableColumn}te.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),Es(this)))return null;var b=this.naturalBounds,E=1/this.Df(),z=this.se(),nt=z?a:_i(xe.allocAt(a.x,a.y),this.transform),ot=this.diagram,at=10,ht=5;if(ot!==null&&(at=ot.Ql("extraTouchArea"),ht=at/2),Ji(-(ht*E),-(ht*E),b.width+at*E,b.height+at*E,nt.x,nt.y)){if(!this.isAtomic){E=this.O.s;var ft=E.length;if(ot=xe.alloc(),ht=(at=this.isClipping&&this.na===Bn.Spot)?this.Pb():null,at&&(ht.se()?_i(ot.set(a),ht.transform):ot.set(a),!ht.ca(ot)))return xe.free(ot),z||xe.free(nt),null;for(var Lt=vu(this);ft--;){var jt=E[ft];if((jt.visible||jt===Lt)&&(jt.se()?_i(ot.set(a),jt.transform):ot.set(a),!at||jt!==ht)){var Xt=null;if(jt instanceof Bn?Xt=jt.ic(ot,y,x):jt.pickable===!0&&jt.ca(ot)&&(Xt=jt),Xt!==null&&(y!==null&&(Xt=y(Xt)),Xt!==null&&(x===null||x(Xt))))return xe.free(ot),z||xe.free(nt),Xt}}xe.free(ot)}return this.background===null&&this.areaBackground===null?(z||xe.free(nt),null):(a=Ji(0,0,b.width,b.height,nt.x,nt.y)?this:null,z||xe.free(nt),a)}return z||xe.free(nt),null},te.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:_i(xe.allocAt(a.x,a.y),this.transform);if(E=Ji(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=xe.alloc(),ft=vu(this);at--;){var Lt=ot[at];if(Lt.visible||Lt===ft){Lt.se()?_i(ht.set(a),Lt.transform):ht.set(a);var jt=Lt;Lt=Lt instanceof Bn?Lt:null,(Lt!==null?Lt.ji(ht,y,x,b):jt.ca(ht))&&jt.pickable!==!1&&(y!==null&&(jt=y(jt)),jt===null||x!==null&&!x(jt)||b.add(jt))}}xe.free(ht)}return z||xe.free(nt),E&&(this.background!==null||this.areaBackground!==null)}return z||xe.free(nt),!1},te.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 ft=at[ht];if(ft.visible||ft===ot){var Lt=ft.actualBounds,jt=this.naturalBounds;Lt.x>jt.width||Lt.y>jt.height||0>Lt.x+Lt.width||0>Lt.y+Lt.height||(Lt=ft,ft=ft instanceof Bn?ft:null,jt=Vi.alloc(),jt.set(nt),(ft!==null?ft.Cf(a,y,x,b,E,jt):Do(Lt,a,b,jt))&&(y!==null&&(Lt=y(Lt)),Lt===null||x!==null&&!x(Lt)||E.add(Lt)),Vi.free(jt))}}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 Bn&&vv(nt,y,x,b),y!==null&&(nt=y(nt)),nt===null||x!==null&&!x(nt)||b.add(nt))}}}te.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:_i(xe.allocAt(a.x,a.y),this.transform),ht=ot?y:_i(xe.allocAt(y.x,y.y),this.transform),ft=at.Bf(ht),Lt=0<at.x&&at.x<nt.width&&0<at.y&&at.y<nt.height||Mr(at.x,at.y,0,0,0,nt.height)<=ft||Mr(at.x,at.y,0,nt.height,nt.width,nt.height)<=ft||Mr(at.x,at.y,nt.width,nt.height,nt.width,0)<=ft||Mr(at.x,at.y,nt.width,0,0,0)<=ft;if(nt=at.zd(0,0)<=ft&&at.zd(0,nt.height)<=ft&&at.zd(nt.width,0)<=ft&&at.zd(nt.width,nt.height)<=ft,ot||(xe.free(at),xe.free(ht)),Lt){if(!this.isAtomic){at=xe.alloc(),ht=xe.alloc(),ft=vu(this);for(var jt=this.O.s,Xt=jt.length;Xt--;){var qt=jt[Xt];if(qt.visible||qt===ft){var ie=qt.actualBounds,be=this.naturalBounds;(!ot||!(ie.x>be.width||ie.y>be.height||0>ie.x+ie.width||0>ie.y+ie.height))&&(qt.se()?(ie=qt.transform,_i(at.set(a),ie),_i(ht.set(y),ie)):(at.set(a),ht.set(y)),ie=qt,qt=qt instanceof Bn?qt:null,(qt!==null?qt.og(at,ht,x,b,E,z):ie.tx(at,ht,E))&&(x!==null&&(ie=x(ie)),ie===null||b!==null&&!b(ie)||z.add(ie)))}}xe.free(at),xe.free(ht)}return E?Lt:nt}return!1};function yv(a){var y=null;return a instanceof ji&&(y=a.spot1,y===Pr&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=ko),y}function Sv(a){var y=null;return a instanceof ji&&(y=a.spot2,y===Pr&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=ta),y}te.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},te.M=function(a){return this.O.M(a)},te.Gb=function(a,y){y instanceof ci&&Me("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&Me("Cannot make a Panel contain itself: "+this.toString()),Me("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&Me("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!==Bn.Grid||y instanceof ji||Me("Can only add Shapes to a Grid Panel, not: "+y),this.na!==Bn.Graduated||y instanceof ji||y instanceof Ir||Me("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 Jn),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 Me("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),va(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof Bn&&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 Zn&&(x.Te=!0),x.Te&&x instanceof Zn&&(x.wc=null),E=this.diagram,E!==null&&E.undoManager.isUndoingRedoing||(b!==-1&&x.cb(Eo,"elements",this,y,null,b,null),x.cb(lo,"elements",this,null,y,null,a)))};function xv(a,y){a.l=y?a.l|16777216:a.l&-16777217}te.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)},te.mb=function(a){0<=a&&this.pc(a,!0)},te.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 Zn&&(b instanceof Bn?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))},te.Fb=function(a){0>a&&fn(a,">= 0",Bn,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new wo;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb(lo,"rowdefs",this,null,x,null,a)}return y[a]},te.oA=function(a){if(0>a&&fn(a,">= 0",Bn,"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()}}te.Eb=function(a){0>a&&fn(a,">= 0",Bn,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new wo;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb(lo,"coldefs",this,null,x,null,a)}return y[a]},te.jA=function(a){if(0>a&&fn(a,">= 0",Bn,"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()}}te.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},te.Hy=function(a,y){return(a=this.Fb(a))&&Lm(a,new wo(y)),this},te.By=function(a,y){return(a=this.Eb(a))&&Lm(a,new wo(y)),this},te.nz=function(a){if(0>a||this.type!==Bn.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},te.fz=function(a){if(0>a||this.type!==Bn.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},te.Fz=function(a,y){if(y===void 0&&(y=new xe(NaN,NaN)),this.type!==Bn.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)},te.Gz=function(a){if(this.type!==Bn.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 Xa(a){var y=a.allBindings;if(y===null)a.data!==null&&Me("Template cannot have .data be non-null: "+a),a.allBindings=y=new Cn;else if(y._isFrozen)return;var x=new Cn;xv(a,!1),a.qm(a,function(ht,ft){ft.th();var Lt=ft.localBindings;if(Lt!==null)for(fd(ft,!1),Lt=Lt.iterator;Lt.next();){var jt=Lt.value;jt.mode===up&&fd(ft,!0);var Xt=jt.sourceName;Xt!==null&&(Xt==="/"&&xv(ht,!0),Xt=AS(jt,ht,ft),Xt!==null&&(x.add(Xt),Xt.srcBindings===null&&(Xt.srcBindings=new Cn),Xt.srcBindings.add(jt))),y.add(jt)}if(ft instanceof Bn&&ft.type===Bn.Table){if(0<ft.rowCount){for(ht=ft.rowDefs,Lt=ht.length,jt=0;jt<Lt;jt++)if(Xt=ht[jt],Xt!==void 0&&Xt.be!==null)for(var qt=Xt.be.iterator;qt.next();){var ie=qt.value;ie.xd=Xt,ie.to=2,ie.wl=Xt.index,y.add(ie)}}if(0<ft.columnCount){for(ft=ft.colDefs,ht=ft.length,Lt=0;Lt<ht;Lt++)if(jt=ft[Lt],jt!==void 0&&jt.be!==null)for(Xt=jt.be.iterator;Xt.next();)qt=Xt.value,qt.xd=jt,qt.to=1,qt.wl=jt.index,y.add(qt)}}});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 Cn),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 Bn&&(nt=ot.substring(0,at),ot=ot.substr(at+1),at=z.fb(nt),at!==null?(z=at,E.targetProperty=ot):In('Warning: unable to find GraphObject named "'+nt+'" for Binding: '+E.toString())),z instanceof wo?(nt=Hi(z.panel),E.Ai=nt===void 0?-1:nt,z.panel.bindingId=E.Ai):z instanceof Xe?(nt=Hi(z),E.Ai=nt===void 0?-1:nt,z.bindingId=E.Ai):Me("Unknown type of binding target: "+z)}y.freeze(),a instanceof ci&&a.Zc()&&a.Va()}te.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return yx(y,function(x){x instanceof Bn&&(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&&Xa(y),y},te.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 Bn))continue;E===1?z=z.Eb(x.wl):E===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,b)}}},te.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 Bn&&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 Bn)||z.data!==y[nt])return!0;E++,nt++}return!1}function Wg(a){if(a.type===Bn.Spot||a.type===Bn.Auto)return Math.min(a.O.length,1);if(a.type===Bn.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var b=a.M(x);if(!(b instanceof ji&&b.isPanelMain))break}return x}return a.type===Bn.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof Bn&&Zu(a))?1:0}te.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 Bn){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),va(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 Zn&&(y.Te=!0),y.Te&&y instanceof Zn&&(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(Xa(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 Jn),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 Bn){var E=y,z=x;b.type===Bn.TableRow?b.row=E:b.type===Bn.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=oo(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;Me("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,In('No item template Panel found for category "'+y+'" on '+a),In(" Using default item template."),a=new Bn,y=new Ir,y.bind(new co("text","",Mn)),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 Bn){y=y.O.s,b=y.length;for(var E=0;E<b;E++){var z=y[E];x&&z instanceof Bn&&!z.isEnabled||Em(a,z,x)}}}function kl(a,y){y.name=a,rl.add(a,y)}Fe.Object.defineProperties(Bn.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===Bn.Grid,this.v(),this.g("type",y,a))}},elements:{get:function(){return this.O.iterator}},naturalBounds:{get:function(){return this.dc}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"?(0>a&&fn(a,">= 0",Bn,"padding"),a=new hi(a)):(0>a.left&&fn(a.left,">= 0",Bn,"padding:value.left"),0>a.right&&fn(a.right,">= 0",Bn,"padding:value.right"),0>a.top&&fn(a.top,">= 0",Bn,"padding:value.top"),0>a.bottom&&fn(a.bottom,">= 0",Bn,"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 hi(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new Ia),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 xr)&&(a instanceof xr&&a.freeze(),this.T===null&&(this.T=new Ia),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 Ia),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)||Me("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 Ia),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 xr)&&(a instanceof xr&&a.freeze(),this.T===null&&(this.T=new Ia),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 Ia),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)||Me("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 Ia),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 Ia),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||Me("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()||Me("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&&jr(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&&jr(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 Ia),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new Ia),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 Ia),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 Ia),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)&&Me("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Ia),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)&&Me("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Ia),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 ci&&!(this instanceof ur);Xa(this),this.ub=a;var b=this.diagram;b!==null&&(x?(x=b.partManager,this instanceof Wn?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof ci&&(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 Jn}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof ci||a.isPanelMain)&&Me("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(););Wi(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&&(Wi(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 Ii&&(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))}}}),Fe.Object.defineProperties(Bn,{Position:{get:function(){return rl.I("Position")}},Horizontal:{get:function(){return rl.I("Horizontal")}},Vertical:{get:function(){return rl.I("Vertical")}},Spot:{get:function(){return rl.I("Spot")}},Auto:{get:function(){return rl.I("Auto")}},Table:{get:function(){return rl.I("Table")}},Viewbox:{get:function(){return rl.I("Viewbox")}},TableRow:{get:function(){return rl.I("TableRow")}},TableColumn:{get:function(){return rl.I("TableColumn")}},Link:{get:function(){return rl.I("Link")}},Grid:{get:function(){return rl.I("Grid")}},Graduated:{get:function(){return rl.I("Graduated")}}}),Bn.prototype.rebuildItemElements=Bn.prototype.mv,Bn.prototype.findItemPanelForData=Bn.prototype.sx,Bn.prototype.updateTargetBindings=Bn.prototype.La,Bn.prototype.copyTemplate=Bn.prototype.Uy,Bn.prototype.graduatedValueForPoint=Bn.prototype.Gz,Bn.prototype.graduatedPointForValue=Bn.prototype.Fz,Bn.prototype.findColumnForLocalX=Bn.prototype.fz,Bn.prototype.findRowForLocalY=Bn.prototype.nz,Bn.prototype.addColumnDefinition=Bn.prototype.By,Bn.prototype.addRowDefinition=Bn.prototype.Hy,Bn.prototype.addRowColumnDefinition=Bn.prototype.Gy,Bn.prototype.removeColumnDefinition=Bn.prototype.jA,Bn.prototype.getColumnDefinition=Bn.prototype.Eb,Bn.prototype.removeRowDefinition=Bn.prototype.oA,Bn.prototype.getRowDefinition=Bn.prototype.Fb,Bn.prototype.removeAt=Bn.prototype.mb,Bn.prototype.remove=Bn.prototype.remove,Bn.prototype.insertAt=Bn.prototype.Gb,Bn.prototype.elt=Bn.prototype.M,Bn.prototype.add=Bn.prototype.add,Bn.prototype.findObject=Bn.prototype.fb,Bn.prototype.findInVisualTree=Bn.prototype.Nl,Bn.prototype.walkVisualTreeFrom=Bn.prototype.qm,Bn.prototype.findMainElement=Bn.prototype.Pb;var p1=!1,m1=null,rl=new Jn;Bn.className="Panel",Bn.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 Ia(){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}Ia.prototype.copy=function(a){for(var y=new Ia,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},Ia.className="TablePanelSettings";function wo(a){Bi(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Pr,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Cv,this.hg=Di,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}te=wo.prototype,te.qb=function(a){a.classType===wo&&(this.sizing=a)},te.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Hi(this)},te.wi=function(a){this.Me=a},te.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)},te.Wc=function(){var a=0,y=this.Me,x=0,b=this.isRow;if(y!==null&&y.type===Bn.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)},te.Ob=function(a,y,x){var b=this.Me;if(b!==null&&(b.cb(Vr,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}te.bind=function(a,y,x,b){var E=null;return typeof a=="string"?E=new co(a,y,x,b):E=a,E.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&f1(y)&&Me("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+E+" on "+a)),this.be===null&&(this.be=new Cn),this.be.add(E),this},Fe.Object.defineProperties(wo.prototype,{panel:{get:function(){return this.Me}},isRow:{get:function(){return this.uq},set:function(a){this.uq=a}},index:{get:function(){return this.Za},set:function(a){this.Za=a}},height:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&fn(a,">= 0",wo,"height"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",y,a))}},width:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&fn(a,">= 0",wo,"width"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",y,a))}},minimum:{get:function(){return this.jj},set:function(a){var y=this.jj;y!==a&&((0>a||!isFinite(a))&&fn(a,">= 0",wo,"minimum"),this.jj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",y,a))}},maximum:{get:function(){return this.hj},set:function(a){var y=this.hj;y!==a&&(0>a&&fn(a,">= 0",wo,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new hi(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 xr&&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)||Me("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 xr&&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 qe(wo,"Default",0),Ug=new qe(wo,"None",1),Mm=new qe(wo,"ProportionalExtra",2);wo.className="RowColumnDefinition",wo.Default=Cv,wo.None=Ug,wo.ProportionalExtra=Mm;function ji(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(ji,Xe),ji.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())}te=ji.prototype,te.th=function(){Xe.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},te.qb=function(a){a===Dn||a===ni||a===er||a===Di?this.geometryStretch=a:Xe.prototype.qb.call(this,a)},te.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Hi(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,ft,Lt,jt,Xt,qt,ie=0,be=ln(),ve=2;ve<E;ve+=2)ht=x[ve],ft=x[ve+1],Lt=ht-ot,ot=ft-at,Lt===0&&(Lt=.001),jt=ot/Lt,Xt=Math.atan2(ot,Lt),qt=Math.sqrt(Lt*Lt+ot*ot),be.push([Lt,Xt,jt,qt]),ie+=qt,ot=ht,at=ft;ot=x[0],at=x[1],Lt=b.measuredBounds.width,b instanceof ji&&(Lt-=b.strokeWidth),1>Lt&&(Lt=1),E=x=Lt,ht=nt/2,ft=ht!==0,ve=0,qt=be[ve],Lt=qt[0],Xt=qt[1],jt=qt[2],qt=qt[3];for(var Te=0;.1<=ie;){if(Te===0&&(ft?(E=x,E-=ht,ie-=ht,ft=!1):E=x,E===0&&(E=1)),E>ie){xn(be);return}E>qt?(Te=E-qt,E=qt):Te=0;var Be=Math.sqrt(E*E/(1+jt*jt));if(0>Lt&&(Be=-Be),ot+=Be,at+=jt*Be,a.translate(ot,at),a.rotate(Xt),a.translate(-(nt/2),-(z/2)),Te===0&&b.hh(a,y),a.translate(nt/2,z/2),a.rotate(-Xt),a.translate(-ot,-at),ie-=E,qt-=E,Te!==0){if(ve++,ve===be.length){xn(be);return}qt=be[ve],Lt=qt[0],Xt=qt[1],jt=qt[2],qt=qt[3],E=Te}}xn(be)}}te.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===Bn.Link&&ot instanceof ur&&ot.category==="Selection"&&ot.adornedObject instanceof ji&&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===Gn.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===Gn.u){var ht=E.startX;at=E.startY;var ft=E.endX,Lt=E.endY;E=Math.min(ht,ft);var jt=Math.min(at,Lt);ht=Math.abs(ft-ht),at=Math.abs(Lt-at),a.beginPath(),a.rect(E,jt,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===Gn.F)ht=E.startX,at=E.startY,ft=E.endX,Lt=E.endY,E=Math.abs(ft-ht)/2,jt=Math.abs(Lt-at)/2,ht=Math.min(ht,ft)+E,at=Math.min(at,Lt)+jt,a.beginPath(),a.moveTo(ht,at-jt),a.bezierCurveTo(ht+Je.wg*E,at-jt,ht+E,at-Je.wg*jt,ht+E,at),a.bezierCurveTo(ht+E,at+Je.wg*jt,ht+Je.wg*E,at+jt,ht,at+jt),a.bezierCurveTo(ht-Je.wg*E,at+jt,ht-E,at+Je.wg*jt,ht-E,at),a.bezierCurveTo(ht-E,at-Je.wg*jt,ht-Je.wg*E,at-jt,ht,at-jt),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===Gn.o)for(E=E.figures,at=E.length,jt=0;jt<at;jt++){ht=E.s[jt],a.beginPath(),a.moveTo(ht.startX,ht.startY),ft=ht.segments.s,Lt=ft.length;for(var Xt=null,qt=0;qt<Lt;qt++){var ie=ft[qt];switch(ie.type){case Io:a.moveTo(ie.endX,ie.endY);break;case Br:a.lineTo(ie.endX,ie.endY);break;case $o:a.bezierCurveTo(ie.point1X,ie.point1Y,ie.point2X,ie.point2Y,ie.endX,ie.endY);break;case fa:a.quadraticCurveTo(ie.point1X,ie.point1Y,ie.endX,ie.endY);break;case mo:if(ie.radiusX===ie.radiusY){var be=Math.PI/180;a.arc(ie.point1X,ie.point1Y,ie.radiusX,ie.startAngle*be,(ie.startAngle+ie.sweepAngle)*be,0>ie.sweepAngle,Xt!==null?Xt.endX:ht.startX,Xt!==null?Xt.endY:ht.startY)}else if(Xt=na(ie,ht),be=Xt.length,be===0)a.lineTo(ie.centerX,ie.centerY);else for(var ve=0;ve<be;ve++){var Te=Xt[ve];ve===0&&a.lineTo(Te[0],Te[1]),a.bezierCurveTo(Te[2],Te[3],Te[4],Te[5],Te[6],Te[7])}break;case Ea:if(ve=be=0,Xt!==null&&Xt.type===mo){if(Xt=na(Xt,ht),Te=Xt.length,Te===0){a.lineTo(ie.endX,ie.endY);break}Xt=Xt[Te-1]||null,Xt!==null&&(be=Xt[6],ve=Xt[7])}else be=Xt!==null?Xt.endX:ht.startX,ve=Xt!==null?Xt.endY:ht.startY;if(Xt=Wa(ie,ht,be,ve),be=Xt.length,be===0){a.lineTo(ie.endX,ie.endY);break}for(ve=0;ve<be;ve++)Te=Xt[ve],a.bezierCurveTo(Te[2],Te[3],Te[4],Te[5],Te[6],Te[7]);break;default:Me("Segment not of valid type: "+ie.type)}ie.isClosed&&a.closePath(),Xt=ie}ft=ht.isFilled,z?ht.isShadowed?(ft===!0&&b!=="transparent"&&b!==null&&a.ng(b,ht.isEvenOdd),x!==null&&(ft&&ot&&Kl(a),a.jk(),ft&&ot&&gu(a))):(Kl(a),ft&&b!=="transparent"&&b!==null&&a.ng(b,ht.isEvenOdd),x!==null&&a.jk(),gu(a)):(ft&&b!==null&&a.ng(b,ht.isEvenOdd),x!==null&&a.jk()),a.Se(jt)}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=ln(),z.type===Gn.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===Gn.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,jt=E,ht=ot.segments.s,ft=ht.length,Lt=0;Lt<ft;Lt++){switch(qt=ht[Lt],qt.type){case Io:xf(a,y,b,x),b.length=0,b.push(qt.endX),b.push(qt.endY),nt=qt.endX,E=qt.endY,at=nt,jt=E;break;case Br:b.push(qt.endX),b.push(qt.endY),nt=qt.endX,E=qt.endY;break;case $o:Je.Qe(nt,E,qt.point1X,qt.point1Y,qt.point2X,qt.point2Y,qt.endX,qt.endY,.5,b),nt=qt.endX,E=qt.endY;break;case fa:Je.ep(nt,E,qt.point1X,qt.point1Y,qt.endX,qt.endY,.5,b),nt=qt.endX,E=qt.endY;break;case mo:if(ie=na(qt,ot),Xt=ie.length,Xt===0){b.push(qt.centerX),b.push(qt.centerY),nt=qt.centerX,E=qt.centerY;break}for(be=0;be<Xt;be++)ve=ie[be],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 Ea:if(ie=Wa(qt,ot,nt,E),Xt=ie.length,Xt===0){b.push(qt.endX),b.push(qt.endY),nt=qt.endX,E=qt.endY;break}for(be=0;be<Xt;be++)ve=ie[be],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:Me("Segment not of valid type: "+qt.type)}qt.isClosed&&(b.push(at),b.push(jt),xf(a,y,b,x))}xf(a,y,b,x)}else if(z.type===Gn.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===Gn.F){if(E=new Oo,E.startX=z.endX,E.startY=(z.startY+z.endY)/2,nt=new dr(mo),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++)jt=z[at],Je.Qe(nt,E,jt[2],jt[3],jt[4],jt[5],jt[6],jt[7],.5,b),nt=jt[6],E=jt[7];xf(a,y,b,x)}xn(b),a.restore(),a.Vc(!1)}}}},te.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)},te.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:Xe.prototype.nk.call(this,a)},te.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)}},te.ga=function(a,y){if(y===void 0&&(y=new xe),a instanceof si){a.Mc()&&Me("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},te.mi=function(a){a===void 0&&(a=new Sn);var y=this.naturalBounds,x=this.oe;y=Sn.allocAt(y.x,y.y,y.width,y.height);var b=this.strokeWidth;return y.Bc(b/2,b/2),b=xe.allocAt(y.x,y.y).transform(x),a.h(b.x,b.y,0,0),b.h(y.right,y.y).transform(x),qi(a,b.x,b.y,0,0),b.h(y.right,y.bottom).transform(x),qi(a,b.x,b.y,0,0),b.h(y.x,y.bottom).transform(x),qi(a,b.x,b.y,0,0),Sn.free(y),xe.free(b),a},te.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!==Gn.j||y||(E+=2);var z=Sn.alloc();if(z.assign(b),z.Bc(E+2,E+2),!z.ca(a))return Sn.free(z),!1;if(b=E+1e-4,x.type===Gn.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:(Sn.free(z),Je.Yb(x.startX,x.startY,x.endX,x.endY,E,a.x,a.y));if(x.type===Gn.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 Sn.free(z),!1;z.Bc(b,b)}return this.stroke!==null&&z.Bc(E,E),a=z.ca(a),Sn.free(z),a}if(x.type===Gn.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 Sn.free(z),!1;nt+=b,E+=b}return this.stroke!==null&&(nt+=b,E+=b),Sn.free(z),0>=nt||0>=E?!1:1>=x*x/(nt*nt)+y*y/(E*E)}if(x.type===Gn.o)return Sn.free(z),this.fill===null?yh(x,a.x,a.y,E):ou(x,a,E,1<this.strokeWidth,y);Me("Unknown Geometry type: "+x.type)},te.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):Me("Unsupported Figure: "+ot)}nt=at.bounds}ot=nt.width,at=nt.height,ht=nt.width;var ft=nt.height;switch(Rs(this,!0)){case Dn:b=x=0;break;case Fn:ht=Math.max(a-z,0),ft=Math.max(y-z,0);break;case ai:ht=Math.max(a-z,0),b=0;break;case wi:x=0,ft=Math.max(y-z,0)}isFinite(E.width)&&(ht=E.width),isFinite(E.height)&&(ft=E.height);var Lt=this.maxSize,jt=this.minSize;switch(x=Math.max(x-z,jt.width),b=Math.max(b-z,jt.height),ht=Math.min(Lt.width,ht),ft=Math.min(Lt.height,ft),ht=isFinite(ht)?Math.max(x,ht):Math.max(ot,x),ft=isFinite(ft)?Math.max(b,ft):Math.max(at,b),x=Ev(this),x){case Dn:break;case Fn:ot=ht,at=ft;break;case ni:x=Math.min(ht/ot,ft/at),isFinite(x)||(x=1),ot*=x,at*=x;break;default:Me(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=ji.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,ft+z),E.w()?(ht=E.width,ft=E.height,ht=Math.min(Lt.width,ht),ft=Math.min(Lt.height,ft),ht=Math.max(jt.width,ht),ft=Math.max(jt.height,ft),this.dc.h(0,0,ht,ft)):this.dc.assign(nt)};function Ev(a){var y=a.geometryStretch;return a.Rd!==null?y===Di?Fn:y:y===Di?Lv[a.figure].defaultStretch:y}te.eh=function(a,y,x,b){fs(this,a,y,x,b)},te.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},te.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,ft=z.m11*nt,Lt=nt*(z.m21*z.dy-z.m22*z.dx),jt=nt*(z.m12*z.dx-z.m11*z.dy);z=a*ot+y*ht+Lt,nt=a*at+y*ft+jt,ot=x*ot+b*ht+Lt,at=x*at+b*ft+jt,Lt=this.ig/2,ht=this.ua,ht===null&&(this.measure(1/0,1/0),ht=this.ua);var Xt=ht.bounds;if(ft=!1,ht.type===Gn.j)if(1.5>=this.strokeWidth)ft=Je.Ve(ht.startX,ht.startY,ht.endX,ht.endY,z,nt,ot,at,E);else{if(ht.startX===ht.endX?(b=Lt,ft=0):(y=(ht.endY-ht.startY)/(ht.endX-ht.startX),ft=Lt/Math.sqrt(1+y*y),b=ft*y),y=ln(),a=new xe,Je.Ve(ht.startX+b,ht.startY+ft,ht.endX+b,ht.endY+ft,z,nt,ot,at,a)&&y.push(a),a=new xe,Je.Ve(ht.startX-b,ht.startY-ft,ht.endX-b,ht.endY-ft,z,nt,ot,at,a)&&y.push(a),a=new xe,Je.Ve(ht.startX+b,ht.startY+ft,ht.startX-b,ht.startY-ft,z,nt,ot,at,a)&&y.push(a),a=new xe,Je.Ve(ht.endX+b,ht.endY+ft,ht.endX-b,ht.endY-ft,z,nt,ot,at,a)&&y.push(a),ot=y.length,ot===0)return xn(y),!1;for(ft=!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===Gn.u)ft=Je.Ff(Xt.x-Lt,Xt.y-Lt,Xt.x+Xt.width+Lt,Xt.y+Xt.height+Lt,z,nt,ot,at,E);else if(ht.type===Gn.F){y=Sn.allocAt(Xt.x,Xt.y,Xt.width,Xt.height).Bc(Lt,Lt);t:if(y.width===0)ft=Je.Ve(y.x,y.y,y.x,y.y+y.height,z,nt,ot,at,E);else if(y.height===0)ft=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,ft=y.y+ht,x=9999,z!==ot&&(x=(nt-at)/(z-ot)),9999>Math.abs(x)){if(at=nt-ft-x*(z-b),0>a*a*x*x+ht*ht-at*at){E.x=NaN,E.y=NaN,ft=!1;break t}Lt=Math.sqrt(a*a*x*x+ht*ht-at*at),ot=(-(a*a*x*at)+a*ht*Lt)/(ht*ht+a*a*x*x)+b,a=(-(a*a*x*at)-a*ht*Lt)/(ht*ht+a*a*x*x)+b,ht=x*(ot-b)+at+ft,at=x*(a-b)+at+ft,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,ft=!1;break t}at=Math.sqrt(ot),ot=ft+at,at=ft-at,Math.abs(ot-nt)<Math.abs(at-nt)?(E.x=z,E.y=ot):(E.x=z,E.y=at)}ft=!0}Sn.free(y)}else if(ht.type===Gn.o){jt=xe.alloc();var qt=ot-z,ie=at-nt,be=qt*qt+ie*ie,ve=z,Te=nt;if(0<be&&Xt.contains(ve,Te)&&(jt.x=ve,jt.y=Te,this.ca(jt)))for(qt!==0&&.5>Math.abs(qt)?(ie*=.5/qt,qt=.5):ie!==0&&.5>Math.abs(ie)&&(qt*=.5/ie,ie=.5),ve-=qt,Te-=ie;Xt.contains(ve,Te);)ve-=qt,Te-=ie;for(E.x=ot,E.y=at,ie=0;ie<ht.figures.count;ie++){var Be=ht.figures.s[ie],ze=Be.isFilled?ve:z,Ve=Be.isFilled?Te:nt,an=Be.segments;Xt=Be.startX,qt=Be.startY;for(var Vn=Xt,$n=qt,_n=0;_n<an.count;_n++){var Hn=an.s[_n],Tn=Hn.type,Ni=Hn.endX,Ei=Hn.endY,gr=!1;switch(Tn){case Io:Vn=Ni,$n=Ei;break;case Br:gr=km(Xt,qt,Ni,Ei,ze,Ve,ot,at,jt);break;case $o:gr=Je.Eo(Xt,qt,Hn.point1X,Hn.point1Y,Hn.point2X,Hn.point2Y,Ni,Ei,ze,Ve,ot,at,.6,jt);break;case fa:gr=Je.Eo(Xt,qt,Xt+2/3*(Hn.point1X-Xt),qt+2/3*(Hn.point1Y-qt),Ni+2/3*(Hn.point1X-Ni),Ei+2/3*(Hn.point1Y-Ei),Ni,Ei,ze,Ve,ot,at,.6,jt);break;case mo:case Ea:Tn=Hn.type===mo?na(Hn,Be):Wa(Hn,Be,Xt,qt);var Nr=Tn.length;if(Nr===0){gr=km(Xt,qt,Hn.type===mo?Hn.centerX:Hn.endX,Hn.type===mo?Hn.centerY:Hn.endY,ze,Ve,ot,at,jt);break}for(Ei=null,Ni=0;Ni<Nr;Ni++){if(Ei=Tn[Ni],Ni===0&&km(Xt,qt,Ei[0],Ei[1],ze,Ve,ot,at,jt)){var Fo=Tm(ze,Ve,jt,be,E);Fo<be&&(be=Fo,ft=!0)}Je.Eo(Ei[0],Ei[1],Ei[2],Ei[3],Ei[4],Ei[5],Ei[6],Ei[7],ze,Ve,ot,at,.6,jt)&&(Fo=Tm(ze,Ve,jt,be,E),Fo<be&&(be=Fo,ft=!0))}Ni=Ei[6],Ei=Ei[7];break;default:Me("Unknown Segment type: "+Tn)}Xt=Ni,qt=Ei,gr&&(gr=Tm(ze,Ve,jt,be,E),gr<be&&(be=gr,ft=!0)),Hn.isClosed&&(Ni=Vn,Ei=$n,km(Xt,qt,Ni,Ei,ze,Ve,ot,at,jt)&&(Hn=Tm(ze,Ve,jt,be,E),Hn<be&&(be=Hn,ft=!0)))}}z=x-a,nt=b-y,ot=Math.sqrt(z*z+nt*nt),ot!==0&&(z/=ot,nt/=ot),E.x-=z*Lt,E.y-=nt*Lt,xe.free(jt)}else Me("Unknown Geometry type: "+ht.type);return ft?(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,ft=(E-nt)*(y-b)-(z-ot)*(a-x);return ft===0?!1:(at.x=((E*ot-z*nt)*(a-x)-(E-nt)*(a*b-y*x))/ft,at.y=((E*ot-z*nt)*(y-b)-(z-ot)*(a*b-y*x))/ft,(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)}te.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=xe.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)))),xe.free(z),E},te.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=xe.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 xe.free(nt),!0;var ot=xe.alloc(),at=xe.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)))),xe.free(nt),Vi.free(x),xe.free(ot),xe.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)}te.tx=function(a,y,x){function b(be,ve){for(var Te=be.length,Be=0;Be<Te;Be+=2)if(ve.zd(be[Be],be[Be+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,xi(a.x,a.y,ot,at)<=E&&xi(a.x,a.y,ht,at)<=E&&xi(a.x,a.y,ot,nt)<=E&&xi(a.x,a.y,ht,nt)<=E)return!0}if(ot=y.startX,at=y.startY,ht=y.endX,nt=y.endY,y.type===Gn.j){if(x=(ot-ht)*(a.x-ht)+(at-nt)*(a.y-nt),Mr(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===Gn.u)return y=!1,x&&(y=Mr(a.x,a.y,ot,at,ot,nt)<=E||Mr(a.x,a.y,ot,at,ht,at)<=E||Mr(a.x,a.y,ht,at,ht,nt)<=E||Mr(a.x,a.y,ot,nt,ht,nt)<=E),y;if(y.type===Gn.F){y=a.x-(ot+ht)/2,z=a.y-(at+nt)/2;var ft=Math.abs(ht-ot)/2,Lt=Math.abs(nt-at)/2;if(ft===0||Lt===0)return Mr(a.x,a.y,ot,at,ht,nt)<=E;if(x){if(a=Je.$y(ft,Lt,y,z),a*a<=E)return!0}else return!(xi(y,z,-ft,0)>=E||xi(y,z,0,-Lt)>=E||xi(y,z,0,Lt)>=E||xi(y,z,ft,0)>=E)}else if(y.type===Gn.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&&Mr(a.x,a.y,z,ot,z,ht)>E&&Mr(a.x,a.y,z,ot,at,ot)>E&&Mr(a.x,a.y,at,ht,z,ht)>E&&Mr(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,ft=z.startY,a.zd(nt,ft)>E)return!1;for(ot=z.segments.s,at=ot.length,ht=0;ht<at;ht++)switch(Lt=ot[ht],Lt.type){case Io:case Br:if(nt=Lt.endX,ft=Lt.endY,a.zd(nt,ft)>E)return!1;break;case $o:var jt=ln();if(Je.Qe(nt,ft,Lt.point1X,Lt.point1Y,Lt.point2X,Lt.point2Y,Lt.endX,Lt.endY,.8,jt),nt=b(jt,a),xn(jt),nt||(nt=Lt.endX,ft=Lt.endY,a.zd(nt,ft)>E))return!1;break;case fa:if(jt=ln(),Je.ep(nt,ft,Lt.point1X,Lt.point1Y,Lt.endX,Lt.endY,.8,jt),nt=b(jt,a),xn(jt),nt||(nt=Lt.endX,ft=Lt.endY,a.zd(nt,ft)>E))return!1;break;case mo:case Ea:jt=Lt.type===mo?na(Lt,z):Wa(Lt,z,nt,ft);var Xt=jt.length;if(Xt===0){if(nt=Lt.type===mo?Lt.centerX:Lt.endX,ft=Lt.type===mo?Lt.centerY:Lt.endY,a.zd(nt,ft)>E)return!1;break}Lt=null;for(var qt=ln(),ie=0;ie<Xt;ie++)if(Lt=jt[ie],qt.length=0,Je.Qe(Lt[0],Lt[1],Lt[2],Lt[3],Lt[4],Lt[5],Lt[6],Lt[7],.8,qt),b(qt,a))return xn(qt),!1;xn(qt),Lt!==null&&(nt=Lt[6],ft=Lt[7]);break;default:Me("Unknown Segment type: "+Lt.type)}}return!0}}}return!1},te.qc=function(){this.ua=null},te.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)))}ji.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&&Me("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=Gn.parse(Je.um[b],!1),Zl[b]=a,x!==b&&(Zl[x]=b),b}}return typeof y=="string"?y:y instanceof Gn?a:null}Fe.Object.defineProperties(ji.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&&jr(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=Gn.parse(a);var y=a.normalize();this.geometry=a,this.position=a=xe.allocAt(-y.x,-y.y),xe.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 xr&&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 xr&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},strokeWidth:{get:function(){return this.ig},set:function(a){var y=this.ig;if(y!==a)if(0<=a){this.ig=a,this.v();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeWidth",y,a)}else fn(a,"value >= 0",ji,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(a){var y=this.strokeCap;y!==a&&(typeof a!="string"||a!=="butt"&&a!=="round"&&a!=="square"?fn(a,'"butt", "round", or "square"',ji,"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"?fn(a,'"miter", "bevel", or "round"',ji,"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)||Me("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()])||Me("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?Me("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?Me("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:Pr},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:Pr},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:Di},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))}}}),ji.prototype.intersectsRect=ji.prototype.Yc,ji.prototype.containedInRect=ji.prototype.fh,ji.prototype.getNearestIntersectionPoint=ji.prototype.rs,ji.prototype.getDocumentBounds=ji.prototype.mi,ji.prototype.getDocumentPoint=ji.prototype.ga;var Zl=new Qn,Lv=new Qn;ji.className="Shape",ji.getFigureGenerators=function(){var a=new Jn,y;for(y in Je.Ze)y!==y.toLowerCase()&&a.add(y,Je.Ze[y]);return a.freeze(),a},ji.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),b=Je.Ze;b[a]=y,b[x]=a},ji.getArrowheadGeometries=function(){var a=new Jn;for(b in Je.um)if(Zl[b]===void 0){var y=Gn.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 Gn&&a.add(x,b)}return a.freeze(),a},ji.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=Gn.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||Me("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=Di,this.gg=this.fg=Pr}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||(js=qr?new Za(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())}te=Ir.prototype,te.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}te.qb=function(a){a.classType===Ir?this.wrap=a:Xe.prototype.qb.call(this,a)},te.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},te.v=function(){Xe.prototype.v.call(this)},te.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 ft=this.oe,Lt=ft.dx-(nt*ft.m21+ft.dx);ft=ft.dy-(nt*ft.m22+ft.dy);var jt=y.scale;switch(8>(Lt*Lt+ft*ft)*jt*jt&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof oa&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,Lt=this.spacingBelow,this.flip){case sr:a.translate(E,0),a.scale(-1,1);break;case Ui:a.translate(0,z),a.scale(1,-1);break;case Lr:a.translate(E,z),a.scale(-1,-1)}if(a.yc(),ft=this.Gc,jt=(y+nt+Lt)*ft,z>jt&&(b=this.verticalAlignment,b=b.y*z-b.y*jt+b.offsetY),ft===1&&this.ze!==null)Lt=this.Cb,Lt>E&&(Lt=E),this.Oj(this.ze,a,0,b+y,E,nt,Lt,x,ot,at,ht);else if(this.Qc!==null&&this.Qb!==null)for(jt=0;jt<ft;jt++){var Xt=this.Qc[jt];Xt>E&&(Xt=E),b+=y,this.Oj(this.Qb[jt],a,0,b,E,nt,Xt,x,ot,at,ht),b+=nt+Lt}switch(this.flip){case sr:a.scale(-1,1),a.translate(-E,0);break;case Ui:a.scale(1,-1),a.translate(0,-z);break;case Lr:a.scale(-1,-1),a.translate(-E,-z)}}},te.Oj=function(a,y,x,b,E,z,nt,ot,at,ht,ft){var Lt=0;if(ot)at==="left"?Lt=0:at==="right"?Lt=E-nt:at==="center"&&(Lt=(E-nt)/2),y.fillRect(x+Lt,b+.25*z,nt,1);else{if(at==="left"?Lt=0:at==="right"?Lt=E:at==="center"&&(Lt=E/2),E=Nm!==null?Nm(this,z):.75*z,y.fillText(a,x+Lt,b+E),a=z/20|0,a===0&&(a=1),at==="right"?Lt-=nt:at==="center"&&(Lt-=nt/2),ht){ot=Om!==null?Om(this,z):.8*z,at=x+Lt,ht=b+ot,E=x+Lt+nt,ot=b+ot;var jt=a;y.beginPath(),y.lineWidth=jt,y.moveTo(at,ht),y.lineTo(E,ot),y.stroke(),y.Se(),y instanceof oa&&y.ad.classList.add("gojs-td")}ft&&(ft=b+z-z/2.2|0,a%2!==0&&(ft+=.5),b=x+Lt,z=ft,x=x+Lt+nt,nt=ft,Lt=a,y.beginPath(),y.lineWidth=Lt,y.moveTo(b,z),y.lineTo(x,nt),y.stroke(),y.Se(),y instanceof oa&&y.ad.classList.add("gojs-td"))}},te.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},te.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:Xe.prototype.nk.call(this,a)},te.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)}},te.Wl=function(a,y,x,b){var E=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;js!==null&&L1!==z&&(L1=js.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,ol(ot)),ot=ht+1}z=nt}else nt=z.indexOf(`
|
|
|
`,0),0<=nt&&(z=z.substr(0,nt)),z=ol(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);ol(ht)>y&&1<ht.length;)ht=ht.substr(0,ht.length-1);ht+=Zg,y=ol(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),yo(this.dc,z,nt),this.Ge(0,0,z,nt),this.svg!==null&&E!==this.Gc&&(this.Uc=!0)},te.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=ol(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=ol(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=ol(ht);for(E&&(y=y.trim()),z+=y,x=Math.max(1,x-at);ol(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=Zg;var ft=ol(z);a.Cb=ft,Gg(a,z,ft),b!==null&&b.h(ft,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);ol(y)>x;){var Lt=1;for(ht=ol(y.substr(0,Lt)),ft=0;ht<=x;)Lt++,ft=ht,ht=ol(y.substr(0,Lt));if(Lt===1){var jt=ht;z=Math.max(z,ht)}else jt=ft,z=Math.max(z,ft);if(Lt--,1>Lt&&(Lt=1),Gg(a,y.substr(0,Lt),jt),at++,y=y.substr(Lt),a.Gc+at>a.maxLines)break}for(ft=wf(a,nt),ht=ol(y+ft);0<ft.length&&ht<=x;)y+=ft,nt=nt.substr(ft.length),ft=wf(a,nt),ht=y+ft,E&&(ht=ht.trim()),ht=ol(ht);if(E&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),ft.length===0?(Lt=ht,z=Math.max(z,ht)):(Lt=ft=ol(y),z=Math.max(z,ft)),Gg(a,y,Lt),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 ol(a){return js===null?8*a.length:js.measureText(a).width}function Kg(a){if(a.df!==null)return a.df;var y=a.Ae;if(js===null){var x=16;return a.df=x}return Ov[y]!==void 0&&5e3>E1?x=Ov[y]:(x=1.3*js.measureText("M").width,Ov[y]=x,E1++),a.df=x}function x1(a){if(js===null)return 6;if(Dm[a]!==void 0&&5e3>Iv)var y=Dm[a];else y=js.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=zn.alloc();Mv(a,z,y,at),E+=at.height,zn.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}Fe.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:Dn},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:ys},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),Nl(this),this.da.Yr=a,Cs(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=zn.alloc();Mv(this,this.ec,999999,a);var y=a.width;zn.free(a),a=w1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),yo(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 xr&&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&&fn(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 qe(Ir,"None",0),P1=new qe(Ir,"WrapFit",1),kv=new qe(Ir,"WrapDesiredSize",2),b1=new qe(Ir,"WrapBreakAll",3),Nv=new qe(Ir,"OverflowClip",0),Im=new qe(Ir,"OverflowEllipsis",1),Vg=new qe(Ir,"FormatTrim",0),C1=new qe(Ir,"FormatNone",0),xx=/[ \u200b\u00ad]/,Ov=new Qn,E1=0,Dm=new Qn,Iv=0,Zg="...",L1="",js=null,Fm=!1;Ir.className="TextBlock";function Dv(){this.nc=!1,this.Hd=null,this.Xf=Dn,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=ys,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 Qn,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||(js=qr?new Za(null).context:null,Fm=!0),js===null)return!0;var y=js.font;if(a===y||a==="10px sans-serif")return!0;js.font="10px sans-serif",js.font=a;var x=js.font;if(x!=="10px sans-serif")return js.font=y,!0;js.font="19px serif";var b=js.font;return js.font=a,x=js.font,js.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 zs(a,y){Xe.call(this),this.Eg=null,this.qo="",this.Xg=cr,this.Nk=Fn,this.Zg=this.Hd=null,this.Mk=ar,this.Xf=Dn,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof a=="string"?this.source=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}var Pf;Qe(zs,Xe),zs.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},zs.prototype.qb=function(a){a===Dn||a===ni||a===er?this.imageStretch=a:Xe.prototype.qb.call(this,a)},zs.prototype.toString=function(){return"Picture("+this.source+")#"+Hi(this)};function bf(a){a===void 0&&(a=""),a!==""?Pf[a]&&(delete Pf[a],Bm--):(Pf=new Qn,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=ln();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)}zs.prototype.hA=function(){if(this.source!==""){bf(this.source);var a=this.source;this.source="",this.source=a}},zs.prototype.redraw=function(){this.N(),this.Uc=!0},zs.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,ft=ot;this.sourceRect.w()&&(z=this.Xg.x,nt=this.Xg.y,at=this.Xg.width,ot=this.Xg.height);var Lt=at,jt=ot,Xt=this.Nk,qt=this.Mk;switch(Xt){case Dn:if(this.sourceRect.w())break;Lt>=b.width&&(z=z+qt.offsetX+(Lt*qt.x-b.width*qt.x)),jt>=b.height&&(nt=nt+qt.offsetY+(jt*qt.y-b.height*qt.y)),at=Math.min(b.width,Lt),ot=Math.min(b.height,jt);break;case Fn:Lt=b.width,jt=b.height;break;case ni:case er:Xt===ni?(Xt=Math.min(b.height/jt,b.width/Lt),Lt*=Xt,jt*=Xt):Xt===er&&(Xt=Math.max(b.height/jt,b.width/Lt),Lt*=Xt,jt*=Xt,Lt>=b.width&&(z=(z+qt.offsetX+(Lt*qt.x-b.width*qt.x)/Lt)*at),jt>=b.height&&(nt=(nt+qt.offsetY+(jt*qt.y-b.height*qt.y)/jt)*ot),at*=1/(Lt/b.width),ot*=1/(jt/b.height),Lt=b.width,jt=b.height)}Xt=this.Df()*y.scale;var ie=Lt*Xt*jt*Xt,be=at*ot/ie,ve=x.__goCache;Xt=null;var Te=wx;if(!E){if(x.sq&&ve!==void 0&&4<ie&&be>Te*Te)for(ve.gi===null&&(T1(ve,4,ht,ft,x),T1(ve,16,ht,ft,x)),E=ve.gi,ht=E.length,ft=0;ft<ht&&E[ft].ratio*E[ft].ratio<be;ft++)Xt=E[ft];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{E=new Za(null).context;try{E.drawImage(this.Eg,0,0)}catch(Be){this.en=!1}try{E.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(Be){this.vl=!0}}if(this.vl)return}}switch(E=Lt<b.width?qt.offsetX+(b.width*qt.x-Lt*qt.x):0,qt=jt<b.height?qt.offsetY+(b.height*qt.y-jt*qt.y):0,this.flip){case sr:a.translate(Math.min(b.width,Lt),0),a.scale(-1,1);break;case Ui:a.translate(0,Math.min(b.height,jt)),a.scale(1,-1);break;case Lr:a.translate(Math.min(b.width,Lt),Math.min(b.height,jt)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&ve!==void 0&&Xt!==null&&Xt.ratio!==1){a.save(),y=Xt.ratio;try{a.drawImage(Xt.source,z/y,nt/y,Math.min(Xt.source.width,at/y),Math.min(Xt.source.height,ot/y),E,qt,Math.min(b.width,Lt),Math.min(b.height,jt)),a instanceof oa&&(this.bt=[z/y,nt/y,Math.min(Xt.source.width,at/y),Math.min(Xt.source.height,ot/y),E,qt,Math.min(b.width,Lt),Math.min(b.height,jt)])}catch(Be){this.en=!1}a.restore()}else try{a.drawImage(x,z,nt,at,ot,E,qt,Math.min(b.width,Lt),Math.min(b.height,jt)),a instanceof oa&&(this.bt=[z,nt,at,ot,E,qt,Math.min(b.width,Lt),Math.min(b.height,jt)])}catch(Be){this.en=!1}switch(this.flip){case sr:a.scale(-1,1),a.translate(-Math.min(b.width,Lt),0);break;case Ui:a.scale(1,-1),a.translate(0,-Math.min(b.height,jt));break;case Lr:a.scale(-1,-1),a.translate(-Math.min(b.width,Lt),-Math.min(b.height,jt))}}}}},zs.prototype.Wl=function(a,y,x,b){var E=this.desiredSize,z=Rs(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===Fn||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===Fn||z===wi?(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)),yo(this.dc,a,y),this.Ge(0,0,a,y)},zs.prototype.eh=function(a,y,x,b){fs(this,a,y,x,b)},Fe.Object.defineProperties(zs.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||Me("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 Ln),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=mn("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}}}),zs.prototype.redraw=zs.prototype.redraw,zs.prototype.reloadSource=zs.prototype.hA;var Bm=0,wx=4;zs.className="Picture",Pf=new Qn,zs.clearCache=bf;function M1(){this.gi=null}function T1(a,y,x,b,E){a.gi===null&&(a.gi=[]);var z=new Za(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 Gn,this.mc=null}Cf.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new Gn,this.mc=null};function Ef(a,y,x,b,E,z){a.mc=new Oo,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 dr(Io);b.endX=a,b.endY=y,x&&b.close(),this.mc.segments.add(b)},Cf.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var b=new dr(Br);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 dr($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 dr(fa);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 dr(mo);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 dr(Ea,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 Gn(Gn.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 Gn(Gn.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 Gn().add(new Oo(a,0,!0).add(new dr(Br,y-a,0)).add(new dr($o,y,a,y-z,0,y,z)).add(new dr(Br,y,x-a)).add(new dr($o,y-a,x,y,x-z,y-z,x)).add(new dr(Br,a,x)).add(new dr($o,0,x-a,z,x,0,x-z)).add(new dr(Br,0,a)).add(new dr($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 Gn(Gn.F),b.endX=y,b.endY=x,b.spot1=bl,b.spot2=Ha,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 Gn(Gn.F),b.endX=y,b.endY=x,b.spot1=bl,b.spot2=Ha,b.defaultStretch=ni,Je.Nf<Je.vm&&(Je.Mf[a]=b,Je.Nf++)),b}),us("TriangleRight",function(a,y,x){return new Gn().add(new Oo(0,0).add(new dr(Br,y,.5*x)).add(new dr(Br,0,x).close())).pm(0,.25,.5,.75)}),us("TriangleDown",function(a,y,x){return new Gn().add(new Oo(0,0).add(new dr(Br,y,0)).add(new dr(Br,.5*y,x).close())).pm(.25,0,.75,.5)}),us("TriangleLeft",function(a,y,x){return new Gn().add(new Oo(y,x).add(new dr(Br,0,.5*x)).add(new dr(Br,y,0).close())).pm(.5,.25,1,.75)}),us("TriangleUp",function(a,y,x){return new Gn().add(new Oo(y,x).add(new dr(Br,0,x)).add(new dr(Br,.5*y,0).close())).pm(.25,.5,.75,1)}),us("Triangle","TriangleUp"),us("Diamond",function(a,y,x){return new Gn().add(new Oo(.5*y,0).add(new dr(Br,0,.5*x)).add(new dr(Br,.5*y,x)).add(new dr(Br,y,.5*x).close())).pm(.25,.25,.75,.75)}),us("LineH",function(a,y,x){return a=new Gn(Gn.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 Gn(Gn.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 Gn().add(new Oo(0,x/2,!1).add(new dr(Br,y,x/2)).add(new dr(Io,y/2,0)).add(new dr(Br,y/2,x)))}),us("XLine",function(a,y,x){return new Gn().add(new Oo(0,x,!1).add(new dr(Br,y,0)).add(new dr(Io,0,0)).add(new dr(Br,y,x)))}),us("LineRight",function(a,y,x){return new Gn().add(new Oo(.25*y,0,!1).add(new dr(Br,.75*y,.5*x)).add(new dr(Br,.25*y,x)))}),us("LineDown",function(a,y,x){return new Gn().add(new Oo(0,.25*x,!1).add(new dr(Br,.5*y,.75*x)).add(new dr(Br,y,.25*x)))}),us("LineLeft",function(a,y,x){return new Gn().add(new Oo(.75*y,0,!1).add(new dr(Br,.25*y,.5*x)).add(new dr(Br,.75*y,x)))}),us("LineUp",function(a,y,x){return new Gn().add(new Oo(0,.75*x,!1).add(new dr(Br,.5*y,.25*x)).add(new dr(Br,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=Wo,this.ir=null,this.jr="",this.lr=Pr,this.Gq="",this.Hq=ko,this.Pq=Ar,this.Kq=zi,this.Up=null,this.Cq=127,this.zr=ir,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 ci(a,y){a===void 0||a instanceof Lo||typeof a=="string"?Bn.call(this,a):(Bn.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 xe(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new Sn,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}Qe(ci,Bn),ci.prototype.cloneProtected=function(a){Bn.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},te=ci.prototype,te.Af=function(a){Bn.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},te.toString=function(){var a=yn(this.constructor)+"#"+Hi(this);return this.data!==null&&(a+="("+Mn(this.data)+")"),a};function Hs(a){a.P===null?a.P=new Fv:a.P.nc&&(a.P=a.P.copy())}te.th=function(){Bn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},te.gk=function(a,y,x,b,E,z,nt){var ot=this.diagram;ot!==null&&(a===lo&&y==="elements"?E instanceof Bn?Mc(E,function(at){ly(ot.partManager,at),xc(ot,at)}):Dh(ot,E):a===Eo&&y==="elements"&&(E instanceof Bn?Mc(E,function(at){uy(ot.partManager,at,ot)}):Eg(ot,E)),ot.cb(a,y,x,b,E,z,nt))},te.La=function(a){if(Bn.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 Bn&&Mc(E,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},ci.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},ci.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},ci.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 Jn),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)))}}},ci.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)}},ci.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=ln();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)}},ci.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 Ii?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof ur))break t;Xa(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=Bn.Link),x.adornedObject=y)}if(x!==null){x.type===Bn.Link&&x.v(),this.bh("Selection",x);break t}}this.Jf("Selection")}for(Cx(this,a),y=this.adornments;y.next();)y.value.La()}},ci.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=Sn.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(b,x),Sn.free(b),jv(a,!1)}}ci.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)},ci.prototype.no=function(a,y,x,b,E){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=ar;this.locationSpot.sb()&&(z=this.locationSpot);var nt=xe.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),xe.free(nt)}},ci.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},ci.prototype.moveTo=function(a,y,x){a=xe.allocAt(a,y),this.move(a,x),xe.free(a)},ci.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())},ci.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())},ci.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new Jn),y.I(a)!==null)return y.I(a);var x=Bn.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 xe),x=x.Mc()?ar: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}ci.prototype.mi=function(a){return a===void 0&&(a=new Sn),a.assign(this.actualBounds)},ci.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function I1(a){var y=xe.alloc(),x=a.locationObject,b=x.naturalBounds,E=x instanceof ji?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}ci.prototype.arrange=function(){if(Es(this)===!1)O1(this);else{Gl(this,!1);var a=this.Ib,y=Sn.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),Sn.free(y),jv(this,!1)}},te=ci.prototype,te.Xl=function(a,y){var x=this.diagram;if(x!==null){var b=!1;if(x.Zi===!1&&a.w()){var E=Sn.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),Sn.free(E)}!(this.G&65536)&&a.D(y)||j1(this,b,x),x.N(),!a.w()&&!y.w()||mr(a,y)||(this instanceof Zn&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},te.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 xe(b.x+(a.x-y),b.y+(a.y-x)),this.g("location",b,this.ke.copy())),jh(this)===!1&&Es(this)===!1&&(zm(this),O1(this)),!0};function D1(a,y,x,b,E){y===null||a instanceof ur||(y=y.animationManager,y.zb&&_d(y,a,new xe(b,E),x))}te.mm=function(a,y,x){var b=this.ke,E=this.pa;if(x){if(b.x===a&&b.y===y)return;jh(this)||Es(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)},te.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,xe.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 ur||_d(x,a,new xe(z,nt),y),b||y.x===z&&y.y===nt||a.g("position",new xe(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 Zn&&Wu(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var b=x.viewportBounds;b.w()?zh(a)?(zr(y,b)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(b)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}te.si=function(){return!0},te.Zc=function(){return!0},te.ph=function(){return!1},te.Dd=function(){return!0};function Rv(a,y,x,b){y.constructor===a.constructor||W1||(W1=!0,In('Should not change the class of the Part when changing category from "'+x+'" to "'+b+'"'),In(" Old class: "+yn(a.constructor)+", new class: "+yn(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 Zn&&(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 Zn&&(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)}ci.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},ci.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},ci.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},ci.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},ci.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},ci.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},ci.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},ci.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},ci.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}te=ci.prototype,te.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}te.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},te.N=function(){var a=this.diagram;a!==null&&!Es(this)&&!jh(this)&&this.isVisible()&&this.Ib.w()&&a.N(Nc(this,this.Ib))},te.v=function(){Bn.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof Zn&&this.labeledLink!==null&&Cs(this.labeledLink),a.$b(!0))},te.Vo=function(a){a||(a=this.Ah,a!==null&&Vv(a,this))},te.Wo=function(a){a||(a=this.Ah,a!==null&&Zv(a,this))},te.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},te.oz=function(){return Hv(this,this)};function Hv(a,y){var x=y.containingGroup;return x!==null?1+Hv(a,x):y instanceof Zn&&(y=y.labeledLink,y!==null)?Hv(a,y):0}te.sz=function(){return z1(this,this)};function z1(a,y){var x=y.containingGroup;return x!==null||y instanceof Zn&&(x=y.labeledLink,x!==null)?z1(a,x):y}te.Td=function(a){return a instanceof Ii?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 Zn&&(y=y.labeledLink,y!==null)?Wv(a,y,x):!1:!0}te.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof Ii&&Hm(y,!0),y instanceof Zn){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 Zn&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Ii&&Hm(y,!1),y instanceof Zn&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},ci.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof Zn&&this.isLinkLabel)},ci.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 Zn&&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 ur)){if(a.add(y),y instanceof Zn){if(x&&y instanceof Ii)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 Wn)for(y=y.labelNodes;y.next();)Hh(a,y.value,x,b,E,z)}}Fe.Object.defineProperties(ci.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?ki:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var a=this.Ig;return a==null?null:a.diagram}},layerName:{get:function(){return this.Jg},set:function(a){var y=this.Jg;if(y!==a){var x=this.diagram;if((x===null||x.Qj(a)!==null&&!x.partManager.addsToTemporaryLayer)&&(this.Jg=a,x!==null&&x.Ya(),this.g("layerName",y,a),y=this.layer,y!==null&&y.name!==a&&(x=y.diagram,x!==null&&(a=x.Qj(a),a!==null&&a!==y)))){var b=y.pc(-1,this,!0);if(0<=b&&x.cb(Eo,"parts",y,this,null,b,!0),b=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=b&&x.cb(lo,"parts",a,null,this,!0,b),b=this.layerChanged,b!==null){var E=x.aa;x.aa=!0,b(this,y,a),x.aa=E}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(Hs(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 ur?this.type!==Bn.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:Ar},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),Hs(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:zi},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),Hs(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&&(Hs(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:ko},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),Hs(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,Es(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 ur)){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 ur?this instanceof ur&&(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&&(Xa(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&&(Xa(x),x=x.copy(),x===null||x instanceof Wn||(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&&(Hs(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&&(Hs(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&&(Hs(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 Wn?(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&&(Hs(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&&(Hs(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&&(Hs(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:Wo},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),Hs(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&&(Hs(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&&(Hs(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:Pr},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),Hs(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&&Me("Cannot make a Group a member of itself: "+this.toString()),Me("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 Ii&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Vv(a,this):this instanceof Ii&&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 Ii){for(x=new Ln,Hh(x,this,!0,0,!0),x=x.iterator;x.next();)if(b=x.value,b instanceof Zn)for(b=b.linksConnected;b.next();)Lf(b.value)}if(this instanceof Zn){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 Me("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&&(Hs(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Zn&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(Hs(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&&(Hs(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:ir},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),Hs(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&&(Hs(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&&(Hs(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),ci.prototype.invalidateLayout=ci.prototype.C,ci.prototype.findCommonContainingGroup=ci.prototype.px,ci.prototype.isMemberOf=ci.prototype.Td,ci.prototype.findTopLevelPart=ci.prototype.sz,ci.prototype.findSubGraphLevel=ci.prototype.oz,ci.prototype.ensureBounds=ci.prototype.Va,ci.prototype.getDocumentBounds=ci.prototype.mi,ci.prototype.findObject=ci.prototype.fb,ci.prototype.moveTo=ci.prototype.moveTo,ci.prototype.invalidateAdornments=ci.prototype.Wb,ci.prototype.clearAdornments=ci.prototype.Ej,ci.prototype.removeAdornment=ci.prototype.Jf,ci.prototype.addAdornment=ci.prototype.bh,ci.prototype.findAdornment=ci.prototype.Pj,ci.prototype.updateTargetBindings=ci.prototype.La;var W1=!1;ci.className="Part",ci.LayoutNone=0,ci.LayoutAdded=1,ci.LayoutRemoved=2,ci.LayoutShown=4,ci.LayoutHidden=8,ci.LayoutNodeSized=16,ci.LayoutGroupLayout=32,ci.LayoutNodeReplaced=64,ci.LayoutStandard=127,ci.LayoutAll=16777215;function ur(a,y){a===void 0||a instanceof Lo||typeof a=="string"?ci.call(this,a):(ci.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(ur,ci),ur.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},ur.prototype.updateRelationshipsFromData=function(){},ur.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof Wn&&y instanceof ji){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 ji&&(E.ua=a)}}},ur.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Es(a))},ur.prototype.Zc=function(){return!1},ur.prototype.gk=function(a,y,x,b,E,z,nt){if(a===lo&&y==="elements"){if(E instanceof As)this.$a===null&&(this.$a=E);else if(E instanceof Bn){var ot=E.Nl(function(at){return at instanceof As});ot instanceof As&&this.$a===null&&(this.$a=ot)}}else a===Eo&&y==="elements"&&this.$a!==null&&(b===this.$a?this.$a=null:b instanceof Bn&&this.$a.rg(b)&&(this.$a=null));ci.prototype.gk.call(this,a,y,x,b,E,z,nt)},ur.prototype.updateAdornments=function(){},ur.prototype.Lj=function(){},Fe.Object.defineProperties(ur.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}}}),ur.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 Zn(a,y){a===void 0||a instanceof Lo||typeof a=="string"?ci.call(this,a):(ci.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new Cn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}Qe(Zn,ci),Zn.prototype.cloneProtected=function(a){ci.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},te=Zn.prototype,te.Af=function(a){ci.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())}te.th=function(){ci.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function U1(a,y){y!==null&&(a.af===null&&(a.af=new Ln),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}te.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=G1(this,a,y,x),a!==null&&a.Sl()},te.gk=function(a,y,x,b,E,z,nt){a===lo&&y==="elements"?this.wc=null:a===Eo&&y==="elements"&&(this.wc=null),ci.prototype.gk.call(this,a,y,x,b,E,z,nt)},te.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)}}te.si=function(){return!0},Zn.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},Zn.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},Zn.prototype.isVisible=function(){if(!ci.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},Zn.prototype.Zb=function(a){ci.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)}},Zn.prototype.qx=function(){var a=new Ln,y=new Ln;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)})}}Zn.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new oi(this.jb),x=this;return y.predicate=function(b){return b.fromNode===x&&b.fromPortId===a||b.toNode===x&&b.toPortId===a},y},te=Zn.prototype,te.Mo=function(a){a===void 0&&(a=null);var y=new oi(this.jb),x=this;return y.predicate=function(b){return b.fromNode!==x?!1:a===null?!0:b.fromPortId===a},y},te.Sd=function(a){a===void 0&&(a=null);var y=new oi(this.jb),x=this;return y.predicate=function(b){return b.toNode!==x?!1:a===null?!0:b.toPortId===a},y},te.Mu=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode===this?(a===null||E.fromPortId===a)&&(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Ln,y.add(x),y.add(E)):x=E):E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Ln,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new gi(x):ki},te.Po=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.fromNode!==this||a!==null&&E.fromPortId!==a||(E=E.toNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Ln,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new gi(x):ki},te.Oo=function(a){a===void 0&&(a=null);for(var y=null,x=null,b=this.jb.iterator;b.next();){var E=b.value;E.toNode!==this||a!==null&&E.toPortId!==a||(E=E.fromNode,y!==null?y.add(E):x!==null&&x!==E?(y=new Ln,y.add(x),y.add(E)):x=E)}return y!==null?y.iterator:x!==null?new gi(x):ki},te.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new oi(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},te.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var b=new oi(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}}}Zn.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},te=Zn.prototype,te.Vo=function(a){ci.prototype.Vo.call(this,a),a||(Xg(this),a=this.Yk,a!==null&&tS(a,this))},te.Wo=function(a){ci.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},te.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,ci.prototype.Lj.call(this)},te.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 Jn: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=ln()),x.push(b);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);xn(x)}}}te.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},te.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}},te.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},te.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},te.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof Zn)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},te.vz=function(){function a(x,b){b.add(x);var E=x.kh();E!==null&&(b.add(E),x=x.pg(),x!==null&&a(x,b))}var y=new Ln;return a(this,y),y},te.uz=function(){return Y1(this,this)};function Y1(a,y){return y=y.pg(),y===null?0:1+Y1(a,y)}te.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new oi(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},te.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 Cn,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 Cn,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new gi(x):ki},te.wz=function(a){a===void 0&&(a=1/0);var y=new Ln;return Hh(y,this,!1,a,!0),y},Zn.prototype.collapseTree=function(a){a===void 0&&(a=1),1>a&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Ln;x.add(this),_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 ft=y.contains(ht);if(ft||y.add(ht),nt){var Lt=x?ht.Oo():ht.Po();at.uv=a,Lt.all(function(jt){return function(Xt){return Xt===jt.uv||!Xt.isTreeExpanded}}(at))&&b.Aj(ht,E),ht.oh(),ht.Zb(!1)}ht.isTreeExpanded&&(ht.wasTreeExpanded=ht.isTreeExpanded,ft||J1(ht,y,x,b,E,z))}at={uv:at.uv}}a.isTreeExpanded=!1}Zn.prototype.expandTree=function(a){a===void 0&&(a=2),2>a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new Ln;x.add(this),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 ft=at.value;if(ft.isTreeLink&&(ot||ft.fd||ft.bb(),ft=ft.To(a),ft!==null&&ft!==a&&!y.contains(ft))){if(y.add(ft),!ot){ft.Zb(!0),ft.oh();var Lt=x?ft.Oo():ft.Po();ht.vv=a,Lt.all(function(jt){return function(Xt){return Xt===jt.vv||!Xt.isTreeExpanded}}(ht))&&E.Cj(ft,z)}(2<b||ft.wasTreeExpanded)&&(ft.wasTreeExpanded=!1,Q1(ft,y,x,b-1,E,z,nt))}ht={vv:ht.vv}}a.isTreeExpanded=!0}Fe.Object.defineProperties(Zn.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 hi(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),Cs(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))}}}),Zn.prototype.expandTree=Zn.prototype.expandTree,Zn.prototype.collapseTree=Zn.prototype.collapseTree,Zn.prototype.findTreeParts=Zn.prototype.wz,Zn.prototype.findTreeChildrenNodes=Zn.prototype.Ou,Zn.prototype.findTreeChildrenLinks=Zn.prototype.Qo,Zn.prototype.findTreeLevel=Zn.prototype.uz,Zn.prototype.findTreeParentChain=Zn.prototype.vz,Zn.prototype.findTreeParentNode=Zn.prototype.pg,Zn.prototype.findTreeParentLink=Zn.prototype.kh,Zn.prototype.findCommonTreeParent=Zn.prototype.gz,Zn.prototype.findTreeRoot=Zn.prototype.xz,Zn.prototype.isInTreeOf=Zn.prototype.Nz,Zn.prototype.findPort=Zn.prototype.ns,Zn.prototype.findLinksTo=Zn.prototype.kz,Zn.prototype.findLinksBetween=Zn.prototype.jz,Zn.prototype.findNodesInto=Zn.prototype.Oo,Zn.prototype.findNodesOutOf=Zn.prototype.Po,Zn.prototype.findNodesConnected=Zn.prototype.Mu,Zn.prototype.findLinksInto=Zn.prototype.Sd,Zn.prototype.findLinksOutOf=Zn.prototype.Mo,Zn.prototype.findExternalTreeLinksConnected=Zn.prototype.qx,Zn.prototype.invalidateConnectedLinks=Zn.prototype.Bd,Zn.prototype.invalidateLinkBundle=Zn.prototype.Lz;var Ex=new qe(Zn,"SpreadingNone",10),Gm=new qe(Zn,"SpreadingEvenly",11),Kv=new qe(Zn,"SpreadingPacked",12);Zn.className="Node",Zn.SpreadingNone=Ex,Zn.SpreadingEvenly=Gm,Zn.SpreadingPacked=Kv;function Ii(a,y){a===void 0||a instanceof Lo||typeof a=="string"?Zn.call(this,a):(Zn.call(this),a&&(y=a)),this.U|=4608,this.Gn=new Ln,this.$a=null,this.Sc=new Ur,this.Sc.group=this,this.gl=new Ln,this.tb=this.$p=null,y&&Object.assign(this,y)}Qe(Ii,Zn),Ii.prototype.cloneProtected=function(a){Zn.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof As});y instanceof As?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())},te=Ii.prototype,te.Af=function(a){Zn.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 Zn)x.Bd(y);else if(x instanceof Wn)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},te.gk=function(a,y,x,b,E,z,nt){if(a===lo&&y==="elements"){if(E instanceof As)this.$a===null?this.$a=E:this.$a!==E&&Me("Cannot insert a second Placeholder into the visual tree of a Group.");else if(E instanceof Bn){var ot=E.Nl(function(at){return at instanceof As});ot instanceof As&&(this.$a===null?this.$a=ot:this.$a!==ot&&Me("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 Bn&&this.$a.rg(b)&&(this.$a=null));Zn.prototype.gk.call(this,a,y,x,b,E,z,nt)},te.Xl=function(a,y){Zn.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==Bn.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof Bn&&(a=a.Pb()),this.tb===null&&(this.tb=new Sn),a.mi(this.tb),a instanceof ji&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},te.eh=function(a,y,x,b){this.nf=this.$a,Zn.prototype.eh.call(this,a,y,x,b)},te.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof Wn||y.Va()}),Zn.prototype.Va.call(this)},te.si=function(){if(!Zn.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof Zn){if(y.isVisible()&&Es(y))return!1}else if(y instanceof Wn&&y.isVisible()&&Es(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Vv(a,y){if(a.Gn.add(y)){y instanceof Ii&&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 Wn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function Zv(a,y){if(a.Gn.remove(y)){y instanceof Ii&&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 Wn&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}te.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)}Zn.prototype.Lj.call(this)},Ii.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=pn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Ii.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var b=!0;for(a=pn(a).iterator;a.next();){var E=a.value;!y||x.isValidMember(this,E)?E.containingGroup=this:b=!1}return b},Ii.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))},te=Ii.prototype,te.Bd=function(a){var y=(this.U&65536)!==0;if(Zn.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()))}}},te.Lu=function(){var a=this.diagram!==null&&this.diagram.Pw;if(a&&this.$p!==null)return this.$p.iterator;var y=this.Rj();y.add(this);for(var x=new Ln,b=y.iterator;b.next();){var E=b.value;if(E instanceof Zn)for(E=E.linksConnected;E.next();){var z=E.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},te.iz=function(){var a=this.Rj();a.add(this);for(var y=new Ln,x=a.iterator;x.next();){var b=x.value;if(b instanceof Zn)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},te.hz=function(){function a(x,b){x!==null&&(b.add(x),a(x.containingGroup,b))}var y=new Ln;return a(this,y),y},te.Rj=function(){var a=new Ln;return Hh(a,this,!0,0,!0),a.remove(this),a},te.Zb=function(a){Zn.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},Ii.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 Ii&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,q1(z,y,x,b)),z instanceof Zn)z.Bd(y),x.Aj(z,b);else if(z instanceof Wn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}Ii.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 Ii&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,$1(z,y,x,b)),z instanceof Zn)z.Bd(y),x.Cj(z,b);else if(z instanceof Wn)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}Ii.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=xe.alloc(),Zn.prototype.move.call(this,a,y),a=new Ln,y=this.Rj().iterator;y.next();)E=y.value,E instanceof Wn&&(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 Zn&&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 Wn&&(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());xe.free(z)}},Fe.Object.defineProperties(Ii.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&&Me("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)}}}),Ii.prototype.expandSubGraph=Ii.prototype.expandSubGraph,Ii.prototype.collapseSubGraph=Ii.prototype.collapseSubGraph,Ii.prototype.findSubGraphParts=Ii.prototype.Rj,Ii.prototype.findContainingGroupChain=Ii.prototype.hz,Ii.prototype.findExternalNodesConnected=Ii.prototype.iz,Ii.prototype.findExternalLinksConnected=Ii.prototype.Lu,Ii.prototype.ensureBounds=Ii.prototype.Va,Ii.className="Group";function As(a){Xe.call(this),this.yb=os,this.ko=new Sn(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}Qe(As,Xe),As.prototype.cloneProtected=function(a){Xe.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},As.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return Ji(0,0,y.width,y.height,a.x,a.y)},As.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Ii||a instanceof ur)||Me("Placeholder is not inside a Group or Adornment."),a instanceof Ii){var y=this.computeBorder(this.ko),x=this.minSize,b=this.dc;for(yo(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=xe.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),xe.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 ji&&(nt=z.strokeWidth);var ot=z.Df(),at=z.naturalBounds,ht=(at.width+nt)*ot;nt=(at.height+nt)*ot,a.type!==Bn.Link&&(ot=z.ga(a.category==="Selection"?ko:a.locationSpot,xe.alloc()),a.location=ot,xe.free(ot)),isNaN(ht)||isNaN(nt)?(a=z.ga(ko,xe.alloc()),ht=Sn.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)),yo(y,ht.width+b||0,ht.height+E||0),this.Ge(-x.left,-x.top,y.width,y.height),xe.free(a),Sn.free(ht)):(yo(y,ht+b||0,nt+E||0),this.Ge(-x.left,-x.top,y.width,y.height))}},As.prototype.eh=function(a,y,x,b){this.actualBounds.h(a,y,x,b)},As.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,b=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof Ii&&!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=Sn.alloc(),E=this.computeMemberBounds(x);var z=this.yb;return y instanceof Ii&&!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)),Sn.free(x),b&&y instanceof Ii&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},As.prototype.computeMemberBounds=function(a){if(!(this.part instanceof Ii))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 Wn&&(!y.computesBoundsIncludingLinks||va(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},Fe.Object.defineProperties(As.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new hi(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),As.className="Placeholder";function Wn(a){ci.call(this,Bn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=Ms,this.Om=0,this.Qm=Ms,this.Rm=NaN,this.qj=Qv,this.po=.5,this.wd=null,this.Nb=new Cn().freeze(),this.Tg=this.Mg=null,this.ml=new Sn,this.ua=new Gn,this.u=this.o=this.Sf=this.Wf=null,this.su=new xe,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}Qe(Wn,ci),Wn.prototype.cloneProtected=function(a){ci.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())},te=Wn.prototype,te.Af=function(a){ci.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)},te.qb=function(a){a.classType===Wn?(a.value&2)===2?this.routing=a:a===Sa||a===Qu||a===Mf?this.curve=a:a===Jg||a===_m||a===Jm?this.adjusting=a:a!==Qv&&a!==Ms&&Me("Unknown Link enum value for a Link property: "+a):ci.prototype.qb.call(this,a)},te.Xc=function(){this.ba===null&&(this.ba=new Bg)},te.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Es(a)||jh(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Es(a)||jh(a)))},te.zv=function(){return!1},te.Av=function(){},te.Zc=function(){return!1},Wn.prototype.computeAngle=function(a,y,x){return Wn.computeAngle(y,x)},Wn.computeAngle=function(a,y){switch(a){default:case Ms: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}te=Wn.prototype,te.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&ci.prototype.oh.call(this)},te.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},te.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function tS(a,y){a.wd===null&&(a.wd=new Ln),a.wd.add(y),a.v()}te.Vo=function(a){if(ci.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)}},te.Wo=function(a){if(ci.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)}},te.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))},Wn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},Wn.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?ci.prototype.move.call(this,a,!1):(a=xe.allocAt(x.x+b,x.y+E),ci.prototype.move.call(this,a,!1),xe.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)},Wn.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},Wn.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},Wn.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(Oi),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),b=this.i(1);return a.h((x.x+b.x)/2,(x.y+b.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===Sa))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()===Sa){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},Wn.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()===Sa))return this.ua.wx(.5);if(this.computeCurve()===Sa&&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)},te=Wn.prototype,te.i=function(a){return this.Nb.s[a]},te.dd=function(a,y){this.Nb.cd(a,y)},te.L=function(a,y,x){this.Nb.cd(a,new xe(y,x))},te.Kz=function(a,y){this.Nb.Gb(a,y)},te.m=function(a,y,x){this.Nb.Gb(a,new xe(y,x))},te.ne=function(a){this.Nb.add(a)},te.yf=function(a,y){this.Nb.add(new xe(a,y))},te.pv=function(a){this.Nb.mb(a)},te.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 Cn,z=a.Nb.iterator;z.next();){var nt=z.value;E.add(new xe(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),Cs(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)}}te.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},te.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,ft=0;ft<ht;ft++){var Lt=at[ft];nt=Math.min(Lt.x,nt),ot=Math.min(Lt.y,ot),Lt.freeze()}if(y.freeze(),ht===z){for(z=0;z<ht;z++)if(ft=E[z],Lt=at[z],ft.x-x!==Lt.x-nt||ft.y-b!==Lt.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)}},te.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))}te.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())}},te.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()}}},Wn.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(Sd||(Sd=new Zn,Sd.desiredSize=hr,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 Zn,xd.desiredSize=hr,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,ft=this.isOrthogonal,Lt=this.curve===Sa;this.Wf=ht&&!ft?Lt=!0:!1;var jt=this.computeAdjusting()===Ms||ht;if(!ft&&!ht&&ot&&at){if(ot=!1,!jt&&3<=z&&(jt=this.getLinkPoint(a,y,nt,!0,!1,b,E),at=this.getLinkPoint(b,E,x,!1,!1,a,y),ot=this.adjustPoints(0,jt,z-1,at))&&(jt=this.getLinkPoint(a,y,nt,!0,!1,b,E),at=this.getLinkPoint(b,E,x,!1,!1,a,y),this.adjustPoints(0,jt,z-1,at)),!ot)if(this.Fj(),Lt){z=this.getLinkPoint(a,y,nt,!0,!1,b,E),jt=this.getLinkPoint(b,E,x,!1,!1,a,y),ot=jt.x-z.x,at=jt.y-z.y,ht=this.computeCurviness(),Lt=ft=0;var Xt=z.x+ot/3,qt=z.y+at/3,ie=Xt,be=qt;Je.B(at,0)?be=0<ot?be-ht:be+ht:(ft=-ot/at,Lt=Math.sqrt(ht*ht/(ft*ft+1)),0>ht&&(Lt=-Lt),ie=(0>at?-1:1)*Lt+Xt,be=ft*(ie-Xt)+qt),Xt=z.x+2*ot/3,qt=z.y+2*at/3;var ve=Xt,Te=qt;Je.B(at,0)?Te=0<ot?Te-ht:Te+ht:(ve=(0>at?-1:1)*Lt+Xt,Te=ft*(ve-Xt)+qt),this.Fj(),this.ne(z),this.yf(ie,be),this.yf(ve,Te),this.ne(jt),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,jt=E,b=this.getLinkPoint(a,y,nt,!0,!1,z,jt),E=this.getLinkPoint(z,jt,x,!1,!1,a,y),this.hasCurviness()?(jt=E.x-b.x,x=E.y-b.y,nt=this.computeCurviness(),a=b.x+jt/2,y=b.y+x/2,z=a,ot=y,Je.B(x,0)?ot=0<jt?ot-nt:ot+nt:(jt=-jt/x,z=Math.sqrt(nt*nt/(jt*jt+1)),0>nt&&(z=-z),z=(0>x?-1:1)*z+a,ot=jt*(z-a)+y),this.ne(b),this.yf(z,ot),this.ne(E)):(this.ne(b),this.ne(E),ot=Sn.alloc(),y.mi(ot),at=ot.ca(E),jt.mi(ot),ht=ot.ca(b),(at||ht)&&(nt=y.ga(Zm(nt),new xe),this.dd(0,this.getLinkPointFromPoint(a,y,nt,E,!0,nt)),x=jt.ga(Zm(x),new xe),this.dd(1,this.getLinkPointFromPoint(z,jt,x,b,!1,x))),Sn.free(ot))}else{Lt=this.isAvoiding,jt&&(ft&&Lt||ht)&&this.Fj();var Be=ht?this.computeCurviness():0;Lt=this.getLinkPoint(a,y,nt,!0,ft,b,E),Xt=ie=qt=0,(ft||!ot||ht)&&(be=this.computeEndSegmentLength(a,y,nt,!0),Xt=this.getLinkDirection(a,y,Lt,nt,!0,ft,b,E),ht&&(ot||nt.D(x)||!ft&&nt.x+x.x===1&&nt.y+x.y===1)&&(Xt-=ft?90:30,0>Be&&(Xt-=180)),0>Xt?Xt+=360:360<=Xt&&(Xt-=360),ht&&(be+=Math.abs(Be)*(ft?1:2)),Xt===0?qt=be:Xt===90?ie=be:Xt===180?qt=-be:Xt===270?ie=-be:(qt=be*Math.cos(Xt*Math.PI/180),ie=be*Math.sin(Xt*Math.PI/180)),nt.Mc()&&ht&&(be=y.ga(ar,xe.alloc()),ve=xe.allocAt(be.x+1e3*qt,be.y+1e3*ie),this.getLinkPointFromPoint(a,y,be,ve,!0,Lt),xe.free(be),xe.free(ve))),be=this.getLinkPoint(b,E,x,!1,ft,a,y);var ze=Te=ve=0;if(ft||!at||ht){var Ve=this.computeEndSegmentLength(b,E,x,!1);ze=this.getLinkDirection(b,E,be,x,!1,ft,a,y),ht&&(at||nt.D(x)||!ft&&nt.x+x.x===1&&nt.y+x.y===1)&&(ze+=ft?0:30,0>Be&&(ze+=180)),0>ze?ze+=360:360<=ze&&(ze-=360),ht&&(Ve+=Math.abs(Be)*(ft?1:2)),ze===0?ve=Ve:ze===90?Te=Ve:ze===180?ve=-Ve:ze===270?Te=-Ve:(ve=Ve*Math.cos(ze*Math.PI/180),Te=Ve*Math.sin(ze*Math.PI/180)),x.Mc()&&ht&&(x=E.ga(ar,xe.alloc()),nt=xe.allocAt(x.x+1e3*ve,x.y+1e3*Te),this.getLinkPointFromPoint(b,E,x,nt,!1,be),xe.free(x),xe.free(nt))}x=Lt,(ft||!ot||ht)&&(x=new xe(Lt.x+qt,Lt.y+ie)),nt=be,(ft||!at||ht)&&(nt=new xe(be.x+ve,be.y+Te)),!jt&&!ft&&ot&&3<z&&this.adjustPoints(0,Lt,z-2,nt)?this.dd(z-1,be):!jt&&!ft&&at&&3<z&&this.adjustPoints(1,x,z-1,be)?this.dd(0,Lt):!jt&&(ft?6<=z:4<z)&&this.adjustPoints(1,x,z-2,nt)?(this.dd(0,Lt),this.dd(z-1,be)):(this.Fj(),this.ne(Lt),(ft||!ot||ht)&&this.ne(x),ft&&this.addOrthoPoints(x,Xt,nt,ze,a,b),(ft||!at||ht)&&this.ne(nt),this.ne(be))}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}Wn.prototype.getLinkPointFromPoint=function(a,y,x,b,E,z){if(z===void 0&&(z=new xe),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,ft=E*(a.m21*a.dy-a.m22*a.dx),Lt=E*(a.m12*a.dx-a.m11*a.dy);E=b.x*nt+b.y*at+ft,b=b.x*ot+b.y*ht+Lt,nt=x.x*nt+x.y*at+ft,x=x.x*ot+x.y*ht+Lt}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)}Wn.prototype.getLinkPoint=function(a,y,x,b,E,z,nt,ot){if(ot===void 0&&(ot=new xe),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=xe.alloc(),ht=xe.alloc();var ft=new Sn(y.ga(ko,at),y.ga(ta,ht)),Lt=this.computeSpot(!b,nt);a=this.getLinkPoint(z,nt,Lt,!b,E,a,y,ht),(x.Hf(ru)||x.Hf(ea))&&a.y>=ft.y&&a.y<=ft.y+ft.height?ot.y=a.y:(x.Hf(Bl)||x.Hf(Ca))&&a.x>=ft.x&&a.x<=ft.x+ft.width&&(ot.x=a.x),xe.free(at),xe.free(ht)}}return ot}}return x=y.ga(Zm(x),xe.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=xe.alloc(),nt=nt.ga(Zm(at),z),E&&(nt=Xv(x,nt)),xe.free(z)),this.getLinkPointFromPoint(a,y,x,nt,b,ot),xe.free(x),ot},Wn.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(ar,xe.alloc()),this.pointsCount>(z?6:2)?(ot=E?this.i(1):this.i(this.pointsCount-2),ot=z?Xv(at,ot.copy()):x):(x=xe.alloc(),ot=ot.ga(ar,x),xe.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,xe.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},Wn.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)},Wn.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=ar:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Pr?ro:y)):(a=y||this.toPort,a===null?a=ar:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Pr?ro:y)),a};function Af(a){return a===ro||a.x===.5&&a.y===.5}function Zm(a){return a.x===.5&&a.y===.5?a:ar}Wn.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==Ms&&4<this.pointsCount?this.computeMidPoint(new xe):(a=y.Zn,a=a!==null?lS(a,this):null,a!==null?a.Zo:y.ga(ar))},Wn.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},Wn.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 ft=at[ht];if(ft.visible||ft===this.locationObject){var Lt=ft.actualBounds,jt=this.naturalBounds;if(!(Lt.x>jt.width||Lt.y>jt.height||0>Lt.x+Lt.width||0>Lt.y+Lt.height)){if(Lt=Vi.alloc(),Lt.set(nt),ft instanceof Bn)ot=ft.Cf(a,y,x,b,E,Lt);else if(this.path===ft){if(ft instanceof ji)if(ot=a,jt=b,ft.pickable===!1)ot=!1;else if(Lt.multiply(ft.transform),jt)t:{var Xt=ot,qt=Lt;if(ft.fh(Xt,qt))ot=!0;else{if(qt===void 0&&(qt=ft.transform,Xt.Re(ft.actualBounds))){ot=!0;break t}ot=Xt.left,jt=Xt.right;var ie=Xt.top;Xt=Xt.bottom;var be=xe.alloc(),ve=xe.alloc(),Te=xe.alloc(),Be=Vi.alloc();Be.set(qt),Be.bv(ft.transform),Be.Vj(),ve.x=jt,ve.y=ie,ve.transform(Be),be.x=ot,be.y=ie,be.transform(Be),qt=!1,kc(ft,be,ve,Te)?qt=!0:(be.x=jt,be.y=Xt,be.transform(Be),kc(ft,be,ve,Te)?qt=!0:(ve.x=ot,ve.y=Xt,ve.transform(Be),kc(ft,be,ve,Te)?qt=!0:(be.x=ot,be.y=ie,be.transform(Be),kc(ft,be,ve,Te)&&(qt=!0)))),Vi.free(Be),xe.free(be),xe.free(ve),xe.free(Te),ot=qt}}else ot=ft.fh(ot,Lt)}else ot=Do(ft,a,b,Lt);ot&&(jt=ft,y!==null&&(jt=y(ft)),jt&&(x===null||x(jt))&&E.add(jt)),Vi.free(Lt)}}}return z===void 0&&Vi.free(nt),ot||this.background!==null||this.areaBackground!==null}return z===void 0&&Vi.free(nt),!1},Wn.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?Sa:this.curve},Wn.prototype.computeCorner=function(){if(this.curve===Sa)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},Wn.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},Wn.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(ar).ab(x.ga(ar))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*nt)+Math.abs(Math.cos(y)*E)+1)),this.curve===Sa&&(a*=1.333)}}return a},Wn.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===Ms&&x.bb()}},Wn.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=iS;var y=this.Sf;if(y!==null){for(var x=ln(),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},Wn.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},Wn.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},Wn.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 ft=0>at?-Math.PI/2:Math.PI/2;else ft=Math.atan(at/Math.abs(ot)),0>ot&&(ft=Math.PI-ft);nt=y.x;var Lt=y.y;ot=b.x-nt;var jt=b.y-Lt;for(at=Math.sqrt(ot*ot+jt*jt),Je.$(ot,0)?jt=0>jt?-Math.PI/2:Math.PI/2:(jt=Math.atan(jt/Math.abs(ot)),0>ot&&(jt=Math.PI-jt)),ht=at/ht,ft=jt-ft,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+ft,y*=ht,this.L(a,nt+y*Math.cos(ot),Lt+y*Math.sin(ot)));this.dd(x,b)}}return!0;case Jm:if(z=this.i(a),Lt=this.i(x),!z.Xa(y)||!Lt.Xa(b)){E=z.x,z=z.y,nt=Lt.x,Lt=Lt.y,ht=(nt-E)*(nt-E)+(Lt-z)*(Lt-z),ot=y.x,ft=y.y,at=b.x,jt=b.y;var Xt=1;if(at-ot!==0){var qt=(jt-ft)/(at-ot);Xt=Math.sqrt(1+1/(qt*qt))}else qt=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var ie=y.x,be=y.y,ve=.5;ht!==0&&(ve=((E-ie)*(E-nt)+(z-be)*(z-Lt))/ht);var Te=E+ve*(nt-E),Be=z+ve*(Lt-z);y=Math.sqrt((ie-Te)*(ie-Te)+(be-Be)*(be-Be)),be<qt*(ie-Te)+Be&&(y=-y),0<qt&&(y=-y),ie=ot+ve*(at-ot),ve=ft+ve*(jt-ft),qt!==0?(y=ie+y/Xt,this.L(a,y,ve-(y-ie)/qt)):this.L(a,ie,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,ft=z.y,Lt=ot,ht=ft,Je.B(E.y,z.y)?Je.B(z.x,nt.x)?ft=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)&&(ft=y.y)),this.L(a+1,ot,ft),E=this.i(x),z=this.i(x-1),nt=this.i(x-2),ot=z.x,ft=z.y,at=ot,jt=ft,Je.B(E.y,z.y)?Je.B(z.x,nt.x)?ft=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)&&(ft=b.y)),this.L(x-1,ot,ft),Yv(this))){this.L(a+1,Lt,ht),this.L(x-1,at,jt),x=!1;break t}this.dd(a,y),this.dd(x,b),x=!0}return x;default:return!1}},Wn.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=xe.alloc(),ft=xe.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),ft.h(x.x,(a.y+x.y)/2),b===180?(ht.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ft.x=ht.x,ft.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,ft.x=ht.x,ft.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),ft.y=ht.y)):(ht.h(a.x,x.y),ft.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)),ft.x=x.x,ft.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),ft.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)),ft.x=x.x,ft.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),ft.h(x.x,(a.y+x.y)/2),b===0?(ht.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ft.x=ht.x,ft.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,ft.x=ht.x,ft.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),ft.y=ht.y)):(ht.h(a.x,x.y),ft.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)),ft.x=x.x,ft.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),ft.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)),ft.x=x.x,ft.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),ft.h((a.x+x.x)/2,x.y),b===270?(ht.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ft.x=x.x,ft.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,ft.x=x.x,ft.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,ft.x=ht.x)):(ht.h(x.x,a.y),ft.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)),ft.x=ht.x,ft.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)),ft.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)),ft.x=ht.x,ft.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),ft.h((a.x+x.x)/2,x.y),b===90?(ht.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ft.x=x.x,ft.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,ft.x=x.x,ft.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,ft.x=ht.x)):(ht.h(x.x,a.y),ft.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)),ft.x=ht.x,ft.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)),ft.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)),ft.x=ht.x,ft.y=x.y)));var Lt=x;if(this.isAvoiding){var jt=this.diagram;if(jt===null||E===z||this.layer.isTemporary||!af(jt)||ot.ca(Lt)&&!z.Td(E)||at.ca(a)&&!E.Td(z))y=!1;else{var Xt=lf(jt,!0,this.containingGroup,null);if(this.segmentIndex!==17&&Xt.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))&&Xt.Yj(Math.min(ht.x,ft.x),Math.min(ht.y,ft.y),Math.abs(ht.x-ft.x),Math.abs(ht.y-ft.y))&&Xt.Yj(Math.min(ft.x,Lt.x),Math.min(ft.y,Lt.y),Math.abs(ft.x-Lt.x),Math.abs(ft.y-Lt.y)))y=!1;else{E=a,z=Lt;var qt=x=null;if(jt.isVirtualized){jt=Xt.bounds.copy(),jt.Bc(-Xt.Ho,-Xt.Go);var ie=xe.alloc();Tf(Xt,a.x,a.y)||(Je.Ff(jt.x,jt.y,jt.x+jt.width,jt.y+jt.height,a.x,a.y,ht.x,ht.y,ie)?(x=a=ie.copy(),y=ie.ab(ht)):Je.Ff(jt.x,jt.y,jt.x+jt.width,jt.y+jt.height,ht.x,ht.y,ft.x,ft.y,ie)?(x=a=ie.copy(),y=ie.ab(ft)):Je.Ff(jt.x,jt.y,jt.x+jt.width,jt.y+jt.height,ft.x,ft.y,Lt.x,Lt.y,ie)&&(x=a=ie.copy(),y=ie.ab(Lt))),Tf(Xt,Lt.x,Lt.y)||(Je.Ff(jt.x,jt.y,jt.x+jt.width,jt.y+jt.height,Lt.x,Lt.y,ft.x,ft.y,ie)?(qt=Lt=ie.copy(),b=ft.ab(ie)):Je.Ff(jt.x,jt.y,jt.x+jt.width,jt.y+jt.height,ft.x,ft.y,ht.x,ht.y,ie)?(qt=Lt=ie.copy(),b=ht.ab(ie)):Je.Ff(jt.x,jt.y,jt.x+jt.width,jt.y+jt.height,ht.x,ht.y,a.x,a.y,ie)&&(qt=Lt=ie.copy(),b=a.ab(ie))),xe.free(ie)}ot=ot.copy().ed(at),ot.Bc(Xt.Ho*Xt.Os,Xt.Go*Xt.Os),sS(Xt,a,y,Lt,b,ot,!0),at=Yl(Xt,Lt.x,Lt.y),!Xt.abort&&at>=kf&&(oS(Xt),ot.Bc(Xt.Ho*Xt.Hx,Xt.Go*Xt.Ix),sS(Xt,a,y,Lt,b,ot,!1),at=Yl(Xt,Lt.x,Lt.y)),!Xt.abort&&at<kf&&Yl(Xt,Lt.x,Lt.y)!==qu?(_v(this,Xt,Lt.x,Lt.y,b,!0,nt),ot=this.i(2),4>this.pointsCount?(y===0||y===180?(ot.x=a.x,ot.y=Lt.y):(ot.x=Lt.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)<=Xt.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)<=Xt.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)),qt!==null&&(b===0||b===180?this.yf(z.x,qt.y):this.yf(qt.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(ht.copy()),this.ne(ft.copy())),xe.free(ht),xe.free(ft)}},Wn.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),ft=x,Lt=b;for(E===0?ft+=ot:E===90?Lt+=at:E===180?ft-=ot:Lt-=at,E!==nt&&ht>Ic&&Yl(y,ft,Lt)!==ht-1&&(Yl(y,x-ot,b)===ht-1?(E=180,ft=x-ot,Lt=b):Yl(y,x+ot,b)===ht-1?(E=0,ft=x+ot,Lt=b):Yl(y,x,b-at)===ht-1?(E=270,ft=x,Lt=b-at):Yl(y,x,b+at)===ht-1&&(E=90,ft=x,Lt=b+at));ht>Ic&&Yl(y,ft,Lt)===ht-1;)x=ft,b=Lt,E===0?ft+=ot:E===90?Lt+=at:E===180?ft-=ot:Lt-=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,ft=b,E===0?(z=90,ft+=at):E===90?(z=180,nt-=ot):E===180?(z=270,ft-=at):E===270&&(z=0,nt+=ot),Yl(y,nt,ft)===ht-1?_v(a,y,nt,ft,z,!1,z):(nt=x,ft=b,E===0?(z=270,ft-=at):E===90?(z=0,nt+=ot):E===180?(z=90,ft+=at):E===270&&(z=180,nt-=ot),Yl(y,nt,ft)===ht-1&&_v(a,y,nt,ft,z,!1,z))),a.yf(x,b)}Wn.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),b=this.i(1),E=Mr(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=Mr(y,a,b.x,b.y,x.x,x.y);b=x,ot<E&&(z=nt,E=ot)}return z},Wn.prototype.qc=function(){this.lk=!1,this.v()},Wn.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 ji&&(E.ua=this.ua)}}},Wn.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===Sa&&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=Gn.o,ot=N1(a),this.computeShortLength(!0)!==0&&(E=vd(this,E,!0,z)),Ef(ot,E.x,E.y,!1),nt===Sa&&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=xe.allocAt(b,at),x=xe.alloc(),x.assign(this.i(1)),z=xe.allocAt(b,at),E=xe.allocAt(b,at),nt=this.i(0);for(var ht,ft=this.smoothness/3,Lt=1;Lt<this.pointsCount-1;Lt++){ht=this.i(Lt);var jt=nt,Xt=ht,qt=this.i(Jv(this,ht,Lt,!1));if((!Je.$(jt.x,Xt.x)||!Je.$(Xt.x,qt.x))&&(!Je.$(jt.y,Xt.y)||!Je.$(Xt.y,qt.y))){var ie=ft;isNaN(ie)&&(ie=this.smoothness/3);var be=jt.x;jt=jt.y;var ve=Xt.x;Xt=Xt.y;var Te=qt.x;qt=qt.y;var Be=ie*Xm(be,jt,ve,Xt);ie*=Xm(ve,Xt,Te,qt),Je.$(jt,Xt)&&Je.$(ve,Te)&&(ve>be?qt>Xt?(z.x=ve-Be,z.y=Xt-Be,E.x=ve+ie,E.y=Xt+ie):(z.x=ve-Be,z.y=Xt+Be,E.x=ve+ie,E.y=Xt-ie):qt>Xt?(z.x=ve+Be,z.y=Xt-Be,E.x=ve-ie,E.y=Xt+ie):(z.x=ve+Be,z.y=Xt+Be,E.x=ve-ie,E.y=Xt-ie)),Je.$(be,ve)&&Je.$(Xt,qt)&&(Xt>jt?(Te>ve?(z.x=ve-Be,z.y=Xt-Be,E.x=ve+ie):(z.x=ve+Be,z.y=Xt-Be,E.x=ve-ie),E.y=Xt+ie):(Te>ve?(z.x=ve-Be,z.y=Xt+Be,E.x=ve+ie):(z.x=ve+Be,z.y=Xt+Be,E.x=ve-ie),E.y=Xt-ie)),(Je.$(be,ve)&&Je.$(ve,Te)||Je.$(jt,Xt)&&Je.$(Xt,qt))&&(be=.5*(be+Te),jt=.5*(jt+qt),z.x=be,z.y=jt,E.x=be,E.y=jt),(Lt===1||Lt===2&&Je.$(nt.x,this.i(0).x)&&Je.$(nt.y,this.i(0).y))&&(x.x=.5*(nt.x+ht.x),x.y=.5*(nt.y+ht.y)),Xu(ot,x.x-b,x.y-at,z.x-b,z.y-at,ht.x-b,ht.y-at),y.set(z),x.set(E),nt=ht}}ht=nt.x,nt=nt.y,ft=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ft=vd(this,ft.copy(),!1,Ri)),ht=.5*(ht+ft.x),nt=.5*(nt+ft.y),Xu(ot,E.x-b,E.y-at,ht-b,nt-at,ft.x-b,ft.y-at),xe.free(y),xe.free(x),xe.free(z),xe.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,Ri)),Xu(ot,z.x-b,z.y-at,E.x-b,E.y-at,nt.x-b,nt.y-at);else{for(z=xe.alloc(),z.assign(this.i(0)),E=xe.alloc(),E.assign(z),nt=this.computeCorner(),Lt=1,ht=0;Lt<y;){if(Lt=Jv(this,z,Lt,1<Lt),ft=this.i(Lt),Lt>=y-1){if(!z.D(ft))this.computeShortLength(!1)!==0&&(ft=vd(this,ft.copy(),!1,Ri)),yd(this,ot,-b,-at,z,ft,x);else if(ht===0)for(Lt=1;Lt<y;)E.assign(z),ft=this.i(Lt++),yd(this,ot,-b,-at,z,ft,x),z.assign(ft);break}if(ht=Jv(this,ft,Lt+1,Lt<y-3),Lt=-b,be=-at,jt=ft,ve=this.i(ht),ie=x,Je.B(z.y,jt.y)&&Je.B(jt.x,ve.x))if(qt=Math.min(nt,Math.abs(jt.x-E.x)/2),qt=Be=Math.min(qt,Math.abs(ve.y-jt.y)/2),Je.B(qt,0))yd(this,ot,Lt,be,z,jt,ie),z.assign(jt);else{var ze=jt.x,Ve=jt.y;Xt=ze,Te=Ve,jt.x>z.x?ze=jt.x-qt:ze=jt.x+qt,ve.y>jt.y?Te=jt.y+Be:Te=jt.y-Be,ve=xe.allocAt(ze,Ve),yd(this,ot,Lt,be,z,ve,ie),xe.free(ve),Rm(ot,jt.x+Lt,jt.y+be,Xt+Lt,Te+be),z.h(Xt,Te)}else Je.B(z.x,jt.x)&&Je.B(jt.y,ve.y)?(qt=Math.min(nt,Math.abs(jt.y-E.y)/2),qt=Be=Math.min(qt,Math.abs(ve.x-jt.x)/2),Je.B(Be,0)?(yd(this,ot,Lt,be,z,jt,ie),z.assign(jt)):(ze=jt.x,Ve=jt.y,Xt=ze,Te=Ve,jt.y>z.y?Ve=jt.y-qt:Ve=jt.y+qt,ve.x>jt.x?Xt=jt.x+Be:Xt=jt.x-Be,ve=xe.allocAt(ze,Ve),yd(this,ot,Lt,be,z,ve,ie),xe.free(ve),Rm(ot,jt.x+Lt,jt.y+be,Xt+Lt,Te+be),z.h(Xt,Te))):(yd(this,ot,Lt,be,z,jt,ie),z.assign(jt));E.assign(ft),Lt=ht}xe.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=Gn.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}Wn.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 ft=0;ft<ht;){var Lt=Math.max(E.x,Math.min(at[ft++]-ot,z.x-nt));y.lineTo(Lt+x,z.y+b);for(var jt=Lt+x,Xt=Math.min(Lt+nt,z.x);ft<ht&&(Lt=at[ft],Lt<Xt+nt);)ft++,Xt=Math.min(Lt+ot,z.x);Lt=z.y-nt+b,Xt+=x;var qt=z.y+b;a.curve===Qu?Ef(y,Xt,qt,!1):Xu(y,jt,Lt,Xt,Lt,Xt,qt)}else for(--ht;0<=ht;){for(ft=Math.min(E.x,Math.max(at[ht--]+ot,z.x+nt)),y.lineTo(ft+x,z.y+b),jt=ft+x,Lt=Math.max(ft-nt,z.x);0<=ht&&(ft=at[ht],ft>Lt-nt);)ht--,Lt=Math.max(ft-ot,z.x);ft=z.y-nt+b,Lt+=x,Xt=z.y+b,a.curve===Qu?Ef(y,Lt,Xt,!1):Xu(y,jt,ft,Lt,ft,Lt,Xt)}else if(Je.B(E.x,z.x))if(E.y<z.y)for(ft=0;ft<ht;){for(Lt=Math.max(E.y,Math.min(at[ft++]-ot,z.y-nt)),y.lineTo(z.x+x,Lt+b),jt=Lt+b,Lt=Math.min(Lt+nt,z.y);ft<ht&&(Xt=at[ft],Xt<Lt+nt);)ft++,Lt=Math.min(Xt+ot,z.y);Xt=z.x-nt+x,qt=z.x+x,Lt+=b,a.curve===Qu?Ef(y,qt,Lt,!1):Xu(y,Xt,jt,Xt,Lt,qt,Lt)}else for(--ht;0<=ht;){for(ft=Math.min(E.y,Math.max(at[ht--]+ot,z.y+nt)),y.lineTo(z.x+x,ft+b),jt=ft+b,ft=Math.max(ft-nt,z.y);0<=ht&&(Lt=at[ht],Lt>ft-nt);)ht--,ft=Math.max(Lt-ot,z.y);Lt=z.x-nt+x,Xt=z.x+x,ft+=b,a.curve===Qu?Ef(y,Xt,ft,!1):Xu(y,Lt,jt,Lt,ft,Xt,ft)}}}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 Wn){if(at===a)return 0<b.length&&b.sort(function(ft,Lt){return ft-Lt}),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(ft,Lt){return ft-Lt}),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=xe.alloc(),at=1;at<z;at++){var ht=b.i(at);if(at<z-1){var ft=b.i(at+1);if(nt.y===ht.y&&ht.y===ft.y){if(ht.x>nt.x&&ft.x>=ht.x||ht.x<nt.x&&ft.x<=ht.x)continue}else if(nt.x===ht.x&&ht.x===ft.x&&(ht.y>nt.y&&ft.y>=ht.y||ht.y<nt.y&&ft.y<=ht.y))continue}t:{ft=a.x;var Lt=a.y,jt=y.x,Xt=y.y,qt=nt.x;nt=nt.y;var ie=ht.x,be=ht.y;if(Je.B(ft,jt)){if(!Je.B(Lt,Xt)&&Je.B(nt,be)&&Math.min(Lt,Xt)<nt&&Math.max(Lt,Xt)>nt&&Math.min(qt,ie)<ft&&Math.max(qt,ie)>ft&&!Je.B(qt,ie)){ot.x=ft,ot.y=nt,ft=!0;break t}}else if(Je.B(Lt,Xt)&&Je.B(qt,ie)&&Math.min(ft,jt)<qt&&Math.max(ft,jt)>qt&&Math.min(nt,be)<Lt&&Math.max(nt,be)>Lt&&!Je.B(nt,be)){ot.x=qt,ot.y=Lt,ft=!0;break t}ot.x=0,ot.y=0,ft=!1}ft&&(E?x.push(ot.x):x.push(ot.y)),nt=ht}xe.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()))}Wn.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 Wn&&(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 Wn&&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())}}Wn.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},Wn.prototype.isVisible=function(){if(!ci.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},Wn.prototype.Zb=function(a){if(ci.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)},Wn.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&&(dn(y.links,a),y.Sl()))}Wn.prototype.ph=function(){return!0},Fe.Object.defineProperties(Wn.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:Pr},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&&fn(a,">= 0",Wn,"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:Pr},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&&fn(a,">= 0",Wn,"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?ki: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 ji?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()===Sa&&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 xe)}},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 Cn,b=0;b<a.length/2;b++)E=new xe(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 Cn,b=0;b<a.length;b++)E=a[b],x.add(new xe(E.x,E.y).freeze())}}else if(a instanceof Cn)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else Me("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)}}}),Wn.prototype.invalidateOtherJumpOvers=Wn.prototype.Xo,Wn.prototype.findClosestSegment=Wn.prototype.ez,Wn.prototype.updateRoute=Wn.prototype.vg,Wn.prototype.invalidateRoute=Wn.prototype.bb,Wn.prototype.rollbackRoute=Wn.prototype.rv,Wn.prototype.commitRoute=Wn.prototype.zf,Wn.prototype.startRoute=Wn.prototype.uh,Wn.prototype.clearPoints=Wn.prototype.Fj,Wn.prototype.removePoint=Wn.prototype.pv,Wn.prototype.addPointAt=Wn.prototype.yf,Wn.prototype.addPoint=Wn.prototype.ne,Wn.prototype.insertPointAt=Wn.prototype.m,Wn.prototype.insertPoint=Wn.prototype.Kz,Wn.prototype.setPointAt=Wn.prototype.L,Wn.prototype.setPoint=Wn.prototype.dd,Wn.prototype.getPoint=Wn.prototype.i,Wn.prototype.getOtherPort=Wn.prototype.Cz,Wn.prototype.getOtherNode=Wn.prototype.To;var Sd=null,xd=null,Qv=new qe(Wn,"Normal",1),Mx=new qe(Wn,"Orthogonal",2),Tx=new qe(Wn,"AvoidsNodes",6),nS=new qe(Wn,"AvoidsNodesStraight",7),Ms=new qe(Wn,"None",0),Sa=new qe(Wn,"Bezier",9),Qu=new qe(Wn,"JumpGap",10),Mf=new qe(Wn,"JumpOver",11),Jg=new qe(Wn,"End",17),_m=new qe(Wn,"Scale",18),Jm=new qe(Wn,"Stretch",19),Qg=new qe(Wn,"OrientAlong",21),qg=new qe(Wn,"OrientPlus90",22),$g=new qe(Wn,"OrientMinus90",23),qv=new qe(Wn,"OrientOpposite",24),Qm=new qe(Wn,"OrientUpright",25),tp=new qe(Wn,"OrientPlus90Upright",26),ep=new qe(Wn,"OrientMinus90Upright",27),qm=new qe(Wn,"OrientUpright45",28),iS=16,rS=14,np=8;Wn.className="Link",Wn.Normal=Qv,Wn.Orthogonal=Mx,Wn.AvoidsNodes=Tx,Wn.AvoidsNodesStraight=nS,Wn.None=Ms,Wn.Bezier=Sa,Wn.JumpGap=Qu,Wn.JumpOver=Mf,Wn.End=Jg,Wn.Scale=_m,Wn.Stretch=Jm,Wn.OrientAlong=Qg,Wn.OrientPlus90=qg,Wn.OrientMinus90=$g,Wn.OrientOpposite=qv,Wn.OrientUpright=Qm,Wn.OrientPlus90Upright=tp,Wn.OrientMinus90Upright=ep,Wn.OrientUpright45=qm,Wn.EndSegmentStep=8,Wn.CurvinessStart=iS,Wn.SpacingMin=rS,Wn.OrthoShortCut=np;function $m(a,y,x,b){Bi(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){Bi(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,ft=x|0,Lt=a.ac[ht][ft];if(Lt>=Ic&&Lt<kf)for(E?ft+=b:ht+=b,Lt+=1;z<=ht&&ht<=nt&&ot<=ft&&ft<=at&&!(Lt>=a.ac[ht][ft]);)a.ac[ht][ft]=Lt,Lt+=1,E?ft+=b:ht+=b;if(ht=E?ft: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,ft=Ic;for(a.ac[y][x]=ft;ht===qu&&y>z&&y<nt&&x>ot&&x<at;)ft+=1,a.ac[y][x]=ft,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,ft=kf;for(a.ac[y][x]=ft;ht===qu&&y>z&&y<nt&&x>ot&&x<at;)a.ac[y][x]=ft,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,ft=b.y;if(Tf(a,ht,ft))if(ht-=a.Nd,ht/=a.rc,ft-=a.Od,ft/=a.sc,1>=Math.abs(ot-ht)&&1>=Math.abs(at-ft))a.abort=!0;else{var Lt=z.x;b=z.y,y=z.x+z.width;var jt=z.y+z.height;Lt-=a.Nd,Lt/=a.rc,b-=a.Od,b/=a.sc,y-=a.Nd,y/=a.rc,jt-=a.Od,jt/=a.sc,z=Math.max(0,Math.min(a.di,Lt|0)),y=Math.min(a.di,Math.max(0,y|0)),Lt=Math.max(0,Math.min(a.ei,b|0)),jt=Math.min(a.ei,Math.max(0,jt|0)),b=a.ac,ot|=0,at|=0,ht|=0,ft|=0;var Xt=x===0||x===90?1:-1;if(x=x===90||x===270,b[ot][at]===qu?(t0(a,ot,at,Xt,x,z,y,Lt,jt),t0(a,ot,at,1,!x,z,y,Lt,jt),t0(a,ot,at,-1,!x,z,y,Lt,jt)):t0(a,ot,at,Xt,x,ot,at,ot,at),b[ht][ft]===qu?(e0(a,ht,ft,E===0||E===90?1:-1,E===90||E===270,z,y,Lt,jt),e0(a,ht,ft,1,!(E===90||E===270),z,y,Lt,jt),e0(a,ht,ft,-1,!(E===90||E===270),z,y,Lt,jt)):e0(a,ht,ft,Xt,x,ht,ft,ht,ft),x=ln(),nt&&aS(a,ht,ft,E,ot,at,x))for((x[0]!==ht||x[1]!==ft)&&(x.unshift(ft),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,Lt,jt),_l(a,ot,at,-1,!1,z,y,Lt,jt),_l(a,ot,at,1,!0,z,y,Lt,jt),_l(a,ot,at,-1,!0,z,y,Lt,jt);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 ft=at,Lt=ht;if(b===0)if(ft<E)ft++;else break;else if(b===90)if(Lt<z)Lt++;else break;else if(b===180)if(ft>E)ft--;else break;else if(Lt>z)Lt--;else break;var jt=ot[ft][Lt];if(jt===0||jt===ty)break;at=ft,ht=Lt}for(;;){if(ft=b,Lt=at,jt=ht,b===0?jt<z?(ft=90,jt++):jt>z&&(ft=270,jt--):b===90?Lt<E?(ft=0,Lt++):Lt>E&&(ft=180,Lt--):b===180?jt<z?(ft=90,jt++):jt>z&&(ft=270,jt--):Lt<E?(ft=0,Lt++):Lt>E&&(ft=180,Lt--),Lt=ot[Lt][jt],ft!==b&&Lt!==0&&Lt!==ty){if(nt.push(at),nt.push(ht),aS(a,at,ht,ft,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++}}}Fe.Object.defineProperties(ip.prototype,{bounds:{get:function(){return new Sn(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(){Bi(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 Ii?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(ko,xe.alloc()),at=a.port.ga(ta,xe.alloc());for(E=Sn.allocAt(ot.x,ot.y,0,0),E.Ye(at),xe.free(ot),xe.free(at),ot=xe.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 ft=ht.fromPort===a.port||ht.fromNode!==null&&ht.fromNode.Td(b),Lt=ht.computeSpot(ft,a.port);if(Lt.$c()&&(ft=ft?ht.toPort:ht.fromPort,ft!==null)){var jt=ft.part;if(jt!==null){var Xt=jt.findVisibleNode();Xt!==null&&Xt!==jt&&(jt=Xt,ft=jt.port),ft=ht.computeOtherPoint(jt,ft),jt=ot.ab(ft),jt-=at,0>jt?jt+=360:360<=jt&&(jt-=360),Lt=kx(E,Lt,jt,ht.isOrthogonal),Lt===0?(Lt=4,180<jt&&(jt-=360)):Lt===90?(Lt=8,270<jt&&(jt-=360)):Lt===180?Lt=2:(Lt=1,90>jt&&(jt+=360)),Xt=a.pe[z],Xt===void 0?(Xt=new ey(ht,jt,Lt),a.pe[z]=Xt):(Xt.link=ht,Xt.angle=jt,Xt.Nc=Lt),Xt.hv.set(ft),z++}}}}for(xe.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,Lt=a.port,b=a.node.portSpreading,ot=xe.alloc(),at=xe.alloc(),nt=xe.alloc(),ht=xe.alloc(),Lt.ga(ko,ot),Lt.ga(iu,at),Lt.ga(ta,nt),Lt.ga(Qs,ht),Xt=jt=ft=Lt=0,b===Kv)for(var qt=0;qt<z.length;qt++){var ie=z[qt];if(ie!==null){var be=ie.link.computeThickness();switch(ie.Nc){case 8:jt+=be;break;case 2:Xt+=be;break;case 1:Lt+=be;break;default:case 4:ft+=be}}}var ve=qt=0,Te=1,Be=ie=0;for(be=0;be<z.length;be++){var ze=z[be];if(ze!==null){if(qt!==ze.Nc){switch(qt=ze.Nc,qt){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(ie=ve.x-Ve.x,Be=ve.y-Ve.y,qt){case 8:jt>Math.abs(ie)?(Te=Math.abs(ie)/jt,jt=Math.abs(ie)):Te=1;break;case 2:Xt>Math.abs(Be)?(Te=Math.abs(Be)/Xt,Xt=Math.abs(Be)):Te=1;break;case 1:Lt>Math.abs(ie)?(Te=Math.abs(ie)/Lt,Lt=Math.abs(ie)):Te=1;break;default:case 4:ft>Math.abs(Be)?(Te=Math.abs(Be)/ft,ft=Math.abs(Be)):Te=1}ve=0}var an=ze.Zo;if(b===Kv){switch(ze=ze.link.computeThickness(),ze*=Te,an.set(Ve),qt){case 8:an.x=Ve.x+ie/2+jt/2-ve-ze/2;break;case 2:an.y=Ve.y+Be/2+Xt/2-ve-ze/2;break;case 1:an.x=Ve.x+ie/2-Lt/2+ve+ze/2;break;default:case 4:an.y=Ve.y+Be/2-ft/2+ve+ze/2}ve+=ze}else{var Vn=.5;b===Gm&&(Vn=(ze.Uo+1)/(ze.Gl+1)),an.x=Ve.x+ie*Vn,an.y=Ve.y+Be*Vn}}}for(xe.free(ot),xe.free(at),xe.free(nt),xe.free(ht),Ve=a.pe,z=0;z<Ve.length;z++)b=Ve[z],b!==null&&(b.Ju=a.computeEndSegmentLength(b));a.ap=x,Sn.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,ro,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 xe,this.Gl=this.Uo=0,this.Zo=new xe,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 Ur(a){Bi(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new xe(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}Ur.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},Ur.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ur.prototype.qb=function(){},Ur.prototype.toString=function(){var a=yn(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},Ur.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())}}},Ur.prototype.createNetwork=function(){return new Dr(this)},Ur.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof un?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Ii?y.lg(a.memberParts):y.lg(a.iterator),y},Ur.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")}},Ur.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()}},Ur.prototype.doLayout=function(a){var y=new Ln;a instanceof un?(Wh(this,y,a.nodes,!0,this.rh,!0,!1,!0),Wh(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof Ii?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},Ur.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 Ii&&(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++}},Ur.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 Wn)&&(rp(ot),this.rh(ot))){var at=ot.measuredBounds,ht=at.width;at=at.height,ot.moveTo(x,b),ot instanceof Ii&&(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++}}},Ur.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Ii&&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 Zn?at.isLinkLabel||(at instanceof Ii&&at.layout===null?Wh(a,y,at.memberParts,!1,E,z,nt,ot):(rp(at),y.add(at))):nt&&at instanceof Wn?y.add(at):!ot||!at.Zc()||at instanceof Zn||(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()}Ur.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new Sn),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},Ur.prototype.ex=function(a){var y=new Ln;return a instanceof un?(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 Ii?Wh(this,y,a.memberParts,!1,null,!0,!0,!0):Wh(this,y,a.iterator,!1,null,!0,!0,!0),y},Ur.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(ko),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},Fe.Object.defineProperties(Ur.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())}}}),Ur.prototype.collectParts=Ur.prototype.ex,Ur.prototype.getLayoutBounds=Ur.prototype.ni,Ur.prototype.invalidateLayout=Ur.prototype.C,Ur.className="Layout";function Dr(a){Bi(this),this.Sc=a,this.wf=new Ln,this.ye=new Ln,this.Es=new Jn,this.zs=new Jn}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 Ln,this.ye=new Ln,this.Es=new Jn,this.zs=new Jn},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 Zn)return!nt.isLinkLabel;if(nt instanceof Wn){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 Zn&&(!y||b.isTopLevel)&&b.canLayout()&&x(b)){if(b instanceof Ii&&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 Wn&&(!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},te=Dr.prototype,te.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},te.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},te.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}te.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},te.ki=function(a){return a===null?null:this.Es.I(a)},te.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}}te.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},te.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))}te.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},te.Lo=function(a){return a===null?null:this.zs.I(a)},te.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},te.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))}},te.Ko=function(){for(var a=ln(),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=ln(),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=ln(),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=ln(),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 Cn;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 Ln,y=this.wf.iterator;y.next();)a.add(y.value.node);for(y=this.ye.iterator;y.next();)a.add(y.value.link);return a},Fe.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){Bi(this),this.ob=a,this.j=new Sn(0,0,10,10).freeze(),this.o=new xe(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Cn,this.mg=new Cn}Ao.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Cn,this.mg=new Cn},Ao.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Hi(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 Ii)){x=Sn.alloc(),a.Va();var b=this.network.layout.ni(a,x),E=a.locationObject.ga(ar);if(b.w()&&E.w()){a.moveTo(y.x+this.focusX-(E.x-b.x),y.y+this.focusY-(E.y-b.y)),Sn.free(x);return}Sn.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}Fe.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=Sn.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),Sn.free(x),!(a instanceof Ii)&&(a=a.locationObject.ga(ar),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 Ln,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new Ln,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new Ln,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);for(y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var a=new Cn,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){Bi(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#"+Hi(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},Fe.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){Ur.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new zn(NaN,NaN).freeze(),this.tf=new zn(10,10).freeze(),this.Jb=op,this.Rb=i0,this.nd=sp,this.hd=hS,a&&Object.assign(this,a)}Qe(Jo,Ur),Jo.prototype.cloneProtected=function(a){Ur.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===gl?this.arrangement=a:a===op||a===n0?this.alignment=a:Me("Unknown enum value: "+a):Ur.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 Ii)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=Sn.alloc(),ft=Math.max(this.cellSize.width,1);if(!isFinite(ft))for(var Lt=ft=0;Lt<E.length;Lt++){var jt=this.ni(E[Lt],ht);ft=Math.max(ft,jt.width)}if(ft=Math.max(ft+ot,1),Lt=Math.max(this.cellSize.height,1),!isFinite(Lt))for(jt=Lt=0;jt<E.length;jt++){var Xt=this.ni(E[jt],ht);Lt=Math.max(Lt,Xt.height)}Lt=Math.max(Lt+at,1),jt=this.arrangement;for(var qt=Xt=this.arrangementOrigin.x,ie=this.arrangementOrigin.y,be=0,ve=0,Te=0;Te<E.length;Te++){var Be=E[Te],ze=this.ni(Be,ht),Ve=Math.ceil((ze.width+ot)/ft)*ft,an=Math.ceil((ze.height+at)/Lt)*Lt;switch(jt){case gl:var Vn=Math.abs(qt-ze.width);break;default:Vn=qt+ze.width}switch((0<z&&be>z-1||0<nt&&0<be&&Vn-Xt>nt)&&(b.push(new Sn(0,ie,nt+ot,ve)),be=0,qt=Xt,ie+=ve,ve=0),ve=Math.max(ve,an),jt){case gl:ze=-ze.width;break;default:ze=0}switch(Be.moveTo(qt+ze,ie),jt){case gl:qt-=Ve;break;default:qt+=Ve}be++}b.push(new Sn(0,ie,nt+ot,ve)),Sn.free(ht);break;case op:for(at=nt,ft=z,Lt=y,jt=x,nt=Sn.alloc(),Xt=Math.max(this.cellSize.width,1),z=ie=ht=0,ot=xe.alloc(),qt=0;qt<E.length;qt++)ve=E[qt],be=this.ni(ve,nt),ve=Yu(ve,ve.locationObject,ve.locationSpot,ot),ht=Math.max(ht,ve.x),ie=Math.max(ie,be.width-ve.x),z=Math.max(z,ve.y);switch(qt=this.arrangement,qt){case gl:ht+=Lt;break;default:ie+=Lt}Xt=isFinite(Xt)?Math.max(Xt+Lt,1):Math.max(ht+ie,1);var $n=ve=this.arrangementOrigin.x;for(Te=this.arrangementOrigin.y,ie=0,at>=ht&&(at-=ht),ht=Be=0,Ve=Math.max(this.cellSize.height,1),ze=z=0,an=!0,be=xe.alloc(),Vn=0;Vn<E.length;Vn++){var _n=E[Vn],Hn=this.ni(_n,nt),Tn=Yu(_n,_n.locationObject,_n.locationSpot,ot);if(0<ie)switch(qt){case gl:$n=($n-ve-(Hn.width-Tn.x))/Xt,$n=Je.$(Math.round($n),$n)?Math.round($n):Math.floor($n),$n=$n*Xt+ve;break;default:$n=($n-ve+Tn.x)/Xt,$n=Je.$(Math.round($n),$n)?Math.round($n):Math.ceil($n),$n=$n*Xt+ve}else switch(qt){case gl:Be=$n+Tn.x+Hn.width;break;default:Be=$n-Tn.x}switch(qt){case gl:var Ni=-($n+Tn.x)+Be;break;default:Ni=$n+Hn.width-Tn.x-Be}if(0<ft&&ie>ft-1||0<at&&0<ie&&Ni>at){for(b.push(new Sn(0,an?Te-z:Te,at+Lt,ze+z+jt)),$n=0;$n<ie&&Vn!==ie;$n++){Ni=E[Vn-ie+$n];var Ei=Yu(Ni,Ni.locationObject,Ni.locationSpot,be);Ni.moveTo(Ni.position.x,Ni.position.y+z-Ei.y)}ze+=jt,Te=an?Te+ze:Te+(ze+z),ie=ze=z=0,$n=ve,an=!1}switch($n===ve&&(ht=qt===gl?Math.max(ht,Hn.width-Tn.x):Math.min(ht,-Tn.x)),z=Math.max(z,Tn.y),ze=Math.max(ze,Hn.height-Tn.y),isFinite(Ve)&&(ze=Math.max(ze,Math.max(Hn.height,Ve)-Tn.y)),an?_n.moveTo($n-Tn.x,Te-Tn.y):_n.moveTo($n-Tn.x,Te),qt){case gl:$n-=Tn.x+Lt;break;default:$n+=Hn.width-Tn.x+Lt}ie++}if(b.push(new Sn(0,Te,at+Lt,(an?ze:ze+z)+jt)),E.length!==ie)for(at=0;at<ie;at++)ft=E[E.length-ie+at],Lt=Yu(ft,ft.locationObject,ft.locationSpot,ot),ft.moveTo(ft.position.x,ft.position.y+z-Lt.y);if(xe.free(ot),xe.free(be),qt===gl)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);Sn.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===gl?this.commitLayers(b,new xe(E+y/2-(z+E),nt-x/2)):this.commitLayers(b,new xe(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}Fe.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!==gl||(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 qe(Jo,"Position",0),op=new qe(Jo,"Location",1),i0=new qe(Jo,"LeftToRight",2),gl=new qe(Jo,"RightToLeft",3),sy=new qe(Jo,"Forward",4),r0=new qe(Jo,"Reverse",5),sp=new qe(Jo,"Ascending",6),o0=new qe(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=gl,Jo.Forward=sy,Jo.Reverse=r0,Jo.Ascending=sp,Jo.Descending=o0;function br(){this.On=new Ln,this.Dn=new Ln,this.Pa=new Ln,this.cf=new Jn,this.bf=new Jn,this.aj=new Jn,this.H=null,this.tp=!1}te=br.prototype,te.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},te.Xe=function(a){this.H=a},te.oi=function(a){if(a instanceof Zn){if(this.On.add(a),a instanceof Ii){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 Wn?this.Dn.add(a):a instanceof ur||this.Pa.add(a);y=a.data,y===null||a instanceof ur||(a instanceof Wn?this.bf.add(y,a):this.cf.add(y,a))},te.pc=function(a){if(a.Ej(),a instanceof Zn){if(this.On.remove(a),a instanceof Ii){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 Wn?this.Dn.remove(a):a instanceof ur||this.Pa.remove(a);y=a.data,y===null||a instanceof ur||(a instanceof Wn?this.bf.remove(y):this.cf.remove(y))},te.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 Ii)&&Me('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 Ii||Me('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 Wn||Me('Invalid link template in Diagram.linkTemplateMap: template for "'+b+'" must be a Link, not a normal Node or simple Part: '+x);for(y=ln(),x=a.selection.iterator;x.next();)(b=x.value.data)&&y.push(b);for(x=ln(),a=a.highlighteds.iterator;a.next();)(b=a.value.data)&&x.push(b);for(a=ln(),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)}},br.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},br.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&&(Xa(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)}}br.prototype.insertLink=function(){return null},br.prototype.resolveReferencesForData=function(){},br.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,In('No Group template found for category "'+x+'"'),In(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(gS||(gS=!0,In('No Node template found for category "'+x+'"'),In(" Using default node template")),y=a.ny))),y}br.prototype.getLinkCategoryForData=function(){return""},br.prototype.setLinkCategoryForData=function(){},br.prototype.setFromNodeForLink=function(){},br.prototype.setToNodeForLink=function(){},br.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,In('No Link template found for category "'+a+'"'),In(" Using default link template")),x=y.my)),x},br.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},br.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},br.prototype.ip=function(a){a=this.Lc(a),a!==null&&(xg(this.diagram,a,!1),this.unresolveReferencesForPart(a))},br.prototype.unresolveReferencesForPart=function(){},br.prototype.removeDataForLink=function(){},br.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},br.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof Zn?a:null)},br.prototype.findLinkForKey=function(){return null},te=br.prototype,te.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},te.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof Zn?a:null)},te.Kc=function(a){return a===null?null:this.bf.I(a)},te.ms=function(a){for(var y=0;y<arguments.length;++y);y=new Ln;for(var x=this.On.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var z=0;z<arguments.length;z++){var nt=arguments[z];if(Ke(nt)&&ay(this,E,nt)){y.add(b);break}}}return y.iterator},te.ls=function(a){for(var y=0;y<arguments.length;++y);y=new Ln;for(var x=this.Dn.iterator;x.next();){var b=x.value,E=b.data;if(E!==null)for(var 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(cn(z)){if(!cn(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}br.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===Vr){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===lo){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===Vr){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===lo||x===Eo){var ft=a.change===lo,Lt=ft?a.newParam:a.oldParam,jt=ft?a.newValue:a.oldValue,Xt=this.aj.I(a.object);if(Array.isArray(Xt))for(a=0;a<Xt.length;a++){var qt=Xt[a];if(ft)Cm(qt,jt,Lt,!0);else if(!(0>Lt)){var ie=Lt+Wg(qt);qt.pc(ie,!0),wv(qt,ie,Lt)}}y.isModified=!0}}finally{y.aa=!0}}}}},br.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)},br.prototype.rp=function(){for(var a=this.H.model,y=new Ln,x=a.nodeDataArray,b=0;b<x.length;b++)y.add(x[b]);var E=[];for(this.nodes.each(function(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()},br.prototype.refreshDataBoundLinks=function(){},br.prototype.updateRelationshipsFromData=function(){},br.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=ln()),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(cn(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(cn(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}}}}br.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var b=new Jn;if(cn(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 Ln;for(var z=new Jn,nt=b.iterator;nt.next();){var ot=nt.value;if(ot instanceof Wn)a||ot.fromNode!==null&&ot.toNode!==null||E.add(ot);else if(ot instanceof Zn&&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 ft=new Jn;b.each(function(Lt){Lt.key.data!==null&&ft.add(Lt.key.data,Lt.value.data)}),x(ft,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 ci))return null;if(z.isSelected=!1,z.isHighlighted=!1,b.add(y,z),y instanceof Zn){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 Ii&&z instanceof Ii)for(y=y.memberParts;y.next();)nt=s0(a,y.value,x,b,E),nt instanceof Wn||nt===null||(nt.containingGroup=z)}else if(y instanceof Wn&&z instanceof Wn)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 Zn&&(nt.labeledLink=z);return z}br.prototype.copyPartData=function(a,y){var x=null,b=a.data;if(b!==null&&y!==null){var E=y.model;a instanceof Wn||(b=E.copyNodeData(b),Ke(b)&&(E.xf(b),x=y.Lc(b)))}else Xa(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 Wn||(E=y.copyNodeData(b)),Ke(E)&&(x.data=E)));return x},Fe.Object.defineProperties(br.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}}}),br.prototype.updateAllRelationshipsFromData=br.prototype.rp,br.prototype.findLinksByExample=br.prototype.ls,br.prototype.findNodesByExample=br.prototype.ms,br.prototype.findLinkForData=br.prototype.Kc,br.prototype.findNodeForData=br.prototype.ii,br.prototype.findPartForData=br.prototype.Lc,br.prototype.findNodeForKey=br.prototype.Vb,br.prototype.removeModeledPart=br.prototype.ip,br.prototype.removeModeledParts=br.prototype.Gs,br.prototype.rebuildParts=br.prototype.Wd;var gS=!1,pS=!1,mS=!1;br.className="PartManager";function zo(a){br.apply(this,arguments)}Qe(zo,br),zo.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),vS(this,a.linkDataArray)},zo.prototype.addModeledParts=function(a){for(br.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){Xa(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=xa(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof Zn&&(E.fromNode=z)),z=h0(x,y,!1),z!==""&&(E.toPortId=z),z=xa(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof Zn&&(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}}}}zo.prototype.removeAllModeledParts=function(){var a=this.diagram.model;SS(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function SS(a,y){y.forEach(function(x){a.ip(x)})}zo.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},zo.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},zo.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},zo.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},zo.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},zo.prototype.findPartForKey=function(a){var y=br.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},zo.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},zo.prototype.doModelChanged=function(a){var y=this;if(br.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===Vr){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 ft=a.newValue;typeof ft=="string"&&(ht.fromPortId=ft)}}else if(E==="linkToPortId"){var Lt=this.Kc(a.object);if(Lt!==null){var jt=a.newValue;typeof jt=="string"&&(Lt.toPortId=jt)}}else if(E==="nodeGroupKey"){var Xt=this.Lc(a.object);if(Xt!==null){var qt=a.newValue;if(qt!==void 0){var ie=this.Vb(qt);ie instanceof Ii?Xt.containingGroup=ie:Xt.containingGroup=null}else Xt.containingGroup=null}}else if(E==="linkLabelKeys"){var be=this.Kc(a.object);if(be!==null){var ve=a.oldValue,Te=a.newValue;Array.isArray(ve)&&ve.forEach(function(Tn){0<=Te.indexOf(Tn)||(Tn=y.Vb(Tn),Tn!==null&&(Tn.labeledLink=null))}),Array.isArray(Te)&&Te.forEach(function(Tn){Tn=y.Vb(Tn),Tn!==null&&(Tn.labeledLink=be)})}}else if(E==="linkCategory"){var Be=this.Kc(a.object),ze=a.newValue;Be!==null&&typeof ze=="string"&&(Be.category=ze)}else E==="linkDataArray"&&(SS(this,a.oldValue),vS(this,a.newValue));x.isModified=!0}else if(b===lo){var Ve=a.newValue;if(E==="linkDataArray"&&typeof Ve=="object"&&Ve!==null)yS(this,Ve);else if(E==="linkLabelKeys"&&Gh(Ve)){var an=this.Kc(a.object),Vn=this.Vb(Ve);an!==null&&Vn!==null&&(Vn.labeledLink=an)}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 _n=this.Vb($n);_n!==null&&(_n.labeledLink=null)}x.isModified=!0}}else if(b===Vr){var Hn=a.propertyName;a.object!==x.model||Hn!=="linkFromKeyProperty"&&Hn!=="linkToKeyProperty"&&Hn!=="linkFromPortIdProperty"&&Hn!=="linkToPortIdProperty"&&Hn!=="linkLabelKeysProperty"&&Hn!=="nodeIsGroupProperty"&&Hn!=="nodeGroupKeyProperty"&&Hn!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},zo.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new Ln,b=y.linkDataArray;b.forEach(function(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)})},zo.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;if(a instanceof Wn){var E=xa(b,y,!0);if(E=x.Vb(E),a.fromNode=E,E=xa(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 Ln().addAll(y);var nt=new Ln;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 ur)&&(y=b.lh(y),y=x.findPartForKey(y),y===null||y instanceof Ii)&&(a.containingGroup=y)}}},zo.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 Ii&&y.lh(nt)===x&&(nt=this.Lc(nt),nt!==null&&(nt.containingGroup=E)):(z.link=this.Kc(nt),z.link!==null&&E instanceof Zn&&(xa(y,nt,!0)===x&&(z.link.fromNode=E),xa(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}}ml(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof Ii&&(E.containingGroup=a))}},zo.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Zn){var x=y.wa(a.data);if(x!==void 0){for(var b=a.linksConnected;b.next();)pl(y,x,b.value.data);if(a.isLinkLabel&&(b=a.labeledLink,b!==null&&pl(y,x,b.data)),a instanceof Ii)for(a=a.memberParts;a.next();)b=a.value.data,y.lb(b)&&pl(y,x,b)}}},zo.prototype.copyPartData=function(a,y){var x=br.prototype.copyPartData.call(this,a,y);if(a instanceof Wn)if(a=a.data,a!==null&&y!==null){var b=y.model;a=b.Jo(a),typeof a=="object"&&a!==null&&(b.fi(a),x=y.Kc(a))}else x!==null&&(y=this.diagram,a!==null&&y!==null&&y.commandHandler!==null&&y.commandHandler.copiesClipboardData&&(y=y.model.Jo(a),typeof y=="object"&&y!==null&&(x.data=y)));return x},zo.prototype.insertLink=function(a,y,x,b){var E=this.diagram,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 Wn){if(Xa(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 Zn&&(Xa(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 Zn||(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},zo.prototype.findLinkForKey=zo.prototype.findLinkForKey,zo.prototype.findPartForKey=zo.prototype.findPartForKey,zo.prototype.removeAllModeledParts=zo.prototype.removeAllModeledParts,zo.prototype.addModeledParts=zo.prototype.addModeledParts,zo.prototype.addAllModeledParts=zo.prototype.addAllModeledParts,zo.className="GraphLinksPartManager";function Da(){br.apply(this,arguments),this.Sg=null}Qe(Da,br);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||!Ss(b,E,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),b=a.findLinkTemplateForCategory(y),b!==null&&(Xa(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}}}Da.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},Da.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},Da.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}},Da.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))},Da.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},Da.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},Da.prototype.doModelChanged=function(a){if(br.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===Vr){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 ft=at.kh();ft!==null&&(ft.category=ht)}}y.isModified=!0}}else if(x===Vr){var Lt=a.propertyName;a.object===y.model&&Lt==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},Da.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var b=x.model;a instanceof Zn&&(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)))}}},Da.prototype.updateDataBindings=function(a,y){br.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},Da.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 Zn&&y.mh(z)===x&&a0(this,E,this.ii(z))}ml(y,x)}a=y.mh(a),a!==void 0&&E instanceof Zn&&(a=this.Vb(a),a0(this,a,E))}},Da.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Zn){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)&&pl(y,x,E)}},Da.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},Da.prototype.findLinkForKey=Da.prototype.findLinkForKey,Da.className="TreePartManager";function ri(a,y){this.kl=new Ln,this.il=new Ln,this.Wv=`,
|
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
|
"removedNodeKeys": `,this.vh=null,Bi(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new Jn,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 Jn,this.Lt=new Cn,this.Wg=!1,this.o=null,this.undoManager=new Yr,a!==void 0&&(cn(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)+":"+Mn(E)}}return y},ri.prototype.xA=function(a){a.change!==ia&&Me("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof jo?(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 Ln,z=new Ln,nt=new Ln,ot=this.vh;a.changes.each(function(Lt){Lt.model===x&&(Lt.modelChange==="nodeDataArray"?Lt.change===lo?E.add(Lt.newValue):Lt.change===Eo&&nt.add(Lt.oldValue):x.lb(Lt.object)?z.add(Lt.object):Lt.change!==Vr||x.modelData!==Lt.object&&Lt.propertyName!=="modelData"?Lt.object!==null&&(ot&&ot.contains(Lt.object)?ot.get(Lt.object).each(function(jt){x.lb(jt)&&z.add(jt)}):Lt.object instanceof ri||x.ri()&&x.Jc(Lt.object)||PS(x,Lt.object).each(function(jt){z.add(jt)})):b=!0)});var at=this.il;at.clear(),E.each(function(Lt){at.add(x.wa(Lt)),y||z.add(Lt)});var ht=this.kl;ht.clear(),nt.each(function(Lt){ht.add(x.wa(Lt)),y&&z.add(Lt)}),a=x.cloneDeep(z.Fa());var ft=null;return b&&(ft===null&&(ft={}),ft.modelData=this.cloneDeep(this.modelData)),0<at.count&&(ft===null&&(ft={}),y?ft.removedNodeKeys=at.Fa():ft.insertedNodeKeys=at.Fa()),0<a.length&&(ft===null&&(ft={}),ft.modifiedNodeData=a),0<ht.count&&(ft===null&&(ft={}),y?ft.insertedNodeKeys=ht.Fa():ft.removedNodeKeys=ht.Fa()),ht.clear(),at.clear(),ft},ri.prototype.cloneDeep=function(a){return Nf(this,a,!0)};function Nf(a,y,x,b,E,z){function nt(Lt,jt){ot?(Lt.__gohashid===void 0&&z.push(Lt),b.set(Lt,jt)):(Lt=Or++,b.set(Lt,jt),E.set(Lt,y))}if(!Ke(y))return y;z||(z=[]);var ot=Object.isExtensible(y);if(b||(b=new Jn),ot){var at=b.get(y);if(at)return at}else for(E||(E=new Jn),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 ft=0;ft<y.length;ft++)at.push(Nf(a,y[ft],!1,b,E,z))}else if(y instanceof xe||y instanceof zn||y instanceof Sn||y instanceof hi||y instanceof si)at=y.copy(),nt(y,at);else{if(y instanceof xr||y instanceof Gn||y instanceof qe)return y;if(y instanceof Cn)at=new Cn().addAll(Nf(a,y.Fa(),!1,b,E,z)),nt(y,at);else if(y instanceof Ln)at=new Ln().addAll(Nf(a,y.Fa(),!1,b,E,z)),nt(y,at);else if(y instanceof Jn)at=new Jn().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(ft in at={},nt(y,at),y)ft!=="__gohashid"&&(at[ft]=Nf(a,y[ft],!1,b,E,z))}return x&&z.forEach(function(Lt){delete Lt.__gohashid}),at}te=ri.prototype,te.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},te.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},te.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)}te.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)},te.kv=function(a){xS(this,a),a=a.nodeDataArray,cn(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 Ln,nt.add(z),b.add(E,nt)):nt.add(z)}}var b=a.vh;b===null&&(b=new Jn,y.changes.each(function(E){if(E.diagram!==null){var z=E.change;z===Vr?(E=E.object.panel)&&(z=E.data)&&x(z,E):(z===lo||z===Eo)&&(E=E.object,(z=E.itemArray)&&x(z,E))}}),a.vh=b)}function PS(a,y){for(var x=new Ln,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}te.Pv=function(a,y){var x=this,b=!1,E=new Ln,z=new Ln,nt=new Ln,ot=this.vh;a.changes.each(function(ft){ft.model===x&&(ft.modelChange==="nodeDataArray"?ft.change===lo?E.add(ft.newValue):ft.change===Eo&&nt.add(ft.oldValue):x.lb(ft.object)?z.add(ft.object):ft.change!==Vr||x.modelData!==ft.object&&ft.propertyName!=="modelData"?ft.object!==null&&(ot&&ot.contains(ft.object)?ot.get(ft.object).each(function(Lt){x.lb(Lt)&&z.add(Lt)}):ft.object instanceof ri||x.ri()&&x.Jc(ft.object)||PS(x,ft.object).each(function(Lt){z.add(Lt)})):b=!0)});var at=this.il;at.clear(),E.each(function(ft){at.add(x.wa(ft)),y||z.add(ft)});var ht=this.kl;return ht.clear(),nt.each(function(ft){ht.add(x.wa(ft)),y&&z.add(ft)}),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},te.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)&&Me("applyIncrementalJson cannot change Model properties"),xS(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,b=new Jn;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)},te.$x=function(a,y){a.change!==ia&&Me("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof jo?(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 }'},te.yA=function(a,y){return this.$x(a,y)},te.np=function(a){return a===void 0&&(a=lp(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},te.toJSON=function(a){return this.np(a)},te.Zw=function(a){var y=null;if(typeof a=="string")try{y=Ae.JSON.parse(a)}catch(b){}else typeof a=="object"?y=a:Me("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&Me("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},te.Ky=function(a){return this.Zw(a)},ri.constructGraphLinksModel=function(){return new ri},te=ri.prototype,te.dm=function(a){if(cn(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:Me("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 Cn,b=0;b<x.length/2;b++)E.add(new xe(x[2*b],x[2*b+1]));E.freeze(),a[y]=E}}return Ox(a)}return a},te.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()):cn(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 ti;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 Ts(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function hy(a,y){var x=y;if(x instanceof xe)y={class:"go.Point",x:Ts(x.x),y:Ts(x.y)};else if(x instanceof zn)y={class:"go.Size",width:Ts(x.width),height:Ts(x.height)};else if(x instanceof Sn)y={class:"go.Rect",x:Ts(x.x),y:Ts(x.y),width:Ts(x.width),height:Ts(x.height)};else if(x instanceof hi)y={class:"go.Margin",top:Ts(x.top),right:Ts(x.right),bottom:Ts(x.bottom),left:Ts(x.left)};else if(x instanceof si)x.sb()?y={class:"go.Spot",x:Ts(x.x),y:Ts(x.y),offsetX:Ts(x.offsetX),offsetY:Ts(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof xr){if(y={class:"go.Brush",type:x.type.name},x.type===Vu?y.color=x.color:(x.type===mu||x.type===Oa)&&(y.start=x.start,y.end=x.end,x.type===Oa&&(x.startRadius!==0&&(y.startRadius=Ts(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=Ts(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 Gn?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=Ts(x.startX)),x.startY!==0&&(y.startY=Ts(x.startY)),x.endX!==0&&(y.endX=Ts(x.endX)),x.endY!==0&&(y.endY=Ts(x.endY)),x.spot1.D(ko)||(y.spot1=x.spot1),x.spot2.D(ta)||(y.spot2=x.spot2),x.type===Gn.o&&(y.path=Gn.ia(x))):x instanceof qe&&(y={class:"go.EnumValue",classType:lp(a,x.classType),name:x.name});b="{",x=!0;for(var E in y){var z=oo(y,E);if(!bS(E,z))if(x?x=!1:b+=",",b+=a.quote(E)+":",E==="points"&&z instanceof Cn){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 ks(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 xe(ks(a.x),ks(a.y));else if(y==="Size")x=new zn(ks(a.width),ks(a.height));else if(y==="Rect")x=new Sn(ks(a.x),ks(a.y),ks(a.width),ks(a.height));else if(y==="Margin")x=new hi(ks(a.top),ks(a.right),ks(a.bottom),ks(a.left));else if(y==="Spot")typeof a.enum=="string"?x=Bd(a.enum):x=new si(ks(a.x),ks(a.y),ks(a.offsetX),ks(a.offsetY));else if(y==="Brush"){if(x=new xr,x.type=Xn(xr,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=ks(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=ks(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=Gn.parse(a.path):x=new Gn,x.type=Xn(Gn,a.type),typeof a.startX=="number"&&(x.startX=ks(a.startX)),typeof a.startY=="number"&&(x.startY=ks(a.startY)),typeof a.endX=="number"&&(x.endX=ks(a.endX)),typeof a.endY=="number"&&(x.endY=ks(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=Xn(b,a.name)));return x}te.Pe=function(a){return this.Lt.add(a),this},te.ik=function(a){this.Lt.remove(a)},te.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)},te.cb=function(a,y,x,b,E,z,nt){Po(this,"",a,y,x,b,E,z,nt)},te.g=function(a,y,x,b,E){Po(this,"",Vr,a,this,y,x,b,E)},te.Fs=function(a,y,x,b,E,z){Po(this,"",Vr,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 Zr;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===Vr){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)),Hr(x,b,E)}else a.change===lo?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,Ke(a)&&typeof x=="number"&&(b=this.wa(a),y?(this.Tc[x]===a&&dn(this.Tc,x),b!==void 0&&this.kb.remove(b)):(this.Tc[x]!==a&&on(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)))):a.modelChange===""?((b=a.object)&&!cn(b)&&a.propertyName&&(b=oo(a.object,a.propertyName)),cn(b)&&typeof x=="number"&&(a=a.newValue,y?dn(b,x):on(b,x,a))):Me("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&&on(this.Tc,x,a),b!==void 0&&this.kb.add(b,a)):(this.Tc[x]===a&&dn(this.Tc,x),b!==void 0&&this.kb.remove(b)))):a.modelChange===""?((b=a.object)&&!cn(b)&&a.propertyName&&(b=oo(a.object,a.propertyName)),cn(b)&&typeof x=="number"&&(a=a.oldValue,y?on(b,x,a):dn(b,x))):Me("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==ia&&Me("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}},te=ri.prototype,te.La=function(a,y){y===void 0&&(y=""),Po(this,"SourceChanged",ia,y,a,null,null)},te.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=oo(a,y),y!==void 0)){if(Gh(y))return y;Me("Key value for node data "+a+" is not a number or a string: "+y)}}},te.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var b=oo(a,x);b!==y&&this.hc(y)===null&&(Hr(a,x,y),b!==void 0&&this.kb.remove(b),this.kb.add(y,a),Po(this,"nodeKey",Vr,x,a,b,y),typeof x=="string"&&this.La(a,x),this.jp(b,y))}else Hr(a,x,y)}};function Gh(a){return typeof a=="number"||typeof a=="string"}te.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},te.hc=function(a){return a===null&&Me("Model.findNodeDataForKey:key must not be null"),a!==void 0&&Gh(a)?this.kb.I(a):null},te.$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))){Hr(a,y,x);return}if(typeof x=="string"){for(b=2;this.kb.contains(x+b);)b++;Hr(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;Hr(a,y,x)}}}}},te.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&&Me("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(b,y),b=null,x&&(b=a.Tc.length,on(a.Tc,b,y)),Po(a,"nodeDataArray",lo,"nodeDataArray",a,null,y,null,b),a.fm(y),a.em(y))}te.Fy=function(a){if(cn(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)},te.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;dn(a.Tc,b)}Po(a,"nodeDataArray",Eo,"nodeDataArray",a,y,null,b,null),a.qp(y)}te.nA=function(a){if(cn(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)},te.$z=function(a){if(a!==this.nodeDataArray&&cn(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()}},te.jp=function(a,y){y!==void 0&&(a=ap(this,a),a instanceof Ln&&this.Vf.add(y,a))},te.Lv=function(){},te.fm=function(){},te.em=function(){},te.qp=function(){};function pl(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b===null&&(b=new Ln,a.Vf.add(y,b)),b.add(x)}}function ml(a,y,x){if(y!==void 0){var b=a.Vf.I(y);b instanceof Ln&&(x==null?a.Vf.remove(y):(b.remove(x),b.count===0&&a.Vf.remove(y)))}}function ap(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof Ln?a:null)}te.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)&&Bi(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 Bi(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=oo(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 Yr||z instanceof jo||z instanceof Zr||(z=u0(a,z,!1)),Hr(x,b,z)}return Bi(x),x}return y instanceof xe||y instanceof zn||y instanceof Sn||y instanceof si||y instanceof hi?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,In('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),In(" Is that really your intent?"));var b=oo(a,y);b!==x&&(Hr(a,y,x),this.Fs(a,y,b,x))},te=ri.prototype,te.set=function(a,y,x){this.setDataProperty(a,y,x)},te.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])}},te.Ay=function(a,y){this.ts(a,-1,y)},te.ts=function(a,y,x){0>y&&(y=a.length),on(a,y,x),Po(this,"",lo,"",a,null,x,null,y)},te.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&Me("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];dn(a,y),Po(this,"",Eo,"",a,x,null,y,null)},te.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=oo(a,y),y===void 0))return"";if(typeof y=="string")return y;Me("getCategoryForNodeData found a non-string category for "+a+": "+y)},te.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var b=oo(a,x);b===void 0&&(b=""),b!==y&&(Hr(a,x,y),Po(this,"nodeCategory",Vr,x,a,b,y))}else Hr(a,x,y)}},te.lm=function(a,y){this.jm(y,this.Ro(a))},te.Tl=function(){return!1},te.Wj=function(){return!1},te.ri=function(){return!1},te.xs=function(){return!1},te.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 sl[a]?sl[a]:Ae.go!==void 0&&Ae.go[a]?Ae.go[a]:null}function oo(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(b){}return x}function Hr(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){}}Fe.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===""&&Me("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&Me("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)||Me("Model.nodeDataArray must only contain Objects, not: "+E),wr(E)}for(this.Tc=a,b=new Cn,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",Vr,"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,sl={};ri.className="Model",ri.fromJSON=ri.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=Ae.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:Me("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=Ae[b])),typeof E=="function"&&(a=new E)}catch(z){}a===null||a instanceof ri?y=a:Me("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=oo,ri.safePropertySet=Hr,sl.Brush=xr,sl.ChangedEvent=Zr,sl.Geometry=Gn,sl.Margin=hi,sl.Panel=Bn,sl.Point=xe,sl.Rect=Sn,sl.Size=zn,sl.Spot=si,sl.Transaction=jo,sl.UndoManager=Yr;function co(a,y,x,b){Bi(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 Ln}co.prototype.copy=function(){var a=new co;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},te=co.prototype,te.qb=function(a){a.classType===co&&(this.mode=a)},te.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},te.freeze=function(){return this._isFrozen=!0,this},te.ka=function(){return this._isFrozen=!1,this},te.Kx=function(a){return a===void 0&&(a=null),this.mode=up,this.backConverter=a,this},te.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},te.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)}te.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==="")In("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(b!==""&&(z=oo(y,b)),z!==void 0)if(E===null)x!==""&&Hr(a,x,z);else try{if(x!==""){var nt=E(z,a);Hr(a,x,nt)}else E(z,a)}catch(ot){}}}},te.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=oo(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):Hr(y,x,nt);else if(at!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var ht=b.itemIndex,ft=b.panel.itemArray;at.ov(ft,ht),at.ts(ft,ht,nt)}}else try{if(x!==""){var Lt=z(nt,y,at);at!==null?at.setDataProperty(y,x,Lt):Hr(y,x,Lt)}else{var jt=z(nt,y,at);if(jt!==void 0&&at!==null&&b!==null&&0<=b.itemIndex&&b.panel!==null&&Array.isArray(b.panel.itemArray)){var Xt=b.itemIndex,qt=b.panel.itemArray;at.ov(qt,Xt),at.ts(qt,Xt,jt)}}}catch(ie){}}finally{this.st.remove(a)}}}},Fe.Object.defineProperties(co.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&Ge(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&Ge(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&Ge(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&Ge(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&Ge(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&Ge(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&Ge(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&Ge(this),this.el=a}}}),co.prototype.updateSource=co.prototype.sp,co.prototype.updateTarget=co.prototype.Mv,co.prototype.ofModel=co.prototype.dA,co.prototype.ofObject=co.prototype.cp,co.prototype.makeTwoWay=co.prototype.Kx;var Ix="Binding",MS=new qe(co,"OneWay",1),up=new qe(co,"TwoWay",2);co.className="Binding",co.parseEnum=function(a,y){return function(x){return x=Xn(a,x),x===null?y:x}},co.toString=Mn,co.OneWay=MS,co.TwoWay=up;function rr(a,y,x){ri.call(this),this.Vv=`,
|
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
|
"removedLinkKeys": `,this.md=[],this.$f=new Ln,this.wb=new Jn,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&&(cn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}Qe(rr,ri),rr.constructGraphLinksModel=ri.constructGraphLinksModel,rr.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},te=rr.prototype,te.clear=function(){ri.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},te.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)+":"+Mn(E)}for(y+=`
|
|
|
link data:`,a=this.linkDataArray,x=a.length,b=0;b<x;b++)E=a[b],y+=" "+xa(this,E,!0)+"-->"+xa(this,E,!1)}return y},te.Qv=function(a,y){this.linkKeyProperty===""&&Me("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 Ln,z=new Ln,nt=new Ln,ot=this.vh;a.changes.each(function(ft){ft.model===b&&(ft.modelChange==="linkDataArray"?ft.change===lo?E.add(ft.newValue):ft.change===Eo&&nt.add(ft.oldValue):b.Jc(ft.object)?z.add(ft.object):ft.object!==null&&(ft.object!==null&&ot&&ot.contains(ft.object)?ot.get(ft.object).each(function(Lt){b.Jc(Lt)&&z.add(Lt)}):ft.object instanceof ri||b.lb(ft.object)||TS(b,ft.object).each(function(Lt){z.add(Lt)})))});var at=this.il;at.clear(),E.each(function(ft){at.add(b.Ac(ft)),y||z.add(ft)});var ht=this.kl;return ht.clear(),nt.each(function(ft){ht.add(b.Ac(ft)),y&&z.add(ft)}),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},te.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},te.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)},te.Rv=function(){var a=ri.prototype.Rv.call(this),y=`,
|
|
|
"linkDataArray": `+Uh(this,this.linkDataArray,!0);return a+y},te.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 Ln,b=0;b<a.linkDataArray.length;b++){var E=a.linkDataArray[b];l0(a,y,E,E,x)}return x}te.Pv=function(a,y){this.linkKeyProperty===""&&Me("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 Ln,z=new Ln,nt=new Ln,ot=this.vh;a.changes.each(function(ft){ft.model===b&&(ft.modelChange==="linkDataArray"?ft.change===lo?E.add(ft.newValue):ft.change===Eo&&nt.add(ft.oldValue):b.Jc(ft.object)?z.add(ft.object):ft.object!==null&&(ft.object!==null&&ot&&ot.contains(ft.object)?ot.get(ft.object).each(function(Lt){b.Jc(Lt)&&z.add(Lt)}):ft.object instanceof ri||b.lb(ft.object)||TS(b,ft.object).each(function(Lt){z.add(Lt)})))});var at=this.il;at.clear(),E.each(function(ft){at.add(b.Ac(ft)),y||z.add(ft)});var ht=this.kl;return ht.clear(),nt.each(function(ft){ht.add(b.Ac(ft)),y&&z.add(ft)}),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},te.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)&&Me("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)},rr.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===Vr){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),Hr(x,b,E);return}}else if(a.change===lo){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)}},te=rr.prototype,te.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),Hr(x,this.nodeKeyProperty,a),this.xf(x))}return a}},te.yx=function(a){return xa(this,a,!0)},te.wv=function(a,y){Of(this,a,y,!0)},te.Bx=function(a){return xa(this,a,!1)},te.Bv=function(a,y){Of(this,a,y,!1)};function xa(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=oo(y,a),a!==void 0))){if(Gh(a))return a;Me((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=oo(y,E);z!==x&&(ml(a,z,y),Hr(y,E,x),a.hc(x)===null&&pl(a,x,y),Po(a,b?"linkFromKey":"linkToKey",Vr,E,y,z,x),typeof E=="string"&&a.La(y,E))}else Hr(y,E,x)}}te.zx=function(a){return h0(this,a,!0)},te.xv=function(a,y){If(this,a,y,!0)},te.Cx=function(a){return h0(this,a,!1)},te.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=oo(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=oo(y,E);z===void 0&&(z=""),z!==x&&(Hr(y,E,x),Po(a,b?"linkFromPortId":"linkToPortId",Vr,E,y,z,x),typeof E=="string"&&a.La(y,E))}else Hr(y,E,x)}}te.Ef=function(a){if(a===null)return c0;var y=this.je;return y===""?c0:(a=oo(a,y),a===void 0?c0:a)},te.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var b=oo(a,x);if(b===void 0&&(b=c0),b!==y){if(Array.isArray(b))for(var E=b.length,z=0;z<E;z++)ml(this,b[z],a);for(Hr(a,x,y),E=y.length,z=0;z<E;z++){var nt=y[z];this.hc(nt)===null&&pl(this,nt,a)}Po(this,"linkLabelKeys",Vr,x,a,b,y),typeof x=="string"&&this.La(a,x)}}else Hr(a,x,y)}},te.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=oo(a,x);if(b===void 0)x=[],x.push(y),this.Ls(a,x);else if(Array.isArray(b)){var E=b.indexOf(y);0<=E||(E=b.length,b.push(y),this.Jc(a)&&(this.hc(y)===null&&pl(this,y,a),Po(this,"linkLabelKeys",lo,x,a,null,y,null,E)))}else Me(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},te.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var b=oo(a,x);if(Array.isArray(b)){var E=b.indexOf(y);0>E||(b.splice(E,1),this.Jc(a)&&(ml(this,y,a),Po(this,"linkLabelKeys",Eo,x,a,y,null,E,null)))}else b!==void 0&&Me(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},te.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=oo(a,y),y!==void 0)){if(Gh(y))return y;Me("Key value for link data "+a+" is not a number or a string: "+y)}}},te.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var b=oo(a,x);b!==y&&this.jh(y)===null&&(Hr(a,x,y),b!==void 0&&this.wb.remove(b),this.wb.add(y,a),Po(this,"linkKey",Vr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Hr(a,x,y)}},te.jh=function(a){return a===null&&Me("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&Gh(a)?this.wb.I(a):null},te.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))){Hr(a,y,x);return}if(typeof x=="string"){for(b=2;this.wb.contains(x+b);)b++;Hr(a,y,x+b)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;Hr(a,y,x)}}}}},te.Jc=function(a){return a===null?!1:this.$f.contains(a)},te.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&&Me("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",lo,"linkDataArray",a,null,y,null,b),fy(a,y)}te.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)},te.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=xa(a,y,!0),ml(a,x,y),x=xa(a,y,!1),ml(a,x,y),b=a.Ef(y),Array.isArray(b))for(var E=b.length,z=0;z<E;z++)x=b[z],ml(a,x,y)}te.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)},te.Zz=function(a){if(this.linkKeyProperty===""&&Me("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&cn(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=xa(a,y,!0);x=a.Vl(x),a.hc(x)===null&&pl(a,x,y),x=xa(a,y,!1),x=a.Vl(x),a.hc(x)===null&&pl(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&&pl(a,x,y)}te.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)&&(Bi(a),this.lf!==""&&Hr(a,this.lf,void 0),this.mf!==""&&Hr(a,this.mf,void 0),this.je!==""&&Hr(a,this.je,[])),a},te.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!oo(a,y)},te.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=oo(a,y),y!==void 0)){if(Gh(y))return y;Me("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},te.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var b=oo(a,x);b!==y&&(ml(this,b,a),Hr(a,x,y),this.hc(y)===null&&pl(this,y,a),Po(this,"nodeGroupKey",Vr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Hr(a,x,y)}},rr.prototype.copyNodeData=function(a){return a===null?null:(a=ri.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||oo(a,this.Je)===void 0||Hr(a,this.Je,void 0),a)},rr.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=oo(a,y);b!==x&&(Hr(a,y,x),this.Fs(a,y,b,x))},te=rr.prototype,te.Do=function(a,y){if(y){var x=this.lb(a),b=this.Jc(a),E;for(E in y)E==="__gohashid"||x&&E===this.nodeKeyProperty||x&&E===this.nodeIsGroupProperty&&oo(a,E)===y[E]||b&&E===this.linkKeyProperty||this.setDataProperty(a,E,y[E])}},te.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(xa(this,b,!0)===E){var nt=this.lf;Hr(b,nt,z),Po(this,"linkFromKey",Vr,nt,b,E,z),typeof nt=="string"&&this.La(b,nt)}if(xa(this,b,!1)===E&&(nt=this.mf,Hr(b,nt,z),Po(this,"linkToKey",Vr,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",lo,at,b,E,z,ht,ht))}},te.qv=function(a,y,x){if(this.lh(a)===y){var b=this.Je;Hr(a,b,x),Po(this,"nodeGroupKey",Vr,b,a,y,x),typeof b=="string"&&this.La(a,b)}},te.Lv=function(){ri.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)fy(this,a[x])},te.fm=function(a){ri.prototype.fm.call(this,a),a=this.wa(a);var y=ap(this,a);if(y!==null){var x=ln();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",Vr,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}else if(xa(this,b,!0)===a&&(E=this.lf,Po(this,"linkFromKey",Vr,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)),xa(this,b,!1)===a&&(E=this.mf,Po(this,"linkToKey",Vr,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",lo,nt,b,a,a,ot,ot),x.push(b))}for(y=0;y<x.length;y++)ml(this,a,x[y]);xn(x)}},te.em=function(a){ri.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&pl(this,y,a)},te.qp=function(a){ri.prototype.qp.call(this,a);var y=this.lh(a);ml(this,y,a)},te.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=oo(a,y),y===void 0))return"";if(typeof y=="string")return y;Me("getCategoryForLinkData found a non-string category for "+a+": "+y)},rr.prototype.getLinkCategoryForData=function(a){return this.ps(a)},rr.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var b=oo(a,x);b===void 0&&(b=""),b!==y&&(Hr(a,x,y),Po(this,"linkCategory",Vr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Hr(a,x,y)}},rr.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},te=rr.prototype,te.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))}te.Wj=function(){return!0},te.ri=function(){return!0},te.xs=function(){return!0},te.Xj=function(){return!0},Fe.Object.defineProperties(rr.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)||Me("GraphLinksModel.linkDataArray must only contain Objects, not: "+E),wr(E)}if(this.md=a,this.linkKeyProperty!==""){for(b=new Cn,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 Ln,E=0;E<x;E++)b.add(a[E]);for(this.$f=b,Po(this,"linkDataArray",Vr,"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"}}}),rr.prototype.setCategoryForLinkData=rr.prototype.lp,rr.prototype.getCategoryForLinkData=rr.prototype.ps,rr.prototype.assignAllDataProperties=rr.prototype.Do,rr.prototype.setGroupKeyForNodeData=rr.prototype.mp,rr.prototype.getGroupKeyForNodeData=rr.prototype.lh,rr.prototype.isGroupForNodeData=rr.prototype.Yu,rr.prototype.copyLinkData=rr.prototype.Jo,rr.prototype.mergeLinkDataArray=rr.prototype.Zz,rr.prototype.removeLinkDataCollection=rr.prototype.lA,rr.prototype.removeLinkData=rr.prototype.bm,rr.prototype.addLinkDataCollection=rr.prototype.Ey,rr.prototype.addLinkData=rr.prototype.fi,rr.prototype.containsLinkData=rr.prototype.Jc,rr.prototype.makeLinkDataKeyUnique=rr.prototype.Bs,rr.prototype.findLinkDataForKey=rr.prototype.jh,rr.prototype.setKeyForLinkData=rr.prototype.Ks,rr.prototype.getKeyForLinkData=rr.prototype.Ac,rr.prototype.removeLabelKeyForLinkData=rr.prototype.Qx,rr.prototype.addLabelKeyForLinkData=rr.prototype.Bu,rr.prototype.setLabelKeysForLinkData=rr.prototype.Ls,rr.prototype.getLabelKeysForLinkData=rr.prototype.Ef,rr.prototype.setToPortIdForLinkData=rr.prototype.Cv,rr.prototype.getToPortIdForLinkData=rr.prototype.Cx,rr.prototype.setFromPortIdForLinkData=rr.prototype.xv,rr.prototype.getFromPortIdForLinkData=rr.prototype.zx,rr.prototype.setToKeyForLinkData=rr.prototype.Bv,rr.prototype.getToKeyForLinkData=rr.prototype.Bx,rr.prototype.setFromKeyForLinkData=rr.prototype.wv,rr.prototype.getFromKeyForLinkData=rr.prototype.yx,rr.prototype.clear=rr.prototype.clear;var c0=Object.freeze([]);rr.className="GraphLinksModel",sl.GraphLinksModel=rr,ri.constructGraphLinksModel=ri.constructGraphLinksModel=function(){return new rr},ri.initDiagramModel=cy=function(){return new rr};function Ns(a,y){ri.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(cn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Qe(Ns,ri),Ns.constructGraphLinksModel=ri.constructGraphLinksModel,Ns.prototype.cloneProtected=function(a){ri.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},te=Ns.prototype,te.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)+":"+Mn(E)}}return y},te.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},te.gp=function(a){ri.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},te.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&Me("applyIncrementalJson cannot change Model properties"),ri.prototype.fp.call(this,a)},te.Vl=function(a){return a},te.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=oo(a,y),y!==void 0)){if(Gh(y))return y;Me("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},te.qe=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Ke;if(x!=="")if(y=this.Vl(y),this.lb(a)){var b=oo(a,x);b!==y&&(ml(this,b,a),Hr(a,x,y),this.hc(y)===null&&pl(this,y,a),Po(this,"nodeParentKey",Vr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Hr(a,x,y)}},te.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=oo(a,y),y===void 0)?"":typeof y=="string"?y:(Me("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Ns.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Ns.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var b=oo(a,x);b===void 0&&(b=""),b!==y&&(Hr(a,x,y),Po(this,"parentLinkCategory",Vr,x,a,b,y),typeof x=="string"&&this.La(a,x))}else Hr(a,x,y)}},Ns.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Ns.prototype.copyNodeData=function(a){return a===null?null:(a=ri.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||oo(a,this.Ke)===void 0||Hr(a,this.Ke,void 0),a)},Ns.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeParentKeyProperty){this.qe(a,x);return}}var b=oo(a,y);b!==x&&(Hr(a,y,x),this.Fs(a,y,b,x))},te=Ns.prototype,te.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)},te.qv=function(a,y,x){if(this.mh(a)===y){var b=this.Ke;Hr(a,b,x),Po(this,"nodeParentKey",Vr,b,a,y,x),typeof b=="string"&&this.La(a,b)}},te.fm=function(a){ri.prototype.fm.call(this,a),a=this.wa(a);var y=ap(this,a);if(y!==null){var x=ln();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",Vr,E,b,a,a),typeof E=="string"&&this.La(b,E),x.push(b)}}for(y=0;y<x.length;y++)ml(this,a,x[y]);xn(x)}},te.em=function(a){ri.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&pl(this,y,a)},te.qp=function(a){ri.prototype.qp.call(this,a);var y=this.mh(a);ml(this,y,a)},te.lm=function(a,y){ri.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},te.Tl=function(){return!0},te.xs=function(){return!0},Fe.Object.defineProperties(Ns.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"}}}),Ns.prototype.setParentLinkCategoryForNodeData=Ns.prototype.Ms,Ns.prototype.getParentLinkCategoryForNodeData=Ns.prototype.ss,Ns.prototype.setParentKeyForNodeData=Ns.prototype.qe,Ns.prototype.getParentKeyForNodeData=Ns.prototype.mh,Ns.className="TreeModel",sl.TreeModel=Ns;function Jr(a){Ur.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=al,this.Ti=0,this.Zv=new xe,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=al,this.K=Os,this.nd=Ff,this.hd=oy,this.tf=6,this.Nn=y0,a&&Object.assign(this,a)}Qe(Jr,Ur),Jr.prototype.cloneProtected=function(a){Ur.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},Jr.prototype.qb=function(a){a.classType===Jr?a===m0||a===v0||a===g0||a===p0||a===Ff?this.sorting=a:a===Dc||a===Df||a===Os||a===Vh?this.direction=a:a===$u||a===Kh||a===al||a===ll?this.arrangement=a:(a===Pd||a===y0)&&(this.nodeDiameterFormula=a):Ur.prototype.qb.call(this,a)},Jr.prototype.createNetwork=function(){return new Bf(this)},Jr.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 Cn;y.addAll(a.iterator),a=new Cn;var x=new Cn,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 ft=this.aspectRatio;(!isFinite(ft)||0>=ft)&&(ft=1);var Lt=this.startAngle;isFinite(Lt)||(Lt=0);var jt=this.sweepAngle;if((!isFinite(jt)||360<jt||1>jt)&&(jt=360),y=this.spacing,isFinite(y)||(y=NaN),ot===ll&&at===Pd?ot=al:ot===ll&&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===ll&&a.reverse(),b=new Cn,b.addAll(a),b.addAll(x)):(this.arrangement===ll&&x.reverse(),b=new Cn,b.addAll(x),b.addAll(a))}at=b.length;for(var Xt=z=E=0;Xt<b.length;Xt++){var qt=Lt+jt*z*(this.direction===Os?1:-1)/at,ie=b.M(Xt).diameter;isNaN(ie)&&(ie=Zh(b.M(Xt),qt)),360>jt&&(Xt===0||Xt===b.length-1)&&(ie/=2),E+=ie,z++}if(isNaN(ht)||ot===ll){if(isNaN(y)&&(y=6),ot!==al&&ot!==ll){for(z=-1/0,nt=0;nt<at;nt++)Xt=b.M(nt),E=b.M(nt===at-1?0:nt+1),isNaN(Xt.diameter)&&Zh(Xt,0),isNaN(E.diameter)&&Zh(E,0),z=Math.max(z,(Xt.diameter+E.diameter)/2);nt=z+y,ot===$u?ht=(z+y)/(2*Math.PI/at):ht=d0(this,nt*(360<=jt?at:at-1),ft,Lt*Math.PI/180,jt*Math.PI/180)}else ht=d0(this,E+(360<=jt?at:at-1)*(ot!==ll?y:1.6*y),ft,Lt*Math.PI/180,jt*Math.PI/180);z=ht*ft}else if(z=ht*ft,Xt=gy(this,ht,z,Lt*Math.PI/180,jt*Math.PI/180),isNaN(y))(ot===al||ot===ll)&&(y=(Xt-E)/(360<=jt?at:at-1));else if(ot===al||ot===ll)Xt=(Xt-E)/(360<=jt?at:at-1),Xt<y?(ht=d0(this,E+y*(360<=jt?at:at-1),ft,Lt*Math.PI/180,jt*Math.PI/180),z=ht*ft):y=Xt;else{for(nt=-1/0,E=0;E<at;E++)qt=b.M(E),ie=b.M(E===at-1?0:E+1),isNaN(qt.diameter)&&Zh(qt,0),isNaN(ie.diameter)&&Zh(ie,0),nt=Math.max(nt,(qt.diameter+ie.diameter)/2);nt+=y,E=d0(this,nt*(360<=jt?at:at-1),ft,Lt*Math.PI/180,jt*Math.PI/180),E>ht?(ht=E,z=ht*ft):nt=Xt/(360<=jt?at:at-1)}if(this.kw=ot,this.lc=ht,this.Zm=ft,this.lw=Lt,this.Wp=jt,this.Ti=y,this.me=z,this.Jp=nt,y=b,b=this.kw,ot=this.lc,ht=this.lw,ft=this.Wp,Lt=this.Ti,jt=this.me,at=this.Jp,this.direction!==Dc&&this.direction!==Df||b!==ll)if(this.direction===Dc||this.direction===Df){switch(nt=0,b){case Kh:nt=180*f0(this,ot,jt,ht,at)/Math.PI;break;case al: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,jt,ht,Lt+(y+at)/2)/Math.PI;break;case $u:nt=ft/y.length}if(this.direction===Dc){switch(b){case Kh:dp(this,a,ht,Vh);break;case al:cp(this,a,ht,Vh);break;case $u:hp(this,a,ft/2,ht,Vh)}switch(b){case Kh:dp(this,x,ht+nt,Os);break;case al:cp(this,x,ht+nt,Os);break;case $u:hp(this,x,ft/2,ht+nt,Os)}}else{switch(b){case Kh:dp(this,x,ht,Vh);break;case al:cp(this,x,ht,Vh);break;case $u:hp(this,x,ft/2,ht,Vh)}switch(b){case Kh:dp(this,a,ht+nt,Os);break;case al:cp(this,a,ht+nt,Os);break;case $u:hp(this,a,ft/2,ht+nt,Os)}}}else switch(b){case Kh:dp(this,y,ht,this.direction);break;case al:cp(this,y,ht,this.direction);break;case $u:hp(this,y,ft,ht,this.direction);break;case ll:IS(this,y,ft,ht,this.direction)}else IS(this,y,ft,ht-ft/2,Os)}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===Os?at*x/(360<=z?ot:ot-1):-(at*x)/ot),ft=y.M(at),Lt=nt*Math.tan(ht)/a;Lt=Math.sqrt((nt*nt+a*a*Lt*Lt)/(1+Lt*Lt)),ft.centerX=Lt*Math.cos(ht),ft.centerY=Lt*Math.sin(ht),ft.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),ft=y.M(at===ot-1?0:at+1),Lt=z*Math.sin(x);ht.centerX=E*Math.cos(x),ht.centerY=Lt,ht.actualAngle=180*x/Math.PI,isNaN(ht.diameter)&&Zh(ht,0),isNaN(ft.diameter)&&Zh(ft,0),ht=f0(a,E,z,b===Os?x:-x,(ht.diameter+ft.diameter)/2+nt),x+=b===Os?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===Os?x:-x,nt),x+=b===Os?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===Os?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),ft=y.Fa();if(ft.length===3)ft[0].centerX=z,ft[0].centerY=0,ft[1].centerX=ft[0].centerX-ft[0].width/2-ft[1].width/2-nt,ft[1].y=ft[0].y,ft[2].centerX=(ft[0].centerX+ft[1].centerX)/2,ft[2].y=ft[0].y-ft[2].height-nt;else if(ft.length===4)ft[0].centerX=z,ft[0].centerY=0,ft[2].centerX=-ft[0].centerX,ft[2].centerY=ft[0].centerY,ft[1].centerX=0,ft[1].y=Math.min(ft[0].y,ft[2].y)-ft[1].height-nt,ft[3].centerX=0,ft[3].y=Math.max(ft[0].y+ft[0].height+nt,ft[2].y+ft[2].height+nt);else{z=xe.alloc();for(var Lt=0;Lt<ft.length&&(ft[Lt].centerX=at,ft[Lt].centerY=ht,!(Lt>=ft.length-1));Lt++)BS(a,at,ht,ft,Lt,E,z)||RS(a,at,ht,ft,Lt,E,z),at=z.x,ht=z.y;if(xe.free(z),a.mj++,!(23<a.mj)){at=ft[0].centerX,ht=ft[0].centerY,z=ft[ft.length-1].centerX,Lt=ft[ft.length-1].centerY;var jt=Math.abs(at-z)-((ft[0].width+ft[ft.length-1].width)/2+nt),Xt=Math.abs(ht-Lt)-((ft[0].height+ft[ft.length-1].height)/2+nt);nt=0,1>Math.abs(Xt)?Math.abs(at-z)<(ft[0].width+ft[ft.length-1].width)/2&&(nt=0):nt=0<Xt?Xt:1>Math.abs(jt)?0:jt,at=Math.abs(z)>Math.abs(Lt)?0<z!=ht>Lt:0<Lt!=at<z,(at=E===Os?at:!at)&&(nt=-Math.abs(nt),nt=Math.min(nt,-ft[ft.length-1].width),nt=Math.min(nt,-ft[ft.length-1].height)),a.Xr.compare(nt,ft),1<Math.abs(nt)&&(a.lc=8>a.mj?a.lc-nt/(2*Math.PI):5>ft.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),ft=xe.alloc(),Lt=y.Fa(),jt=0;jt<Lt.length&&(Lt[jt].centerX=at,Lt[jt].centerY=ht,!(jt>=Lt.length-1));jt++)BS(a,at,ht,Lt,jt,E,ft)||RS(a,at,ht,Lt,jt,E,ft),at=ft.x,ht=ft.y;if(xe.free(ft),a.mj++,!(23<a.mj)){if(at=Math.atan2(ht,at),at=E===Os?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<Lt.length;at++)nt.mk[at]=Lt[at].bounds.x,nt.tm[at]=Lt[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 ft=!1;if(0<=x!=(z===Os)){if(z=y+a,z>ot){if(z=y-a,z<-ot)return nt.x=z,nt.y=ht,!1;ft=!0}}else if(z=y-a,z<-ot){if(z=y+a,z>ot)return nt.x=z,nt.y=ht,!1;ft=!0}return ht=Math.sqrt(1-Math.min(1,z*z/(ot*ot)))*at,0>x!==ft&&(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===Os)){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}Jr.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},Jr.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 xe(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))},Jr.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 ft=Math.sin(at);nt+=Math.sqrt(1-a*a*ft*ft)*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}}Jr.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:Me("Invalid sorting type.")}return a};function Dx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new Cn;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}Jr.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 Cn;for(var at=0,ht=0;ht<y.length;ht++){var ft=y[ht].length;if(ft===1)b.push(ht);else if(ft===0)E.add(a.M(ht));else{if(at===0)x.push(ht);else{for(var Lt=ft=1/0,jt=-1,Xt=[],qt=0;qt<x.length;qt++)0>y[x[qt]].indexOf(x[qt===x.length-1?0:qt+1])&&Xt.push(qt===x.length-1?0:qt+1);if(Xt.length===0)for(qt=0;qt<x.length;qt++)Xt.push(qt);for(qt=0;qt<Xt.length;qt++){for(var ie=Xt[qt],be=y[ht],ve=0,Te=0;Te<nt.length;Te++){var Be=z[nt[Te]],ze=z[ot[Te]];if(Be<ze){var Ve=Be;Be=ze}else Ve=ze;if(Ve<ie&&ie<=Be)for(ze=0;ze<be.length;ze++){var an=be[ze];0>x.indexOf(an)||Ve<z[an]&&z[an]<Be||Ve===z[an]||Be===z[an]||ve++}else for(ze=0;ze<be.length;ze++)an=be[ze],0>x.indexOf(an)||Ve<z[an]&&z[an]<Be&&Ve!==z[an]&&Be!==z[an]&&ve++}for(be=ve,Te=ve=0;Te<y[ht].length;Te++)Ve=x.indexOf(y[ht][Te]),0<=Ve&&(Ve=Math.abs(ie-(Ve>=ie?Ve+1:Ve)),ve+=Ve<x.length+1-Ve?Ve:x.length+1-Ve);for(Te=0;Te<nt.length;Te++)Ve=z[nt[Te]],Be=z[ot[Te]],Ve>=ie&&Ve++,Be>=ie&&Be++,Ve>Be&&(ze=Be,Be=Ve,Ve=ze),Be-Ve<(x.length+2)/2==(Ve<ie&&ie<=Be)&&ve++;(be<ft||be===ft&&ve<Lt)&&(ft=be,Lt=ve,jt=ie)}for(x.splice(jt,0,ht),ft=0;ft<x.length;ft++)z[x[ft]]=ft;for(ft=0;ft<y[ht].length;ft++)Lt=y[ht][ft],0<=x.indexOf(Lt)&&(nt.push(ht),ot.push(Lt))}at++}}for(nt=x.length;;){for(z=!0,ot=0;ot<b.length;ot++)if(at=b[ot],ht=y[at][0],ft=x.indexOf(ht),0<=ft){for(jt=Lt=0;jt<y[ht].length;jt++)Xt=x.indexOf(y[ht][jt]),0>Xt||Xt===ft||(qt=Xt>ft?Xt-ft:ft-Xt,Lt+=Xt<ft!=qt>nt-qt?1:-1);x.splice(0>Lt?ft:ft+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},Fe.Object.defineProperties(Jr.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!==ll&&a!==al&&a!==Kh&&a!==$u||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Os&&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 al=new qe(Jr,"ConstantSpacing",0),Kh=new qe(Jr,"ConstantDistance",1),$u=new qe(Jr,"ConstantAngle",2),ll=new qe(Jr,"Packed",3),Os=new qe(Jr,"Clockwise",4),Vh=new qe(Jr,"Counterclockwise",5),Dc=new qe(Jr,"BidirectionalLeft",6),Df=new qe(Jr,"BidirectionalRight",7),g0=new qe(Jr,"Forwards",8),p0=new qe(Jr,"Reverse",9),m0=new qe(Jr,"Ascending",10),v0=new qe(Jr,"Descending",11),Ff=new qe(Jr,"Optimized",12),y0=new qe(Jr,"Pythagorean",13),Pd=new qe(Jr,"Circular",14);Jr.className="CircularLayout",Jr.ConstantSpacing=al,Jr.ConstantDistance=Kh,Jr.ConstantAngle=$u,Jr.Packed=ll,Jr.Clockwise=Os,Jr.Counterclockwise=Vh,Jr.BidirectionalLeft=Dc,Jr.BidirectionalRight=Df,Jr.Forwards=g0,Jr.Reverse=p0,Jr.Ascending=m0,Jr.Descending=v0,Jr.Optimized=Ff,Jr.Pythagorean=y0,Jr.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===ll)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}Fe.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){Ur.call(this),this.ah=null,this.An=0,this.$d=new zn(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,Ur),is.prototype.cloneProtected=function(a){Ur.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=ln(),ft=0;ft<ot+y.vertexes.count+2;ft++)ht[ft]=null;ot=0,nt.reset();for(var Lt=Sn.alloc();nt.next();)if(ft=nt.value,this.computeBounds(ft,Lt),at)at=!1,E=Lt.x+Lt.width/2,z=Lt.y+Lt.height/2,ht[0]=new xe(Lt.x+Lt.width+b.width,Lt.y),ht[1]=new xe(Lt.x,Lt.y+Lt.height+b.height),ot=2;else{var jt=zS(ht,ot,E,z,Lt.width,Lt.height,b),Xt=ht[jt],qt=new xe(Xt.x+Lt.width+b.width,Xt.y),ie=new xe(Xt.x,Xt.y+Lt.height+b.height);for(jt+1<ot&&ht.splice(jt+1,0,null),ht[jt]=qt,ht[jt+1]=ie,ot++,jt=Xt.x-Lt.x,Xt=Xt.y-Lt.y,ft=ft.vertexes.iterator;ft.next();)qt=ft.value,qt.centerX+=jt,qt.centerY+=Xt}for(Sn.free(Lt),ft=y.vertexes.iterator;ft.next();)nt=ft.value,jt=nt.bounds,2>ot?(E=jt.x+jt.width/2,z=jt.y+jt.height/2,ht[0]=new xe(jt.x+jt.width+b.width,jt.y),ht[1]=new xe(jt.x,jt.y+jt.height+b.height),ot=2):(at=zS(ht,ot,E,z,jt.width,jt.height,b),Lt=ht[at],Xt=new xe(Lt.x+jt.width+b.width,Lt.y),jt=new xe(Lt.x,Lt.y+jt.height+b.height),at+1<ot&&ht.splice(at+1,0,null),ht[at]=Xt,ht[at+1]=jt,ot++,nt.centerX=Lt.x+nt.width/2,nt.centerY=Lt.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 Cn),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 Cn,E.Hj=ot),ot.add(nt),E.Vd--,E.sh+=nt.sh):nt.network===b&&(ot=nt.Hj,ot===null&&(ot=new Cn,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,ft=at.count-nt;ft<at.count;ft++){var Lt=at.M(ft),jt=null;for(z=Lt.edges.iterator;z.next();){var Xt=z.value;if(Xt.Ax(Lt)===E){jt=Xt;break}}jt!==null&&(ht+=jt.length,ot+=Lt.width*Lt.height)}z=E.centerX,at=E.centerY,ft=E.width,Lt=E.height,jt=E.focus,Xt=ft*Lt,1>Xt&&(Xt=1),ot=Je.sqrt((ot+Xt+ht*ht*4/(nt*nt))/Xt),nt=(ot-1)*ft/2,ot=(ot-1)*Lt/2,E.bounds=new Sn(z-jt.x-nt,at-jt.y-ot,ft+2*nt,Lt+2*ot),E.focus=new xe(jt.x+nt,jt.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 Sn(b.centerX-z,b.centerY-nt,E.Ss,E.Qs),b.focus=new xe(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,ft=y.vertexes.iterator;ft.next();){var Lt=ft.value;1>=Lt.Vd?at++:(ot=!0,ht++,nt+=Math.atan2(y.centerY-Lt.centerY,y.centerX-Lt.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(Xt,qt){return Xt===null||qt===null||Xt===qt?0:qt.width*qt.height-Xt.width*Xt.height}),ot=at%2===0?0:1,x=x.iterator;x.next();)if(at=x.value,!(1<at.Vd||a.isFixed(at))){for(ft=null,Lt=at.edges.iterator;Lt.next();){ft=Lt.value;break}Lt=at.width;var jt=at.height;Lt=Je.sqrt(Lt*Lt+jt*jt)/2,ft=z+ft.length+Lt,Lt=nt+(y*(ot/2>>1)+ht)*(ot%2===0?1:-1),at.centerX=b+ft*Math.cos(Lt),at.centerY=E+ft*Math.sin(Lt),ot++}}}}function zS(a,y,x,b,E,z,nt){var ot=9e19,at=-1,ht=0;t:for(;ht<y;ht++){var ft=a[ht],Lt=ft.x-x,jt=ft.y-b;if(Lt=Lt*Lt+jt*jt,Lt<ot){for(jt=ht-1;0<=jt;jt--)if(a[jt].y>ft.y&&a[jt].x-ft.x<E+nt.width)continue t;for(jt=ht+1;jt<y;jt++)if(a[jt].x>ft.x&&a[jt].y-ft.y<z+nt.height)continue t;at=ht,ot=Lt}}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(ie,be){return ie===null||be===null||ie===be?0:ie.centerX-be.centerX}):y.sort(function(ie,be){return ie===null||be===null||ie===be?0:ie.centerY-be.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 ft=b.y+ot.y;b=nt.charge*a.electricalFieldX(at,ft),ht=nt.charge*a.electricalFieldY(at,ft),b+=nt.mass*a.gravitationalFieldX(at,ft),ht+=nt.mass*a.gravitationalFieldY(at,ft),nt.forceX+=b,nt.forceY+=ht;for(var Lt=z+1;Lt<y.length;Lt++){var jt=y[Lt];if(jt!==nt){b=jt.bounds,ot=jt.focus,ht=b.x+ot.x;var Xt=b.y+ot.y;if(at-ht>x||ht-at>x){if(E)break}else if(ft-Xt>x||Xt-ft>x){if(!E)break}else{var qt=HS(nt,jt);1>qt?(b=a.randomNumberGenerator,b===null&&(a.randomNumberGenerator=b=new x0),qt=b.random(),ot=b.random(),at>ht?(b=Math.abs(jt.bounds.right-nt.bounds.x),b=(1+b)*qt):at<ht?(b=Math.abs(jt.bounds.x-nt.bounds.right),b=-(1+b)*qt):(b=Math.max(jt.width,nt.width),b=(1+b)*qt-b/2),ft>Xt?(ht=Math.abs(jt.bounds.bottom-nt.bounds.y),ht=(1+ht)*ot):at<ht?(ht=Math.abs(jt.bounds.y-nt.bounds.bottom),ht=-(1+ht)*ot):(ht=Math.max(jt.height,nt.height),ht=(1+ht)*ot-ht/2)):(ot=-(nt.charge*jt.charge)/(qt*qt),b=(ht-at)/qt*ot,ht=(Xt-ft)/qt*ot),nt.forceX+=b,nt.forceY+=ht,jt.forceX-=b,jt.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,ft=z.bounds,Lt=z.focus,at=ft.x+Lt.x,ft=ft.y+Lt.y,Lt=HS(x,z),1>Lt?(Lt=a.randomNumberGenerator,Lt===null&&(a.randomNumberGenerator=Lt=new x0),ot=Lt.random(),Lt=Lt.random(),b=(b>at?1:-1)*(1+(z.width>x.width?z.width:x.width))*ot,ht=(nt>ft?1:-1)*(1+(z.height>x.height?z.height:x.height))*Lt):(ot=ot.stiffness*(Lt-ot.length),b=(at-b)/Lt*ot,ht=(ft-nt)/Lt*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=Pr,y.toSpot=Pr)}},is.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=Sn.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,Sn.free(x)}x=Sn.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()}Sn.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},Fe.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"&&Me('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),Fe.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),Fe.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 Cr(a){Ur.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 xe,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}Qe(Cr,Ur),Cr.prototype.cloneProtected=function(a){Ur.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},Cr.prototype.qb=function(a){a.classType===Cr?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:Me("Unknown enum value: "+a):Ur.prototype.qb.call(this,a)},Cr.prototype.createNetwork=function(){return new jf(this)},Cr.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 ft=E.node;if(nt=z.node,ft===null||nt===null)continue;var Lt=ot.fromNode;at=ot.toNode;for(var jt=ot.fromPort;jt!==null&&!jt.Ed();)jt=jt.panel;for(ot=ot.toPort;ot!==null&&!ot.Ed();)ot=ot.panel;if(b.rev){ht=Lt;var Xt=jt;Lt=at,jt=ot,at=ht,ot=Xt}var qt=E.focus;ht=z.focus;var ie=b.rev?z.bounds:E.bounds;Xt=xe.alloc(),ft!==Lt?ie.w()&&Lt.isVisible()?Lt.actualBounds.w()?(Yu(Lt,jt,ar,Xt),Xt.x+=Lt.actualBounds.x-ie.x,Xt.y+=Lt.actualBounds.y-ie.y):(Yu(Lt,jt,ar,Xt),Xt.w()||Xt.assign(qt)):Xt.assign(qt):ie.w()?(Yu(Lt,jt,ar,Xt),Xt.w()||Xt.assign(qt)):Xt.assign(qt),Lt=b.rev?E.bounds:z.bounds,ft=xe.alloc(),nt!==at?Lt.w()&&at.isVisible()?at.actualBounds.w()?(Yu(at,ot,ar,ft),ft.x+=at.actualBounds.x-Lt.x,ft.y+=at.actualBounds.y-Lt.y):(Yu(at,ot,ar,ft),ft.w()||ft.assign(ht)):ft.assign(ht):Lt.w()?(Yu(at,ot,ar,ft),ft.w()||ft.assign(ht)):ft.assign(ht),this.K===90||this.K===270?(nt=Math.round((Xt.x-qt.x)/this.kc),at=Xt.x,ot=Math.round((ft.x-ht.x)/this.kc),ht=ft.x):(nt=Math.round((Xt.y-qt.y)/this.kc),at=Xt.y,ot=Math.round((ft.y-ht.y)/this.kc),ht=ft.y),xe.free(Xt),xe.free(ft),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(Xt=E.layer,ft=z.layer,Lt=0,ie=b.link,ie!==null){var be=ie.fromPort,ve=ie.toPort;if(be!==null&&ve!==null){var Te=ie.fromNode;if(jt=ie.toNode,Te!==null&&jt!==null){var Be=C0(this,!0),ze=C0(this,!1),Ve=this.setsPortSpots?Be:ie.computeSpot(!0,be);qt=this.setsPortSpots?ze:ie.computeSpot(!1,ve);var an=ie.isOrthogonal;Ve.$c()&&Ve.Hf(ze)&&qt.$c()&&qt.Hf(Be)?Lt=0:(Be=ie.getLinkPoint(Te,be,Ve,!0,an,jt,ve,xe.alloc()),ze=ie.getLinkDirection(Te,be,Be,Ve,!0,an,jt,ve),xe.free(Be),Ve.ys()||ze!==QS(this,b,!0)?this.setsPortSpots&&Te!==null&&Te.ports.count===1&&b.rev&&(Lt+=1):Lt+=1,Ve=ie.getLinkPoint(jt,ve,qt,!1,an,Te,be,xe.alloc()),ie=ie.getLinkDirection(jt,ve,Ve,qt,!1,an,Te,be),xe.free(Ve),qt.ys()||ie!==QS(this,b,!1)?this.setsPortSpots&&jt!==null&&jt.ports.count===1&&b.rev&&(Lt+=2):Lt+=2)}}}if(jt=Lt,Lt=jt===1||jt===3,(jt=jt===2||jt===3)&&(qt=a.createVertex(),qt.node=null,qt.Dj=1,qt.layer=Xt,qt.near=E,a.dh(qt),E=a.Zj(E,qt,b.link),E.valid=!1,E.rev=b.rev,E.portFromColOffset=nt,E.portToColOffset=0,E.portFromPos=at,E.portToPos=0,E=qt),ie=1,Lt&&ie--,Xt-ft>ie&&0<Xt){for(b.valid=!1,qt=a.createVertex(),qt.node=null,qt.Dj=2,qt.layer=Xt-1,a.dh(qt),E=a.Zj(E,qt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=jt?0:nt,E.portToColOffset=0,E.portFromPos=jt?0:at,E.portToPos=0,E=qt,Xt--;Xt-ft>ie&&0<Xt;)qt=a.createVertex(),qt.node=null,qt.Dj=3,qt.layer=Xt-1,a.dh(qt),E=a.Zj(E,qt,b.link),E.valid=!0,E.rev=b.rev,E.portFromColOffset=0,E.portToColOffset=0,E.portFromPos=0,E.portToPos=0,E=qt,Xt--;E=a.Zj(qt,z,b.link),E.valid=!Lt,Lt&&(qt.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},Cr.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}Cr.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},Cr.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 Ws(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 Fa(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 ft=nt+1;ft<at;ft++){var Lt=b[ft];Lt.near===ht&&Lt.Dj===ht.Dj||ot++}else for(ft=nt-1;ft>at;ft--)Lt=b[ft],Lt.near===ht&&Lt.Dj===ht.Dj||ot++;var jt;if(0<=x)for(at=b[nt].sourceEdgesArrayAccess,ht=0;ht<at.length;ht++){var Xt=at[ht];if(Xt.valid&&Xt.fromVertex.layer!==y)for(Lt=Xt.fromVertex.index,ft=Xt.portToPos,Xt=Xt.portFromPos,jt=ht+1;jt<at.length;jt++){var qt=at[jt];if(qt.valid&&qt.fromVertex.layer!==y){var ie=qt.fromVertex.index,be=qt.portToPos;qt=qt.portFromPos,ft<be&&(Lt>ie||Lt===ie&&Xt>qt)&&ot++,be<ft&&(ie>Lt||ie===Lt&&qt>Xt)&&ot++}}}if(0>=x){for(at=b[nt].destinationEdgesArrayAccess,ht=0;ht<at.length;ht++)if(Xt=at[ht],Xt.valid&&Xt.toVertex.layer!==y)for(Lt=Xt.toVertex.index,ft=Xt.portToPos,Xt=Xt.portFromPos,jt=ht+1;jt<at.length;jt++)qt=at[jt],qt.valid&&qt.toVertex.layer!==y&&(ie=qt.toVertex.index,be=qt.portToPos,qt=qt.portFromPos,Xt<qt&&(Lt>ie||Lt===ie&&ft>be)&&ot++,qt<Xt&&(ie>Lt||ie===Lt&&be>ft)&&ot++)}for(z[nt*E+nt]=ot,at=nt+1;at<E;at++){var ve=0,Te=0;if(0<=x){ot=b[nt].sourceEdgesArrayAccess;var Be=b[at].sourceEdgesArrayAccess;for(ht=0;ht<ot.length;ht++)if(Xt=ot[ht],Xt.valid&&Xt.fromVertex.layer!==y)for(Lt=Xt.fromVertex.index,Xt=Xt.portFromPos,jt=0;jt<Be.length;jt++)qt=Be[jt],qt.valid&&qt.fromVertex.layer!==y&&(ie=qt.fromVertex.index,qt=qt.portFromPos,(Lt<ie||Lt===ie&&Xt<qt)&&Te++,(ie<Lt||ie===Lt&&qt<Xt)&&ve++)}if(0>=x){for(ot=b[nt].destinationEdgesArrayAccess,Be=b[at].destinationEdgesArrayAccess,ht=0;ht<ot.length;ht++)if(Xt=ot[ht],Xt.valid&&Xt.toVertex.layer!==y)for(Lt=Xt.toVertex.index,ft=Xt.portToPos,jt=0;jt<Be.length;jt++)qt=Be[jt],qt.valid&&qt.toVertex.layer!==y&&(ie=qt.toVertex.index,be=qt.portToPos,(Lt<ie||Lt===ie&&ft<be)&&Te++,(ie<Lt||ie===Lt&&be<ft)&&ve++)}z[nt*E+at]=ve,z[at*E+nt]=Te}}return Yh(a,y,b),z}Cr.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 ft=0;ft<ht.length;ft++){var Lt=ht[ft];if(Lt.valid&&Lt.toVertex.layer!==E){var jt=Lt.fromVertex.column+Lt.portFromColOffset,Xt=Lt.toVertex.column+Lt.portToColOffset;ot+=(Math.abs(jt-Xt)+1)*py(Lt)}}}Yh(b,E,z),y+=ot}return y}Cr.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 ft=0,Lt=0,jt=ot.near;if(jt!==null&&jt.layer===ot.layer&&(ft+=jt.column-1,Lt++),at!==null)for(jt=0;jt<at.length;jt++){ot=at[jt];var Xt=ot.fromVertex;ot.valid&&!ot.rev&&Xt.layer!==y&&(ft+=Xt.column,Lt++)}if(ht!==null)for(at=0;at<ht.length;at++)ot=ht[at],jt=ot.toVertex,ot.valid&&!ot.rev&&jt.layer!==y&&(ft+=jt.column,Lt++);z[nt]=Lt===0?-1:ft/Lt}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 ft=0,Lt=[],jt=ot.near;if(jt!==null&&jt.layer===ot.layer&&(Lt[ft]=jt.column-1,ft++),ot=void 0,at!==null)for(jt=0;jt<at.length;jt++){ot=at[jt];var Xt=ot.fromVertex;ot.valid&&!ot.rev&&Xt.layer!==y&&(Lt[ft]=Xt.column+ot.portFromColOffset,ft++)}if(ht!==null)for(at=0;at<ht.length;at++)ot=ht[at],jt=ot.toVertex,ot.valid&&!ot.rev&&jt.layer!==y&&(Lt[ft]=jt.column+ot.portToColOffset,ft++);ft===0?z[nt]=-1:(Lt.sort(function(qt,ie){return qt-ie}),ht=ft>>1,z[nt]=ft&1?Lt[ht]:Lt[ht-1]+Lt[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)}}Cr.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 ft=ot.sourceEdges;ft.next();)ft.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++}Cr.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 ft=0,Lt=!1,jt=ht.sourceEdgesArrayAccess;E=jt.length;for(var Xt=0;Xt<E;Xt++){var qt=jt[Xt],ie=qt.fromVertex;ft+=1,ie.component!==1&&(z+=1,ie=ie.layer-ht.layer,qt=a.linkMinLength(qt),b=Math.min(b,ie-qt))}for(jt=ht.destinationEdgesArrayAccess,E=jt.length,Xt=0;Xt<E;Xt++)qt=jt[Xt].toVertex,--ft,qt.component!==1?--z:Lt=!0;(at===null||ft<ot)&&!Lt&&(at=ht,ot=ft)}}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,ft=!1,jt=nt.sourceEdgesArrayAccess,Lt=jt.length,Xt=0;Xt<Lt;Xt++)qt=jt[Xt].fromVertex,ht+=1,qt.component!==1?b+=1:ft=!0;for(jt=nt.destinationEdgesArrayAccess,Lt=jt.length,Xt=0;Xt<Lt;Xt++)qt=jt[Xt],ie=qt.toVertex,--ht,ie.component!==1&&(--b,ie=nt.layer-ie.layer,qt=a.linkMinLength(qt),E=Math.min(E,ie-qt));(ot===null||ht>z)&&!ft&&(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}Cr.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))}Cr.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=Ws(this),x,b;for(x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)P0(this,b,1),Ya(this,b,1);var E=this.countCrossings();for(E<a&&(a=E,y=Ws(this)),b=this.Ia;0<=b;b--)P0(this,b,-1),Ya(this,b,-1);E=this.countCrossings(),E<a&&(a=E,y=Ws(this))}for(Fa(this,y),x=0;x<this.bj;x++){for(b=0;b<=this.Ia;b++)P0(this,b,0),Ya(this,b,0);for(E=this.countCrossings(),E<a&&(a=E,y=Ws(this)),b=this.Ia;0<=b;b--)P0(this,b,0),Ya(this,b,0);E=this.countCrossings(),E<a&&(a=E,y=Ws(this))}Fa(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=Ya(this,b,-1)||z;for(E=this.countCrossings(),E>=a?Fa(this,y):(a=E,y=Ws(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Ya(this,b,1)||z;for(E=this.countCrossings(),E>=a?Fa(this,y):(a=E,y=Ws(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Ya(this,b,1)||z;for(E>=a?Fa(this,y):(a=E,y=Ws(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Ya(this,b,-1)||z;for(E>=a?Fa(this,y):(a=E,y=Ws(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Ya(this,b,0)||z;for(E>=a?Fa(this,y):(a=E,y=Ws(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Ya(this,b,0)||z;E>=a?Fa(this,y):(a=E,y=Ws(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=Ya(this,b,-1)||z;for(E=this.countCrossings(),E>=a?Fa(this,y):(a=E,y=Ws(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Ya(this,b,1)||z;for(E=this.countCrossings(),E>=a?Fa(this,y):(a=E,y=Ws(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Ya(this,b,1)||z;for(E>=a?Fa(this,y):(a=E,y=Ws(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Ya(this,b,-1)||z;for(E>=a?Fa(this,y):(a=E,y=Ws(this)),z=!0;z;)for(z=!1,b=x;b>=nt;b--)z=Ya(this,b,0)||z;for(E>=a?Fa(this,y):(a=E,y=Ws(this)),z=!0;z;)for(z=!1,b=nt;b<=x;b++)z=Ya(this,b,0)||z;E>=a?Fa(this,y):(a=E,y=Ws(this))}}Fa(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 Ya(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 ft=x[b[z].index*E+b[z+1].index],Lt=x[b[z+1].index*E+b[z].index],jt=0,Xt=0,qt=b[z].column,ie=b[z+1].column,be=a.nodeMinColumnSpace(b[z],!0),ve=a.nodeMinColumnSpace(b[z],!1),Te=a.nodeMinColumnSpace(b[z+1],!0),Be=a.nodeMinColumnSpace(b[z+1],!1);be=qt-be+Te,ve=ie-ve+Be;var ze=b[z].sourceEdges.iterator;for(ze.reset();ze.next();)if(Te=ze.value,Be=Te.fromVertex,Te.valid&&Be.layer===y){for(Te=0;b[Te]!==Be;)Te++;Te<z&&(jt+=2*(z-Te),Xt+=2*(z+1-Te)),Te===z+1&&(jt+=1),Te>z+1&&(jt+=4*(Te-z),Xt+=4*(Te-(z+1)))}for(ze=b[z].destinationEdges.iterator,ze.reset();ze.next();)if(Te=ze.value,Be=Te.toVertex,Te.valid&&Be.layer===y){for(Te=0;b[Te]!==Be;)Te++;Te===z+1&&(Xt+=1)}for(ze=b[z+1].sourceEdges.iterator,ze.reset();ze.next();)if(Te=ze.value,Be=Te.fromVertex,Te.valid&&Be.layer===y){for(Te=0;b[Te]!==Be;)Te++;Te<z&&(jt+=2*(z+1-Te),Xt+=2*(z-Te)),Te===z&&(Xt+=1),Te>z+1&&(jt+=4*(Te-(z+1)),Xt+=4*(Te-z))}for(ze=b[z+1].destinationEdges.iterator,ze.reset();ze.next();)if(Te=ze.value,Be=Te.toVertex,Te.valid&&Be.layer===y){for(Te=0;b[Te]!==Be;)Te++;Te===z&&(jt+=1)}Te=Be=0,ze=nt[b[z].index];var Ve=ot[b[z].index],an=nt[b[z+1].index],Vn=ot[b[z+1].index];ze!==-1&&(Be+=Math.abs(ze-qt),Te+=Math.abs(ze-ve)),Ve!==-1&&(Be+=Math.abs(Ve-qt),Te+=Math.abs(Ve-ve)),an!==-1&&(Be+=Math.abs(an-ie),Te+=Math.abs(an-be)),Vn!==-1&&(Be+=Math.abs(Vn-ie),Te+=Math.abs(Vn-be)),(Xt<jt-.5||Xt===jt&&Lt<ft-.5||Xt===jt&&Lt===ft&&Te<Be-.5)&&(ht=at=!0,b[z].column=ve,b[z+1].column=be,ft=b[z],b[z]=b[z+1],b[z+1]=ft)}for(z=0;z<E;z++)b[z].index=z;return Yh(a,y,b),at}Cr.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 ft=E[b].column,Lt=a.nodeMinColumnSpace(E[b],!0),jt=a.nodeMinColumnSpace(E[b],!1),Xt=0;0>b-1||ft-E[b-1].column-1>Lt+a.nodeMinColumnSpace(E[b-1],!1)?Xt=ft-1:Xt=ft,Lt=b+1>=z||E[b+1].column-ft-1>jt+a.nodeMinColumnSpace(E[b+1],!0)?ft+1:ft;var qt=jt=0,ie=0;if(0>=x)for(var be=E[b].sourceEdges.iterator;be.next();){var ve=be.value,Te=ve.fromVertex;if(ve.valid&&Te.layer!==y){var Be=py(ve),ze=ve.portFromColOffset;ve=ve.portToColOffset,Te=Te.column,jt+=(Math.abs(ft+ve-(Te+ze))+1)*Be,qt+=(Math.abs(Xt+ve-(Te+ze))+1)*Be,ie+=(Math.abs(Lt+ve-(Te+ze))+1)*Be}}if(0<=x)for(be=E[b].destinationEdges.iterator;be.next();)ve=be.value,Te=ve.toVertex,ve.valid&&Te.layer!==y&&(Be=py(ve),ze=ve.portFromColOffset,ve=ve.portToColOffset,Te=Te.column,jt+=(Math.abs(ft+ze-(Te+ve))+1)*Be,qt+=(Math.abs(Xt+ze-(Te+ve))+1)*Be,ie+=(Math.abs(Lt+ze-(Te+ve))+1)*Be);ve=ze=Be=0,be=nt[E[b].index],Te=ot[E[b].index],be!==-1&&(Be+=Math.abs(be-ft),ze+=Math.abs(be-Xt),ve+=Math.abs(be-Lt)),Te!==-1&&(Be+=Math.abs(Te-ft),ze+=Math.abs(Te-Xt),ve+=Math.abs(Te-Lt)),qt<jt||qt===jt&&ze<Be?(ht=at=!0,E[b].column=Xt):(ie<jt||ie===jt&&ve<Be)&&(ht=at=!0,E[b].column=Lt)}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),ft=0;if(nt[x]===-1)if(x===0&&x===E-1)ft=ot;else if(x===0){var Lt=b[x+1].column;Lt-ot===ht+a.nodeMinColumnSpace(b[x+1],!0)?ft=ot-1:ft=ot}else x===E-1?(Lt=b[x-1].column,ft=ot-Lt===at+a.nodeMinColumnSpace(b[x-1],!1)?ot+1:ot):(Lt=b[x-1].column,at=Lt+a.nodeMinColumnSpace(b[x-1],!1)+at+1,Lt=b[x+1].column,ht=Lt-a.nodeMinColumnSpace(b[x+1],!0)-ht-1,ft=(at+ht)/2|0);else x===0&&x===E-1?ft=nt[x]:x===0?(Lt=b[x+1].column,ht=Lt-a.nodeMinColumnSpace(b[x+1],!0)-ht-1,ft=Math.min(nt[x],ht)):x===E-1?(Lt=b[x-1].column,at=Lt+a.nodeMinColumnSpace(b[x-1],!1)+at+1,ft=Math.max(nt[x],at)):(Lt=b[x-1].column,at=Lt+a.nodeMinColumnSpace(b[x-1],!1)+at+1,Lt=b[x+1].column,ht=Lt-a.nodeMinColumnSpace(b[x+1],!0)-ht-1,at<nt[x]&&nt[x]<ht?ft=nt[x]:at>=nt[x]?ft=at:ht<=nt[x]&&(ft=ht));ft!==ot&&(z=!0,b[x].column=ft)}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=Ws(a),z=w0(a);for(b=z+1;z<b;){b=z,ex(a,x,1);var nt=w0(a);nt>z?Fa(a,E):nt<z&&(z=nt,E=Ws(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(E=Ws(a),z=w0(a),b=z+1;z<b;)b=z,ex(a,x,-1),nt=w0(a),nt>z?Fa(a,E):nt<z&&(z=nt,E=Ws(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=ln(),x=a.fl.length,b=0;b<=x;b++)y[b]=[];for(b=a.network.vertexes.iterator;b.next();){var E=b.value;y[x-E.layer][E.index]=E}x=new Ln,Vx(y,x);var z=null,nt=null,ot=null,at=null,ht=(a.ve&1)!==0,ft=(a.ve&2)!==0,Lt=(a.ve&4)!==0,jt=(a.ve&8)!==0;for(ht&&(a.verticalAlignment(y,x,!0),z=b0(a,y,!0,!1)),y.reverse(),Lt&&(a.verticalAlignment(y,x,!1),ot=b0(a,y,!1,!1)),b=Ti(y),E=b.next();!E.done;E=b.next())E.value.reverse();jt&&(a.verticalAlignment(y,x,!1),at=b0(a,y,!1,!0)),y.reverse(),ft&&(a.verticalAlignment(y,x,!0),nt=b0(a,y,!0,!0)),xn(y),a.u(z,nt,ot,at),a.network.vertexes.each(function(Xt){var qt=ln();ht&&qt.push(z.get(Xt)),ft&&qt.push(nt.get(Xt)),Lt&&qt.push(ot.get(Xt)),jt&&qt.push(at.get(Xt)),qt.sort(function(be,ve){return be-ve});var ie=qt.length;ie=(qt[Math.floor((ie-1)/2)]+qt[Math.ceil((ie-1)/2)])/2,xn(qt),Xt.zc=ie})}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 ft=Ay(ht);if(0<ft.length){ft=ft[0].node===null;break t}}ft=!1}var Lt=ft;if(at===ot.length-1||Lt){for(ft=nt.length-1,Lt&&(ft=Ay(ht)[0].index);z<=at;){if(ht=ot[z],!ht.bo){Lt=[];for(var jt=Ti(ht.sourceEdgesArrayAccess),Xt=jt.next();!Xt.done;Xt=jt.next())Xt=Xt.value,Xt.valid&&Lt.push(Xt);ht.bo=Lt}for(ht=Ti(ht.bo),Lt=ht.next();!Lt.done;Lt=ht.next())Lt=Lt.value,jt=Lt.fromVertex.index,(jt<E||jt>ft)&&y.add(Lt);z++}E=ft}}}Cr.prototype.verticalAlignment=function(a,y,x){Zx(a),a=Ti(a);for(var b=a.next();!b.done;b=a.next()){var E=-1;b=Ti(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(Lt,jt){return Lt.vi-jt.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],ft=void 0;ft=x?T0(ht,z):T0(z,ht),!y.contains(ft)&&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=Ti(y),nt=z.next();!nt.done;nt=z.next()){var ot=Ti(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=Ti(y),ot=z.next();!ot.done;ot=z.next()){ot=Ti(ot.value);for(var at=ot.next();!at.done;at=ot.next())if(at=at.value,at.root===at){for(var ht=0,ft=at;ft.align!==at;){var Lt=ft.align,jt=nt?ft.width:ft.height,Xt=nt?Lt.width:Lt.height;if(x){var qt=T0(ft,Lt),ie=qt.portFromPos,be=qt.portToPos;qt.link!==null&&(ft.node&&ft.node!==qt.link.fromNode&&(ie=nt?ft.focusX:ft.focusY),Lt.node&&Lt.node!==qt.link.toNode&&(be=nt?Lt.focusX:Lt.focusY))}else qt=T0(Lt,ft),ie=qt.portToPos,be=qt.portFromPos,qt.link!==null&&(ft.node&&ft.node!==qt.link.toNode&&(ie=nt?ft.focusX:ft.focusY),Lt.node&&Lt.node!==qt.link.fromNode&&(be=nt?Lt.focusX:Lt.focusY));jt=b?ft.qg+(jt-ie)-(Xt-be):ft.qg+ie-be,Lt.qg=jt,ht=Math.min(ht,jt),ft=ft.align}ft=at;do ft.qg=ft.qg-ht,ft=ft.align;while(ft!==at)}}for(x=Ti(y),nt=x.next();!nt.done;nt=x.next())for(z=Ti(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 Jn,y=Ti(y),nt=y.next();!nt.done;nt=y.next())for(x=Ti(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&&Me("Could not determine previous vertex in layer"),y[x][a-1]}Cr.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var b=ln(),E=ln(),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}Cr.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:Ro:a.K===90?y?Ro:Co:a.K===180?y?No:Ko:y?Ko:No}Cr.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,ft=at.column|0;b?(nt=y.x+this.kc*ft,ht=this.Kd[ht]):(nt=this.Kd[ht],ht=y.y+this.kc*ft),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 xe(x&&b?0:z,x&&!b?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},Cr.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 Sn(0,0,x,Math.abs(this.Ta[0]))):y.push(new Sn(0,this.Ta[b-1],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===90?b===0?y.push(new Sn(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new Sn(0,this.Ta[b],x,Math.abs(this.Ta[b-1]-this.Ta[b]))):this.K===180?b===0?y.push(new Sn(0,0,Math.abs(this.Ta[0]),x)):y.push(new Sn(this.Ta[b-1],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x)):b===0?y.push(new Sn(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new Sn(this.Ta[b],0,Math.abs(this.Ta[b-1]-this.Ta[b]),x));this.commitLayers(y,this.Rf)},Cr.prototype.commitLayers=function(){},Cr.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 ft=x.fromVertex,Lt=x.toVertex;if(x.valid)y.curve===Sa&&y.pointsCount===4&&(ft.column===Lt.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===ro&&(b=!0),ot!==null&&at===ro&&(x=!0),(b||x)&&(at=null,b&&(at=y.getLinkPointFromPoint(E,nt,nt.ga(ar),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(ar),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(ft.layer===Lt.layer)y.zf();else{var jt=!1,Xt=!1,qt=this.ie,ie=y.firstPickIndex+1;if(y.isOrthogonal){Xt=!0;var be=y.pointsCount;4<be&&y.points.removeRange(2,be-3)}else if(y.curve===Sa)jt=!0,be=y.pointsCount,4<be&&y.points.removeRange(2,be-3),be===4&&(ie=2);else{be=y.pointsCount;var ve=ht===ro,Te=at===ro;2<be&&ve&&Te?y.points.removeRange(1,be-2):3<be&&ve&&!Te?y.points.removeRange(1,be-3):3<be&&!ve&&Te?y.points.removeRange(2,be-2):4<be&&!ve&&!Te&&y.points.removeRange(2,be-3)}if(x.rev){for(;Lt!==null&&ft!==Lt;){var Be=be=null;for(ve=Lt.sourceEdges.iterator;ve.next()&&(Te=ve.value,Te.link!==x.link||(be=Te.fromVertex,Be=Te.toVertex,be.node!==null)););if(be===null)break;if(be!==ft){ve=y.i(ie-1).x,Te=y.i(ie-1).y;var ze=be.centerX,Ve=be.centerY;if(Xt)this.K===180||this.K===0?ie===y.firstPickIndex+1?(y.m(ie++,ve,Te),y.m(ie++,ve,Ve)):(Be!==null?Be.centerY:Te)!==Ve&&(Be=this.Ta[be.layer-1]+this.Rf.x,y.m(ie++,Be,Te),y.m(ie++,Be,Ve)):ie===y.firstPickIndex+1?(y.m(ie++,ve,Te),y.m(ie++,ze,Te)):(Be!==null?Be.centerX:ve)!==ze&&(Be=this.Ta[be.layer-1]+this.Rf.y,y.m(ie++,ve,Be),y.m(ie++,ze,Be));else if(ie===y.firstPickIndex+1){Be=Math.max(10,this.he[Lt.layer]);var an=Math.max(10,this.Ld[Lt.layer]);if(jt)this.K===180?ze<=Lt.bounds.x?(Lt=Lt.bounds.x,y.m(ie++,Lt-Be,Ve),y.m(ie++,Lt,Ve),y.m(ie++,Lt+an,Ve)):(y.m(ie++,ze-Be,Ve),y.m(ie++,ze,Ve),y.m(ie++,ze+an,Ve)):this.K===90?Ve>=Lt.bounds.bottom?(Lt=Lt.bounds.y+Lt.bounds.height,y.m(ie++,ze,Lt+an),y.m(ie++,ze,Lt),y.m(ie++,ze,Lt-Be)):(y.m(ie++,ze,Ve+an),y.m(ie++,ze,Ve),y.m(ie++,ze,Ve-Be)):this.K===270?Ve<=Lt.bounds.y?(Lt=Lt.bounds.y,y.m(ie++,ze,Lt-Be),y.m(ie++,ze,Lt),y.m(ie++,ze,Lt+an)):(y.m(ie++,ze,Ve-Be),y.m(ie++,ze,Ve),y.m(ie++,ze,Ve+an)):this.K===0&&(ze>=Lt.bounds.right?(Lt=Lt.bounds.x+Lt.bounds.width,y.m(ie++,Lt+an,Ve),y.m(ie++,Lt,Ve),y.m(ie++,Lt-Be,Ve)):(y.m(ie++,ze+an,Ve),y.m(ie++,ze,Ve),y.m(ie++,ze-Be,Ve)));else{y.m(ie++,ve,Te);var Vn=0;this.K===180||this.K===0?((this.K===180?ze>=Lt.bounds.right:ze<=Lt.bounds.x)&&(Vn=(this.K===0?-Be:an)/2),y.m(ie++,ve+Vn,Ve)):((this.K===270?Ve>=Lt.bounds.bottom:Ve<=Lt.bounds.y)&&(Vn=(this.K===90?-Be:an)/2),y.m(ie++,ze,Te+Vn)),y.m(ie++,ze,Ve)}}else Be=Math.max(10,this.he[be.layer]),an=Math.max(10,this.Ld[be.layer]),jt?this.K===180?(y.m(ie++,ze-Be-qt,Ve),y.m(ie++,Math.min(ze-Be+qt/2,ze),Ve),y.m(ie++,ze,Ve),y.m(ie++,ze,Ve),y.m(ie++,Math.max(ze+an-qt/2,ze),Ve),y.m(ie++,ze+an+qt,Ve)):this.K===90?(y.m(ie++,ze,Ve+an+qt),y.m(ie++,ze,Math.max(Ve+an-qt/2,Ve)),y.m(ie++,ze,Ve),y.m(ie++,ze,Ve),y.m(ie++,ze,Math.min(Ve-Be+qt/2,Ve)),y.m(ie++,ze,Ve-Be-qt)):this.K===270?(y.m(ie++,ze,Ve-Be-qt),y.m(ie++,ze,Math.min(Ve-Be+qt/2,Ve)),y.m(ie++,ze,Ve),y.m(ie++,ze,Ve),y.m(ie++,ze,Math.max(Ve+an-qt/2,Ve)),y.m(ie++,ze,Ve+an+qt)):(y.m(ie++,ze+an+qt,Ve),y.m(ie++,Math.max(ze+an-qt/2,ze),Ve),y.m(ie++,ze,Ve),y.m(ie++,ze,Ve),y.m(ie++,Math.min(ze-Be+qt/2,ze),Ve),y.m(ie++,ze-Be-qt,Ve)):y.m(ie++,ze,Ve)}Lt=be}(ot===null||ht!==ro||Xt)&&(ve=y.i(ie-1).x,Te=y.i(ie-1).y,ze=y.i(ie).x,Ve=y.i(ie).y,Xt?(qt=this.Ld[ft.layer],this.K===180||this.K===0?(Xt=Te,Xt>=ft.bounds.y&&Xt<=ft.bounds.bottom&&(this.K===180?ze>=ft.bounds.x:ze<=ft.bounds.right)&&(Lt=ft.centerX+(this.K===180?-qt:qt),Xt<ft.bounds.y+ft.bounds.height/2?Xt=ft.bounds.y-this.kc/2:Xt=ft.bounds.bottom+this.kc/2,y.m(ie++,Lt,Te),y.m(ie++,Lt,Xt)),y.m(ie++,ze,Xt)):(Xt=ve,Xt>=ft.bounds.x&&Xt<=ft.bounds.right&&(this.K===270?Ve>=ft.bounds.y:Ve<=ft.bounds.bottom)&&(Lt=ft.centerY+(this.K===270?-qt:qt),Xt<ft.bounds.x+ft.bounds.width/2?Xt=ft.bounds.x-this.kc/2:Xt=ft.bounds.right+this.kc/2,y.m(ie++,ve,Lt),y.m(ie++,Xt,Lt)),y.m(ie++,Xt,Ve)),y.m(ie++,ze,Ve)):jt?(Be=Math.max(10,this.he[ft.layer]),an=Math.max(10,this.Ld[ft.layer]),this.K===180&&ze>=ft.bounds.x?(Lt=ft.bounds.x+ft.bounds.width,y.L(ie-2,Lt,Te),y.L(ie-1,Lt+an,Te)):this.K===90&&Ve<=ft.bounds.bottom?(Lt=ft.bounds.y,y.L(ie-2,ve,Lt),y.L(ie-1,ve,Lt-Be)):this.K===270&&Ve>=ft.bounds.y?(Lt=ft.bounds.y+ft.bounds.height,y.L(ie-2,ve,Lt),y.L(ie-1,ve,Lt+an)):this.K===0&&ze<=ft.bounds.right&&(Lt=ft.bounds.x,y.L(ie-2,Lt,Te),y.L(ie-1,Lt-Be,Te))):(Be=Math.max(10,this.he[ft.layer]),an=Math.max(10,this.Ld[ft.layer]),Xt=0,this.K===180||this.K===0?((this.K===180?ze<=ft.bounds.x:ze>=ft.bounds.right)&&(Xt=(this.K===0?an:-Be)/2),y.m(ie++,ze+Xt,Te)):((this.K===270?Ve<=ft.bounds.y:Ve>=ft.bounds.bottom)&&(Xt=(this.K===90?an:-Be)/2),y.m(ie++,ve,Ve+Xt)),y.m(ie++,ze,Ve)))}else{for(;ft!==null&&ft!==Lt;){for(Be=be=null,ft=ft.destinationEdges.iterator;ft.next()&&(ve=ft.value,ve.link!==x.link||(be=ve.toVertex,Be=ve.fromVertex,Be.node!==null&&(Be=null),be.node!==null)););if(be===null)break;be!==Lt&&(ve=y.i(ie-1).x,Te=y.i(ie-1).y,ze=be.centerX,Ve=be.centerY,Xt?this.K===180||this.K===0?(Be!==null?Be.centerY:Te)!==Ve&&(Be=this.Ta[be.layer]+this.Rf.x,ie===y.firstPickIndex+1&&(Be=this.K===0?Math.max(Be,ve):Math.min(Be,ve)),y.m(ie++,Be,Te),y.m(ie++,Be,Ve)):(Be!==null?Be.centerX:ve)!==ze&&(Be=this.Ta[be.layer]+this.Rf.y,ie===y.firstPickIndex+1&&(Be=this.K===90?Math.max(Be,Te):Math.min(Be,Te)),y.m(ie++,ve,Be),y.m(ie++,ze,Be)):(Be=Math.max(10,this.he[be.layer]),an=Math.max(10,this.Ld[be.layer]),jt?this.K===180?(y.m(ie++,ze+an+qt,Ve),y.m(ie++,Math.max(ze+an-qt/2,ze),Ve),y.m(ie++,ze,Ve),y.m(ie++,ze,Ve),y.m(ie++,Math.min(ze-Be+qt/2,ze),Ve),y.m(ie++,ze-Be-qt,Ve)):this.K===90?(y.m(ie++,ze,Ve-Be-qt),y.m(ie++,ze,Math.min(Ve-Be+qt/2,Ve)),y.m(ie++,ze,Ve),y.m(ie++,ze,Ve),y.m(ie++,ze,Math.max(Ve+an-qt/2,Ve)),y.m(ie++,ze,Ve+an+qt)):this.K===270?(y.m(ie++,ze,Ve+an+qt),y.m(ie++,ze,Math.max(Ve+an-qt/2,Ve)),y.m(ie++,ze,Ve),y.m(ie++,ze,Ve),y.m(ie++,ze,Math.min(Ve-Be+qt/2,Ve)),y.m(ie++,ze,Ve-Be-qt)):(y.m(ie++,ze-Be-qt,Ve),y.m(ie++,Math.min(ze-Be+qt/2,ze),Ve),y.m(ie++,ze,Ve),y.m(ie++,ze,Ve),y.m(ie++,Math.max(ze+an-qt/2,ze),Ve),y.m(ie++,ze+an+qt,Ve)):this.K===180?(y.m(ie++,ze+an,Ve),y.m(ie++,ze-Be,Ve)):this.K===90?(y.m(ie++,ze,Ve-Be),y.m(ie++,ze,Ve+an)):this.K===270?(y.m(ie++,ze,Ve+an),y.m(ie++,ze,Ve-Be)):(y.m(ie++,ze-Be,Ve),y.m(ie++,ze+an,Ve)))),ft=be}Xt&&(ve=y.i(ie-1).x,Te=y.i(ie-1).y,ze=y.i(ie).x,Ve=y.i(ie).y,this.K===180||this.K===0?Te!==Ve&&(Be=this.K===0?Math.min(Math.max((ze+ve)/2,this.Ta[Lt.layer]+this.Rf.x),ze):Math.max(Math.min((ze+ve)/2,this.Ta[Lt.layer]+this.Rf.x),ze),y.m(ie++,Be,Te),y.m(ie++,Be,Ve)):ve!==ze&&(Be=this.K===90?Math.min(Math.max((Ve+Te)/2,this.Ta[Lt.layer]+this.Rf.y),Ve):Math.max(Math.min((Ve+Te)/2,this.Ta[Lt.layer]+this.Rf.y),Ve),y.m(ie++,ve,Be),y.m(ie++,ze,Be)))}b!==null&&jt&&4<=y.pointsCount&&(nt!==null&&(nt=ht===ro?y.getLinkPointFromPoint(E,nt,nt.ga(ar),y.i(3),!0):y.i(0),ht===ro&&(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===ro?y.getLinkPointFromPoint(z,ot,ot.ga(ar),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),at===ro&&(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()},Cr.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new Cn,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 ft=0;at.y<z.y?ft=ht.y<z.y?3:z.x<nt.x?2:1:at.y>z.y&&(ft=ht.y>z.y?0:nt.x<z.x?2:1),ot.j=ft}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),ft=1,ot=x[z].jc,at=z;at<E;at++)ht=x[at],ht.jc!==ot&&(ft++,ot=ht.jc);this.zi(x,this.Ux,z,z+nt);var Lt=1;for(ot=x[z].first,at=z;at<E;at++)ht=x[at],ht.first!==ot&&(Lt++,ot=ht.first);for(at=!0,ht=Lt,ft<Lt?(at=!1,ht=ft,ot=x[z].jc,this.zi(x,this.Js,z,z+nt)):ot=x[z].first,ft=0,Lt=z;Lt<E;Lt++){var jt=x[Lt];(at?jt.first:jt.jc)!==ot&&(ft++,ot=at?jt.first:jt.jc);var Xt=jt.link;z=Xt.i(jt.index),nt=Xt.i(jt.index+1);var qt=this.linkSpacing*(ft-(ht-1)/2);y++,Xt.uh(),Xt.L(jt.index,z.x,z.y+qt),Xt.L(jt.index+1,nt.x,nt.y+qt),Xt.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),ft=0,at.x<z.x?ft=ht.x<z.x?3:z.y<nt.y?2:1:at.x>z.x&&(ft=ht.x>z.x?0:nt.y<z.y?2:1),ot.j=ft),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),ft=1,ot=x[z].jc,at=z;at<E;at++)ht=x[at],ht.jc!==ot&&(ft++,ot=ht.jc);for(this.zi(x,this.Ux,z,z+nt),Lt=1,ot=x[z].first,at=z;at<E;at++)ht=x[at],ht.first!==ot&&(Lt++,ot=ht.first);for(at=!0,ht=Lt,ft<Lt?(at=!1,ht=ft,ot=x[z].jc,this.zi(x,this.Js,z,z+nt)):ot=x[z].first,ft=0,Lt=z;Lt<E;Lt++)jt=x[Lt],(at?jt.first:jt.jc)!==ot&&(ft++,ot=at?jt.first:jt.jc),Xt=jt.link,z=Xt.i(jt.index),nt=Xt.i(jt.index+1),qt=this.linkSpacing*(ft-(ht-1)/2),y++,Xt.uh(),Xt.L(jt.index,z.x+qt,z.y),Xt.L(jt.index+1,nt.x+qt,nt.y),Xt.zf()}z=E}a=b}}}},te=Cr.prototype,te.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},te.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},te.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},te.B=function(a,y){return a-=y,-1<a&&1>a},te.zi=function(a,y,x,b){var E=a.length,z=b-x;if(!(1>=z))if((0>x||x>=E-1)&&Me("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}Fe.Object.defineProperties(Cr.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()):Me("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 qe(Cr,"CycleDepthFirst",0),xy=new qe(Cr,"CycleGreedy",1),yp=new qe(Cr,"CycleFromLayers",2),L0=new qe(Cr,"LayerOptimalLinkLength",0),wy=new qe(Cr,"LayerLongestPathSink",1),Py=new qe(Cr,"LayerLongestPathSource",2),A0=new qe(Cr,"InitDepthFirstOut",0),by=new qe(Cr,"InitDepthFirstIn",1),Cy=new qe(Cr,"InitNaive",2),Ey=new qe(Cr,"AggressiveNone",0),M0=new qe(Cr,"AggressiveLess",1),Ly=new qe(Cr,"AggressiveMore",2),Yx=8;Cr.className="LayeredDigraphLayout",Cr.CycleDepthFirst=E0,Cr.CycleGreedy=xy,Cr.CycleFromLayers=yp,Cr.LayerOptimalLinkLength=L0,Cr.LayerLongestPathSink=wy,Cr.LayerLongestPathSource=Py,Cr.InitDepthFirstOut=A0,Cr.InitDepthFirstIn=by,Cr.InitNaive=Cy,Cr.AggressiveNone=Ey,Cr.AggressiveLess=M0,Cr.AggressiveMore=Ly,Cr.PackNone=0,Cr.PackExpand=1,Cr.PackStraighten=2,Cr.PackMedian=4,Cr.PackAll=15,Cr.AlignNone=0,Cr.AlignUpperLeft=1,Cr.AlignUpperRight=2,Cr.AlignLowerLeft=4,Cr.AlignLowerRight=8,Cr.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 Ba(this)},jf.prototype.createEdge=function(){return new Sp(this)},jf.className="LayeredDigraphNetwork";function Ba(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(Ba,Ao);function rx(a,y){return a.index-y.index}function T0(a,y){if(!a.$n){for(var x=[],b=Ti(a.destinationEdgesArrayAccess),E=b.next();!E.done;E=b.next())E=E.value,E.valid&&x.push(E);a.$n=x}for(a=Ti(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;Me("Unable to find destination edge to given vertex")}function Ay(a){if(!a.co){for(var y=[],x=Ti(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=Ti(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}Ba.prototype.Cl=function(a){Ao.prototype.Cl.call(this,a),this.bo=this.co=null},Ba.prototype.Kl=function(a){Ao.prototype.Kl.call(this,a),this.bo=this.co=null},Ba.prototype.zl=function(a){Ao.prototype.zl.call(this,a),this.$n=this.ao=null},Ba.prototype.Jl=function(a){Ao.prototype.Jl.call(this,a),this.$n=this.ao=null},Fe.Object.defineProperties(Ba.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)}}}),Ba.prototype.deleteDestinationEdge=Ba.prototype.Jl,Ba.prototype.addDestinationEdge=Ba.prototype.zl,Ba.prototype.deleteSourceEdge=Ba.prototype.Kl,Ba.prototype.addSourceEdge=Ba.prototype.Cl,Ba.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),Fe.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){Ur.call(this),this.Ub=new Ln,this.Wn=I0,this.ud=Jl,this.vo=F0,this.Bq=jy,this.$v=[],this.td=!0,this.Rb=B0,this.$d=new zn(10,10).freeze();var y=new Ad(this);this.W=new _a(y),this.Y=new _a(y),this.ru=[],a&&Object.assign(this,a)}Qe(Qi,Ur),Qi.prototype.cloneProtected=function(a){Ur.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:Me("Unknown enum value: "+a):Ur.prototype.qb.call(this,a)},Qi.prototype.createNetwork=function(){return new Ad(this)},Qi.prototype.makeNetwork=function(a){function y(b){if(b instanceof Zn)return!b.isLinkLabel&&b.category!=="Comment";if(b instanceof Wn){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 un?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Ii?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 un&&(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 Ln,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof Zn?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof _a&&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 _a&&ax(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof _a&&lx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof _a&&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 _a&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new Ln,this.isValidLayout=!0};function Jx(a){var y=new Ln;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:Me("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:Me("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 Cn,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 Cn,b=y.sourceVertexes;b.next();)E=b.value,sx(a,y,E)&&x.add(E);0<x.count&&(y.children=x.Fa())}break;default:Me("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:Me("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 ft=ht.value;ft.category==="Comment"&&ft.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(ft),ft.Va(),ft=ft.measuredBounds,y&&!x||!E&&!b&&x||E&&b&&x?(z=Math.max(z,ft.width),nt+=ft.height+Math.abs(ot)):(z+=ft.width+Math.abs(ot),nt=Math.max(nt,ft.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=Sn.allocAt(0,0,a.bounds.width+z,a.bounds.height+nt),a.bounds=E,Sn.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,ft=ht.length,Lt=xe.alloc(),jt=0;jt<ft;jt++){var Xt=ht[jt],qt=Xt.measuredBounds;if(b&&!nt||!z&&!x&&nt||z&&x&&nt){if(135<E&&!z||x&&ot)if(0<=a.commentMargin)for(Lt.h(a.bounds.x-a.commentMargin-qt.width,a.bounds.y+at),Xt.move(Lt),Xt=Xt.Sd();Xt.next();){var ie=Xt.value;ie.fromSpot=No,ie.toSpot=Ko}else for(Lt.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+at),Xt.move(Lt),Xt=Xt.Sd();Xt.next();)ie=Xt.value,ie.fromSpot=Ko,ie.toSpot=No;else if(0<=a.commentMargin)for(Lt.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+at),Xt.move(Lt),Xt=Xt.Sd();Xt.next();)ie=Xt.value,ie.fromSpot=Ko,ie.toSpot=No;else for(Lt.h(a.bounds.x+a.commentMargin-qt.width,a.bounds.y+at),Xt.move(Lt),Xt=Xt.Sd();Xt.next();)ie=Xt.value,ie.fromSpot=No,ie.toSpot=Ko;at=0<=a.commentSpacing?at+(qt.height+a.commentSpacing):at+(a.commentSpacing-qt.height)}else{if(135<E&&!z||!x&&ot)if(0<=a.commentMargin)for(Lt.h(a.bounds.x+at,a.bounds.y-a.commentMargin-qt.height),Xt.move(Lt),Xt=Xt.Sd();Xt.next();)ie=Xt.value,ie.fromSpot=Co,ie.toSpot=Ro;else for(Lt.h(a.bounds.x+at,a.bounds.y+2*a.focus.y-a.commentMargin),Xt.move(Lt),Xt=Xt.Sd();Xt.next();)ie=Xt.value,ie.fromSpot=Ro,ie.toSpot=Co;else if(0<=a.commentMargin)for(Lt.h(a.bounds.x+at,a.bounds.y+2*a.focus.y+a.commentMargin),Xt.move(Lt),Xt=Xt.Sd();Xt.next();)ie=Xt.value,ie.fromSpot=Ro,ie.toSpot=Co;else for(Lt.h(a.bounds.x+at,a.bounds.y+a.commentMargin-qt.height),Xt.move(Lt),Xt=Xt.Sd();Xt.next();)ie=Xt.value,ie.fromSpot=Co,ie.toSpot=Ro;at=0<=a.commentSpacing?at+(qt.width+a.commentSpacing):at+(a.commentSpacing-qt.width)}}if(xe.free(Lt),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=ul(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,ft=Jh(at),Lt=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var jt=a.nodeSpacing,Xt=this.computeNodeIndent(a),qt=a.rowSpacing,ie=0;(b||ht||a.hm||a.im&&a.maxGenerationCount===1)&&(ie=Math.max(0,a.rowIndent)),b=a.width;var be=a.height,ve=0,Te=0,Be=0,ze=null,Ve=null,an=0,Vn=0,$n=0,_n=0,Hn=0,Tn=0,Ni=0,Ei=0;if(ft&&!xp(at)&&135<E&&nt.reverse(),xp(at))if(1<ot)for(var gr=0;gr<ot;gr++)gr%2===0&&gr!==ot-1&&(Ei=Math.max(Ei,y?nt[gr].Da.width:nt[gr].Da.height));else ot===1&&(Ei=y?nt[0].Da.width:nt[0].Da.height);if(ft){switch(at){case th:Te=135>E?cx(this,a,nt,Ei,ve,Te):dx(this,a,nt,Ei,ve,Te),Ei=Te.x,ve=Te.width,Te=Te.height;break;case eh:for(ze=0;ze<ot;ze++)Ve=nt[ze],Lt=Ve.Da,Be=Tn===0?0:qt,y?(Ve.S.h(z-Lt.width,_n+Be),ve=Math.max(ve,Lt.width),Te=Math.max(Te,_n+Be+Lt.height),_n+=Be+Lt.height):(Ve.S.h($n+Be,z-Lt.height),ve=Math.max(ve,$n+Be+Lt.width),Te=Math.max(Te,Lt.height),$n+=Be+Lt.width),Tn++;break;case Su:for(ze=0;ze<ot;ze++)Ve=nt[ze],z=Ve.Da,Lt=Tn===0?0:qt,y?(Ve.S.h(jt/2+a.focus.x,_n+Lt),ve=Math.max(ve,z.width),Te=Math.max(Te,_n+Lt+z.height),_n+=Lt+z.height):(Ve.S.h($n+Lt,jt/2+a.focus.y),ve=Math.max(ve,$n+Lt+z.width),Te=Math.max(Te,z.height),$n+=Lt+z.width),Tn++}ze=Ks(this,2),Ve=Ks(this,2),y?(ze[0].h(0,0),ze[1].h(0,Te),Ve[0].h(ve,0)):(ze[0].h(0,0),ze[1].h(ve,0),Ve[0].h(0,Te)),Ve[1].h(ve,Te)}else for(gr=0;gr<ot;gr++){var Nr=nt[gr],Fo=Nr.Da;if(y){0<Lt&&0<Tn&&$n+jt+Fo.width>Lt&&($n<z&&Fc(a,at,z-$n,0,Ni,gr-1),Hn++,Tn=0,Ni=gr,Be=Te,$n=0,_n=135<E?-Te-qt:Te+qt),N0(this,Nr,0,_n);var Ho=0;if(Tn===0)ze=Nr.Yo,Ve=Nr.kp,an=Fo.width,Vn=Fo.height,(ze===null||Ve===null||E!==ul(Nr))&&(ze=Ks(this,2),Ve=Ks(this,2),ze[0].h(0,0),ze[1].h(0,Vn),Ve[0].h(an,0),Ve[1].h(an,Vn));else{var gs=ln();Vn=fx(this,a,Nr,ze,Ve,an,Vn,gs),Ho=Vn.x,ze=gs[0],Ve=gs[1],an=Vn.width,Vn=Vn.height,xn(gs),$n<Fo.width&&0>Ho&&(Cd(a,-Ho,0,Ni,gr-1),O0(ze,-Ho,0),O0(Ve,-Ho,0),Ho=0)}Nr.S.h(Ho,_n),ve=Math.max(ve,an),Te=Math.max(Te,Be+(Hn===0?0:qt)+Fo.height),$n=an}else 0<Lt&&0<Tn&&_n+jt+Fo.height>Lt&&(_n<z&&Fc(a,at,0,z-_n,Ni,gr-1),Hn++,Tn=0,Ni=gr,Be=ve,_n=0,$n=135<E?-ve-qt:ve+qt),N0(this,Nr,$n,0),Ho=0,Tn===0?(ze=Nr.Yo,Ve=Nr.kp,an=Fo.width,Vn=Fo.height,(ze===null||Ve===null||E!==ul(Nr))&&(ze=Ks(this,2),Ve=Ks(this,2),ze[0].h(0,0),ze[1].h(an,0),Ve[0].h(0,Vn),Ve[1].h(an,Vn))):(gs=ln(),Vn=fx(this,a,Nr,ze,Ve,an,Vn,gs),Ho=Vn.x,ze=gs[0],Ve=gs[1],an=Vn.width,Vn=Vn.height,xn(gs),_n<Fo.height&&0>Ho&&(Cd(a,0,-Ho,Ni,gr-1),O0(ze,0,-Ho),O0(Ve,0,-Ho),Ho=0)),Nr.S.h($n,Ho),Te=Math.max(Te,Vn),ve=Math.max(ve,Be+(Hn===0?0:qt)+Fo.width),_n=Vn;Tn++}switch(0<Hn&&(y?(Te+=Math.max(0,x),$n<ve&&Fc(a,at,ve-$n,0,Ni,ot-1),0<ie&&(ht||Cd(a,ie,0,0,ot-1),ve+=ie)):(ve+=Math.max(0,x),_n<Te&&Fc(a,at,0,Te-_n,Ni,ot-1),0<ie&&(ht||Cd(a,0,ie,0,ot-1),Te+=ie))),ie=ht=0,at){case Hf:y?ht+=ve/2-a.focus.x-Xt/2:ie+=Te/2-a.focus.y-Xt/2;break;case Ld:0<Hn?y?ht+=ve/2-a.focus.x-Xt/2:ie+=Te/2-a.focus.y-Xt/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-Xt/2):(Ei=nt[0].S.y+nt[0].la.y,ie+=Ei+(nt[ot-1].S.y+nt[ot-1].la.y+2*nt[ot-1].focus.y-Ei)/2-a.focus.y-Xt/2);break;case Ql:y?(ht-=Xt,ve+=Xt):(ie-=Xt,Te+=Xt);break;case ql:y?(ht+=ve-a.width+Xt,ve+=Xt):(ie+=Te-a.height+Xt,Te+=Xt);break;case th:y?1<ot?ht+=Ei+jt/2-a.focus.x:ht+=nt[0].focus.x-a.focus.x+nt[0].la.x:1<ot?ie+=Ei+jt/2-a.focus.y:ie+=nt[0].focus.y-a.focus.y+nt[0].la.y;break;case eh:y?ht+=ve+jt/2-a.focus.x:ie+=Te+jt/2-a.focus.y;break;case Su:break;default:Te=this.customAlignment(a,ht,ie,ve,Te),ht=Te[0],ie=Te[1],ve=Te[2],Te=Te[3]}for(Xt=0;Xt<ot;Xt++)Ei=nt[Xt],y?Ei.S.h(Ei.S.x+Ei.la.x-ht,Ei.S.y+(135<E?(ft?-Te:-Ei.Da.height)+Ei.la.y-x:be+x+Ei.la.y)):Ei.S.h(Ei.S.x+(135<E?(ft?-ve:-Ei.Da.width)+Ei.la.x-x:b+x+Ei.la.x),Ei.S.y+Ei.la.y-ie);if(ot=nt=0,ft?y?(ve=ky(a,ve,ht),0>ht&&(ht=0),135<E&&(ie+=Te+x),Te+=be+x,at===Su&&(nt+=jt/2+a.focus.x),ot+=be+x):(135<E&&(ht+=ve+x),ve+=b+x,Te=Ny(a,Te,ie),0>ie&&(ie=0),at===Su&&(ot+=jt/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&&(ie+=Te+x),Te=Math.max(Math.max(Te,be),Te+be+x),ot+=be+x):(135<E&&(ht+=ve+x),ve=Math.max(Math.max(ve,b),ve+b+x),a.comments===null?be>Te&&(Te=Oy(at,0,be-Te),nt=Te.x,ot=Te.y,Te=be,ie=0):Te=Ny(a,Te,ie),0>ie&&(ot-=ie,ie=0),nt+=b+x),0<Hn)E=Ks(this,4),Hn=Ks(this,4),y?(E[2].h(0,be+x),E[3].h(E[2].x,Te),Hn[2].h(ve,E[2].y),Hn[3].h(Hn[2].x,E[3].y)):(E[2].h(b+x,0),E[3].h(ve,E[2].y),Hn[2].h(E[2].x,Te),Hn[3].h(E[3].x,Hn[2].y));else{for(E=Ks(this,ze.length+2),Hn=Ks(this,Ve.length+2),at=0;at<ze.length;at++)ft=ze[at],E[at+2].h(ft.x+nt,ft.y+ot);for(at=0;at<Ve.length;at++)ft=Ve[at],Hn[at+2].h(ft.x+nt,ft.y+ot)}y?(E[0].h(ht,0),E[1].h(E[0].x,be),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])),Hn[0].h(ht+b,0),Hn[1].h(Hn[0].x,be),Hn[2].y<Hn[1].y&&(Hn[2].x<Hn[0].x?Hn[2].assign(Hn[1]):Hn[1].assign(Hn[2])),Hn[3].y<Hn[2].y&&(Hn[3].x<Hn[0].x?Hn[3].assign(Hn[2]):Hn[2].assign(Hn[3])),E[2].y-=x/2,Hn[2].y-=x/2):(E[0].h(0,ie),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])),Hn[0].h(0,ie+be),Hn[1].h(b,Hn[0].y),Hn[2].x<Hn[1].x&&(Hn[2].y<Hn[0].y?Hn[2].assign(Hn[1]):Hn[1].assign(Hn[2])),Hn[3].x<Hn[2].x&&(Hn[3].y<Hn[0].y?Hn[3].assign(Hn[2]):Hn[2].assign(Hn[3])),E[2].x-=x/2,Hn[2].x-=x/2),vl(this,ze),vl(this,Ve),a.Yo=E,a.kp=Hn,a.la.h(ht,ie),a.Da.h(ve,Te)}break;default:Me("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=ul(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,ft=ht===Ql,Lt=ht===ql;ot=Jh(ht);var jt=Math.max(0,y.breadthLimit);at=a.computeLayerSpacing(y);var Xt=y.nodeSpacing,qt=a.computeNodeIndent(y),ie=ft||Lt?0:qt/2,be=y.rowSpacing,ve=0;(ft||Lt||y.hm||y.im&&y.maxGenerationCount===1)&&(ve=Math.max(0,y.rowIndent)),ft=y.width;var Te=y.height,Be=0,ze=0,Ve=0,an=0,Vn=0,$n=0,_n=0,Hn=0,Tn=0,Ni=0;if(ot&&!xp(ht)&&135<b&&E.reverse(),xp(ht))if(1<nt)for(var Ei=0;Ei<nt;Ei++){var gr=E[Ei],Nr=gr.Da;Ei%2===0&&Ei!==nt-1?Tn=Math.max(Tn,(x?Nr.width:Nr.height)+a.computeBusNodeSpacing(gr)-Xt):Ei%2!==0&&(Ni=Math.max(Ni,(x?Nr.width:Nr.height)+a.computeBusNodeSpacing(gr)-Xt))}else nt===1&&(Tn=x?E[0].Da.width:E[0].Da.height);if(ot)switch(ht){case th:case $l:ze=135>b?cx(a,y,E,Tn,Be,ze):dx(a,y,E,Tn,Be,ze),Tn=ze.x,Be=ze.width,ze=ze.height;break;case eh:for(jt=0;jt<nt;jt++)ie=E[jt],Ve=ie.Da,Ni=_n===0?0:be,x?(ie.S.h(z-Ve.width,Vn+Ni),Be=Math.max(Be,Ve.width),ze=Math.max(ze,Vn+Ni+Ve.height),Vn+=Ni+Ve.height):(ie.S.h(an+Ni,z-Ve.height),Be=Math.max(Be,an+Ni+Ve.width),ze=Math.max(ze,Ve.height),an+=Ni+Ve.width),_n++;break;case Su:for(z=0;z<nt;z++)jt=E[z],ie=jt.Da,Ve=_n===0?0:be,x?(jt.S.h(Xt/2+y.focus.x,Vn+Ve),Be=Math.max(Be,ie.width),ze=Math.max(ze,Vn+Ve+ie.height),Vn+=Ve+ie.height):(jt.S.h(an+Ve,Xt/2+y.focus.y),Be=Math.max(Be,an+Ve+ie.width),ze=Math.max(ze,ie.height),an+=Ve+ie.width),_n++}else for(Ni=0;Ni<nt;Ni++)Ei=E[Ni],gr=Ei.Da,x?(0<jt&&0<_n&&an+Xt+gr.width>jt&&(an<z&&Fc(y,ht,z-an,0,Hn,Ni-1),$n++,_n=0,Hn=Ni,Ve=ze,an=0,Vn=135<b?-ze-be:ze+be),Nr=_n===0?ie:Xt,N0(a,Ei,0,Vn),Ei.S.h(an+Nr,Vn),Be=Math.max(Be,an+Nr+gr.width),ze=Math.max(ze,Ve+($n===0?0:be)+gr.height),an+=Nr+gr.width):(0<jt&&0<_n&&Vn+Xt+gr.height>jt&&(Vn<z&&Fc(y,ht,0,z-Vn,Hn,Ni-1),$n++,_n=0,Hn=Ni,Ve=Be,Vn=0,an=135<b?-Be-be:Be+be),Nr=_n===0?ie:Xt,N0(a,Ei,an,0),Ei.S.h(an,Vn+Nr),ze=Math.max(ze,Vn+Nr+gr.height),Be=Math.max(Be,Ve+($n===0?0:be)+gr.width),Vn+=Nr+gr.height),_n++;switch(0<$n&&(x?(ze+=Math.max(0,at),an<Be&&Fc(y,ht,Be-an,0,Hn,nt-1),0<ve&&(Lt||Cd(y,ve,0,0,nt-1),Be+=ve)):(Be+=Math.max(0,at),Vn<ze&&Fc(y,ht,0,ze-Vn,Hn,nt-1),0<ve&&(Lt||Cd(y,0,ve,0,nt-1),ze+=ve))),ve=Lt=0,ht){case Hf:x?Lt+=Be/2-y.focus.x-qt/2:ve+=ze/2-y.focus.y-qt/2;break;case Ld:0<$n?x?Lt+=Be/2-y.focus.x-qt/2:ve+=ze/2-y.focus.y-qt/2:x?(a=E[0].S.x+E[0].la.x,Lt+=a+(E[nt-1].S.x+E[nt-1].la.x+2*E[nt-1].focus.x-a)/2-y.focus.x-qt/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-qt/2);break;case Ql:x?(Lt-=qt,Be+=qt):(ve-=qt,ze+=qt);break;case ql:x?(Lt+=Be-y.width+qt,Be+=qt):(ve+=ze-y.height+qt,ze+=qt);break;case th:case $l:x?1<nt?Lt+=Tn+Xt/2-y.focus.x:Lt+=E[0].focus.x-y.focus.x+E[0].la.x:1<nt?ve+=Tn+Xt/2-y.focus.y:ve+=E[0].focus.y-y.focus.y+E[0].la.y;break;case eh:x?Lt+=Be+Xt/2-y.focus.x:ve+=ze+Xt/2-y.focus.y;break;case Su:break;default:a=a.customAlignment(y,Lt,ve,Be,ze),Lt=a[0],ve=a[1],Be=a[2],ze=a[3]}for(a=0;a<nt;a++)qt=E[a],x?qt.S.h(qt.S.x+qt.la.x-Lt,qt.S.y+(135<b?(ot?-ze:-qt.Da.height)+qt.la.y-at:Te+at+qt.la.y)):qt.S.h(qt.S.x+(135<b?(ot?-Be:-qt.Da.width)+qt.la.x-at:ft+at+qt.la.x),qt.S.y+qt.la.y-ve);x?(Be=ky(y,Be,Lt),0>Lt&&(Lt=0),135<b&&(ve+=ze+at),ze=Math.max(Math.max(ze,Te),ze+Te+at)):(135<b&&(Lt+=Be+at),Be=Math.max(Math.max(Be,ft),Be+ft+at),ze=Ny(y,ze,ve),0>ve&&(ve=0)),y.la.h(Lt,ve),y.Da.h(Be,ze)}}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 Sn(b,0,E,z);if(nt===1)return y=x[0],E=y.Da.width,z=y.Da.height,new Sn(b,0,E,z);for(var ot=y.nodeSpacing,at=y.rowSpacing,ht=ul(y)===90,ft=0,Lt=0,jt=0,Xt=0;Xt<nt;Xt++)if(!(Xt%2!==0||1<nt&&Xt===nt-1)){var qt=x[Xt],ie=qt.Da,be=ft===0?0:at;if(ht){var ve=a.computeBusNodeSpacing(qt)-ot;qt.S.h(b-(ie.width+ve),jt+be),E=Math.max(E,ie.width+ve),z=Math.max(z,jt+be+ie.height),jt+=be+ie.height}else ve=a.computeBusNodeSpacing(qt)-ot,qt.S.h(Lt+be,b-(ie.height+ve)),z=Math.max(z,ie.height+ve),E=Math.max(E,Lt+be+ie.width),Lt+=be+ie.width;ft++}for(ft=0,qt=Lt,Xt=jt,ht?(Lt=b+ot,jt=0):(Lt=0,jt=b+ot),ie=0;ie<nt;ie++)if(ie%2!==0){be=x[ie],ve=be.Da;var Te=ft===0?0:at;if(ht){var Be=a.computeBusNodeSpacing(be)-ot;be.S.h(Lt+Be,jt+Te),E=Math.max(E,Lt+ve.width+Be),z=Math.max(z,jt+Te+ve.height),jt+=Te+ve.height}else Be=a.computeBusNodeSpacing(be)-ot,be.S.h(Lt+Te,jt+Be),E=Math.max(E,Lt+Te+ve.width),z=Math.max(z,jt+ve.height+Be),Lt+=Te+ve.width;ft++}return 1<nt&&nt%2===1&&(x=x[nt-1],nt=x.Da,a=a.computeBusLastRowSpacing(x,ht?Math.max(Math.abs(Xt),Math.abs(jt)):Math.max(Math.abs(qt),Math.abs(Lt))),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(Xt,jt)+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(qt,Lt)+a+nt.width),jt=b+ot/2-x.focus.y-x.la.y,z=Math.max(z,jt+nt.height),0>jt&&(z-=jt),0>x.S.y&&(b=k0(y,x.S.y,!0,b,ot)))),new Sn(b,0,E,z)}function dx(a,y,x,b,E,z){var nt=x.length;if(nt===0)return new Sn(b,0,E,z);if(nt===1)return x=x[0],E=x.Da.width,z=x.Da.height,new Sn(b,0,E,z);for(var ot=y.nodeSpacing,at=y.rowSpacing,ht=ul(y)===270,ft=0,Lt=0,jt=0,Xt=0;Xt<nt;Xt++)if(!(Xt%2!==0||1<nt&&Xt===nt-1)){var qt=x[Xt],ie=qt.Da,be=ft===0?0:at;if(ht){var ve=a.computeBusNodeSpacing(qt)-ot;jt-=be+ie.height,qt.S.h(b-(ie.width+ve),jt),E=Math.max(E,ie.width+ve),z=Math.max(z,Math.abs(jt))}else ve=a.computeBusNodeSpacing(qt)-ot,Lt-=be+ie.width,qt.S.h(Lt,b-(ie.height+ve)),z=Math.max(z,ie.height+ve),E=Math.max(E,Math.abs(Lt));ft++}for(ft=0,qt=Lt,Xt=jt,ht?(Lt=b+ot,jt=0):(Lt=0,jt=b+ot),ie=0;ie<nt;ie++)if(ie%2!==0){be=x[ie],ve=be.Da;var Te=ft===0?0:at;if(ht){var Be=a.computeBusNodeSpacing(be)-ot;jt-=Te+ve.height,be.S.h(Lt+Be,jt),E=Math.max(E,Lt+ve.width+Be),z=Math.max(z,Math.abs(jt))}else Be=a.computeBusNodeSpacing(be)-ot,Lt-=Te+ve.width,be.S.h(Lt,jt+Be),z=Math.max(z,jt+ve.height+Be),E=Math.max(E,Math.abs(Lt));ft++}for(1<nt&&nt%2===1&&(at=x[nt-1],ft=at.Da,a=a.computeBusLastRowSpacing(at,ht?Math.max(Math.abs(Xt),Math.abs(jt)):Math.max(Math.abs(qt),Math.abs(Lt))),ht?(at.S.h(b+ot/2-at.focus.x-at.la.x,-z-ft.height-a),Lt=b+ot/2-at.focus.x-at.la.x,E=Math.max(E,Lt+ft.width),0>Lt&&(E-=Lt),z=Math.max(z,Math.abs(Math.min(Xt,jt))+a+ft.height),0>at.S.x&&(b=k0(y,at.S.x,!1,b,ot))):(at.S.h(-E-ft.width-a,b+ot/2-at.focus.y-at.la.y),E=Math.max(E,Math.abs(Math.min(qt,Lt))+a+ft.width),jt=b+ot/2-at.focus.y-at.la.y,z=Math.max(z,jt+ft.height),0>jt&&(z-=jt),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 Sn(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:Me("Unhandled alignment value "+a.toString())}return new xe(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:Me("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=ul(y),ht=at===90||at===270,ft=y.nodeSpacing;y=b;var Lt=E;b=z;var jt=nt,Xt=x.Yo,qt=x.kp;nt=x.Da;var ie=ht?Math.max(jt,nt.height):Math.max(b,nt.width);if((Xt===null||at!==ul(x))&&(Xt=Ks(a,2),qt=Ks(a,2),ht?(Xt[0].h(0,0),Xt[1].h(0,nt.height),qt[0].h(nt.width,0),qt[1].h(qt[0].x,Xt[1].y)):(Xt[0].h(0,0),Xt[1].h(nt.width,0),qt[0].h(0,nt.height),qt[1].h(Xt[1].x,qt[0].y))),ht){if(jt=9999999,!(Lt===null||2>Lt.length||Xt===null||2>Xt.length))for(E=x=0;x<Lt.length&&E<Xt.length;){z=Lt[x];var be=Xt[E];at=be.x,ht=be.y,at+=b;var ve=z;x+1<Lt.length&&(ve=Lt[x+1]);var Te=be;be=Te.x,Te=Te.y,E+1<Xt.length&&(Te=Xt[E+1],be=Te.x,Te=Te.y,be+=b);var Be=jt;z.y===ht?Be=at-z.x:z.y>ht&&z.y<Te?Be=at+(z.y-ht)/(Te-ht)*(be-at)-z.x:ht>z.y&&ht<ve.y&&(Be=at-(z.x+(ht-z.y)/(ve.y-z.y)*(ve.x-z.x))),Be<jt&&(jt=Be),ve.y<=z.y?x++:Te<=ht?E++:(ve.y<=Te&&x++,Te<=ve.y&&E++)}if(jt=b-jt,jt+=ft,x=Xt,E=jt,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ft=Ks(a,y.length+x.length),b=z=at=0;z<x.length&&x[z].y<y[0].y;)ht=x[z++],ft[b++].h(ht.x+E,ht.y);for(;at<y.length;)ht=y[at++],ft[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++],ft[b++].h(ht.x+E,ht.y);for(x=Ks(a,b),at=0;at<b;at++)x[at].assign(ft[at]);vl(a,ft),b=x}if(z=qt,at=jt,Lt===null||2>Lt.length||z===null||2>z.length)E=null;else{for(ft=Ks(a,Lt.length+z.length),E=ht=x=0;x<Lt.length&&Lt[x].y<z[0].y;)ve=Lt[x++],ft[E++].h(ve.x,ve.y);for(;ht<z.length;)ve=z[ht++],ft[E++].h(ve.x+at,ve.y);for(z=z[z.length-1].y;x<Lt.length&&Lt[x].y<=z;)x++;for(;x<Lt.length&&Lt[x].y>z;)at=Lt[x++],ft[E++].h(at.x,at.y);for(z=Ks(a,E),x=0;x<E;x++)z[x].assign(ft[x]);vl(a,ft),E=z}return z=Math.max(0,jt)+nt.width,nt=ie,vl(a,y),vl(a,Xt),vl(a,Lt),vl(a,qt),ot[0]=b,ot[1]=E,new Sn(jt,0,z,nt)}if(b=9999999,!(Lt===null||2>Lt.length||Xt===null||2>Xt.length))for(E=x=0;x<Lt.length&&E<Xt.length;)z=Lt[x],be=Xt[E],at=be.x,ht=be.y,ht+=jt,ve=z,x+1<Lt.length&&(ve=Lt[x+1]),Te=be,be=Te.x,Te=Te.y,E+1<Xt.length&&(Te=Xt[E+1],be=Te.x,Te=Te.y,Te+=jt),Be=b,z.x===at?Be=ht-z.y:z.x>at&&z.x<be?Be=ht+(z.x-at)/(be-at)*(Te-ht)-z.y:at>z.x&&at<ve.x&&(Be=ht-(z.y+(at-z.x)/(ve.x-z.x)*(ve.y-z.y))),Be<b&&(b=Be),ve.x<=z.x?x++:be<=at?E++:(ve.x<=be&&x++,be<=ve.x&&E++);if(jt-=b,jt+=ft,x=Xt,E=jt,y===null||2>y.length||x===null||2>x.length)b=null;else{for(ft=Ks(a,y.length+x.length),b=z=at=0;z<x.length&&x[z].x<y[0].x;)ht=x[z++],ft[b++].h(ht.x,ht.y+E);for(;at<y.length;)ht=y[at++],ft[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++],ft[b++].h(ht.x,ht.y+E);for(x=Ks(a,b),at=0;at<b;at++)x[at].assign(ft[at]);vl(a,ft),b=x}if(z=qt,at=jt,Lt===null||2>Lt.length||z===null||2>z.length)E=null;else{for(ft=Ks(a,Lt.length+z.length),E=ht=x=0;x<Lt.length&&Lt[x].x<z[0].x;)ve=Lt[x++],ft[E++].h(ve.x,ve.y);for(;ht<z.length;)ve=z[ht++],ft[E++].h(ve.x,ve.y+at);for(z=z[z.length-1].x;x<Lt.length&&Lt[x].x<=z;)x++;for(;x<Lt.length&&Lt[x].x>z;)at=Lt[x++],ft[E++].h(at.x,at.y);for(z=Ks(a,E),x=0;x<E;x++)z[x].assign(ft[x]);vl(a,ft),E=z}return z=ie,nt=Math.max(0,jt)+nt.height,vl(a,y),vl(a,Xt),vl(a,Lt),vl(a,qt),ot[0]=b,ot[1]=E,new Sn(jt,0,z,nt)}function Ks(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 xe;return a}function vl(a,y){var x=y.length,b=a.ru[x];b===void 0&&(b=[],a.ru[x]=b),b.push(y)}Qi.prototype.arrangeTrees=function(){if(this.Rb===R0)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof _a){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 _a&&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:Me("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:Me("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 xe(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),b=new xe(-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 Sn(0,z,x,ot))):this.angle===90?(E.push(new Sn(0,z,x,ot)),z+=ot):this.angle===180?(z-=ot,E.push(new Sn(z,0,ot,x))):(E.push(new Sn(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 _a&&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=ul(a);switch(b){case 0:var E=Ko;break;case 90:E=Ro;break;case 180:E=No;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?No:Co;if(nt===1||y===nt-1&&nt%2===1)switch(b){case 0:at=No;break;case 90:at=Co;break;case 180:at=Ko;break;default:at=Ro}else y%2===0&&(at=b===90||b===270?Ko:Ro);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:Ro,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?No: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=ul(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=Ro;break;case 180:b.fromSpot=No;break;default:b.fromSpot=Co}else b.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.toSpot=No;break;case 90:b.toSpot=Co;break;case 180:b.toSpot=Ko;break;default:b.toSpot=Ro}else b.toSpot=a.childPortSpot}}else for(E=a.sourceEdges;E.next();)if(b=E.value.link,b!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:b.toSpot=Ko;break;case 90:b.toSpot=Ro;break;case 180:b.toSpot=No;break;default:b.toSpot=Co}else b.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:b.fromSpot=No;break;case 90:b.fromSpot=Co;break;case 180:b.fromSpot=Ko;break;default:b.fromSpot=Ro}else b.fromSpot=a.childPortSpot}};function ul(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=ul(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=ul(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)},Fe.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()):Me("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 qe(Qi,"PathDefault",-1),Jl=new qe(Qi,"PathDestination",0),Ed=new qe(Qi,"PathSource",1),zf=new qe(Qi,"SortingForwards",10),wp=new qe(Qi,"SortingReverse",11),Pp=new qe(Qi,"SortingAscending",12),bp=new qe(Qi,"SortingDescending",13),Hf=new qe(Qi,"AlignmentCenterSubtrees",20),Ld=new qe(Qi,"AlignmentCenterChildren",21),Ql=new qe(Qi,"AlignmentStart",22),ql=new qe(Qi,"AlignmentEnd",23),th=new qe(Qi,"AlignmentBus",24),$l=new qe(Qi,"AlignmentBusBranching",25),eh=new qe(Qi,"AlignmentTopLeftBus",26),Su=new qe(Qi,"AlignmentBottomRightBus",27),D0=new qe(Qi,"CompactionNone",30),Cp=new qe(Qi,"CompactionBlock",31),F0=new qe(Qi,"StyleLayered",40),Dy=new qe(Qi,"StyleLastParents",41),Fy=new qe(Qi,"StyleAlternating",42),By=new qe(Qi,"StyleRootOnly",43),B0=new qe(Qi,"ArrangementVertical",50),Ry=new qe(Qi,"ArrangementHorizontal",51),R0=new qe(Qi,"ArrangementFixedRoots",52),jy=new qe(Qi,"LayerIndividual",60),zy=new qe(Qi,"LayerSiblings",61),j0=new qe(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 _a(this)},Ad.prototype.createEdge=function(){return new Wf(this)},Ad.className="TreeNetwork";function _a(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 xe(0,0),this.Da=new zn(0,0),this.la=new xe(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=Pr,this.wr=!0,this.Dp=Pr}Qe(_a,Ao),_a.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)},Fe.Object.defineProperties(_a.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)}}}),_a.className="TreeVertex";function Wf(a){aa.call(this,a),this.$t=new xe(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:Me("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=ul(x),nt=y.computeLayerSpacing(x),ot=x.rowSpacing;a.vg();var at=a.curve===Sa,ht=a.isOrthogonal,ft;if(a.uh(),ht||at){for(ft=2;4<a.pointsCount;)a.pv(2);var Lt=a.i(1),jt=a.i(2)}else{for(ft=1;3<a.pointsCount;)a.pv(1);Lt=a.i(0),jt=a.i(a.pointsCount-1)}var Xt=a.i(a.pointsCount-1);z===0?(x.alignment===ql?(z=b.bottom+E.y,E.y===0&&Lt.y>Xt.y+x.rowIndent&&(z=Math.min(z,Math.max(Lt.y,z-y.computeNodeIndent(x))))):x.alignment===Ql?(z=b.top+E.y,E.y===0&&Lt.y<Xt.y-x.rowIndent&&(z=Math.max(z,Math.min(Lt.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(ft,Lt.x,z),ft++,a.m(ft,b.right+nt,z),ft++,a.m(ft,b.right+nt+(E.x-ot)/3,z),ft++,a.m(ft,b.right+nt+2*(E.x-ot)/3,z),ft++,a.m(ft,b.right+nt+(E.x-ot),z),ft++,a.m(ft,jt.x,z)):(ht&&(a.m(ft,b.right+nt/2,Lt.y),ft++),a.m(ft,b.right+nt/2,z),ft++,a.m(ft,b.right+nt+E.x-(ht?ot/2:ot),z),ft++,ht&&a.m(ft,a.i(ft-1).x,jt.y))):z===90?(x.alignment===ql?(z=b.right+E.x,E.x===0&&Lt.x>Xt.x+x.rowIndent&&(z=Math.min(z,Math.max(Lt.x,z-y.computeNodeIndent(x))))):x.alignment===Ql?(z=b.left+E.x,E.x===0&&Lt.x<Xt.x-x.rowIndent&&(z=Math.max(z,Math.min(Lt.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(ft,z,Lt.y),ft++,a.m(ft,z,b.bottom+nt),ft++,a.m(ft,z,b.bottom+nt+(E.y-ot)/3),ft++,a.m(ft,z,b.bottom+nt+2*(E.y-ot)/3),ft++,a.m(ft,z,b.bottom+nt+(E.y-ot)),ft++,a.m(ft,z,jt.y)):(ht&&(a.m(ft,Lt.x,b.bottom+nt/2),ft++),a.m(ft,z,b.bottom+nt/2),ft++,a.m(ft,z,b.bottom+nt+E.y-(ht?ot/2:ot)),ft++,ht&&a.m(ft,jt.x,a.i(ft-1).y))):z===180?(x.alignment===ql?(z=b.bottom+E.y,E.y===0&&Lt.y>Xt.y+x.rowIndent&&(z=Math.min(z,Math.max(Lt.y,z-y.computeNodeIndent(x))))):x.alignment===Ql?(z=b.top+E.y,E.y===0&&Lt.y<Xt.y-x.rowIndent&&(z=Math.max(z,Math.min(Lt.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(ft,Lt.x,z),ft++,a.m(ft,b.left-nt,z),ft++,a.m(ft,b.left-nt+(E.x+ot)/3,z),ft++,a.m(ft,b.left-nt+2*(E.x+ot)/3,z),ft++,a.m(ft,b.left-nt+(E.x+ot),z),ft++,a.m(ft,jt.x,z)):(ht&&(a.m(ft,b.left-nt/2,Lt.y),ft++),a.m(ft,b.left-nt/2,z),ft++,a.m(ft,b.left-nt+E.x+(ht?ot/2:ot),z),ft++,ht&&a.m(ft,a.i(ft-1).x,jt.y))):z===270?(x.alignment===ql?(z=b.right+E.x,E.x===0&&Lt.x>Xt.x+x.rowIndent&&(z=Math.min(z,Math.max(Lt.x,z-y.computeNodeIndent(x))))):x.alignment===Ql?(z=b.left+E.x,E.x===0&&Lt.x<Xt.x-x.rowIndent&&(z=Math.max(z,Math.min(Lt.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(ft,z,Lt.y),ft++,a.m(ft,z,b.top-nt),ft++,a.m(ft,z,b.top-nt+(E.y+ot)/3),ft++,a.m(ft,z,b.top-nt+2*(E.y+ot)/3),ft++,a.m(ft,z,b.top-nt+(E.y+ot)),ft++,a.m(ft,z,jt.y)):(ht&&(a.m(ft,Lt.x,b.top-nt/2),ft++),a.m(ft,z,b.top-nt/2),ft++,a.m(ft,z,b.top-nt+E.y+(ht?ot/2:ot)),ft++,ht&&a.m(ft,jt.x,a.i(ft-1).y))):Me("Invalid angle "+z),a.zf()}else E=b,a=this.link,b=this.network.layout,y=ul(x),y!==ul(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===Sa,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()))}}},Fe.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",Gr.prototype.initializeStandardTools=function(){this.gb("Action",new Ua,this.mouseDownTools),this.gb("Relinking",new ga,this.mouseDownTools),this.gb("LinkReshaping",new uo,this.mouseDownTools),this.gb("Rotating",new Ps,this.mouseDownTools),this.gb("Resizing",new rs,this.mouseDownTools),this.gb("Linking",new ws,this.mouseMoveTools),this.gb("Dragging",new _r,this.mouseMoveTools),this.gb("DragSelecting",new La,this.mouseMoveTools),this.gb("Panning",new ts,this.mouseMoveTools),this.gb("ContextMenu",new bs,this.mouseUpTools),this.gb("TextEditing",new Rr,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",zo),hf.add("TreeModel",Da);var z0=Ae.go,Hy={get licenseKey(){return un.licenseKey},set licenseKey(a){un.licenseKey=a},get version(){return un.version},Group:Ii,EnumValue:qe,List:Cn,Set:Ln,Map:Jn,Point:xe,Size:zn,Rect:Sn,Margin:hi,Spot:si,Geometry:Gn,PathFigure:Oo,PathSegment:dr,InputEvent:hs,DiagramEvent:Lu,ChangedEvent:Zr,Model:ri,GraphLinksModel:rr,TreeModel:Ns,Binding:co,Transaction:jo,UndoManager:Yr,CommandHandler:Pe,Tool:lr,DraggingTool:_r,DraggingInfo:fu,DraggingOptions:lt,LinkingBaseTool:to,LinkingTool:ws,RelinkingTool:ga,LinkReshapingTool:uo,ResizingTool:rs,RotatingTool:Ps,ClickSelectingTool:bh,ActionTool:Ua,ClickCreatingTool:Fu,HTMLInfo:El,ContextMenuTool:bs,DragSelectingTool:La,PanningTool:ts,TextEditingTool:Rr,ToolManager:Gr,Animation:es,AnimationManager:ra,AnimationTrigger:el,Layer:Vo,Diagram:un,Palette:wt,Overview:kt,Brush:xr,GraphObject:Xe,Panel:Bn,RowColumnDefinition:wo,Shape:ji,TextBlock:Ir,Picture:zs,Part:ci,Adornment:ur,Node:Zn,Link:Wn,Placeholder:As,Layout:Ur,LayoutNetwork:Dr,LayoutVertex:Ao,LayoutEdge:aa,GridLayout:Jo,PanelLayout:Lo,CircularLayout:Jr,CircularNetwork:Bf,CircularVertex:gp,CircularEdge:S0,ForceDirectedLayout:is,ForceDirectedNetwork:bd,ForceDirectedVertex:pp,ForceDirectedEdge:mp,LayeredDigraphLayout:Cr,LayeredDigraphNetwork:jf,LayeredDigraphVertex:Ba,LayeredDigraphEdge:Sp,TreeLayout:Qi,TreeNetwork:Ad,TreeVertex:_a,TreeEdge:Wf};typeof z0=="object"&&z0.version&&In("WARNING: a `go` object on the root object is already defined. "+("Debug"in z0?"debug ":"")+"version: "+z0.version+", replaced with version: "+Hy.version),un.prototype.go=Hy,Ae.go=Hy,typeof Nn.exports=="object"&&(Nn.exports=typeof Gt.g!="undefined"?Gt.g.go:self.go)}();var Rt=typeof Gt.g!="undefined"?Gt.g.go:self.go;const yt=typeof Gt.g!="undefined"?Gt.g.go:self.go,Vt=yt.Group,Yt=yt.EnumValue,Nt=yt.List,Wt=yt.Set,xt=yt.Map,Ot=yt.Point,Bt=yt.Size,At=yt.Rect,bt=yt.Margin,Tt=yt.Spot,It=yt.Geometry,vt=yt.PathFigure,et=yt.PathSegment,tt=yt.InputEvent,st=yt.DiagramEvent,rt=yt.ChangedEvent,ut=yt.Model,ct=yt.GraphLinksModel,pt=yt.TreeModel,mt=yt.Binding,Ct=yt.Transaction,Dt=yt.UndoManager,Ut=yt.CommandHandler,Ft=yt.Tool,Qt=yt.DraggingTool,$t=yt.DraggingInfo,Kt=yt.LinkingBaseTool,ue=yt.LinkingTool,oe=yt.RelinkingTool,we=yt.LinkReshapingTool,Se=yt.ResizingTool,Ne=yt.RotatingTool,pe=yt.ClickSelectingTool,Ue=yt.ActionTool,de=yt.ClickCreatingTool,Jt=yt.HTMLInfo,ee=yt.ContextMenuTool,ae=yt.DragSelectingTool,fe=yt.PanningTool,se=yt.TextEditingTool,De=yt.ToolManager,Oe=yt.Animation,en=yt.AnimationManager,We=yt.AnimationTrigger,rn=yt.Layer,ke=yt.Diagram,Ie=yt.Palette,je=yt.Overview,$e=yt.Brush,me=yt.GraphObject,le=yt.Panel,Ee=yt.RowColumnDefinition,ce=yt.Shape,he=yt.TextBlock,_t=yt.TextBlockMetrics,Mt=yt.Picture,Et=yt.Part,Ht=yt.Adornment,Pt=yt.Node,dt=yt.Link,gt=yt.Placeholder,zt=yt.Layout,re=yt.LayoutNetwork,Zt=yt.LayoutVertex,ye=yt.LayoutEdge,Ye=yt.GridLayout,sn=yt.PanelLayout,Le=yt.CircularLayout,Re=yt.CircularNetwork,hn=yt.CircularVertex,wn=yt.CircularEdge,kn=yt.ForceDirectedLayout,Rn=yt.ForceDirectedNetwork,Yn=yt.ForceDirectedVertex,Kn=yt.ForceDirectedEdge,li=yt.LayeredDigraphLayout,mi=yt.LayeredDigraphNetwork,yi=yt.LayeredDigraphVertex,Pi=yt.LayeredDigraphEdge,Mi=yt.TreeLayout,Gi=yt.TreeNetwork,bi=yt.TreeVertex,Ki=yt.TreeEdge,ui=yt.version},17115:function(Nn,An,Gt){"use strict";Gt.d(An,{ZP:function(){return xt}});var Rt=Gt(29043),yt=Gt(59301),Vt=Gt(87746),Yt=0,Nt=(0,Vt.Z)();function Wt(){var Ot;return Nt?(Ot=Yt,Yt+=1):Ot="TEST_OR_SSR",Ot}function xt(Ot){var Bt=yt.useState(),At=(0,Rt.Z)(Bt,2),bt=At[0],Tt=At[1];return yt.useEffect(function(){Tt("rc_select_".concat(Wt()))},[]),Ot||bt}},77861:function(Nn,An,Gt){"use strict";Gt.d(An,{Ac:function(){return zt},Xo:function(){return Kn},Wx:function(){return mi},ZP:function(){return bn},lk:function(){return pt}});var Rt=Gt(5891),yt=Gt(26390),Vt=Gt(80962),Yt=Gt(57259),Nt=Gt(29043),Wt=Gt(19149),xt=Gt(80665),Ot=Gt(35788),Bt=Gt(51395),At=Gt(59301),bt=Gt(92310),Tt=Gt.n(bt),It=Gt(28800),vt=Gt(93144),et=Gt(85108),tt=Gt(20475),st=function(Ae){var gn=Ae.className,Pn=Ae.customizeIcon,Un=Ae.customizeIconProps,mn=Ae.onMouseDown,Me=Ae.onClick,Ge=Ae.children,fn;return typeof Pn=="function"?fn=Pn(Un):fn=Pn,At.createElement("span",{className:gn,onMouseDown:function(Ke){Ke.preventDefault(),mn&&mn(Ke)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Me,"aria-hidden":!0},fn!==void 0?fn:At.createElement("span",{className:Tt()(gn.split(/\s+/).map(function(In){return"".concat(In,"-icon")}))},Ge))},rt=st;function ut(Ze,Ae,gn,Pn,Un){var mn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Me=arguments.length>6?arguments[6]:void 0,Ge=arguments.length>7?arguments[7]:void 0,fn=At.useMemo(function(){if((0,xt.Z)(Pn)==="object")return Pn.clearIcon;if(Un)return Un},[Pn,Un]),In=At.useMemo(function(){return!!(!mn&&Pn&&(gn.length||Me)&&!(Ge==="combobox"&&Me===""))},[Pn,mn,gn.length,Me,Ge]);return{allowClear:In,clearIcon:At.createElement(rt,{className:"".concat(Ze,"-clear"),onMouseDown:Ae,customizeIcon:fn},"\xD7")}}var ct=At.createContext(null);function pt(){return At.useContext(ct)}function mt(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ae=At.useState(!1),gn=(0,Nt.Z)(Ae,2),Pn=gn[0],Un=gn[1],mn=At.useRef(null),Me=function(){window.clearTimeout(mn.current)};At.useEffect(function(){return Me},[]);var Ge=function(In,Ke){Me(),mn.current=window.setTimeout(function(){Un(In),Ke&&Ke()},Ze)};return[Pn,Ge,Me]}function Ct(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ae=At.useRef(null),gn=At.useRef(null);At.useEffect(function(){return function(){window.clearTimeout(gn.current)}},[]);function Pn(Un){(Un||Ae.current===null)&&(Ae.current=Un),window.clearTimeout(gn.current),gn.current=window.setTimeout(function(){Ae.current=null},Ze)}return[function(){return Ae.current},Pn]}function Dt(Ze,Ae,gn,Pn){var Un=At.useRef(null);Un.current={open:Ae,triggerOpen:gn,customizedTrigger:Pn},At.useEffect(function(){function mn(Me){var Ge;if(!((Ge=Un.current)!==null&&Ge!==void 0&&Ge.customizedTrigger)){var fn=Me.target;fn.shadowRoot&&Me.composed&&(fn=Me.composedPath()[0]||fn),Un.current.open&&Ze().filter(function(In){return In}).every(function(In){return!In.contains(fn)&&In!==fn})&&Un.current.triggerOpen(!1)}}return window.addEventListener("mousedown",mn),function(){return window.removeEventListener("mousedown",mn)}},[])}var Ut=Gt(36994),Ft=Gt(11780),Qt=function(Ae,gn){var Pn,Un,mn=Ae.prefixCls,Me=Ae.id,Ge=Ae.inputElement,fn=Ae.disabled,In=Ae.tabIndex,Ke=Ae.autoFocus,cn=Ae.autoComplete,_e=Ae.editable,on=Ae.activeDescendantId,dn=Ae.value,ln=Ae.maxLength,xn=Ae.onKeyDown,yn=Ae.onMouseDown,Mn=Ae.onChange,On=Ae.onPaste,En=Ae.onCompositionStart,jn=Ae.onCompositionEnd,ei=Ae.open,pi=Ae.attrs,ii=Ge||At.createElement("input",null),qe=ii,Xn=qe.ref,ti=qe.props,Qn=ti.onKeyDown,Li=ti.onChange,fi=ti.onMouseDown,ki=ti.onCompositionStart,gi=ti.onCompositionEnd,oi=ti.style;return(0,Bt.Kp)(!("maxLength"in ii.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),ii=At.cloneElement(ii,(0,Yt.Z)((0,Yt.Z)((0,Yt.Z)({type:"search"},ti),{},{id:Me,ref:(0,tt.sQ)(gn,Xn),disabled:fn,tabIndex:In,autoComplete:cn||"off",autoFocus:Ke,className:Tt()("".concat(mn,"-selection-search-input"),(Pn=ii)===null||Pn===void 0||(Un=Pn.props)===null||Un===void 0?void 0:Un.className),role:"combobox","aria-label":"Search","aria-expanded":ei||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Me,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Me,"_list"),"aria-activedescendant":ei?on:void 0},pi),{},{value:_e?dn:"",maxLength:ln,readOnly:!_e,unselectable:_e?null:"on",style:(0,Yt.Z)((0,Yt.Z)({},oi),{},{opacity:_e?null:0}),onKeyDown:function(Cn){xn(Cn),Qn&&Qn(Cn)},onMouseDown:function(Cn){yn(Cn),fi&&fi(Cn)},onChange:function(Cn){Mn(Cn),Li&&Li(Cn)},onCompositionStart:function(Cn){En(Cn),ki&&ki(Cn)},onCompositionEnd:function(Cn){jn(Cn),gi&&gi(Cn)},onPaste:On})),ii},$t=At.forwardRef(Qt);$t.displayName="Input";var Kt=$t;function ue(Ze){return Array.isArray(Ze)?Ze:Ze!==void 0?[Ze]:[]}var oe=typeof window!="undefined"&&window.document&&window.document.documentElement,we=oe;function Se(Ze){return Ze!=null}function Ne(Ze){return!Ze&&Ze!==0}function pe(Ze){return["string","number"].includes((0,xt.Z)(Ze))}function Ue(Ze){var Ae=void 0;return Ze&&(pe(Ze.title)?Ae=Ze.title.toString():pe(Ze.label)&&(Ae=Ze.label.toString())),Ae}function de(Ze,Ae){we?At.useLayoutEffect(Ze,Ae):At.useEffect(Ze,Ae)}function Jt(Ze){var Ae;return(Ae=Ze.key)!==null&&Ae!==void 0?Ae:Ze.value}var ee=function(Ae){Ae.preventDefault(),Ae.stopPropagation()},ae=function(Ae){var gn=Ae.id,Pn=Ae.prefixCls,Un=Ae.values,mn=Ae.open,Me=Ae.searchValue,Ge=Ae.autoClearSearchValue,fn=Ae.inputRef,In=Ae.placeholder,Ke=Ae.disabled,cn=Ae.mode,_e=Ae.showSearch,on=Ae.autoFocus,dn=Ae.autoComplete,ln=Ae.activeDescendantId,xn=Ae.tabIndex,yn=Ae.removeIcon,Mn=Ae.maxTagCount,On=Ae.maxTagTextLength,En=Ae.maxTagPlaceholder,jn=En===void 0?function(Ri){return"+ ".concat(Ri.length," ...")}:En,ei=Ae.tagRender,pi=Ae.onToggleOpen,ii=Ae.onRemove,qe=Ae.onInputChange,Xn=Ae.onInputPaste,ti=Ae.onInputKeyDown,Qn=Ae.onInputMouseDown,Li=Ae.onInputCompositionStart,fi=Ae.onInputCompositionEnd,ki=At.useRef(null),gi=(0,At.useState)(0),oi=(0,Nt.Z)(gi,2),Fi=oi[0],Cn=oi[1],nr=(0,At.useState)(!1),Ln=(0,Nt.Z)(nr,2),Bi=Ln[0],wr=Ln[1],Hi="".concat(Pn,"-selection"),Or=mn||cn==="multiple"&&Ge===!1||cn==="tags"?Me:"",pr=cn==="tags"||cn==="multiple"&&Ge===!1||_e&&(mn||Bi);de(function(){Cn(ki.current.scrollWidth)},[Or]);function Si(Ri,Ar,zi,ir,Oi){return At.createElement("span",{className:Tt()("".concat(Hi,"-item"),(0,Vt.Z)({},"".concat(Hi,"-item-disabled"),zi)),title:Ue(Ri)},At.createElement("span",{className:"".concat(Hi,"-item-content")},Ar),ir&&At.createElement(rt,{className:"".concat(Hi,"-item-remove"),onMouseDown:ee,onClick:Oi,customizeIcon:yn},"\xD7"))}function vi(Ri,Ar,zi,ir,Oi){var Ci=function(yr){ee(yr),pi(!mn)};return At.createElement("span",{onMouseDown:Ci},ei({label:Ar,value:Ri,disabled:zi,closable:ir,onClose:Oi}))}function Xi(Ri){var Ar=Ri.disabled,zi=Ri.label,ir=Ri.value,Oi=!Ke&&!Ar,Ci=zi;if(typeof On=="number"&&(typeof zi=="string"||typeof zi=="number")){var tr=String(Ci);tr.length>On&&(Ci="".concat(tr.slice(0,On),"..."))}var yr=function(Mr){Mr&&Mr.stopPropagation(),ii(Ri)};return typeof ei=="function"?vi(ir,Ci,Ar,Oi,yr):Si(Ri,Ci,Ar,Oi,yr)}function Zi(Ri){var Ar=typeof jn=="function"?jn(Ri):jn;return Si({title:Ar},Ar,!1)}var Jn=At.createElement("div",{className:"".concat(Hi,"-search"),style:{width:Fi},onFocus:function(){wr(!0)},onBlur:function(){wr(!1)}},At.createElement(Kt,{ref:fn,open:mn,prefixCls:Pn,id:gn,inputElement:null,disabled:Ke,autoFocus:on,autoComplete:dn,editable:pr,activeDescendantId:ln,value:Or,onKeyDown:ti,onMouseDown:Qn,onChange:qe,onPaste:Xn,onCompositionStart:Li,onCompositionEnd:fi,tabIndex:xn,attrs:(0,Ut.Z)(Ae,!0)}),At.createElement("span",{ref:ki,className:"".concat(Hi,"-search-mirror"),"aria-hidden":!0},Or,"\xA0")),xe=At.createElement(Ft.Z,{prefixCls:"".concat(Hi,"-overflow"),data:Un,renderItem:Xi,renderRest:Zi,suffix:Jn,itemKey:Jt,maxCount:Mn});return At.createElement(At.Fragment,null,xe,!Un.length&&!Or&&At.createElement("span",{className:"".concat(Hi,"-placeholder")},In))},fe=ae,se=function(Ae){var gn=Ae.inputElement,Pn=Ae.prefixCls,Un=Ae.id,mn=Ae.inputRef,Me=Ae.disabled,Ge=Ae.autoFocus,fn=Ae.autoComplete,In=Ae.activeDescendantId,Ke=Ae.mode,cn=Ae.open,_e=Ae.values,on=Ae.placeholder,dn=Ae.tabIndex,ln=Ae.showSearch,xn=Ae.searchValue,yn=Ae.activeValue,Mn=Ae.maxLength,On=Ae.onInputKeyDown,En=Ae.onInputMouseDown,jn=Ae.onInputChange,ei=Ae.onInputPaste,pi=Ae.onInputCompositionStart,ii=Ae.onInputCompositionEnd,qe=Ae.title,Xn=At.useState(!1),ti=(0,Nt.Z)(Xn,2),Qn=ti[0],Li=ti[1],fi=Ke==="combobox",ki=fi||ln,gi=_e[0],oi=xn||"";fi&&yn&&!Qn&&(oi=yn),At.useEffect(function(){fi&&Li(!1)},[fi,yn]);var Fi=Ke!=="combobox"&&!cn&&!ln?!1:!!oi,Cn=qe===void 0?Ue(gi):qe,nr=function(){if(gi)return null;var Bi=Fi?{visibility:"hidden"}:void 0;return At.createElement("span",{className:"".concat(Pn,"-selection-placeholder"),style:Bi},on)};return At.createElement(At.Fragment,null,At.createElement("span",{className:"".concat(Pn,"-selection-search")},At.createElement(Kt,{ref:mn,prefixCls:Pn,id:Un,open:cn,inputElement:gn,disabled:Me,autoFocus:Ge,autoComplete:fn,editable:ki,activeDescendantId:In,value:oi,onKeyDown:On,onMouseDown:En,onChange:function(Bi){Li(!0),jn(Bi)},onPaste:ei,onCompositionStart:pi,onCompositionEnd:ii,tabIndex:dn,attrs:(0,Ut.Z)(Ae,!0),maxLength:fi?Mn:void 0})),!fi&&gi?At.createElement("span",{className:"".concat(Pn,"-selection-item"),title:Cn,style:Fi?{visibility:"hidden"}:void 0},gi.label):null,nr())},De=se;function Oe(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 en=function(Ae,gn){var Pn=(0,At.useRef)(null),Un=(0,At.useRef)(!1),mn=Ae.prefixCls,Me=Ae.open,Ge=Ae.mode,fn=Ae.showSearch,In=Ae.tokenWithEnter,Ke=Ae.autoClearSearchValue,cn=Ae.onSearch,_e=Ae.onSearchSubmit,on=Ae.onToggleOpen,dn=Ae.onInputKeyDown,ln=Ae.domRef;At.useImperativeHandle(gn,function(){return{focus:function(){Pn.current.focus()},blur:function(){Pn.current.blur()}}});var xn=Ct(0),yn=(0,Nt.Z)(xn,2),Mn=yn[0],On=yn[1],En=function(oi){var Fi=oi.which;(Fi===et.Z.UP||Fi===et.Z.DOWN)&&oi.preventDefault(),dn&&dn(oi),Fi===et.Z.ENTER&&Ge==="tags"&&!Un.current&&!Me&&(_e==null||_e(oi.target.value)),Oe(Fi)&&on(!0)},jn=function(){On(!0)},ei=(0,At.useRef)(null),pi=function(oi){cn(oi,!0,Un.current)!==!1&&on(!0)},ii=function(){Un.current=!0},qe=function(oi){Un.current=!1,Ge!=="combobox"&&pi(oi.target.value)},Xn=function(oi){var Fi=oi.target.value;if(In&&ei.current&&/[\r\n]/.test(ei.current)){var Cn=ei.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Fi=Fi.replace(Cn,ei.current)}ei.current=null,pi(Fi)},ti=function(oi){var Fi=oi.clipboardData,Cn=Fi.getData("text");ei.current=Cn},Qn=function(oi){var Fi=oi.target;if(Fi!==Pn.current){var Cn=document.body.style.msTouchAction!==void 0;Cn?setTimeout(function(){Pn.current.focus()}):Pn.current.focus()}},Li=function(oi){var Fi=Mn();oi.target!==Pn.current&&!Fi&&Ge!=="combobox"&&oi.preventDefault(),(Ge!=="combobox"&&(!fn||!Fi)||!Me)&&(Me&&Ke!==!1&&cn("",!0,!1),on())},fi={inputRef:Pn,onInputKeyDown:En,onInputMouseDown:jn,onInputChange:Xn,onInputPaste:ti,onInputCompositionStart:ii,onInputCompositionEnd:qe},ki=Ge==="multiple"||Ge==="tags"?At.createElement(fe,(0,Rt.Z)({},Ae,fi)):At.createElement(De,(0,Rt.Z)({},Ae,fi));return At.createElement("div",{ref:ln,className:"".concat(mn,"-selector"),onClick:Qn,onMouseDown:Li},ki)},We=At.forwardRef(en);We.displayName="Selector";var rn=We,ke=Gt(35593),Ie=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],je=function(Ae){var gn=Ae===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:gn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:gn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:gn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:gn,adjustY:1},htmlRegion:"scroll"}}},$e=function(Ae,gn){var Pn=Ae.prefixCls,Un=Ae.disabled,mn=Ae.visible,Me=Ae.children,Ge=Ae.popupElement,fn=Ae.animation,In=Ae.transitionName,Ke=Ae.dropdownStyle,cn=Ae.dropdownClassName,_e=Ae.direction,on=_e===void 0?"ltr":_e,dn=Ae.placement,ln=Ae.builtinPlacements,xn=Ae.dropdownMatchSelectWidth,yn=Ae.dropdownRender,Mn=Ae.dropdownAlign,On=Ae.getPopupContainer,En=Ae.empty,jn=Ae.getTriggerDOMNode,ei=Ae.onPopupVisibleChange,pi=Ae.onPopupMouseEnter,ii=(0,Wt.Z)(Ae,Ie),qe="".concat(Pn,"-dropdown"),Xn=Ge;yn&&(Xn=yn(Ge));var ti=At.useMemo(function(){return ln||je(xn)},[ln,xn]),Qn=fn?"".concat(qe,"-").concat(fn):In,Li=typeof xn=="number",fi=At.useMemo(function(){return Li?null:xn===!1?"minWidth":"width"},[xn,Li]),ki=Ke;Li&&(ki=(0,Yt.Z)((0,Yt.Z)({},ki),{},{width:xn}));var gi=At.useRef(null);return At.useImperativeHandle(gn,function(){return{getPopupElement:function(){return gi.current}}}),At.createElement(ke.Z,(0,Rt.Z)({},ii,{showAction:ei?["click"]:[],hideAction:ei?["click"]:[],popupPlacement:dn||(on==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:ti,prefixCls:qe,popupTransitionName:Qn,popup:At.createElement("div",{ref:gi,onMouseEnter:pi},Xn),stretch:fi,popupAlign:Mn,popupVisible:mn,getPopupContainer:On,popupClassName:Tt()(cn,(0,Vt.Z)({},"".concat(qe,"-empty"),En)),popupStyle:ki,getTriggerDOMNode:jn,onPopupVisibleChange:ei}),Me)},me=At.forwardRef($e);me.displayName="SelectTrigger";var le=me,Ee=Gt(17953);function ce(Ze,Ae){var gn=Ze.key,Pn;return"value"in Ze&&(Pn=Ze.value),gn!=null?gn:Pn!==void 0?Pn:"rc-index-key-".concat(Ae)}function he(Ze,Ae){var gn=Ze||{},Pn=gn.label,Un=gn.value,mn=gn.options,Me=gn.groupLabel,Ge=Pn||(Ae?"children":"label");return{label:Ge,value:Un||"value",options:mn||"options",groupLabel:Me||Ge}}function _t(Ze){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},gn=Ae.fieldNames,Pn=Ae.childrenAsData,Un=[],mn=he(gn,!1),Me=mn.label,Ge=mn.value,fn=mn.options,In=mn.groupLabel;function Ke(cn,_e){cn.forEach(function(on){if(_e||!(fn in on)){var dn=on[Ge];Un.push({key:ce(on,Un.length),groupOption:_e,data:on,label:on[Me],value:dn})}else{var ln=on[In];ln===void 0&&Pn&&(ln=on.label),Un.push({key:ce(on,Un.length),group:!0,data:on,label:ln}),Ke(on[fn],!0)}})}return Ke(Ze,!1),Un}function Mt(Ze){var Ae=(0,Yt.Z)({},Ze);return"props"in Ae||Object.defineProperty(Ae,"props",{get:function(){return(0,Bt.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ae}}),Ae}function Et(Ze,Ae){if(!Ae||!Ae.length)return null;var gn=!1;function Pn(mn,Me){var Ge=(0,Ee.Z)(Me),fn=Ge[0],In=Ge.slice(1);if(!fn)return[mn];var Ke=mn.split(fn);return gn=gn||Ke.length>1,Ke.reduce(function(cn,_e){return[].concat((0,yt.Z)(cn),(0,yt.Z)(Pn(_e,In)))},[]).filter(function(cn){return cn})}var Un=Pn(Ze,Ae);return gn?Un:null}var Ht=["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"],Pt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function dt(Ze){return Ze==="tags"||Ze==="multiple"}var gt=At.forwardRef(function(Ze,Ae){var gn,Pn,Un=Ze.id,mn=Ze.prefixCls,Me=Ze.className,Ge=Ze.showSearch,fn=Ze.tagRender,In=Ze.direction,Ke=Ze.omitDomProps,cn=Ze.displayValues,_e=Ze.onDisplayValuesChange,on=Ze.emptyOptions,dn=Ze.notFoundContent,ln=dn===void 0?"Not Found":dn,xn=Ze.onClear,yn=Ze.mode,Mn=Ze.disabled,On=Ze.loading,En=Ze.getInputElement,jn=Ze.getRawInputElement,ei=Ze.open,pi=Ze.defaultOpen,ii=Ze.onDropdownVisibleChange,qe=Ze.activeValue,Xn=Ze.onActiveValueChange,ti=Ze.activeDescendantId,Qn=Ze.searchValue,Li=Ze.autoClearSearchValue,fi=Ze.onSearch,ki=Ze.onSearchSplit,gi=Ze.tokenSeparators,oi=Ze.allowClear,Fi=Ze.suffixIcon,Cn=Ze.clearIcon,nr=Ze.OptionList,Ln=Ze.animation,Bi=Ze.transitionName,wr=Ze.dropdownStyle,Hi=Ze.dropdownClassName,Or=Ze.dropdownMatchSelectWidth,pr=Ze.dropdownRender,Si=Ze.dropdownAlign,vi=Ze.placement,Xi=Ze.builtinPlacements,Zi=Ze.getPopupContainer,Jn=Ze.showAction,xe=Jn===void 0?[]:Jn,Ri=Ze.onFocus,Ar=Ze.onBlur,zi=Ze.onKeyUp,ir=Ze.onKeyDown,Oi=Ze.onMouseDown,Ci=(0,Wt.Z)(Ze,Ht),tr=dt(yn),yr=(Ge!==void 0?Ge:tr)||yn==="combobox",_i=(0,Yt.Z)({},Ci);Pt.forEach(function(Pr){delete _i[Pr]}),Ke==null||Ke.forEach(function(Pr){delete _i[Pr]});var Mr=At.useState(!1),xi=(0,Nt.Z)(Mr,2),di=xi[0],Ai=xi[1];At.useEffect(function(){Ai((0,vt.Z)())},[]);var zn=At.useRef(null),hr=At.useRef(null),Tr=At.useRef(null),Qr=At.useRef(null),kr=At.useRef(null),Xr=mt(),io=(0,Nt.Z)(Xr,3),Wo=io[0],vo=io[1],Uo=io[2];At.useImperativeHandle(Ae,function(){var Pr,Kr;return{focus:(Pr=Qr.current)===null||Pr===void 0?void 0:Pr.focus,blur:(Kr=Qr.current)===null||Kr===void 0?void 0:Kr.blur,scrollTo:function(ys){var Go;return(Go=kr.current)===null||Go===void 0?void 0:Go.scrollTo(ys)}}});var To=At.useMemo(function(){var Pr;if(yn!=="combobox")return Qn;var Kr=(Pr=cn[0])===null||Pr===void 0?void 0:Pr.value;return typeof Kr=="string"||typeof Kr=="number"?String(Kr):""},[Qn,yn,cn]),Sn=yn==="combobox"&&typeof En=="function"&&En()||null,yo=typeof jn=="function"&&jn(),da=(0,tt.x1)(hr,yo==null||(gn=yo.props)===null||gn===void 0?void 0:gn.ref),_s=At.useState(!1),mr=(0,Nt.Z)(_s,2),Wr=mr[0],so=mr[1];(0,It.Z)(function(){so(!0)},[]);var zr=(0,Ot.Z)(!1,{defaultValue:pi,value:ei}),qi=(0,Nt.Z)(zr,2),Ji=qi[0],ao=qi[1],$i=Wr?Ji:!1,cr=!ln&&on;(Mn||cr&&$i&&yn==="combobox")&&($i=!1);var fr=cr?!1:$i,hi=At.useCallback(function(Pr){var Kr=Pr!==void 0?Pr:!$i;Mn||(ao(Kr),$i!==Kr&&(ii==null||ii(Kr)))},[Mn,$i,ao,ii]),no=At.useMemo(function(){return(gi||[]).some(function(Pr){return[`
|
|
|
`,`\r
|
|
|
`].includes(Pr)})},[gi]),bo=function(Kr,vs,ys){var Go=!0,Co=Kr;Xn==null||Xn(null);var No=ys?null:Et(Kr,gi);return yn!=="combobox"&&No&&(Co="",ki==null||ki(No),hi(!1),Go=!1),fi&&To!==Co&&fi(Co,{source:vs?"typing":"effect"}),Go},os=function(Kr){!Kr||!Kr.trim()||fi(Kr,{source:"submit"})};At.useEffect(function(){!$i&&!tr&&yn!=="combobox"&&bo("",!1,!1)},[$i]),At.useEffect(function(){Ji&&Mn&&ao(!1),Mn&&vo(!1)},[Mn]);var Js=Ct(),Pa=(0,Nt.Z)(Js,2),si=Pa[0],ro=Pa[1],ko=function(Kr){var vs=si(),ys=Kr.which;if(ys===et.Z.ENTER&&(yn!=="combobox"&&Kr.preventDefault(),$i||hi(!0)),ro(!!To),ys===et.Z.BACKSPACE&&!vs&&tr&&!To&&cn.length){for(var Go=(0,yt.Z)(cn),Co=null,No=Go.length-1;No>=0;No-=1){var Ko=Go[No];if(!Ko.disabled){Go.splice(No,1),Co=Ko;break}}Co&&_e(Go,{type:"remove",values:[Co]})}for(var Ro=arguments.length,bl=new Array(Ro>1?Ro-1:0),Ha=1;Ha<Ro;Ha++)bl[Ha-1]=arguments[Ha];if($i&&kr.current){var Mo;(Mo=kr.current).onKeyDown.apply(Mo,[Kr].concat(bl))}ir==null||ir.apply(void 0,[Kr].concat(bl))},ba=function(Kr){for(var vs=arguments.length,ys=new Array(vs>1?vs-1:0),Go=1;Go<vs;Go++)ys[Go-1]=arguments[Go];if($i&&kr.current){var Co;(Co=kr.current).onKeyUp.apply(Co,[Kr].concat(ys))}zi==null||zi.apply(void 0,[Kr].concat(ys))},iu=function(Kr){var vs=cn.filter(function(ys){return ys!==Kr});_e(vs,{type:"remove",values:[Kr]})},ja=At.useRef(!1),ar=function(){vo(!0),Mn||(Ri&&!ja.current&&Ri.apply(void 0,arguments),xe.includes("focus")&&hi(!0)),ja.current=!0},ch=function(){vo(!1,function(){ja.current=!1,hi(!1)}),!Mn&&(To&&(yn==="tags"?fi(To,{source:"submit"}):yn==="multiple"&&fi("",{source:"blur"})),Ar&&Ar.apply(void 0,arguments))},Qs=[];At.useEffect(function(){return function(){Qs.forEach(function(Pr){return clearTimeout(Pr)}),Qs.splice(0,Qs.length)}},[]);var $s=function(Kr){var vs,ys=Kr.target,Go=(vs=Tr.current)===null||vs===void 0?void 0:vs.getPopupElement();if(Go&&Go.contains(ys)){var Co=setTimeout(function(){var bl=Qs.indexOf(Co);if(bl!==-1&&Qs.splice(bl,1),Uo(),!di&&!Go.contains(document.activeElement)){var Ha;(Ha=Qr.current)===null||Ha===void 0||Ha.focus()}});Qs.push(Co)}for(var No=arguments.length,Ko=new Array(No>1?No-1:0),Ro=1;Ro<No;Ro++)Ko[Ro-1]=arguments[Ro];Oi==null||Oi.apply(void 0,[Kr].concat(Ko))},ta=At.useState({}),Bl=(0,Nt.Z)(ta,2),ru=Bl[1];function ea(){ru({})}var Ca;yo&&(Ca=function(Kr){hi(Kr)}),Dt(function(){var Pr;return[zn.current,(Pr=Tr.current)===null||Pr===void 0?void 0:Pr.getPopupElement()]},fr,hi,!!yo);var dh=At.useMemo(function(){return(0,Yt.Z)((0,Yt.Z)({},Ze),{},{notFoundContent:ln,open:$i,triggerOpen:fr,id:Un,showSearch:yr,multiple:tr,toggleOpen:hi})},[Ze,ln,fr,$i,Un,yr,tr,hi]),oc=!!Fi||On,fh;oc&&(fh=At.createElement(rt,{className:Tt()("".concat(mn,"-arrow"),(0,Vt.Z)({},"".concat(mn,"-arrow-loading"),On)),customizeIcon:Fi,customizeIconProps:{loading:On,searchValue:To,open:$i,focused:Wo,showSearch:yr}}));var Gc=function(){var Kr;xn==null||xn(),(Kr=Qr.current)===null||Kr===void 0||Kr.focus(),_e([],{type:"clear",values:cn}),bo("",!1,!1)},gh=ut(mn,Gc,cn,oi,Cn,Mn,To,yn),ph=gh.allowClear,Rl=gh.clearIcon,za=At.createElement(nr,{ref:kr}),sc=Tt()(mn,Me,(Pn={},(0,Vt.Z)(Pn,"".concat(mn,"-focused"),Wo),(0,Vt.Z)(Pn,"".concat(mn,"-multiple"),tr),(0,Vt.Z)(Pn,"".concat(mn,"-single"),!tr),(0,Vt.Z)(Pn,"".concat(mn,"-allow-clear"),oi),(0,Vt.Z)(Pn,"".concat(mn,"-show-arrow"),oc),(0,Vt.Z)(Pn,"".concat(mn,"-disabled"),Mn),(0,Vt.Z)(Pn,"".concat(mn,"-loading"),On),(0,Vt.Z)(Pn,"".concat(mn,"-open"),$i),(0,Vt.Z)(Pn,"".concat(mn,"-customize-input"),Sn),(0,Vt.Z)(Pn,"".concat(mn,"-show-search"),yr),Pn)),mh=At.createElement(le,{ref:Tr,disabled:Mn,prefixCls:mn,visible:fr,popupElement:za,animation:Ln,transitionName:Bi,dropdownStyle:wr,dropdownClassName:Hi,direction:In,dropdownMatchSelectWidth:Or,dropdownRender:pr,dropdownAlign:Si,placement:vi,builtinPlacements:Xi,getPopupContainer:Zi,empty:on,getTriggerDOMNode:function(){return hr.current},onPopupVisibleChange:Ca,onPopupMouseEnter:ea},yo?At.cloneElement(yo,{ref:da}):At.createElement(rn,(0,Rt.Z)({},Ze,{domRef:hr,prefixCls:mn,inputElement:Sn,ref:Qr,id:Un,showSearch:yr,autoClearSearchValue:Li,mode:yn,activeDescendantId:ti,tagRender:fn,values:cn,open:$i,onToggleOpen:hi,activeValue:qe,searchValue:To,onSearch:bo,onSearchSubmit:os,onRemove:iu,tokenWithEnter:no}))),vh;return yo?vh=mh:vh=At.createElement("div",(0,Rt.Z)({className:sc},_i,{ref:zn,onMouseDown:$s,onKeyDown:ko,onKeyUp:ba,onFocus:ar,onBlur:ch}),Wo&&!$i&&At.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(cn.map(function(Pr){var Kr=Pr.label,vs=Pr.value;return["number","string"].includes((0,xt.Z)(Kr))?Kr:vs}).join(", "))),mh,fh,ph&&Rl),At.createElement(ct.Provider,{value:dh},vh)}),zt=gt,re=function(Ze,Ae){var gn=At.useRef({values:new Map,options:new Map}),Pn=At.useMemo(function(){var mn=gn.current,Me=mn.values,Ge=mn.options,fn=Ze.map(function(cn){if(cn.label===void 0){var _e;return(0,Yt.Z)((0,Yt.Z)({},cn),{},{label:(_e=Me.get(cn.value))===null||_e===void 0?void 0:_e.label})}return cn}),In=new Map,Ke=new Map;return fn.forEach(function(cn){In.set(cn.value,cn),Ke.set(cn.value,Ae.get(cn.value)||Ge.get(cn.value))}),gn.current.values=In,gn.current.options=Ke,fn},[Ze,Ae]),Un=At.useCallback(function(mn){return Ae.get(mn)||gn.current.options.get(mn)},[Ae]);return[Pn,Un]};function Zt(Ze,Ae){return ue(Ze).join("").toUpperCase().includes(Ae)}var ye=function(Ze,Ae,gn,Pn,Un){return At.useMemo(function(){if(!gn||Pn===!1)return Ze;var mn=Ae.options,Me=Ae.label,Ge=Ae.value,fn=[],In=typeof Pn=="function",Ke=gn.toUpperCase(),cn=In?Pn:function(on,dn){return Un?Zt(dn[Un],Ke):dn[mn]?Zt(dn[Me!=="children"?Me:"label"],Ke):Zt(dn[Ge],Ke)},_e=In?function(on){return Mt(on)}:function(on){return on};return Ze.forEach(function(on){if(on[mn]){var dn=cn(gn,_e(on));if(dn)fn.push(on);else{var ln=on[mn].filter(function(xn){return cn(gn,_e(xn))});ln.length&&fn.push((0,Yt.Z)((0,Yt.Z)({},on),{},(0,Vt.Z)({},mn,ln)))}return}cn(gn,_e(on))&&fn.push(on)}),fn},[Ze,Pn,Un,gn,Ae])},Ye=Gt(17115),sn=Gt(38298),Le=["children","value"],Re=["children"];function hn(Ze){var Ae=Ze,gn=Ae.key,Pn=Ae.props,Un=Pn.children,mn=Pn.value,Me=(0,Wt.Z)(Pn,Le);return(0,Yt.Z)({key:gn,value:mn!==void 0?mn:gn,children:Un},Me)}function wn(Ze){var Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,sn.Z)(Ze).map(function(gn,Pn){if(!At.isValidElement(gn)||!gn.type)return null;var Un=gn,mn=Un.type.isSelectOptGroup,Me=Un.key,Ge=Un.props,fn=Ge.children,In=(0,Wt.Z)(Ge,Re);return Ae||!mn?hn(gn):(0,Yt.Z)((0,Yt.Z)({key:"__RC_SELECT_GRP__".concat(Me===null?Pn:Me,"__"),label:Me},In),{},{options:wn(fn)})}).filter(function(gn){return gn})}function kn(Ze,Ae,gn,Pn,Un){return At.useMemo(function(){var mn=Ze,Me=!Ze;Me&&(mn=wn(Ae));var Ge=new Map,fn=new Map,In=function(_e,on,dn){dn&&typeof dn=="string"&&_e.set(on[dn],on)};function Ke(cn){for(var _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,on=0;on<cn.length;on+=1){var dn=cn[on];!dn[gn.options]||_e?(Ge.set(dn[gn.value],dn),In(fn,dn,gn.label),In(fn,dn,Pn),In(fn,dn,Un)):Ke(dn[gn.options],!0)}}return Ke(mn),{options:mn,valueOptions:Ge,labelOptions:fn}},[Ze,Ae,gn,Pn,Un])}function Rn(Ze){var Ae=At.useRef();Ae.current=Ze;var gn=At.useCallback(function(){return Ae.current.apply(Ae,arguments)},[]);return gn}var Yn=function(){return null};Yn.isSelectOptGroup=!0;var Kn=Yn,li=function(){return null};li.isSelectOption=!0;var mi=li,yi=Gt(79722),Pi=Gt(64002),Mi=Gt(21881),Gi=At.createContext(null),bi=Gi;function Ki(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var ui=["disabled","title","children","style","className"];function te(Ze){return typeof Ze=="string"||typeof Ze=="number"}var Yi=function(Ae,gn){var Pn=pt(),Un=Pn.prefixCls,mn=Pn.id,Me=Pn.open,Ge=Pn.multiple,fn=Pn.mode,In=Pn.searchValue,Ke=Pn.toggleOpen,cn=Pn.notFoundContent,_e=Pn.onPopupScroll,on=At.useContext(bi),dn=on.flattenOptions,ln=on.onActiveValue,xn=on.defaultActiveFirstOption,yn=on.onSelect,Mn=on.menuItemSelectedIcon,On=on.rawValues,En=on.fieldNames,jn=on.virtual,ei=on.direction,pi=on.listHeight,ii=on.listItemHeight,qe="".concat(Un,"-item"),Xn=(0,yi.Z)(function(){return dn},[Me,dn],function(Si,vi){return vi[0]&&Si[1]!==vi[1]}),ti=At.useRef(null),Qn=function(vi){vi.preventDefault()},Li=function(vi){ti.current&&ti.current.scrollTo(typeof vi=="number"?{index:vi}:vi)},fi=function(vi){for(var Xi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Zi=Xn.length,Jn=0;Jn<Zi;Jn+=1){var xe=(vi+Jn*Xi+Zi)%Zi,Ri=Xn[xe],Ar=Ri.group,zi=Ri.data;if(!Ar&&!zi.disabled)return xe}return-1},ki=At.useState(function(){return fi(0)}),gi=(0,Nt.Z)(ki,2),oi=gi[0],Fi=gi[1],Cn=function(vi){var Xi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Fi(vi);var Zi={source:Xi?"keyboard":"mouse"},Jn=Xn[vi];if(!Jn){ln(null,-1,Zi);return}ln(Jn.value,vi,Zi)};(0,At.useEffect)(function(){Cn(xn!==!1?fi(0):-1)},[Xn.length,In]);var nr=At.useCallback(function(Si){return On.has(Si)&&fn!=="combobox"},[fn,(0,yt.Z)(On).toString(),On.size]);(0,At.useEffect)(function(){var Si=setTimeout(function(){if(!Ge&&Me&&On.size===1){var Xi=Array.from(On)[0],Zi=Xn.findIndex(function(Jn){var xe=Jn.data;return xe.value===Xi});Zi!==-1&&(Cn(Zi),Li(Zi))}});if(Me){var vi;(vi=ti.current)===null||vi===void 0||vi.scrollTo(void 0)}return function(){return clearTimeout(Si)}},[Me,In,dn.length]);var Ln=function(vi){vi!==void 0&&yn(vi,{selected:!On.has(vi)}),Ge||Ke(!1)};if(At.useImperativeHandle(gn,function(){return{onKeyDown:function(vi){var Xi=vi.which,Zi=vi.ctrlKey;switch(Xi){case et.Z.N:case et.Z.P:case et.Z.UP:case et.Z.DOWN:{var Jn=0;if(Xi===et.Z.UP?Jn=-1:Xi===et.Z.DOWN?Jn=1:Ki()&&Zi&&(Xi===et.Z.N?Jn=1:Xi===et.Z.P&&(Jn=-1)),Jn!==0){var xe=fi(oi+Jn,Jn);Li(xe),Cn(xe,!0)}break}case et.Z.ENTER:{var Ri=Xn[oi];Ri&&!Ri.data.disabled?Ln(Ri.value):Ln(void 0),Me&&vi.preventDefault();break}case et.Z.ESC:Ke(!1),Me&&vi.stopPropagation()}},onKeyUp:function(){},scrollTo:function(vi){Li(vi)}}}),Xn.length===0)return At.createElement("div",{role:"listbox",id:"".concat(mn,"_list"),className:"".concat(qe,"-empty"),onMouseDown:Qn},cn);var Bi=Object.keys(En).map(function(Si){return En[Si]}),wr=function(vi){return vi.label};function Hi(Si,vi){var Xi=Si.group;return{role:Xi?"presentation":"option",id:"".concat(mn,"_list_").concat(vi)}}var Or=function(vi){var Xi=Xn[vi];if(!Xi)return null;var Zi=Xi.data||{},Jn=Zi.value,xe=Xi.group,Ri=(0,Ut.Z)(Zi,!0),Ar=wr(Xi);return Xi?At.createElement("div",(0,Rt.Z)({"aria-label":typeof Ar=="string"&&!xe?Ar:null},Ri,{key:vi},Hi(Xi,vi),{"aria-selected":nr(Jn)}),Jn):null},pr={role:"listbox",id:"".concat(mn,"_list")};return At.createElement(At.Fragment,null,jn&&At.createElement("div",(0,Rt.Z)({},pr,{style:{height:0,width:0,overflow:"hidden"}}),Or(oi-1),Or(oi),Or(oi+1)),At.createElement(Mi.Z,{itemKey:"key",ref:ti,data:Xn,height:pi,itemHeight:ii,fullHeight:!1,onMouseDown:Qn,onScroll:_e,virtual:jn,direction:ei,innerProps:jn?null:pr},function(Si,vi){var Xi,Zi=Si.group,Jn=Si.groupOption,xe=Si.data,Ri=Si.label,Ar=Si.value,zi=xe.key;if(Zi){var ir,Oi=(ir=xe.title)!==null&&ir!==void 0?ir:te(Ri)?Ri.toString():void 0;return At.createElement("div",{className:Tt()(qe,"".concat(qe,"-group")),title:Oi},Ri!==void 0?Ri:zi)}var Ci=xe.disabled,tr=xe.title,yr=xe.children,_i=xe.style,Mr=xe.className,xi=(0,Wt.Z)(xe,ui),di=(0,Pi.Z)(xi,Bi),Ai=nr(Ar),zn="".concat(qe,"-option"),hr=Tt()(qe,zn,Mr,(Xi={},(0,Vt.Z)(Xi,"".concat(zn,"-grouped"),Jn),(0,Vt.Z)(Xi,"".concat(zn,"-active"),oi===vi&&!Ci),(0,Vt.Z)(Xi,"".concat(zn,"-disabled"),Ci),(0,Vt.Z)(Xi,"".concat(zn,"-selected"),Ai),Xi)),Tr=wr(Si),Qr=!Mn||typeof Mn=="function"||Ai,kr=typeof Tr=="number"?Tr:Tr||Ar,Xr=te(kr)?kr.toString():void 0;return tr!==void 0&&(Xr=tr),At.createElement("div",(0,Rt.Z)({},(0,Ut.Z)(di),jn?{}:Hi(Si,vi),{"aria-selected":Ai,className:hr,title:Xr,onMouseMove:function(){oi===vi||Ci||Cn(vi)},onClick:function(){Ci||Ln(Ar)},style:_i}),At.createElement("div",{className:"".concat(zn,"-content")},kr),At.isValidElement(Mn)||Ai,Qr&&At.createElement(rt,{className:"".concat(qe,"-option-state"),customizeIcon:Mn,customizeIconProps:{isSelected:Ai}},Ai?"\u2713":null))}))},Ti=At.forwardRef(Yi);Ti.displayName="OptionList";var or=Ti;function Sr(Ze){var Ae=Ze.mode,gn=Ze.options,Pn=Ze.children,Un=Ze.backfill,mn=Ze.allowClear,Me=Ze.placeholder,Ge=Ze.getInputElement,fn=Ze.showSearch,In=Ze.onSearch,Ke=Ze.defaultOpen,cn=Ze.autoFocus,_e=Ze.labelInValue,on=Ze.value,dn=Ze.inputValue,ln=Ze.optionLabelProp,xn=isMultiple(Ae),yn=fn!==void 0?fn:xn||Ae==="combobox",Mn=gn||convertChildrenToData(Pn);if(warning(Ae!=="tags"||Mn.every(function(ei){return!ei.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ae==="tags"||Ae==="combobox"){var On=Mn.some(function(ei){return ei.options?ei.options.some(function(pi){return typeof("value"in pi?pi.value:pi.key)=="number"}):typeof("value"in ei?ei.value:ei.key)=="number"});warning(!On,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ae!=="combobox"||!ln,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ae==="combobox"||!Un,"`backfill` only works with `combobox` mode."),warning(Ae==="combobox"||!Ge,"`getInputElement` only work with `combobox` mode."),noteOnce(Ae!=="combobox"||!Ge||!mn||!Me,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),In&&!yn&&Ae!=="combobox"&&Ae!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Ke||cn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),on!=null){var En=toArray(on);warning(!_e||En.every(function(ei){return _typeof(ei)==="object"&&("key"in ei||"value"in ei)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!xn||Array.isArray(on),"`value` should be array when `mode` is `multiple` or `tags`")}if(Pn){var jn=null;toNodeArray(Pn).some(function(ei){if(!React.isValidElement(ei)||!ei.type)return!1;var pi=ei,ii=pi.type;if(ii.isSelectOption)return!1;if(ii.isSelectOptGroup){var qe=toNodeArray(ei.props.children).every(function(Xn){return!React.isValidElement(Xn)||!ei.type||Xn.type.isSelectOption?!0:(jn=Xn.type,!1)});return!qe}return jn=ii,!0}),jn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(jn.displayName||jn.name||jn,"`.")),warning(dn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Er(Ze,Ae){if(Ze){var gn=function Pn(Un){for(var mn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Me=0;Me<Un.length;Me++){var Ge=Un[Me];if(Ge[Ae==null?void 0:Ae.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!mn&&Array.isArray(Ge[Ae==null?void 0:Ae.options])&&Pn(Ge[Ae==null?void 0:Ae.options],!0))break}};gn(Ze)}}var vr=null,qn=["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"],tn=["inputValue"];function nn(Ze){return!Ze||(0,xt.Z)(Ze)!=="object"}var Qe=At.forwardRef(function(Ze,Ae){var gn=Ze.id,Pn=Ze.mode,Un=Ze.prefixCls,mn=Un===void 0?"rc-select":Un,Me=Ze.backfill,Ge=Ze.fieldNames,fn=Ze.inputValue,In=Ze.searchValue,Ke=Ze.onSearch,cn=Ze.autoClearSearchValue,_e=cn===void 0?!0:cn,on=Ze.onSelect,dn=Ze.onDeselect,ln=Ze.dropdownMatchSelectWidth,xn=ln===void 0?!0:ln,yn=Ze.filterOption,Mn=Ze.filterSort,On=Ze.optionFilterProp,En=Ze.optionLabelProp,jn=Ze.options,ei=Ze.children,pi=Ze.defaultActiveFirstOption,ii=Ze.menuItemSelectedIcon,qe=Ze.virtual,Xn=Ze.direction,ti=Ze.listHeight,Qn=ti===void 0?200:ti,Li=Ze.listItemHeight,fi=Li===void 0?20:Li,ki=Ze.value,gi=Ze.defaultValue,oi=Ze.labelInValue,Fi=Ze.onChange,Cn=(0,Wt.Z)(Ze,qn),nr=(0,Ye.ZP)(gn),Ln=dt(Pn),Bi=!!(!jn&&ei),wr=At.useMemo(function(){return yn===void 0&&Pn==="combobox"?!1:yn},[yn,Pn]),Hi=At.useMemo(function(){return he(Ge,Bi)},[JSON.stringify(Ge),Bi]),Or=(0,Ot.Z)("",{value:In!==void 0?In:fn,postState:function(cr){return cr||""}}),pr=(0,Nt.Z)(Or,2),Si=pr[0],vi=pr[1],Xi=kn(jn,ei,Hi,On,En),Zi=Xi.valueOptions,Jn=Xi.labelOptions,xe=Xi.options,Ri=At.useCallback(function($i){var cr=ue($i);return cr.map(function(fr){var hi,no,bo,os,Js;if(nn(fr))hi=fr;else{var Pa;bo=fr.key,no=fr.label,hi=(Pa=fr.value)!==null&&Pa!==void 0?Pa:bo}var si=Zi.get(hi);if(si){var ro;if(no===void 0&&(no=si==null?void 0:si[En||Hi.label]),bo===void 0&&(bo=(ro=si==null?void 0:si.key)!==null&&ro!==void 0?ro:hi),os=si==null?void 0:si.disabled,Js=si==null?void 0:si.title,0)var ko}return{label:no,value:hi,key:bo,disabled:os,title:Js}})},[Hi,En,Zi]),Ar=(0,Ot.Z)(gi,{value:ki}),zi=(0,Nt.Z)(Ar,2),ir=zi[0],Oi=zi[1],Ci=At.useMemo(function(){var $i,cr=Ri(ir);return Pn==="combobox"&&Ne(($i=cr[0])===null||$i===void 0?void 0:$i.value)?[]:cr},[ir,Ri,Pn]),tr=re(Ci,Zi),yr=(0,Nt.Z)(tr,2),_i=yr[0],Mr=yr[1],xi=At.useMemo(function(){if(!Pn&&_i.length===1){var $i=_i[0];if($i.value===null&&($i.label===null||$i.label===void 0))return[]}return _i.map(function(cr){var fr;return(0,Yt.Z)((0,Yt.Z)({},cr),{},{label:(fr=cr.label)!==null&&fr!==void 0?fr:cr.value})})},[Pn,_i]),di=At.useMemo(function(){return new Set(_i.map(function($i){return $i.value}))},[_i]);At.useEffect(function(){if(Pn==="combobox"){var $i,cr=($i=_i[0])===null||$i===void 0?void 0:$i.value;vi(Se(cr)?String(cr):"")}},[_i]);var Ai=Rn(function($i,cr){var fr,hi=cr!=null?cr:$i;return fr={},(0,Vt.Z)(fr,Hi.value,$i),(0,Vt.Z)(fr,Hi.label,hi),fr}),zn=At.useMemo(function(){if(Pn!=="tags")return xe;var $i=(0,yt.Z)(xe),cr=function(hi){return Zi.has(hi)};return(0,yt.Z)(_i).sort(function(fr,hi){return fr.value<hi.value?-1:1}).forEach(function(fr){var hi=fr.value;cr(hi)||$i.push(Ai(hi,fr.label))}),$i},[Ai,xe,Zi,_i,Pn]),hr=ye(zn,Hi,Si,wr,On),Tr=At.useMemo(function(){return Pn!=="tags"||!Si||hr.some(function($i){return $i[On||"value"]===Si})||hr.some(function($i){return $i[Hi.value]===Si})?hr:[Ai(Si)].concat((0,yt.Z)(hr))},[Ai,On,Pn,hr,Si,Hi]),Qr=At.useMemo(function(){return Mn?(0,yt.Z)(Tr).sort(function($i,cr){return Mn($i,cr)}):Tr},[Tr,Mn]),kr=At.useMemo(function(){return _t(Qr,{fieldNames:Hi,childrenAsData:Bi})},[Qr,Hi,Bi]),Xr=function(cr){var fr=Ri(cr);if(Oi(fr),Fi&&(fr.length!==_i.length||fr.some(function(bo,os){var Js;return((Js=_i[os])===null||Js===void 0?void 0:Js.value)!==(bo==null?void 0:bo.value)}))){var hi=oi?fr:fr.map(function(bo){return bo.value}),no=fr.map(function(bo){return Mt(Mr(bo.value))});Fi(Ln?hi:hi[0],Ln?no:no[0])}},io=At.useState(null),Wo=(0,Nt.Z)(io,2),vo=Wo[0],Uo=Wo[1],To=At.useState(0),Sn=(0,Nt.Z)(To,2),yo=Sn[0],da=Sn[1],_s=pi!==void 0?pi:Pn!=="combobox",mr=At.useCallback(function($i,cr){var fr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},hi=fr.source,no=hi===void 0?"keyboard":hi;da(cr),Me&&Pn==="combobox"&&$i!==null&&no==="keyboard"&&Uo(String($i))},[Me,Pn]),Wr=function(cr,fr,hi){var no=function(){var ja,ar=Mr(cr);return[oi?{label:ar==null?void 0:ar[Hi.label],value:cr,key:(ja=ar==null?void 0:ar.key)!==null&&ja!==void 0?ja:cr}:cr,Mt(ar)]};if(fr&&on){var bo=no(),os=(0,Nt.Z)(bo,2),Js=os[0],Pa=os[1];on(Js,Pa)}else if(!fr&&dn&&hi!=="clear"){var si=no(),ro=(0,Nt.Z)(si,2),ko=ro[0],ba=ro[1];dn(ko,ba)}},so=Rn(function($i,cr){var fr,hi=Ln?cr.selected:!0;hi?fr=Ln?[].concat((0,yt.Z)(_i),[$i]):[$i]:fr=_i.filter(function(no){return no.value!==$i}),Xr(fr),Wr($i,hi),Pn==="combobox"?Uo(""):(!dt||_e)&&(vi(""),Uo(""))}),zr=function(cr,fr){Xr(cr);var hi=fr.type,no=fr.values;(hi==="remove"||hi==="clear")&&no.forEach(function(bo){Wr(bo.value,!1,hi)})},qi=function(cr,fr){if(vi(cr),Uo(null),fr.source==="submit"){var hi=(cr||"").trim();if(hi){var no=Array.from(new Set([].concat((0,yt.Z)(di),[hi])));Xr(no),Wr(hi,!0),vi("")}return}fr.source!=="blur"&&(Pn==="combobox"&&Xr(cr),Ke==null||Ke(cr))},Ji=function(cr){var fr=cr;Pn!=="tags"&&(fr=cr.map(function(no){var bo=Jn.get(no);return bo==null?void 0:bo.value}).filter(function(no){return no!==void 0}));var hi=Array.from(new Set([].concat((0,yt.Z)(di),(0,yt.Z)(fr))));Xr(hi),hi.forEach(function(no){Wr(no,!0)})},ao=At.useMemo(function(){var $i=qe!==!1&&xn!==!1;return(0,Yt.Z)((0,Yt.Z)({},Xi),{},{flattenOptions:kr,onActiveValue:mr,defaultActiveFirstOption:_s,onSelect:so,menuItemSelectedIcon:ii,rawValues:di,fieldNames:Hi,virtual:$i,direction:Xn,listHeight:Qn,listItemHeight:fi,childrenAsData:Bi})},[Xi,kr,mr,_s,so,ii,di,Hi,qe,xn,Qn,fi,Bi]);return At.createElement(bi.Provider,{value:ao},At.createElement(zt,(0,Rt.Z)({},Cn,{id:nr,prefixCls:mn,ref:Ae,omitDomProps:tn,mode:Pn,displayValues:xi,onDisplayValuesChange:zr,direction:Xn,searchValue:Si,onSearch:qi,autoClearSearchValue:_e,onSearchSplit:Ji,dropdownMatchSelectWidth:xn,OptionList:or,emptyOptions:!kr.length,activeValue:vo,activeDescendantId:"".concat(nr,"_list_").concat(yo)})))}),Fe=Qe;Fe.Option=mi,Fe.OptGroup=Kn;var vn=Fe,bn=vn},9296:function(Nn,An,Gt){"use strict";Gt.r(An),Gt.d(An,{ResizableTextArea:function(){return $t},default:function(){return Ne}});var Rt=Gt(5891),yt=Gt(57259),Vt=Gt(80962),Yt=Gt(80665),Nt=Gt(29043),Wt=Gt(19149),xt=Gt(26390),Ot=Gt(92310),Bt=Gt.n(Ot),At=Gt(93681),bt=Gt(5643),Tt=Gt(35788),It=Gt(59301),vt=Gt(29301),et=Gt(28800),tt=Gt(23073),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 pt(pe){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,de=pe.getAttribute("id")||pe.getAttribute("data-reactid")||pe.getAttribute("name");if(Ue&&ut[de])return ut[de];var Jt=window.getComputedStyle(pe),ee=Jt.getPropertyValue("box-sizing")||Jt.getPropertyValue("-moz-box-sizing")||Jt.getPropertyValue("-webkit-box-sizing"),ae=parseFloat(Jt.getPropertyValue("padding-bottom"))+parseFloat(Jt.getPropertyValue("padding-top")),fe=parseFloat(Jt.getPropertyValue("border-bottom-width"))+parseFloat(Jt.getPropertyValue("border-top-width")),se=rt.map(function(Oe){return"".concat(Oe,":").concat(Jt.getPropertyValue(Oe))}).join(";"),De={sizingStyle:se,paddingSize:ae,borderSize:fe,boxSizing:ee};return Ue&&de&&(ut[de]=De),De}function mt(pe){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,de=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Jt=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)),pe.getAttribute("wrap")?ct.setAttribute("wrap",pe.getAttribute("wrap")):ct.removeAttribute("wrap");var ee=pt(pe,Ue),ae=ee.paddingSize,fe=ee.borderSize,se=ee.boxSizing,De=ee.sizingStyle;ct.setAttribute("style","".concat(De,";").concat(st)),ct.value=pe.value||pe.placeholder||"";var Oe=void 0,en=void 0,We,rn=ct.scrollHeight;if(se==="border-box"?rn+=fe:se==="content-box"&&(rn-=ae),de!==null||Jt!==null){ct.value=" ";var ke=ct.scrollHeight-ae;de!==null&&(Oe=ke*de,se==="border-box"&&(Oe=Oe+ae+fe),rn=Math.max(Oe,rn)),Jt!==null&&(en=ke*Jt,se==="border-box"&&(en=en+ae+fe),We=rn>en?"":"hidden",rn=Math.min(en,rn))}var Ie={height:rn,overflowY:We,resize:"none"};return Oe&&(Ie.minHeight=Oe),en&&(Ie.maxHeight=en),Ie}var Ct=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Dt=0,Ut=1,Ft=2,Qt=It.forwardRef(function(pe,Ue){var de=pe,Jt=de.prefixCls,ee=de.onPressEnter,ae=de.defaultValue,fe=de.value,se=de.autoSize,De=de.onResize,Oe=de.className,en=de.style,We=de.disabled,rn=de.onChange,ke=de.onInternalAutoSize,Ie=(0,Wt.Z)(de,Ct),je=(0,Tt.Z)(ae,{value:fe,postState:function(Kn){return Kn!=null?Kn:""}}),$e=(0,Nt.Z)(je,2),me=$e[0],le=$e[1],Ee=function(Kn){le(Kn.target.value),rn==null||rn(Kn)},ce=It.useRef();It.useImperativeHandle(Ue,function(){return{textArea:ce.current}});var he=It.useMemo(function(){return se&&(0,Yt.Z)(se)==="object"?[se.minRows,se.maxRows]:[]},[se]),_t=(0,Nt.Z)(he,2),Mt=_t[0],Et=_t[1],Ht=!!se,Pt=function(){try{if(document.activeElement===ce.current){var Kn=ce.current,li=Kn.selectionStart,mi=Kn.selectionEnd,yi=Kn.scrollTop;ce.current.setSelectionRange(li,mi),ce.current.scrollTop=yi}}catch(Pi){}},dt=It.useState(Ft),gt=(0,Nt.Z)(dt,2),zt=gt[0],re=gt[1],Zt=It.useState(),ye=(0,Nt.Z)(Zt,2),Ye=ye[0],sn=ye[1],Le=function(){re(Dt)};(0,et.Z)(function(){Ht&&Le()},[fe,Mt,Et,Ht]),(0,et.Z)(function(){if(zt===Dt)re(Ut);else if(zt===Ut){var Yn=mt(ce.current,!1,Mt,Et);re(Ft),sn(Yn)}else Pt()},[zt]);var Re=It.useRef(),hn=function(){tt.Z.cancel(Re.current)},wn=function(Kn){zt===Ft&&(De==null||De(Kn),se&&(hn(),Re.current=(0,tt.Z)(function(){Le()})))};It.useEffect(function(){return hn},[]);var kn=Ht?Ye:null,Rn=(0,yt.Z)((0,yt.Z)({},en),kn);return(zt===Dt||zt===Ut)&&(Rn.overflowY="hidden",Rn.overflowX="hidden"),It.createElement(vt.Z,{onResize:wn,disabled:!(se||De)},It.createElement("textarea",(0,Rt.Z)({},Ie,{ref:ce,style:Rn,className:Bt()(Jt,Oe,(0,Vt.Z)({},"".concat(Jt,"-disabled"),We)),disabled:We,value:me,onChange:Ee})))}),$t=Qt,Kt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function ue(pe,Ue){return(0,xt.Z)(pe||"").slice(0,Ue).join("")}function oe(pe,Ue,de,Jt){var ee=de;return pe?ee=ue(de,Jt):(0,xt.Z)(Ue||"").length<de.length&&(0,xt.Z)(de||"").length>Jt&&(ee=Ue),ee}var we=It.forwardRef(function(pe,Ue){var de,Jt=pe.defaultValue,ee=pe.value,ae=pe.onFocus,fe=pe.onBlur,se=pe.onChange,De=pe.allowClear,Oe=pe.maxLength,en=pe.onCompositionStart,We=pe.onCompositionEnd,rn=pe.suffix,ke=pe.prefixCls,Ie=ke===void 0?"rc-textarea":ke,je=pe.classes,$e=pe.showCount,me=pe.className,le=pe.style,Ee=pe.disabled,ce=pe.hidden,he=pe.classNames,_t=pe.styles,Mt=pe.onResize,Et=(0,Wt.Z)(pe,Kt),Ht=(0,Tt.Z)(Jt,{value:ee,defaultValue:Jt}),Pt=(0,Nt.Z)(Ht,2),dt=Pt[0],gt=Pt[1],zt=(0,It.useRef)(null),re=It.useState(!1),Zt=(0,Nt.Z)(re,2),ye=Zt[0],Ye=Zt[1],sn=It.useState(!1),Le=(0,Nt.Z)(sn,2),Re=Le[0],hn=Le[1],wn=It.useRef(),kn=It.useRef(0),Rn=It.useState(null),Yn=(0,Nt.Z)(Rn,2),Kn=Yn[0],li=Yn[1],mi=function(){var nn;(nn=zt.current)===null||nn===void 0||nn.textArea.focus()};(0,It.useImperativeHandle)(Ue,function(){return{resizableTextArea:zt.current,focus:mi,blur:function(){var nn;(nn=zt.current)===null||nn===void 0||nn.textArea.blur()}}}),(0,It.useEffect)(function(){Ye(function(tn){return!Ee&&tn})},[Ee]);var yi=Number(Oe)>0,Pi=function(nn){hn(!0),wn.current=dt,kn.current=nn.currentTarget.selectionStart,en==null||en(nn)},Mi=function(nn){hn(!1);var Qe=nn.currentTarget.value;if(yi){var Fe,vn=kn.current>=Oe+1||kn.current===((Fe=wn.current)===null||Fe===void 0?void 0:Fe.length);Qe=oe(vn,wn.current,Qe,Oe)}Qe!==dt&&(gt(Qe),(0,bt.rJ)(nn.currentTarget,nn,se,Qe)),We==null||We(nn)},Gi=function(nn){var Qe=nn.target.value;if(!Re&&yi){var Fe=nn.target.selectionStart>=Oe+1||nn.target.selectionStart===Qe.length||!nn.target.selectionStart;Qe=oe(Fe,dt,Qe,Oe)}gt(Qe),(0,bt.rJ)(nn.currentTarget,nn,se,Qe)},bi=function(nn){var Qe=Et.onPressEnter,Fe=Et.onKeyDown;nn.key==="Enter"&&Qe&&Qe(nn),Fe==null||Fe(nn)},Ki=function(nn){Ye(!0),ae==null||ae(nn)},ui=function(nn){Ye(!1),fe==null||fe(nn)},te=function(nn){var Qe;gt(""),mi(),(0,bt.rJ)((Qe=zt.current)===null||Qe===void 0?void 0:Qe.textArea,nn,se)},Yi=(0,bt.D7)(dt);!Re&&yi&&ee==null&&(Yi=ue(Yi,Oe));var Ti=rn,or;if($e){var Sr=(0,xt.Z)(Yi).length;(0,Yt.Z)($e)==="object"?or=$e.formatter({value:Yi,count:Sr,maxLength:Oe}):or="".concat(Sr).concat(yi?" / ".concat(Oe):""),Ti=It.createElement(It.Fragment,null,Ti,It.createElement("span",{className:Bt()("".concat(Ie,"-data-count"),he==null?void 0:he.count),style:_t==null?void 0:_t.count},or))}var Er=function(nn){var Qe;Mt==null||Mt(nn),(Qe=zt.current)!==null&&Qe!==void 0&&Qe.textArea.style.height&&li(!0)},vr=!Et.autoSize&&!$e&&!De,qn=It.createElement(At.BaseInput,{value:Yi,allowClear:De,handleReset:te,suffix:Ti,prefixCls:Ie,classes:{affixWrapper:Bt()(je==null?void 0:je.affixWrapper,(de={},(0,Vt.Z)(de,"".concat(Ie,"-show-count"),$e),(0,Vt.Z)(de,"".concat(Ie,"-textarea-allow-clear"),De),de))},disabled:Ee,focused:ye,className:me,style:(0,yt.Z)((0,yt.Z)({},le),Kn&&!vr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof or=="string"?or:void 0}},hidden:ce,inputElement:It.createElement($t,(0,Rt.Z)({},Et,{onKeyDown:bi,onChange:Gi,onFocus:Ki,onBlur:ui,onCompositionStart:Pi,onCompositionEnd:Mi,className:he==null?void 0:he.textarea,style:(0,yt.Z)((0,yt.Z)({},_t==null?void 0:_t.textarea),{},{resize:le==null?void 0:le.resize}),disabled:Ee,prefixCls:Ie,onResize:Er,ref:zt}))});return qn}),Se=we,Ne=Se},39417:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ut}});var Rt=Gt(5891),yt=Gt(80962),Vt=Gt(19149),Yt=Gt(57259),Nt=Gt(79545),Wt=Gt(68550),xt=Gt(21882),Ot=Gt(17928),Bt=Gt(7711),At=Gt(92310),bt=Gt.n(At),Tt=Gt(36994),It=Gt(59301),vt=Gt(39378),et=function(Qt){for(var $t=Qt.prefixCls,Kt=Qt.level,ue=Qt.isStart,oe=Qt.isEnd,we="".concat($t,"-indent-unit"),Se=[],Ne=0;Ne<Kt;Ne+=1){var pe;Se.push(It.createElement("span",{key:Ne,className:bt()(we,(pe={},(0,yt.Z)(pe,"".concat(we,"-start"),ue[Ne]),(0,yt.Z)(pe,"".concat(we,"-end"),oe[Ne]),pe))}))}return It.createElement("span",{"aria-hidden":"true",className:"".concat($t,"-indent")},Se)},tt=It.memo(et),st=Gt(67841),rt=Gt(71430),ut=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ct="open",pt="close",mt="---",Ct=function(Ft){(0,Ot.Z)($t,Ft);var Qt=(0,Bt.Z)($t);function $t(){var Kt;(0,Nt.Z)(this,$t);for(var ue=arguments.length,oe=new Array(ue),we=0;we<ue;we++)oe[we]=arguments[we];return Kt=Qt.call.apply(Qt,[this].concat(oe)),Kt.state={dragNodeHighlight:!1},Kt.selectHandle=void 0,Kt.cacheIndent=void 0,Kt.onSelectorClick=function(Se){var Ne=Kt.props.context.onNodeClick;Ne(Se,(0,rt.F)(Kt.props)),Kt.isSelectable()?Kt.onSelect(Se):Kt.onCheck(Se)},Kt.onSelectorDoubleClick=function(Se){var Ne=Kt.props.context.onNodeDoubleClick;Ne(Se,(0,rt.F)(Kt.props))},Kt.onSelect=function(Se){if(!Kt.isDisabled()){var Ne=Kt.props.context.onNodeSelect;Ne(Se,(0,rt.F)(Kt.props))}},Kt.onCheck=function(Se){if(!Kt.isDisabled()){var Ne=Kt.props,pe=Ne.disableCheckbox,Ue=Ne.checked,de=Kt.props.context.onNodeCheck;if(!(!Kt.isCheckable()||pe)){var Jt=!Ue;de(Se,(0,rt.F)(Kt.props),Jt)}}},Kt.onMouseEnter=function(Se){var Ne=Kt.props.context.onNodeMouseEnter;Ne(Se,(0,rt.F)(Kt.props))},Kt.onMouseLeave=function(Se){var Ne=Kt.props.context.onNodeMouseLeave;Ne(Se,(0,rt.F)(Kt.props))},Kt.onContextMenu=function(Se){var Ne=Kt.props.context.onNodeContextMenu;Ne(Se,(0,rt.F)(Kt.props))},Kt.onDragStart=function(Se){var Ne=Kt.props.context.onNodeDragStart;Se.stopPropagation(),Kt.setState({dragNodeHighlight:!0}),Ne(Se,(0,xt.Z)(Kt));try{Se.dataTransfer.setData("text/plain","")}catch(pe){}},Kt.onDragEnter=function(Se){var Ne=Kt.props.context.onNodeDragEnter;Se.preventDefault(),Se.stopPropagation(),Ne(Se,(0,xt.Z)(Kt))},Kt.onDragOver=function(Se){var Ne=Kt.props.context.onNodeDragOver;Se.preventDefault(),Se.stopPropagation(),Ne(Se,(0,xt.Z)(Kt))},Kt.onDragLeave=function(Se){var Ne=Kt.props.context.onNodeDragLeave;Se.stopPropagation(),Ne(Se,(0,xt.Z)(Kt))},Kt.onDragEnd=function(Se){var Ne=Kt.props.context.onNodeDragEnd;Se.stopPropagation(),Kt.setState({dragNodeHighlight:!1}),Ne(Se,(0,xt.Z)(Kt))},Kt.onDrop=function(Se){var Ne=Kt.props.context.onNodeDrop;Se.preventDefault(),Se.stopPropagation(),Kt.setState({dragNodeHighlight:!1}),Ne(Se,(0,xt.Z)(Kt))},Kt.onExpand=function(Se){var Ne=Kt.props,pe=Ne.loading,Ue=Ne.context.onNodeExpand;pe||Ue(Se,(0,rt.F)(Kt.props))},Kt.setSelectHandle=function(Se){Kt.selectHandle=Se},Kt.getNodeState=function(){var Se=Kt.props.expanded;return Kt.isLeaf()?null:Se?ct:pt},Kt.hasChildren=function(){var Se=Kt.props.eventKey,Ne=Kt.props.context.keyEntities,pe=(0,st.Z)(Ne,Se)||{},Ue=pe.children;return!!(Ue||[]).length},Kt.isLeaf=function(){var Se=Kt.props,Ne=Se.isLeaf,pe=Se.loaded,Ue=Kt.props.context.loadData,de=Kt.hasChildren();return Ne===!1?!1:Ne||!Ue&&!de||Ue&&pe&&!de},Kt.isDisabled=function(){var Se=Kt.props.disabled,Ne=Kt.props.context.disabled;return!!(Ne||Se)},Kt.isCheckable=function(){var Se=Kt.props.checkable,Ne=Kt.props.context.checkable;return!Ne||Se===!1?!1:Ne},Kt.syncLoadData=function(Se){var Ne=Se.expanded,pe=Se.loading,Ue=Se.loaded,de=Kt.props.context,Jt=de.loadData,ee=de.onNodeLoad;pe||Jt&&Ne&&!Kt.isLeaf()&&!Kt.hasChildren()&&!Ue&&ee((0,rt.F)(Kt.props))},Kt.isDraggable=function(){var Se=Kt.props,Ne=Se.data,pe=Se.context.draggable;return!!(pe&&(!pe.nodeDraggable||pe.nodeDraggable(Ne)))},Kt.renderDragHandler=function(){var Se=Kt.props.context,Ne=Se.draggable,pe=Se.prefixCls;return Ne!=null&&Ne.icon?It.createElement("span",{className:"".concat(pe,"-draggable-icon")},Ne.icon):null},Kt.renderSwitcherIconDom=function(Se){var Ne=Kt.props.switcherIcon,pe=Kt.props.context.switcherIcon,Ue=Ne||pe;return typeof Ue=="function"?Ue((0,Yt.Z)((0,Yt.Z)({},Kt.props),{},{isLeaf:Se})):Ue},Kt.renderSwitcher=function(){var Se=Kt.props.expanded,Ne=Kt.props.context.prefixCls;if(Kt.isLeaf()){var pe=Kt.renderSwitcherIconDom(!0);return pe!==!1?It.createElement("span",{className:bt()("".concat(Ne,"-switcher"),"".concat(Ne,"-switcher-noop"))},pe):null}var Ue=bt()("".concat(Ne,"-switcher"),"".concat(Ne,"-switcher_").concat(Se?ct:pt)),de=Kt.renderSwitcherIconDom(!1);return de!==!1?It.createElement("span",{onClick:Kt.onExpand,className:Ue},de):null},Kt.renderCheckbox=function(){var Se=Kt.props,Ne=Se.checked,pe=Se.halfChecked,Ue=Se.disableCheckbox,de=Kt.props.context.prefixCls,Jt=Kt.isDisabled(),ee=Kt.isCheckable();if(!ee)return null;var ae=typeof ee!="boolean"?ee:null;return It.createElement("span",{className:bt()("".concat(de,"-checkbox"),Ne&&"".concat(de,"-checkbox-checked"),!Ne&&pe&&"".concat(de,"-checkbox-indeterminate"),(Jt||Ue)&&"".concat(de,"-checkbox-disabled")),onClick:Kt.onCheck},ae)},Kt.renderIcon=function(){var Se=Kt.props.loading,Ne=Kt.props.context.prefixCls;return It.createElement("span",{className:bt()("".concat(Ne,"-iconEle"),"".concat(Ne,"-icon__").concat(Kt.getNodeState()||"docu"),Se&&"".concat(Ne,"-icon_loading"))})},Kt.renderSelector=function(){var Se=Kt.state.dragNodeHighlight,Ne=Kt.props,pe=Ne.title,Ue=pe===void 0?mt:pe,de=Ne.selected,Jt=Ne.icon,ee=Ne.loading,ae=Ne.data,fe=Kt.props.context,se=fe.prefixCls,De=fe.showIcon,Oe=fe.icon,en=fe.loadData,We=fe.titleRender,rn=Kt.isDisabled(),ke="".concat(se,"-node-content-wrapper"),Ie;if(De){var je=Jt||Oe;Ie=je?It.createElement("span",{className:bt()("".concat(se,"-iconEle"),"".concat(se,"-icon__customize"))},typeof je=="function"?je(Kt.props):je):Kt.renderIcon()}else en&&ee&&(Ie=Kt.renderIcon());var $e;typeof Ue=="function"?$e=Ue(ae):We?$e=We(ae):$e=Ue;var me=It.createElement("span",{className:"".concat(se,"-title")},$e);return It.createElement("span",{ref:Kt.setSelectHandle,title:typeof Ue=="string"?Ue:"",className:bt()("".concat(ke),"".concat(ke,"-").concat(Kt.getNodeState()||"normal"),!rn&&(de||Se)&&"".concat(se,"-node-selected")),onMouseEnter:Kt.onMouseEnter,onMouseLeave:Kt.onMouseLeave,onContextMenu:Kt.onContextMenu,onClick:Kt.onSelectorClick,onDoubleClick:Kt.onSelectorDoubleClick},Ie,me,Kt.renderDropIndicator())},Kt.renderDropIndicator=function(){var Se=Kt.props,Ne=Se.disabled,pe=Se.eventKey,Ue=Kt.props.context,de=Ue.draggable,Jt=Ue.dropLevelOffset,ee=Ue.dropPosition,ae=Ue.prefixCls,fe=Ue.indent,se=Ue.dropIndicatorRender,De=Ue.dragOverNodeKey,Oe=Ue.direction,en=!!de,We=!Ne&&en&&De===pe,rn=fe!=null?fe:Kt.cacheIndent;return Kt.cacheIndent=fe,We?se({dropPosition:ee,dropLevelOffset:Jt,indent:rn,prefixCls:ae,direction:Oe}):null},Kt}return(0,Wt.Z)($t,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var ue=this.props.selectable,oe=this.props.context.selectable;return typeof ue=="boolean"?ue:oe}},{key:"render",value:function(){var ue,oe=this.props,we=oe.eventKey,Se=oe.className,Ne=oe.style,pe=oe.dragOver,Ue=oe.dragOverGapTop,de=oe.dragOverGapBottom,Jt=oe.isLeaf,ee=oe.isStart,ae=oe.isEnd,fe=oe.expanded,se=oe.selected,De=oe.checked,Oe=oe.halfChecked,en=oe.loading,We=oe.domRef,rn=oe.active,ke=oe.data,Ie=oe.onMouseMove,je=oe.selectable,$e=(0,Vt.Z)(oe,ut),me=this.props.context,le=me.prefixCls,Ee=me.filterTreeNode,ce=me.keyEntities,he=me.dropContainerKey,_t=me.dropTargetKey,Mt=me.draggingNodeKey,Et=this.isDisabled(),Ht=(0,Tt.Z)($e,{aria:!0,data:!0}),Pt=(0,st.Z)(ce,we)||{},dt=Pt.level,gt=ae[ae.length-1],zt=this.isDraggable(),re=!Et&&zt,Zt=Mt===we,ye=je!==void 0?{"aria-selected":!!je}:void 0;return It.createElement("div",(0,Rt.Z)({ref:We,className:bt()(Se,"".concat(le,"-treenode"),(ue={},(0,yt.Z)(ue,"".concat(le,"-treenode-disabled"),Et),(0,yt.Z)(ue,"".concat(le,"-treenode-switcher-").concat(fe?"open":"close"),!Jt),(0,yt.Z)(ue,"".concat(le,"-treenode-checkbox-checked"),De),(0,yt.Z)(ue,"".concat(le,"-treenode-checkbox-indeterminate"),Oe),(0,yt.Z)(ue,"".concat(le,"-treenode-selected"),se),(0,yt.Z)(ue,"".concat(le,"-treenode-loading"),en),(0,yt.Z)(ue,"".concat(le,"-treenode-active"),rn),(0,yt.Z)(ue,"".concat(le,"-treenode-leaf-last"),gt),(0,yt.Z)(ue,"".concat(le,"-treenode-draggable"),zt),(0,yt.Z)(ue,"dragging",Zt),(0,yt.Z)(ue,"drop-target",_t===we),(0,yt.Z)(ue,"drop-container",he===we),(0,yt.Z)(ue,"drag-over",!Et&&pe),(0,yt.Z)(ue,"drag-over-gap-top",!Et&&Ue),(0,yt.Z)(ue,"drag-over-gap-bottom",!Et&&de),(0,yt.Z)(ue,"filter-node",Ee&&Ee((0,rt.F)(this.props))),ue)),style:Ne,draggable:re,"aria-grabbed":Zt,onDragStart:re?this.onDragStart:void 0,onDragEnter:zt?this.onDragEnter:void 0,onDragOver:zt?this.onDragOver:void 0,onDragLeave:zt?this.onDragLeave:void 0,onDrop:zt?this.onDrop:void 0,onDragEnd:zt?this.onDragEnd:void 0,onMouseMove:Ie},ye,Ht),It.createElement(tt,{prefixCls:le,level:dt,isStart:ee,isEnd:ae}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),$t}(It.Component),Dt=function(Qt){return It.createElement(vt.k.Consumer,null,function($t){return It.createElement(Ct,(0,Rt.Z)({},Qt,{context:$t}))})};Dt.displayName="TreeNode",Dt.isTreeNode=1;var Ut=Dt},39378:function(Nn,An,Gt){"use strict";Gt.d(An,{k:function(){return yt}});var Rt=Gt(59301),yt=Rt.createContext(null)},99581:function(Nn,An,Gt){"use strict";Gt.d(An,{O:function(){return Ut.Z},Z:function(){return me}});var Rt=Gt(5891),yt=Gt(80962),Vt=Gt(80665),Yt=Gt(57259),Nt=Gt(26390),Wt=Gt(79545),xt=Gt(68550),Ot=Gt(21882),Bt=Gt(17928),At=Gt(7711),bt=Gt(92310),Tt=Gt.n(bt),It=Gt(85108),vt=Gt(36994),et=Gt(51395),tt=Gt(59301),st=Gt(39378);function rt(le){var Ee=le.dropPosition,ce=le.dropLevelOffset,he=le.indent,_t={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Ee){case-1:_t.top=0,_t.left=-ce*he;break;case 1:_t.bottom=0,_t.left=-ce*he;break;case 0:_t.bottom=0,_t.left=he;break}return tt.createElement("div",{style:_t})}function ut(le){if(le==null)throw new TypeError("Cannot destructure "+le)}var ct=Gt(29043),pt=Gt(19149),mt=Gt(28800),Ct=Gt(21881),Dt=Gt(43469),Ut=Gt(39417);function Ft(le,Ee){var ce=tt.useState(!1),he=(0,ct.Z)(ce,2),_t=he[0],Mt=he[1];tt.useLayoutEffect(function(){if(_t)return le(),function(){Ee()}},[_t]),tt.useLayoutEffect(function(){return Mt(!0),function(){Mt(!1)}},[])}var Qt=Gt(71430),$t=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Kt=function(Ee,ce){var he=Ee.className,_t=Ee.style,Mt=Ee.motion,Et=Ee.motionNodes,Ht=Ee.motionType,Pt=Ee.onMotionStart,dt=Ee.onMotionEnd,gt=Ee.active,zt=Ee.treeNodeRequiredProps,re=(0,pt.Z)(Ee,$t),Zt=tt.useState(!0),ye=(0,ct.Z)(Zt,2),Ye=ye[0],sn=ye[1],Le=tt.useContext(st.k),Re=Le.prefixCls,hn=Et&&Ht!=="hide";(0,mt.Z)(function(){Et&&hn!==Ye&&sn(hn)},[Et]);var wn=function(){Et&&Pt()},kn=tt.useRef(!1),Rn=function(){Et&&!kn.current&&(kn.current=!0,dt())};Ft(wn,Rn);var Yn=function(li){hn===li&&Rn()};return Et?tt.createElement(Dt.default,(0,Rt.Z)({ref:ce,visible:Ye},Mt,{motionAppear:Ht==="show",onVisibleChanged:Yn}),function(Kn,li){var mi=Kn.className,yi=Kn.style;return tt.createElement("div",{ref:li,className:Tt()("".concat(Re,"-treenode-motion"),mi),style:yi},Et.map(function(Pi){var Mi=(0,Rt.Z)({},(ut(Pi.data),Pi.data)),Gi=Pi.title,bi=Pi.key,Ki=Pi.isStart,ui=Pi.isEnd;delete Mi.children;var te=(0,Qt.H8)(bi,zt);return tt.createElement(Ut.Z,(0,Rt.Z)({},Mi,te,{title:Gi,active:gt,data:Pi.data,key:bi,isStart:Ki,isEnd:ui}))}))}):tt.createElement(Ut.Z,(0,Rt.Z)({domRef:ce,className:he,style:_t},re,{active:gt}))};Kt.displayName="MotionTreeNode";var ue=tt.forwardRef(Kt),oe=ue;function we(){var le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ce=le.length,he=Ee.length;if(Math.abs(ce-he)!==1)return{add:!1,key:null};function _t(Mt,Et){var Ht=new Map;Mt.forEach(function(dt){Ht.set(dt,!0)});var Pt=Et.filter(function(dt){return!Ht.has(dt)});return Pt.length===1?Pt[0]:null}return ce<he?{add:!0,key:_t(le,Ee)}:{add:!1,key:_t(Ee,le)}}function Se(le,Ee,ce){var he=le.findIndex(function(Ht){return Ht.key===ce}),_t=le[he+1],Mt=Ee.findIndex(function(Ht){return Ht.key===ce});if(_t){var Et=Ee.findIndex(function(Ht){return Ht.key===_t.key});return Ee.slice(Mt+1,Et)}return Ee.slice(Mt+1)}var Ne=["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"],pe={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Ue=function(){},de="RC_TREE_MOTION_".concat(Math.random()),Jt={key:de},ee={key:de,level:0,index:0,pos:"0",node:Jt,nodes:[Jt]},ae={parent:null,children:[],pos:ee.pos,data:Jt,title:null,key:de,isStart:[],isEnd:[]};function fe(le,Ee,ce,he){return Ee===!1||!ce?le:le.slice(0,Math.ceil(ce/he)+1)}function se(le){var Ee=le.key,ce=le.pos;return(0,Qt.km)(Ee,ce)}function De(le){for(var Ee=String(le.data.key),ce=le;ce.parent;)ce=ce.parent,Ee="".concat(ce.data.key," > ").concat(Ee);return Ee}var Oe=tt.forwardRef(function(le,Ee){var ce=le.prefixCls,he=le.data,_t=le.selectable,Mt=le.checkable,Et=le.expandedKeys,Ht=le.selectedKeys,Pt=le.checkedKeys,dt=le.loadedKeys,gt=le.loadingKeys,zt=le.halfCheckedKeys,re=le.keyEntities,Zt=le.disabled,ye=le.dragging,Ye=le.dragOverNodeKey,sn=le.dropPosition,Le=le.motion,Re=le.height,hn=le.itemHeight,wn=le.virtual,kn=le.focusable,Rn=le.activeItem,Yn=le.focused,Kn=le.tabIndex,li=le.onKeyDown,mi=le.onFocus,yi=le.onBlur,Pi=le.onActiveChange,Mi=le.onListChangeStart,Gi=le.onListChangeEnd,bi=(0,pt.Z)(le,Ne),Ki=tt.useRef(null),ui=tt.useRef(null);tt.useImperativeHandle(Ee,function(){return{scrollTo:function(cn){Ki.current.scrollTo(cn)},getIndentWidth:function(){return ui.current.offsetWidth}}});var te=tt.useState(Et),Yi=(0,ct.Z)(te,2),Ti=Yi[0],or=Yi[1],Sr=tt.useState(he),Er=(0,ct.Z)(Sr,2),vr=Er[0],qn=Er[1],tn=tt.useState(he),nn=(0,ct.Z)(tn,2),Qe=nn[0],Fe=nn[1],vn=tt.useState([]),bn=(0,ct.Z)(vn,2),Ze=bn[0],Ae=bn[1],gn=tt.useState(null),Pn=(0,ct.Z)(gn,2),Un=Pn[0],mn=Pn[1],Me=tt.useRef(he);Me.current=he;function Ge(){var Ke=Me.current;qn(Ke),Fe(Ke),Ae([]),mn(null),Gi()}(0,mt.Z)(function(){or(Et);var Ke=we(Ti,Et);if(Ke.key!==null)if(Ke.add){var cn=vr.findIndex(function(yn){var Mn=yn.key;return Mn===Ke.key}),_e=fe(Se(vr,he,Ke.key),wn,Re,hn),on=vr.slice();on.splice(cn+1,0,ae),Fe(on),Ae(_e),mn("show")}else{var dn=he.findIndex(function(yn){var Mn=yn.key;return Mn===Ke.key}),ln=fe(Se(he,vr,Ke.key),wn,Re,hn),xn=he.slice();xn.splice(dn+1,0,ae),Fe(xn),Ae(ln),mn("hide")}else vr!==he&&(qn(he),Fe(he))},[Et,he]),tt.useEffect(function(){ye||Ge()},[ye]);var fn=Le?Qe:he,In={expandedKeys:Et,selectedKeys:Ht,loadedKeys:dt,loadingKeys:gt,checkedKeys:Pt,halfCheckedKeys:zt,dragOverNodeKey:Ye,dropPosition:sn,keyEntities:re};return tt.createElement(tt.Fragment,null,Yn&&Rn&&tt.createElement("span",{style:pe,"aria-live":"assertive"},De(Rn)),tt.createElement("div",null,tt.createElement("input",{style:pe,disabled:kn===!1||Zt,tabIndex:kn!==!1?Kn:null,onKeyDown:li,onFocus:mi,onBlur:yi,value:"",onChange:Ue,"aria-label":"for screen reader"})),tt.createElement("div",{className:"".concat(ce,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},tt.createElement("div",{className:"".concat(ce,"-indent")},tt.createElement("div",{ref:ui,className:"".concat(ce,"-indent-unit")}))),tt.createElement(Ct.Z,(0,Rt.Z)({},bi,{data:fn,itemKey:se,height:Re,fullHeight:!1,virtual:wn,itemHeight:hn,prefixCls:"".concat(ce,"-list"),ref:Ki,onVisibleChange:function(cn,_e){var on=new Set(cn),dn=_e.filter(function(ln){return!on.has(ln)});dn.some(function(ln){return se(ln)===de})&&Ge()}}),function(Ke){var cn=Ke.pos,_e=(0,Rt.Z)({},(ut(Ke.data),Ke.data)),on=Ke.title,dn=Ke.key,ln=Ke.isStart,xn=Ke.isEnd,yn=(0,Qt.km)(dn,cn);delete _e.key,delete _e.children;var Mn=(0,Qt.H8)(yn,In);return tt.createElement(oe,(0,Rt.Z)({},_e,Mn,{title:on,active:!!Rn&&dn===Rn.key,pos:cn,data:Ke.data,isStart:ln,isEnd:xn,motion:Le,motionNodes:dn===de?Ze:null,motionType:Un,onMotionStart:Mi,onMotionEnd:Ge,treeNodeRequiredProps:In,onMouseMove:function(){Pi(null)}}))}))});Oe.displayName="NodeList";var en=Oe,We=Gt(35654),rn=Gt(90782),ke=Gt(67841),Ie=10,je=function(le){(0,Bt.Z)(ce,le);var Ee=(0,At.Z)(ce);function ce(){var he;(0,Wt.Z)(this,ce);for(var _t=arguments.length,Mt=new Array(_t),Et=0;Et<_t;Et++)Mt[Et]=arguments[Et];return he=Ee.call.apply(Ee,[this].concat(Mt)),he.destroyed=!1,he.delayedDragEnterLogic=void 0,he.loadingRetryTimes={},he.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$)()},he.dragStartMousePosition=null,he.dragNode=void 0,he.currentMouseOverDroppableNodeKey=null,he.listRef=tt.createRef(),he.onNodeDragStart=function(Ht,Pt){var dt=he.state,gt=dt.expandedKeys,zt=dt.keyEntities,re=he.props.onDragStart,Zt=Pt.props.eventKey;he.dragNode=Pt,he.dragStartMousePosition={x:Ht.clientX,y:Ht.clientY};var ye=(0,We._5)(gt,Zt);he.setState({draggingNodeKey:Zt,dragChildrenKeys:(0,We.wA)(Zt,zt),indent:he.listRef.current.getIndentWidth()}),he.setExpandedKeys(ye),window.addEventListener("dragend",he.onWindowDragEnd),re==null||re({event:Ht,node:(0,Qt.F)(Pt.props)})},he.onNodeDragEnter=function(Ht,Pt){var dt=he.state,gt=dt.expandedKeys,zt=dt.keyEntities,re=dt.dragChildrenKeys,Zt=dt.flattenNodes,ye=dt.indent,Ye=he.props,sn=Ye.onDragEnter,Le=Ye.onExpand,Re=Ye.allowDrop,hn=Ye.direction,wn=Pt.props,kn=wn.pos,Rn=wn.eventKey,Yn=(0,Ot.Z)(he),Kn=Yn.dragNode;if(he.currentMouseOverDroppableNodeKey!==Rn&&(he.currentMouseOverDroppableNodeKey=Rn),!Kn){he.resetDragState();return}var li=(0,We.OM)(Ht,Kn,Pt,ye,he.dragStartMousePosition,Re,Zt,zt,gt,hn),mi=li.dropPosition,yi=li.dropLevelOffset,Pi=li.dropTargetKey,Mi=li.dropContainerKey,Gi=li.dropTargetPos,bi=li.dropAllowed,Ki=li.dragOverNodeKey;if(re.indexOf(Pi)!==-1||!bi){he.resetDragState();return}if(he.delayedDragEnterLogic||(he.delayedDragEnterLogic={}),Object.keys(he.delayedDragEnterLogic).forEach(function(ui){clearTimeout(he.delayedDragEnterLogic[ui])}),Kn.props.eventKey!==Pt.props.eventKey&&(Ht.persist(),he.delayedDragEnterLogic[kn]=window.setTimeout(function(){if(he.state.draggingNodeKey!==null){var ui=(0,Nt.Z)(gt),te=(0,ke.Z)(zt,Pt.props.eventKey);te&&(te.children||[]).length&&(ui=(0,We.L0)(gt,Pt.props.eventKey)),"expandedKeys"in he.props||he.setExpandedKeys(ui),Le==null||Le(ui,{node:(0,Qt.F)(Pt.props),expanded:!0,nativeEvent:Ht.nativeEvent})}},800)),Kn.props.eventKey===Pi&&yi===0){he.resetDragState();return}he.setState({dragOverNodeKey:Ki,dropPosition:mi,dropLevelOffset:yi,dropTargetKey:Pi,dropContainerKey:Mi,dropTargetPos:Gi,dropAllowed:bi}),sn==null||sn({event:Ht,node:(0,Qt.F)(Pt.props),expandedKeys:gt})},he.onNodeDragOver=function(Ht,Pt){var dt=he.state,gt=dt.dragChildrenKeys,zt=dt.flattenNodes,re=dt.keyEntities,Zt=dt.expandedKeys,ye=dt.indent,Ye=he.props,sn=Ye.onDragOver,Le=Ye.allowDrop,Re=Ye.direction,hn=(0,Ot.Z)(he),wn=hn.dragNode;if(wn){var kn=(0,We.OM)(Ht,wn,Pt,ye,he.dragStartMousePosition,Le,zt,re,Zt,Re),Rn=kn.dropPosition,Yn=kn.dropLevelOffset,Kn=kn.dropTargetKey,li=kn.dropContainerKey,mi=kn.dropAllowed,yi=kn.dropTargetPos,Pi=kn.dragOverNodeKey;gt.indexOf(Kn)!==-1||!mi||(wn.props.eventKey===Kn&&Yn===0?he.state.dropPosition===null&&he.state.dropLevelOffset===null&&he.state.dropTargetKey===null&&he.state.dropContainerKey===null&&he.state.dropTargetPos===null&&he.state.dropAllowed===!1&&he.state.dragOverNodeKey===null||he.resetDragState():Rn===he.state.dropPosition&&Yn===he.state.dropLevelOffset&&Kn===he.state.dropTargetKey&&li===he.state.dropContainerKey&&yi===he.state.dropTargetPos&&mi===he.state.dropAllowed&&Pi===he.state.dragOverNodeKey||he.setState({dropPosition:Rn,dropLevelOffset:Yn,dropTargetKey:Kn,dropContainerKey:li,dropTargetPos:yi,dropAllowed:mi,dragOverNodeKey:Pi}),sn==null||sn({event:Ht,node:(0,Qt.F)(Pt.props)}))}},he.onNodeDragLeave=function(Ht,Pt){he.currentMouseOverDroppableNodeKey===Pt.props.eventKey&&!Ht.currentTarget.contains(Ht.relatedTarget)&&(he.resetDragState(),he.currentMouseOverDroppableNodeKey=null);var dt=he.props.onDragLeave;dt==null||dt({event:Ht,node:(0,Qt.F)(Pt.props)})},he.onWindowDragEnd=function(Ht){he.onNodeDragEnd(Ht,null,!0),window.removeEventListener("dragend",he.onWindowDragEnd)},he.onNodeDragEnd=function(Ht,Pt){var dt=he.props.onDragEnd;he.setState({dragOverNodeKey:null}),he.cleanDragState(),dt==null||dt({event:Ht,node:(0,Qt.F)(Pt.props)}),he.dragNode=null,window.removeEventListener("dragend",he.onWindowDragEnd)},he.onNodeDrop=function(Ht,Pt){var dt,gt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,zt=he.state,re=zt.dragChildrenKeys,Zt=zt.dropPosition,ye=zt.dropTargetKey,Ye=zt.dropTargetPos,sn=zt.dropAllowed;if(sn){var Le=he.props.onDrop;if(he.setState({dragOverNodeKey:null}),he.cleanDragState(),ye!==null){var Re=(0,Yt.Z)((0,Yt.Z)({},(0,Qt.H8)(ye,he.getTreeNodeRequiredProps())),{},{active:((dt=he.getActiveItem())===null||dt===void 0?void 0:dt.key)===ye,data:(0,ke.Z)(he.state.keyEntities,ye).node}),hn=re.indexOf(ye)!==-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 wn=(0,We.yx)(Ye),kn={event:Ht,node:(0,Qt.F)(Re),dragNode:he.dragNode?(0,Qt.F)(he.dragNode.props):null,dragNodesKeys:[he.dragNode.props.eventKey].concat(re),dropToGap:Zt!==0,dropPosition:Zt+Number(wn[wn.length-1])};gt||Le==null||Le(kn),he.dragNode=null}}},he.cleanDragState=function(){var Ht=he.state.draggingNodeKey;Ht!==null&&he.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),he.dragStartMousePosition=null,he.currentMouseOverDroppableNodeKey=null},he.triggerExpandActionExpand=function(Ht,Pt){var dt=he.state,gt=dt.expandedKeys,zt=dt.flattenNodes,re=Pt.expanded,Zt=Pt.key,ye=Pt.isLeaf;if(!(ye||Ht.shiftKey||Ht.metaKey||Ht.ctrlKey)){var Ye=zt.filter(function(Le){return Le.key===Zt})[0],sn=(0,Qt.F)((0,Yt.Z)((0,Yt.Z)({},(0,Qt.H8)(Zt,he.getTreeNodeRequiredProps())),{},{data:Ye.data}));he.setExpandedKeys(re?(0,We._5)(gt,Zt):(0,We.L0)(gt,Zt)),he.onNodeExpand(Ht,sn)}},he.onNodeClick=function(Ht,Pt){var dt=he.props,gt=dt.onClick,zt=dt.expandAction;zt==="click"&&he.triggerExpandActionExpand(Ht,Pt),gt==null||gt(Ht,Pt)},he.onNodeDoubleClick=function(Ht,Pt){var dt=he.props,gt=dt.onDoubleClick,zt=dt.expandAction;zt==="doubleClick"&&he.triggerExpandActionExpand(Ht,Pt),gt==null||gt(Ht,Pt)},he.onNodeSelect=function(Ht,Pt){var dt=he.state.selectedKeys,gt=he.state,zt=gt.keyEntities,re=gt.fieldNames,Zt=he.props,ye=Zt.onSelect,Ye=Zt.multiple,sn=Pt.selected,Le=Pt[re.key],Re=!sn;Re?Ye?dt=(0,We.L0)(dt,Le):dt=[Le]:dt=(0,We._5)(dt,Le);var hn=dt.map(function(wn){var kn=(0,ke.Z)(zt,wn);return kn?kn.node:null}).filter(function(wn){return wn});he.setUncontrolledState({selectedKeys:dt}),ye==null||ye(dt,{event:"select",selected:Re,node:Pt,selectedNodes:hn,nativeEvent:Ht.nativeEvent})},he.onNodeCheck=function(Ht,Pt,dt){var gt=he.state,zt=gt.keyEntities,re=gt.checkedKeys,Zt=gt.halfCheckedKeys,ye=he.props,Ye=ye.checkStrictly,sn=ye.onCheck,Le=Pt.key,Re,hn={event:"check",node:Pt,checked:dt,nativeEvent:Ht.nativeEvent};if(Ye){var wn=dt?(0,We.L0)(re,Le):(0,We._5)(re,Le),kn=(0,We._5)(Zt,Le);Re={checked:wn,halfChecked:kn},hn.checkedNodes=wn.map(function(yi){return(0,ke.Z)(zt,yi)}).filter(function(yi){return yi}).map(function(yi){return yi.node}),he.setUncontrolledState({checkedKeys:wn})}else{var Rn=(0,rn.S)([].concat((0,Nt.Z)(re),[Le]),!0,zt),Yn=Rn.checkedKeys,Kn=Rn.halfCheckedKeys;if(!dt){var li=new Set(Yn);li.delete(Le);var mi=(0,rn.S)(Array.from(li),{checked:!1,halfCheckedKeys:Kn},zt);Yn=mi.checkedKeys,Kn=mi.halfCheckedKeys}Re=Yn,hn.checkedNodes=[],hn.checkedNodesPositions=[],hn.halfCheckedKeys=Kn,Yn.forEach(function(yi){var Pi=(0,ke.Z)(zt,yi);if(Pi){var Mi=Pi.node,Gi=Pi.pos;hn.checkedNodes.push(Mi),hn.checkedNodesPositions.push({node:Mi,pos:Gi})}}),he.setUncontrolledState({checkedKeys:Yn},!1,{halfCheckedKeys:Kn})}sn==null||sn(Re,hn)},he.onNodeLoad=function(Ht){var Pt=Ht.key,dt=new Promise(function(gt,zt){he.setState(function(re){var Zt=re.loadedKeys,ye=Zt===void 0?[]:Zt,Ye=re.loadingKeys,sn=Ye===void 0?[]:Ye,Le=he.props,Re=Le.loadData,hn=Le.onLoad;if(!Re||ye.indexOf(Pt)!==-1||sn.indexOf(Pt)!==-1)return null;var wn=Re(Ht);return wn.then(function(){var kn=he.state.loadedKeys,Rn=(0,We.L0)(kn,Pt);hn==null||hn(Rn,{event:"load",node:Ht}),he.setUncontrolledState({loadedKeys:Rn}),he.setState(function(Yn){return{loadingKeys:(0,We._5)(Yn.loadingKeys,Pt)}}),gt()}).catch(function(kn){if(he.setState(function(Yn){return{loadingKeys:(0,We._5)(Yn.loadingKeys,Pt)}}),he.loadingRetryTimes[Pt]=(he.loadingRetryTimes[Pt]||0)+1,he.loadingRetryTimes[Pt]>=Ie){var Rn=he.state.loadedKeys;(0,et.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),he.setUncontrolledState({loadedKeys:(0,We.L0)(Rn,Pt)}),gt()}zt(kn)}),{loadingKeys:(0,We.L0)(sn,Pt)}})});return dt.catch(function(){}),dt},he.onNodeMouseEnter=function(Ht,Pt){var dt=he.props.onMouseEnter;dt==null||dt({event:Ht,node:Pt})},he.onNodeMouseLeave=function(Ht,Pt){var dt=he.props.onMouseLeave;dt==null||dt({event:Ht,node:Pt})},he.onNodeContextMenu=function(Ht,Pt){var dt=he.props.onRightClick;dt&&(Ht.preventDefault(),dt({event:Ht,node:Pt}))},he.onFocus=function(){var Ht=he.props.onFocus;he.setState({focused:!0});for(var Pt=arguments.length,dt=new Array(Pt),gt=0;gt<Pt;gt++)dt[gt]=arguments[gt];Ht==null||Ht.apply(void 0,dt)},he.onBlur=function(){var Ht=he.props.onBlur;he.setState({focused:!1}),he.onActiveChange(null);for(var Pt=arguments.length,dt=new Array(Pt),gt=0;gt<Pt;gt++)dt[gt]=arguments[gt];Ht==null||Ht.apply(void 0,dt)},he.getTreeNodeRequiredProps=function(){var Ht=he.state,Pt=Ht.expandedKeys,dt=Ht.selectedKeys,gt=Ht.loadedKeys,zt=Ht.loadingKeys,re=Ht.checkedKeys,Zt=Ht.halfCheckedKeys,ye=Ht.dragOverNodeKey,Ye=Ht.dropPosition,sn=Ht.keyEntities;return{expandedKeys:Pt||[],selectedKeys:dt||[],loadedKeys:gt||[],loadingKeys:zt||[],checkedKeys:re||[],halfCheckedKeys:Zt||[],dragOverNodeKey:ye,dropPosition:Ye,keyEntities:sn}},he.setExpandedKeys=function(Ht){var Pt=he.state,dt=Pt.treeData,gt=Pt.fieldNames,zt=(0,Qt.oH)(dt,Ht,gt);he.setUncontrolledState({expandedKeys:Ht,flattenNodes:zt},!0)},he.onNodeExpand=function(Ht,Pt){var dt=he.state.expandedKeys,gt=he.state,zt=gt.listChanging,re=gt.fieldNames,Zt=he.props,ye=Zt.onExpand,Ye=Zt.loadData,sn=Pt.expanded,Le=Pt[re.key];if(!zt){var Re=dt.indexOf(Le),hn=!sn;if((0,et.ZP)(sn&&Re!==-1||!sn&&Re===-1,"Expand state not sync with index check"),hn?dt=(0,We.L0)(dt,Le):dt=(0,We._5)(dt,Le),he.setExpandedKeys(dt),ye==null||ye(dt,{node:Pt,expanded:hn,nativeEvent:Ht.nativeEvent}),hn&&Ye){var wn=he.onNodeLoad(Pt);wn&&wn.then(function(){var kn=(0,Qt.oH)(he.state.treeData,dt,re);he.setUncontrolledState({flattenNodes:kn})}).catch(function(){var kn=he.state.expandedKeys,Rn=(0,We._5)(kn,Le);he.setExpandedKeys(Rn)})}}},he.onListChangeStart=function(){he.setUncontrolledState({listChanging:!0})},he.onListChangeEnd=function(){setTimeout(function(){he.setUncontrolledState({listChanging:!1})})},he.onActiveChange=function(Ht){var Pt=he.state.activeKey,dt=he.props.onActiveChange;Pt!==Ht&&(he.setState({activeKey:Ht}),Ht!==null&&he.scrollTo({key:Ht}),dt==null||dt(Ht))},he.getActiveItem=function(){var Ht=he.state,Pt=Ht.activeKey,dt=Ht.flattenNodes;return Pt===null?null:dt.find(function(gt){var zt=gt.key;return zt===Pt})||null},he.offsetActiveKey=function(Ht){var Pt=he.state,dt=Pt.flattenNodes,gt=Pt.activeKey,zt=dt.findIndex(function(ye){var Ye=ye.key;return Ye===gt});zt===-1&&Ht<0&&(zt=dt.length),zt=(zt+Ht+dt.length)%dt.length;var re=dt[zt];if(re){var Zt=re.key;he.onActiveChange(Zt)}else he.onActiveChange(null)},he.onKeyDown=function(Ht){var Pt=he.state,dt=Pt.activeKey,gt=Pt.expandedKeys,zt=Pt.checkedKeys,re=Pt.fieldNames,Zt=he.props,ye=Zt.onKeyDown,Ye=Zt.checkable,sn=Zt.selectable;switch(Ht.which){case It.Z.UP:{he.offsetActiveKey(-1),Ht.preventDefault();break}case It.Z.DOWN:{he.offsetActiveKey(1),Ht.preventDefault();break}}var Le=he.getActiveItem();if(Le&&Le.data){var Re=he.getTreeNodeRequiredProps(),hn=Le.data.isLeaf===!1||!!(Le.data[re.children]||[]).length,wn=(0,Qt.F)((0,Yt.Z)((0,Yt.Z)({},(0,Qt.H8)(dt,Re)),{},{data:Le.data,active:!0}));switch(Ht.which){case It.Z.LEFT:{hn&>.includes(dt)?he.onNodeExpand({},wn):Le.parent&&he.onActiveChange(Le.parent.key),Ht.preventDefault();break}case It.Z.RIGHT:{hn&&!gt.includes(dt)?he.onNodeExpand({},wn):Le.children&&Le.children.length&&he.onActiveChange(Le.children[0].key),Ht.preventDefault();break}case It.Z.ENTER:case It.Z.SPACE:{Ye&&!wn.disabled&&wn.checkable!==!1&&!wn.disableCheckbox?he.onNodeCheck({},wn,!zt.includes(dt)):!Ye&&sn&&!wn.disabled&&wn.selectable!==!1&&he.onNodeSelect({},wn);break}}}ye==null||ye(Ht)},he.setUncontrolledState=function(Ht){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!he.destroyed){var gt=!1,zt=!0,re={};Object.keys(Ht).forEach(function(Zt){if(Zt in he.props){zt=!1;return}gt=!0,re[Zt]=Ht[Zt]}),gt&&(!Pt||zt)&&he.setState((0,Yt.Z)((0,Yt.Z)({},re),dt))}},he.scrollTo=function(Ht){he.listRef.current.scrollTo(Ht)},he}return(0,xt.Z)(ce,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var _t=this.props.activeKey;_t!==void 0&&_t!==this.state.activeKey&&(this.setState({activeKey:_t}),_t!==null&&this.scrollTo({key:_t}))}},{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 _t,Mt=this.state,Et=Mt.focused,Ht=Mt.flattenNodes,Pt=Mt.keyEntities,dt=Mt.draggingNodeKey,gt=Mt.activeKey,zt=Mt.dropLevelOffset,re=Mt.dropContainerKey,Zt=Mt.dropTargetKey,ye=Mt.dropPosition,Ye=Mt.dragOverNodeKey,sn=Mt.indent,Le=this.props,Re=Le.prefixCls,hn=Le.className,wn=Le.style,kn=Le.showLine,Rn=Le.focusable,Yn=Le.tabIndex,Kn=Yn===void 0?0:Yn,li=Le.selectable,mi=Le.showIcon,yi=Le.icon,Pi=Le.switcherIcon,Mi=Le.draggable,Gi=Le.checkable,bi=Le.checkStrictly,Ki=Le.disabled,ui=Le.motion,te=Le.loadData,Yi=Le.filterTreeNode,Ti=Le.height,or=Le.itemHeight,Sr=Le.virtual,Er=Le.titleRender,vr=Le.dropIndicatorRender,qn=Le.onContextMenu,tn=Le.onScroll,nn=Le.direction,Qe=Le.rootClassName,Fe=Le.rootStyle,vn=(0,vt.Z)(this.props,{aria:!0,data:!0}),bn;return Mi&&((0,Vt.Z)(Mi)==="object"?bn=Mi:typeof Mi=="function"?bn={nodeDraggable:Mi}:bn={}),tt.createElement(st.k.Provider,{value:{prefixCls:Re,selectable:li,showIcon:mi,icon:yi,switcherIcon:Pi,draggable:bn,draggingNodeKey:dt,checkable:Gi,checkStrictly:bi,disabled:Ki,keyEntities:Pt,dropLevelOffset:zt,dropContainerKey:re,dropTargetKey:Zt,dropPosition:ye,dragOverNodeKey:Ye,indent:sn,direction:nn,dropIndicatorRender:vr,loadData:te,filterTreeNode:Yi,titleRender:Er,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:Tt()(Re,hn,Qe,(_t={},(0,yt.Z)(_t,"".concat(Re,"-show-line"),kn),(0,yt.Z)(_t,"".concat(Re,"-focused"),Et),(0,yt.Z)(_t,"".concat(Re,"-active-focused"),gt!==null),_t)),style:Fe},tt.createElement(en,(0,Rt.Z)({ref:this.listRef,prefixCls:Re,style:wn,data:Ht,disabled:Ki,selectable:li,checkable:!!Gi,motion:ui,dragging:dt!==null,height:Ti,itemHeight:or,virtual:Sr,focusable:Rn,focused:Et,tabIndex:Kn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:qn,onScroll:tn},this.getTreeNodeRequiredProps(),vn))))}}],[{key:"getDerivedStateFromProps",value:function(_t,Mt){var Et=Mt.prevProps,Ht={prevProps:_t};function Pt(Rn){return!Et&&Rn in _t||Et&&Et[Rn]!==_t[Rn]}var dt,gt=Mt.fieldNames;if(Pt("fieldNames")&&(gt=(0,Qt.w$)(_t.fieldNames),Ht.fieldNames=gt),Pt("treeData")?dt=_t.treeData:Pt("children")&&((0,et.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),dt=(0,Qt.zn)(_t.children)),dt){Ht.treeData=dt;var zt=(0,Qt.I8)(dt,{fieldNames:gt});Ht.keyEntities=(0,Yt.Z)((0,yt.Z)({},de,ee),zt.keyEntities)}var re=Ht.keyEntities||Mt.keyEntities;if(Pt("expandedKeys")||Et&&Pt("autoExpandParent"))Ht.expandedKeys=_t.autoExpandParent||!Et&&_t.defaultExpandParent?(0,We.r7)(_t.expandedKeys,re):_t.expandedKeys;else if(!Et&&_t.defaultExpandAll){var Zt=(0,Yt.Z)({},re);delete Zt[de],Ht.expandedKeys=Object.keys(Zt).map(function(Rn){return Zt[Rn].key})}else!Et&&_t.defaultExpandedKeys&&(Ht.expandedKeys=_t.autoExpandParent||_t.defaultExpandParent?(0,We.r7)(_t.defaultExpandedKeys,re):_t.defaultExpandedKeys);if(Ht.expandedKeys||delete Ht.expandedKeys,dt||Ht.expandedKeys){var ye=(0,Qt.oH)(dt||Mt.treeData,Ht.expandedKeys||Mt.expandedKeys,gt);Ht.flattenNodes=ye}if(_t.selectable&&(Pt("selectedKeys")?Ht.selectedKeys=(0,We.BT)(_t.selectedKeys,_t):!Et&&_t.defaultSelectedKeys&&(Ht.selectedKeys=(0,We.BT)(_t.defaultSelectedKeys,_t))),_t.checkable){var Ye;if(Pt("checkedKeys")?Ye=(0,We.E6)(_t.checkedKeys)||{}:!Et&&_t.defaultCheckedKeys?Ye=(0,We.E6)(_t.defaultCheckedKeys)||{}:dt&&(Ye=(0,We.E6)(_t.checkedKeys)||{checkedKeys:Mt.checkedKeys,halfCheckedKeys:Mt.halfCheckedKeys}),Ye){var sn=Ye,Le=sn.checkedKeys,Re=Le===void 0?[]:Le,hn=sn.halfCheckedKeys,wn=hn===void 0?[]:hn;if(!_t.checkStrictly){var kn=(0,rn.S)(Re,!0,re);Re=kn.checkedKeys,wn=kn.halfCheckedKeys}Ht.checkedKeys=Re,Ht.halfCheckedKeys=wn}}return Pt("loadedKeys")&&(Ht.loadedKeys=_t.loadedKeys),Ht}}]),ce}(tt.Component);je.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},je.TreeNode=Ut.Z;var $e=je,me=$e},35654:function(Nn,An,Gt){"use strict";Gt.d(An,{BT:function(){return tt},E6:function(){return ut},L0:function(){return At},OM:function(){return et},_5:function(){return Bt},r7:function(){return ct},wA:function(){return Tt},yx:function(){return bt}});var Rt=Gt(26390),yt=Gt(80665),Vt=Gt(51395),Yt=Gt(59301),Nt=Gt(39417),Wt=Gt(67841),xt=Gt(71430),Ot=null;function Bt(pt,mt){if(!pt)return[];var Ct=pt.slice(),Dt=Ct.indexOf(mt);return Dt>=0&&Ct.splice(Dt,1),Ct}function At(pt,mt){var Ct=(pt||[]).slice();return Ct.indexOf(mt)===-1&&Ct.push(mt),Ct}function bt(pt){return pt.split("-")}function Tt(pt,mt){var Ct=[],Dt=(0,Wt.Z)(mt,pt);function Ut(){var Ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ft.forEach(function(Qt){var $t=Qt.key,Kt=Qt.children;Ct.push($t),Ut(Kt)})}return Ut(Dt.children),Ct}function It(pt){if(pt.parent){var mt=bt(pt.pos);return Number(mt[mt.length-1])===pt.parent.children.length-1}return!1}function vt(pt){var mt=bt(pt.pos);return Number(mt[mt.length-1])===0}function et(pt,mt,Ct,Dt,Ut,Ft,Qt,$t,Kt,ue){var oe,we=pt.clientX,Se=pt.clientY,Ne=pt.target.getBoundingClientRect(),pe=Ne.top,Ue=Ne.height,de=(ue==="rtl"?-1:1)*(((Ut==null?void 0:Ut.x)||0)-we),Jt=(de-12)/Dt,ee=(0,Wt.Z)($t,Ct.props.eventKey);if(Se<pe+Ue/2){var ae=Qt.findIndex(function(me){return me.key===ee.key}),fe=ae<=0?0:ae-1,se=Qt[fe].key;ee=(0,Wt.Z)($t,se)}var De=ee.key,Oe=ee,en=ee.key,We=0,rn=0;if(!Kt.includes(De))for(var ke=0;ke<Jt&&It(ee);ke+=1)ee=ee.parent,rn+=1;var Ie=mt.props.data,je=ee.node,$e=!0;return vt(ee)&&ee.level===0&&Se<pe+Ue/2&&Ft({dragNode:Ie,dropNode:je,dropPosition:-1})&&ee.key===Ct.props.eventKey?We=-1:(Oe.children||[]).length&&Kt.includes(en)?Ft({dragNode:Ie,dropNode:je,dropPosition:0})?We=0:$e=!1:rn===0?Jt>-1.5?Ft({dragNode:Ie,dropNode:je,dropPosition:1})?We=1:$e=!1:Ft({dragNode:Ie,dropNode:je,dropPosition:0})?We=0:Ft({dragNode:Ie,dropNode:je,dropPosition:1})?We=1:$e=!1:Ft({dragNode:Ie,dropNode:je,dropPosition:1})?We=1:$e=!1,{dropPosition:We,dropLevelOffset:rn,dropTargetKey:ee.key,dropTargetPos:ee.pos,dragOverNodeKey:en,dropContainerKey:We===0?null:((oe=ee.parent)===null||oe===void 0?void 0:oe.key)||null,dropAllowed:$e}}function tt(pt,mt){if(pt){var Ct=mt.multiple;return Ct?pt.slice():pt.length?[pt[0]]:pt}}var st=function(mt){return mt};function rt(pt,mt){if(!pt)return[];var Ct=mt||{},Dt=Ct.processProps,Ut=Dt===void 0?st:Dt,Ft=Array.isArray(pt)?pt:[pt];return Ft.map(function(Qt){var $t=Qt.children,Kt=_objectWithoutProperties(Qt,Ot),ue=rt($t,mt);return React.createElement(TreeNode,_extends({key:Kt.key},Ut(Kt)),ue)})}function ut(pt){if(!pt)return null;var mt;if(Array.isArray(pt))mt={checkedKeys:pt,halfCheckedKeys:void 0};else if((0,yt.Z)(pt)==="object")mt={checkedKeys:pt.checked||void 0,halfCheckedKeys:pt.halfChecked||void 0};else return(0,Vt.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return mt}function ct(pt,mt){var Ct=new Set;function Dt(Ut){if(!Ct.has(Ut)){var Ft=(0,Wt.Z)(mt,Ut);if(Ft){Ct.add(Ut);var Qt=Ft.parent,$t=Ft.node;$t.disabled||Qt&&Dt(Qt.key)}}}return(pt||[]).forEach(function(Ut){Dt(Ut)}),(0,Rt.Z)(Ct)}},90782:function(Nn,An,Gt){"use strict";Gt.d(An,{S:function(){return xt}});var Rt=Gt(51395),yt=Gt(67841);function Vt(Ot,Bt){var At=new Set;return Ot.forEach(function(bt){Bt.has(bt)||At.add(bt)}),At}function Yt(Ot){var Bt=Ot||{},At=Bt.disabled,bt=Bt.disableCheckbox,Tt=Bt.checkable;return!!(At||bt)||Tt===!1}function Nt(Ot,Bt,At,bt){for(var Tt=new Set(Ot),It=new Set,vt=0;vt<=At;vt+=1){var et=Bt.get(vt)||new Set;et.forEach(function(ut){var ct=ut.key,pt=ut.node,mt=ut.children,Ct=mt===void 0?[]:mt;Tt.has(ct)&&!bt(pt)&&Ct.filter(function(Dt){return!bt(Dt.node)}).forEach(function(Dt){Tt.add(Dt.key)})})}for(var tt=new Set,st=At;st>=0;st-=1){var rt=Bt.get(st)||new Set;rt.forEach(function(ut){var ct=ut.parent,pt=ut.node;if(!(bt(pt)||!ut.parent||tt.has(ut.parent.key))){if(bt(ut.parent.node)){tt.add(ct.key);return}var mt=!0,Ct=!1;(ct.children||[]).filter(function(Dt){return!bt(Dt.node)}).forEach(function(Dt){var Ut=Dt.key,Ft=Tt.has(Ut);mt&&!Ft&&(mt=!1),!Ct&&(Ft||It.has(Ut))&&(Ct=!0)}),mt&&Tt.add(ct.key),Ct&&It.add(ct.key),tt.add(ct.key)}})}return{checkedKeys:Array.from(Tt),halfCheckedKeys:Array.from(Vt(It,Tt))}}function Wt(Ot,Bt,At,bt,Tt){for(var It=new Set(Ot),vt=new Set(Bt),et=0;et<=bt;et+=1){var tt=At.get(et)||new Set;tt.forEach(function(ct){var pt=ct.key,mt=ct.node,Ct=ct.children,Dt=Ct===void 0?[]:Ct;!It.has(pt)&&!vt.has(pt)&&!Tt(mt)&&Dt.filter(function(Ut){return!Tt(Ut.node)}).forEach(function(Ut){It.delete(Ut.key)})})}vt=new Set;for(var st=new Set,rt=bt;rt>=0;rt-=1){var ut=At.get(rt)||new Set;ut.forEach(function(ct){var pt=ct.parent,mt=ct.node;if(!(Tt(mt)||!ct.parent||st.has(ct.parent.key))){if(Tt(ct.parent.node)){st.add(pt.key);return}var Ct=!0,Dt=!1;(pt.children||[]).filter(function(Ut){return!Tt(Ut.node)}).forEach(function(Ut){var Ft=Ut.key,Qt=It.has(Ft);Ct&&!Qt&&(Ct=!1),!Dt&&(Qt||vt.has(Ft))&&(Dt=!0)}),Ct||It.delete(pt.key),Dt&&vt.add(pt.key),st.add(pt.key)}})}return{checkedKeys:Array.from(It),halfCheckedKeys:Array.from(Vt(vt,It))}}function xt(Ot,Bt,At,bt){var Tt=[],It;bt?It=bt:It=Yt;var vt=new Set(Ot.filter(function(rt){var ut=!!(0,yt.Z)(At,rt);return ut||Tt.push(rt),ut})),et=new Map,tt=0;Object.keys(At).forEach(function(rt){var ut=At[rt],ct=ut.level,pt=et.get(ct);pt||(pt=new Set,et.set(ct,pt)),pt.add(ut),tt=Math.max(tt,ct)}),(0,Rt.ZP)(!Tt.length,"Tree missing follow keys: ".concat(Tt.slice(0,100).map(function(rt){return"'".concat(rt,"'")}).join(", ")));var st;return Bt===!0?st=Nt(vt,et,tt,It):st=Wt(vt,Bt.halfCheckedKeys,et,tt,It),st}},67841:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Rt}});function Rt(yt,Vt){return yt[Vt]}},71430:function(Nn,An,Gt){"use strict";Gt.d(An,{F:function(){return ct},H8:function(){return ut},I8:function(){return rt},km:function(){return Tt},oH:function(){return tt},w$:function(){return It},zn:function(){return et}});var Rt=Gt(80665),yt=Gt(26390),Vt=Gt(57259),Yt=Gt(19149),Nt=Gt(38298),Wt=Gt(64002),xt=Gt(51395),Ot=Gt(67841),Bt=["children"];function At(pt,mt){return"".concat(pt,"-").concat(mt)}function bt(pt){return pt&&pt.type&&pt.type.isTreeNode}function Tt(pt,mt){return pt!=null?pt:mt}function It(pt){var mt=pt||{},Ct=mt.title,Dt=mt._title,Ut=mt.key,Ft=mt.children,Qt=Ct||"title";return{title:Qt,_title:Dt||[Qt],key:Ut||"key",children:Ft||"children"}}function vt(pt,mt){var Ct=new Map;function Dt(Ut){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Ut||[]).forEach(function(Qt){var $t=Qt[mt.key],Kt=Qt[mt.children];warning($t!=null,"Tree node must have a certain key: [".concat(Ft).concat($t,"]"));var ue=String($t);warning(!Ct.has(ue)||$t===null||$t===void 0,"Same 'key' exist in the Tree: ".concat(ue)),Ct.set(ue,!0),Dt(Kt,"".concat(Ft).concat(ue," > "))})}Dt(pt)}function et(pt){function mt(Ct){var Dt=(0,Nt.Z)(Ct);return Dt.map(function(Ut){if(!bt(Ut))return(0,xt.ZP)(!Ut,"Tree/TreeNode can only accept TreeNode as children."),null;var Ft=Ut.key,Qt=Ut.props,$t=Qt.children,Kt=(0,Yt.Z)(Qt,Bt),ue=(0,Vt.Z)({key:Ft},Kt),oe=mt($t);return oe.length&&(ue.children=oe),ue}).filter(function(Ut){return Ut})}return mt(pt)}function tt(pt,mt,Ct){var Dt=It(Ct),Ut=Dt._title,Ft=Dt.key,Qt=Dt.children,$t=new Set(mt===!0?[]:mt),Kt=[];function ue(oe){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return oe.map(function(Se,Ne){for(var pe=At(we?we.pos:"0",Ne),Ue=Tt(Se[Ft],pe),de,Jt=0;Jt<Ut.length;Jt+=1){var ee=Ut[Jt];if(Se[ee]!==void 0){de=Se[ee];break}}var ae=(0,Vt.Z)((0,Vt.Z)({},(0,Wt.Z)(Se,[].concat((0,yt.Z)(Ut),[Ft,Qt]))),{},{title:de,key:Ue,parent:we,pos:pe,children:null,data:Se,isStart:[].concat((0,yt.Z)(we?we.isStart:[]),[Ne===0]),isEnd:[].concat((0,yt.Z)(we?we.isEnd:[]),[Ne===oe.length-1])});return Kt.push(ae),mt===!0||$t.has(Ue)?ae.children=ue(Se[Qt]||[],ae):ae.children=[],ae})}return ue(pt),Kt}function st(pt,mt,Ct){var Dt={};(0,Rt.Z)(Ct)==="object"?Dt=Ct:Dt={externalGetKey:Ct},Dt=Dt||{};var Ut=Dt,Ft=Ut.childrenPropName,Qt=Ut.externalGetKey,$t=Ut.fieldNames,Kt=It($t),ue=Kt.key,oe=Kt.children,we=Ft||oe,Se;Qt?typeof Qt=="string"?Se=function(Ue){return Ue[Qt]}:typeof Qt=="function"&&(Se=function(Ue){return Qt(Ue)}):Se=function(Ue,de){return Tt(Ue[ue],de)};function Ne(pe,Ue,de,Jt){var ee=pe?pe[we]:pt,ae=pe?At(de.pos,Ue):"0",fe=pe?[].concat((0,yt.Z)(Jt),[pe]):[];if(pe){var se=Se(pe,ae),De={node:pe,index:Ue,pos:ae,key:se,parentPos:de.node?de.pos:null,level:de.level+1,nodes:fe};mt(De)}ee&&ee.forEach(function(Oe,en){Ne(Oe,en,{node:pe,pos:ae,level:de?de.level+1:-1},fe)})}Ne(null)}function rt(pt){var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ct=mt.initWrapper,Dt=mt.processEntity,Ut=mt.onProcessFinished,Ft=mt.externalGetKey,Qt=mt.childrenPropName,$t=mt.fieldNames,Kt=arguments.length>2?arguments[2]:void 0,ue=Ft||Kt,oe={},we={},Se={posEntities:oe,keyEntities:we};return Ct&&(Se=Ct(Se)||Se),st(pt,function(Ne){var pe=Ne.node,Ue=Ne.index,de=Ne.pos,Jt=Ne.key,ee=Ne.parentPos,ae=Ne.level,fe=Ne.nodes,se={node:pe,nodes:fe,index:Ue,key:Jt,pos:de,level:ae},De=Tt(Jt,de);oe[de]=se,we[De]=se,se.parent=oe[ee],se.parent&&(se.parent.children=se.parent.children||[],se.parent.children.push(se)),Dt&&Dt(se,Se)},{externalGetKey:ue,childrenPropName:Qt,fieldNames:$t}),Ut&&Ut(Se),Se}function ut(pt,mt){var Ct=mt.expandedKeys,Dt=mt.selectedKeys,Ut=mt.loadedKeys,Ft=mt.loadingKeys,Qt=mt.checkedKeys,$t=mt.halfCheckedKeys,Kt=mt.dragOverNodeKey,ue=mt.dropPosition,oe=mt.keyEntities,we=(0,Ot.Z)(oe,pt),Se={eventKey:pt,expanded:Ct.indexOf(pt)!==-1,selected:Dt.indexOf(pt)!==-1,loaded:Ut.indexOf(pt)!==-1,loading:Ft.indexOf(pt)!==-1,checked:Qt.indexOf(pt)!==-1,halfChecked:$t.indexOf(pt)!==-1,pos:String(we?we.pos:""),dragOver:Kt===pt&&ue===0,dragOverGapTop:Kt===pt&&ue===-1,dragOverGapBottom:Kt===pt&&ue===1};return Se}function ct(pt){var mt=pt.data,Ct=pt.expanded,Dt=pt.selected,Ut=pt.checked,Ft=pt.loaded,Qt=pt.loading,$t=pt.halfChecked,Kt=pt.dragOver,ue=pt.dragOverGapTop,oe=pt.dragOverGapBottom,we=pt.pos,Se=pt.active,Ne=pt.eventKey,pe=(0,Vt.Z)((0,Vt.Z)({},mt),{},{expanded:Ct,selected:Dt,checked:Ut,loaded:Ft,loading:Qt,halfChecked:$t,dragOver:Kt,dragOverGapTop:ue,dragOverGapBottom:oe,pos:we,active:Se,key:Ne});return"props"in pe||Object.defineProperty(pe,"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`."),pt}}),pe}},8178:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return yt}});var Rt=Gt(4676);function yt(Vt,Yt,Nt,Wt){var xt=Rt.unstable_batchedUpdates?function(Bt){Rt.unstable_batchedUpdates(Nt,Bt)}:Nt;return Vt!=null&&Vt.addEventListener&&Vt.addEventListener(Yt,xt,Wt),{remove:function(){Vt!=null&&Vt.removeEventListener&&Vt.removeEventListener(Yt,xt,Wt)}}}},21783:function(Nn,An,Gt){"use strict";Gt.d(An,{g1:function(){return bt},os:function(){return It}});var Rt=/margin|padding|width|height|max|min|offset/,yt={left:!0,top:!0},Vt={cssFloat:1,styleFloat:1,float:1};function Yt(vt){return vt.nodeType===1?vt.ownerDocument.defaultView.getComputedStyle(vt,null):{}}function Nt(vt,et,tt){if(et=et.toLowerCase(),tt==="auto"){if(et==="height")return vt.offsetHeight;if(et==="width")return vt.offsetWidth}return et in yt||(yt[et]=Rt.test(et)),yt[et]?parseFloat(tt)||0:tt}function Wt(vt,et){var tt=arguments.length,st=Yt(vt);return et=Vt[et]?"cssFloat"in vt.style?"cssFloat":"styleFloat":et,tt===1?st:Nt(vt,et,st[et]||vt.style[et])}function xt(vt,et,tt){var st=arguments.length;if(et=Vt[et]?"cssFloat"in vt.style?"cssFloat":"styleFloat":et,st===3)return typeof tt=="number"&&Rt.test(et)&&(tt="".concat(tt,"px")),vt.style[et]=tt,tt;for(var rt in et)et.hasOwnProperty(rt)&&xt(vt,rt,et[rt]);return Yt(vt)}function Ot(vt){return vt===document.body?document.documentElement.clientWidth:vt.offsetWidth}function Bt(vt){return vt===document.body?window.innerHeight||document.documentElement.clientHeight:vt.offsetHeight}function At(){var vt=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),et=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:vt,height:et}}function bt(){var vt=document.documentElement.clientWidth,et=window.innerHeight||document.documentElement.clientHeight;return{width:vt,height:et}}function Tt(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function It(vt){var et=vt.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)}}},21881:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return $e}});var Rt=Gt(5891),yt=Gt(80665),Vt=Gt(57259),Yt=Gt(80962),Nt=Gt(29043),Wt=Gt(19149),xt=Gt(92310),Ot=Gt.n(xt),Bt=Gt(29301),At=Gt(80764),bt=Gt(28800),Tt=Gt(59301),It=Gt(4676),vt=Tt.forwardRef(function(me,le){var Ee=me.height,ce=me.offsetY,he=me.offsetX,_t=me.children,Mt=me.prefixCls,Et=me.onInnerResize,Ht=me.innerProps,Pt=me.rtl,dt=me.extra,gt={},zt={display:"flex",flexDirection:"column"};return ce!==void 0&&(gt={height:Ee,position:"relative",overflow:"hidden"},zt=(0,Vt.Z)((0,Vt.Z)({},zt),{},(0,Yt.Z)((0,Yt.Z)((0,Yt.Z)((0,Yt.Z)((0,Yt.Z)({transform:"translateY(".concat(ce,"px)")},Pt?"marginRight":"marginLeft",-he),"position","absolute"),"left",0),"right",0),"top",0))),Tt.createElement("div",{style:gt},Tt.createElement(Bt.Z,{onResize:function(Zt){var ye=Zt.offsetHeight;ye&&Et&&Et()}},Tt.createElement("div",(0,Rt.Z)({style:zt,className:Ot()((0,Yt.Z)({},"".concat(Mt,"-holder-inner"),Mt)),ref:le},Ht),_t,dt)))});vt.displayName="Filler";var et=vt;function tt(me){var le=me.children,Ee=me.setRef,ce=Tt.useCallback(function(he){Ee(he)},[]);return Tt.cloneElement(le,{ref:ce})}function st(me,le,Ee,ce,he,_t,Mt,Et){var Ht=Et.getKey;return me.slice(le,Ee+1).map(function(Pt,dt){var gt=le+dt,zt=Mt(Pt,gt,{style:{width:ce},offsetX:he}),re=Ht(Pt);return Tt.createElement(tt,{key:re,setRef:function(ye){return _t(Pt,ye)}},zt)})}function rt(me,le,Ee,ce){var he=Ee-me,_t=le-Ee,Mt=Math.min(he,_t)*2;if(ce<=Mt){var Et=Math.floor(ce/2);return ce%2?Ee+Et+1:Ee-Et}return he>_t?Ee-(ce-_t):Ee+(ce-he)}function ut(me,le,Ee){var ce=me.length,he=le.length,_t,Mt;if(ce===0&&he===0)return null;ce<he?(_t=me,Mt=le):(_t=le,Mt=me);var Et={__EMPTY_ITEM__:!0};function Ht(Zt){return Zt!==void 0?Ee(Zt):Et}for(var Pt=null,dt=Math.abs(ce-he)!==1,gt=0;gt<Mt.length;gt+=1){var zt=Ht(_t[gt]),re=Ht(Mt[gt]);if(zt!==re){Pt=gt,dt=dt||zt!==Ht(Mt[gt+1]);break}}return Pt===null?null:{index:Pt,multiple:dt}}function ct(me,le,Ee){var ce=Tt.useState(me),he=(0,Nt.Z)(ce,2),_t=he[0],Mt=he[1],Et=Tt.useState(null),Ht=(0,Nt.Z)(Et,2),Pt=Ht[0],dt=Ht[1];return Tt.useEffect(function(){var gt=ut(_t||[],me||[],le);(gt==null?void 0:gt.index)!==void 0&&(Ee==null||Ee(gt.index),dt(me[gt.index])),Mt(me)},[me]),[Pt]}var pt=Gt(23073),mt=(typeof navigator=="undefined"?"undefined":(0,yt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Ct=mt,Dt=function(me,le,Ee,ce){var he=(0,Tt.useRef)(!1),_t=(0,Tt.useRef)(null);function Mt(){clearTimeout(_t.current),he.current=!0,_t.current=setTimeout(function(){he.current=!1},50)}var Et=(0,Tt.useRef)({top:me,bottom:le,left:Ee,right:ce});return Et.current.top=me,Et.current.bottom=le,Et.current.left=Ee,Et.current.right=ce,function(Ht,Pt){var dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,gt=Ht?Pt<0&&Et.current.left||Pt>0&&Et.current.right:Pt<0&&Et.current.top||Pt>0&&Et.current.bottom;return dt&>?(clearTimeout(_t.current),he.current=!1):(!gt||he.current)&&Mt(),!he.current&>}};function Ut(me,le,Ee,ce,he,_t,Mt){var Et=(0,Tt.useRef)(0),Ht=(0,Tt.useRef)(null),Pt=(0,Tt.useRef)(null),dt=(0,Tt.useRef)(!1),gt=Dt(le,Ee,ce,he);function zt(Le,Re){if(pt.Z.cancel(Ht.current),!gt(!1,Re)){var hn=Le;if(!hn._virtualHandled)hn._virtualHandled=!0;else return;Et.current+=Re,Pt.current=Re,Ct||hn.preventDefault(),Ht.current=(0,pt.Z)(function(){var wn=dt.current?10:1;Mt(Et.current*wn,!1),Et.current=0})}}function re(Le,Re){Mt(Re,!0),Ct||Le.preventDefault()}var Zt=(0,Tt.useRef)(null),ye=(0,Tt.useRef)(null);function Ye(Le){if(me){pt.Z.cancel(ye.current),ye.current=(0,pt.Z)(function(){Zt.current=null},2);var Re=Le.deltaX,hn=Le.deltaY,wn=Le.shiftKey,kn=Re,Rn=hn;(Zt.current==="sx"||!Zt.current&&wn&&hn&&!Re)&&(kn=hn,Rn=0,Zt.current="sx");var Yn=Math.abs(kn),Kn=Math.abs(Rn);Zt.current===null&&(Zt.current=_t&&Yn>Kn?"x":"y"),Zt.current==="y"?zt(Le,Rn):re(Le,kn)}}function sn(Le){me&&(dt.current=Le.detail===Pt.current)}return[Ye,sn]}function Ft(me,le,Ee,ce){var he=Tt.useMemo(function(){return[new Map,[]]},[me,Ee.id,ce]),_t=(0,Nt.Z)(he,2),Mt=_t[0],Et=_t[1],Ht=function(dt){var gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:dt,zt=Mt.get(dt),re=Mt.get(gt);if(zt===void 0||re===void 0)for(var Zt=me.length,ye=Et.length;ye<Zt;ye+=1){var Ye,sn=me[ye],Le=le(sn);Mt.set(Le,ye);var Re=(Ye=Ee.get(Le))!==null&&Ye!==void 0?Ye:ce;if(Et[ye]=(Et[ye-1]||0)+Re,Le===dt&&(zt=ye),Le===gt&&(re=ye),zt!==void 0&&re!==void 0)break}return{top:Et[zt-1]||0,bottom:Et[re]}};return Ht}var Qt=Gt(85899),$t=Gt(79545),Kt=Gt(68550),ue=function(){function me(){(0,$t.Z)(this,me),(0,Yt.Z)(this,"maps",void 0),(0,Yt.Z)(this,"id",0),(0,Yt.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Kt.Z)(me,[{key:"set",value:function(Ee,ce){this.maps[Ee]=ce,this.id+=1,this.diffKeys.add(Ee)}},{key:"get",value:function(Ee){return this.maps[Ee]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),me}(),oe=ue;function we(me){var le=parseFloat(me);return isNaN(le)?0:le}function Se(me,le,Ee){var ce=Tt.useState(0),he=(0,Nt.Z)(ce,2),_t=he[0],Mt=he[1],Et=(0,Tt.useRef)(new Map),Ht=(0,Tt.useRef)(new oe),Pt=(0,Tt.useRef)(0);function dt(){Pt.current+=1}function gt(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;dt();var Zt=function(){var sn=!1;Et.current.forEach(function(Le,Re){if(Le&&Le.offsetParent){var hn=(0,Qt.ZP)(Le),wn=hn.offsetHeight,kn=getComputedStyle(hn),Rn=kn.marginTop,Yn=kn.marginBottom,Kn=we(Rn),li=we(Yn),mi=wn+Kn+li;Ht.current.get(Re)!==mi&&(Ht.current.set(Re,mi),sn=!0)}}),sn&&Mt(function(Le){return Le+1})};if(re)Zt();else{Pt.current+=1;var ye=Pt.current;Promise.resolve().then(function(){ye===Pt.current&&Zt()})}}function zt(re,Zt){var ye=me(re),Ye=Et.current.get(ye);Zt?(Et.current.set(ye,Zt),gt()):Et.current.delete(ye),!Ye!=!Zt&&(Zt?le==null||le(re):Ee==null||Ee(re))}return(0,Tt.useEffect)(function(){return dt},[]),[zt,gt,Ht.current,_t]}var Ne=14/15;function pe(me,le,Ee){var ce=(0,Tt.useRef)(!1),he=(0,Tt.useRef)(0),_t=(0,Tt.useRef)(0),Mt=(0,Tt.useRef)(null),Et=(0,Tt.useRef)(null),Ht,Pt=function(re){if(ce.current){var Zt=Math.ceil(re.touches[0].pageX),ye=Math.ceil(re.touches[0].pageY),Ye=he.current-Zt,sn=_t.current-ye,Le=Math.abs(Ye)>Math.abs(sn);Le?he.current=Zt:_t.current=ye;var Re=Ee(Le,Le?Ye:sn,!1,re);Re&&re.preventDefault(),clearInterval(Et.current),Re&&(Et.current=setInterval(function(){Le?Ye*=Ne:sn*=Ne;var hn=Math.floor(Le?Ye:sn);(!Ee(Le,hn,!0)||Math.abs(hn)<=.1)&&clearInterval(Et.current)},16))}},dt=function(){ce.current=!1,Ht()},gt=function(re){Ht(),re.touches.length===1&&!ce.current&&(ce.current=!0,he.current=Math.ceil(re.touches[0].pageX),_t.current=Math.ceil(re.touches[0].pageY),Mt.current=re.target,Mt.current.addEventListener("touchmove",Pt,{passive:!1}),Mt.current.addEventListener("touchend",dt,{passive:!0}))};Ht=function(){Mt.current&&(Mt.current.removeEventListener("touchmove",Pt),Mt.current.removeEventListener("touchend",dt))},(0,bt.Z)(function(){return me&&le.current.addEventListener("touchstart",gt,{passive:!0}),function(){var zt;(zt=le.current)===null||zt===void 0||zt.removeEventListener("touchstart",gt),Ht(),clearInterval(Et.current)}},[me])}function Ue(me){return Math.floor(Math.pow(me,.5))}function de(me,le){var Ee="touches"in me?me.touches[0]:me;return Ee[le?"pageX":"pageY"]-window[le?"scrollX":"scrollY"]}function Jt(me,le,Ee){Tt.useEffect(function(){var ce=le.current;if(me&&ce){var he=!1,_t,Mt,Et=function(){pt.Z.cancel(_t)},Ht=function zt(){Et(),_t=(0,pt.Z)(function(){Ee(Mt),zt()})},Pt=function(re){var Zt=re;Zt._virtualHandled||(Zt._virtualHandled=!0,he=!0)},dt=function(){he=!1,Et()},gt=function(re){if(he){var Zt=de(re,!1),ye=ce.getBoundingClientRect(),Ye=ye.top,sn=ye.bottom;if(Zt<=Ye){var Le=Ye-Zt;Mt=-Ue(Le),Ht()}else if(Zt>=sn){var Re=Zt-sn;Mt=Ue(Re),Ht()}else Et()}};return ce.addEventListener("mousedown",Pt),ce.ownerDocument.addEventListener("mouseup",dt),ce.ownerDocument.addEventListener("mousemove",gt),function(){ce.removeEventListener("mousedown",Pt),ce.ownerDocument.removeEventListener("mouseup",dt),ce.ownerDocument.removeEventListener("mousemove",gt),Et()}}},[me])}var ee=10;function ae(me,le,Ee,ce,he,_t,Mt,Et){var Ht=Tt.useRef(),Pt=Tt.useState(null),dt=(0,Nt.Z)(Pt,2),gt=dt[0],zt=dt[1];return(0,bt.Z)(function(){if(gt&>.times<ee){if(!me.current){zt(function(te){return(0,Vt.Z)({},te)});return}_t();var re=gt.targetAlign,Zt=gt.originAlign,ye=gt.index,Ye=gt.offset,sn=me.current.clientHeight,Le=!1,Re=re,hn=null;if(sn){for(var wn=re||Zt,kn=0,Rn=0,Yn=0,Kn=Math.min(le.length-1,ye),li=0;li<=Kn;li+=1){var mi=he(le[li]);Rn=kn;var yi=Ee.get(mi);Yn=Rn+(yi===void 0?ce:yi),kn=Yn}for(var Pi=wn==="top"?Ye:sn-Ye,Mi=Kn;Mi>=0;Mi-=1){var Gi=he(le[Mi]),bi=Ee.get(Gi);if(bi===void 0){Le=!0;break}if(Pi-=bi,Pi<=0)break}switch(wn){case"top":hn=Rn-Ye;break;case"bottom":hn=Yn-sn+Ye;break;default:{var Ki=me.current.scrollTop,ui=Ki+sn;Rn<Ki?Re="top":Yn>ui&&(Re="bottom")}}hn!==null&&Mt(hn),hn!==gt.lastTop&&(Le=!0)}Le&&zt((0,Vt.Z)((0,Vt.Z)({},gt),{},{times:gt.times+1,targetAlign:Re,lastTop:hn}))}},[gt,me.current]),function(re){if(re==null){Et();return}if(pt.Z.cancel(Ht.current),typeof re=="number")Mt(re);else if(re&&(0,yt.Z)(re)==="object"){var Zt,ye=re.align;"index"in re?Zt=re.index:Zt=le.findIndex(function(Le){return he(Le)===re.key});var Ye=re.offset,sn=Ye===void 0?0:Ye;zt({times:0,index:Zt,offset:sn,originAlign:ye})}}}var fe=Tt.forwardRef(function(me,le){var Ee=me.prefixCls,ce=me.rtl,he=me.scrollOffset,_t=me.scrollRange,Mt=me.onStartMove,Et=me.onStopMove,Ht=me.onScroll,Pt=me.horizontal,dt=me.spinSize,gt=me.containerSize,zt=me.style,re=me.thumbStyle,Zt=Tt.useState(!1),ye=(0,Nt.Z)(Zt,2),Ye=ye[0],sn=ye[1],Le=Tt.useState(null),Re=(0,Nt.Z)(Le,2),hn=Re[0],wn=Re[1],kn=Tt.useState(null),Rn=(0,Nt.Z)(kn,2),Yn=Rn[0],Kn=Rn[1],li=!ce,mi=Tt.useRef(),yi=Tt.useRef(),Pi=Tt.useState(!1),Mi=(0,Nt.Z)(Pi,2),Gi=Mi[0],bi=Mi[1],Ki=Tt.useRef(),ui=function(){clearTimeout(Ki.current),bi(!0),Ki.current=setTimeout(function(){bi(!1)},3e3)},te=_t-gt||0,Yi=gt-dt||0,Ti=Tt.useMemo(function(){if(he===0||te===0)return 0;var Fe=he/te;return Fe*Yi},[he,te,Yi]),or=function(vn){vn.stopPropagation(),vn.preventDefault()},Sr=Tt.useRef({top:Ti,dragging:Ye,pageY:hn,startTop:Yn});Sr.current={top:Ti,dragging:Ye,pageY:hn,startTop:Yn};var Er=function(vn){sn(!0),wn(de(vn,Pt)),Kn(Sr.current.top),Mt(),vn.stopPropagation(),vn.preventDefault()};Tt.useEffect(function(){var Fe=function(Ae){Ae.preventDefault()},vn=mi.current,bn=yi.current;return vn.addEventListener("touchstart",Fe,{passive:!1}),bn.addEventListener("touchstart",Er,{passive:!1}),function(){vn.removeEventListener("touchstart",Fe),bn.removeEventListener("touchstart",Er)}},[]);var vr=Tt.useRef();vr.current=te;var qn=Tt.useRef();qn.current=Yi,Tt.useEffect(function(){if(Ye){var Fe,vn=function(Ae){var gn=Sr.current,Pn=gn.dragging,Un=gn.pageY,mn=gn.startTop;pt.Z.cancel(Fe);var Me=mi.current.getBoundingClientRect(),Ge=gt/(Pt?Me.width:Me.height);if(Pn){var fn=(de(Ae,Pt)-Un)*Ge,In=mn;!li&&Pt?In-=fn:In+=fn;var Ke=vr.current,cn=qn.current,_e=cn?In/cn:0,on=Math.ceil(_e*Ke);on=Math.max(on,0),on=Math.min(on,Ke),Fe=(0,pt.Z)(function(){Ht(on,Pt)})}},bn=function(){sn(!1),Et()};return window.addEventListener("mousemove",vn,{passive:!0}),window.addEventListener("touchmove",vn,{passive:!0}),window.addEventListener("mouseup",bn,{passive:!0}),window.addEventListener("touchend",bn,{passive:!0}),function(){window.removeEventListener("mousemove",vn),window.removeEventListener("touchmove",vn),window.removeEventListener("mouseup",bn),window.removeEventListener("touchend",bn),pt.Z.cancel(Fe)}}},[Ye]),Tt.useEffect(function(){return ui(),function(){clearTimeout(Ki.current)}},[he]),Tt.useImperativeHandle(le,function(){return{delayHidden:ui}});var tn="".concat(Ee,"-scrollbar"),nn={position:"absolute",visibility:Gi?null:"hidden"},Qe={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Pt?(nn.height=8,nn.left=0,nn.right=0,nn.bottom=0,Qe.height="100%",Qe.width=dt,li?Qe.left=Ti:Qe.right=Ti):(nn.width=8,nn.top=0,nn.bottom=0,li?nn.right=0:nn.left=0,Qe.width="100%",Qe.height=dt,Qe.top=Ti),Tt.createElement("div",{ref:mi,className:Ot()(tn,(0,Yt.Z)((0,Yt.Z)((0,Yt.Z)({},"".concat(tn,"-horizontal"),Pt),"".concat(tn,"-vertical"),!Pt),"".concat(tn,"-visible"),Gi)),style:(0,Vt.Z)((0,Vt.Z)({},nn),zt),onMouseDown:or,onMouseMove:ui},Tt.createElement("div",{ref:yi,className:Ot()("".concat(tn,"-thumb"),(0,Yt.Z)({},"".concat(tn,"-thumb-moving"),Ye)),style:(0,Vt.Z)((0,Vt.Z)({},Qe),re),onMouseDown:Er}))}),se=fe,De=20;function Oe(){var me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Ee=me/le*me;return isNaN(Ee)&&(Ee=0),Ee=Math.max(Ee,De),Math.floor(Ee)}var en=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],We=[],rn={overflowY:"auto",overflowAnchor:"none"};function ke(me,le){var Ee=me.prefixCls,ce=Ee===void 0?"rc-virtual-list":Ee,he=me.className,_t=me.height,Mt=me.itemHeight,Et=me.fullHeight,Ht=Et===void 0?!0:Et,Pt=me.style,dt=me.data,gt=me.children,zt=me.itemKey,re=me.virtual,Zt=me.direction,ye=me.scrollWidth,Ye=me.component,sn=Ye===void 0?"div":Ye,Le=me.onScroll,Re=me.onVirtualScroll,hn=me.onVisibleChange,wn=me.innerProps,kn=me.extraRender,Rn=me.styles,Yn=(0,Wt.Z)(me,en),Kn=Tt.useCallback(function(Oi){return typeof zt=="function"?zt(Oi):Oi==null?void 0:Oi[zt]},[zt]),li=Se(Kn,null,null),mi=(0,Nt.Z)(li,4),yi=mi[0],Pi=mi[1],Mi=mi[2],Gi=mi[3],bi=!!(re!==!1&&_t&&Mt),Ki=Tt.useMemo(function(){return Object.values(Mi.maps).reduce(function(Oi,Ci){return Oi+Ci},0)},[Mi.id,Mi.maps]),ui=bi&&dt&&(Math.max(Mt*dt.length,Ki)>_t||!!ye),te=Zt==="rtl",Yi=Ot()(ce,(0,Yt.Z)({},"".concat(ce,"-rtl"),te),he),Ti=dt||We,or=(0,Tt.useRef)(),Sr=(0,Tt.useRef)(),Er=(0,Tt.useRef)(),vr=(0,Tt.useState)(0),qn=(0,Nt.Z)(vr,2),tn=qn[0],nn=qn[1],Qe=(0,Tt.useState)(0),Fe=(0,Nt.Z)(Qe,2),vn=Fe[0],bn=Fe[1],Ze=(0,Tt.useState)(!1),Ae=(0,Nt.Z)(Ze,2),gn=Ae[0],Pn=Ae[1],Un=function(){Pn(!0)},mn=function(){Pn(!1)},Me={getKey:Kn};function Ge(Oi){nn(function(Ci){var tr;typeof Oi=="function"?tr=Oi(Ci):tr=Oi;var yr=Li(tr);return or.current.scrollTop=yr,yr})}var fn=(0,Tt.useRef)({start:0,end:Ti.length}),In=(0,Tt.useRef)(),Ke=ct(Ti,Kn),cn=(0,Nt.Z)(Ke,1),_e=cn[0];In.current=_e;var on=Tt.useMemo(function(){if(!bi)return{scrollHeight:void 0,start:0,end:Ti.length-1,offset:void 0};if(!ui){var Oi;return{scrollHeight:((Oi=Sr.current)===null||Oi===void 0?void 0:Oi.offsetHeight)||0,start:0,end:Ti.length-1,offset:void 0}}for(var Ci=0,tr,yr,_i,Mr=Ti.length,xi=0;xi<Mr;xi+=1){var di=Ti[xi],Ai=Kn(di),zn=Mi.get(Ai),hr=Ci+(zn===void 0?Mt:zn);hr>=tn&&tr===void 0&&(tr=xi,yr=Ci),hr>tn+_t&&_i===void 0&&(_i=xi),Ci=hr}return tr===void 0&&(tr=0,yr=0,_i=Math.ceil(_t/Mt)),_i===void 0&&(_i=Ti.length-1),_i=Math.min(_i+1,Ti.length-1),{scrollHeight:Ci,start:tr,end:_i,offset:yr}},[ui,bi,tn,Ti,Gi,_t]),dn=on.scrollHeight,ln=on.start,xn=on.end,yn=on.offset;fn.current.start=ln,fn.current.end=xn,Tt.useLayoutEffect(function(){var Oi=Mi.getRecord();if(Oi.size===1){var Ci=Array.from(Oi)[0],tr=Kn(Ti[ln]);if(tr===Ci){var yr=Mi.get(Ci),_i=yr-Mt;Ge(function(Mr){return Mr+_i})}}Mi.resetRecord()},[dn]);var Mn=Tt.useState({width:0,height:_t}),On=(0,Nt.Z)(Mn,2),En=On[0],jn=On[1],ei=function(Ci){jn({width:Ci.offsetWidth,height:Ci.offsetHeight})},pi=(0,Tt.useRef)(),ii=(0,Tt.useRef)(),qe=Tt.useMemo(function(){return Oe(En.width,ye)},[En.width,ye]),Xn=Tt.useMemo(function(){return Oe(En.height,dn)},[En.height,dn]),ti=dn-_t,Qn=(0,Tt.useRef)(ti);Qn.current=ti;function Li(Oi){var Ci=Oi;return Number.isNaN(Qn.current)||(Ci=Math.min(Ci,Qn.current)),Ci=Math.max(Ci,0),Ci}var fi=tn<=0,ki=tn>=ti,gi=vn<=0,oi=vn>=ye,Fi=Dt(fi,ki,gi,oi),Cn=function(){return{x:te?-vn:vn,y:tn}},nr=(0,Tt.useRef)(Cn()),Ln=(0,At.useEvent)(function(Oi){if(Re){var Ci=(0,Vt.Z)((0,Vt.Z)({},Cn()),Oi);(nr.current.x!==Ci.x||nr.current.y!==Ci.y)&&(Re(Ci),nr.current=Ci)}});function Bi(Oi,Ci){var tr=Oi;Ci?((0,It.flushSync)(function(){bn(tr)}),Ln()):Ge(tr)}function wr(Oi){var Ci=Oi.currentTarget.scrollTop;Ci!==tn&&Ge(Ci),Le==null||Le(Oi),Ln()}var Hi=function(Ci){var tr=Ci,yr=ye?ye-En.width:0;return tr=Math.max(tr,0),tr=Math.min(tr,yr),tr},Or=(0,At.useEvent)(function(Oi,Ci){Ci?((0,It.flushSync)(function(){bn(function(tr){var yr=tr+(te?-Oi:Oi);return Hi(yr)})}),Ln()):Ge(function(tr){var yr=tr+Oi;return yr})}),pr=Ut(bi,fi,ki,gi,oi,!!ye,Or),Si=(0,Nt.Z)(pr,2),vi=Si[0],Xi=Si[1];pe(bi,or,function(Oi,Ci,tr,yr){var _i=yr;return Fi(Oi,Ci,tr)?!1:!_i||!_i._virtualHandled?(_i&&(_i._virtualHandled=!0),vi({preventDefault:function(){},deltaX:Oi?Ci:0,deltaY:Oi?0:Ci}),!0):!1}),Jt(ui,or,function(Oi){Ge(function(Ci){return Ci+Oi})}),(0,bt.Z)(function(){function Oi(tr){var yr=fi&&tr.detail<0,_i=ki&&tr.detail>0;bi&&!yr&&!_i&&tr.preventDefault()}var Ci=or.current;return Ci.addEventListener("wheel",vi,{passive:!1}),Ci.addEventListener("DOMMouseScroll",Xi,{passive:!0}),Ci.addEventListener("MozMousePixelScroll",Oi,{passive:!1}),function(){Ci.removeEventListener("wheel",vi),Ci.removeEventListener("DOMMouseScroll",Xi),Ci.removeEventListener("MozMousePixelScroll",Oi)}},[bi,fi,ki]),(0,bt.Z)(function(){if(ye){var Oi=Hi(vn);bn(Oi),Ln({x:Oi})}},[En.width,ye]);var Zi=function(){var Ci,tr;(Ci=pi.current)===null||Ci===void 0||Ci.delayHidden(),(tr=ii.current)===null||tr===void 0||tr.delayHidden()},Jn=ae(or,Ti,Mi,Mt,Kn,function(){return Pi(!0)},Ge,Zi);Tt.useImperativeHandle(le,function(){return{nativeElement:Er.current,getScrollInfo:Cn,scrollTo:function(Ci){function tr(yr){return yr&&(0,yt.Z)(yr)==="object"&&("left"in yr||"top"in yr)}tr(Ci)?(Ci.left!==void 0&&bn(Hi(Ci.left)),Jn(Ci.top)):Jn(Ci)}}}),(0,bt.Z)(function(){if(hn){var Oi=Ti.slice(ln,xn+1);hn(Oi,Ti)}},[ln,xn,Ti]);var xe=Ft(Ti,Kn,Mi,Mt),Ri=kn==null?void 0:kn({start:ln,end:xn,virtual:ui,offsetX:vn,offsetY:yn,rtl:te,getSize:xe}),Ar=st(Ti,ln,xn,ye,vn,yi,gt,Me),zi=null;_t&&(zi=(0,Vt.Z)((0,Yt.Z)({},Ht?"height":"maxHeight",_t),rn),bi&&(zi.overflowY="hidden",ye&&(zi.overflowX="hidden"),gn&&(zi.pointerEvents="none")));var ir={};return te&&(ir.dir="rtl"),Tt.createElement("div",(0,Rt.Z)({ref:Er,style:(0,Vt.Z)((0,Vt.Z)({},Pt),{},{position:"relative"}),className:Yi},ir,Yn),Tt.createElement(Bt.Z,{onResize:ei},Tt.createElement(sn,{className:"".concat(ce,"-holder"),style:zi,ref:or,onScroll:wr,onMouseEnter:Zi},Tt.createElement(et,{prefixCls:ce,height:dn,offsetX:vn,offsetY:yn,scrollWidth:ye,onInnerResize:Pi,ref:Sr,innerProps:wn,rtl:te,extra:Ri},Ar))),ui&&dn>_t&&Tt.createElement(se,{ref:pi,prefixCls:ce,scrollOffset:tn,scrollRange:dn,rtl:te,onScroll:Bi,onStartMove:Un,onStopMove:mn,spinSize:Xn,containerSize:En.height,style:Rn==null?void 0:Rn.verticalScrollBar,thumbStyle:Rn==null?void 0:Rn.verticalScrollBarThumb}),ui&&ye>En.width&&Tt.createElement(se,{ref:ii,prefixCls:ce,scrollOffset:vn,scrollRange:ye,rtl:te,onScroll:Bi,onStartMove:Un,onStopMove:mn,spinSize:qe,containerSize:En.width,horizontal:!0,style:Rn==null?void 0:Rn.horizontalScrollBar,thumbStyle:Rn==null?void 0:Rn.horizontalScrollBarThumb}))}var Ie=Tt.forwardRef(ke);Ie.displayName="List";var je=Ie,$e=je},25510:function(Nn){"use strict";Nn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAiwAAAIsCAYAAADRd/LpAAAgAElEQVR4Xuyda5BtVXXvV3efc+CAYBQRjaJBeWjiVVKVB0mMUV6GKv0cvVVG/XTrViUlSd0bqUoQg4KapKJW8j3mWinNx1SRS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mC2SreF4ATvHHBtTQ/cGb+VmwF6DRZWIhh8S4hv02WMcPyx0o+9eoWYPHvZ14Qk0dekbqLBZqP/ZgyZYrdcccdwWKUeg01YEGO01dZvflbC0pZl3MColP7rXIFsORSzKwAlgqaEXDLqsgrvthtkkrqqq1mPLvSSiv1r2BS6+o2YEltRyfKdRuwpLSx5wHL/Lwol112qZ155pn23f/9no0ZOzakrw8wJYCJ123U6FE2b+48W3yxxe3444+xf/rHXWxsiGWZf7AzlobZs23mK6/ajHvvs03evolNHD/Rfnveb22rrbYMW4+DFXN4rTMAACAASURBVGqRMcGFQsI3EA8Wjr4wWdwrCPYxfUBontkzTz9rl156mf3Xf33K/vbc88GSM/ktb7GJEybZE089Hd6FW2qddabZGWf8ypYKro++bcGLLDLGZs0iXgaghWtrtM187dWgvIlF6XvfPBs1t89yFLqLJYQAyZFgmNfswYcetD332sse+uv9dsghX7OtttzK1pu23vw525fuf97IEfbqrFk2iXqJlyH/zJxZ4cykMLfDP9xf7Djq6zvXmDEjbebM2TZuHGCvT6nR6b44tL48LKOw/pjZtddea8suu2z/2WM+WPXFF18Mhx/GpzV73sxdEAwWYFlllVVq5VPV7iCse7kW06EGLCkyoptlCmDJp24BLAWw5HNNB54ogKUvrqQuNX/YWcaJxrPn2LXXXWfnn3+eff3rX7fttt/e9tvv87baqqv1xUVguZvdl+skxOssvphNmjzBxuDSCAnPXrfnnn7K3jJpsr3y6hy7a8a9tunmW9gKKyxjp/7057bp299u80ZgPRltr816tS/ny2h2/mDkeD18wm6ZsG15bPg/773lllts///+b7vx8sttvfXXt403fpv956c/bRMnLWq33HyLnX7GGXb2OecEgLX/Vw+w9+32L7b88sv2Bdvi1ho9KgTPzglAaqYt9pbFwzbr2RhxQsoTdi+xM6jPwjJ6kTH24gsv2ZxwEuEIe+KJx+0jWFjuutuOPupIY4vw2mutE8DUK6+9arNxs4wwGz9pUjiRuW+3z4iQL4bOvTZnlo3AtTZqVNj2/drsWX1bwQGANtImjhvft/26b6N2CB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NOBJwpg6QMs7CB59NFHbcsttwxU1Xb4kOhtvmK84vLf2zlnnWXHH3ucTZo4ySZNmmSjx4wOwbFYENiGO2nRybbKaqvaMccdazded4Mdeeih9tijj4Wg2lN/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+5QpgKYAln2s68EQBLM2AhWX9vLlz7bprr7XzzzvPjv7GUbb9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AvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SLQSFjqFdmSGQEjYASMgBEwAqsVge1b1x12GCr/8p6D/12tQrjeRsAIGAEjYASMQN0ITAhL3WJaOiNgBIyAETACRmC1I/C/+Ryxj68oilIAAAAASUVORK5CYII="},32637:function(Nn,An,Gt){"use strict";Nn.exports=Gt.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(Nn){"use strict";Nn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwY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LgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},16722:function(Nn,An,Gt){"use strict";Gt.d(An,{Z:function(){return Ot}});const Rt=Bt=>typeof Bt=="object"&&Bt!=null&&Bt.nodeType===1,yt=(Bt,At)=>(!At||Bt!=="hidden")&&Bt!=="visible"&&Bt!=="clip",Vt=(Bt,At)=>{if(Bt.clientHeight<Bt.scrollHeight||Bt.clientWidth<Bt.scrollWidth){const bt=getComputedStyle(Bt,null);return yt(bt.overflowY,At)||yt(bt.overflowX,At)||(Tt=>{const It=(vt=>{if(!vt.ownerDocument||!vt.ownerDocument.defaultView)return null;try{return vt.ownerDocument.defaultView.frameElement}catch(et){return null}})(Tt);return!!It&&(It.clientHeight<Tt.scrollHeight||It.clientWidth<Tt.scrollWidth)})(Bt)}return!1},Yt=(Bt,At,bt,Tt,It,vt,et,tt)=>vt<Bt&&et>At||vt>Bt&&et<At?0:vt<=Bt&&tt<=bt||et>=At&&tt>=bt?vt-Bt-Tt:et>At&&tt<bt||vt<Bt&&tt>bt?et-At+It:0,Nt=Bt=>{const At=Bt.parentElement;return At==null?Bt.getRootNode().host||null:At},Wt=(Bt,At)=>{var bt,Tt,It,vt;if(typeof document=="undefined")return[];const{scrollMode:et,block:tt,inline:st,boundary:rt,skipOverflowHiddenElements:ut}=At,ct=typeof rt=="function"?rt:fe=>fe!==rt;if(!Rt(Bt))throw new TypeError("Invalid target");const pt=document.scrollingElement||document.documentElement,mt=[];let Ct=Bt;for(;Rt(Ct)&&ct(Ct);){if(Ct=Nt(Ct),Ct===pt){mt.push(Ct);break}Ct!=null&&Ct===document.body&&Vt(Ct)&&!Vt(document.documentElement)||Ct!=null&&Vt(Ct,ut)&&mt.push(Ct)}const Dt=(Tt=(bt=window.visualViewport)==null?void 0:bt.width)!=null?Tt:innerWidth,Ut=(vt=(It=window.visualViewport)==null?void 0:It.height)!=null?vt:innerHeight,{scrollX:Ft,scrollY:Qt}=window,{height:$t,width:Kt,top:ue,right:oe,bottom:we,left:Se}=Bt.getBoundingClientRect(),{top:Ne,right:pe,bottom:Ue,left:de}=(fe=>{const se=window.getComputedStyle(fe);return{top:parseFloat(se.scrollMarginTop)||0,right:parseFloat(se.scrollMarginRight)||0,bottom:parseFloat(se.scrollMarginBottom)||0,left:parseFloat(se.scrollMarginLeft)||0}})(Bt);let Jt=tt==="start"||tt==="nearest"?ue-Ne:tt==="end"?we+Ue:ue+$t/2-Ne+Ue,ee=st==="center"?Se+Kt/2-de+pe:st==="end"?oe+pe:Se-de;const ae=[];for(let fe=0;fe<mt.length;fe++){const se=mt[fe],{height:De,width:Oe,top:en,right:We,bottom:rn,left:ke}=se.getBoundingClientRect();if(et==="if-needed"&&ue>=0&&Se>=0&&we<=Ut&&oe<=Dt&&(se===pt&&!Vt(se)||ue>=en&&we<=rn&&Se>=ke&&oe<=We))return ae;const Ie=getComputedStyle(se),je=parseInt(Ie.borderLeftWidth,10),$e=parseInt(Ie.borderTopWidth,10),me=parseInt(Ie.borderRightWidth,10),le=parseInt(Ie.borderBottomWidth,10);let Ee=0,ce=0;const he="offsetWidth"in se?se.offsetWidth-se.clientWidth-je-me:0,_t="offsetHeight"in se?se.offsetHeight-se.clientHeight-$e-le:0,Mt="offsetWidth"in se?se.offsetWidth===0?0:Oe/se.offsetWidth:0,Et="offsetHeight"in se?se.offsetHeight===0?0:De/se.offsetHeight:0;if(pt===se)Ee=tt==="start"?Jt:tt==="end"?Jt-Ut:tt==="nearest"?Yt(Qt,Qt+Ut,Ut,$e,le,Qt+Jt,Qt+Jt+$t,$t):Jt-Ut/2,ce=st==="start"?ee:st==="center"?ee-Dt/2:st==="end"?ee-Dt:Yt(Ft,Ft+Dt,Dt,je,me,Ft+ee,Ft+ee+Kt,Kt),Ee=Math.max(0,Ee+Qt),ce=Math.max(0,ce+Ft);else{Ee=tt==="start"?Jt-en-$e:tt==="end"?Jt-rn+le+_t:tt==="nearest"?Yt(en,rn,De,$e,le+_t,Jt,Jt+$t,$t):Jt-(en+De/2)+_t/2,ce=st==="start"?ee-ke-je:st==="center"?ee-(ke+Oe/2)+he/2:st==="end"?ee-We+me+he:Yt(ke,We,Oe,je,me+he,ee,ee+Kt,Kt);const{scrollLeft:Ht,scrollTop:Pt}=se;Ee=Et===0?0:Math.max(0,Math.min(Pt+Ee/Et,se.scrollHeight-De/Et+_t)),ce=Mt===0?0:Math.max(0,Math.min(Ht+ce/Mt,se.scrollWidth-Oe/Mt+he)),Jt+=Pt-Ee,ee+=Ht-ce}ae.push({el:se,top:Ee,left:ce})}return ae},xt=Bt=>Bt===!1?{block:"end",inline:"nearest"}:(At=>At===Object(At)&&Object.keys(At).length!==0)(Bt)?Bt:{block:"start",inline:"nearest"};function Ot(Bt,At){if(!Bt.isConnected||!(It=>{let vt=It;for(;vt&&vt.parentNode;){if(vt.parentNode===document)return!0;vt=vt.parentNode instanceof ShadowRoot?vt.parentNode.host:vt.parentNode}return!1})(Bt))return;const bt=(It=>{const vt=window.getComputedStyle(It);return{top:parseFloat(vt.scrollMarginTop)||0,right:parseFloat(vt.scrollMarginRight)||0,bottom:parseFloat(vt.scrollMarginBottom)||0,left:parseFloat(vt.scrollMarginLeft)||0}})(Bt);if((It=>typeof It=="object"&&typeof It.behavior=="function")(At))return At.behavior(Wt(Bt,At));const Tt=typeof At=="boolean"||At==null?void 0:At.behavior;for(const{el:It,top:vt,left:et}of Wt(Bt,xt(At))){const tt=vt-bt.top+bt.bottom,st=et-bt.left+bt.right;It.scroll({top:tt,left:st,behavior:Tt})}}}}]);
|